/* WorldPhotoTeam — стили прототипа.
   Слои: reset → tokens → base → layout → components → pages → motion.
   Шрифты лежат локально в /assets/fonts (OFL), внешних запросов нет. */

@layer reset, tokens, base, layout, components, pages, motion;

/* ---------- fonts ---------- */
@font-face {
  font-family: 'Onest';
  src: url("../fonts/onest-cyrillic-wght-normal.fe2bd26ae82a.woff2") format('woff2');
  font-weight: 100 900; 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: 'Onest';
  src: url("../fonts/onest-latin-wght-normal.3db826ed1c5d.woff2") format('woff2');
  font-weight: 100 900; 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;
}
@font-face {
  font-family: 'Unbounded';
  src: url("../fonts/unbounded-cyrillic-wght-normal.3a5ed4d11365.woff2") format('woff2');
  font-weight: 200 900; 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: 'Unbounded';
  src: url("../fonts/unbounded-latin-wght-normal.8616dc355070.woff2") format('woff2');
  font-weight: 200 900; 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;
}

/* ---------- reset ---------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { min-height: 100dvh; }
  img, picture, svg, video { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { background: none; border: 0; padding: 0; cursor: pointer; }
  /* списки интерфейса (с классом) — без маркеров; маркеры только у простых списков в тексте .prose */
  :where(ul, ol):not(.prose *), .prose :where(ul, ol)[class] { list-style: none; padding: 0; }
  a { color: inherit; }
  h1, h2, h3, h4 { text-wrap: balance; }
  p { text-wrap: pretty; }
  [hidden] { display: none !important; }
}

/* ---------- tokens ---------- */
@layer tokens {
  :root {
    --f-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
    --f-text: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --accent: #ff4a1c;
    --accent-hover: #ff6a42;
    --on-accent: #fff;

    --radius-s: 8px;
    --radius: 14px;
    --radius-l: 24px;
    --gutter: clamp(16px, 4vw, 48px);
    --container: 1440px;
    --header-h: 72px;

    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);

    --fs-xs: .8125rem;
    --fs-s: .9375rem;
    --fs-m: 1.0625rem;
    --fs-l: clamp(1.125rem, 1rem + .5vw, 1.375rem);
    --fs-h3: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
    --fs-h2: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem);
    --fs-h1: clamp(2.125rem, 1.2rem + 4.2vw, 5rem);
    --fs-hero: clamp(2.25rem, 1rem + 5.5vw, 6.25rem);
  }
  :root, [data-theme='dark'] {
    color-scheme: dark;
    --bg: #0d0d0e;
    --bg-2: #141416;
    --surface: #1a1a1d;
    --surface-2: #242428;
    --text: #f3f1ec;
    --muted: #a3a09a;
    --line: rgb(255 255 255 / .1);
    --line-strong: rgb(255 255 255 / .22);
    --shadow: 0 24px 60px -20px rgb(0 0 0 / .6);
    --glass: rgb(13 13 14 / .72);
  }
  [data-theme='light'] {
    color-scheme: light;
    --bg: #f5f3ee;
    --bg-2: #ebe8e1;
    --surface: #ffffff;
    --surface-2: #f0ede6;
    --text: #141414;
    --muted: #5f5c56;
    --line: rgb(0 0 0 / .1);
    --line-strong: rgb(0 0 0 / .22);
    --shadow: 0 24px 60px -24px rgb(40 30 10 / .25);
    --glass: rgb(245 243 238 / .8);
    --accent: #e8380d;
  }
}

/* ---------- base ---------- */
@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--f-text);
    font-size: var(--fs-m);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color .4s, color .4s;
  }
  /* слова не рвём посередине: переносы только по &shy;, которые расставляет сборка (hyphenateHtml) */
  h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; overflow-wrap: normal; hyphens: manual; -webkit-hyphens: manual; }
  a { text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .2s; }
  a:hover { color: var(--accent); }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
  ::selection { background: var(--accent); color: #fff; }
  main:focus { outline: none; }
  .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .skip-link { position: fixed; z-index: 1000; left: 16px; top: -60px; padding: 12px 18px; background: var(--accent); color: #fff; border-radius: var(--radius-s); font-weight: 600; transition: top .2s; }
  .skip-link:focus { top: 16px; color: #fff; }
  .icon { width: 1.25em; height: 1.25em; flex: none; }
  mark.todo { background: color-mix(in srgb, var(--accent) 20%, transparent); color: inherit; padding: 0 .3em; border-radius: 4px; }
}

/* ---------- layout ---------- */
@layer layout {
  .container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
  .container--narrow { max-width: calc(980px + var(--gutter) * 2); }
  .section { padding-block: clamp(56px, 8vw, 120px); }
  .section--tight { padding-block: clamp(24px, 4vw, 56px) clamp(56px, 8vw, 112px); }
  .section--alt { background: var(--bg-2); }
  .split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
  @media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
}

/* ---------- components ---------- */
@layer components {
  /* buttons */
  .btn {
    --btn-bg: var(--surface-2); --btn-fg: var(--text);
    display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    min-height: 48px; padding: 0 1.4em; border-radius: 999px;
    background: var(--btn-bg); color: var(--btn-fg);
    font-weight: 600; font-size: var(--fs-s); text-decoration: none; white-space: nowrap;
    border: 1px solid transparent;
    transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease-out);
  }
  .btn:hover { color: var(--btn-fg); transform: translateY(-2px); }
  .btn:active { transform: translateY(0) scale(.98); }
  .btn .icon { transition: transform .3s var(--ease-out); }
  .btn:hover .icon { transform: translateX(3px); }
  .btn--accent { --btn-bg: var(--accent); --btn-fg: var(--on-accent); }
  .btn--accent:hover { --btn-bg: var(--accent-hover); }
  .btn--light { --btn-bg: #fff; --btn-fg: #111; }
  .btn--light:hover { --btn-bg: var(--accent); --btn-fg: #fff; }
  .btn--ghost { --btn-bg: transparent; border-color: var(--line-strong); }
  .btn--ghost:hover { border-color: var(--text); }
  .btn--outline { --btn-bg: transparent; border-color: var(--accent); --btn-fg: var(--text); }
  .btn--outline:hover { --btn-bg: var(--accent); --btn-fg: #fff; }
  .btn--sm { min-height: 40px; padding: 0 1.1em; font-size: var(--fs-xs); }
  .btn--lg { min-height: 58px; padding: 0 1.8em; font-size: var(--fs-m); }
  .btn--block { width: 100%; }

  .icon-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    color: inherit; transition: background-color .2s, color .2s, transform .2s var(--ease-out);
  }
  .icon-btn:hover { background: color-mix(in srgb, currentColor 12%, transparent); color: inherit; }
  .icon-btn:active { transform: scale(.92); }
  .icon-btn--glass { background: rgb(255 255 255 / .1); backdrop-filter: blur(10px); color: #fff; border: 1px solid rgb(255 255 255 / .18); }
  .icon-btn--glass:hover { background: rgb(255 255 255 / .22); }

  .link { color: var(--accent); text-decoration: underline; }
  .link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: var(--fs-s); text-decoration: none; white-space: nowrap; }
  .link-arrow .icon { transition: transform .3s var(--ease-out); }
  .link-arrow:hover .icon { transform: translateX(4px); }

  .kicker { display: inline-flex; align-items: center; gap: .5em; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .9em; }
  .label { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1em; }

  .tags { display: flex; flex-wrap: wrap; gap: 8px; }
  .tag {
    display: inline-flex; align-items: center; gap: .4em; padding: .45em 1em; border-radius: 999px;
    border: 1px solid var(--line-strong); font-size: var(--fs-xs); font-weight: 500; text-decoration: none; white-space: nowrap;
    transition: background-color .2s, border-color .2s, color .2s;
  }
  a.tag:hover, button.tag:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
  .tags--hero { margin-top: 28px; }
  .page-hero--image .tag { border-color: rgb(255 255 255 / .4); }
  .page-hero--image a.tag:hover { background: #fff; color: #111; border-color: #fff; }

  .age-badge { display: inline-grid; place-items: center; min-width: 2.4em; height: 2.4em; padding: 0 .4em; border: 1.5px solid currentColor; border-radius: 50%; font-weight: 700; font-size: var(--fs-xs); flex: none; }
  .dot-rec { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: rec 2s infinite; }
  @keyframes rec { 0% { box-shadow: 0 0 0 0 rgb(255 74 28 / .6); } 70% { box-shadow: 0 0 0 10px rgb(255 74 28 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 74 28 / 0); } }

  /* logo */
  .logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
  .logo:hover { color: inherit; }
  .logo__mark { width: 34px; height: 34px; transition: transform .8s var(--ease-out); }
  .logo:hover .logo__mark { transform: rotate(90deg); }
  .logo__dot { fill: var(--accent); }
  .logo__text { font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; letter-spacing: -.02em; }
  .logo__text b { font-weight: 800; }
  /* логотип, загруженный в «Редакции» (SVG/PNG); вторая версия — для тёмной темы */
  .logo__img { display: block; height: 36px; width: auto; max-width: 220px; object-fit: contain; }
  .logo--custom:has(.logo__img--dark) .logo__img--dark { display: none; }
  [data-theme='dark'] .logo--custom:has(.logo__img--dark) .logo__img--light { display: none; }
  [data-theme='dark'] .logo--custom:has(.logo__img--dark) .logo__img--dark { display: block; }
  .preview-bar { position: sticky; top: 0; z-index: 120; padding: 10px var(--gutter); background: var(--accent); color: #fff; font-size: var(--fs-s); font-weight: 600; text-align: center; }
  .preview-bar a { color: #fff; }

  /* header */
  .site-header {
    position: sticky; top: 0; z-index: 100; height: var(--header-h);
    background: var(--glass); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
    border-bottom: 1px solid var(--line);
    transition: transform .45s var(--ease-out), background-color .3s, border-color .3s, color .3s;
  }
  .site-header.is-overlay { position: fixed; inset: 0 0 auto; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
  .site-header.is-overlay::before { content: ''; position: absolute; inset: 0 0 -40px; background: linear-gradient(rgb(0 0 0 / .55), transparent); pointer-events: none; transition: opacity .3s; }
  .site-header.is-overlay.is-scrolled { background: var(--glass); border-color: var(--line); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); color: var(--text); }
  .site-header.is-overlay.is-scrolled::before { opacity: 0; }
  .site-header.is-hidden { transform: translateY(-100%); }
  .site-header__inner { position: relative; display: flex; align-items: center; gap: 24px; height: 100%; }
  .main-nav { margin-inline: auto; }
  .main-nav > ul { display: flex; gap: 4px; }
  .main-nav > ul > li { display: flex; align-items: center; }
  .main-nav > ul > li > a { position: relative; display: block; padding: 10px 12px; font-size: var(--fs-s); font-weight: 500; text-decoration: none; }
  .main-nav > ul > li > a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
  .main-nav > ul > li > a:hover { color: inherit; }
  .main-nav > ul > li > a:hover::after, .main-nav > ul > li > a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
  .mega-toggle { display: grid; place-items: center; width: 24px; height: 24px; margin-left: -8px; border-radius: 50%; }
  .mega-toggle .icon { width: 16px; height: 16px; transition: transform .3s; }
  .has-mega:hover .mega-toggle .icon, .mega-toggle[aria-expanded='true'] .icon { transform: rotate(180deg); }
  .header-actions { display: flex; align-items: center; gap: 4px; }
  .header-cta { margin-left: 8px; }
  .burger { display: none; }
  .theme-toggle .icon-moon { display: none; }
  [data-theme='light'] .theme-toggle .icon-sun { display: none; }
  [data-theme='light'] .theme-toggle .icon-moon { display: block; }

  /* mega menu */
  .mega {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    background: var(--bg); color: var(--text); border-block: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease-out), transform .4s var(--ease-out), visibility 0s .3s;
  }
  .has-mega:hover .mega, .mega.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .mega__inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; padding-block: 32px 40px; }
  .mega__themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .mega__theme { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); text-decoration: none; color: #fff; }
  .mega__theme picture, .mega__theme img { width: 100%; height: 100%; object-fit: cover; }
  .mega__theme img { transition: transform .8s var(--ease-out); }
  .mega__theme::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgb(0 0 0 / .7)); }
  .mega__theme span { position: absolute; z-index: 1; left: 16px; bottom: 12px; font-family: var(--f-display); font-weight: 600; }
  .mega__theme:hover { color: #fff; }
  .mega__theme:hover img { transform: scale(1.08); }
  .mega__label { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
  .mega__label ~ .mega__label { margin-top: 24px; }
  .mega__links li + li { margin-top: 6px; }
  .mega__links a { text-decoration: none; font-weight: 500; }

  /* mobile menu */
  .mobile-menu { position: fixed; inset: 0; z-index: 200; background: var(--bg); color: var(--text); overflow-y: auto; display: flex; flex-direction: column; }
  .mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); flex: none; }
  .mobile-menu__nav { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; padding-block: 24px 48px; }
  .mobile-menu__list a { display: block; padding: 6px 0; font-family: var(--f-display); font-size: clamp(1.75rem, 8vw, 2.5rem); font-weight: 600; text-decoration: none; letter-spacing: -.02em; }
  .mobile-menu__list a[aria-current] { color: var(--accent); }

  @media (max-width: 1180px) {
    .main-nav, .header-cta { display: none; }
    .burger { display: inline-grid; }
    .header-actions { margin-left: auto; }
  }
  @media (max-width: 400px) { .logo__text { font-size: .9rem; } }

  /* section heads */
  .section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 44px); }
  .section-title { font-size: var(--fs-h2); }
  .section-title sup { font-family: var(--f-text); font-size: .4em; color: var(--muted); font-weight: 500; }
  .section-title--xl { font-size: clamp(1.75rem, 1rem + 3vw, 3.5rem); }
  @media (max-width: 560px) { .section-head { flex-direction: column; align-items: flex-start; gap: 12px; } }

  /* cards */
  .cards { display: grid; gap: clamp(28px, 3vw, 40px) clamp(16px, 2vw, 28px); }
  .cards--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
  .cards--featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards--featured .card--wide { grid-column: span 2; grid-row: span 2; }
  .cards--featured .card--wide .card__media { aspect-ratio: auto; flex: 1; min-height: 320px; }
  .cards--featured .card--wide .card__title { font-size: clamp(1.375rem, 1rem + 1.5vw, 2.25rem); }
  @media (max-width: 1100px) { .cards--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 640px) {
    .cards--featured { grid-template-columns: 1fr; }
    .cards--featured .card--wide { grid-column: auto; grid-row: auto; }
    .cards--featured .card--wide .card__media { aspect-ratio: 3 / 2; min-height: 0; }
  }

  .card { position: relative; display: flex; }
  .card__link { display: flex; flex-direction: column; width: 100%; text-decoration: none; color: inherit; }
  .card__link:hover { color: inherit; }
  .card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--surface); isolation: isolate; }
  .card__media picture { position: absolute; inset: 0; }
  .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .6s; }
  .card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgb(0 0 0 / .45)); opacity: 0; transition: opacity .4s; }
  .card__link:hover .card__media img { transform: scale(1.06); }
  .card__link:hover .card__media::after { opacity: 1; }
  .card__count, .card__badge {
    position: absolute; z-index: 1; top: 12px; display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px; border-radius: 999px; background: rgb(0 0 0 / .55); backdrop-filter: blur(8px); color: #fff; font-size: var(--fs-xs); font-weight: 600;
  }
  .card__count { right: 12px; }
  .card__badge { left: 12px; }
  .card__count .icon, .card__badge .icon { width: 14px; height: 14px; }
  .card__badge .icon { color: var(--accent); }
  .card__body { padding-top: 16px; }
  .card__kicker { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
  .card__title { font-size: var(--fs-h3); line-height: 1.2; transition: color .2s; }
  .card__link:hover .card__title { color: var(--accent); }
  .card__meta { display: flex; flex-wrap: wrap; gap: 0 8px; margin-top: 8px; font-size: var(--fs-xs); color: var(--muted); }
  .is-mono img { filter: grayscale(1) contrast(1.08); }

  /* video cards */
  .vcard__link { display: block; text-decoration: none; color: inherit; }
  .vcard__link:hover { color: inherit; }
  .vcard__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
  .vcard__media picture { position: absolute; inset: 0; }
  .vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
  .vcard__link:hover .vcard__media img { transform: scale(1.05); }
  .vcard__play {
    position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
    background: rgb(255 255 255 / .16); backdrop-filter: blur(10px); border: 1px solid rgb(255 255 255 / .4); color: #fff;
    transition: transform .4s var(--ease-out), background-color .3s, border-color .3s;
  }
  .vcard__play .icon { width: 26px; height: 26px; margin-left: 3px; }
  .vcard__link:hover .vcard__play, .video-feature:hover .vcard__play { transform: scale(1.12); background: var(--accent); border-color: var(--accent); }
  .vcard__dur { position: absolute; right: 12px; bottom: 12px; padding: 3px 8px; border-radius: 6px; background: rgb(0 0 0 / .7); color: #fff; font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; }
  .vcard__title { font-size: var(--fs-h3); margin-top: 16px; line-height: 1.2; }
  .vcard.is-filtered-out { display: none; }

  /* events */
  .events { display: grid; gap: 12px; }
  .event {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 2.5vw, 32px);
    padding: clamp(16px, 2vw, 24px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
    transition: border-color .3s, translate .4s var(--ease-out);
  }
  .event:hover { border-color: var(--line-strong); translate: 6px 0; }
  .event__date { display: grid; justify-items: center; min-width: 84px; padding-right: clamp(16px, 2.5vw, 32px); border-right: 1px solid var(--line); }
  .event__day { font-family: var(--f-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; line-height: 1; }
  .event__mon { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }
  .event__sport { font-size: var(--fs-xs); color: var(--accent); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
  .event__title { font-size: var(--fs-h3); margin-block: 4px; }
  .event__place { display: flex; align-items: center; gap: 6px; font-size: var(--fs-s); color: var(--muted); }
  .event__place .icon { width: 16px; height: 16px; }
  .event__status { font-size: var(--fs-xs); padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 600; white-space: nowrap; }
  @media (max-width: 640px) { .event { grid-template-columns: auto 1fr; } .event__status { grid-column: 2; justify-self: start; } }

  /* breadcrumbs */
  .breadcrumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: var(--fs-xs); color: var(--muted); margin-bottom: clamp(20px, 3vw, 36px); }
  .breadcrumbs li:not(:last-child)::after { content: '/'; margin-inline: 10px; opacity: .5; }
  .breadcrumbs a { text-decoration: none; }
  .breadcrumbs [aria-current] { color: var(--text); }

  /* page hero */
  .page-hero { position: relative; padding-block: clamp(40px, 6vw, 88px) clamp(24px, 3vw, 40px); }
  .page-title { font-size: var(--fs-h1); max-width: 18ch; }
  .page-lead { max-width: 60ch; margin-top: 20px; font-size: var(--fs-l); color: var(--muted); line-height: 1.5; }
  .page-hero--image { min-height: min(72vh, 680px); display: flex; align-items: flex-end; color: #fff; padding-top: calc(var(--header-h) + 48px); isolation: isolate; overflow: hidden; }
  .page-hero--image .page-lead, .page-hero--image .breadcrumbs ol { color: rgb(255 255 255 / .8); }
  .page-hero--image .breadcrumbs [aria-current] { color: #fff; }
  .page-hero__bg { position: absolute; inset: 0; z-index: -1; }
  .page-hero__bg picture, .page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
  .page-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .45), rgb(0 0 0 / .15) 40%, rgb(0 0 0 / .8)); }
  .page-hero.is-mono .page-hero__bg img { filter: grayscale(1) contrast(1.1); }

  /* filters */
  .filters { position: sticky; top: calc(var(--header-h) - 1px); z-index: 20; display: grid; gap: 14px; padding-block: 16px; margin-bottom: 32px; background: var(--bg); border-bottom: 1px solid var(--line); transition: top .45s var(--ease-out); }
  .header-hidden .filters { top: 0; }
  .chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; border: 0; min-width: 0; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { position: relative; flex: none; }
  .chip input { position: absolute; opacity: 0; pointer-events: none; }
  .chip > span, button.chip, a.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong);
    font-size: var(--fs-s); font-weight: 500; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s;
  }
  .chip > span:hover, button.chip:hover, a.chip:hover { border-color: var(--text); }
  .chip input:checked + span, button.chip[aria-pressed='true'], a.chip[aria-current='true'] { background: var(--text); color: var(--bg); border-color: var(--text); }
  .chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
  button.chip .icon { width: 16px; height: 16px; }
  div.chips { margin-block: 40px 24px; }
  .filters__controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .field-inline { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; height: 44px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
  .field-inline:focus-within { border-color: var(--accent); }
  .field-inline input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: var(--fs-s); }
  .field-inline .icon { color: var(--muted); }
  .select { position: relative; display: inline-flex; align-items: center; }
  .select select { appearance: none; height: 44px; padding: 0 40px 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-s); cursor: pointer; transition: border-color .2s; }
  .select select:hover { border-color: var(--line-strong); }
  .select .icon { position: absolute; right: 14px; width: 16px; height: 16px; pointer-events: none; color: var(--muted); }
  .filters__count { font-size: var(--fs-xs); color: var(--muted); }
  .filters__count b { color: var(--text); }
  .card.is-filtered-out { display: none; }
  .empty { text-align: center; padding: 64px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius-l); color: var(--muted); }
  .empty__title { font-family: var(--f-display); font-size: var(--fs-h3); color: var(--text); margin-bottom: 8px; }
  @media (max-width: 640px) {
    .filters { position: static; }
    .select { flex: 1 1 calc(50% - 5px); }
    .select select { width: 100%; }
  }

  /* pager */
  .pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 56px; }
  .pager__num, .pager__btn { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: var(--fs-s); transition: background-color .2s, color .2s; }
  a.pager__num:hover, a.pager__btn:hover { background: var(--surface-2); color: inherit; }
  .pager__num[aria-current] { background: var(--text); color: var(--bg); border-color: var(--text); }
  .pager__btn.is-disabled { opacity: .35; }
  .pager__gap { padding-inline: 6px; color: var(--muted); }

  /* prose */
  .prose { max-width: 68ch; }
  .prose > * + * { margin-top: 1.1em; }
  .prose h2 { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); margin-top: 2em; }
  .prose :where(ul, ol):not([class]) { padding-left: 1.2em; }
  .prose :where(ul, ol):not([class]) li + li { margin-top: .4em; }
  .prose :where(ul, ol):not([class]) li::marker { color: var(--accent); }

  /* facts */
  .facts > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: var(--fs-s); }
  .facts dt { color: var(--muted); }
  .facts dd a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
  .facts--wide > div { grid-template-columns: minmax(10em, 1fr) 2fr; padding-block: 16px; }
  @media (max-width: 560px) { .facts--wide > div { grid-template-columns: 1fr; gap: 4px; } }

  /* share */
  .share { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-block: 24px; }
  .share__label { font-size: var(--fs-xs); color: var(--muted); margin-right: 6px; }
  .share .icon-btn { width: 40px; height: 40px; border: 1px solid var(--line); }
  .share .icon-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

  /* forms */
  .form { display: grid; gap: 20px; }
  .form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  @media (max-width: 640px) { .form__grid { grid-template-columns: 1fr; } }
  .field { position: relative; display: block; }
  .field--full { grid-column: 1 / -1; }
  .field input, .field textarea, .field select {
    width: 100%; min-height: 58px; padding: 24px 16px 8px; border-radius: var(--radius-s);
    background: var(--bg); border: 1px solid var(--line-strong); outline: none; font-size: var(--fs-m);
    transition: border-color .2s, box-shadow .2s; appearance: none;
  }
  .field textarea { resize: vertical; min-height: 120px; display: block; }
  .field > span { position: absolute; left: 17px; top: 18px; font-size: var(--fs-m); color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .25s var(--ease-out), color .2s; }
  .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
  .field input:focus + span, .field input:not(:placeholder-shown) + span,
  .field textarea:focus + span, .field textarea:not(:placeholder-shown) + span,
  .field select:focus + span, .field select:valid + span, .field input[type='date'] + span { transform: translateY(-10px) scale(.75); }
  .field input:focus + span, .field textarea:focus + span { color: var(--accent); }
  .field--select .icon { position: absolute; right: 16px; top: 20px; width: 18px; height: 18px; pointer-events: none; color: var(--muted); }
  .field__error { display: none; font-style: normal; font-size: var(--fs-xs); color: var(--accent); margin-top: 6px; }
  .is-invalid .field__error { display: block; }
  .field.is-invalid input, .field.is-invalid select { border-color: var(--accent); animation: shake .4s; }
  @keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
  .check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-s); color: var(--muted); cursor: pointer; flex-wrap: wrap; }
  .check input { appearance: none; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--bg); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s; }
  .check input::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); margin-top: -2px; transition: transform .25s var(--ease-out); }
  .check input:checked { background: var(--accent); border-color: var(--accent); }
  .check input:checked::after { transform: rotate(45deg) scale(1); }
  .check > span { flex: 1; }
  .check .field__error { flex-basis: 100%; padding-left: 34px; margin-top: 0; }
  .check.is-invalid input { border-color: var(--accent); }
  .form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
  .form__hint { font-size: var(--fs-xs); color: var(--muted); }
  .form__success { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius); background: color-mix(in srgb, #2fbf71 14%, transparent); animation: pop .5s var(--ease-out); }
  .form__success:focus { outline: none; }
  .form__success-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #2fbf71; color: #fff; flex: none; }
  .form.is-sent > :not(.form__success) { display: none; }
  .btn.is-loading { pointer-events: none; opacity: .7; }
  @keyframes pop { from { opacity: 0; transform: scale(.96); } }
  .card-surface { padding: clamp(20px, 3vw, 40px); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
  .card-surface .section-title { margin-bottom: 24px; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
  .card-surface .field input, .card-surface .field textarea, .card-surface .field select { background: var(--bg); }

  /* modal */
  .modal { width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; margin: auto; border: 0; border-radius: var(--radius-l); background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
  .modal::backdrop { background: rgb(0 0 0 / .7); backdrop-filter: blur(6px); }
  .modal[open] { animation: modal-in .45s var(--ease-out); }
  .modal[open]::backdrop { animation: fade-in .3s; }
  @keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
  @keyframes fade-in { from { opacity: 0; } }
  .modal__inner { position: relative; padding: clamp(24px, 4vw, 40px); }
  .modal__close { position: absolute; right: 12px; top: 12px; }
  .modal__title { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); padding-right: 40px; }
  .modal__lead { color: var(--muted); font-size: var(--fs-s); }

  /* search overlay */
  .search { position: fixed; inset: 0; z-index: 300; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: var(--text); overflow-y: auto; animation: fade-in .25s; }
  .search__panel { max-width: 920px; padding-block: clamp(24px, 10vh, 120px) 48px; }
  .search__form { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 2px solid var(--text); }
  .search__form > .icon { width: 28px; height: 28px; color: var(--muted); }
  .search__input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-family: var(--f-display); font-size: clamp(1.25rem, 1rem + 2vw, 2.25rem); font-weight: 500; }
  .search__input::-webkit-search-cancel-button { display: none; }
  .search__kbd { padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: var(--fs-xs); color: var(--muted); font-family: inherit; }
  .search__hints { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; font-size: var(--fs-s); color: var(--muted); }
  .search__results { display: grid; gap: 4px; margin-top: 28px; }
  .search-result { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 10px; border-radius: var(--radius); text-decoration: none; animation: slide-up .4s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 40ms); }
  .search-result:hover, .search-result:focus-visible { background: var(--surface); color: inherit; }
  .search-result img { width: 96px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-s); }
  .search-result b { display: block; font-family: var(--f-display); font-weight: 600; font-size: var(--fs-m); line-height: 1.25; }
  .search-result small { color: var(--muted); font-size: var(--fs-xs); }
  .search-result mark { background: color-mix(in srgb, var(--accent) 30%, transparent); color: inherit; border-radius: 3px; }
  .search__empty { color: var(--muted); padding: 24px 0; }
  @keyframes slide-up { from { opacity: 0; transform: translateY(12px); } }
  @media (max-width: 640px) { .search__kbd { display: none; } }

  /* cookie, toast, to-top */
  .cookie {
    position: fixed; z-index: 150; left: 16px; right: 16px; bottom: 16px; max-width: 560px;
    display: grid; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
    font-size: var(--fs-s); animation: slide-up .6s var(--ease-out);
  }
  .cookie__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  .toast {
    position: fixed; z-index: 600; left: 50%; bottom: 24px; padding: 12px 20px; border-radius: 999px; background: var(--text); color: var(--bg);
    font-size: var(--fs-s); font-weight: 600; transform: translate(-50%, 160%); opacity: 0; transition: transform .5s var(--ease-out), opacity .3s; pointer-events: none;
  }
  .toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
  .to-top { position: fixed; z-index: 90; right: 20px; bottom: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .4s var(--ease-out), background-color .2s; }
  .to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
  .to-top:hover { background: var(--accent); color: #fff; }

  /* lightbox */
  .lb { position: fixed; inset: 0; z-index: 500; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgb(8 8 9 / .97); color: #fff; animation: fade-in .3s; }
  .lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px clamp(12px, 3vw, 24px); }
  .lb__counter { font-variant-numeric: tabular-nums; font-size: var(--fs-s); letter-spacing: .05em; color: rgb(255 255 255 / .7); }
  .lb__counter b { font-family: var(--f-display); font-size: 1.1em; color: #fff; }
  .lb__actions { display: flex; gap: 4px; }
  .lb__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; padding-inline: clamp(8px, 6vw, 96px); touch-action: pan-y; }
  .lb__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; user-select: none; -webkit-user-drag: none; box-shadow: 0 30px 80px rgb(0 0 0 / .6); }
  .lb__img.is-next { animation: lb-next .45s var(--ease-out); }
  .lb__img.is-prev { animation: lb-prev .45s var(--ease-out); }
  .lb__img.is-zoom { animation: lb-zoom .5s var(--ease-out); }
  @keyframes lb-next { from { opacity: 0; transform: translateX(60px) scale(.98); } }
  @keyframes lb-prev { from { opacity: 0; transform: translateX(-60px) scale(.98); } }
  @keyframes lb-zoom { from { opacity: 0; transform: scale(.9); } }
  .lb__nav { position: absolute; top: 50%; translate: 0 -50%; width: 56px; height: 56px; }
  .lb__nav--prev { left: clamp(8px, 2vw, 24px); }
  .lb__nav--next { right: clamp(8px, 2vw, 24px); }
  .lb__nav .icon { width: 24px; height: 24px; }
  .lb__foot { padding: 12px clamp(12px, 3vw, 24px) max(16px, env(safe-area-inset-bottom)); display: grid; gap: 12px; }
  /* подпись кадра — фиксированные 2 строки, чтобы при листании ничего не прыгало */
  .lb__caption { display: none; }
  .lb.has-captions .lb__caption { height: 3em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: center; font-size: var(--fs-s); line-height: 1.5; color: rgb(255 255 255 / .85); }
  .lb__credit { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; font-size: var(--fs-xs); color: rgb(255 255 255 / .6); }
  .lb__credit b { color: #fff; font-weight: 600; }
  .lb__credit a { color: #fff; text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / .35); }
  .lb__credit a:hover { color: var(--accent); border-color: var(--accent); }
  .lb__credit:empty { display: none; }
  .lb__thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; justify-content: safe center; padding: 4px; }
  .lb__thumbs::-webkit-scrollbar { display: none; }
  .lb__thumb { flex: none; width: 64px; height: 44px; border-radius: 6px; overflow: hidden; opacity: .4; transition: opacity .2s, outline-color .2s; outline: 2px solid transparent; outline-offset: 2px; }
  .lb__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .lb__thumb:hover { opacity: .8; }
  .lb__thumb[aria-current='true'] { opacity: 1; outline-color: var(--accent); }
  @media (max-width: 640px) { .lb__nav, .lb__thumbs { display: none; } .lb__caption { font-size: var(--fs-xs); } .lb__credit { font-size: .75rem; } }
}

/* ---------- pages ---------- */
@layer pages {
  /* hero (home) */
  .hero { position: relative; height: 100svh; min-height: 600px; max-height: 1100px; color: #fff; overflow: hidden; background: #000; }
  .hero__brand { position: absolute; z-index: 3; top: calc(var(--header-h) + 8px); left: 0; right: 0; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); font-family: var(--f-text); font-weight: 400; font-size: var(--fs-xs); letter-spacing: .02em; line-height: 1.4; color: rgb(255 255 255 / .7); }
  .hero__brand span { color: #fff; font-weight: 600; }
  .hero__slides { position: absolute; inset: 0; }
  .hero__slide { position: absolute; inset: 0; display: flex; align-items: flex-end; padding-bottom: clamp(140px, 20vh, 200px); opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease-in-out), visibility 0s 1.2s; }
  .hero__slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
  .hero__media { position: absolute; inset: 0; z-index: -1; }
  .hero__media picture, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
  .hero__media img { transform: scale(1.14); transition: transform 8s linear; }
  .hero__slide.is-active .hero__media img { transform: scale(1); }
  .hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .6), transparent 70%), linear-gradient(transparent 40%, rgb(0 0 0 / .75)); }
  .hero__content > * { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); }
  .hero__slide.is-active .hero__content > * { opacity: 1; transform: none; }
  .hero__slide.is-active .hero__content > :nth-child(2) { transition-delay: .12s; }
  .hero__slide.is-active .hero__content > :nth-child(3) { transition-delay: .24s; }
  .hero__slide.is-active .hero__content > :nth-child(4) { transition-delay: .36s; }
  .hero__kicker { display: flex; align-items: center; gap: 10px; font-size: var(--fs-s); font-weight: 500; letter-spacing: .04em; margin-bottom: 18px; }
  .hero__title { font-size: var(--fs-hero); max-width: 16ch; line-height: 1; letter-spacing: -.035em; }
  .hero__title a { text-decoration: none; color: inherit; background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; transition: background-size .6s var(--ease-out); }
  .hero__title a:hover { background-size: 100% 3px; }
  .hero__lead { max-width: 52ch; margin-top: 20px; font-size: var(--fs-l); color: rgb(255 255 255 / .85); line-height: 1.5; }
  .hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
  .hero__meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-s); color: rgb(255 255 255 / .8); }
  .hero__meta .icon { width: 18px; height: 18px; }
  .hero__controls { position: absolute; z-index: 3; left: 0; right: 0; bottom: 28px; display: flex; align-items: flex-end; gap: 24px; }
  .hero__tabs { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .hero__tab { display: grid; width: 100%; gap: 4px 10px; grid-template-columns: auto 1fr; text-align: left; color: rgb(255 255 255 / .55); padding-top: 4px; transition: color .3s; }
  .hero__tab:hover, .hero__tab.is-active { color: #fff; }
  .hero__tab-num { font-family: var(--f-display); font-size: var(--fs-xs); font-weight: 600; }
  .hero__tab-title { font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero__progress { grid-column: 1 / -1; grid-row: 1; height: 2px; background: rgb(255 255 255 / .25); margin-bottom: 10px; overflow: hidden; border-radius: 2px; }
  .hero__progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
  .hero__tab.is-active .hero__progress span { animation: progress var(--hero-delay, 7s) linear forwards; }
  .hero.is-paused .hero__tab.is-active .hero__progress span { animation-play-state: paused; }
  @keyframes progress { to { transform: scaleX(1); } }
  .hero__arrows { display: flex; gap: 8px; }
  .pause-icon { width: 12px; height: 14px; border-inline: 4px solid currentColor; }
  [data-pause][aria-pressed='true'] .pause-icon { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
  @media (max-width: 900px) {
    .hero__tabs { gap: 6px; }
    .hero__tab-title, .hero__tab-num { display: none; }
    .hero__slide { padding-bottom: 110px; }
    .hero__lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  }
  @media (max-width: 560px) { .hero__arrows [data-prev], .hero__arrows [data-next] { display: none; } .hero__brand { display: none; } .hero__lead { -webkit-line-clamp: 2; } }

  /* themes bento */
  .themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 20vw, 280px); gap: clamp(10px, 1.4vw, 18px); }
  .theme-tile:first-child { grid-column: span 2; grid-row: span 2; }
  .theme-tile:last-child { grid-column: 1 / -1; }
  .theme-tile a { position: relative; display: block; height: 100%; overflow: hidden; border-radius: var(--radius-l); color: #fff; text-decoration: none; isolation: isolate; }
  .theme-tile picture { position: absolute; inset: 0; z-index: -1; }
  .theme-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
  .theme-tile a::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 35%, rgb(0 0 0 / .75)); }
  .theme-tile a:hover { color: #fff; }
  .theme-tile a:hover img { transform: scale(1.07); }
  .theme-tile__body { position: absolute; left: clamp(16px, 2vw, 28px); bottom: clamp(14px, 2vw, 24px); display: grid; gap: 4px; }
  .theme-tile__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.125rem, .9rem + 1vw, 1.75rem); letter-spacing: -.02em; }
  .theme-tile:first-child .theme-tile__title { font-size: clamp(1.75rem, 1rem + 3vw, 3.5rem); }
  .theme-tile__count { font-size: var(--fs-xs); color: rgb(255 255 255 / .75); }
  .theme-tile__arrow { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / .15); backdrop-filter: blur(8px); transform: rotate(-45deg) scale(.8); opacity: 0; transition: transform .5s var(--ease-out), opacity .3s, background-color .3s; }
  .theme-tile a:hover .theme-tile__arrow, .theme-tile a:focus-visible .theme-tile__arrow { opacity: 1; transform: rotate(-45deg) scale(1); background: var(--accent); }
  @media (max-width: 800px) {
    .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
    .theme-tile:first-child { grid-column: span 2; grid-row: span 1; }
    .theme-tile__arrow { display: none; }
  }

  /* collection feature */
  .collection-feature { position: sticky; top: calc(var(--header-h) + 24px); padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
  .collection-feature > p:not(.kicker) { color: var(--muted); margin-top: 12px; }
  .collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-block: 24px 40px; }
  .collage__item { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius-s); transform: translateY(calc(var(--i) * 12px)); transition: transform .6s var(--ease-out); }
  .collage__item:nth-child(2) { transform: translateY(-8px); }
  .collage__item picture, .collage__item img { width: 100%; height: 100%; object-fit: cover; }
  .collage__item img { transition: transform .8s var(--ease-out); }
  .collection-feature:hover .collage__item { transform: none; }
  .collage__item:hover img { transform: scale(1.1); }
  @media (max-width: 960px) { .collection-feature { position: static; } }

  /* about */
  .about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
  .about__text p { color: var(--muted); font-size: var(--fs-l); line-height: 1.55; }
  .about__text p + p { margin-top: 1em; }
  .news__text { color: var(--muted); font-size: var(--fs-s); line-height: 1.6; }
  .news__text p + p { margin-top: .6em; }
  .news__text a { color: var(--accent); }
  .about__text .link-arrow { margin-top: 24px; }
  @media (max-width: 860px) { .about__grid { grid-template-columns: 1fr; } }
  .stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); }
  .stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 28px 20px 0 0; }
  .stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
  .stat dd { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.5rem, 1.5rem + 4vw, 5rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
  .stat dt { color: var(--muted); font-size: var(--fs-s); }
  @media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { padding-left: 0; border-left: 0; } }
  .partners { margin-top: clamp(48px, 6vw, 80px); }
  .partners__list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .partners__list--big { grid-template-columns: repeat(3, 1fr); }
  .partner { display: grid; place-content: center; gap: 2px; min-height: 96px; padding: 16px; border-radius: var(--radius); border: 1px dashed var(--line-strong); font-family: var(--f-display); font-weight: 600; font-size: var(--fs-s); text-align: center; color: var(--muted); transition: color .3s, border-color .3s; }
  .partner small { font-family: var(--f-text); font-weight: 400; font-size: .7rem; opacity: .6; text-transform: uppercase; letter-spacing: .1em; }
  .partner:hover { color: var(--text); border-color: var(--text); }
  .partners__list--big .partner { min-height: 140px; }
  @media (max-width: 960px) { .partners__list { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 520px) { .partners__list, .partners__list--big { grid-template-columns: repeat(2, 1fr); } }

  /* invite */
  .invite { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding-block: clamp(96px, 14vw, 200px); }
  .invite__bg { position: absolute; inset: -10% 0; z-index: -1; }
  .invite__bg picture, .invite__bg img { width: 100%; height: 100%; object-fit: cover; }
  .invite__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .85), rgb(0 0 0 / .35)); }
  .invite__title { font-size: clamp(2.25rem, 1rem + 5vw, 5.5rem); max-width: 12ch; letter-spacing: -.035em; line-height: 1; }
  .invite__inner > p:not(.kicker) { max-width: 46ch; margin-top: 24px; font-size: var(--fs-l); color: rgb(255 255 255 / .85); }
  .invite__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
  .invite .btn--ghost { --btn-fg: #fff; border-color: rgb(255 255 255 / .5); }

  /* footer */
  .site-footer { background: var(--bg-2); padding-top: clamp(56px, 8vw, 104px); font-size: var(--fs-s); }
  .footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
  .footer-cta__text { font-family: var(--f-display); font-size: clamp(1.5rem, 1rem + 2.2vw, 3rem); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; max-width: 20ch; }
  .footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-block: clamp(40px, 5vw, 64px); }
  .footer-brand > p { color: var(--muted); margin-block: 16px; max-width: 36ch; }
  .socials { display: flex; gap: 6px; }
  .socials .icon-btn { border: 1px solid var(--line); }
  .socials .icon-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
  .footer-col__title { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
  .footer-col li + li { margin-top: 8px; }
  .footer-col a { text-decoration: none; }
  .footer-legal { display: grid; gap: 8px; padding-block: 24px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-xs); }
  .footer-legal__media { display: flex; align-items: center; gap: 12px; }
  .footer-legal__media .age-badge { color: var(--text); }
  @media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

  /* report */
  .report-hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-end; color: #fff; padding-block: calc(var(--header-h) + 64px) clamp(32px, 5vw, 64px); isolation: isolate; overflow: hidden; }
  .report-hero__media { position: absolute; inset: 0; z-index: -1; }
  .report-hero__media picture, .report-hero__media img { width: 100%; height: 100%; object-fit: cover; }
  .report-hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .5), transparent 30%, transparent 45%, rgb(0 0 0 / .85)); }
  .report-hero .breadcrumbs ol { color: rgb(255 255 255 / .75); }
  .report-hero .breadcrumbs [aria-current] { color: #fff; }
  .report-title { font-size: var(--fs-h1); max-width: 20ch; letter-spacing: -.035em; line-height: 1.02; }
  .report-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; font-size: var(--fs-s); }
  .report-meta li { display: inline-flex; align-items: center; gap: 8px; }
  .report-meta .icon { width: 18px; height: 18px; opacity: .8; }
  .report-meta a { color: inherit; text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / .4); }
  .report-meta a:hover { border-color: var(--accent); }
  .report-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 6vw, 96px); padding-block: clamp(40px, 6vw, 88px); }
  .report-lead { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.4; font-weight: 500; letter-spacing: -.01em; }
  .report-text > p:not(.report-lead) { color: var(--muted); font-size: var(--fs-l); line-height: 1.6; }
  .report-text .tags { margin-top: 28px; }

  /* заметка к репортажу */
  .note { max-width: 72ch; }
  .note__byline { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .note__byline .avatar { width: 48px; height: 48px; font-size: .95rem; text-decoration: none; }
  .note__byline p { display: grid; font-size: var(--fs-s); line-height: 1.4; }
  .note__byline p > a { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-strong); justify-self: start; }
  .note__byline small { color: var(--muted); font-size: var(--fs-xs); margin-top: 2px; }
  .note__body { max-width: none; }
  .note__body > p:not(.report-lead) { color: color-mix(in srgb, var(--text) 82%, var(--bg)); font-size: var(--fs-l); line-height: 1.7; }
  .note__body .report-lead { margin-bottom: 1.4em; }
  .note__body + .note__more .note__body > :first-child { margin-top: 1.1em; }
  .note__h { font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); margin-top: 1.8em !important; }
  .note__body ul { font-size: var(--fs-l); color: color-mix(in srgb, var(--text) 82%, var(--bg)); }
  .note__quote { margin-block: 2em !important; padding: 4px 0 4px 28px; border-left: 3px solid var(--accent); }
  .note__quote blockquote p { font-family: var(--f-display); font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); font-weight: 500; line-height: 1.35; letter-spacing: -.01em; }
  .note__quote figcaption { margin-top: 12px; font-size: var(--fs-s); color: var(--muted); }
  .note__quote figcaption::before { content: '— '; }
  .note__photo { margin-block: 2em !important; }
  .note__photo img { width: 100%; border-radius: var(--radius); }
  .note__photo figcaption { margin-top: 10px; font-size: var(--fs-s); color: var(--muted); }
  .note--short .report-lead { font-size: clamp(1.375rem, 1rem + 1.4vw, 2rem); }
  .note__to-photos { margin-top: 24px; }
  /* «Читать полностью»: раскрытие через grid-rows 0fr → 1fr, с затуханием текста */
  .js .note__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-out); }
  .js .note__more > .note__body { min-height: 6em; overflow: hidden; }
  .js .note__more:not(.is-open) { position: relative; }
  .js .note__more:not(.is-open)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
  .js .note__more.is-open { grid-template-rows: 1fr; }
  .note__toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 600; font-size: var(--fs-s); transition: border-color .2s, background-color .2s; }
  .note__toggle:hover { border-color: var(--text); }
  .note__toggle .icon { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
  .note__toggle[aria-expanded='true'] .icon { transform: rotate(180deg); }
  .report-aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
  @media (max-width: 960px) { .report-body { grid-template-columns: 1fr; } .report-aside { position: static; } }

  .gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
  .view-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
  .view-switch button { padding: 8px 16px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); transition: background-color .25s, color .25s; }
  .view-switch button[aria-pressed='true'] { background: var(--text); color: var(--bg); }

  /* justified grid: порядок кадров сохраняется, ширина пропорциональна соотношению сторон */
  .jg { display: flex; flex-wrap: wrap; gap: 8px; }
  .jg::after { content: ''; flex-grow: 999999; }
  .jg__item { position: relative; flex-grow: calc(var(--w) / var(--h) * 100); flex-basis: calc(var(--w) / var(--h) * clamp(180px, 22vw, 300px)); overflow: hidden; border-radius: var(--radius-s); background: var(--surface); }
  .jg__item a { display: block; cursor: zoom-in; }
  .jg__item img { width: 100%; aspect-ratio: var(--w) / var(--h); object-fit: cover; transition: transform .8s var(--ease-out); }
  .jg__item a:hover img { transform: scale(1.04); }
  .jg__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 14px 12px; font-size: var(--fs-xs); color: #fff; background: linear-gradient(transparent, rgb(0 0 0 / .75)); pointer-events: none; transform: translateY(100%); transition: transform .4s var(--ease-out); }
  .jg__item:hover figcaption, .jg__item:focus-within figcaption { transform: none; }
  .jg.is-feed { flex-direction: column; flex-wrap: nowrap; gap: 32px; max-width: 1080px; margin-inline: auto; }
  .jg.is-feed::after { display: none; }
  .jg.is-feed .jg__item { flex: none; overflow: visible; background: none; }
  .jg.is-feed .jg__item img { border-radius: var(--radius-s); }
  .jg.is-feed figcaption { position: static; transform: none; background: none; color: var(--muted); padding: 10px 0 0; font-size: var(--fs-s); }
  @media (max-width: 560px) { .jg__item { flex-basis: calc(var(--w) / var(--h) * 140px); } .jg__item figcaption { display: none; } .jg.is-feed figcaption { display: block; } }
  .gallery-note { margin-top: 20px; font-size: var(--fs-xs); color: var(--muted); text-align: center; }

  .player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-l); margin-top: 24px; background: #000; color: #fff; }
  .player picture { position: absolute; inset: 0; }
  .player img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: transform 1s var(--ease-out); }
  .player:hover img { transform: scale(1.03); }
  .player__play { position: absolute; inset: 0; margin: auto; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; transition: transform .4s var(--ease-out); }
  .player__play::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: ripple 2s var(--ease-out) infinite; }
  @keyframes ripple { to { transform: scale(1.7); opacity: 0; } }
  .player__play .icon { width: 34px; height: 34px; margin-left: 4px; }
  .player__play:hover { transform: scale(1.08); }
  .player__info { position: absolute; left: 24px; bottom: 20px; display: grid; gap: 2px; font-size: var(--fs-s); }
  .player__info span { color: rgb(255 255 255 / .75); font-size: var(--fs-xs); }

  .prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: clamp(40px, 6vw, 80px); }
  .prevnext__link { display: flex; align-items: center; gap: 20px; padding: 16px; border-radius: var(--radius-l); border: 1px solid var(--line); text-decoration: none; font-family: var(--f-display); font-weight: 600; line-height: 1.25; transition: background-color .3s, border-color .3s; }
  .prevnext__link:hover { background: var(--surface); border-color: var(--line-strong); color: inherit; }
  .prevnext__link picture { flex: none; width: 120px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-s); }
  .prevnext__link img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
  .prevnext__link:hover img { transform: scale(1.08); }
  .prevnext__link small { display: flex; align-items: center; gap: 6px; font-family: var(--f-text); font-weight: 500; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 6px; }
  .prevnext__link small .icon { width: 14px; height: 14px; }
  .prevnext__link--next { justify-content: flex-end; text-align: right; }
  .prevnext__link--next small { justify-content: flex-end; }
  @media (max-width: 720px) { .prevnext { grid-template-columns: 1fr; } .prevnext__link picture { width: 84px; } }

  /* video page */
  .video-feature { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; text-decoration: none; color: inherit; }
  .video-feature:hover { color: inherit; }
  .video-feature__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-l); }
  .video-feature__media picture { position: absolute; inset: 0; }
  .video-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
  .video-feature:hover img { transform: scale(1.04); }
  .video-feature__media .vcard__play { width: 88px; height: 88px; }
  .video-feature__body > p:not(.kicker):not(.card__meta) { color: var(--muted); margin-top: 16px; }
  @media (max-width: 860px) { .video-feature { grid-template-columns: 1fr; } }

  /* collections */
  .collections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
  .collection-tile a { position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-l); color: #fff; text-decoration: none; isolation: isolate; }
  .collection-tile picture { position: absolute; inset: 0; z-index: -1; }
  .collection-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
  .collection-tile a::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 30%, rgb(0 0 0 / .85)); }
  .collection-tile a:hover { color: #fff; }
  .collection-tile a:hover img { transform: scale(1.06); }
  .collection-tile__body { display: grid; gap: 8px; padding: clamp(20px, 3vw, 36px); }
  .collection-tile__body .kicker { margin: 0; }
  .collection-tile__title { font-family: var(--f-display); font-size: clamp(1.5rem, 1rem + 2vw, 2.75rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
  .collection-tile__lead { color: rgb(255 255 255 / .8); max-width: 44ch; }
  @media (max-width: 760px) { .collections { grid-template-columns: 1fr; } }

  /* archive */
  .archive { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
  .archive__years { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 2px; }
  .archive__years a { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; text-decoration: none; font-family: var(--f-display); font-weight: 600; color: var(--muted); white-space: nowrap; transition: background-color .2s, color .2s; }
  .archive__years a:hover { color: var(--text); background: var(--surface); }
  .archive__years a.is-active { color: var(--accent); background: var(--surface); }
  .archive__years .icon { width: 16px; height: 16px; }
  .archive__year + .archive__year { margin-top: 56px; }
  .archive__title { display: flex; align-items: baseline; gap: 16px; font-size: clamp(2.5rem, 1.5rem + 4vw, 5rem); letter-spacing: -.04em; padding-bottom: 12px; border-bottom: 2px solid var(--text); margin-bottom: 8px; }
  .archive__title small { font-family: var(--f-text); font-size: var(--fs-s); font-weight: 400; letter-spacing: 0; color: var(--muted); }
  .archive__row { display: grid; grid-template-columns: 72px 96px minmax(0, 1fr) auto auto; gap: 20px; align-items: center; padding: 12px 8px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .25s, padding .35s var(--ease-out); }
  .archive__row:hover { background: var(--surface); padding-inline: 16px; color: inherit; }
  .archive__row time { font-size: var(--fs-s); color: var(--muted); font-variant-numeric: tabular-nums; }
  .archive__thumb { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; }
  .archive__thumb picture, .archive__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .archive__name { display: grid; font-family: var(--f-display); font-weight: 600; line-height: 1.25; }
  .archive__name small { font-family: var(--f-text); font-weight: 400; font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
  .archive__theme { font-size: var(--fs-xs); padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; }
  .archive__count { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--muted); min-width: 52px; }
  .archive__count .icon { width: 14px; height: 14px; }
  @media (max-width: 860px) {
    .archive { grid-template-columns: 1fr; }
    .archive__years { top: var(--header-h); z-index: 5; display: flex; overflow-x: auto; background: var(--bg); padding-block: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
    .archive__row { grid-template-columns: 96px minmax(0, 1fr); gap: 4px 14px; }
    .archive__row time { grid-column: 2; grid-row: 2; }
    .archive__thumb { grid-row: span 2; grid-column: 1; grid-row-start: 1; }
    .archive__theme, .archive__count { display: none; }
  }

  /* map */
  .shoot-map { position: relative; aspect-ratio: 2 / 1; border-radius: var(--radius-l); background: radial-gradient(ellipse at 50% 30%, var(--surface-2), var(--surface)); border: 1px solid var(--line); overflow: hidden; }
  .shoot-map > ul { position: absolute; inset: 0; }
  .shoot-map__grid { position: absolute; inset: 0; width: 100%; height: 100%; }
  .shoot-map__grid line { stroke: var(--line); stroke-width: 1px; vector-effect: non-scaling-stroke; }
  .shoot-map__grid .eq { stroke: var(--line-strong); stroke-dasharray: 4 4; }
  .shoot-map__pin { --c: oklch(72% .17 calc(var(--t) * 60 + 30)); position: absolute; width: 0; height: 0; }
  .shoot-map__pin a { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--c); border: 3px solid var(--surface); transition: transform .3s var(--ease-out); animation: pin-pulse 3s infinite; animation-delay: calc(var(--t) * .4s); }
  .shoot-map__pin a:hover, .shoot-map__pin a:focus-visible { transform: scale(1.4); }
  @keyframes pin-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--c) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 14px transparent; } }
  .shoot-map__tip { position: absolute; z-index: 3; left: 0; bottom: 16px; translate: -50% 0; display: grid; width: max-content; max-width: 240px; padding: 10px 14px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: var(--fs-xs); opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity .2s, transform .3s var(--ease-out); }
  .shoot-map__tip b { font-size: var(--fs-s); }
  .shoot-map__pin:hover, .shoot-map__pin:focus-within { z-index: 3; }
  .shoot-map__pin:hover .shoot-map__tip, .shoot-map__pin:focus-within .shoot-map__tip { opacity: 1; transform: none; }
  .shoot-map__note { position: absolute; left: 20px; bottom: 14px; font-size: var(--fs-xs); color: var(--muted); }
  .legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; font-size: var(--fs-s); }
  .legend li { display: flex; align-items: center; gap: 8px; }
  .legend li::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: oklch(72% .17 calc(var(--t) * 60 + 30)); }
  @media (max-width: 640px) { .shoot-map { aspect-ratio: 4 / 3; } .shoot-map__note { display: none; } }

  /* anonsy */
  .month + .month { margin-top: 48px; }
  .month__title { font-size: var(--fs-h2); margin-bottom: 20px; }
  .month__title small { font-family: var(--f-text); font-size: .5em; color: var(--muted); font-weight: 400; }
  .note-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-top: 56px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-l); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface)); border: 1px solid var(--line); }
  .note-card__title { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); margin-bottom: 8px; }
  .note-card p { color: var(--muted); max-width: 56ch; }

  /* authors */
  .authors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
  .author-card a { display: grid; justify-items: start; padding: 0 0 24px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); overflow: hidden; text-decoration: none; transition: transform .5s var(--ease-out), border-color .3s; }
  .author-card a:hover { transform: translateY(-6px); border-color: var(--line-strong); color: inherit; }
  .author-card__thumbs { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; width: 100%; aspect-ratio: 16 / 9; }
  .author-card__thumbs picture:first-child { grid-row: span 2; }
  .author-card__thumbs picture, .author-card__thumbs img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
  .author-card__thumbs img { transition: transform 1s var(--ease-out); }
  .author-card a:hover .author-card__thumbs img { transform: scale(1.06); }
  .avatar { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; flex: none; }
  .author-card .avatar { position: relative; margin: -32px 0 0 24px; border: 4px solid var(--surface); }
  .author-card__name { margin: 12px 24px 0; font-family: var(--f-display); font-size: var(--fs-h3); font-weight: 600; }
  .author-card__role { margin: 4px 24px 0; color: var(--accent); font-size: var(--fs-s); font-weight: 500; }
  .author-card__meta { margin: 8px 24px 0; color: var(--muted); font-size: var(--fs-xs); }
  .report-dates { margin-top: 12px; font-size: var(--fs-xs); color: rgb(255 255 255 / .7); }
  /* страница партнёра */
  .partner-hero { display: flex; align-items: center; gap: 24px; }
  .partner-hero__logo { flex: none; width: 120px; height: 120px; display: grid; place-items: center; padding: 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
  .partner-hero__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
  .letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
  .letters__item a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: transform .3s, border-color .3s; }
  .letters__item a:hover { transform: translateY(-4px); border-color: var(--line-strong); }
  .letters__item img { width: 100%; aspect-ratio: 1 / 1.414; object-fit: cover; object-position: top; display: block; }
  .letters__caption { margin-top: 8px; font-size: var(--fs-xs); color: var(--muted); }
  @media (max-width: 640px) { .partner-hero { flex-direction: column; align-items: flex-start; gap: 16px; } .partner-hero__logo { width: 88px; height: 88px; } .letters { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
  .author-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-block: 32px 20px; max-width: 900px; }
  .author-facts div { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
  .author-facts dt { font-size: var(--fs-xs); color: var(--muted); }
  .author-facts dd { font-weight: 600; margin-top: 4px; }

  /* agency */
  .timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .timeline__item { position: relative; padding-top: 32px; border-top: 2px solid var(--line-strong); }
  .timeline__item::before { content: ''; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
  .timeline__year { font-family: var(--f-display); font-size: clamp(1.75rem, 1rem + 2vw, 2.75rem); font-weight: 700; letter-spacing: -.04em; }
  .timeline__item h3 { font-size: var(--fs-h3); margin-block: 8px; }
  .timeline__item p { color: var(--muted); font-size: var(--fs-s); }
  @media (max-width: 960px) { .timeline { grid-template-columns: 1fr; gap: 0; } .timeline__item { border-top: 0; border-left: 2px solid var(--line-strong); padding: 0 0 32px 28px; } .timeline__item::before { top: 6px; left: -7px; } }
  .news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .news__item { padding: 28px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
  .news__item time { font-size: var(--fs-xs); color: var(--accent); font-weight: 600; }
  .news__item h3 { font-size: var(--fs-h3); margin-block: 10px; }
  .news__item p { color: var(--muted); font-size: var(--fs-s); }
  @media (max-width: 860px) { .news { grid-template-columns: 1fr; } }
  .team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
  .team > li { display: flex; }
  .team__item { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 88px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; transition: background-color .3s; }
  .team__item:hover { background: var(--surface); color: inherit; }
  .team__item b { display: block; font-family: var(--f-display); font-weight: 600; }
  .team__item small { display: block; margin-top: 4px; color: var(--muted); font-size: var(--fs-xs); line-height: 1.35; }
  .team .avatar { width: 52px; height: 52px; font-size: 1rem; }

  /* coop */
  .tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 40px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tab { padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: var(--fs-s); white-space: nowrap; color: var(--muted); transition: background-color .3s, color .3s; }
  .tab:hover { color: var(--text); }
  .tab[aria-selected='true'] { background: var(--accent); color: #fff; }
  .js .tab-panel:not(.is-active) { display: none; }
  .tab-panel + .tab-panel { margin-top: 64px; }
  .js .tab-panel + .tab-panel { margin-top: 0; }
  .tab-panel.is-active { animation: slide-up .5s var(--ease-out); }
  .coop { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
  .coop__info .page-lead { margin-block: 16px 32px; }
  @media (max-width: 960px) { .coop { grid-template-columns: 1fr; } }
  .steps { counter-reset: step; display: grid; }
  .steps li { counter-increment: step; display: flex; align-items: center; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); font-weight: 500; }
  .steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--f-display); font-size: var(--fs-xs); font-weight: 700; color: var(--accent); width: 32px; flex: none; }

  /* contacts */
  .contacts { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
  .contacts__info { display: grid; gap: 12px; }
  .contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .3s, translate .4s var(--ease-out); }
  a.contact-card:hover { border-color: var(--accent); color: inherit; translate: 4px 0; }
  .contact-card > .icon { width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
  .contact-card small { display: block; color: var(--muted); font-size: var(--fs-xs); margin-bottom: 2px; }
  .contact-card b { font-weight: 600; }
  .contact-card .socials { margin-top: 8px; }
  .map-card { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); text-decoration: none; }
  .map-card:hover { color: inherit; }
  .map-card__grid { position: absolute; inset: -20%; background-image: linear-gradient(var(--line-strong) 1px, transparent 1px), linear-gradient(90deg, var(--line-strong) 1px, transparent 1px); background-size: 32px 32px; transform: perspective(600px) rotateX(45deg); transition: transform 1s var(--ease-out); }
  .map-card:hover .map-card__grid { transform: perspective(600px) rotateX(40deg) scale(1.05); }
  .map-card__pin { position: relative; color: var(--accent); animation: bob 2s var(--ease-in-out) infinite; }
  .map-card__pin .icon { width: 48px; height: 48px; }
  @keyframes bob { 50% { transform: translateY(-8px); } }
  .map-card__label { position: absolute; left: 16px; bottom: 14px; display: flex; align-items: center; gap: 6px; font-size: var(--fs-s); font-weight: 600; }
  @media (max-width: 960px) { .contacts { grid-template-columns: 1fr; } }

  /* search page, legal, 404 */
  .search-page { display: flex; gap: 10px; max-width: 720px; margin-top: 28px; }
  .search-page input { flex: 1; min-width: 0; height: 58px; padding: 0 22px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); font-size: var(--fs-l); outline: none; }
  .search-page input:focus { border-color: var(--accent); }
  .search-page .btn { min-height: 58px; }
  .legal__draft { padding: 12px 16px; border-radius: var(--radius-s); background: color-mix(in srgb, var(--accent) 12%, transparent); font-size: var(--fs-s); }
  .not-found { min-height: 80vh; display: grid; align-items: center; text-align: center; padding-block: 64px; }
  .not-found .container { display: grid; justify-items: center; }
  .not-found__code { display: flex; align-items: center; font-family: var(--f-display); font-weight: 800; font-size: clamp(6rem, 3rem + 18vw, 16rem); line-height: 1; letter-spacing: -.06em; }
  .not-found__lens { display: grid; place-items: center; width: .8em; height: .8em; margin-inline: .04em; border-radius: 50%; background: var(--accent); color: #fff; animation: lens 3s var(--ease-in-out) infinite; }
  .not-found__lens .icon { width: 40%; height: 40%; }
  @keyframes lens { 50% { transform: rotate(-12deg) scale(.92); filter: blur(2px); } }
  .not-found .page-title { max-width: none; }
  .not-found .page-lead { margin-inline: auto; }
  .not-found .search-page { width: 100%; }
  .not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 32px; margin-top: 32px; }

  /* Unbounded широкий: на телефонах длинные слова («Новоиерусалимский») должны помещаться целиком */
  @media (max-width: 640px) { .hero__title, .page-title, .report-title { font-size: clamp(1.375rem, 6.4vw, 2.5rem); } }
}

/* ---------- motion ---------- */
@layer motion {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: .25s ease both vt-out; }
  ::view-transition-new(root) { animation: .45s var(--ease-out) both vt-in; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

  /* появление при прокрутке — только если JS работает */
  .js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* заголовки: слова выезжают снизу */
  .split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
  .split-word > span { display: inline-block; transform: translateY(110%); animation: word-up 1s var(--ease-out) forwards; animation-delay: calc(var(--w) * 70ms + 100ms); }
  @keyframes word-up { to { transform: none; } }

  /* мобильное меню — каскад пунктов */
  .mobile-menu:not([hidden]) { animation: menu-in .5s var(--ease-out); }
  .mobile-menu:not([hidden]) .mobile-menu__list li { animation: slide-up .6s var(--ease-out) backwards; animation-delay: calc(var(--i) * 50ms + 100ms); }
  @keyframes menu-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }

  /* параллакс обложек на scroll-driven animations (прогрессивное улучшение) */
  @supports (animation-timeline: scroll()) {
    .report-hero__media img, .page-hero__bg img { animation: parallax linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes parallax { to { transform: translateY(18%) scale(1.08); } }
    .invite__bg img { animation: parallax-in linear both; animation-timeline: view(); }
    @keyframes parallax-in { from { transform: translateY(-8%); } to { transform: translateY(8%); } }
  }

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

/* ---------- раунд 2: затемнение обложек, запросы на фото, партнёры, видео, карта сайта, PWA ---------- */
@layer components {
  /* затемнение обложки: --dim задаётся в «Редакции» или автоматически по яркости снимка */
  .hero__media::before, .report-hero__media::before, .page-hero__bg::before, .invite__bg::before {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgb(0 0 0 / var(--dim, 0)); }
  .hero__media::after, .report-hero__media::after, .page-hero__bg::after, .invite__bg::after { z-index: 1; }

  /* кнопки запросов в просмотре фото */
  .btn--glass { --btn-bg: rgb(255 255 255 / .1); --btn-fg: #fff; border: 1px solid rgb(255 255 255 / .22); backdrop-filter: blur(10px); }
  .btn--glass:hover { --btn-bg: rgb(255 255 255 / .22); }
  .lb__bar { flex-wrap: wrap; }
  .lb__requests { display: flex; gap: 8px; margin-right: auto; margin-left: 16px; }
  @media (max-width: 640px) {
    .lb__requests { order: 3; width: 100%; margin: 4px 0 0; }
    .lb__requests .btn { flex: 1; min-height: 36px; padding-inline: .8em; }
  }

  /* формы запросов */
  .modal--sm { width: min(520px, calc(100% - 32px)); }
  .modal__context { margin-top: 8px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em; color: var(--accent); }
  .modal__desc { margin-top: 12px; font-size: var(--fs-s); line-height: 1.55; color: var(--muted); }
  .modal__desc p + p { margin-top: .6em; }
  .modal__inner .form { margin-top: 20px; }
  .form-intro { margin-bottom: 20px; color: var(--muted); }
  .field__help { margin-top: -6px; font-size: var(--fs-xs); color: var(--muted); }

  /* партнёры по группам */
  .pgroups { display: grid; gap: clamp(24px, 3vw, 40px); }
  .pgroup__title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; font-size: var(--fs-s); font-family: var(--f-text); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
  .pgroups--big .pgroup__title { font-family: var(--f-display); font-size: var(--fs-h3); text-transform: none; letter-spacing: -.01em; color: var(--text); }
  .pgroup__count { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
  .pgroup__level { margin: 18px 0 10px; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
  .pgroup__level:first-of-type { margin-top: 0; }
  .partner__link { display: grid; place-content: center; gap: 4px; width: 100%; height: 100%; text-decoration: none; color: inherit; }
  .partner img { max-height: 64px; width: auto; margin-inline: auto; object-fit: contain; }
  .partners__list--big .partner img { max-height: 88px; }

  /* видео */
  .player.is-playing > picture, .player.is-playing .player__play, .player.is-playing .player__info { display: none; }
  .player__frame, .player__video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
  .video-page .page-title { margin-top: 8px; }
  .video-page .card__meta { margin-top: 12px; }
  .video-page__text { margin-top: 32px; }

  /* защита от спама */
  .form__captcha:empty { display: none; }
  .form__captcha-note { margin-top: 12px; font-size: var(--fs-xs); color: var(--muted); }
  .form__captcha-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

  /* новости */
  .news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
  .news-row { border-bottom: 1px solid var(--line); }
  .news-row__link { display: flex; gap: clamp(16px, 3vw, 32px); align-items: center; padding-block: clamp(18px, 2.5vw, 28px); color: inherit; text-decoration: none; }
  .news-row__body { flex: 1; min-width: 0; }
  .news-row__date { font-size: var(--fs-xs); font-weight: 600; color: var(--accent); }
  .news-row__title { margin-top: 6px; font-size: var(--fs-h3); line-height: 1.25; transition: color .2s; }
  .news-row__link:hover .news-row__title { color: var(--accent); }
  .news-row__lead { margin-top: 8px; color: var(--muted); font-size: var(--fs-s); line-height: 1.55; }
  .news-row__media { flex: 0 0 clamp(120px, 22vw, 240px); aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-m, 12px); background: var(--surface); }
  .news-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out, ease); }
  .news-row__link:hover .news-row__media img { transform: scale(1.04); }
  @media (max-width: 560px) { .news-row__link { flex-direction: column-reverse; align-items: stretch; } .news-row__media { flex-basis: auto; } }
  .news-page .page-title { margin-top: 8px; font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3.25rem); line-height: 1.1; }
  .news-page .card__meta { margin-top: 12px; }
  .news-page__text { margin-top: 28px; }
  .news-page__file { margin-top: 20px; }
  .news-page__report { margin-top: clamp(32px, 5vw, 56px); }
  .news-page__subtitle { margin-bottom: 16px; font-size: var(--fs-h3); }
  .news__item h3 a { color: inherit; text-decoration: none; }
  .news__item h3 a:hover { color: var(--accent); }

  /* анонсы: связанный репортаж */
  .event__report { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: var(--fs-s); font-weight: 600; color: var(--accent); text-decoration: none; }
  .event__report .icon { width: 18px; height: 18px; }
  .event__report:hover { text-decoration: underline; text-underline-offset: 3px; }
  .month--past { margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); }

  /* описательные тексты из визуального редактора */
  .report-lead p + p, .invite__text p + p, .page-lead--rich p + p { margin-top: .6em; }
  .invite__text { max-width: 46ch; margin-top: 24px; font-size: var(--fs-l); color: rgb(255 255 255 / .85); }
  .about__text p + p { margin-top: 1em; }

  /* HTML-карта сайта */
  .sitemap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
  .sitemap__block { padding: clamp(20px, 2.5vw, 28px); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
  .sitemap__block--wide, .sitemap__themes { grid-column: 1 / -1; }
  .sitemap__themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: inherit; }
  .sitemap__title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; font-size: var(--fs-h3); }
  .sitemap__title a { text-decoration: none; }
  .sitemap__title a:hover { color: var(--accent); }
  .sitemap__n { margin-left: auto; font-family: var(--f-text); font-size: var(--fs-xs); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
  .sitemap__list { display: grid; gap: 2px; }
  .sitemap__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
  .sitemap__list a { padding: 5px 0; text-decoration: none; color: var(--text); background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease-out), color .2s; }
  .sitemap__list a:hover { color: var(--accent); background-size: 100% 1px; }
  .sitemap__role { font-size: var(--fs-xs); color: var(--muted); }
  .sitemap__sub { width: 100%; padding-left: 16px; border-left: 1px solid var(--line); display: grid; gap: 2px; }
  .sitemap__chips, .sitemap__years { display: flex; flex-wrap: wrap; gap: 8px; }
  .sitemap__chip, .sitemap__years a { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong, var(--line));
    text-decoration: none; font-weight: 500; transition: background .25s, color .25s, border-color .25s; }
  .sitemap__chip:hover, .sitemap__years a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
  .sitemap__chip span, .sitemap__years a span { font-size: var(--fs-xs); opacity: .6; }
  @media (max-width: 1000px) { .sitemap, .sitemap__themes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 640px) { .sitemap, .sitemap__themes { grid-template-columns: 1fr; } }

  /* приложение и уведомления */
  .footer-app { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: clamp(32px, 4vw, 48px);
    padding: 20px 24px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
  .footer-app__text { display: flex; align-items: flex-start; gap: 14px; max-width: 60ch; font-size: var(--fs-s); color: var(--muted); }
  .footer-app__text b { color: var(--text); }
  .footer-app__text .icon { flex: none; width: 28px; height: 28px; color: var(--accent); }
  .footer-app__actions { display: flex; flex-wrap: wrap; gap: 10px; }
  .push-topics { display: grid; gap: 10px; margin: 20px 0 8px; padding: 0; border: 0; }
  .push-ios, .push-denied { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); font-size: var(--fs-s); }
  .offline { min-height: 60vh; display: grid; align-items: center; }
}

/* ---------- раунд 3: составной альбом, контакты фотографа ---------- */
@layer components {
  .facts__authors { display: grid; gap: 4px; }
  .facts__authors span { color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; }
  .gallery-authors { margin-bottom: 20px; }
  .gallery-authors .chip span, .gallery-authors button.chip span, .gallery-authors a.chip span { opacity: .6; font-size: .85em; margin-left: 4px; }
  .jg__item[hidden] { display: none; }
  .lb__thumb[hidden] { display: none; }

  .author-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; }
  .author-contacts__list, .author-contacts__links { display: flex; flex-wrap: wrap; gap: 10px; }
  .contact-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--surface); text-decoration: none; transition: border-color .25s, transform .25s var(--ease-out); }
  .contact-chip:hover { border-color: var(--accent); transform: translateY(-2px); }
  .contact-chip .icon { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
  .contact-chip span { display: grid; line-height: 1.25; font-weight: 500; }
  .contact-chip small { font-size: .7rem; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
  .author-contacts__links a { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-s); color: var(--muted); text-decoration: none; }
  .author-contacts__links a:hover { color: var(--accent); }
  .author-contacts__links .icon { width: 16px; height: 16px; }
  .author-contacts .btn { margin-left: auto; }
  .legal-note { flex-basis: 100%; font-size: var(--fs-xs); color: var(--muted); }
  @media (max-width: 640px) { .author-contacts .btn { margin-left: 0; width: 100%; } }
}
