/* =========================================================================
   ГБОУ РГИ им. Газиза Альмухаметова — обновлённый сайт
   Дизайн-система: «Чернила и золото»
   ========================================================================= */

:root {
  /* brand */
  --ink: #102c2a;
  --ink-deep: #0a201f;
  --ink-mid: #173c3a;
  --ink-soft: #24504c;
  --ivory: #f7f1e4;
  --paper: #fffdf8;
  --sand: #efe5d1;
  --gold: #c9a45c;
  --gold-bright: #e2c07f;
  --gold-dark: #a8813c;
  --coral: #d4614a;

  /* semantic */
  --bg: #f7f1e4;
  --bg-soft: #f1e8d7;
  --bg-tint: #ede2cd;
  --surface: #fffdf8;
  --text: #22302e;
  --heading: #102c2a;
  --muted: #5f6d69;
  --line: rgba(16, 44, 42, 0.14);
  --line-strong: rgba(16, 44, 42, 0.26);
  --accent: #a8813c;

  --shadow-sm: 0 2px 10px rgba(16, 44, 42, 0.06);
  --shadow: 0 18px 44px -22px rgba(16, 44, 42, 0.35);
  --shadow-lg: 0 34px 70px -34px rgba(16, 44, 42, 0.45);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 34px;

  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
  --font-head: "Prata", "Times New Roman", Georgia, serif;

  --container: 1240px;
  --nav-h: 62px;
}

/* ------------------------------------------------------------------ reset */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--heading);
  font-weight: 400;
  line-height: 1.16;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 2.9vw, 2.5rem); }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.1rem; }
strong { font-weight: 700; }
::selection { background: rgba(201, 164, 92, 0.35); }

:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 400;
  background: var(--gold);
  color: #10201f;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ------------------------------------------------------------------ atoms */
.icon { display: inline-block; vertical-align: middle; }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.kicker span {
  width: 26px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  cursor: pointer;
  text-align: center;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease,
    box-shadow 0.25s ease, border-color 0.25s ease;
  background: none;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { transition: transform 0.25s ease; }
.btn:hover .icon { transform: translateX(3px); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #17201e;
  box-shadow: 0 12px 26px -14px rgba(201, 164, 92, 0.9);
}
.btn--gold:hover { box-shadow: 0 18px 32px -14px rgba(201, 164, 92, 0.95); }

.btn--ghost {
  border-color: rgba(247, 241, 228, 0.4);
  color: var(--ivory);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(247, 241, 228, 0.12); border-color: var(--gold); }

.btn--outline {
  border-color: var(--line-strong);
  color: var(--heading);
  background: transparent;
}
.btn--outline:hover { border-color: var(--gold-dark); color: var(--accent); background: rgba(201, 164, 92, 0.08); }

.btn--dark { background: var(--ink); color: var(--ivory); }
.btn--dark:hover { background: var(--ink-mid); }

.btn--light { background: var(--ivory); color: var(--ink); }
.btn--light:hover { background: #fff; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: rgba(16, 44, 42, 0.07);
  color: var(--ink);
  white-space: nowrap;
}
.tag--soft { background: rgba(201, 164, 92, 0.16); color: var(--gold-dark); }
.tag--olymp { background: rgba(201, 164, 92, 0.2); color: #7d5c17; }
.tag--win { background: rgba(212, 97, 74, 0.14); color: #a8402d; }
.tag--art { background: rgba(23, 60, 58, 0.12); color: #1f5651; }
.tag--adm { background: rgba(52, 105, 158, 0.13); color: #2c5d8e; }
.tag--life { background: rgba(95, 109, 105, 0.14); color: #4b5b57; }
.tag--food { background: rgba(70, 128, 78, 0.14); color: #356b3c; }
.tag--safe { background: rgba(122, 82, 150, 0.13); color: #6a4387; }

.section { padding: 92px 0; background: var(--bg); }
.section--about { background: var(--bg-soft); }
.section--life { background: var(--bg-tint); }
.section--page { padding: 56px 0 96px; }
.section--quick { padding: 0; background: transparent; }
.section--partners { padding: 48px 0 56px; background: var(--bg-soft); }
.section--contacts { padding: 92px 0; background: var(--bg); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}
.section__head h2 { margin: 0; text-wrap: balance; }
.section__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease, gap 0.2s ease;
  white-space: nowrap;
}
.section__link:hover { border-color: currentColor; gap: 12px; }
.section__note {
  max-width: 360px;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ------------------------------------------------------------------ topbar */
.topbar {
  background: var(--ink-deep);
  color: rgba(247, 241, 228, 0.78);
  font-size: 0.78rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
}
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 22px; }
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}
.topbar__item:hover { color: var(--gold-bright); }
.topbar__item .icon { color: var(--gold); }
.topbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  color: rgba(247, 241, 228, 0.85);
  font-size: 0.78rem;
  transition: color 0.2s ease;
}
.topbar__btn:hover { color: var(--gold-bright); }
.topbar__btn .icon { color: var(--gold); }
.topbar__soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(247, 241, 228, 0.16);
  color: rgba(247, 241, 228, 0.85);
  transition: all 0.2s ease;
}
.topbar__soc:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ------------------------------------------------------------------ header */
.header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 16px; min-width: 0; }
.brand__mark { width: 64px; height: 64px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand__small {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}
.brand__text strong {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.02rem, 1.55vw, 1.32rem);
  color: var(--heading);
  letter-spacing: -0.01em;
}
.brand__text em {
  font-style: normal;
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 3px;
}
.header__aside { display: flex; align-items: center; gap: 26px; }
.header__phone { display: flex; flex-direction: column; line-height: 1.25; }
.header__phone span {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.header__phone strong { font-size: 1.04rem; color: var(--heading); letter-spacing: 0.01em; }
.header__phone:hover strong { color: var(--accent); }
.header__cta { padding: 13px 22px; font-size: 0.84rem; }

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color 0.2s ease;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger:hover { border-color: var(--gold-dark); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ nav */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--ink);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  border-bottom: 1px solid rgba(247, 241, 228, 0.08);
  transition: box-shadow 0.3s ease;
}
.nav-wrap.is-stuck { box-shadow: 0 18px 34px -24px rgba(6, 18, 17, 0.85); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--nav-h);
}
.nav { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: static; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 20px 15px;
  background: none;
  border: 0;
  cursor: pointer;
  color: rgba(247, 241, 228, 0.9);
  font-size: 0.81rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 12px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.nav__link:hover, .nav__item.is-active > .nav__link { color: var(--gold-bright); }
.nav__link:hover::after, .nav__item.is-active > .nav__link::after { transform: scaleX(1); }
.nav__link .icon { opacity: 0.7; transition: transform 0.25s ease; }
.nav__item.is-open > .nav__link .icon { transform: rotate(180deg); }

.nav__search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(247, 241, 228, 0.18);
  border-radius: 999px;
  background: rgba(247, 241, 228, 0.05);
  color: rgba(247, 241, 228, 0.8);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.nav__search:hover { border-color: var(--gold); color: var(--gold-bright); }

/* mega */
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--surface);
  border-top: 2px solid var(--gold);
  box-shadow: 0 40px 60px -40px rgba(8, 24, 23, 0.7);
  padding: 36px 0 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  pointer-events: none;
  z-index: 80;
}
.nav__item.is-open > .mega { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.mega__grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 300px;
  gap: 40px;
}
.mega__label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.mega__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mega__col a {
  display: block;
  padding: 7px 10px;
  margin-left: -10px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
  transition: background 0.18s ease, color 0.18s ease, padding 0.18s ease;
}
.mega__col a:hover { background: var(--bg-soft); color: var(--accent); padding-left: 14px; }
.mega__promo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--r);
  overflow: hidden;
  min-height: 250px;
  color: var(--ivory);
  isolation: isolate;
}
.mega__promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.5s ease; }
.mega__promo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 32, 31, 0.94), rgba(10, 32, 31, 0.15));
  z-index: -1;
}
.mega__promo:hover img { transform: scale(1.06); }
.mega__promo div { padding: 22px; }
.mega__promo span { display: block; font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 6px; }
.mega__promo strong { display: block; font-family: var(--font-head); font-weight: 400; font-size: 1.4rem; margin-bottom: 6px; }
.mega__promo em { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 0.8rem; color: rgba(247, 241, 228, 0.8); }

@media (hover: hover) and (min-width: 1081px) {
  .nav__item.has-mega:hover > .mega { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
  .nav__item.has-mega:hover > .nav__link .icon { transform: rotate(180deg); }
}

/* ------------------------------------------------------------------ drawer */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 92vw);
  background: var(--surface);
  z-index: 210;
  transform: translateX(103%);
  transition: transform 0.4s cubic-bezier(0.22, 0.8, 0.28, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -30px 0 60px -30px rgba(8, 24, 23, 0.5);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.drawer__close {
  background: none;
  border: 0;
  color: var(--ivory);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
}
.drawer__body { overflow-y: auto; padding: 22px 26px 40px; }
.drawer__search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 20px;
}
.drawer__list { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px solid var(--line); }
.drawer__list a {
  display: block;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 1.18rem;
  color: var(--heading);
  transition: color 0.2s ease, padding 0.2s ease;
}
.drawer__list a:hover { color: var(--accent); padding-left: 8px; }
.drawer__acc { border-bottom: 1px solid var(--line); }
.drawer__acc summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 4px;
  font-family: var(--font-head);
  font-size: 1.18rem;
  color: var(--heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.drawer__acc summary::-webkit-details-marker { display: none; }
.drawer__acc summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.2s ease;
}
.drawer__acc details[open] summary::after { content: "−"; transform: none; }
.drawer__acc-body { padding: 0 0 14px; }
.drawer__acc-group { margin-bottom: 12px; }
.drawer__acc-group p {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 10px 0 4px;
}
.drawer__acc-group a {
  display: block;
  padding: 6px 0 6px 10px;
  font-size: 0.88rem;
  color: var(--text);
  border-left: 1px solid var(--line);
}
.drawer__acc-group a:hover { color: var(--accent); border-color: var(--gold); }
.drawer__acc-root {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent) !important;
  border: 0 !important;
  padding-left: 0 !important;
}

.drawer__quick { margin-bottom: 26px; }
.drawer__quick p {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.drawer__quick a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.92rem;
  color: var(--text);
  border-bottom: 1px dashed var(--line);
}
.drawer__quick a .icon,
.drawer__quick button .icon { color: var(--accent); }
.drawer__a11y {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 0 10px;
  border: 0;
  border-bottom: 1px dashed var(--line);
  background: none;
  font-size: 0.92rem;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.drawer__contacts { display: flex; flex-direction: column; gap: 10px; font-size: 0.88rem; }
.drawer__contacts a, .drawer__contacts span { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.drawer__contacts .icon { color: var(--accent); }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 22, 21, 0.62);
  backdrop-filter: blur(3px);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.overlay[hidden] { display: none; }
.overlay.is-open { opacity: 1; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--ivory);
  overflow: hidden;
  padding: 74px 0 0;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 420px at 82% 18%, rgba(201, 164, 92, 0.18), transparent 70%),
    radial-gradient(680px 500px at 6% 92%, rgba(36, 80, 76, 0.55), transparent 72%);
  z-index: -1;
}
.hero__pattern {
  position: absolute;
  inset: 0;
  background: url("../img/pattern.svg") center / 220px repeat;
  opacity: 0.14;
  z-index: -1;
  mask-image: linear-gradient(120deg, #000, transparent 55%);
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 55%);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 64px;
  align-items: center;
  padding-bottom: 74px;
}
.hero__content .kicker { color: var(--gold-bright); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 4.4vw, 3.7rem);
  text-wrap: balance;
  line-height: 1.08;
  margin: 0 0 24px;
  letter-spacing: -0.015em;
}
.hero h1 em { font-style: normal; color: var(--gold-bright); position: relative; }
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 6px;
  background: rgba(201, 164, 92, 0.22);
  border-radius: 4px;
  z-index: -1;
}
.hero__lead {
  max-width: 560px;
  color: rgba(247, 241, 228, 0.76);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 0.8rem; color: rgba(247, 241, 228, 0.72); }
.hero__badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero__badges .icon { color: var(--gold); }

.hero__visual { position: relative; }
.hero__frame {
  position: relative;
  border-radius: 240px 240px var(--r-lg) var(--r-lg);
  padding: 11px;
  border: 1px solid rgba(201, 164, 92, 0.45);
}
.hero__frame::before {
  content: "";
  position: absolute;
  inset: -22px -22px 26px 26px;
  border: 1px solid rgba(201, 164, 92, 0.18);
  border-radius: 260px 260px var(--r-lg) var(--r-lg);
  z-index: -1;
}
.hero__frame img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  object-position: center 58%;
  border-radius: 232px 232px 16px 16px;
  filter: saturate(0.92) contrast(1.02);
}
.hero__badge {
  position: absolute;
  left: -26px;
  bottom: 48px;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-bright), var(--gold));
  color: #12201e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.55);
  border: 6px solid var(--ink);
  line-height: 1.1;
}
.hero__badge strong { font-family: var(--font-head); font-size: 2rem; font-weight: 400; }
.hero__badge span { font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.hero__note {
  position: absolute;
  right: -14px;
  bottom: -34px;
  max-width: 300px;
  background: rgba(255, 253, 248, 0.97);
  color: var(--ink);
  padding: 18px 22px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.55;
  box-shadow: var(--shadow-lg);
  border-left: 3px solid var(--gold);
}
.hero__note span { display: block; margin-top: 8px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dark); }

.hero__stats { border-top: 1px solid rgba(247, 241, 228, 0.12); background: rgba(0, 0, 0, 0.16); }
.hero__stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 26px; border-left: 1px solid rgba(247, 241, 228, 0.1); display: flex; flex-direction: column; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { font-family: var(--font-head); font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 400; color: var(--gold-bright); line-height: 1; }
.stat span { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(247, 241, 228, 0.6); margin-top: 8px; }

/* ------------------------------------------------------------------ quick */
.section--quick { position: relative; z-index: 5; margin-top: -1px; }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  transform: translateY(-34px);
  margin-bottom: -34px;
}
.quick-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.quick-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}
.quick-card:hover { transform: translateY(-3px); border-color: rgba(201, 164, 92, 0.5); box-shadow: var(--shadow-lg); }
.quick-card:hover::after { transform: scaleY(1); }
.quick-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(201, 164, 92, 0.13);
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.quick-card__text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.quick-card__text strong { font-size: 0.92rem; color: var(--heading); }
.quick-card__text span { font-size: 0.73rem; color: var(--muted); margin-top: 3px; }
.quick-card__arrow { margin-left: auto; color: var(--muted); transition: color 0.2s ease, transform 0.2s ease; }
.quick-card:hover .quick-card__arrow { color: var(--gold-dark); transform: translate(2px, -2px); }

/* ------------------------------------------------------------------ news */
.news-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 26px; align-items: stretch; }
.news-lead {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  color: var(--ivory);
  box-shadow: var(--shadow);
  background: var(--ink);
}
.news-lead__media { position: absolute; inset: 0; z-index: -2; }
.news-lead__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.news-lead:hover .news-lead__media img { transform: scale(1.05); }
.news-lead__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 26, 25, 0.96) 4%, rgba(8, 26, 25, 0.62) 46%, rgba(8, 26, 25, 0.06) 82%);
}
.news-lead__body { padding: 34px 34px 32px; position: relative; z-index: 1; }
.news-lead__body .tag { background: rgba(247, 241, 228, 0.16); color: var(--gold-bright); backdrop-filter: blur(4px); }
.news-lead h3 { color: #fff; font-size: clamp(1.35rem, 2vw, 1.72rem); margin: 14px 0 12px; line-height: 1.25; }
.news-lead p { color: rgba(247, 241, 228, 0.76); font-size: 0.92rem; margin: 0 0 16px; }
.news-lead__more { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-bright); }
.news-lead:hover .news-lead__more { gap: 13px; }

.news-list { display: grid; grid-template-rows: repeat(4, 1fr); gap: 16px; }
.news-mini {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  padding: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.news-mini:hover { border-color: rgba(201, 164, 92, 0.55); transform: translateX(3px); box-shadow: var(--shadow-sm); }
.news-mini__media { border-radius: 10px; overflow: hidden; }
.news-mini__media img { width: 100%; height: 100%; object-fit: cover; min-height: 94px; }
.news-mini__body { padding: 4px 6px 4px 0; display: flex; flex-direction: column; }
.news-mini h3 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--heading);
  margin: 8px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-mini__meta { margin-top: auto; font-size: 0.72rem; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }

/* ------------------------------------------------------------------ about */
.about { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 72px; align-items: center; }
.about__visual { position: relative; padding: 0 34px 44px 0; }
.about__main {
  width: 100%;
  object-position: center 30%;
  height: 520px;
  object-fit: cover;
  border-radius: 200px 200px var(--r-lg) var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.about__small {
  position: absolute;
  left: -26px;
  bottom: 0;
  width: 224px;
  height: 168px;
  object-fit: cover;
  border-radius: var(--r);
  border: 8px solid var(--bg-soft);
  box-shadow: var(--shadow);
}
.about__year {
  position: absolute;
  top: 66px;
  right: 4px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-bright);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(201, 164, 92, 0.4);
  line-height: 1.1;
}
.about__year strong { font-family: var(--font-head); font-size: 1.55rem; font-weight: 400; }
.about__year span { font-size: 0.55rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(247, 241, 228, 0.7); margin-top: 3px; }
.about__lead { font-size: 1.05rem; color: var(--text); line-height: 1.7; margin-bottom: 16px; }
.about__content > p:not(.kicker):not(.about__lead) { color: var(--muted); font-size: 0.95rem; }
.quote {
  position: relative;
  margin: 26px 0;
  padding: 22px 26px 22px 30px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 253, 248, 0.7);
  border-radius: 0 var(--r) var(--r) 0;
}
.quote .icon { color: var(--gold); opacity: 0.6; margin-bottom: 8px; }
.quote p { font-family: var(--font-head); font-size: 1.08rem; line-height: 1.55; color: var(--heading); margin: 0 0 10px; }
.quote cite { font-style: normal; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------------------------ directions */
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.direction {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px 26px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.direction::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.direction:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(201, 164, 92, 0.35); }
.direction:hover::before { transform: scaleX(1); }
.direction__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--gold-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.direction:hover .direction__icon { background: var(--ink-mid); transform: rotate(-4deg); }
.direction h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; margin: 0 0 10px; }
.direction p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; margin: 0 0 20px; }
.direction__link { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.direction:hover .direction__link { gap: 11px; }

/* ------------------------------------------------------------------ life */
.life-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.life-card {
  position: relative;
  min-height: 360px;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  color: var(--ivory);
}
.life-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.7s ease; }
.life-card__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 26, 25, 0.94), rgba(8, 26, 25, 0.08) 70%); z-index: -1; }
.life-card:hover img { transform: scale(1.06); }
.life-card__body { padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.life-card__body em { font-style: normal; font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-bright); }
.life-card__body strong { font-family: var(--font-head); font-weight: 400; font-size: 1.16rem; line-height: 1.3; }
.life-card__body span { margin-top: 8px; font-size: 0.76rem; color: rgba(247, 241, 228, 0.72); display: inline-flex; gap: 6px; align-items: center; }
.life-card:hover .life-card__body span { color: var(--gold-bright); }

/* ------------------------------------------------------------------ cta band */
.cta-band { padding: 0 0 92px; background: var(--bg); }
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-mid) 100%);
  color: var(--ivory);
  border-radius: var(--r-xl);
  padding: 48px 54px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-band__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/pattern.svg") right center / 300px repeat;
  opacity: 0.16;
  z-index: -1;
  mask-image: linear-gradient(90deg, transparent, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
}
.cta-band h2 { color: #fff; margin: 0 0 10px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.cta-band p:not(.kicker) { color: rgba(247, 241, 228, 0.72); margin: 0; max-width: 560px; font-size: 0.94rem; }
.cta-band .kicker { color: var(--gold-bright); }
.cta-band .btn { flex-shrink: 0; }

/* ------------------------------------------------------------------ partners */
.partners__label {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
}
.partners { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.partners::-webkit-scrollbar { display: none; }
.partners__track { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; min-width: min-content; }
.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  height: 92px;
  flex-shrink: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.partner img { height: 62px; width: auto; max-width: 200px; object-fit: contain; filter: grayscale(0.25); transition: filter 0.2s ease; }
.partner:hover { border-color: rgba(201, 164, 92, 0.5); transform: translateY(-2px); }
.partner:hover img { filter: none; }

/* ------------------------------------------------------------------ home contacts */
.contacts-home { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
.contacts-home__info h2 { margin-bottom: 14px; }
.contacts-home__info > p:not(.kicker) { color: var(--muted); max-width: 440px; }
.contact-list { list-style: none; margin: 26px 0 28px; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list li > .icon { color: var(--gold-dark); margin-top: 4px; flex-shrink: 0; }
.contact-list li div { display: flex; flex-direction: column; }
.contact-links { display: flex; align-items: center; gap: 8px; margin: 0; flex-wrap: wrap; }
.contact-links i { font-style: normal; color: var(--muted); }
.contact-links a { font-weight: 600; }
.contact-list li span { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.contact-list li strong, .contact-list li a { font-size: 0.95rem; color: var(--heading); font-weight: 600; }
.contact-list li a:hover { color: var(--accent); }
.contact-list--big li > .icon { color: var(--gold-dark); }
.contact-list--big li strong, .contact-list--big li a { font-size: 1.02rem; }

.map-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-mid);
  color: var(--ivory);
  padding: 32px;
  isolation: isolate;
  border: 1px solid rgba(201, 164, 92, 0.25);
}
.map-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(140deg, rgba(36, 80, 76, 0.9), rgba(10, 32, 31, 0.98)),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(201, 164, 92, 0.1) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(201, 164, 92, 0.1) 39px 40px);
}
.map-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(360px 260px at 60% 35%, rgba(201, 164, 92, 0.22), transparent 70%);
}
.map-card__pattern { position: absolute; inset: 0; background: url("../img/pattern.svg") center / 180px repeat; opacity: 0.1; z-index: -1; }
.map-card__pin {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(201, 164, 92, 0.16);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: pinPulse 3.2s ease-in-out infinite;
}
@keyframes pinPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 164, 92, 0.28); }
  50% { box-shadow: 0 0 0 22px rgba(201, 164, 92, 0); }
}
.map-card__body { display: flex; flex-direction: column; gap: 8px; }
.map-card__body strong { font-family: var(--font-head); font-weight: 400; font-size: 1.28rem; }
.map-card__body span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--gold-bright); }
.map-card:hover .map-card__body span { text-decoration: underline; }

/* ------------------------------------------------------------------ footer */
.footer { background: var(--ink-deep); color: rgba(247, 241, 228, 0.68); position: relative; overflow: hidden; isolation: isolate; }
.footer__pattern {
  position: absolute;
  inset: 0;
  background: url("../img/pattern.svg") center / 260px repeat;
  opacity: 0.06;
  z-index: -1;
  mask-image: linear-gradient(180deg, #000, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr;
  gap: 52px;
  padding-top: 68px;
  padding-bottom: 52px;
}
.footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; align-content: flex-start; }
.footer__brand img { width: 56px; height: 56px; }
.footer__brand strong { display: block; font-family: var(--font-head); font-weight: 400; font-size: 1.24rem; color: var(--ivory); line-height: 1.2; }
.footer__brand span { font-size: 0.74rem; letter-spacing: 0.06em; color: rgba(247, 241, 228, 0.55); }
.footer__brand p { flex-basis: 100%; font-size: 0.86rem; line-height: 1.65; max-width: 380px; margin: 8px 0 0; }
.footer__soc { flex-basis: 100%; display: flex; gap: 10px; margin-top: 8px; }
.footer__soc a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(247, 241, 228, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ivory);
  transition: all 0.2s ease;
}
.footer__soc a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.footer__label { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { font-size: 0.88rem; transition: color 0.2s ease, padding 0.2s ease; }
.footer__nav a:hover { color: var(--gold-bright); padding-left: 4px; }
.footer__contacts { display: flex; flex-direction: column; gap: 12px; }
.footer__contacts .footer__label { margin-bottom: 6px; }
.footer__contacts a { display: flex; align-items: flex-start; gap: 9px; font-size: 0.88rem; line-height: 1.5; transition: color 0.2s ease; }
.footer__contacts a:hover { color: var(--gold-bright); }
.footer__contacts .icon { color: var(--gold); margin-top: 2px; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 26px;
  border-top: 1px solid rgba(247, 241, 228, 0.1);
  font-size: 0.76rem;
  color: rgba(247, 241, 228, 0.44);
}
.footer__bottom p { margin: 0; }
.footer__note a { text-decoration: underline; text-underline-offset: 3px; }
.footer__note a:hover { color: var(--gold-bright); }

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--gold);
  color: #11201f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s ease;
  box-shadow: 0 14px 30px -12px rgba(8, 24, 23, 0.6);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold-bright); }

/* ------------------------------------------------------------------ page head */
.page-head {
  position: relative;
  background: var(--bg-soft);
  padding: 62px 0 54px;
  overflow: hidden;
  isolation: isolate;
}
.page-head__pattern {
  position: absolute;
  inset: 0;
  background: url("../img/pattern.svg") right -40px center / 260px repeat;
  opacity: 0.07;
  z-index: -1;
  mask-image: linear-gradient(90deg, transparent, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
}
.page-head h1 { margin: 0; max-width: 900px; font-size: clamp(1.9rem, 3.8vw, 3rem); }
.page-head__lead { max-width: 720px; margin: 18px 0 0; color: var(--muted); font-size: 1rem; }
.page-head .kicker { margin-bottom: 12px; }

.page-head--image { background: var(--ink); padding: 96px 0 66px; }
.page-head__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -3;
  filter: saturate(0.8);
}
.page-head--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 26, 25, 0.95), rgba(8, 26, 25, 0.55) 60%, rgba(8, 26, 25, 0.35));
  z-index: -2;
}
.page-head--image .page-head__pattern { opacity: 0.14; }
.page-head--image h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3); max-width: 880px; }
.page-head--image .kicker { color: var(--gold-bright); }

.crumbs { background: var(--surface); border-bottom: 1px solid var(--line); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 13px 0; font-size: 0.76rem; }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.crumbs li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-right: 1px solid var(--line-strong);
  border-top: 1px solid var(--line-strong);
  transform: rotate(45deg);
  margin: 0 7px 0 3px;
  opacity: 0.8;
}
.crumbs a { color: var(--muted); transition: color 0.15s ease; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--heading); font-weight: 600; }

/* ------------------------------------------------------------------ news archive */
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 34px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chip:hover { border-color: var(--gold-dark); color: var(--accent); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.filters__count { font-size: 0.78rem; color: var(--muted); }

.news-archive { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(201, 164, 92, 0.4); }
.news-card.is-hidden { display: none; }
.news-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__media .tag { position: absolute; left: 14px; top: 14px; background: rgba(255, 253, 248, 0.94); box-shadow: 0 4px 14px rgba(8, 24, 23, 0.14); }
.news-card__media .tag--olymp { color: #7d5c17; }
.news-card__media .tag--win { color: #a8402d; }
.news-card__body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.news-card__body h2 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; line-height: 1.4; margin: 0 0 10px; letter-spacing: 0; }
.news-card__body h2 a:hover { color: var(--accent); }
.news-card__body p { font-size: 0.86rem; color: var(--muted); line-height: 1.62; margin: 0 0 16px; }
.news-card__meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.74rem; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }
.news-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.news-card__meta a { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--accent); }
.news-card__meta a:hover { gap: 9px; }
.load-more { display: flex; justify-content: center; margin-top: 44px; }
.load-more .btn.is-hidden { display: none; }

/* ------------------------------------------------------------------ article */
.article { background: var(--bg); }
.article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.article__main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 40px 34px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 0.78rem; color: var(--muted); margin-bottom: 24px; }
.article__meta > span:not(.tag) { display: inline-flex; align-items: center; gap: 6px; }
.share {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.74rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.share:hover { border-color: var(--gold-dark); color: var(--accent); }
.share.is-copied { border-color: #4f8a5c; color: #356b3c; background: rgba(70, 128, 78, 0.08); }
.article-hero { margin: 0 0 26px; border-radius: var(--r); overflow: hidden; }
.article-hero img { width: 100%; max-height: 480px; object-fit: cover; }
.page-article .prose > img,
.page-article .prose > p > img,
.page-article .prose .content-img { max-height: 640px; width: auto; margin-left: auto; margin-right: auto; }
.article__aside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 20px; }
.article__back { margin-top: 32px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.post-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: all 0.2s ease;
  min-width: 0;
}
.post-nav__item:hover { border-color: var(--gold-dark); background: var(--bg-soft); }
.post-nav__item span { display: flex; flex-direction: column; min-width: 0; }
.post-nav__item em { font-style: normal; font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.post-nav__item strong { font-size: 0.82rem; font-weight: 600; color: var(--heading); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav__item--next { justify-content: flex-end; text-align: right; }
.post-nav__item .icon { color: var(--accent); flex-shrink: 0; }

.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.aside-card__label { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.aside-news { display: flex; flex-direction: column; gap: 4px; }
.aside-news .news-mini { grid-template-columns: 74px minmax(0, 1fr); gap: 12px; border: 0; padding: 8px 0; border-radius: 0; background: transparent; border-bottom: 1px solid var(--line); }
.aside-news .news-mini:last-child { border-bottom: 0; }
.aside-news .news-mini:hover { transform: none; box-shadow: none; }
.aside-news .news-mini__media { border-radius: 8px; }
.aside-news .news-mini__media img { min-height: 66px; height: 66px; }
.aside-news .news-mini .tag { display: none; }
.aside-news .news-mini h3 { font-size: 0.82rem; margin: 0 0 4px; -webkit-line-clamp: 3; }
.aside-news .news-mini__meta { font-size: 0.68rem; }
.aside-cta {
  background: linear-gradient(140deg, var(--ink) 0%, var(--ink-mid) 100%);
  color: var(--ivory);
  border-radius: var(--r);
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.aside-cta::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg") right bottom / 160px repeat; opacity: 0.14; z-index: -1; }
.aside-cta p { font-family: var(--font-head); font-size: 1.14rem; line-height: 1.4; margin: 0 0 18px; color: #fff; }

/* ------------------------------------------------------------------ prose */
.prose { font-size: 1rem; line-height: 1.75; color: var(--text); overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { scroll-margin-top: 100px; }
.prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); margin: 1.6em 0 0.6em; padding-bottom: 0.3em; border-bottom: 1px solid var(--line); }
.prose .prose-sub {
  font-family: var(--font-head);
  font-size: 1.18rem;
  line-height: 1.35;
  color: var(--heading);
  margin: 30px 0 12px;
  letter-spacing: 0.01em;
}
.prose .prose-sub:first-child { margin-top: 4px; }
.prose .prose-sub--lg {
  font-size: 1.5rem;
  margin: 40px 0 16px;
}

.prose h3 { font-family: var(--font-body); font-size: 1.14rem; font-weight: 700; margin: 1.5em 0 0.5em; letter-spacing: 0; }
.prose h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin: 1.3em 0 0.4em; }
.prose p { margin: 0 0 1.05em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.15s ease; }
.prose a:hover { color: var(--gold-dark); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--gold-dark); }
.prose img, .prose .content-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0.8em 0 1.1em;
  box-shadow: 0 14px 30px -22px rgba(16, 44, 42, 0.5);
}
.prose img[style*="float"], .prose img[align] { margin: 0 0 1em 1em; }
.prose figure { margin: 1.2em 0; }
.prose figcaption { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 8px; }
.prose blockquote {
  margin: 1.4em 0;
  padding: 20px 24px;
  border-left: 3px solid var(--gold);
  background: var(--bg-soft);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-head);
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--heading);
}
.prose blockquote p:last-child { margin: 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.prose iframe { width: 100%; border: 0; border-radius: 12px; }
.iframe-wrap { position: relative; margin: 1.2em 0; border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.iframe-wrap iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; min-height: 220px; }

.table-wrap { width: 100%; overflow-x: auto; margin: 1.3em 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 520px; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--ink); color: var(--ivory); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.03em; }
.prose tbody tr:nth-child(even) { background: rgba(16, 44, 42, 0.03); }
.prose td p:last-child { margin: 0; }

.prose .doc-link {
  display: inline-flex;
  flex-wrap: wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  text-decoration: none;
  color: var(--heading);
  border-bottom: 1px solid rgba(201, 164, 92, 0.5);
  transition: color 0.15s ease, border-color 0.15s ease;
  max-width: 100%;
}
.prose .doc-link::before {
  content: attr(data-ext);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--coral);
  border-radius: 3px;
  padding: 2px 3px;
  min-width: 26px;
  flex-shrink: 0;
  line-height: 1.2;
}
.prose .doc-link[data-ext="DOC"]::before,
.prose .doc-link[data-ext="DOCX"]::before { background: #346a9e; }
.prose .doc-link[data-ext="XLS"]::before,
.prose .doc-link[data-ext="XLSX"]::before { background: #3e7a4d; }
.prose .doc-link[data-ext="ZIP"]::before,
.prose .doc-link[data-ext="RAR"]::before { background: #6d5b8a; }
.prose .doc-link[data-ext="JPG"]::before,
.prose .doc-link[data-ext="PNG"]::before { background: #8a6a3d; }
.prose .doc-link:hover { color: var(--accent); border-color: currentColor; }
.prose .link-external::after {
  content: "↗";
  font-size: 0.75em;
  margin-left: 3px;
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
}
.prose .link-external { text-decoration-style: dotted; }

.prose-inner { display: block; }
.entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 1.4em 0; }
.entry-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  transition: all 0.25s ease;
  min-width: 0;
}
.entry-card:hover { border-color: rgba(201, 164, 92, 0.5); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.entry-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.entry-card__media img { width: 100%; height: 100%; object-fit: cover; }
.entry-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.entry-card__body h3 { font-family: var(--font-body); font-size: 0.96rem; font-weight: 700; line-height: 1.42; margin: 10px 0 8px; }
.entry-card__body p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin: 0 0 14px; }
.entry-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); }

/* ------------------------------------------------------------------ section pages */
.page-layout { display: grid; grid-template-columns: 292px minmax(0, 1fr); gap: 44px; align-items: start; }
.page-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; max-height: calc(100vh - 110px); overflow-y: auto; scrollbar-width: thin; padding-right: 4px; }
.side-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 18px; }
.side-nav__label, .side-nav__group > p {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.side-nav__group { margin-bottom: 18px; }
.side-nav__group:last-child { margin-bottom: 0; }
.side-nav__group > p { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.side-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.side-nav li a {
  display: block;
  padding: 8px 10px;
  margin-left: -10px;
  border-radius: 7px;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--text);
  border-left: 2px solid transparent;
  transition: all 0.18s ease;
}
.side-nav li a:hover { background: var(--bg-soft); color: var(--accent); }
.side-nav li a.is-active { background: var(--bg-soft); color: var(--heading); font-weight: 700; border-left-color: var(--gold); }
.side-contact {
  background: var(--ink);
  color: var(--ivory);
  border-radius: var(--r);
  padding: 20px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.side-contact::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg") right bottom / 150px repeat; opacity: 0.14; z-index: -1; }
.side-contact p { font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.side-contact a { display: block; font-size: 1.06rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.side-contact a:hover { color: var(--gold-bright); }
.side-contact span { font-size: 0.72rem; color: rgba(247, 241, 228, 0.6); }
.page-main { min-width: 0; }
.prose--page { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px 40px; box-shadow: var(--shadow-sm); }
.prose--page > h1:first-child, .prose--page > h2:first-child { margin-top: 0; }
.page-help {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 28px;
}
.page-help strong { font-family: var(--font-head); font-weight: 400; font-size: 1.1rem; display: block; margin-bottom: 4px; color: var(--heading); }
.page-help p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.page-help .btn { flex-shrink: 0; }
.lead { font-size: 1.06rem; color: var(--heading); line-height: 1.7; }
.page-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 32px; }
.page-stats div { background: var(--bg-soft); border-radius: 12px; padding: 16px 18px; border-left: 2px solid var(--gold); }
.page-stats strong { display: block; font-family: var(--font-head); font-size: 1.65rem; font-weight: 400; color: var(--heading); line-height: 1.1; }
.page-stats span { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; display: block; }

/* ------------------------------------------------------------------ sitemap */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.sitemap-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px; }
.sitemap-block h2 { font-size: 1.2rem; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sitemap-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.sitemap-list > li > a { display: block; padding: 5px 0; font-size: 0.86rem; color: var(--text); }
.sitemap-list > li > a:hover { color: var(--accent); }
.sitemap-list ul { list-style: none; margin: 2px 0 10px; padding: 0 0 0 12px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 1px; }
.sitemap-list ul a { display: block; padding: 3px 0; font-size: 0.78rem; color: var(--muted); }
.sitemap-list ul a:hover { color: var(--accent); }

/* ------------------------------------------------------------------ contacts page */
.contacts-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.contacts-page__main h2 { margin-bottom: 14px; }
.contacts-page__note { margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px; }
.contacts-page__note h3 { font-family: var(--font-head); font-size: 1.2rem; margin: 0 0 8px; }
.contacts-page__note p { font-size: 0.9rem; color: var(--muted); margin-bottom: 16px; }
.contacts-page__aside { display: flex; flex-direction: column; gap: 20px; }
.link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; font-size: 0.86rem; border-bottom: 1px dashed var(--line); transition: color 0.15s ease; }
.link-list li:last-child a { border-bottom: 0; }
.link-list a .icon { color: var(--accent); }
.link-list a:hover { color: var(--accent); }

/* ------------------------------------------------------------------ 404 */
.notfound { padding: 110px 0 130px; text-align: center; }
.notfound h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 16px; }
.notfound p:not(.kicker) { color: var(--muted); max-width: 520px; margin: 0 auto 32px; }
.notfound .kicker { justify-content: center; }
.notfound__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ------------------------------------------------------------------ a11y */
.a11y,
.search-modal {
  --bg: #f7f1e4;
  --bg-soft: #f1e8d7;
  --surface: #fffdf8;
  --paper: #fffdf8;
  --sand: #efe5d1;
  --text: #22302e;
  --heading: #102c2a;
  --muted: #5f6d69;
  --line: rgba(16, 44, 42, 0.14);
  --line-strong: rgba(16, 44, 42, 0.26);
  --accent: #a8813c;
}

.a11y {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 94vw);
  background: var(--paper);
  color: var(--text);
  z-index: 230;
  transform: translateX(102%);
  transition: transform 0.38s cubic-bezier(0.22, 0.8, 0.28, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -30px 0 70px -30px rgba(6, 20, 19, 0.55);
}
.a11y.is-open { transform: translateX(0); }
.a11y__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  background: var(--ink);
  color: var(--ivory);
}
.a11y__head strong { font-size: 1rem; font-weight: 600; }
.a11y__head button { background: none; border: 0; color: var(--ivory); cursor: pointer; display: inline-flex; padding: 4px; }
.a11y__body { padding: 20px 24px 32px; overflow-y: auto; }
.a11y__group { border: 0; padding: 0; margin: 0 0 22px; }
.a11y__group legend { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 0 0 9px; width: 100%; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.a11y__row { display: flex; flex-wrap: wrap; gap: 8px; }
.a11y__row button {
  flex: 1 1 auto;
  min-width: 62px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.a11y__row button:hover { border-color: var(--gold-dark); }
.a11y__row button.is-active { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.a11y__row--themes button { min-width: 56px; height: 48px; font-weight: 700; }
button.theme-dot--default { background: #f7f1e4; color: #102c2a; }
button.theme-dot--dark { background: #121514; color: #f0ede6; }
button.theme-dot--blue { background: #eaf2fb; color: #0d2b4a; }
button.theme-dot--green { background: #eef6ec; color: #16351f; }
.a11y__row--themes button.is-active { outline: 2px solid var(--gold); outline-offset: 2px; }
.a11y__reset { width: 100%; margin-top: 4px; }
.a11y__hint { font-size: 0.74rem; color: var(--muted); margin: 14px 0 0; line-height: 1.5; }

/* a11y modes */
html.a11y-on body { line-height: 1.8; }
html.a11y-on .prose a { text-decoration-thickness: 2px; }

html[data-size="large"] { font-size: 18.5px; }
html[data-size="xlarge"] { font-size: 21px; }


html[data-spacing="medium"] .prose { line-height: 2; }
html[data-spacing="large"] .prose { line-height: 2.3; }
html[data-spacing="medium"] .prose p { margin-bottom: 1.4em; }
html[data-spacing="large"] .prose p { margin-bottom: 1.8em; }

html[data-font="arial"] body,
html[data-font="arial"] .prose,
html[data-font="arial"] .nav__link,
html[data-font="arial"] .btn { font-family: Arial, Helvetica, sans-serif; }
html[data-font="arial"] h1, html[data-font="arial"] h2, html[data-font="arial"] h3,
html[data-font="arial"] h4, html[data-font="arial"] .brand__text strong,
html[data-font="arial"] .hero h1, html[data-font="arial"] .quote p,
html[data-font="arial"] .life-card__body strong { font-family: Arial, Helvetica, sans-serif; font-weight: 700; }
html[data-font="times"] body,
html[data-font="times"] .prose,
html[data-font="times"] .nav__link,
html[data-font="times"] .btn { font-family: "Times New Roman", Times, serif; }
html[data-font="times"] h1, html[data-font="times"] h2, html[data-font="times"] h3 { font-family: "Times New Roman", Times, serif; }

html[data-images="mono"] img { filter: grayscale(1) !important; }
html[data-images="hide"] main img,
html[data-images="hide"] .news-card__media img,
html[data-images="hide"] .life-card img,
html[data-images="hide"] .hero__frame img { opacity: 0; }

html.theme-dark {
  --bg: #101716; --bg-soft: #16201f; --bg-tint: #16201f; --surface: #1a2524;
  --text: #dde3da; --heading: #f4efe3; --muted: #a2aeaa;
  --line: rgba(230, 220, 200, 0.16); --line-strong: rgba(230, 220, 200, 0.3);
  --accent: #d9b874;
}
html.theme-blue {
  --bg: #eef4fb; --bg-soft: #e1ecf9; --bg-tint: #dbe8f7; --surface: #ffffff;
  --text: #17324a; --heading: #0b2b47; --muted: #4f6b85;
  --line: rgba(11, 43, 71, 0.15); --line-strong: rgba(11, 43, 71, 0.28);
  --accent: #1f6fb2;
}
html.theme-green {
  --bg: #f0f7ee; --bg-soft: #e3f0e1; --bg-tint: #dcebd9; --surface: #ffffff;
  --text: #1d3724; --heading: #12301b; --muted: #55705d;
  --line: rgba(18, 48, 27, 0.16); --line-strong: rgba(18, 48, 27, 0.3);
  --accent: #2f7a46;
}
html.theme-dark .header,
html.theme-blue .header,
html.theme-green .header { background: var(--surface); }
html.theme-dark .header .brand__text strong,
html.theme-blue .header .brand__text strong,
html.theme-green .header .brand__text strong { color: var(--heading); }
html.theme-dark .page-head__pattern,
html.theme-dark .footer__pattern { opacity: 0.05; }
html.theme-dark .quote { background: rgba(255, 255, 255, 0.045); }
html.theme-dark .partner { background: #fffdf8; }
html.theme-dark .mega__col a:hover { background: rgba(255, 255, 255, 0.06); }
html.theme-dark .side-nav li a:hover,
html.theme-dark .side-nav li a.is-active { background: rgba(255, 255, 255, 0.06); }
html.theme-dark .drawer__search { background: rgba(255, 255, 255, 0.05); }
html.theme-dark .entry-card:hover { background: var(--surface); }
html.theme-dark .crumbs { background: var(--surface); }

/* ------------------------------------------------------------------ search */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(6, 20, 19, 0.72);
  backdrop-filter: blur(6px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.search-modal.is-open { opacity: 1; visibility: visible; }
.search-modal__head { position: sticky; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); z-index: 2; }
.search-modal__bar { display: flex; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.search-modal__bar > .icon { color: var(--muted); }
.search-modal__bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: var(--heading);
  padding: 6px 0;
}
.search-modal__bar input:focus { outline: none; }
.search-modal__bar input::-webkit-search-cancel-button,
.search-modal__bar input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-modal__bar input::placeholder { color: var(--muted); opacity: 0.7; }
.search-modal__bar button { background: var(--bg-soft); border: 0; border-radius: 50%; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--heading); }
.search-modal__bar button:hover { background: var(--sand); }
.search-modal__body { padding-top: 30px; padding-bottom: 60px; max-width: 900px; }
.search-modal__hint { font-size: 0.86rem; color: rgba(247, 241, 228, 0.72); margin-bottom: 18px; }
.search-results { display: flex; flex-direction: column; gap: 10px; }
.search-result {
  display: block;
  background: var(--paper);
  border-radius: 12px;
  padding: 18px 22px;
  border: 1px solid transparent;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.search-result:hover { border-color: var(--gold); transform: translateX(3px); }
.search-result__kind { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.search-result h3 { font-family: var(--font-body); font-size: 0.98rem; font-weight: 700; margin: 5px 0 5px; }
.search-result p { font-size: 0.82rem; color: var(--muted); margin: 0; line-height: 1.55; }
.search-result mark { background: rgba(201, 164, 92, 0.3); color: inherit; border-radius: 2px; padding: 0 1px; }
.search-empty { color: rgba(247, 241, 228, 0.8); font-size: 0.9rem; padding: 20px 0; }

/* ------------------------------------------------------------------ reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.8, 0.28, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .mega__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega__promo { display: none; }
  .hero__inner { gap: 44px; }
  .hero__frame img { height: 420px; }
  .header__phone { display: none; }
  .news-lead { min-height: 470px; }
  .about { gap: 48px; }
  .about__main { height: 470px; }
  .footer__top { gap: 36px; }
}

@media (max-width: 1080px) {
  .header { position: sticky; top: 0; z-index: 95; box-shadow: 0 8px 24px -18px rgba(8, 24, 23, 0.4); }
  .nav-wrap { display: none; }
  .burger { display: inline-flex; }
  .header__aside { display: none; }
  .header__inner { padding-top: 14px; padding-bottom: 14px; }
  .section { padding: 72px 0; }
  .section--page { padding: 44px 0 76px; }
  .news-archive { grid-template-columns: repeat(2, 1fr); }
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
  .life-grid { grid-template-columns: repeat(2, 1fr); }
  .life-card { min-height: 320px; }
  .article__layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
  .article__main { padding: 30px 30px; }
  .page-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 30px; }
  .prose--page { padding: 30px 32px; }
  .contacts-page { grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; }
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
  .page-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .topbar__left .topbar__item:first-child { display: none; }
  .hero { padding-top: 52px; }
  .hero__inner { grid-template-columns: 1fr; gap: 54px; padding-bottom: 62px; }
  .hero__visual { max-width: 540px; margin: 0 auto; width: 100%; }
  .hero__frame img { height: 400px; }
  .hero__badge { left: -14px; bottom: 30px; width: 108px; height: 108px; }
  .hero__note { position: static; margin: 22px 0 0; max-width: none; }
  .hero__stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid rgba(247, 241, 228, 0.1); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .news-list { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; }
  .news-lead { min-height: 420px; }
  .about { grid-template-columns: 1fr; gap: 56px; }
  .about__visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .about__main { height: 440px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; padding: 38px 34px; }
  .contacts-home { grid-template-columns: 1fr; gap: 34px; }
  .map-card { min-height: 320px; }
  .article__layout { grid-template-columns: 1fr; }
  .article__aside { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .article__aside .aside-card { grid-column: 1 / -1; }
  .page-layout { grid-template-columns: 1fr; }
  .page-side { position: static; max-height: none; overflow: visible; order: 2; }
  .page-main { order: 1; }
  .contacts-page { grid-template-columns: 1fr; }
  .contacts-page__aside { display: grid; grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: 6px; }
  .post-nav { grid-template-columns: 1fr; }
  .search-modal__body { padding-top: 20px; }
}

@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .topbar__inner { min-height: 38px; font-size: 0.72rem; }
  .topbar__right { gap: 12px; }
  .topbar__btn span { display: none; }
  .topbar__btn .icon { width: 19px; height: 19px; }
  .header__inner { gap: 12px; }
  .brand { flex: 1; }
  .brand__mark { width: 50px; height: 50px; }
  .brand__text strong { font-size: 15px; line-height: 1.2; }
  .brand__text em { font-size: 0.68rem; }
  .brand__small { font-size: 0.58rem; letter-spacing: 0.16em; }
  .section { padding: 56px 0; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 30px; }
  .section__note { max-width: none; }
  .news-archive { grid-template-columns: 1fr; }
  .dir-grid { grid-template-columns: 1fr; }
  .news-list { grid-template-columns: 1fr; }
  .news-lead { min-height: 360px; }
  .news-lead__body { padding: 24px; }
  .life-grid { grid-template-columns: 1fr; }
  .life-card { min-height: 300px; }
  .quick-grid { grid-template-columns: 1fr; transform: translateY(-24px); margin-bottom: -24px; }
  .hero__frame { border-radius: 120px 120px 22px 22px; }
  .hero__frame img { height: 340px; border-radius: 112px 112px 14px 14px; }
  .hero__frame::before { display: none; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.9rem); }
  .hero__note { display: none; }
  .about__main { height: 360px; border-radius: 140px 140px 20px 20px; }
  .about__small { width: 170px; height: 128px; left: -10px; border-width: 6px; }
  .about__year { width: 88px; height: 88px; top: 40px; right: -4px; }
  .about__year strong { font-size: 1.25rem; }
  .cta-band { padding-bottom: 56px; }
  .cta-band__inner { padding: 30px 24px; border-radius: 22px; }
  .footer__top { grid-template-columns: 1fr; padding-top: 48px; }
  .footer__brand { grid-column: auto; }
  .partners__track { flex-wrap: nowrap; justify-content: flex-start; }
  .article__main, .prose--page { padding: 24px 20px; border-radius: 18px; }
  .article__aside { grid-template-columns: 1fr; }
  .page-help { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
  .page-help .btn { width: 100%; }
  .page-stats { grid-template-columns: 1fr 1fr; }
  .sitemap-grid { grid-template-columns: 1fr; }
  .contacts-page__aside { grid-template-columns: 1fr; }
  .entry-grid { grid-template-columns: 1fr; }
  .crumbs ol { font-size: 0.7rem; }
  .page-head { padding: 44px 0 38px; }
  .page-head--image { padding: 70px 0 46px; }
  .news-lead h3 { font-size: 1.3rem; }
  .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
  .filters { flex-direction: column; align-items: flex-start; gap: 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  .search-modal__bar { gap: 10px; }
  .search-result { padding: 14px 16px; }
  .a11y__body { padding: 16px 18px 28px; }
}

@media (max-width: 480px) {
  .topbar__left { display: none; }
  .topbar__inner { justify-content: flex-end; }
  .brand__text em { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__badges { flex-direction: column; gap: 8px; }
  .stat { padding: 20px 16px; }
  .stat strong { font-size: 1.45rem; }
  .contact-list li strong, .contact-list li a { font-size: 0.9rem; }
  .news-mini { grid-template-columns: 96px minmax(0, 1fr); }
  .news-mini h3 { font-size: 0.85rem; }
  .month-menu { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* print */
@media print {
  .topbar, .nav-wrap, .header__aside, .burger, .drawer, .overlay, .to-top,
  .a11y, .search-modal, .footer__soc, .share, .post-nav, .article__aside,
  .page-side, .page-help, .crumb, .crumbs { display: none !important; }
  body { background: #fff; }
  .header { border: 0; }
  .article__layout, .page-layout { display: block; }
  .article__main, .prose--page { border: 0; padding: 0; box-shadow: none; }
}
