/* =========================================================================
   АНО «Академия молодых лидеров» — общий слой: шрифты, темы, шапка, главная,
   форма, подвал. У каждого направления дополнительно свой файл css/<slug>.css
   ========================================================================= */

/* ---------- шрифты (локально) ---------- */
@font-face { font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/static/fonts/literata-cyrillic-opsz-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/static/fonts/literata-latin-opsz-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 200 900; font-display: swap; src: url(/static/fonts/literata-cyrillic-opsz-italic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 200 900; font-display: swap; src: url(/static/fonts/literata-latin-opsz-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url(/static/fonts/golos-text-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url(/static/fonts/golos-text-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url(/static/fonts/golos-text-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url(/static/fonts/golos-text-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url(/static/fonts/golos-text-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url(/static/fonts/golos-text-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
/* шрифты направлений */
@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap; src: url(/static/fonts/unbounded-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap; src: url(/static/fonts/unbounded-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/static/fonts/playfair-display-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/static/fonts/playfair-display-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap; src: url(/static/fonts/playfair-display-cyrillic-wght-italic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap; src: url(/static/fonts/playfair-display-latin-wght-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap; src: url(/static/fonts/onest-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap; src: url(/static/fonts/onest-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }

/* ---------- бренд и тема по умолчанию (главная) ---------- */
:root {
  --forest: #1E3A32; --forest-deep: #152B25; --moss: #56704F; --sage: #B6C4AD; --sage-soft: #D3DCCB;
  --kraft: #C49E73; --kraft-soft: #E2D2BA; --brass-light: #DDBE7A; --paper: #ECEEE7; --sheet: #F7F8F4;
  --ink: #15241F;

  --serif: "Literata", "PT Serif", Georgia, serif;
  --sans: "Golos Text", "Segoe UI", system-ui, sans-serif;

  --wrap: 1200px; --gutter: clamp(16px, 4vw, 40px);
  --r-xl: 32px; --r-lg: 24px; --r: 16px; --r-sm: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* семантические токены, которые переопределяет каждое направление */
  --c-bg: var(--paper); --c-surface: var(--sheet); --c-surface-2: #E1E6DA;
  --c-ink: var(--ink); --c-muted: #4B5B53; --c-line: rgba(21, 36, 31, .13);
  --c-accent: var(--moss); --c-accent-soft: var(--sage-soft);
  --c-btn: var(--forest); --c-btn-ink: var(--sheet); --c-btn-hover: var(--forest-deep);
  --c-hero: var(--forest); --c-hero-ink: var(--sheet); --c-hero-muted: rgba(247, 248, 244, .78);
  --c-hdr: rgba(21, 43, 37, .72); --c-hdr-ink: var(--sheet); --c-hdr-active: var(--sage); --c-hdr-active-ink: var(--forest);
  --c-footer: var(--forest-deep); --c-footer-ink: var(--sheet);
  --c-input: #fff; --c-error: #A2412F;
  --font-display: var(--serif);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font: 400 1.0625rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.015em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; }
h3 { font-size: 1.1875rem; line-height: 1.3; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brass-light); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sheet); color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent; font: 500 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--c-btn); color: var(--c-btn-ink); }
.btn--primary:hover { background: var(--c-btn-hover); }
.btn--light { background: var(--sheet); color: var(--forest); }
.btn--light:hover { background: var(--kraft-soft); }
.btn--line { border-color: color-mix(in srgb, var(--c-hero-ink) 40%, transparent); color: var(--c-hero-ink); }
.btn--line:hover { border-color: var(--c-hero-ink); }
.btn--ghost { border-color: var(--c-line); color: var(--c-ink); background: transparent; }
.btn--ghost:hover { border-color: var(--c-ink); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }

/* ---------- шапка: стеклянная капсула ---------- */
.site-header { position: fixed; inset: 12px 0 auto; z-index: 50; pointer-events: none; }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 8px 8px 8px 10px; pointer-events: auto;
  background: var(--c-hdr); color: var(--c-hdr-ink); border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c-hdr-ink) 12%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .45);
  max-width: calc(var(--wrap) + 2 * var(--gutter) - 2 * var(--gutter) + 16px); width: calc(100% - 2 * var(--gutter) + 16px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 999px; background: var(--sheet); color: var(--forest); }
.brand__mark .emblem { width: 25px; height: 27px; margin-top: -1px; }
.brand__name { font: 500 .88rem/1.15 var(--sans); }
.menu__panel { display: flex; align-items: center; gap: 18px; }
.menu__main, .menu__aux { display: flex; gap: 2px; }
.menu__panel a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-size: .95rem; color: color-mix(in srgb, var(--c-hdr-ink) 85%, transparent); transition: background-color .2s, color .2s; }
.menu__panel a:hover { color: var(--c-hdr-ink); background: color-mix(in srgb, var(--c-hdr-ink) 10%, transparent); }
.menu__panel a[aria-current="page"] { color: var(--c-hdr-active-ink); background: var(--c-hdr-active); }
.menu__aux { padding-left: 14px; border-left: 1px solid color-mix(in srgb, var(--c-hdr-ink) 18%, transparent); }
.menu__journal { font-family: var(--serif); font-style: italic; }
.menu__toggle { display: none; }
@media (max-width: 1180px) {
  .menu__toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; background: transparent; color: var(--c-hdr-ink); border: 1.5px solid color-mix(in srgb, var(--c-hdr-ink) 25%, transparent); border-radius: 999px; font: 500 .95rem var(--sans); cursor: pointer; }
  .menu__bars, .menu__bars::before, .menu__bars::after { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s; }
  .menu__bars::before, .menu__bars::after { content: ""; position: absolute; left: 0; }
  .menu__bars::before { top: -5px; } .menu__bars::after { top: 5px; }
  .menu.is-open .menu__bars { background: transparent; }
  .menu.is-open .menu__bars::before { transform: translateY(5px) rotate(45deg); }
  .menu.is-open .menu__bars::after { transform: translateY(-5px) rotate(-45deg); }
  .menu__panel { position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; align-items: stretch; gap: 6px; padding: 12px; background: var(--c-hdr); color: var(--c-hdr-ink); border-radius: var(--r-lg); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); }
  .site-header__row { position: relative; }
  .js .menu:not(.is-open) .menu__panel { display: none; }
  .menu__main, .menu__aux { flex-direction: column; }
  .menu__aux { padding: 6px 0 0; border-left: 0; border-top: 1px solid color-mix(in srgb, var(--c-hdr-ink) 15%, transparent); }
  .menu__panel a { padding: 13px 16px; font-size: 1.05rem; }
}

/* ---------- общий первый экран (сведения, 404) ---------- */
.hero { position: relative; background: var(--c-hero); color: var(--c-hero-ink); overflow: hidden; }
.hero--slim .wrap { padding-top: 136px; padding-bottom: 72px; }
.hero__title { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.04; }
.hero__lead { max-width: 34em; font-size: 1.125rem; color: var(--c-hero-muted); }
.hero--slim .hero__lead { margin-top: 14px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.crumbs { display: flex; gap: 8px; font-size: .9rem; color: var(--c-hero-muted); margin-bottom: 20px; }
.crumbs a:hover { color: var(--c-hero-ink); }
.grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ==========================================================================
   ГЛАВНАЯ
   ========================================================================== */
.home-hero { position: relative; background: radial-gradient(120% 90% at 85% 30%, #2C5145 0%, var(--forest) 45%, var(--forest-deep) 100%); color: var(--sheet); overflow: hidden; }
.home-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; min-height: min(760px, 100svh); padding-top: 116px; padding-bottom: 56px; }
.home-hero__org { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(247, 248, 244, .08); border: 1px solid rgba(247, 248, 244, .14); font-size: .9rem; color: var(--sage); margin-bottom: 24px; }
.home-hero__org i { width: 8px; height: 8px; border-radius: 50%; background: var(--brass-light); box-shadow: 0 0 0 4px rgba(221, 190, 122, .2); }
.home-hero__title { font: 400 clamp(3rem, 7vw, 6rem)/.94 var(--serif); letter-spacing: -.035em; margin-bottom: 24px; }
.home-hero__title em { font-style: italic; color: var(--kraft-soft); }
.home-hero__lead { max-width: 30em; font-size: 1.125rem; color: rgba(247, 248, 244, .8); }

/* диорама из бумажных слоёв */
.diorama { position: relative; perspective: 1500px; aspect-ratio: 5 / 4; width: 100%; max-width: 620px; justify-self: end; --rx: 0deg; --ry: 0deg; }
.diorama__stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); will-change: transform; }
.dl { position: absolute; inset: 0; transform: translateZ(var(--z)) scale(var(--s, 1)); }
.dl svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dl--back { border-radius: 30px; background: linear-gradient(180deg, #EADFC9, #DCCFB4); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.dl--clip svg { clip-path: inset(0 round 30px); }
.dl--cast svg { filter: drop-shadow(0 -6px 10px rgba(60, 40, 20, .22)); }
.dl--frame { border-radius: 32px; box-shadow: inset 0 0 0 14px #B88E5E, inset 0 0 0 15px rgba(0,0,0,.18), inset 0 10px 22px 14px rgba(60, 40, 20, .25); }
.dl--frame::after { content: ""; position: absolute; inset: 0; border-radius: 32px; background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 40%); pointer-events: none; }
.dl--cloud { animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateZ(var(--z)) scale(var(--s, 1)) translateX(26px); } }
@media (prefers-reduced-motion: no-preference) {
  .diorama.is-assembling .dl { animation: assemble 1.4s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
  .diorama.is-assembling .dl--cloud { animation: assemble 1.4s var(--ease) both, drift 14s 1.6s ease-in-out infinite alternate; animation-delay: calc(var(--i) * 70ms), 1.6s; }
}
@keyframes assemble { from { opacity: 0; transform: translateZ(calc(var(--z) + 260px)) scale(var(--s, 1)) translateY(-30px); } to { opacity: 1; transform: translateZ(var(--z)) scale(var(--s, 1)); } }
.diorama__shadow { position: absolute; left: 8%; right: 8%; bottom: -7%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.45), transparent); filter: blur(6px); transform: translateZ(-160px) rotateX(70deg); }

/* направления */
.dirs-sec { position: relative; padding: clamp(40px, 5vw, 64px) 0 clamp(40px, 5vw, 64px); }
.dirs-sec__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 32px; margin-bottom: 24px; }
.dirs-sec__head p { color: var(--c-muted); max-width: 32em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.facts li { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--c-surface); font-size: .95rem; color: var(--c-muted); }
.facts strong { font: 600 1.1rem var(--serif); color: var(--c-ink); }

.dirs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; perspective: 1200px; }
.dir { position: relative; display: grid; grid-template: "role role" auto "art art" 1fr "body go" auto / minmax(0, 1fr) auto; align-items: end; gap: 0 12px; min-height: 390px; padding: 22px; border-radius: var(--r-xl); overflow: hidden; text-decoration: none; isolation: isolate;
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .5s var(--ease), box-shadow .5s var(--ease); box-shadow: 0 2px 0 rgba(0,0,0,.04); }
.dir.is-tilting { transition: transform .08s linear, box-shadow .5s var(--ease); }
.dir:hover { box-shadow: 0 30px 60px -30px rgba(21, 36, 31, .55); }
.dir::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.28), transparent 45%); }
.dir:hover::after { opacity: 1; }
.dir__role { grid-area: role; position: relative; z-index: 1; font-size: .88rem; }
.dir__art { grid-area: art; align-self: center; display: grid; place-items: center; padding: 10px 0; pointer-events: none; transform: translate3d(calc(var(--ty, 0deg) * -2px / 1deg), calc(var(--tx, 0deg) * 2px / 1deg), 0); transition: transform .5s var(--ease); }
.dir__art svg { width: min(170px, 80%); height: auto; filter: drop-shadow(0 14px 18px rgba(0,0,0,.18)); }
.dir:hover .dir__art svg { animation: art-float 3s ease-in-out infinite; }
@keyframes art-float { 50% { transform: translateY(-8px); } }
.dir__body { grid-area: body; position: relative; z-index: 1; }
.dir__go { grid-area: go; }
.dir__name { display: block; margin-bottom: 8px; font-size: clamp(1.55rem, 2.3vw, 2rem); line-height: 1.05; }
.dir__text { display: block; font-size: .95rem; max-width: 18em; }
.dir__go { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; transition: transform .35s var(--ease); }
.dir:hover .dir__go { transform: rotate(-45deg); }

.dir--student { background: #E9F1C6; color: #17221D; }
.dir--student .dir__name { font-family: "Unbounded", var(--sans); font-weight: 700; letter-spacing: -.02em; }
.dir--student .dir__go { background: #17221D; color: #D5EA5B; }
.dir--student .dir__role { color: #4F6420; }
.dir--business { background: radial-gradient(120% 80% at 70% 20%, #2A2219, #0E1411 70%); color: #EDE6D8; }
.dir--business .dir__name { font-family: "Playfair Display", serif; font-style: italic; font-weight: 500; }
.dir--business .dir__role { color: #C9975E; }
.dir--business .dir__go { background: #C9975E; color: #0E1411; }
.dir--business .dir__text { color: rgba(237, 230, 216, .75); }
.dir--government { background: #0F2422; color: #E6F0EC;
  background-image: linear-gradient(rgba(143, 211, 193, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 211, 193, .08) 1px, transparent 1px); background-size: 24px 24px; }
.dir--government .dir__name { font-family: "Onest", var(--sans); font-weight: 700; letter-spacing: -.03em; }
.dir--government .dir__role { color: #8FD3C1; }
.dir--government .dir__go { background: #8FD3C1; color: #0F2422; }
.dir--government .dir__text { color: rgba(230, 240, 236, .72); }
.dir--spo { background: linear-gradient(170deg, #D9E3C8, #B9CCA2); color: #1C2A20; }
.dir--spo .dir__name { font-family: var(--serif); font-weight: 500; }
.dir--spo .dir__role { color: #3E5A33; font-family: var(--serif); font-style: italic; font-size: .98rem; }
.dir--spo .dir__go { background: #22382B; color: #E8ECDF; }

/* журнал */
.journal { padding: 0 0 clamp(40px, 5vw, 64px); }
.journal__card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-xl); background: linear-gradient(120deg, #E8D9C1, #D9C3A3); position: relative; overflow: hidden; }
.journal__card::before { content: ""; position: absolute; right: -80px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.journal__cover-wrap { perspective: 900px; }
.journal__cover { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 3 / 4; padding: 20px 20px 18px; border-radius: 6px 16px 16px 6px; background: linear-gradient(160deg, #24453B, var(--forest-deep)); color: var(--sheet);
  transform: rotateY(calc(-14deg + var(--ty, 0deg))) rotateX(calc(4deg + var(--tx, 0deg))); transition: transform .6s var(--ease); box-shadow: 18px 26px 40px -18px rgba(21, 36, 31, .65), inset 7px 0 0 rgba(0, 0, 0, .2); }
.journal__cover-kicker { font-size: .85rem; color: var(--sage); }
.journal__cover-name { font: italic 500 2.7rem/1 var(--serif); letter-spacing: -.02em; }
.journal__cover-host { font: 500 .85rem var(--sans); color: var(--brass-light); }
.journal__body { position: relative; max-width: 620px; }
.journal__body h2 { margin-bottom: 12px; }
.journal__body > p { color: #4D4536; margin-bottom: 22px; }
.journal__list { display: grid; margin-bottom: 22px; border-top: 1px solid rgba(21, 36, 31, .16); }
.journal__list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(21, 36, 31, .16); }
.journal__list a { font: 500 1.05rem var(--serif); text-decoration: none; }
.journal__list a:hover { text-decoration: underline; }
.journal__list time { flex: none; font-size: .9rem; color: #6A604D; }

/* ==========================================================================
   ОБЩИЕ КОМПОНЕНТЫ НАПРАВЛЕНИЙ (цвета берутся из темы)
   ========================================================================== */
.sec { padding: clamp(40px, 5.5vw, 76px) 0; }
.sec__title { margin-bottom: clamp(20px, 3vw, 32px); }
.others { padding: 0 0 clamp(32px, 4vw, 48px); }
.others__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.others__label { color: var(--c-muted); margin-right: 6px; }
.others__link { padding: 10px 18px; border-radius: 999px; background: var(--c-surface); color: var(--c-ink); text-decoration: none; font-weight: 500; border: 1px solid var(--c-line); transition: border-color .2s; }
.others__link:hover { border-color: var(--c-ink); }

/* ---------- форма ---------- */
.contact { padding: clamp(40px, 5.5vw, 76px) 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact__intro h2 { margin-bottom: 14px; }
.contact__intro > p { color: var(--c-muted); margin-bottom: 24px; max-width: 30em; }
.contact__direct { margin: 0; display: grid; gap: 10px; }
.contact__direct div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; }
.contact__direct dt { color: var(--c-muted); }
.contact__direct dd { margin: 0; font-weight: 500; }
.contact__direct a { text-decoration: none; }
.contact__direct a:hover { text-decoration: underline; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: clamp(20px, 3vw, 30px); background: var(--c-surface); border-radius: var(--r-lg); border: 1px solid var(--c-line); }
.field { display: grid; gap: 6px; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .92rem; font-weight: 500; }
.field__opt { font-weight: 400; color: var(--c-muted); }
.field input[type="text"], .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--c-line); background: var(--c-input); color: var(--c-ink); font: 400 1rem/1.4 var(--sans); transition: border-color .15s, box-shadow .15s; }
.field select option { color: #15241F; background: #fff; }
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 22%, transparent); }
.field--error input, .field--error textarea { border-color: var(--c-error); }
.field__error { color: var(--c-error); font-size: .9rem; }
.field--check { grid-template-columns: 22px 1fr; align-items: start; column-gap: 10px; }
.field--check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--c-accent); }
.field--check label { font-weight: 400; font-size: .92rem; color: var(--c-muted); }
.field--check .field__error { grid-column: 2; }
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__alert { grid-column: 1 / -1; padding: 12px 14px; border-radius: var(--r-sm); background: #F3DED8; color: #6E2A1E; }
.form .btn { justify-self: start; }
.form--done { grid-template-columns: 1fr; justify-items: start; gap: 10px; }
.form__done-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-accent); }
.form--done h3 { font: 500 1.6rem var(--font-display); }
.form--done p { color: var(--c-muted); margin-bottom: 8px; }

/* ---------- сведения об организации ---------- */
.legal { padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 5vw, 64px); }
.legal__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
.legal h2 { font-size: 1.45rem; margin-bottom: 14px; }
.legal__main, .legal__box { padding: clamp(20px, 3vw, 32px); background: var(--c-surface); border-radius: var(--r-lg); }
.legal__side { display: grid; gap: 16px; }
.reqs { margin: 0; }
.reqs div { display: grid; grid-template-columns: 13em 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--c-line); }
.reqs dt { color: var(--c-muted); font-size: .95rem; }
.reqs dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.reqs--compact div { grid-template-columns: 6em 1fr; }
.doclist a { font-weight: 500; }

/* ---------- админка ---------- */
.admin { padding: 120px 0 64px; }
.admin__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.admin h1 { font-size: 2rem; }
.admin__scroll { overflow-x: auto; background: var(--c-surface); border-radius: var(--r); }
.admin__table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin__table th, .admin__table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line); }
.admin__table th { font-weight: 600; background: var(--c-surface-2); white-space: nowrap; }
.admin__msg { min-width: 240px; white-space: pre-wrap; }

/* ---------- подвал ---------- */
.site-footer { background: var(--c-footer); color: color-mix(in srgb, var(--c-footer-ink) 80%, transparent); padding: 44px 0 28px; font-size: .95rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--c-footer-ink); text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.1fr 1.6fr 1fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid color-mix(in srgb, var(--c-footer-ink) 14%, transparent); }
.site-footer__brand { display: grid; gap: 12px; justify-items: start; }
.site-footer__brand p { color: var(--c-footer-ink); font-weight: 500; }
.site-footer__vk { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__nav { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; }
.site-footer__nav ul { display: grid; gap: 8px; align-content: start; }
.site-footer__contacts { display: grid; gap: 8px; align-content: start; font-style: normal; color: var(--c-footer-ink); }
.site-footer__legal { padding-top: 20px; display: grid; gap: 4px; font-size: .85rem; color: color-mix(in srgb, var(--c-footer-ink) 60%, transparent); }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .dirs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dir { min-height: 340px; }
}
@media (max-width: 980px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__nav { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 860px) {
  .home-hero__grid { grid-template-columns: 1fr; min-height: 0; padding-top: 108px; }
  .diorama { justify-self: center; max-width: 520px; }
  .contact__grid, .legal__grid { grid-template-columns: 1fr; }
  .journal__card { grid-template-columns: 1fr; }
  .journal__cover-wrap { width: 150px; }
  .journal__cover { padding: 14px; }
  .journal__cover-name { font-size: 1.8rem; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .site-header { inset: 8px 0 auto; }
  .brand__name { display: none; }
  .home-hero__title { font-size: clamp(2.7rem, 13vw, 3.4rem); }
  .diorama { width: 88%; }
  .dirs { grid-template-columns: 1fr; gap: 12px; }
  .dir { min-height: 0; grid-template: "role art" auto "body go" auto / minmax(0, 1fr) auto; padding: 20px; }
  .dir__name { font-size: 1.6rem !important; }
  .dir__art { padding: 0; }
  .dir__art svg { width: 92px; }
  .form { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .reqs div, .contact__direct div { grid-template-columns: 1fr; gap: 2px; }
  .site-footer__grid, .site-footer__nav { grid-template-columns: 1fr; }
  .journal__list li { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
