/* Theme and type (2026-11-13, Max): a small window above the dock button, the rest of the old Setup is fixed. */
.setup-panel {
  position: fixed; z-index: 70; left: 28px; bottom: 28px; width: 300px; padding-bottom: 12px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 60px #00000024, 0 2px 8px #0000000f; font-size: 12px; line-height: 16px; user-select: none;
}
.setup-panel[hidden] { display: none; }
.setup-head { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 6px 0 14px; cursor: grab; touch-action: none; }
.setup-panel.is-dragging .setup-head { cursor: grabbing; }
.setup-grip { width: 13px; height: 8px; opacity: .75; background: radial-gradient(circle, var(--secondary) 1px, transparent 1.3px) 0 0 / 5px 5px; }
.setup-head p { flex: 1; margin: 0; font-size: 12px; font-weight: 500; }
.setup-close { width: 32px; height: 32px; display: grid; place-items: center; color: var(--secondary); border-radius: 9px; }
.setup-close svg { width: 12px; height: 12px; }
.setup-close:hover { color: var(--text); background: var(--paper); text-decoration: none; }
.setup-tabs { display: flex; padding: 0 8px; border-bottom: 1px solid var(--line); }
.setup-tabs button { position: relative; flex: 1 1 auto; height: 34px; padding: 0 6px; color: var(--secondary); transition: color .2s; }
.setup-tabs button:hover { color: var(--text); text-decoration: none; }
.setup-tabs button[aria-selected=true] { color: var(--text); }
.setup-tabs button[aria-selected=true]::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--text); }
.setup-page { display: grid; gap: 8px; padding: 14px 14px 2px; }
.setup-page[hidden] { display: none; }
.setup-row { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 32px; }
.setup-row.is-wrap { align-items: start; }
.setup-row.is-wrap .setup-label { padding-top: 9px; }
.setup-label { color: var(--secondary); }
.setup-options { display: flex; gap: 2px; padding: 2px; background: var(--paper); border-radius: 10px; }
.setup-options button {
  position: relative; flex: 1 1 0; min-width: 0; height: 28px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--secondary); border-radius: 8px; transition: color .2s, background-color .2s;
}
.setup-options button:hover { color: var(--text); text-decoration: none; }
.setup-options button[aria-pressed=true] { background: var(--text); color: var(--paper); }
.setup-options button:focus-visible { box-shadow: 0 0 0 1.5px var(--accent-text, var(--accent)); text-decoration: none; }
.setup-row.is-wrap .setup-options { flex-wrap: wrap; }
.setup-select { width: 100%; min-height: 32px; padding: 0 10px; border: 0; border-radius: 10px; background: var(--paper); color: var(--text); font: inherit; cursor: pointer; }
.setup-select:focus-visible { outline: none; box-shadow: 0 0 0 1.5px var(--accent-text, var(--accent)); }
.setup-select:disabled { opacity: 1; color: var(--secondary); cursor: default; }
.setup-row.is-wrap .setup-options button { flex: 1 1 30%; }
.setup-ico { width: 15px; height: 15px; display: block; }
.setup-options svg.mark-mini { display: block; width: auto; max-width: 100%; height: 9px; margin: 0; fill: currentColor; animation: none; }
.setup-options svg.mark-mini path, .setup-options svg.mark-mini g { animation: none; }
/* Hints: the name of an icon button appears above it. */
.setup-panel button[aria-label]::after {
  content: attr(aria-label); position: absolute; z-index: 3; left: 50%; bottom: calc(100% + 7px); transform: translateX(-50%);
  padding: 4px 8px; white-space: nowrap; font-size: 11px; line-height: 15px;
  background: var(--text); color: var(--paper); border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .15s;
}
.setup-panel button[aria-label]:is(:hover, :focus-visible)::after { opacity: 1; transition-delay: .3s; }
.setup-panel .setup-options button:first-child[aria-label]::after { left: 0; transform: none; }
.setup-panel .setup-options button:last-child[aria-label]::after { left: auto; right: 0; transform: none; }
.setup-panel .setup-close::after { left: auto; right: 0; transform: none; bottom: auto; top: calc(100% + 4px); }
.setup-toggle[aria-expanded=true] { color: var(--text); }
.footer-controls button { font: inherit; color: inherit; }
.footer-controls button:hover { color: var(--accent-text, var(--accent)); text-decoration: none; }
.navigator-setup { min-height: 44px; color: var(--text); }
.setup-desktop { display: none; }
@media (min-width: 1024px) {
  .setup-row.setup-desktop { display: grid; }
  .footer-controls [data-setup-open] { display: none; }
  /* Wide screens: the ask and setup buttons live in the dock, so the row has nothing to show. */
  .site-footer .footer-bottom:not(:has(.language-switch)) { display: none; }
}
@media (max-width: 1023px) {
  .setup-panel { left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; }
  .setup-head { cursor: default; }
  .setup-grip { display: none; }
  .setup-options button { height: 34px; }
}
@media print { .setup-panel { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .setup-options button, .setup-tabs button { transition: none; } }

/* Shape: soft corners in the manner of iOS. The default keeps the square editorial grid. */
html[data-radius=soft] { --r-s: 12px; --r-m: 20px; --r-l: 30px; }
html[data-radius=soft] :is(.image-link, .editorial-image, .result-image, .preview-panel img, .story-card.type-feature, .interactive-figure, .select-list, .audio-player) {
  border-radius: var(--r-m); overflow: hidden;
}
html[data-radius=soft] :is(.select-list, .audio-player) { overflow: auto; }
html[data-radius=soft] .navigator { border-radius: var(--r-l); }
html[data-radius=soft] :is(.button, .topic-cloud a, .edition-switch, .edition-contents) { border-radius: 999px; }
html[data-radius=soft] .edition-switch { padding-inline: 14px; }
html[data-radius=soft] .accent-rule { border-radius: 999px; }
html[data-radius=soft] .brief-form :is(input:not([type=checkbox]), textarea) {
  border: 1px solid var(--line); border-radius: var(--r-s); padding: 14px 16px; background: var(--surface);
}
html[data-radius=soft] .index-links > a { border-radius: var(--r-m); }
html[data-radius=soft] .interactive-figure { padding-inline: 28px; }
html[data-radius=soft][data-cover=split] .cover-media { border-radius: var(--r-l) 0 0 var(--r-l); }
html[data-radius=soft][data-cover=photo] .home-cover { border-radius: 0 0 var(--r-l) var(--r-l); overflow: hidden; }
html[data-radius=soft][data-cover=photo][data-cover-motion] .home-cover { clip-path: inset(0 round 0 0 30px 30px); }
@media (min-width: 761px) {
  html[data-radius=soft] .navigator { margin: 16px auto; }
}

/* Masthead: a plain bar by default, without a gradient. */
.site-chrome::before {
  height: var(--chrome-surface); background: var(--paper); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: none; backdrop-filter: none; -webkit-mask-image: none; mask-image: none;
}
.site-chrome::after { display: none; }
/* Scrolled back up: no plate; the mark, wordmark and menu invert against whatever lies behind them.
   The inversion happens inside body (isolated in motion.css), so body must paint the page colour itself:
   with no background on html the browser moves the body background to the canvas, the masthead then
   inverts against nothing and stays white on a light page (2026-11-12). */
html { background: var(--paper); }
html:not([data-glass=on]) .site-chrome.is-scrolled { isolation: auto; mix-blend-mode: difference; --text: #fff; --secondary: #fff; color: #fff; }
html:not([data-glass=on]) .site-chrome.is-scrolled::before { display: none; }
html:not([data-glass=on]) .site-chrome.is-scrolled .site-header :is(a, button, span, svg) { color: #fff; }

/* Glass: the masthead dissolves into a gradient blur and the menu sits on a blurred, darkened page.
   The setup window keeps its plain plate and blurs nothing behind it. */
html[data-glass=on] .site-chrome::before {
  height: calc(var(--chrome-surface) + 72px); border: 0;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--paper) 58%, transparent) 0%, color-mix(in srgb, var(--paper) 30%, transparent) 55%, transparent 100%);
  -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5);
  -webkit-mask-image: linear-gradient(#000 0%, #000 42%, #0008 70%, transparent 100%);
  mask-image: linear-gradient(#000 0%, #000 42%, #0008 70%, transparent 100%);
}
html[data-glass=on] .site-chrome::after {
  display: block; height: calc(var(--chrome-surface) + 110px);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  -webkit-mask-image: linear-gradient(#000 0%, #0007 55%, transparent 100%);
  mask-image: linear-gradient(#000 0%, #0007 55%, transparent 100%);
}
html[data-glass=on] .navigator {
  --text: #F5F5F5; --secondary: #BEC4CD; --line: #FFFFFF38; --paper: #FFFFFF1F; --surface: #FFFFFF33;
  background: none; border-color: transparent; box-shadow: none; color: var(--text);
}
html[data-glass=on] .navigator::backdrop { background: #0B0C0EA6; -webkit-backdrop-filter: blur(28px) saturate(1.2); backdrop-filter: blur(28px) saturate(1.2); }
html[data-glass=on] .navigator .globe { filter: none; }

/* Type: free alternatives to the ONY pair. The wordmark is a logo and keeps ONY Lavr. */
/* Type: sans (ONY Lavr with ONY One, or one of them alone), serif (Spectral) and their mixes. */
html[data-font=one] :is(h1, h2, h3, .preview-title, .footer-title p, .banner-copy h2) { font-family: 'ONY One', Arial, sans-serif; letter-spacing: -.03em; }
html[data-font=lavr] body { font-family: 'ONY Lavr', Arial, sans-serif; }
html[data-font=spectral] body { font-family: 'Spectral', Georgia, serif; }
/* Sans + serif (2026-11-13, Max: «мелкие текста давай сансом»): the interface, labels, captions and other small type are
   set in ONY One; Spectral is kept for the reading text. */
html[data-font=lavr-spectral] body { font-family: 'ONY One', Arial, sans-serif; }
html[data-font=lavr-spectral] :is(.launch-standfirst, .launch-lead, .launch-body, .lead, .signal-body, .story-statement) { font-family: 'Spectral', Georgia, serif; }
html[data-font=lavr-spectral] .launch-byline, html[data-font=lavr-spectral] .launch-body :is(figcaption, .launch-caption, .launch-credit, .launch-facts dt, .launch-note, .launch-ref, .launch-expert-role, .launch-matrix-axis, .launch-citation footer, .launch-inset, .launch-inset *, .launch-notes, .launch-notes *, .launch-matrix, .launch-matrix *, .launch-facts, .launch-facts *, .launch-expert, .launch-expert *, .launch-list-small, table, table *) { font-family: 'ONY One', Arial, sans-serif; }
html[data-font=spectral] :is(h1, h2, h3, .preview-title, .footer-title p, .banner-copy h2),
html[data-font=spectral-one] :is(h1, h2, h3, .preview-title, .footer-title p, .banner-copy h2) { font-family: 'Spectral', Georgia, serif; letter-spacing: -.02em; font-weight: 400; }
html[data-font] body .wordmark { font-family: 'ONY Lavr', Arial, sans-serif; letter-spacing: normal; }

/* Accent: the main colour, chosen in Setup. Each option has a bright tone for fills (--accent),
   a tone that stays readable as text on paper (--accent-text), a tone for dark blocks (--accent-on-dark)
   and the colour of type set on top of the fill (--on-accent). */
html, html[data-accent=cobalt] { --accent: #2A5CFF; --accent-text: #2A5CFF; --accent-on-dark: #6F95FF; --on-accent: #fff; }
html[data-accent=pink] { --accent: #FF3D8B; --accent-text: #DC1570; --accent-on-dark: #FF5C9E; --on-accent: #fff; }
html[data-accent=orange] { --accent: #FF4A1C; --accent-text: #DE3A0C; --accent-on-dark: #FF6B47; --on-accent: #fff; }
html[data-accent=ice] { --accent: #19BDF0; --accent-text: #0A84B5; --accent-on-dark: #4FD0FA; --on-accent: #17191C; }
html[data-accent=mint] { --accent: #00CF91; --accent-text: #008C63; --accent-on-dark: #2EE6AE; --on-accent: #17191C; }
html[data-accent=violet] { --accent: #7C4DFF; --accent-text: #6A3BF0; --accent-on-dark: #A58CFF; --on-accent: #fff; }
html[data-accent=yellow] { --accent: #FFD60A; --accent-text: #957500; --accent-on-dark: #FFD60A; --on-accent: #17191C; }
html[data-accent=graphite] { --accent: #121413; --accent-text: #121413; --accent-on-dark: #F5F5F5; --on-accent: #F5F5F5; }
html[data-theme=dark], html[data-accent=cobalt][data-theme=dark] { --accent: #6F95FF; --accent-text: #86A6FF; --on-accent: #17191C; }
html[data-accent=pink][data-theme=dark] { --accent: #FF5C9E; --accent-text: #FF74AC; --on-accent: #17191C; }
html[data-accent=orange][data-theme=dark] { --accent: #FF6B47; --accent-text: #FF7C5C; --on-accent: #17191C; }
html[data-accent=ice][data-theme=dark] { --accent: #4FD0FA; --accent-text: #4FD0FA; --on-accent: #17191C; }
html[data-accent=mint][data-theme=dark] { --accent: #2EE6AE; --accent-text: #2EE6AE; --on-accent: #17191C; }
html[data-accent=violet][data-theme=dark] { --accent: #A58CFF; --accent-text: #B19CFF; --on-accent: #17191C; }
html[data-accent=yellow][data-theme=dark] { --accent: #FFD60A; --accent-text: #FFD60A; --on-accent: #17191C; }
html[data-accent=graphite][data-theme=dark] { --accent: #F5F5F5; --accent-text: #F5F5F5; --on-accent: #17191C; }
.setup-options .setup-swatch { padding: 0; }
.setup-swatch i { display: block; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px #00000014; }
.setup-options .setup-swatch[aria-pressed=true] { background: none; }
.setup-swatch[aria-pressed=true] i { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--text); }
[data-swatch=pink] { background: #FF3D8B; } [data-swatch=orange] { background: #FF4A1C; }
[data-swatch=cobalt] { background: #2A5CFF; } [data-swatch=ice] { background: #19BDF0; }
[data-swatch=mint] { background: #00CF91; } [data-swatch=violet] { background: #7C4DFF; }
[data-swatch=yellow] { background: #FFD60A; } [data-swatch=graphite] { background: linear-gradient(135deg, #121413 50%, #F5F5F5 50%); }

/* Without the centre mark the masthead has two columns in every state. */
html:not([data-mark]) .site-chrome .site-header,
html[data-mark=off] .site-chrome .site-header,
html:not([data-mark]) .site-chrome.is-scrolled .site-header,
html[data-mark=off] .site-chrome.is-scrolled .site-header { grid-template-columns: 1fr auto; }

/* The centre mark keeps one height for every variant, the final mark included. */
html body .site-header .masthead-mark svg { width: auto; height: 52px; aspect-ratio: auto; }
html body .site-header .masthead-mark svg[data-mark-variant=bridge] { height: 36px; }
html body .site-chrome.is-scrolled .masthead-mark svg { height: 38px; }
html body .site-chrome.is-scrolled .masthead-mark svg[data-mark-variant=bridge] { height: 28px; }
@media (max-width: 760px) {
  html body .site-header .masthead-mark svg { height: 32px; }
  html body .site-header .masthead-mark svg[data-mark-variant=bridge] { height: 22px; }
}

/* Margins: 5 px at the tightest (2026-11-13, Max; it was 10), 100 px at the widest, on the sides and above the masthead. */
html[data-margin=min] { --margin: 5px; }
html[data-margin=max] { --margin: clamp(24px, 7vw, 100px); }
html[data-margin=min] .site-chrome:not(.is-scrolled) .site-header { padding-block: 5px; min-height: 0; align-items: start; }
html[data-margin=max] body { padding-top: clamp(0px, 5vw, 68px); }
html[data-margin=max][data-cover=photo] body.is-home { padding-top: 0; }
html[data-margin=max][data-cover=photo] body.is-home .site-chrome:not(.is-scrolled) { top: clamp(0px, 5vw, 68px); }
html[data-margin=min] .view-host, html[data-margin=min] .ultra { border-radius: var(--r-s, 0); }

/* The cover follows the same page width as the masthead. */
.cover-inner { max-width: 1440px; }
@media screen and (min-width: 1024px) { html[data-layout=read] .cover-inner { max-width: 1680px; } }
html[data-cover=poster] .home-cover { --gut: max(var(--margin), calc((100vw - 1440px) / 2 + var(--margin))); }
@media screen and (min-width: 1024px) { html[data-layout=read][data-cover=poster] .home-cover { --gut: max(var(--margin), calc((100vw - 1680px) / 2 + var(--margin))); } }

/* The language switch sits in the footer. */
.footer-language { gap: 2px; margin-right: 8px; }
.footer-language a { min-width: 36px; }

/* Over the cover photograph the centre mark is white, like the rest of the masthead. */
html[data-cover=photo] .is-home .site-chrome:not(.is-scrolled) .masthead-mark { color: #fff; }
html[data-cover=photo] .is-home .site-chrome:not(.is-scrolled) .masthead-mark .globe { filter: none; }




/* Navigation modes. Classic keeps the section bar under the masthead. */
.header-sections { display: none; }
html:is([data-nav=product], [data-nav=studio]) .subnav { display: none; }
/* Product: the four sections form one evenly spaced row in the centre of the masthead.
   The mark is not shown in the masthead in this mode; it stays in the menu, the footer and the dock. */
html[data-nav=product] .site-chrome .site-header .masthead-mark { display: none; }
html[data-nav=product] .site-chrome .site-header,
html[data-nav=product] .site-chrome.is-scrolled .site-header { grid-template-columns: 1fr auto; }
/* From tablet width up the mark, the sections and the buttons share one line. */
@media (min-width: 761px) {
  html[data-nav=product] .site-chrome .site-header,
  html[data-nav=product] .site-chrome.is-scrolled .site-header { display: flex; align-items: center; }
  html[data-nav=product] .site-header .header-actions { margin-left: auto; }
  html[data-nav=product] .header-sections {
    position: absolute; inset: 0; width: max-content; margin-inline: auto;
    display: flex; align-items: center; gap: clamp(28px, 3vw, 46px); white-space: nowrap;
    font-size: 14px; line-height: 20px; pointer-events: none;
  }
  html[data-nav=product] .header-sections-half { display: contents; }
  /* Scrolled: one optical line for the wordmark, the sections and the buttons. */
  html[data-nav=product] .site-chrome.is-scrolled .site-header { padding-block: 16px; }
  html[data-nav=product] .header-sections a { position: relative; padding: 8px 0; color: var(--secondary); pointer-events: auto; transition: color .25s; }
  html[data-nav=product] .header-sections a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
  html[data-nav=product] .header-sections a:hover { color: var(--text); text-decoration: none; }
  html[data-nav=product] .header-sections a:hover::after, html[data-nav=product] .header-sections a[aria-current=page]::after { transform: scaleX(1); }
  html[data-nav=product] .header-sections a[aria-current=page] { color: var(--text); }
  /* Minimal margins pin the masthead to the top edge: the sections follow the wordmark and the buttons. */
  html[data-nav=product][data-margin=min] .site-chrome:not(.is-scrolled) .site-header { align-items: center; }
  html[data-nav=product][data-margin=min] .site-chrome:not(.is-scrolled) .header-sections { inset-block: 5px; }
  html[data-nav=product][data-cover=photo] .is-home .site-chrome:not(.is-scrolled) .header-sections a { color: #ffffffb3; }
  html[data-nav=product][data-cover=photo] .is-home .site-chrome:not(.is-scrolled) .header-sections a:hover { color: #fff; }
}
/* With the assistant panel open the masthead is 440 px narrower: on smaller windows the sections give way. */
@media (min-width: 761px) and (max-width: 1439px) {
  html[data-ask=panel][data-nav=product] .header-sections { display: none; }
}
/* Classic (2026-11-12, Max): the four sections stand in the masthead, two on each side of the centre mark;
   the bar under the masthead keeps «Все материалы» and the view icons. Narrow screens keep the old bar. */
@media (min-width: 1024px) {
  html[data-nav=classic] .header-sections {
    --mark-slot: 196px;
    position: absolute; inset: 0; display: grid; align-items: center; pointer-events: none;
    grid-template-columns: 1fr calc(var(--mark-slot) + clamp(80px, 7vw, 120px)) 1fr;
    font-size: 14px; line-height: 20px; white-space: nowrap;
  }
  html[data-nav=classic] .site-chrome.is-scrolled .header-sections { --mark-slot: 152px; }
  html[data-nav=classic] .header-sections-half { display: flex; gap: clamp(24px, 2.6vw, 44px); }
  html[data-nav=classic] .header-sections-half:first-child { grid-column: 1; justify-self: end; }
  html[data-nav=classic] .header-sections-half:nth-child(2) { grid-column: 3; justify-self: start; }
  html[data-nav=classic] .header-sections :is(.header-all, .header-views) { display: none; }
  html[data-nav=classic] .header-sections a { position: relative; padding: 8px 0; color: var(--secondary); pointer-events: auto; transition: color .25s; }
  html[data-nav=classic] .header-sections a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
  html[data-nav=classic] .header-sections a:hover { color: var(--text); text-decoration: none; }
  html[data-nav=classic] .header-sections a:hover::after, html[data-nav=classic] .header-sections a[aria-current=page]::after { transform: scaleX(1); }
  html[data-nav=classic] .header-sections a[aria-current=page] { color: var(--text); }
  html[data-nav=classic][data-cover=photo] .is-home .site-chrome:not(.is-scrolled) .header-sections a { color: #ffffffb3; }
  html[data-nav=classic][data-cover=photo] .is-home .site-chrome:not(.is-scrolled) .header-sections a:hover { color: #fff; }
  html[data-nav=classic] .section-nav > a:not([data-view-link]) { display: none; }
  /* Without a centre mark the sections still keep the middle free, the row stays symmetric. */
}
@media (min-width: 1024px) and (max-width: 1439px) {
  html[data-ask=panel][data-nav=classic] .header-sections { display: none; }
  html[data-ask=panel][data-nav=classic] .section-nav > a:not([data-view-link]) { display: flex; }
}
/* Studio: everything lives in one menu set in very large type. */
html[data-nav=studio] .site-header .search-toggle { display: none; }
html[data-nav=studio] .navigator { margin: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
html[data-nav=studio] .navigator-inner { min-height: 100dvh; display: flex; flex-direction: column; }
html[data-nav=studio] .navigator-body { flex: 1; align-items: center; }
html[data-nav=studio] .navigator-sections { display: grid; gap: 0; }
html[data-nav=studio] .navigator-sections > a {
  display: block; padding: .02em 0; border: 0; font-family: 'ONY Lavr', Arial, sans-serif; font-weight: 300;
  /* the four sections, the links and the search fit one screen (2026-11-13, Max: «меню более компактное») */
  font-size: clamp(40px, min(9.6vw, 11.6dvh), 176px); line-height: .94; letter-spacing: -.055em;
  transition: transform .8s cubic-bezier(.16, 1, .3, 1), opacity .45s, color .45s, letter-spacing .8s cubic-bezier(.16, 1, .3, 1);
}
html[data-nav=studio] .navigator-sections > a .nav-section-name { font: inherit; letter-spacing: inherit; }
html[data-nav=studio] .navigator-taxonomy { display: none; }
html[data-nav=studio] .navigator-direct { margin-top: clamp(10px, 1.6dvh, 22px); font-size: 15px; gap: 28px; }
html[data-nav=studio] .navigator-preview img { aspect-ratio: auto; width: 100%; height: min(40dvh, 460px); object-fit: cover; }
/* The menu keeps the page margins, so its head lines up with the masthead; its rows are tighter. */
html[data-nav=studio] .navigator-inner { padding: max(var(--margin), 12px) var(--margin) 8px; background: none; }
html[data-nav=studio] .navigator-head { padding-bottom: 12px; }
html[data-nav=studio] .navigator-body { margin-block: clamp(12px, 2dvh, 24px); gap: clamp(24px, 4vw, 64px); }
html[data-nav=studio] .navigator-sections > .nav-journal { margin-top: clamp(8px, 1.4dvh, 18px); }
html[data-nav=studio] .navigator-search { padding-block: 4px; }
html[data-nav=studio] .navigator-search input { font-size: clamp(22px, 3.2dvh, 32px); line-height: 1.25; padding-block: 6px; }
html[data-nav=studio] .navigator-bottom { margin-top: 10px; padding-top: 10px; }
html[data-font=one][data-nav=studio] .navigator-sections > a { font-family: 'ONY One', Arial, sans-serif; }
html:is([data-font=spectral], [data-font=spectral-one])[data-nav=studio] .navigator-sections > a { font-family: 'Spectral', Georgia, serif; }
@media (hover: hover) and (pointer: fine) {
  html[data-nav=studio] .navigator-sections:hover > a:not(:hover) { opacity: .16; }
  html[data-nav=studio] .navigator-sections > a:hover { transform: translateX(clamp(14px, 3vw, 60px)); color: var(--accent-text, var(--accent)); letter-spacing: -.04em; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) { html[data-nav=studio] .navigator-sections > a { transition: none; } }


/* Type on an accent fill takes the colour that reads on that fill. */
.button:hover { color: var(--on-accent, #000); }
.view-dock-button:hover { color: var(--on-accent, #fff); }

/* Themes beyond light and dark. Paper sits on the light base; dusk and black sit on the dark base. */
html[data-surface=paper] { --paper: #EFE9DD; --surface: #F8F4EB; --line: #D8CFBE; --text: #1D1B17; --secondary: #857C6C; --action: #1D1B17; --action-text: #EFE9DD; }
html[data-surface=dim][data-theme=dark] { --paper: #2A2C30; --surface: #33363B; --line: #44474E; --text: #EDEEF0; --secondary: #A0A6B0; --action: #EDEEF0; --action-text: #2A2C30; }
html[data-surface=black][data-theme=dark] { --paper: #000000; --surface: #0C0C0D; --line: #242426; --text: #FFFFFF; --secondary: #8D949F; --action: #FFFFFF; --action-text: #000000; }

/* All stories: one icon in the masthead, one large line in the menu. */
.journal-shortcut { position: relative; min-width: 28px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.journal-shortcut svg { width: 17px; height: 17px; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.journal-shortcut:hover { color: var(--accent-text, var(--accent)); text-decoration: none; }
.journal-shortcut:hover svg { transform: rotate(90deg); }
.journal-shortcut.is-current::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: 8px; height: 1px; background: currentColor; }
html[data-nav=studio] .site-header .journal-shortcut { display: none; }
/* «Все материалы» is a small line under the sections with the view icons in the same row (2026-11-12, Max). */
.navigator-sections > .nav-journal { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; margin-top: clamp(14px, 2vw, 24px); }
.nav-journal .nav-all { font-size: 16px; line-height: 22px; color: var(--secondary); transition: color .2s; }
.nav-journal .nav-all:hover, .nav-journal .nav-all[aria-current=page] { color: var(--text); text-decoration: none; }
.nav-journal .nav-views { margin: 0; gap: 2px; }
.nav-journal .nav-views a { width: 34px; height: 34px; }
.nav-journal .nav-views a svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .journal-shortcut { min-width: 24px; } }

/* The catalogue has a rhythm: some stories are set large so the list is not a uniform grid. */
@media (min-width: 761px) {
  /* Every fifth story is set large, alternately to the left and to the right; dense flow closes gaps when a filter hides cards. */
  html:is([data-grid=mosaic], [data-grid=combo]):not([data-layout=read]) .catalog-grid { grid-auto-flow: row dense; }
  html:is([data-grid=mosaic], [data-grid=combo]):not([data-layout=read]) .catalog-grid > .story-card:nth-child(10n+1):has(.image-link) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px 40px; align-content: start; }
  html:is([data-grid=mosaic], [data-grid=combo]):not([data-layout=read]) .catalog-grid > .story-card:nth-child(10n+1):has(.image-link) .image-link { grid-row: 1 / 6; height: auto; aspect-ratio: 16/10; }
  html:is([data-grid=mosaic], [data-grid=combo]):not([data-layout=read]) .catalog-grid > .story-card:nth-child(10n+1):has(.image-link) > :not(.image-link) { grid-column: 2; }
  html:is([data-grid=mosaic], [data-grid=combo]):not([data-layout=read]) .catalog-grid > .story-card:nth-child(10n+1):has(.image-link) .meta { align-self: end; }
  html:is([data-grid=mosaic], [data-grid=combo]):not([data-layout=read]) .catalog-grid > .story-card:nth-child(10n+1):has(.image-link) h2 { font-size: clamp(36px, 3.6vw, 60px); line-height: 1.03; letter-spacing: -.04em; }
  html:is([data-grid=mosaic], [data-grid=combo]):not([data-layout=read]) .catalog-grid > .story-card:nth-child(10n+1):has(.image-link) .card-deck { font-size: 20px; line-height: 1.4; }
  html:is([data-grid=mosaic], [data-grid=combo]):not([data-layout=read]) .catalog-grid > .story-card:nth-child(10n+6):has(.image-link) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 18px 40px; align-content: start; }
  html:is([data-grid=mosaic], [data-grid=combo]):not([data-layout=read]) .catalog-grid > .story-card:nth-child(10n+6):has(.image-link) .image-link { grid-column: 2; grid-row: 1 / 6; height: auto; aspect-ratio: 16/10; }
  html:is([data-grid=mosaic], [data-grid=combo]):not([data-layout=read]) .catalog-grid > .story-card:nth-child(10n+6):has(.image-link) > :not(.image-link) { grid-column: 1; }
  html:is([data-grid=mosaic], [data-grid=combo]):not([data-layout=read]) .catalog-grid > .story-card:nth-child(10n+6):has(.image-link) .meta { align-self: end; }
  html:is([data-grid=mosaic], [data-grid=combo]):not([data-layout=read]) .catalog-grid > .story-card:nth-child(10n+6):has(.image-link) h2 { font-size: clamp(36px, 3.6vw, 60px); line-height: 1.03; letter-spacing: -.04em; }
  html:is([data-grid=mosaic], [data-grid=combo]):not([data-layout=read]) .catalog-grid > .story-card:nth-child(10n+6):has(.image-link) .card-deck { font-size: 20px; line-height: 1.4; }
}

/* Sliders in the setup window: one hairline and one handle. */
.setup-range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: none; cursor: pointer; }
.setup-range::-webkit-slider-runnable-track { height: 2px; border-radius: 1px; background: color-mix(in srgb, var(--text) 24%, transparent); }
.setup-range::-moz-range-track { height: 2px; border-radius: 1px; background: color-mix(in srgb, var(--text) 24%, transparent); }
.setup-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-top: -7px; border: 0; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px var(--surface); transition: transform .2s; }
.setup-range::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px var(--surface); }
.setup-range:hover::-webkit-slider-thumb, .setup-range:focus-visible::-webkit-slider-thumb { transform: scale(1.18); }
.setup-range:focus-visible { outline: 0; }

/* Hovering the all-stories icon offers the other ways to browse the journal. */
.journal-menu { position: relative; display: inline-flex; }
.journal-flyout {
  position: absolute; z-index: 5; top: calc(100% - 4px); left: 50%; translate: -50% 6px; display: flex; gap: 2px; padding: 4px;
  background: var(--action-text); color: var(--action); border: 1px solid color-mix(in srgb, var(--action) 14%, transparent); border-radius: 12px;
  box-shadow: 0 12px 40px #0000001f; opacity: 0; visibility: hidden; transition: opacity .2s, translate .3s cubic-bezier(.2, .8, .2, 1), visibility 0s .2s;
}
.journal-menu:hover .journal-flyout, .journal-menu:focus-within .journal-flyout { opacity: 1; visibility: visible; translate: -50% 0; transition-delay: 0s; }
.journal-flyout a { position: relative; width: 40px; height: 36px; display: grid; place-items: center; color: inherit; border-radius: 9px; opacity: .6; transition: opacity .2s, background-color .2s, color .2s; }
.journal-flyout a svg { width: 18px; height: 18px; }
.journal-flyout a:hover, .journal-flyout a:focus-visible { opacity: 1; background: var(--action); color: var(--action-text); text-decoration: none; }
.journal-flyout a::after { content: attr(aria-label); position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 0; padding: 4px 9px; white-space: nowrap; font-size: 12px; line-height: 16px; font-weight: 400; background: var(--action); color: var(--action-text); border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.journal-flyout a:is(:hover, :focus-visible)::after { opacity: 1; }
html[data-nav=studio] .site-header .journal-menu { display: none; }
@media (hover: none) { .journal-flyout { display: none; } }
@media (prefers-reduced-motion: reduce) { .journal-flyout { transition: none; } }

/* «Все материалы» stands with the sections in the masthead (2026-11-11); the grid icon and its view flyout are gone, views open from the pill. */
.header-all { display: none; }
@media (min-width: 761px) { html[data-nav=product] .header-sections .header-all { display: inline; } }
@media (max-width: 760px) { html[data-nav=product] .header-sections .header-all { display: inline; white-space: nowrap; } }

/* The view icons under «Журнал» in the menu keep their own small size in every navigation mode. */
.navigator-sections .nav-views a { font-size: 0; line-height: 0; padding: 0; }

/* The two-line wordmark (2026-11-13, Max): the earlier sizes stay (28 px, 20 px in the scrolled masthead, 18 px on phones;
   the centre mark 36 / 28 / 22 px); from the Figma setting it takes only the weight and the leading: ONY Lavr Regular 400,
   line height 80 %, no letter spacing. */
html body .wordmark { font-family: 'ONY Lavr', Arial, sans-serif; font-weight: 400; font-style: normal; letter-spacing: 0; line-height: .8 !important; }

/* Quieter type (2026-11-13, Max: «типографику чуть уменьшим, говорят что кричит»): display and heading sizes are about
   15 % smaller across the site; running text, captions and the interface keep their sizes. */
html:root { --title: 54px; --title-line: 58px; --heading: 34px; --heading-line: 38px; --lead: 22px; --lead-line: 30px; }
@media (max-width: 1100px) { html:root { --title: 46px; --title-line: 50px; --heading: 28px; --heading-line: 32px; } }
@media (max-width: 760px) { html:root { --title: 32px; --title-line: 36px; --heading: 25px; --heading-line: 29px; --lead: 19px; --lead-line: 27px; } }
html body .page-intro h1 { font-size: 80px; line-height: 1; }
html body .about-flow .page-intro h1, html body .search-masthead .page-intro h1 { font-size: 68px; line-height: 1.04; }
@media (max-width: 1100px) { html body .page-intro h1, html body .about-flow .page-intro h1, html body .search-masthead .page-intro h1 { font-size: 60px; } }
@media (max-width: 760px) { html body .page-intro h1, html body .about-flow .page-intro h1, html body .search-masthead .page-intro h1 { font-size: 40px; line-height: 1.04; } }
@media (max-width: 360px) { html body .page-intro h1, html body .about-flow .page-intro h1, html body .search-masthead .page-intro h1 { font-size: 34px; } }
html body .launch-head h1 { font-size: clamp(34px, 4.4vw, 70px); }
html body .launch-body > h2 { font-size: clamp(25px, 2.3vw, 36px); }
html body .launch-lead { font-size: clamp(18px, 1.5vw, 22px); }
html body .author-copy h1 { font-size: clamp(38px, 5.2vw, 96px); }
html body .story-chapter h1 { font-size: clamp(44px, 5.8vw, 104px); }
html body .story-chapter h2 { font-size: clamp(38px, 4.6vw, 82px); }
html[data-cover=photo] body .cover-copy h1 { font-size: clamp(42px, 5.2vw, 86px); }
html[data-cover=split] body .cover-copy h1 { font-size: clamp(44px, 3.9vw, 68px); }
html[data-cover=poster] body .cover-copy h1 { font-size: clamp(30px, 3.2vw, 58px); }
@media (max-width: 760px) {
  html[data-cover] body .cover-copy h1 { font-size: clamp(30px, 8.6vw, 54px); }
}
html body .mosaic .story-card h2 { font-size: 23px; }
html body .mosaic-lead .story-card h2 { font-size: clamp(30px, 2.8vw, 44px); }
html body .mosaic-two .story-card h2 { font-size: clamp(25px, 2.1vw, 31px); }
html body .mosaic-four .story-card h2 { font-size: 18px; }
html body .related .story-card h2 { font-size: 28px; line-height: 1.12; }
@media (min-width: 761px) {
  html:is([data-grid=mosaic], [data-grid=combo]):not([data-layout=read]) body .catalog-grid > .story-card:is(:nth-child(10n+1), :nth-child(10n+6)):has(.image-link) h2 { font-size: clamp(30px, 3vw, 50px); }
}
/* The menu keeps its large type (2026-11-13, Max: «тут типуху покрупнее»): the sections at their full size, the links under
   them and the story beside them a step larger. */
html[data-nav=studio] body .navigator-sections > a { font-size: clamp(44px, min(10.6vw, 12.8dvh), 196px); }
html[data-nav=studio] body .navigator-direct { font-size: clamp(16px, 1.35vw, 22px); line-height: 1.3; gap: 12px clamp(24px, 2.4vw, 40px); }
html[data-nav=studio] body .nav-journal .nav-all { font-size: clamp(16px, 1.35vw, 22px); line-height: 1.3; }
html[data-nav=studio] body .nav-journal .nav-views a { width: 40px; height: 40px; }
html[data-nav=studio] body .nav-journal .nav-views a svg { width: 21px; height: 21px; }
html[data-nav=studio] body .navigator-direct .nav-setup svg { width: 20px; height: 20px; }
/* the theme and type button in the menu is the icon alone (2026-11-13, Max) */
html body .nav-setup { width: 32px; height: 32px; justify-content: center; border-radius: 50%; }
html[data-nav=studio] body .navigator-preview :is(h2, h3, .preview-title) { font-size: clamp(24px, 2.2vw, 36px); line-height: 1.12; }
html body .ultra-head :is(h1, h2) { font-size: clamp(54px, 9.4vw, 150px); }
html body .ultra-beat-copy h2 { font-size: clamp(28px, 3vw, 50px); }

/* Type in the theme window (2026-11-13, Max: icons, not a drop-down): three buttons, each showing «Аа» in its own type:
   the pair (А in ONY Lavr, а in ONY One), ONY One alone, ONY Lavr alone. The name appears as a hint. */
.font-glyph { display: inline-flex; align-items: baseline; font-size: 16px; line-height: 1; letter-spacing: -.01em; }
.font-glyph b { font-weight: 400; }
.font-glyph.is-pair b { font-family: 'ONY Lavr', Arial, sans-serif; }
.font-glyph.is-pair, .font-glyph.is-one, .font-glyph.is-one b { font-family: 'ONY One', Arial, sans-serif; }
.font-glyph.is-lavr, .font-glyph.is-lavr b { font-family: 'ONY Lavr', Arial, sans-serif; }

/* Logo and mark a third smaller (2026-11-13, Max): the wordmark 28 → 18.67 px, the centre mark 36 → 24 px; in the scrolled
   masthead the mark 28 → 18.67 px. The wordmark does not go below 17.5 px (two lines 28 px high, the minimum of the brand
   guide), so the scrolled masthead and phones keep 17.5 px; the mark on phones 22 → 14.67 px. */
html body .site-chrome .wordmark { font-size: 18.67px !important; }
html body .site-chrome.is-scrolled .wordmark { font-size: 17.5px !important; }
@media (max-width: 760px) { html body .site-chrome .wordmark, html body .site-chrome.is-scrolled .wordmark { font-size: 17.5px !important; } }
html body .site-header .masthead-mark svg[data-mark-variant=bridge] { height: 24px; }
html body .site-chrome.is-scrolled .masthead-mark svg[data-mark-variant=bridge] { height: 18.67px; }
@media (max-width: 760px) { html body .site-header .masthead-mark svg[data-mark-variant=bridge], html body .site-chrome.is-scrolled .masthead-mark svg[data-mark-variant=bridge] { height: 14.67px; } }

/* The menu button: three lines; on hover each line runs out to the right and comes back from the left, one after another. */
html body .site-header .nav-toggle > .menu-symbol { width: 22px; height: 14px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
html body .menu-symbol i { display: block; width: 100%; height: 1.5px; background: currentColor; transform: none !important; transition: none; }
@media (hover: hover) and (pointer: fine) {
  html body .nav-toggle:hover .menu-symbol i { animation: burger-run .62s cubic-bezier(.65, 0, .35, 1) both; }
  html body .nav-toggle:hover .menu-symbol i:nth-child(2) { animation-delay: .07s; }
  html body .nav-toggle:hover .menu-symbol i:nth-child(3) { animation-delay: .14s; }
}
@keyframes burger-run { 0% { translate: 0 0; } 45% { translate: 115% 0; } 46% { translate: -115% 0; } 100% { translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { html body .nav-toggle:hover .menu-symbol i { animation: none; } }

/* Type: two buttons (2026-11-13, Max): sans («Аа» in ONY Lavr and ONY One) and sans + serif (А in ONY Lavr, а in Spectral,
   the text face); no hints with font names. */
.font-glyph.is-sans b { font-family: 'ONY Lavr', Arial, sans-serif; }
.font-glyph.is-sans { font-family: 'ONY One', Arial, sans-serif; }
.font-glyph.is-mix b { font-family: 'ONY Lavr', Arial, sans-serif; }
.font-glyph.is-mix { font-family: 'Spectral', Georgia, serif; font-size: 17px; }
