*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

a:hover { color: #111; }

button, input, textarea { font-family: inherit; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 10000;
}

.skip-link:focus { top: 8px; }

.wrap {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header { background: #fff; }

.top {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  align-items: center;
  min-height: 143px;
  padding: 18px 0 10px;
}

.logo img { width: 150px; height: auto; }

.top-gap { display: none; }

.top-contacts {
  display: flex;
  justify-content: flex-end;
  gap: 48px;
}

.top-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #000;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
}

.top-contacts svg { width: 25px; height: 25px; flex: 0 0 25px; }

.nav-bar { background: #000; }

.nav-inner {
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 14px;
  align-items: center;
  gap: 10px;
  padding: 14px 4px;
  cursor: pointer;
}

.menu-toggle svg { width: 18px; height: 18px; }

.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 12px 0;
  width: 100%;
}

.menu a {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.menu a:hover { color: var(--yellow); }

.hero { position: relative; background: #000; min-height: 450px; overflow: hidden; }

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s linear;
  pointer-events: none;
}

.hero-slide.is-on { opacity: 1; position: relative; min-height: 450px; pointer-events: auto; }

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.hero-slide h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: 45px;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  padding: 24px 8%;
}

.section { padding: 54px 0 30px; }

.section h2,
.gold {
  color: var(--yellow);
  font-size: 40px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 28px;
  letter-spacing: 0.02em;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card h3 {
  margin: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.news-card time {
  display: block;
  text-align: center;
  color: #777;
  font-size: 13px;
  margin: 4px 0 12px;
}

.news-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.news-card p { margin: 12px 0 0; font-size: 14px; }

.center { text-align: center; margin-top: 28px; }

.btn {
  display: inline-block;
  background: #000;
  color: #fff !important;
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn:hover { background: #222; color: #fff !important; }

.about {
  background: linear-gradient(45deg, #fae035 0%, #ebe9f9 30%, #fff 48%, #fff 100%);
  padding: 70px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about h2 {
  text-align: left;
  color: #000;
  margin-bottom: 16px;
}

.about p { margin: 0 0 16px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 10px;
}

.split-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.block h2 { font-size: 30px; margin-bottom: 8px; }

.block img { width: 100%; aspect-ratio: 1024 / 683; object-fit: cover; }

.fade-left { animation: fadeLeft 0.5s linear both; }
.fade-right { animation: fadeRight 0.5s linear both; }

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}

.page-head {
  background: #f4f4f4;
  padding: 28px 0;
}

.page-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-head h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  color: #333;
}

.crumbs {
  color: #888;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.crumbs svg { width: 14px; height: 14px; }

.page { padding: 48px 0 80px; }

.lead { font-size: 15px; }

.defs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 36px;
}

.defs h2 {
  text-align: center;
  color: #111;
  font-size: 18px;
  letter-spacing: 0.08em;
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.def {
  border-left: 3px solid #cfcfcf;
  padding-left: 14px;
}

.def h3 {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #333;
}

.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
}

.services article { margin-bottom: 26px; }
.services article h2 {
  text-align: left;
  color: #111;
  font-size: 15px;
  margin: 0 0 6px;
  letter-spacing: 0.03em;
}

.services article h2 span { color: var(--yellow); margin-right: 6px; }

.services p { margin: 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.gallery a { display: block; background: #f3f3f3; }

.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.portal-intro { text-align: center; margin: 0 0 28px; }

.year-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 30px;
}

.year-btn {
  display: block;
  background: #f9f9fa;
  border: 1px solid #f3f3f4;
  color: #343434;
  text-align: center;
  padding: 18px 8px;
  font-size: 18px;
  line-height: 1.2;
}

.year-btn:hover { background: #fff; color: #111; }

.portal-docs { display: grid; gap: 28px; }

.portal-docs h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  color: #333;
}

.portal-docs p { margin: 0 0 6px; }

.portal-docs .mark {
  color: #fee236;
  font-weight: 700;
  margin-right: 6px;
}

.portal-empty { margin: 0; }

.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.icon-card {
  border: 1px solid #e4e4e4;
  background: #fafafa;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 18px 10px;
  color: #222;
  font-weight: 600;
}

.icon-card svg { width: 42px; height: 42px; }

.icon-card:hover { border-color: var(--yellow); color: #111; }

.donate-label {
  border-left: 3px solid #cfcfcf;
  padding-left: 12px;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #333;
  margin: 0 0 22px;
}

.donate-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.donate-card {
  border: 1px solid #ddd;
  text-align: center;
  padding: 22px 10px 16px;
}

.donate-card strong {
  display: block;
  color: #e10600;
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.donate-card p { margin: 14px 0 6px; font-weight: 700; font-size: 13px; letter-spacing: 0.03em; }

.donate-card img { width: 92px; height: auto; margin: 0 auto; }

.note { font-size: 13px; margin-top: 18px; }

.bank {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 28px;
}

.bank-box {
  border: 1px solid #ddd;
  text-align: center;
  padding: 22px 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bank-box p { margin: 4px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.form p { margin: 0 0 14px; }

.form label { display: block; margin-bottom: 4px; }

.form input,
.form textarea {
  width: 100%;
  border: 1px solid #ccc;
  padding: 8px 10px;
  font-size: 14px;
  background: #fff;
}

.form .btn { border: 0; cursor: pointer; }

.form-msg { min-height: 1.4em; margin-top: 8px; }

.map { width: 100%; height: 550px; border: 0; }

.sponsor-lead { margin: 0 0 22px; }

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 30px;
  row-gap: 30px;
  align-items: start;
}

.sponsor h2 {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.sponsor h2 svg,
.sponsor p svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  color: #fee236;
}

.sponsor img {
  width: 100%;
  height: auto;
  margin: 0 0 10px;
}

.sponsor p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 6px;
  color: #333;
  font-size: 14px;
  line-height: 1.45;
}

.sponsor a:hover { text-decoration: underline; }

.sponsor-label {
  display: block;
  margin: 8px 0 4px;
  color: #000;
  font-weight: 700;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.link-grid a,
.doc-list a {
  display: block;
  border: 1px solid #e5e5e5;
  padding: 16px 14px;
  font-weight: 700;
  color: #222;
}

.link-grid a:hover,
.doc-list a:hover { border-color: var(--yellow); }

.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.post-body p { margin: 0 0 14px; }

.doc-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.doc-gallery img { width: 100%; background: #f7f7f7; }

.archive {
  display: grid;
  gap: 28px;
}

.archive article {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #eee;
}

.archive .kicker {
  color: #888;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.archive h2 { margin: 0 0 8px; font-size: 26px; text-align: left; color: #111; text-transform: none; }

.archive time { color: #888; font-size: 13px; }

.site-footer {
  background: linear-gradient(45deg, #fae035 0%, #ebe9f9 28%, #fff 50%, #fff 100%);
  border-top: 6px solid var(--yellow);
  padding: 36px 0 28px;
  color: #000;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 24px;
  align-items: start;
}

.site-footer h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; }

.site-footer p { margin: 0 0 8px; }

.foot-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.foot-row { display: flex; align-items: center; gap: 8px; font-size: 18px; }

.foot-row svg { width: 22px; height: 22px; flex: 0 0 22px; }

.foot-brand { text-align: center; }

.foot-brand img { width: 130px; margin: 0 auto 12px; }

.socials { display: flex; justify-content: center; gap: 8px; }

.socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
}

.socials svg { width: 18px; height: 18px; }

.socials .fb { background: #3b5998; }
.socials .ig { background: #3f729b; }

.friend { text-align: center; }

.friend img { width: min(100%, 345px); margin: 0 auto 16px; aspect-ratio: 345 / 230; object-fit: cover; }

.legal {
  background: #000;
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 12px 16px;
}

.legal a { color: #fff; text-decoration: underline; }

.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  background: #9a9a9a;
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.to-top svg { width: 18px; height: 18px; }

.to-top.is-on { display: flex; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-on { display: flex; }

.lightbox img { max-width: min(1100px, 100%); max-height: 90vh; object-fit: contain; }

.lightbox button {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}

.hp { position: absolute; left: -9999px; }

@media (max-width: 1024px) {
  .top { grid-template-columns: 1fr; justify-items: center; text-align: center; min-height: 0; gap: 18px; }
  .top-contacts { flex-direction: column; align-items: center; gap: 16px; }
  .news-grid, .split, .split-3, .about-grid, .services, .defs, .contact-grid, .bank, .donate-grid, .footer-grid, .archive article {
    grid-template-columns: 1fr;
  }
  .icon-grid, .link-grid { grid-template-columns: 1fr 1fr; }
  .sponsor-grid { grid-template-columns: 1fr 1fr; column-gap: 22px; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .doc-gallery { grid-template-columns: 1fr 1fr; }
  .donate-card strong { font-size: 28px; }
  .hero-slide h1 { font-size: 32px; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0 16px;
  }
  .nav-inner.is-open .menu { display: flex; }
  .nav-inner { justify-content: flex-start; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .icon-grid, .link-grid, .sponsor-grid, .year-grid { grid-template-columns: 1fr; }
  .page-head-inner { flex-direction: column; align-items: flex-start; }
  .hero-slide,
  .hero-slide.is-on,
  .hero { min-height: 380px; }
  .section h2, .gold, .about h2 { font-size: 30px; }
  .map { height: 320px; }
}
