

/* Start:/local/templates/dnu/assets/css/main.css?178965006065685*/
/* ============================================================================
   DNU — АНО «Дом народов Югры» · main.css
   Single shared stylesheet for all static pages (task #38).
   Source of truth: design/final/design-system (tokens + components + ui_kits).

   BREAKPOINT CANON (one set for the whole file, desktop-first):
     - max-width: 900px   — burger menu; 3/4-col grids -> 2 cols; splits -> 1 col;
                            footer -> 1 col;
     - max-width: 580px   — everything single column; container padding 24 -> 16;
                            section padding 72 -> 52.
   Mockups used 980/900/580/720 inconsistently — normalized to 1200/900/580.

   1200–1920 BEHAVIOR: the content container (.dnu-wrap) is capped at
   --content-max-width (1200px) and centered; section backgrounds, dark
   gradients and ornament bands stretch full-bleed (they sit on the section
   element, not on the container). Supported viewport range: 320–1920.

   DELIBERATE DEVIATIONS FROM MOCKUPS (see build report):
     - font-weight 600 in mockups never actually loaded (no 600 face) and
       rendered as 700 — statics use var(--fw-bold) 700 everywhere 600 was used;
     - small green text (news card date, "news" tag) uses --badge-text #1C7A29
       instead of --brand-accent #2DA836 — #2DA836 on white is 3.1:1 (AA fail);
     - error/success form colors are our extension (tokens had none).

   NO id selectors. No order/index-dependent selectors for meaning.
   ========================================================================= */

/* === tokens: fonts (rewritten for local variable woff2, subsets) ========= */

/* Variable Geologica, weight axis 100..900 served as 400..700 (we use only
   400/500/700). Subset files + unicode-range from Google Fonts subsets.
   Plain format('woff2') is the most compatible declaration for var-fonts. */
@font-face{
  font-family:Geologica;
  src:url('/local/templates/dnu/assets/css/../fonts/geologica-var-cyrillic-ext.woff2') format('woff2');
  font-weight:400 700;
  font-style:normal;
  font-display:swap;
  unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face{
  font-family:Geologica;
  src:url('/local/templates/dnu/assets/css/../fonts/geologica-var-cyrillic.woff2') format('woff2');
  font-weight:400 700;
  font-style:normal;
  font-display:swap;
  unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face{
  font-family:Geologica;
  src:url('/local/templates/dnu/assets/css/../fonts/geologica-var-latin.woff2') format('woff2');
  font-weight:400 700;
  font-style:normal;
  font-display:swap;
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* === tokens: colors (verbatim from tokens/colors.css) ==================== */
:root{
  /* base — brand colors */
  --color-blue:#1A3F90;
  --color-blue-mid:#163579;
  --color-blue-dark:#143271;
  --color-blue-deep:#122E68;
  --color-green:#2DA836;
  --color-white:#FFF;

  /* base — neutrals (ours, not from the brandbook) */
  --color-ink:#1A2340;
  --color-ink-2:#5A6480;
  --color-line:#E2E7F0;
  --color-bg-soft:#F3F5FA;
  --color-hover:#36579E;

  /* semantic aliases */
  --brand-primary:var(--color-blue);
  --brand-primary-hover:var(--color-hover);
  --brand-accent:var(--color-green);
  --text-body:var(--color-ink);
  --text-secondary:var(--color-ink-2);
  --text-on-dark:#FFF;
  --text-on-dark-soft:#D7E0FF;
  --surface-page:#FFF;
  --surface-soft:var(--color-bg-soft);
  --surface-card:#FFF;
  --surface-dark:var(--color-blue-deep);
  --border-default:var(--color-line);
  --link-color:var(--color-blue);
  --link-hover:var(--color-hover);
  --badge-bg:#E7F6EA;
  --badge-text:#1C7A29;
  --gradient-brand:linear-gradient(135deg,var(--color-blue),var(--color-blue-deep));
  --gradient-brand-glow:radial-gradient(120% 100% at 100% 100%,rgb(45 168 54 / 32%),rgb(45 168 54 / 0%) 52%);
  --gradient-brand-cool:linear-gradient(125deg,#122E68 0%,#1A3F90 42%,#1C7A4B 100%);
  --gradient-brand-cool-glow:radial-gradient(90% 120% at 88% 108%,rgb(45 168 54 / 50%),rgb(45 168 54 / 0%) 55%);
}

/* === tokens: typography (verbatim from tokens/typography.css) ============ */
:root{
  --font-family:'Geologica',-apple-system,blinkmacsystemfont,'Segoe UI',roboto,arial,sans-serif;
  --font-mono:'SF Mono',ui-monospace,menlo,consolas,monospace;
  --text-hero:clamp(34px,5.4vw,60px);
  --text-h1:clamp(28px,4vw,46px);
  --text-h2:clamp(24px,3.4vw,38px);
  --text-h3:24px;
  --text-body-lg:17px;
  --fs-body:16px;
  --text-small:14px;
  --text-micro:12.5px;
  --lh-tight:1.05;
  --lh-heading:1.15;
  --lh-body:1.55;
  --fw-thin:100; /* not loaded in static build — do not use */
  --fw-regular:400;
  --fw-medium:500;
  --fw-bold:700;
}

/* === tokens: spacing (verbatim from tokens/spacing.css) ================== */
:root{
  --space-1:8px;
  --space-2:16px;
  --space-3:24px;
  --space-4:32px;
  --space-5:40px;
  --space-6:48px;
  --space-7:64px;
  --space-8:88px;
  --content-max-width:1200px;
}

/* === tokens: effects (verbatim from tokens/effects.css) ================== */
:root{
  --radius-sm:10px;
  --radius-md:14px;
  --radius-pill:999px;
  --shadow-card:0 8px 30px rgb(18 46 104 / 10%);
  --shadow-modal:0 20px 50px rgb(0 0 0 / 25%);
  --focus-ring:0 0 0 3px rgb(26 63 144 / 14%);
}

/* === tokens: static-build extensions (not in the design pack) ============ */
:root{
  --color-error:#C0362C;        /* form/field error, harmonized red */
  --color-error-soft:#FBEEED;   /* error block background */
  --header-h:76px;              /* sticky header height, anchors offset */
}

/* === base ================================================================ */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}

body{
  margin:0;
  /* Прижатый подвал: тело — колонка во всю высоту экрана, <main> тянется
     (#main ниже), поэтому на короткой странице пустота уходит над подвалом,
     а не под ним. dvh — чтобы на мобильных не мешала адресная строка. */
  min-height:100vh;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  font-family:var(--font-family);
  font-size:var(--fs-body);
  font-weight:var(--fw-regular);
  line-height:var(--lh-body);
  color:var(--text-body);
  background:var(--surface-page);
}
#main{flex:1 0 auto}
h1,h2,h3,h4,h5,h6{margin:0;line-height:var(--lh-heading);font-weight:var(--fw-bold)}
p{margin:0 0 1em}
img,svg{max-width:100%;height:auto}
img{display:block}
a{color:var(--link-color)}
a:hover{color:var(--link-hover)}
button,input,select,textarea{font:inherit;color:inherit}
ul,ol{margin:0;padding:0}
figure{margin:0}
address{font-style:normal}
fieldset{margin:0;padding:0;border:0}
[hidden]{display:none !important}

/* Keyboard focus — always visible (CSS-only, no JS involved). */
:focus-visible{outline:3px solid var(--brand-primary);outline-offset:2px}

.dnu-section--dark :focus-visible,
.dnu-footer :focus-visible,
.dnu-lightbox :focus-visible{outline-color:#fff}

/* Anchor targets clear the sticky header. */
[id]{scroll-margin-top:calc(var(--header-h) + 20px)}

/* Utilities. */
.visually-hidden{
  position:absolute;width:1px;height:1px;margin:-1px;padding:0;
  overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;
}

/* Inline SVG sprite container (icons-sprite.html) — never rendered itself. */
.dnu-sprite{display:none}

.dnu-skip-link{
  position:absolute;left:16px;top:-48px;z-index:200;
  background:var(--brand-primary);color:#fff;text-decoration:none;
  padding:10px 18px;border-radius:0 0 var(--radius-sm) var(--radius-sm);
  transition:top .15s;
}
.dnu-skip-link:focus-visible{top:0;color:#fff}

/* Honeypot wrapper — off-screen for humans, present for bots. */
.dnu-hp{position:absolute !important;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{transition-duration:.01ms !important;animation-duration:.01ms !important;scroll-behavior:auto !important}
}

/* === layout ============================================================== */
.dnu-wrap{
  max-width:var(--content-max-width);
  margin-inline:auto;
  padding-inline:24px;
}
.dnu-wrap--narrow{max-width:868px} /* 820 content + 2x24 padding; unified for article/search/legal (mockups: 820/860/780) */

.dnu-section{padding:72px 0;background:var(--surface-page)}
.dnu-section--soft{background:var(--surface-soft)}

.dnu-section--dark{
  background:var(--gradient-brand-glow),var(--gradient-brand);
  color:#fff;position:relative;overflow:hidden;
}

.dnu-section--cool{
  background:var(--gradient-brand-cool-glow),var(--gradient-brand-cool);
  color:#fff;position:relative;overflow:hidden;
}
.dnu-section--tight{padding:48px 0 72px}
.dnu-section--snug{padding-top:24px}
.dnu-section.dnu-section--snug-bottom{padding-bottom:24px}

/* Section heading row: title left, action button right. */
.dnu-section-head{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:16px}
.dnu-section-title{font-size:var(--text-h2);font-weight:var(--fw-bold);margin:0}
.dnu-section-head + *{margin-top:36px}

/* Secondary note right under a section title (about: team intro). */
.dnu-section-note{color:var(--text-secondary);max-width:620px;margin:8px 0 28px}

/* Eyebrow label with green underline (brand accent rule). */
.dnu-eyebrow{
  display:inline-block;font-size:13px;font-weight:var(--fw-bold);
  letter-spacing:.14em;text-transform:uppercase;color:var(--brand-primary);
  border-bottom:3px solid var(--brand-accent);padding-bottom:6px;margin-bottom:8px;
}

.dnu-section--dark .dnu-eyebrow,
.dnu-section--cool .dnu-eyebrow{color:#BCD0FF}

/* Card grids. Collapse: 4 -> 2 -> 1, 3 -> 2 -> 1, 2 -> 1. */
.dnu-grid{display:grid;gap:22px}
.dnu-grid--2{grid-template-columns:repeat(2,1fr)}
.dnu-grid--3{grid-template-columns:repeat(3,1fr)}
.dnu-grid--4{grid-template-columns:repeat(4,1fr)}
.dnu-grid--gallery{gap:14px}

/* Two-column splits (content + media / content + aside). */
.dnu-split{display:grid;gap:48px;align-items:center}
.dnu-split--half{grid-template-columns:1fr 1fr}
.dnu-split--intro{grid-template-columns:1.1fr .9fr}
.dnu-split--article{grid-template-columns:1.4fr .9fr;align-items:start}
.dnu-split--hero{grid-template-columns:1.15fr .85fr}
.dnu-split--notfound{grid-template-columns:1fr .7fr;gap:40px}

@media (max-width: 900px){
  .dnu-grid--3,.dnu-grid--4{grid-template-columns:repeat(2,1fr)}

  .dnu-grid--2,
  .dnu-split--half,.dnu-split--intro,.dnu-split--article,.dnu-split--hero,
  .dnu-split--notfound{grid-template-columns:1fr}
  .dnu-split{gap:32px}
}

@media (max-width: 580px){
  .dnu-wrap{padding-inline:16px}
  .dnu-section{padding:52px 0}
  .dnu-section--tight{padding:36px 0 52px}
  .dnu-section--snug{padding-top:16px}
  .dnu-section.dnu-section--snug-bottom{padding-bottom:16px}
  .dnu-grid,.dnu-grid--3,.dnu-grid--4{grid-template-columns:1fr;gap:16px}
}

/* === header ============================================================== */
.dnu-header{
  position:sticky;top:0;z-index:50;
  background:rgb(255 255 255 / 92%);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border-default);
}
.dnu-header__inner{display:flex;align-items:center;gap:18px;height:var(--header-h)}
.dnu-header__logo{display:flex;align-items:center;flex-shrink:0}
.dnu-header__desktop{display:flex;align-items:center;gap:18px;flex:1;min-width:0}
.dnu-header__actions{margin-left:auto;display:flex;align-items:center;gap:14px}

.dnu-nav{display:flex;gap:18px;align-items:center;list-style:none;margin-left:24px}
.dnu-nav__item{position:relative;display:flex;align-items:center}

.dnu-nav__link{
  font-size:15px;font-weight:var(--fw-medium);color:var(--text-body);
  text-decoration:none;padding:6px 0;border-bottom:2px solid transparent;
  white-space:nowrap;transition:color .15s,border-color .15s;
}
.dnu-nav__link:hover{color:var(--brand-primary);border-bottom-color:var(--brand-accent)}
.dnu-nav__link[aria-current="page"]{color:var(--brand-primary);border-bottom-color:var(--brand-accent)}

/* Dropdown: link + disclosure button + submenu. Opens via .is-open (JS);
   pure-CSS hover/focus fallback when JS is unavailable (html.no-js). */
.dnu-dropdown__toggle{
  display:flex;align-items:center;justify-content:center;
  width:24px;height:24px;margin-left:2px;padding:0;
  background:none;border:none;border-radius:6px;cursor:pointer;color:var(--text-body);
  transition:background .15s,color .15s,transform .15s;
}
.dnu-dropdown__toggle:hover{background:var(--surface-soft);color:var(--brand-primary)}
.dnu-dropdown.is-open .dnu-dropdown__toggle{transform:rotate(180deg);color:var(--brand-primary)}

.dnu-dropdown__menu{
  display:none;position:absolute;top:100%;left:0;z-index:60;
  background:#fff;border:1px solid var(--border-default);border-radius:var(--radius-sm);
  box-shadow:var(--shadow-card);padding:8px;min-width:180px;
  flex-direction:column;gap:2px;list-style:none;
}
.dnu-dropdown.is-open .dnu-dropdown__menu{display:flex}

.no-js .dnu-dropdown:hover .dnu-dropdown__menu,
.no-js .dnu-dropdown:focus-within .dnu-dropdown__menu{display:flex}

.dnu-dropdown__link{
  display:block;font-size:14px;color:var(--text-body);text-decoration:none;
  padding:8px 12px;border-radius:8px;transition:background .15s,color .15s;
}
.dnu-dropdown__link:hover{background:var(--surface-soft);color:var(--brand-primary)}

/* Header search: collapsed icon on desktop, expands on open/focus. */
.dnu-search{display:flex;align-items:center;gap:6px}

.dnu-search__input{
  width:0;padding:0;border:0 solid var(--border-default);border-radius:var(--radius-sm);
  font-size:14px;opacity:0;transition:width .2s,opacity .15s;
}

.dnu-search.is-open .dnu-search__input,
.dnu-search:focus-within .dnu-search__input,
.no-js .dnu-search__input{
  width:160px;opacity:1;padding:8px 12px;border-width:1.5px;
}

.dnu-search__btn{
  width:40px;height:40px;flex-shrink:0;border-radius:var(--radius-pill);
  background:none;border:none;cursor:pointer;color:var(--brand-primary);
  display:flex;align-items:center;justify-content:center;transition:background .15s;
}
.dnu-search__btn:hover{background:var(--surface-soft)}

/* Social icon buttons (header + footer + contacts). */
.dnu-header__social{display:flex;align-items:center;gap:8px;list-style:none}

.dnu-social-btn{
  width:38px;height:38px;border-radius:10px;border:1px solid var(--border-default);
  display:flex;align-items:center;justify-content:center;color:var(--brand-primary);
  text-decoration:none;transition:background .15s,border-color .15s,color .15s;
}
.dnu-social-btn:hover{background:var(--surface-soft);border-color:var(--brand-primary);color:var(--brand-primary)}

/* Burger (mobile only). */
.dnu-burger{
  display:none;flex-direction:column;gap:5px;margin-left:auto;
  background:none;border:none;cursor:pointer;padding:8px;border-radius:8px;
}
.dnu-burger:hover{background:var(--surface-soft)}
.dnu-burger__bar{width:24px;height:2.5px;background:var(--brand-primary);border-radius:2px}

/* Mobile panel. */
.dnu-mobile-panel{
  display:none;flex-direction:column;gap:2px;
  padding:12px 24px 18px;border-top:1px solid var(--border-default);background:#fff;
}
.dnu-header.is-menu-open .dnu-mobile-panel{display:flex}

.dnu-mobile-panel__link{
  font-size:15px;font-weight:var(--fw-medium);color:var(--text-body);
  text-decoration:none;padding:10px 0;border-bottom:2px solid transparent;
}
.dnu-mobile-panel__link:hover{color:var(--brand-primary)}
.dnu-mobile-panel__link[aria-current="page"]{color:var(--brand-primary)}

.dnu-mobile-panel__sublink{
  font-size:14px;color:var(--text-secondary);text-decoration:none;padding:8px 0 8px 16px;
}
.dnu-mobile-panel__sublink:hover{color:var(--brand-primary)}
.dnu-mobile-panel__social{display:flex;gap:8px;padding:12px 0}
.dnu-mobile-panel__cta{margin-top:10px}
.dnu-mobile-panel__search{display:flex;gap:8px;padding:10px 0}
.dnu-mobile-panel__search .dnu-search__input{width:100%;flex:1;opacity:1;padding:10px 12px;border-width:1.5px}
.dnu-mobile-panel ul{list-style:none}

@media (max-width: 900px){
  .dnu-header__desktop{display:none}
  .dnu-burger{display:flex}
}

/* === buttons ============================================================= */
.dnu-btn{
  display:inline-flex;align-items:center;gap:8px;
  font-family:var(--font-family);font-weight:var(--fw-medium);font-size:16px;
  border-radius:var(--radius-sm);padding:14px 28px;border:2px solid transparent;
  cursor:pointer;text-decoration:none;line-height:1;
  transition:background .15s ease,color .15s ease,border-color .15s ease;
}
.dnu-btn--primary{background:var(--brand-primary);color:#fff}
.dnu-btn--primary:hover{background:var(--brand-primary-hover);color:#fff}
.dnu-btn--accent{background:var(--brand-accent);color:#fff}
.dnu-btn--accent:hover{background:var(--brand-primary-hover);color:#fff}
.dnu-btn--ghost{background:transparent;color:#fff;border-color:rgb(255 255 255 / 60%)}
.dnu-btn--ghost:hover{background:rgb(255 255 255 / 12%);color:#fff}
.dnu-btn--ghost-light{background:transparent;color:var(--brand-primary);border-color:var(--brand-primary)}
.dnu-btn--ghost-light:hover{background:var(--brand-primary);color:#fff}
.dnu-btn--sm{padding:10px 20px;font-size:14px}
.dnu-btn--lg{padding:16px 34px;font-size:17px}
.dnu-btn--block{width:100%;justify-content:center}
.dnu-btn:disabled,.dnu-btn[aria-disabled="true"]{opacity:.5;pointer-events:none}

/* === badge =============================================================== */
.dnu-badge{
  display:inline-block;font-size:12px;font-weight:var(--fw-bold);
  padding:4px 10px;border-radius:var(--radius-pill);letter-spacing:.02em;
  background:var(--badge-bg);color:var(--badge-text);
}
.dnu-badge--blue{background:#E4EAF8;color:var(--brand-primary)}

/* === forms =============================================================== */
.dnu-form{font-family:var(--font-family)}
.dnu-form__row{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}

@media (max-width: 580px){.dnu-form__row{grid-template-columns:1fr}}
.dnu-label{display:block;font-size:14px;font-weight:var(--fw-medium);color:var(--text-body);margin:14px 0 6px}

.dnu-input,.dnu-textarea{
  width:100%;font-family:var(--font-family);font-size:15px;padding:12px 14px;
  border:1.5px solid var(--border-default);border-radius:var(--radius-sm);
  color:var(--text-body);background:#fff;
}
.dnu-textarea{resize:vertical;min-height:90px}
.dnu-input:focus-visible,.dnu-textarea:focus-visible{outline:none}
.dnu-input:focus,.dnu-textarea:focus{border-color:var(--brand-primary);box-shadow:var(--focus-ring)}

/* Consent checkbox (152-FZ). */
.dnu-consent{
  display:flex;gap:10px;align-items:flex-start;margin:14px 0;
  font-size:13px;color:var(--text-secondary);
}
.dnu-consent input{width:auto;margin:3px 0 0;flex-shrink:0}
.dnu-consent a{color:var(--brand-primary);text-decoration:underline;transition:color .15s}
.dnu-consent a:hover{color:var(--brand-primary-hover)}
.dnu-form--on-dark .dnu-consent{color:rgb(255 255 255 / 80%)}
.dnu-form--on-dark .dnu-consent a{color:#fff}

/* Field error state: add .dnu-field--error to the field wrapper and remove
   [hidden] from the message. Same classes are set by JS enhancement. */
.dnu-field--error .dnu-input,
.dnu-field--error .dnu-textarea{border-color:var(--color-error)}

.dnu-field--error .dnu-input:focus,
.dnu-field--error .dnu-textarea:focus{box-shadow:0 0 0 3px rgb(192 54 44 / 14%)}
.dnu-field__error{font-size:13px;color:var(--color-error);margin:6px 0 0}
.dnu-field--error .dnu-consent{color:var(--color-error)}

/* Form-level error and success blocks. */
.dnu-form__error{
  background:var(--color-error-soft);color:var(--color-error);
  border:1px solid rgb(192 54 44 / 25%);border-radius:var(--radius-sm);
  font-size:14px;padding:12px 14px;margin:14px 0 0;
}
.dnu-form__success{font-size:15px;color:var(--text-body);margin:18px 0 0}
.dnu-form__success::before{content:"✓ ";color:var(--badge-text);font-weight:var(--fw-bold)}
.dnu-form.is-sent .dnu-form__fields{display:none}
.dnu-form__actions{display:flex;gap:18px;align-items:center;margin-top:6px;flex-wrap:wrap}
.dnu-form__actions-consent{flex:1;min-width:220px}

/* Captcha of the feedback form: picture from Bitrix plus the input next to it.
   The «Старт» edition has no web-forms module, so the built-in captcha is used
   instead of the SmartCaptcha widget the mockup assumed. */
.dnu-form__captcha{margin:14px 0}

/* Картинка и поле — одной строкой под общей подписью: если растащить их по
   колонкам, картинка встаёт напротив подписи, а поле уезжает вниз. */
.dnu-form__captcha-row{display:flex;gap:12px;align-items:center}
.dnu-form__captcha-row img{
  border:1px solid var(--border-default);border-radius:var(--radius-sm);
  flex-shrink:0;display:block;
}
.dnu-form__captcha-row .dnu-input{flex:1;min-width:0}

@media (max-width: 400px){
  .dnu-form__captcha-row{flex-wrap:wrap}
  .dnu-form__captcha-row .dnu-input{flex-basis:100%}
}

/* === generic card panel ================================================== */
.dnu-card{
  background:var(--surface-card);border:1px solid var(--border-default);
  border-radius:var(--radius-md);padding:26px;box-shadow:var(--shadow-card);
}
.dnu-card--form{padding:24px 26px;box-shadow:var(--shadow-modal);border:none}
.dnu-card__title{font-size:18px;font-weight:var(--fw-bold);color:var(--text-body);margin:0 0 4px}
.dnu-card__subtitle{color:var(--text-secondary);font-size:14px;margin:0}

/* Activity card icon plate (home "Направления работы"). */
.dnu-card__icon{
  width:64px;height:64px;border-radius:16px;background:rgb(45 168 54 / 12%);
  display:flex;align-items:center;justify-content:center;margin-bottom:20px;
  color:var(--brand-accent);
}
.dnu-card__heading{font-size:19px;font-weight:var(--fw-bold);margin:0 0 .4em}
.dnu-card__text{font-size:15px;color:var(--text-secondary);margin:0}

/* === news card =========================================================== */
.dnu-news-card{
  display:block;text-decoration:none;background:#fff;
  border:1px solid var(--border-default);border-radius:var(--radius-md);
  overflow:hidden;box-shadow:var(--shadow-card);
  transition:box-shadow .2s,transform .2s;
}
.dnu-news-card:hover{box-shadow:0 12px 34px rgb(18 46 104 / 16%);transform:translateY(-2px)}
.dnu-news-card__cover{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.dnu-news-card__body{padding:18px 20px}
.dnu-news-card__date{font-size:12.5px;color:var(--badge-text);font-weight:var(--fw-bold);letter-spacing:.03em}
.dnu-news-card__title{font-size:17px;font-weight:var(--fw-bold);margin:12px 0 8px;color:var(--text-body);transition:color .15s}
.dnu-news-card:hover .dnu-news-card__title{color:var(--brand-primary)}
.dnu-news-card__excerpt{font-size:14px;color:var(--text-secondary);margin:0}

/* Home page news block always carries four cards. Above 900px the grid is a
   row of three, so the fourth is trimmed by CSS; below that the grid is 2-up
   (a clean 2x2) or 1-up, where all four are shown. */
@media (min-width: 901px){
  .dnu-news-latest .dnu-news-card:nth-child(4){display:none}
}

/* === event row =========================================================== */
.dnu-event-row{
  display:flex;gap:24px;align-items:center;background:#fff;
  border:1px solid var(--border-default);border-radius:var(--radius-md);
  padding:20px 24px;box-shadow:var(--shadow-card);text-decoration:none;
  transition:border-color .15s,box-shadow .2s;
}
.dnu-event-row:hover{border-color:var(--brand-primary);box-shadow:0 12px 34px rgb(18 46 104 / 16%)}

/* Groups the date block and the age-rating sign so the sign can move under
   the date on mobile without touching DOM order. */
.dnu-event-row__datebox{display:flex;align-items:stretch;gap:24px;flex-shrink:0}

.dnu-event-row__date{
  flex-shrink:0;min-width:150px;text-align:center;
  background:var(--gradient-brand);color:#fff;border-radius:12px;padding:14px 16px;
}
.dnu-event-row__day{display:block;font-weight:var(--fw-bold);font-size:27px;line-height:1.05;white-space:nowrap}
.dnu-event-row__month{font-size:12px;text-transform:uppercase;letter-spacing:.08em;white-space:nowrap}

/* Event spanning two months: date block shows both ends, one per line.
   Numbers shrink so «15 июля / 25 августа» keeps the same block width as a
   single date — rows in the list must stay aligned. */
.dnu-event-row__date--range{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
}
.dnu-event-row__range-part{display:flex;align-items:baseline;gap:6px}
.dnu-event-row__date--range .dnu-event-row__day{font-size:19px}
.dnu-event-row__date--range .dnu-event-row__month{font-size:11px;letter-spacing:.05em}
.dnu-event-row__range-dash{font-size:11px;line-height:1;opacity:.75}
.dnu-event-row__body{flex:1;min-width:0}
.dnu-event-row__title{font-size:18px;font-weight:var(--fw-bold);margin:0 0 4px;color:var(--text-body);transition:color .15s}
.dnu-event-row:hover .dnu-event-row__title{color:var(--brand-primary)}
.dnu-event-row__place{margin:0;font-size:14px;color:var(--text-secondary)}

.dnu-event-row__arrow{
  margin-left:auto;flex-shrink:0;display:flex;align-items:center;justify-content:center;
  width:46px;height:46px;border-radius:var(--radius-pill);
  border:1.5px solid var(--border-default);color:var(--text-secondary);
  transition:transform .2s,border-color .15s,color .15s;
}
.dnu-event-row:hover .dnu-event-row__arrow{transform:translateX(5px);border-color:var(--brand-primary);color:var(--brand-primary)}
.dnu-event-list{display:flex;flex-direction:column;gap:16px}

@media (max-width: 580px){
  .dnu-event-row{flex-wrap:wrap;gap:14px;padding:16px}
  .dnu-event-row__date{min-width:96px;padding:10px 12px}
  .dnu-event-row__arrow{display:none}
  /* Age sign moves under the date instead of sitting beside it. */
  .dnu-event-row__datebox{flex-direction:column;align-items:center;gap:8px}
}

/* === age rating sign (ФЗ-436, ч. 3-4 ст. 12) ============================= */
/* Знак информационной продукции на объявлении о зрелищном мероприятии. Норма
   требует не менее 5 % площади объявления. Это всё ещё так для --cover
   (афиша детальной страницы) — её размеры выведены из замеров и порог
   держат. Для --row (карточка списка/«Ближайшие события») порог с
   17.09.2026 сознательно не соблюдается — см. комментарий у .dnu-age--row. */
.dnu-age{
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
  background:#fff;color:var(--brand-primary);
  border:3px solid var(--brand-primary);border-radius:12px;
  font-weight:var(--fw-bold);line-height:1;
  font-variant-numeric:tabular-nums;
}

/* Карточка списка и блока «Ближайшие события»: плашка во всю высоту строки,
   рядом с датой. Изначально ширина держалась на уровне ~116px ради тех самых
   5 % площади объявления — по прямому решению пользователя (17.09.2026) это
   требование здесь сознательно не соблюдается: знак сделан вдвое мельче,
   выразительность карточки важнее буквы нормы. Если порог придётся вернуть —
   прежние значения были 116px/33px (900px: 104px/30px). */
.dnu-age--row{align-self:stretch;width:58px;font-size:17px;border-width:2px}

@media (max-width: 900px){
  .dnu-age--row{width:52px;font-size:15px}
}
/* Мобильный размер уменьшен ещё раз и знак переехал под дату (см.
   .dnu-event-row__datebox) вместо соседства с ней в одной строке. */
@media (max-width: 580px){
  .dnu-age--row{width:44px;height:36px;font-size:15px;border-width:2px;border-radius:8px}
  .dnu-event-row__body{min-width:170px}
}

/* Афиша детальной страницы: знак лежит на обложке. Обложка всегда 16:9, значит
   площадь = 0,5625 W², и сторона квадрата в 17,5 % ширины даёт 5,44 % площади
   при любой ширине колонки — отсюда проценты, а не пиксели. Кегль привязан к
   ширине контейнера: без container-query падает в наследуемый размер, знак от
   этого не исчезает. */
.dnu-article-cover-figure{position:relative;margin:0 0 28px;container-type:inline-size}
.dnu-article-cover-figure .dnu-article-cover{display:block;margin-bottom:0}
.dnu-age--cover{
  position:absolute;right:3.2%;bottom:3.2%;
  width:17.5%;aspect-ratio:1;
  font-size:clamp(18px,7.6cqw,64px);
  border-width:clamp(3px,0.9cqw,7px);
  border-radius:clamp(10px,2.2cqw,18px);
  box-shadow:0 6px 22px rgb(18 46 104 / 28%);
}

/* === gallery album tile ================================================== */
.dnu-album-tile{
  display:flex;position:relative;overflow:hidden;aspect-ratio:1/1;border-radius:12px;
  background:#0D1F4B;align-items:flex-end;padding:14px;
  color:#fff;text-decoration:none;
  transition:box-shadow .2s,transform .2s;
}
.dnu-album-tile:hover{box-shadow:0 10px 26px rgb(18 46 104 / 22%);transform:translateY(-2px)}

.dnu-album-tile__img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  transition:transform .3s;
}
.dnu-album-tile:hover .dnu-album-tile__img{transform:scale(1.05)}

.dnu-album-tile__shade{
  position:absolute;inset:0;
  background:linear-gradient(to top,rgb(9 20 54 / 78%),rgb(9 20 54 / 0%) 55%);
}
.dnu-album-tile__label{position:relative;color:#fff}
.dnu-album-tile__title{display:block;font-size:15px;font-weight:var(--fw-bold);line-height:1.25}
.dnu-album-tile__meta{display:block;font-size:12.5px;opacity:.85;margin-top:2px}

.dnu-album-tile__count{
  position:absolute;top:12px;right:12px;display:inline-flex;align-items:center;gap:5px;
  background:rgb(9 20 54 / 55%);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
  color:#fff;font-size:12px;font-weight:var(--fw-bold);
  padding:5px 10px;border-radius:var(--radius-pill);border:1px solid rgb(255 255 255 / 28%);
}

/* Second counter pill (videos) sits in the opposite corner of the tile. */
.dnu-album-tile__count--video{left:12px;right:auto}

/* Album photo grid + clickable photo (lightbox source). */
.dnu-album-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}

@media (max-width: 900px){.dnu-album-grid{grid-template-columns:repeat(2,1fr)}}

@media (max-width: 580px){.dnu-album-grid{grid-template-columns:repeat(2,1fr);gap:10px}}

.dnu-album-grid__item{
  display:block;aspect-ratio:1/1;border-radius:10px;overflow:hidden;cursor:zoom-in;
}
.dnu-album-grid__item img{width:100%;height:100%;object-fit:cover}

/* Video tile inside the album grid: poster from the platform (RuTube gives one,
   VK does not — там остаётся тёмная плитка), play glyph and the source label.
   The tile opens a player, not an image, hence the pointer cursor. */
.dnu-album-grid__item--video{position:relative;background:#0D1F4B;cursor:pointer}
.dnu-album-grid__item--video img{opacity:.92;transition:opacity .2s}
.dnu-album-grid__item--video:hover img{opacity:1}

.dnu-album-grid__play{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  color:#fff;filter:drop-shadow(0 2px 10px rgb(9 20 54 / 55%));
}
.dnu-album-grid__item--video:hover .dnu-album-grid__play{transform:scale(1.06)}

.dnu-album-grid__source{
  position:absolute;left:10px;bottom:9px;color:#fff;font-size:11.5px;
  font-weight:var(--fw-bold);background:rgb(9 20 54 / 62%);
  padding:3px 9px;border-radius:var(--radius-pill);
}

/* === partner tile ======================================================== */
.dnu-partner-tile{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:12px;text-align:center;min-height:150px;
  border:1px solid var(--border-default);border-radius:16px;background:#fff;
  color:var(--text-secondary);font-size:13.5px;font-weight:var(--fw-medium);line-height:1.3;
  padding:18px 16px;text-decoration:none;
  transition:border-color .15s,color .15s,box-shadow .2s;
}
.dnu-partner-tile:hover{border-color:var(--brand-primary);color:var(--brand-primary);box-shadow:var(--shadow-card)}
/* Was a fixed 56x56 square — squeezed wide horizontal logos down to a
   sliver. Now the logo scales up to the caption's width and centers via
   the tile's flex layout, so a wide plate emblem can actually be read. */
.dnu-partner-tile__logo{max-width:180px;max-height:72px;width:auto;height:auto}
.dnu-partner-tile__caption{max-width:180px}

/* Partners strip: below 900px the 4-up grid becomes a horizontal snap strip.
   Full-width tiles ate a whole screen, and the list grows over time — a strip
   keeps the section compact and hints at more items by clipping the last one. */
@media (max-width: 900px){
  .dnu-partners{
    display:flex;gap:12px;
    overflow-x:auto;overscroll-behavior-x:contain;
    scroll-snap-type:x proximity;
    padding-bottom:10px;
    scrollbar-width:thin;
  }
  .dnu-partners .dnu-partner-tile{
    flex:0 0 auto;width:160px;min-height:160px;
    scroll-snap-align:start;
    padding:16px 14px;gap:10px;font-size:12.5px;
  }
  .dnu-partners .dnu-partner-tile__logo{max-width:132px;max-height:64px;width:auto;height:auto}
  .dnu-partners .dnu-partner-tile__caption{max-width:none}
}

/* === stat block ========================================================== */
.dnu-stat__value{display:block;font-weight:var(--fw-bold);font-size:34px;color:var(--brand-primary);line-height:1}
.dnu-stat__label{font-size:14px;color:var(--text-secondary)}

/* Desktop (>900): strictly one row, as in the mockup. gap 40 overflowed the
   552px split column by ~10px at fw 700 and wrapped "100+" — gap reduced to
   32 (matches the mockup rhythm), items may shrink (labels wrap if tight). */
.dnu-stat{min-width:0}
.dnu-stat-row{display:flex;gap:32px;flex-wrap:nowrap;margin-top:20px}

@media (max-width: 900px){
  .dnu-stat-row{gap:40px;flex-wrap:wrap}
}
.dnu-section--dark .dnu-stat__value,.dnu-section--cool .dnu-stat__value{color:#fff}
.dnu-section--dark .dnu-stat__label,.dnu-section--cool .dnu-stat__label{color:var(--text-on-dark-soft)}

/* === team member ========================================================= */
.dnu-person{text-align:center}
.dnu-person__photo{width:120px;height:120px;margin:0 auto 14px;border-radius:50%;object-fit:cover}
.dnu-person__name{font-weight:var(--fw-bold);font-size:16px;margin:0}
.dnu-person__role{font-size:13.5px;color:var(--text-secondary);margin:2px 0 0}
.dnu-person__contacts{margin:10px 0 0;display:flex;flex-direction:column;gap:4px;align-items:center}

.dnu-person__contact{
  display:inline-flex;align-items:center;gap:6px;font-size:13px;
  color:var(--brand-primary);text-decoration:none;
}
.dnu-person__contact:hover{text-decoration:underline}

/* === document (PDF) list ================================================= */
.dnu-doc-list{border:1px solid var(--border-default);border-radius:var(--radius-md);overflow:hidden}

/* Documents are grouped by iblock section ("Уставные документы", "Бухгалтерская
   отчётность", …) — each group gets its own heading above its list. */
.dnu-doc-group + .dnu-doc-group{margin-top:36px}
.dnu-doc-group__title{font-size:19px;font-weight:var(--fw-bold);margin:0 0 14px}

.dnu-team-group + .dnu-team-group{margin-top:64px}
.dnu-team-group__title{font-size:19px;font-weight:var(--fw-bold);margin:0 0 14px}

.dnu-doc-row{
  display:flex;align-items:center;gap:16px;padding:18px 22px;
  text-decoration:none;color:inherit;transition:background .15s;
}
.dnu-doc-row:hover{background:var(--surface-soft);color:inherit}
.dnu-doc-row + .dnu-doc-row{border-top:1px solid var(--border-default)}

.dnu-doc-row__type{
  width:40px;height:40px;flex-shrink:0;border-radius:8px;background:#E4EAF8;
  color:var(--brand-primary);display:flex;align-items:center;justify-content:center;
  font-size:11px;font-weight:var(--fw-bold);
}
.dnu-doc-row__name{flex:1;font-weight:var(--fw-medium);font-size:16px;min-width:0}
.dnu-doc-row__meta{font-size:13px;color:var(--text-secondary);white-space:nowrap}

.dnu-doc-row__action{
  display:inline-flex;align-items:center;gap:6px;
  color:var(--brand-primary);font-weight:var(--fw-bold);font-size:14px;white-space:nowrap;
}

@media (max-width: 580px){
  .dnu-doc-row{flex-wrap:wrap;gap:10px;padding:14px 16px}
  .dnu-doc-row__name{flex-basis:calc(100% - 50px)}
  .dnu-doc-row__meta{margin-left:50px}
}

/* === search result row =================================================== */
.dnu-result{
  display:block;padding:18px 0;border-top:1px solid var(--border-default);
  text-decoration:none;color:inherit;
}
.dnu-result:hover{color:inherit}
.dnu-result__head{display:flex;gap:10px;align-items:center;margin-bottom:4px}
.dnu-result__date{font-size:12.5px;color:var(--text-secondary)}
.dnu-result__title{font-size:18px;font-weight:var(--fw-bold);margin:0 0 4px;transition:color .15s}
.dnu-result:hover .dnu-result__title{color:var(--brand-primary)}
.dnu-result__excerpt{font-size:14.5px;color:var(--text-secondary);margin:0}
.dnu-result-count{color:var(--text-secondary);font-size:14px;margin:0 0 8px}

/* Search page input row. */
.dnu-search-bar{display:flex;gap:10px;margin-bottom:20px}
.dnu-search-bar .dnu-input{flex:1;font-size:16px;padding:14px 16px}

/* === empty state (search / events archive / gallery lists) =============== */

/* Canonical markup (specimen in styleguide.html):
   <div class="dnu-empty">
     <svg class="dnu-empty__icon" width="44" height="44" aria-hidden="true"><use href="#icon-search"></use></svg>
     <p class="dnu-empty__title">Ничего не найдено</p>
     <p class="dnu-empty__text">…</p>
     <p class="dnu-empty__action"><a class="dnu-btn dnu-btn--ghost-light dnu-btn--sm" href="…">…</a></p>
   </div>
   Icon and action are optional. */
.dnu-empty{
  text-align:center;padding:56px 24px;
  border:1.5px dashed var(--border-default);border-radius:var(--radius-md);
  background:var(--surface-card);
}
.dnu-empty__icon{display:block;margin:0 auto 16px;color:var(--brand-primary);opacity:.4}
.dnu-empty__title{font-size:19px;font-weight:var(--fw-bold);color:var(--text-body);margin:0 0 6px}
.dnu-empty__text{font-size:14.5px;color:var(--text-secondary);max-width:460px;margin:0 auto}
.dnu-empty__action{margin:20px 0 0}

/* === filter chips / tabs ================================================= */
.dnu-chips{display:flex;gap:12px;flex-wrap:wrap}

.dnu-chip{
  padding:10px 20px;border-radius:var(--radius-pill);
  border:1.5px solid var(--border-default);background:#fff;color:var(--text-body);
  font-weight:var(--fw-medium);font-size:15px;cursor:pointer;text-decoration:none;
  transition:background .15s,border-color .15s,color .15s;
}
.dnu-chip:hover{border-color:var(--brand-primary);color:var(--brand-primary)}

.dnu-chip.is-active,.dnu-chip[aria-current="page"],.dnu-chip[aria-pressed="true"]{
  background:var(--brand-primary);border-color:var(--brand-primary);color:#fff;
}
.dnu-chip--sm{padding:8px 16px;font-size:14px}

/* Chips as a page-level filter: fixed gap to the filtered content below. */
.dnu-chips + .dnu-event-list{margin-top:32px}
.dnu-chips + .dnu-result-count{margin-top:24px}

/* === breadcrumbs ========================================================= */
.dnu-crumbs{border-bottom:1px solid var(--border-default);background:#fff}

.dnu-crumbs__list{
  display:flex;gap:0;flex-wrap:wrap;list-style:none;
  padding-top:14px;padding-bottom:14px;
  font-size:13px;color:var(--text-secondary);
}
.dnu-crumbs__item{display:flex;align-items:center}

/* Separator is a pseudo-element — never a markup node. */
.dnu-crumbs__item + .dnu-crumbs__item::before{content:"/";opacity:.5;margin:0 8px}
.dnu-crumbs__link{color:inherit;text-decoration:none}
.dnu-crumbs__link:hover{color:var(--brand-primary)}
.dnu-crumbs [aria-current="page"]{color:var(--text-body)}

/* === pagination ========================================================== */
.dnu-pagination{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:40px}
.dnu-pagination__list{display:flex;gap:8px;list-style:none}

.dnu-pagination__link{
  min-width:40px;height:40px;padding:0 8px;border-radius:8px;
  border:1px solid var(--border-default);background:#fff;color:var(--text-body);
  display:flex;align-items:center;justify-content:center;
  text-decoration:none;font-weight:var(--fw-bold);font-size:14px;
  transition:border-color .15s,color .15s;
}
.dnu-pagination__link:hover{border-color:var(--brand-primary);color:var(--brand-primary)}

.dnu-pagination__link[aria-current="page"]{
  background:var(--brand-primary);border-color:var(--brand-primary);color:#fff;
}
.dnu-pagination__link--prev,.dnu-pagination__link--next{padding:0 16px;font-weight:var(--fw-medium)}

/* Arrows are pseudo-elements — never markup nodes. */
.dnu-pagination__link--prev::before{content:"← "}
.dnu-pagination__link--next::after{content:" →"}

.dnu-pagination__gap{
  min-width:40px;height:40px;display:flex;align-items:center;justify-content:center;
  color:var(--text-secondary);
}

@media (max-width: 580px){
  .dnu-pagination{flex-wrap:wrap}

  /* The inner page list must wrap too: 7 cells ("1 … 4 5 6 … 8") are wider
     than 320px and caused horizontal page scroll. */
  .dnu-pagination__list{flex-wrap:wrap;justify-content:center}
}

/* === page banner (list/static pages) ==================================== */
.dnu-banner{background:#fff}
.dnu-banner__body{padding-top:40px;padding-bottom:4px}

.dnu-banner__title{
  font-weight:var(--fw-bold);font-size:clamp(28px,4.4vw,44px);
  margin:0;text-transform:uppercase;line-height:1.06;color:var(--text-body);
}

.dnu-banner__subtitle{
  color:var(--text-secondary);font-size:clamp(16px,2vw,19px);
  max-width:660px;margin:14px 0 0;
}

/* Dark banner variant (v3 cool gradient) — optional. */
.dnu-banner--dark{background:var(--gradient-brand-cool-glow),var(--gradient-brand-cool)}
.dnu-banner--dark .dnu-banner__title{color:#fff}
.dnu-banner--dark .dnu-banner__subtitle{color:#E2F0E8}
.dnu-banner--dark .dnu-banner__body{padding-bottom:40px}

/* === article (news/event detail) ========================================= */
.dnu-article-meta{font-size:13px;color:var(--badge-text);font-weight:var(--fw-bold);letter-spacing:.03em;margin-bottom:10px}
.dnu-article-meta--plain{color:var(--text-secondary);font-weight:var(--fw-regular)}
.dnu-article-title{font-weight:var(--fw-bold);font-size:clamp(26px,4vw,40px);line-height:1.1;margin:0 0 24px}

/* Event detail: computed-status badge + section label row above the h1. */
.dnu-event-detail-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.dnu-event-detail-head__section{font-size:13px;color:var(--text-secondary)}

/* Album heading is one step smaller than the article h1 (mockup: 24–34px). */
.dnu-article-title--compact{font-size:clamp(24px,3.4vw,34px);margin-bottom:6px}
.dnu-album-meta{color:var(--text-secondary);margin:0 0 28px}
.dnu-article-cover{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:var(--radius-md);margin-bottom:28px}
.dnu-article-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:28px 0}
.dnu-article-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px}

/* Links wrap photos opened in the lightbox — same zoom affordance as the
   album grid (.dnu-album-grid__item). */
.dnu-article-gallery a{cursor:zoom-in}

@media (max-width: 580px){.dnu-article-gallery{grid-template-columns:1fr 1fr;gap:8px}}

/* Share row. */
.dnu-share{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  padding-top:20px;border-top:1px solid var(--border-default);
}
.dnu-share__label{font-weight:var(--fw-bold);font-size:14px}

.dnu-share__link{
  display:inline-flex;align-items:center;gap:6px;
  font-size:13px;font-weight:var(--fw-bold);color:var(--brand-primary);
  border:1px solid var(--border-default);border-radius:8px;padding:8px 12px;
  text-decoration:none;transition:border-color .15s;
}
.dnu-share__link:hover{border-color:var(--brand-primary)}

/* "Скопировано" confirmation shown by JS next to [data-copy-url]
   (the element lives in markup with role="status" + hidden). */
.dnu-share__copied{font-size:13px;font-weight:var(--fw-bold);color:var(--badge-text)}

/* Event facts card (detail page aside). */
.dnu-aside-sticky{position:sticky;top:calc(var(--header-h) + 20px)}

.dnu-facts{
  border:1px solid var(--border-default);border-radius:var(--radius-md);
  padding:24px;box-shadow:var(--shadow-card);margin:0;
}
.dnu-facts__row{padding:12px 0}
.dnu-facts__row + .dnu-facts__row{border-top:1px solid var(--border-default)}
.dnu-facts__key{font-size:12.5px;color:var(--text-secondary);margin:0}
.dnu-facts__value{font-size:15.5px;font-weight:var(--fw-medium);margin:0}

/* === cookie notice ======================================================= */
/* Полоса информирования о cookie. Не модальное окно: контент под ней остаётся
   доступным и мышью, и с клавиатуры, читалка объявляет её как region. Отступ
   снизу у body (класс ставит header.php) не даёт полосе закрыть низ подвала.
   z-index 150 — выше липкой шапки (50) и выпадающего меню (60), но ниже
   skip-link (200) и лайтбокса (300). */
.dnu-cookie{
  position:fixed;left:0;right:0;bottom:0;z-index:150;
  background:#fff;border-top:1px solid var(--border-default);
  box-shadow:0 -10px 34px rgb(18 46 104 / 14%);
}
.dnu-cookie__inner{
  display:flex;align-items:center;gap:24px;
  padding-top:16px;padding-bottom:16px;
}
.dnu-cookie__text{flex:1;min-width:0}
.dnu-cookie__title{margin:0 0 4px;font-weight:var(--fw-bold);font-size:15.5px}
.dnu-cookie__note{margin:0;font-size:13.5px;line-height:1.5;color:var(--text-secondary)}
.dnu-cookie__link{color:var(--link-color)}
.dnu-cookie__link:hover{color:var(--link-hover)}
.dnu-cookie__actions{display:flex;flex-shrink:0;gap:10px}

/* Высота полосы плавает от переносов текста, поэтому запас берём с избытком:
   лишний отступ под подвалом незаметен, а обрезанный низ подвала — заметен. */
body.dnu-cookie-open{padding-bottom:160px}

@media (max-width: 900px){
  .dnu-cookie__inner{flex-direction:column;align-items:stretch;gap:14px}
  .dnu-cookie__actions{justify-content:flex-start}
  body.dnu-cookie-open{padding-bottom:250px}
}
@media (max-width: 580px){
  .dnu-cookie{max-height:70vh;overflow-y:auto}
  .dnu-cookie__actions{flex-direction:column}
  .dnu-cookie__actions .dnu-btn{width:100%;justify-content:center}
  body.dnu-cookie-open{padding-bottom:370px}
}

/* === content zone (CMS visual editor output) ============================= */
.dnu-content{font-size:17px;line-height:1.7;color:var(--text-body)}
.dnu-content > *:first-child{margin-top:0}
.dnu-content p{margin:0 0 1em}
.dnu-content h2{font-size:24px;font-weight:var(--fw-bold);line-height:var(--lh-heading);margin:32px 0 12px}
.dnu-content h3{font-size:20px;font-weight:var(--fw-bold);line-height:var(--lh-heading);margin:26px 0 10px}
.dnu-content h4{font-size:17px;font-weight:var(--fw-bold);line-height:var(--lh-heading);margin:22px 0 8px}
.dnu-content ul,.dnu-content ol{margin:0 0 1em;padding-left:1.4em}
.dnu-content li{margin-bottom:.35em}
.dnu-content a{color:var(--brand-primary);text-decoration:underline;text-underline-offset:2px}
.dnu-content a:hover{color:var(--brand-primary-hover)}

.dnu-content blockquote{
  margin:1.4em 0;padding:16px 20px;background:var(--surface-soft);
  border-left:3px solid var(--brand-accent);border-radius:0 var(--radius-sm) var(--radius-sm) 0;
  color:var(--text-body);font-size:16.5px;
}
.dnu-content blockquote p:last-child{margin-bottom:0}
.dnu-content figure{margin:1.6em 0}
.dnu-content figure img{width:100%;border-radius:var(--radius-sm)}
.dnu-content figcaption{font-size:13.5px;color:var(--text-secondary);margin-top:8px}
.dnu-content hr{border:none;border-top:1px solid var(--border-default);margin:2em 0}

/* Tables scroll inside the content column on narrow screens. */
.dnu-content table{
  width:100%;border-collapse:collapse;margin:1.4em 0;font-size:15px;
}

.dnu-content th,.dnu-content td{
  border:1px solid var(--border-default);padding:10px 14px;text-align:left;
  vertical-align:top;
}
.dnu-content th{background:var(--surface-soft);font-weight:var(--fw-bold)}
.dnu-table-scroll{overflow-x:auto}

/* Document links: visual editor output gets a suffix by extension. */
.dnu-content a[href$=".pdf"]::after{content:" (PDF)";font-size:.8em;color:var(--text-secondary)}
.dnu-content a[href$=".docx"]::after{content:" (DOCX)";font-size:.8em;color:var(--text-secondary)}
.dnu-content a[href$=".xlsx"]::after{content:" (XLSX)";font-size:.8em;color:var(--text-secondary)}

/* === brand photo mask ("house-shield" + "book-wave") ===================== */

/* Applied to a plain <img> via CSS mask (no React, no per-instance SVG ids).
   Wrapper adds the "book-wave" shape below the masked photo.
   Modifier --dark renders the book white (for dark sections). */
.dnu-shield{display:block;position:relative}

/* `.dnu-shield > img` catches a photo inserted without the class: the first
   screen of /about/ is an editable include, and an editor replacing the image
   from the admin panel would otherwise drop the mask along with the class. */
.dnu-shield__img,
.dnu-shield > img{
  width:100%;aspect-ratio:1208/1172;object-fit:cover;
  -webkit-mask-image:url("/local/templates/dnu/assets/css/../img/house-frame.svg");
  mask-image:url("/local/templates/dnu/assets/css/../img/house-frame.svg");
  -webkit-mask-size:100% 100%;mask-size:100% 100%;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
}

.dnu-shield::after{
  content:"";display:block;aspect-ratio:1207/270;margin-top:2.4%;
  background:var(--brand-primary);
  -webkit-mask-image:url("/local/templates/dnu/assets/css/../img/book-wave.svg");
  mask-image:url("/local/templates/dnu/assets/css/../img/book-wave.svg");
  -webkit-mask-size:100% 100%;mask-size:100% 100%;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
}
.dnu-shield--dark::after{background:#fff}

/* Fallback without mask support: rounded photo, no book shape. */
@supports not ((mask-image:url("/local/templates/dnu/assets/css/)) or (-webkit-mask-image:url("))){
  .dnu-shield__img{border-radius:var(--radius-md)}
  .dnu-shield::after{display:none}
}

/* === ornament divider ==================================================== */

/* Full-bleed horizontal band with the khanty ornament. Color comes from the
   ::after background, the ornament PNG is used as an alpha mask (repeat-x —
   fixes the mockup bug where only 3 copies of the band were rendered). */
.dnu-divider{height:34px;position:relative;overflow:hidden}
.dnu-divider--dark{background:var(--gradient-brand)}
.dnu-divider--light{background:var(--surface-soft)}

.dnu-divider::after{
  content:"";position:absolute;inset:0;
  -webkit-mask:url("/local/templates/dnu/assets/css/../img/ornament-band-1.png") repeat-x left center/auto 20px;
  mask:url("/local/templates/dnu/assets/css/../img/ornament-band-1.png") repeat-x left center/auto 20px;
}
.dnu-divider--dark::after{background:#fff;opacity:.85}
.dnu-divider--light::after{background:var(--brand-primary);opacity:.5}

.dnu-divider--band-2::after{
  -webkit-mask-image:url("/local/templates/dnu/assets/css/../img/ornament-band-2.png");
  mask-image:url("/local/templates/dnu/assets/css/../img/ornament-band-2.png");
}

.dnu-divider--band-3::after{
  -webkit-mask-image:url("/local/templates/dnu/assets/css/../img/ornament-band-3.png");
  mask-image:url("/local/templates/dnu/assets/css/../img/ornament-band-3.png");
}

/* Fallback without mask support: plain colored band, no ornament. */
@supports not ((mask-image:url("/local/templates/dnu/assets/css/)) or (-webkit-mask-image:url("))){
  .dnu-divider::after{display:none}
}

/* === hero (home) ========================================================= */
.dnu-hero{
  position:relative;color:#fff;overflow:hidden;
  background:var(--gradient-brand-glow),var(--gradient-brand);
}
.dnu-hero--cool{background:var(--gradient-brand-cool-glow),var(--gradient-brand-cool)}
.dnu-hero__inner{padding-top:72px;padding-bottom:84px;position:relative;z-index:2}

.dnu-hero__kicker{
  display:inline-block;font-size:13px;font-weight:var(--fw-bold);
  letter-spacing:.14em;text-transform:uppercase;color:#BCD0FF;
  border:1px solid rgb(255 255 255 / 30%);border-radius:var(--radius-pill);
  padding:6px 14px;margin-bottom:22px;
}

.dnu-hero__title{
  font-weight:var(--fw-bold);font-size:var(--text-hero);
  text-transform:uppercase;line-height:1.02;margin:0 0 18px;
}
.dnu-hero__subtitle{font-size:clamp(18px,2.4vw,26px);color:#DFE7FF;max-width:520px;margin:0 0 28px}
.dnu-hero--cool .dnu-hero__subtitle{color:#E2F0E8}
.dnu-hero__actions{display:flex;gap:14px;flex-wrap:wrap}
.dnu-hero__media{max-width:340px;margin:0 auto;width:100%}

@media (max-width: 580px){
  .dnu-hero__inner{padding-top:52px;padding-bottom:60px}
  .dnu-hero__media{max-width:260px}
}

/* Hero mosaic of "house shields" (reference: website-v3/HeroV3.jsx).
   Absolute track bleeds past the container (right -160px, top -24px,
   bottom -48px; .dnu-hero overflow:hidden crops the edges): 3 columns of
   3 shields, middle column shifted 86px down. min-height 520px holds on
   all widths (on <=900px the mosaic goes under the text at the same
   height, bottom cropped by the section edge — as in the reference). */
.dnu-hero__mosaic{position:relative;align-self:stretch;min-height:520px}

.dnu-hero__mosaic-track{
  position:absolute;inset:-24px -160px -48px 0;
  display:flex;gap:14px;align-items:flex-start;
}
.dnu-hero__mosaic-col{flex:1;display:flex;flex-direction:column;gap:12px}
.dnu-hero__mosaic-col--shift{margin-top:86px}

/* Different crops of one photo in the shields — the page passes
   object-position via style="--shield-pos:..." (allowed inline case 3). */
.dnu-hero__mosaic .dnu-shield__img{object-position:var(--shield-pos,50% 50%)}

/* Solid-color shields without a photo ("green/blue shapes" of the mosaic):
   <span class="dnu-shield__img dnu-shield__img--fill-*"> — the base mask
   applies to any element with the .dnu-shield__img class. */
.dnu-shield__img--fill-green,
.dnu-shield__img--fill-blue{display:block;aspect-ratio:1208/1172}
.dnu-shield__img--fill-green{background:linear-gradient(150deg,#2DA836,#1C7A4B)}
.dnu-shield__img--fill-blue{background:linear-gradient(150deg,#36579E,#122E68)}

/* Hero grid proportions per the reference: 1.05fr/1fr with gap 40 (base
   .dnu-split--hero is 1.15fr/.85fr — the mosaic gets noticeably narrower).
   Specificity (0,2,0) overrides the base media collapse — restore it. */
.dnu-hero__inner.dnu-split--hero{grid-template-columns:1.05fr 1fr;gap:40px}

@media (max-width: 900px){
  .dnu-hero__inner.dnu-split--hero{grid-template-columns:1fr}
}

/* === about (home) ======================================================== */

/* "A house open to all peoples of Yugra" section (reference: About.jsx):
   lead paragraph, CTA offset after the stats, photo-shield wrapper. */
.dnu-about__lead{
  font-size:var(--text-body-lg);color:var(--text-secondary);
  max-width:520px;margin:14px 0 0;
}
.dnu-about__cta{margin:26px 0 0}
.dnu-about__media{max-width:360px;margin:0 auto;width:100%}

/* === 404 ================================================================= */
.dnu-notfound__code{font-size:clamp(64px,12vw,120px);font-weight:var(--fw-bold);line-height:1;margin-bottom:8px}
.dnu-notfound__title{font-weight:var(--fw-bold);font-size:clamp(24px,3.4vw,34px);margin:0 0 14px}
.dnu-notfound__text{color:#E2F0E8;font-size:17px;max-width:440px;margin:0 0 26px}
.dnu-notfound__media{max-width:260px;margin:0 auto;width:100%}
.dnu-notfound__actions{display:flex;gap:14px;flex-wrap:wrap;margin:0}

/* === lightbox (built by JS, styles here) ================================= */

/* Top layer of the page: above the header (50), dropdowns (60) and the
   skip link (200). */
.dnu-lightbox{
  position:fixed;inset:0;z-index:300;
  background:rgb(18 46 104 / 88%);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:24px;gap:16px;
}

.dnu-lightbox__img{
  max-width:min(92vw,1000px);max-height:78vh;border-radius:12px;
  object-fit:contain;box-shadow:0 30px 80px rgb(0 0 0 / 40%);
}
/* Video inside the lightbox: an external player instead of the photo. Album
   pages mix photos and clips in one strip, so both live in the same overlay. */
.dnu-lightbox__frame{
  width:min(92vw,1120px);aspect-ratio:16/9;max-height:78vh;
  border:0;border-radius:12px;background:#000;box-shadow:0 30px 80px rgb(0 0 0 / 40%);
}

.dnu-lightbox__nav{display:flex;align-items:center;gap:20px;color:#fff}

.dnu-lightbox__btn{
  width:44px;height:44px;border-radius:var(--radius-pill);
  border:1.5px solid rgb(255 255 255 / 40%);background:transparent;color:#fff;
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:border-color .15s,background .15s;
}
.dnu-lightbox__btn:hover{border-color:#fff;background:rgb(255 255 255 / 12%)}
.dnu-lightbox__close{position:absolute;top:20px;right:20px}
.dnu-lightbox__counter{font-size:14px;opacity:.9;min-width:56px;text-align:center}
.dnu-no-scroll{overflow:hidden}

/* While the lightbox is open (body.dnu-no-scroll is set only by it) the
   sticky header is hidden: the veil is translucent (.88) and the header
   silhouette showed through right under the close button, colliding with
   the "Связаться" CTA. */
.dnu-no-scroll .dnu-header{visibility:hidden}

/* === footer ============================================================== */
.dnu-footer{background:var(--color-ink);color:rgb(255 255 255 / 72%)}

.dnu-footer__grid{
  display:grid;grid-template-columns:1fr 1.05fr;gap:56px;
  align-items:start;padding-top:60px;
}
.dnu-footer__logo{margin-bottom:20px}
.dnu-footer__mission{font-size:14px;max-width:340px;margin:0 0 26px;line-height:1.5}

.dnu-footer__title{
  color:#fff;font-size:14px;letter-spacing:.06em;text-transform:uppercase;
  font-weight:var(--fw-bold);margin:0 0 12px;
}
.dnu-footer__title:not(:first-child){margin-top:26px}
.dnu-footer__text{font-size:14px;margin:0 0 8px}
.dnu-footer__link{color:inherit;text-decoration:none;transition:color .15s}
.dnu-footer__link:hover{color:#fff}
.dnu-footer__requisites{font-size:13px;line-height:1.6;margin:0}
.dnu-footer .dnu-card--form .dnu-consent{color:var(--text-secondary)}

.dnu-footer__bottom{
  margin-top:44px;padding-top:20px;padding-bottom:20px;
  border-top:1px solid rgb(255 255 255 / 12%);
  font-size:13px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;
}
.dnu-footer__bottom-link{color:inherit;text-decoration:underline;transition:color .15s}
.dnu-footer__bottom-link:hover{color:var(--brand-accent)}

/* Developer credit: text + studio wordmark from the sprite (currentColor,
   so it picks up the muted footer colour and brightens on hover). */
.dnu-footer__dev{color:inherit;text-decoration:none;transition:color .15s;white-space:nowrap}
.dnu-footer__dev:hover{color:#fff}
.dnu-footer__dev-logo{display:inline-block;vertical-align:-.2em}

@media (max-width: 900px){
  .dnu-footer__grid{grid-template-columns:1fr;gap:40px;padding-top:48px}
}

/* Tablet only: brand block and contacts sit side by side, everything else
   (menu, socials, form) stacks full width below. On phones they stack too —
   two columns at 320px would squeeze the address. */
@media (min-width: 581px) and (max-width: 900px){
  .dnu-footer__col--brand{
    display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:start;
  }
  .dnu-footer__mission{margin-bottom:0}
}

/* === misc ================================================================ */

/* Inline icon (svg <use> from the sprite). */
.dnu-icon{flex-shrink:0;display:inline-block;vertical-align:-.18em}

/* Long-word guard: very long words (e.g. 31-char hashtags) must not
   overflow card titles or the content zone. Targeted list on purpose.
   hyphens:auto (pages are lang="ru", dictionary hyphenation) lets normal
   long words break with a hyphen instead of a bare mid-word cut. */
.dnu-news-card__title,.dnu-news-card__excerpt,
.dnu-event-row__title,.dnu-result__title,
.dnu-album-tile__title,.dnu-doc-row__name,
.dnu-banner__title,
.dnu-content{overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}

/* Map embed container (contacts page). */
.dnu-map{
  width:100%;aspect-ratio:16/9;border-radius:var(--radius-md);
  overflow:hidden;border:1px solid var(--border-default);
}
.dnu-map iframe{width:100%;height:100%;border:0;display:block}

/* Contact info block (contacts page key-value pairs). */
.dnu-contact-line{margin:0 0 14px;font-size:16px}
.dnu-contact-line__key{display:block;font-size:13px;color:var(--text-secondary)}
.dnu-contact-line__link{color:var(--brand-primary);text-decoration:none}
.dnu-contact-line__link:hover{text-decoration:underline}
.dnu-contact-list{margin-top:20px}

/* Contacts page: working hours as a day/time schedule. Two max-content grid
   columns keep the time column on one vertical line whatever the day name is;
   tabular figures stop the digits from shifting between rows. */
.dnu-schedule{
  margin:4px 0 0;display:grid;grid-template-columns:max-content max-content;
  column-gap:24px;row-gap:7px;font-size:16px;line-height:1.35;
}
.dnu-schedule__day{color:var(--text-body)}
.dnu-schedule__time{
  margin:0;white-space:nowrap;
  font-variant-numeric:tabular-nums;font-feature-settings:'tnum' 1;
}
.dnu-schedule__day--muted,.dnu-schedule__time--muted{color:var(--text-secondary)}
/* Both cells of a row get the same top margin, so the row stays level. */
.dnu-schedule__day--gap{margin-top:9px}
.dnu-schedule__time--gap{margin:9px 0 0}

/* Contacts page: social buttons row + "open in maps" link under the stub. */
.dnu-contact-social{display:flex;gap:10px;margin:6px 0 22px;list-style:none;padding:0}
.dnu-map img{width:100%;height:100%;object-fit:cover;display:block}
.dnu-map-open{margin:10px 0 0;font-size:14px}
.dnu-map-open__link{color:var(--brand-primary);font-weight:var(--fw-medium);text-decoration:none}
.dnu-map-open__link:hover{text-decoration:underline}
.dnu-map-open .dnu-icon{margin-left:6px}

/* Legal pages: "Редакция от …" line above the content zone. */
.dnu-legal-updated{font-size:14px;color:var(--text-secondary);margin:0 0 28px}

/* === styleguide-only (styleguide.html scaffolding — do NOT port to CMS) == */

/* Palette swatches, typography specimens, dark backdrop for ghost buttons,
   specimen labels/notes. No production page uses .dnu-sg-* classes; the
   Bitrix integrator must NOT carry this section over. */

/* Anchor table of contents right under the banner. */
.dnu-sg-toc{padding-top:18px}

/* Specimen micro-heading. */
.dnu-sg-label{
  font-size:14px;font-weight:var(--fw-bold);letter-spacing:.08em;
  text-transform:uppercase;color:var(--brand-primary);margin:44px 0 16px;
}
.dnu-section-title + .dnu-sg-label{margin-top:24px}

/* Explanatory caption under a specimen. */
.dnu-sg-note{font-size:13.5px;color:var(--text-secondary);max-width:760px;margin:12px 0 0}
.dnu-section-title + .dnu-sg-note{margin-top:14px}

/* Horizontal row of samples (buttons, badges). */
.dnu-sg-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}

/* Vertical stack of variants of one specimen. */
.dnu-sg-stack{display:grid;gap:16px}

/* Dark backdrop: habitat of --ghost buttons and .dnu-shield--dark. */
.dnu-sg-dark{
  background:var(--gradient-brand-glow),var(--gradient-brand);
  border-radius:var(--radius-md);padding:26px;color:#fff;
}

/* Palette swatches: the color is passed via style="--sg-swatch:var(--…)". */
.dnu-sg-swatches{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px}
.dnu-sg-swatch{border:1px solid var(--border-default);border-radius:var(--radius-sm);overflow:hidden;background:#fff}
.dnu-sg-swatch__chip{height:60px;background:var(--sg-swatch,#fff);border-bottom:1px solid var(--border-default)}
.dnu-sg-swatch__name{display:block;font-family:var(--font-mono);font-size:11.5px;color:var(--text-body);padding:8px 10px 2px;word-break:break-all}
.dnu-sg-swatch__value{display:block;font-family:var(--font-mono);font-size:11px;color:var(--text-secondary);padding:0 10px 8px}

/* Typography specimen: size/weight passed via style="--sg-fs/--sg-fw". */
.dnu-sg-spec{display:flex;align-items:baseline;gap:20px;padding:16px 0;border-top:1px solid var(--border-default);flex-wrap:wrap}
.dnu-sg-spec__meta{flex:0 0 250px;font-family:var(--font-mono);font-size:12px;color:var(--text-secondary)}

.dnu-sg-type{
  margin:0;min-width:0;overflow-wrap:break-word;
  font-size:var(--sg-fs,var(--fs-body));font-weight:var(--sg-fw,var(--fw-regular));
  line-height:var(--lh-heading);
}
.dnu-sg-type--flow{line-height:var(--lh-body)}

/* Captcha slot placeholder (in production .dnu-form__captcha stays empty). */
.dnu-sg-captcha{
  margin:0;border:1.5px dashed var(--border-default);border-radius:var(--radius-sm);
  background:var(--surface-soft);color:var(--text-secondary);
  font-size:13px;text-align:center;padding:20px 14px;
}

/* End */
/* /local/templates/dnu/assets/css/main.css?178965006065685 */
