/* AnonHaven, редизайн: стили новых частей сайта. Файл собран автоматически (port/build_port.py) из стилей наброска.
   Все правила действуют только внутри элементов с классом .ah2. */
.ah2 { display: contents; }                 /* обёртка без собственной рамки: шапка прилипает к верху, как и раньше */
/* Tailwind делает значки и картинки блочными, а в новых частях значки стоят в строке с текстом */
.ah2 svg { display: inline; vertical-align: baseline; }
/* Tailwind (forms) рисует синее кольцо вокруг поля в фокусе */
.ah2 input:focus, .ah2 select:focus, .ah2 textarea:focus { box-shadow: none; --tw-ring-shadow: 0 0 #0000; }
.ah2 input, .ah2 select, .ah2 textarea { line-height: inherit; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/static/fonts/ah2/golos-text-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/static/fonts/ah2/golos-text-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/static/fonts/ah2/golos-text-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/static/fonts/ah2/golos-text-latin.woff2) format('woff2'); 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; }
.ah2 { --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --wrap: 1240px; --sheet: 1288px; --head-h: 60px; --accent: #f35132; --accent-strong: #cc3b1c; --accent-ink: #ffffff; --bg: #ffffff; --text: #1b1b1d; --heading: #0b0b0c; --muted: #6c6d72; --line: #e6e6e8; --rule: #0b0b0c; --field: #ffffff; --soft: #f5f5f6; --band-bg: #0b0b0c; --img-filter: saturate(0.88); --sev-crit: #b83224; --sev-high: #a8660f; --sev-med: #7d6f10; --sev-low: #2f7a45; --head-bg: #000000; --dark-text: #e7e7e7; --dark-heading: #ffffff; --dark-muted: #9a9ba0; --dark-line: #2a2b2f; --dark-sev-high: #d99a3d; --dark-sev-crit: #e2604f; --brand-bg: #ffffff; }
.ah2 * { box-sizing: border-box; }
.ah2 { -webkit-text-size-adjust: 100%; }
.ah2 { color: var(--text); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.ah2 a { color: inherit; text-decoration: none; }
.ah2 img { display: block; max-width: 100%; }
.ah2 h1, .ah2 h2, .ah2 h3, .ah2 h4, .ah2 p, .ah2 ul, .ah2 ol { margin: 0; padding: 0; }
.ah2 ul, .ah2 ol { list-style: none; }
.ah2 button, .ah2 input, .ah2 select { font: inherit; color: inherit; }
.ah2 svg { width: 18px; height: 18px; flex: none; }
.ah2 time { font-variant-numeric: tabular-nums; }
.ah2 [hidden] { display: none !important; }
.ah2 .wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.ah2 .more { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.ah2 .more:hover { color: var(--heading); }
.ah2 .btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border-radius: 6px; border: 1px solid var(--accent-strong); background: var(--accent-strong); color: var(--accent-ink); font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap; }
.ah2 .btn:hover { filter: brightness(1.08); }
.ah2 .top { position: sticky; top: 0; z-index: 60; background: var(--head-bg); color: var(--dark-text); }
.ah2 .top-in { display: flex; align-items: center; gap: 34px; height: var(--head-h); }
.ah2 .logo img { height: 27px; width: auto; filter: invert(1) brightness(1.5); }
.ah2 .nav { display: flex; align-items: stretch; gap: 26px; height: 100%; margin-right: auto; font-weight: 600; font-size: 15px; }
.ah2 .nav > a, .ah2 .mm > button { display: inline-flex; align-items: center; gap: 7px; height: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; }
.ah2 .nav > a:hover, .ah2 .mm > button:hover, .ah2 .mm.open > button, .ah2 .nav .on { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); }
.ah2 .mm { position: relative; height: 100%; }
.ah2 .mm > button svg { width: 10px; height: 10px; opacity: 0.7; transition: transform .15s; }
.ah2 .mm.open > button svg { transform: rotate(180deg); }
.ah2 .mm-panel { display: none; position: absolute; top: 100%; left: -22px; min-width: 264px; padding: 8px 22px 16px; background: var(--head-bg); border-top: 1px solid var(--dark-line); border-radius: 0 0 6px 6px; font-weight: 500; font-size: 14.5px; }
.ah2 .mm.open .mm-panel { display: grid; }
.ah2 .mm-panel.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; min-width: 470px; }
.ah2 .mm-panel a { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--dark-text); white-space: nowrap; }
.ah2 .mm-panel a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; }
.ah2 .mm-panel a svg { width: 16px; height: 16px; color: var(--dark-muted); }
.ah2 .mm-panel .all { grid-column: 1 / -1; padding: 10px 0; margin-bottom: 4px; font-weight: 600; color: #fff; border-bottom: 1px solid var(--dark-line); }
.ah2 .mm-panel hr { grid-column: 1 / -1; width: 100%; margin: 6px 0; border: 0; border-top: 1px solid var(--dark-line); }
.ah2 .top-actions { display: flex; align-items: center; gap: 18px; font-size: 14.5px; font-weight: 500; }
.ah2 .icon-btn { display: grid; place-items: center; width: 32px; height: 32px; border: 0; background: none; color: inherit; cursor: pointer; }
.ah2 .icon-btn:hover { color: #fff; }
.ah2 .top-actions .quiet:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; }
.ah2 .top .btn { height: 34px; padding: 0 14px; font-size: 14px; }
.ah2 .burger { display: none; }
.ah2 .burger .x, .ah2 .top.menu-open .burger .bars { display: none; }
.ah2 .top.menu-open .burger .x { display: block; }
.ah2 .search-bar { display: none; position: absolute; inset: 0; background: var(--head-bg); }
.ah2 .top.searching .search-bar { display: block; }
.ah2 .top.searching .top-in { visibility: hidden; }
.ah2 .search-bar .wrap { display: flex; align-items: center; gap: 14px; height: 100%; }
.ah2 .search-bar > .wrap > svg { color: var(--dark-muted); width: 20px; height: 20px; }
.ah2 .search-bar input { flex: 1; min-width: 0; height: 40px; padding: 0; border: 0; background: none; color: #fff; font-size: 18px; outline: none; }
.ah2 .search-bar input::placeholder { color: var(--dark-muted); }
.ah2 .search-bar .btn { height: 34px; }
.ah2 .shade { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, 0.45); }
.ah2 .mnav { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--head-h)); overflow-y: auto; padding: 0 0 26px; background: var(--head-bg); border-top: 1px solid var(--dark-line); }
.ah2 .top.menu-open .mnav { display: block; }
.ah2 .mnav details, .ah2 .mnav .m-link { border-bottom: 1px solid var(--dark-line); }
.ah2 .mnav summary, .ah2 .mnav .m-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.ah2 .mnav summary::-webkit-details-marker { display: none; }
.ah2 .mnav summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 5px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s; }
.ah2 .mnav details[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.ah2 .m-sub { display: grid; padding: 0 0 12px; }
.ah2 .m-sub > a { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 15.5px; }
.ah2 .m-sub > a svg { width: 16px; height: 16px; color: var(--dark-muted); }
.ah2 .m-sub > a.all { font-weight: 600; color: #fff; }
.ah2 .m-sub details { border: 0; }
.ah2 .m-sub summary { padding: 9px 0; font-size: 15.5px; font-weight: 500; }
.ah2 .m-sub .m-sub { margin: 2px 0 8px; padding: 0 0 0 14px; border-left: 1px solid var(--dark-line); }
.ah2 .m-sub .m-sub > a { padding: 7px 0; font-size: 14px; line-height: 1.35; color: var(--dark-muted); }
.ah2[data-brand="full"] { --brand-bg: #fdfdfd; }
.ah2[data-brand="full-tint"] { --brand-bg: #e6eef8; }
.ah2 .sub { border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.ah2 .sub-in { display: flex; align-items: center; gap: 22px; height: 42px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.ah2 .sub-in::-webkit-scrollbar { display: none; }
.ah2 .sub a:hover { color: var(--heading); }
.ah2 .sub .today { margin-left: auto; padding-left: 22px; }
.ah2 .foot { background: var(--head-bg); color: var(--dark-text); padding: 44px 0 0; font-size: 14.5px; }
.ah2 .foot-in { display: grid; grid-template-columns: 1.25fr 1fr 1.45fr; gap: 44px; }
.ah2 .foot-logo { height: 24px; width: auto; filter: invert(1) brightness(1.5); margin-bottom: 14px; }
.ah2 .foot h4 { margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark-muted); }
.ah2 .foot p { color: var(--dark-muted); max-width: 34em; }
.ah2 .foot nav { display: grid; gap: 8px; justify-items: start; }
.ah2 .foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.16em; }
.ah2 .foot form { display: flex; gap: 8px; margin-top: 14px; }
.ah2 .foot input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--dark-line); background: #101012; color: #fff; outline: none; }
.ah2 .foot input:focus { border-color: var(--dark-muted); }
.ah2 .foot-contacts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 16px; color: var(--dark-muted); }
.ah2 .foot-contacts a { color: var(--dark-text); }
.ah2 .foot-bottom { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin-top: 38px; padding: 16px 0 20px; border-top: 1px solid var(--dark-line); font-size: 13px; color: var(--dark-muted); }
.ah2 .foot-bottom .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
@media (max-width: 1120px) {
  .ah2 .top-in { gap: 24px; }
  .ah2 .nav { gap: 20px; }
  .ah2 .top-actions .quiet { display: none; }
}
@media (max-width: 960px) {
  .ah2 .nav { display: none; }
  .ah2 .burger { display: grid; }
  .ah2 .top-in { justify-content: space-between; }
}
@media (max-width: 820px) {
  .ah2 .foot-in { grid-template-columns: 1fr 1fr; }
  .ah2 .foot-in > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .ah2 { --head-h: 54px; }
  .ah2 .wrap { width: calc(100% - 36px); }
  .ah2 .top-in { gap: 12px; }
  .ah2 .top .btn { display: none; }
  .ah2 .sub .today { display: none; }
  .ah2 .foot-in { grid-template-columns: 1fr; gap: 30px; }
  .ah2 .foot-bottom .links { margin-left: 0; }
}
.ah2 .bars li { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0 12px; border-top: 1px solid var(--line); font-size: 14.5px; }
.ah2 .bars li:first-child { border-top: 0; }
.ah2 .bars b { color: var(--heading); }
.ah2 .bars i { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: currentColor; margin-top: 6px; }
.ah2 .bars span { color: var(--text); }
.ah2 .bars li { color: var(--muted); }
@media (max-width: 620px) {
  .ah2 .burger { display: grid; }
  .ah2 .top .btn { display: none; }
}
.ah2 [data-more-box] li:nth-child(n+4) { display: none; }
.ah2 [data-more-box].all li { display: block; }
.ah2 .ad-300 { aspect-ratio: 6 / 5; min-height: 0; }
.ah2 .ad-wide { aspect-ratio: 1240 / 150; min-height: 0; }
@media (max-width: 820px) {
  .ah2 .ad-wide { aspect-ratio: auto; height: 100px; }
}
.ah2 { --meta: #55565b; }
.ah2 .sub { position: relative; }
.ah2 .sub.more::after { content: "›"; position: absolute; top: 0; right: 0; bottom: 1px; width: 58px; padding: 0 14px 2px 0; display: flex; align-items: center; justify-content: flex-end; font-size: 21px; line-height: 1; color: var(--heading); background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--bg) 52%); pointer-events: none; }
.ah2 { --dark-sev-med: #c9b548; --dark-sev-low: #6db27c; }
/* место новых частей среди старых: шапка выше всего остального, подвал выше боковых баннеров кампании */
.ah2 .top { z-index: 60; }
.ah2 .foot { position: relative; z-index: 20; }
.ah2 .foot-msg { margin-top: 8px; font-size: 13.5px; }
/* полоса рубрик на страницах со старым оформлением: колонка уже листа новой главной, поля у неё свои */
.ah2-inner .sub .wrap { width: 100%; }
.ah2-inner .sub .today { display: none; }
