/* Tetik — облик v2, 20.10.2026 ночь (knowledge/projects/tetik/design.md).
   Палитра по мотивам образца; фото вместо узоров; богаче блоки, движение — по делу. */

/* Шрифты: свои файлы, у каждого есть подмножество с казахскими буквами (cyrillic-ext) */
@font-face { font-family: "Commissioner"; src: url("fonts/Commissioner-latin.8cb55903cbbf.woff2") format("woff2"); font-weight: 100 900; font-style: oblique 0deg 12deg; 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: "Commissioner"; src: url("fonts/Commissioner-cyrillic.0918d6c9d353.woff2") format("woff2"); font-weight: 100 900; font-style: oblique 0deg 12deg; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Commissioner"; src: url("fonts/Commissioner-cyrillic-ext.695278d7c7c1.woff2") format("woff2"); font-weight: 100 900; font-style: oblique 0deg 12deg; font-display: swap; unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Literata"; src: url("fonts/Literata-normal-latin.c0473b84f21c.woff2") format("woff2"); font-weight: 200 900; 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: "Literata"; src: url("fonts/Literata-normal-cyrillic.1a4c1533032e.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; src: url("fonts/Literata-normal-cyrillic-ext.b911e0179188.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Literata"; src: url("fonts/Literata-italic-latin.b62406718c0e.woff2") format("woff2"); font-weight: 200 900; font-style: italic; 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: "Literata"; src: url("fonts/Literata-italic-cyrillic.233f38b56dfc.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; src: url("fonts/Literata-italic-cyrillic-ext.440f6ce1dc9d.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
/* Моно — только для промтов: это текст, который вставляют в нейросеть как есть */
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Regular.56aa6d0f8a25.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* Палитра v2 — по мотивам образца (MIT Technology Review), не 1 в 1 */
  --night: #0C2329;       /* ночная бирюза: шапка, герой, AI, статья, подвал */
  --night-2: #15363F;     /* приподнятое на ночном: карточки промтов, строка сверху */
  --mint: #7FE6D6;        /* сигнал: рычажок, рубрики на тёмном, «включено» */
  --mint-ink: #0B7C7A;    /* мятный, читаемый на белом: рубрики, ссылки */
  --paper: #FFFFFF;
  --band: #ECEEF0;        /* серая лента под белыми панелями */
  --peach: #F6A886;       /* один тёплый акцент: «Объясняем просто», метка промта */
  --ink: #0B1A1E;
  --muted: #52626A;
  --on-night: #EAF2F3;
  --on-night-muted: #9DB3B7;
  --line: rgba(11, 26, 30, .12);
  --line-night: rgba(234, 242, 243, .14);

  --sans: "Commissioner", system-ui, sans-serif;
  --serif: "Literata", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --display-axes: "FLAR" 60;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 6px;

  --gutter: 32px;
  --header-h: 68px;
}
@media (max-width: 759px) { :root { --gutter: 20px; --header-h: 60px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.is-locked { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; -webkit-hyphens: none; hyphens: none; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; box-shadow: 0 0 0 6px var(--night); border-radius: 3px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: calc(1280px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -100px; z-index: 60; padding: 12px 16px; border-radius: 999px; background: var(--mint); color: var(--night); font-weight: 600; }
.skip:focus { top: 12px; }

.lead-story__title, .card__title, .ai-main__title, .mosaic__title, .row-story__title, .question__title, .poster__title,
.story-head__title, .topic-head__title, .topic-feature__title, .feed-item__title, .channel__name, .now-item__title, .notfound__title, .prompt-card__title {
  /* Только целые слова (Мади, 21.10): без дефисов; break-word рвёт лишь слово длиннее строки. */
  overflow-wrap: break-word; hyphens: none; text-wrap: balance;
}

.kicker { display: block; font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--mint-ink); }
.kicker__sep { display: inline-block; width: 10px; }
.kicker__soft { font-weight: 500; opacity: .75; }
.kicker--link:hover { text-decoration: underline; text-underline-offset: 3px; }
.meta { display: block; font-size: 13.5px; line-height: 1.4; color: var(--muted); font-variant-numeric: tabular-nums; }
.meta__gap { display: inline-block; width: 14px; }

/* Фото и рисунки: одна рамка, медленный наезд под курсором */
.lead-story__cover, .card__cover, .ai-main__cover, .mosaic__cover, .thumb, .story-cover, .topic-feature__cover, .feed-item__thumb, .question__cover, .poster__cover {
  display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--night-2);
}
.lead-story__cover img, .card__cover img, .ai-main__cover img, .mosaic__cover img, .thumb img, .story-cover img, .topic-feature__cover img, .feed-item__thumb img, .question__cover img, .poster__cover img,
.lead-story__cover svg, .card__cover svg, .ai-main__cover svg, .mosaic__cover svg, .thumb svg, .question__cover svg, .poster__cover svg, .feed-item__thumb svg, .topic-feature__cover svg {
  width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease);
}
a:hover > .lead-story__cover > *, a:hover > .card__cover > *, a:hover > .ai-main__cover > *, a:hover > .mosaic__cover > *, a:hover > .thumb > *,
a:hover > .feed-item__thumb > *, a:hover > .question__cover > *, a:hover > .poster__cover > *, a:hover > .topic-feature__cover > * { transform: scale(1.045); }

/* ---------- Строка сверху и шапка (тёмные на всех страницах) ---------- */

.header { position: sticky; top: 0; z-index: 40; background: rgba(12, 35, 41, .94); color: var(--on-night); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: box-shadow .25s; }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line-night), 0 10px 30px rgba(0, 0, 0, .18); }
.header__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; min-height: var(--header-h); }
.header__start { display: flex; align-items: center; gap: 16px; }
.header__end { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.nav { display: flex; justify-content: center; gap: 22px; }
.nav a { position: relative; padding-block: 8px; font-size: 15px; font-weight: 500; white-space: nowrap; color: var(--on-night); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: none; }
.nav a[aria-current] { color: var(--mint); }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--on-night); }
.logo__track { fill: currentColor; }
.logo__knob { fill: var(--mint); }
.logo .logo__track { fill: var(--on-night); }
.logo .logo__knob { fill: var(--night); }
.logo__word { font-size: 28px; line-height: 1; font-weight: 760; font-variation-settings: "FLAR" 100; letter-spacing: -.035em; }
/* знак: светлая дорожка, ночной рычажок с мятной точкой «включено» */
.logo__switch { overflow: visible; }
.logo__switch .logo__knob { stroke: var(--mint); stroke-width: 3; }

@keyframes knob-on { from { transform: translateX(-20px); } to { transform: none; } }
@keyframes word-on { from { font-weight: 200; opacity: .55; } to { font-weight: 760; opacity: 1; } }
.intro .header .logo__knob { animation: knob-on .55s .35s var(--ease) both; }
.intro .header .logo__word { animation: word-on .7s .3s var(--ease) both; }

.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; font-size: 15px; font-weight: 600; }

.langs { display: inline-flex; padding: 3px; border: 1px solid var(--line-night); border-radius: 999px; background: rgba(255, 255, 255, .04); }
.langs a { display: grid; place-items: center; min-width: 44px; height: 34px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--on-night); transition: background .2s, color .2s; }
.langs a:hover { background: var(--night-2); }
.langs a[aria-current] { background: var(--mint); color: var(--night); }

@media (max-width: 1099px) {
  .header__bar { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 759px) {
  .header__bar { gap: 12px; }
  .menu-btn span { display: none; }
  .menu-btn { width: 44px; }
  .logo__word { font-size: 24px; }
  .langs a { min-width: 34px; height: 32px; padding: 0 6px; font-size: 12px; }
}

.drawer { position: fixed; inset: 0; z-index: 50; background: rgba(5, 16, 19, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.drawer[hidden] { display: none; }
.drawer__panel { display: flex; flex-direction: column; gap: 28px; width: min(420px, 100%); height: 100%; overflow-y: auto; padding: 8px 24px 32px; background: var(--night); color: var(--on-night); animation: drawer-in .35s var(--ease); }
@keyframes drawer-in { from { transform: translateX(-24px); opacity: 0; } }
.drawer__top { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.drawer__close { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: inherit; cursor: pointer; }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a { padding: 14px 0; border-bottom: 1px solid var(--line-night); font-size: 24px; line-height: 1.2; font-weight: 650; font-variation-settings: var(--display-axes); letter-spacing: -.015em; }
.drawer__nav a:hover, .drawer__nav a[aria-current] { color: var(--mint); }
.drawer__foot { display: flex; flex-direction: column; gap: 16px; margin-top: auto; color: var(--on-night-muted); font-size: 15px; }
.drawer__foot .langs { align-self: flex-start; }

/* ---------- Главная: герой ---------- */
.hero { background: var(--night); color: var(--on-night); padding-block: clamp(28px, 4vw, 48px) clamp(120px, 12vw, 160px); }
.hero .kicker { color: var(--mint); }
.hero .meta { color: var(--on-night-muted); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px; }
.lead-story { display: flex; flex-direction: column; gap: 24px; }
.lead-story__text { display: flex; flex-direction: column; gap: 16px; }
.lead-story__title { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.03; font-weight: 720; font-variation-settings: var(--display-axes); letter-spacing: -.025em; color: #fff; }
.lead-story__lead { max-width: 36em; font-size: 19px; line-height: 1.5; color: var(--on-night-muted); }
.lead-story:hover .lead-story__title { text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 3px; text-underline-offset: 7px; }
/* Первый экран без анимации (21.10): на телефоне заголовок главного появлялся через ~2 с — показываем сразу. */

.now { display: flex; flex-direction: column; }
.now__title { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 2px solid var(--mint); font-size: 18px; font-weight: 700; color: #fff; }
.now__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(127, 230, 214, .6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(127, 230, 214, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 230, 214, 0); } }
.now-item a { display: grid; grid-template-columns: 1fr 96px; gap: 16px; align-items: start; padding-block: 18px; border-bottom: 1px solid var(--line-night); }
.now-item:last-child a { border-bottom: 0; }
.now-item__body { display: flex; flex-direction: column; gap: 6px; }
.now-item__title { font-size: 17px; line-height: 1.3; font-weight: 620; color: #fff; }
.now-item a:hover .now-item__title { color: var(--mint); }
.now-item .thumb { aspect-ratio: 1; }
@media (max-width: 1099px) { .hero__grid { grid-template-columns: 1fr; } }
@media (max-width: 759px) {
  .lead-story__cover { margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
  .lead-story__lead { font-size: 17px; }
  .now-item a { grid-template-columns: 1fr 80px; }
}

/* ---------- Каналы ---------- */
.channel { padding-block: clamp(56px, 7vw, 104px); }
.channel__head { display: flex; flex-direction: column; gap: 12px; }
.channel__name { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; font-weight: 720; font-variation-settings: var(--display-axes); letter-spacing: -.02em; }
.channel__name--big { font-size: clamp(36px, 5vw, 68px); line-height: 1; letter-spacing: -.03em; }
.channel__name a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.channel__desc { max-width: 40ch; font-size: 16px; line-height: 1.5; color: var(--muted); }
.channel__all { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 40px; padding: 0 18px; border: 1px solid currentColor; border-radius: 999px; font-size: 14px; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.channel__all::after { content: ""; width: 7px; height: 7px; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; transform: rotate(45deg); }
.channel__all:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.channel__head--wide { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.channel__head--wide .channel__name { grid-row: span 2; }
.channel__head--row { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
@media (max-width: 899px) { .channel__head--wide { grid-template-columns: 1fr; } .channel__head--wide .channel__name { grid-row: auto; } }

/* Новости: белая панель с мятной полосой, наезжает на тёмный герой */
.channel--news { padding-top: 0; background: linear-gradient(var(--night) 0 0) top / 100% clamp(120px, 12vw, 160px) no-repeat, var(--band); }
.channel--news .wrap { margin-top: calc(clamp(120px, 12vw, 160px) * -1 + 40px); }
/* после hero с карточками (22.10) панель не наезжает на кнопки: ночная полоса короче, панель начинается под ней */
.hero--cards + .channel--news { background: linear-gradient(var(--night) 0 0) top / 100% 56px no-repeat, var(--band); }
.hero--cards + .channel--news .wrap { margin-top: 0; }
.panel { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 48px; padding: clamp(24px, 3.4vw, 44px); border-top: 8px solid var(--mint); border-radius: 0 0 var(--radius) var(--radius); background: var(--paper); box-shadow: 0 30px 60px -30px rgba(12, 35, 41, .35); }
.panel .channel__head { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.mosaic { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px; }
.mosaic__main { display: flex; flex-direction: column; gap: 14px; }
.mosaic__title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.12; font-weight: 720; font-variation-settings: var(--display-axes); letter-spacing: -.02em; }
.mosaic__lead { font-size: 16px; line-height: 1.5; color: var(--muted); }
.mosaic__main:hover .mosaic__title, .row-story:hover .row-story__title, .question:hover .question__title, .card:hover .card__title, .feed-item:hover .feed-item__title, .topic-feature:hover .topic-feature__title { color: var(--mint-ink); }
.mosaic__list li + li .row-story { border-top: 1px solid var(--line); }
.mosaic__list li:first-child .row-story { padding-top: 0; }
.row-story { display: grid; grid-template-columns: 1fr 112px; gap: 18px; align-items: start; padding-block: 16px; }
.row-story__body { display: flex; flex-direction: column; gap: 6px; }
.row-story__title { font-size: 16.5px; line-height: 1.3; font-weight: 650; transition: color .2s; }
.row-story .thumb { aspect-ratio: 3 / 2; }
@media (max-width: 1099px) { .panel { grid-template-columns: 1fr; gap: 28px; } .panel .channel__head { position: static; } }
@media (max-width: 759px) { .mosaic { grid-template-columns: 1fr; } .row-story { grid-template-columns: 1fr 96px; } }

/* AI на ночном: разбор с фото + промты, которые можно скопировать */
.channel--ai { background: var(--night); color: var(--on-night); }
.channel--ai .channel__name a { color: var(--mint); }
.channel--ai .channel__desc, .channel--ai .meta { color: var(--on-night-muted); }
.channel--ai .channel__all:hover { background: var(--mint); border-color: var(--mint); color: var(--night); }
.ai-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
.ai-main { display: flex; flex-direction: column; gap: 18px; }
.ai-main__title { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; font-weight: 720; font-variation-settings: var(--display-axes); letter-spacing: -.02em; color: #fff; }
.ai-main__lead { font-size: 17px; line-height: 1.5; color: var(--on-night-muted); }
.ai-main:hover .ai-main__title { color: var(--mint); }
.ai-side { display: flex; flex-direction: column; gap: 4px; }
.row-story--dark { border-bottom: 1px solid var(--line-night); }
.row-story--dark .row-story__title { color: #fff; font-size: 18px; }
.row-story--dark:hover .row-story__title { color: var(--mint); }
.prompt-card { display: flex; flex-direction: column; gap: 14px; margin-block: 8px 12px; padding: 22px; border: 1px solid var(--line-night); border-radius: 10px; background: var(--night-2); }
.prompt-card__title { font-size: 18px; line-height: 1.3; font-weight: 650; color: #fff; }
.prompt-card__title:hover { color: var(--mint); }
.prompt-card__text { padding: 14px 16px; border-radius: var(--radius); background: rgba(0, 0, 0, .22); font: 400 13.5px/1.6 var(--mono); color: var(--on-night); }
.prompt-card__label { display: block; margin-bottom: 6px; font: 600 12.5px/1 var(--sans); color: var(--peach); }
.copy { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 40px; padding: 0 16px; border: 1px solid var(--mint); border-radius: 999px; background: transparent; color: var(--mint); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.copy:hover, .copy.is-done { background: var(--mint); color: var(--night); }
.copy--light { border-color: var(--ink); color: var(--ink); }
.copy--light:hover, .copy--light.is-done { background: var(--ink); color: #fff; }
@media (max-width: 1099px) { .ai-grid { grid-template-columns: 1fr; } }

/* Объясняем просто: вопросы карточками, тёплый акцент */
.channel--explain .channel__name { position: relative; padding-top: 22px; }
.channel--explain .channel__name::before { content: ""; position: absolute; top: 0; left: 0; width: 64px; height: 6px; border-radius: 3px; background: var(--peach); }
.questions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.question { display: flex; flex-direction: column; gap: 14px; }
.question__cover { aspect-ratio: 4 / 3; }
.question__title { font-size: 21px; line-height: 1.22; font-weight: 700; font-variation-settings: var(--display-axes); letter-spacing: -.012em; transition: color .2s; }
.question__lead { font-size: 15.5px; line-height: 1.5; color: var(--muted); }
@media (max-width: 1099px) { .questions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .questions { grid-template-columns: 1fr; } }

/* Технологии будущего: постеры — фото во всю карточку, текст поверх */
.channel--future { background: var(--band); }
.posters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
/* Фото и текст в одной ячейке сетки: карточка не ниже пропорции фото, но растёт под длинный текст (казахские заголовки) */
.poster { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border-radius: 10px; color: #fff; isolation: isolate; }
.poster::before { content: ""; grid-area: 1 / 1; aspect-ratio: 4 / 5; }
.poster__cover { grid-area: 1 / 1; aspect-ratio: auto; height: 100%; border-radius: 0; }
.poster__body { grid-area: 1 / 1; align-self: end; position: relative; display: flex; flex-direction: column; gap: 10px; padding: 72px 26px 26px; background: linear-gradient(to top, rgba(8, 24, 28, .95) 0%, rgba(8, 24, 28, .82) 60%, rgba(8, 24, 28, 0) 100%); }
.poster .meta { color: var(--mint); }
.poster__title { font-size: clamp(22px, 2vw, 27px); line-height: 1.15; font-weight: 720; font-variation-settings: var(--display-axes); letter-spacing: -.015em; }
.poster__lead { font-size: 15px; line-height: 1.45; color: rgba(234, 242, 243, .82); }
.poster { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.poster:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(12, 35, 41, .55); }
@media (max-width: 1099px) { .posters { grid-template-columns: 1fr; } .poster::before { aspect-ratio: 16 / 10; } }
@media (max-width: 559px) { .poster__body { padding: 56px 20px 20px; } }

/* Карточка (статья: «Ещё в рубрике») */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.card { display: flex; flex-direction: column; gap: 16px; }
.card__body { display: flex; flex-direction: column; gap: 8px; }
.card__title { font-size: 21px; line-height: 1.25; font-weight: 680; font-variation-settings: var(--display-axes); letter-spacing: -.01em; transition: color .2s; }
.card__lead { font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.card__prompt { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: var(--radius); background: var(--night-2); color: var(--on-night); font: 400 14px/1.55 var(--mono); }
.card__prompt-label { font: 600 13px/1 var(--sans); color: var(--peach); }
@media (max-width: 1099px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .cards { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Статья ---------- */
.story-head { padding-block: clamp(40px, 5vw, 72px) clamp(150px, 16vw, 230px); background: var(--night); color: var(--on-night); }
.story-head__inner { display: flex; flex-direction: column; gap: 18px; }
.story-head .kicker { color: var(--mint); }
.story-head__title { max-width: 17em; font-size: clamp(34px, 4.4vw, 62px); line-height: 1.03; font-weight: 720; font-variation-settings: var(--display-axes); letter-spacing: -.025em; color: #fff; }
.story-head__lead { max-width: 36em; font: italic 400 22px/1.5 var(--serif); color: var(--on-night-muted); }
.story-cover { max-width: 1120px; margin-top: calc(clamp(150px, 16vw, 230px) * -1 + 40px); box-shadow: 0 40px 80px -40px rgba(12, 35, 41, .5); }
.story-body { display: grid; grid-template-columns: 220px minmax(0, 680px); gap: 64px; padding-block: 48px 32px; }
.story-aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: flex; flex-direction: column; gap: 14px; padding-top: 16px; border-top: 3px solid var(--mint); font-size: 15px; line-height: 1.45; }
.story-head__author { font-weight: 700; }

/* Служебные страницы: о проекте, контакты, политика (21.10) */
.page-head { padding-bottom: clamp(40px, 5vw, 72px); }
.page-body { max-width: calc(760px + var(--gutter) * 2); padding-block: 48px 72px; }
.prose.prose--page > p:first-child::first-letter { float: none; margin: 0; font: inherit; color: inherit; }
.contacts { display: grid; gap: 16px; margin: 32px 0 0; padding: 24px 28px; border-radius: var(--radius); background: var(--night); color: var(--on-night); }
.contacts dt { font-size: 14px; font-weight: 600; color: var(--on-night-muted); }
.contacts dd { margin: 2px 0 0; font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.contacts a:hover { color: var(--mint); }
.contacts__soon { color: var(--on-night-muted); font-weight: 500; }
.story-aside__meta { display: flex; flex-direction: column; color: var(--muted); }
.share { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.share__label { font-size: 14px; font-weight: 600; color: var(--muted); }
.share .copy { text-decoration: none; }
.story-aside__langs { display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.story-aside__langs a { color: var(--mint-ink); font-weight: 600; }
.story-aside__langs a:hover { text-decoration: underline; }
@media (max-width: 899px) {
  .story-body { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .story-aside { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
  .story-aside__meta { flex-direction: row; gap: 14px; }
  .story-aside__langs { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; flex-basis: 100%; }
  .share { flex-direction: row; flex-wrap: wrap; align-items: center; flex-basis: 100%; }
  .share__label { flex-basis: 100%; }
}
@media (max-width: 759px) {
  .story-cover { margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
  .story-head__lead { font-size: 19px; }
}

.prose { font: 400 19px/1.72 var(--serif); }
.prose > * { margin: 0 0 1.1em; }
.prose > p:first-child::first-letter { float: left; margin: .06em .12em 0 0; font: 760 3.6em/.82 var(--sans); font-variation-settings: "FLAR" 100; color: var(--mint-ink); }
.prose h2 { margin-top: 1.8em; font: 720 30px/1.2 var(--sans); font-variation-settings: var(--display-axes); letter-spacing: -.02em; }
.prose h3 { margin-top: 1.5em; font: 700 23px/1.25 var(--sans); font-variation-settings: var(--display-axes); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--mint-ink); }
.prose a { color: var(--mint-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--night); background: var(--mint); text-decoration: none; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 28px; border-left: 4px solid var(--peach); font: italic 400 25px/1.45 var(--serif); }
.prose blockquote p { margin: 0; }
.prose img { border-radius: var(--radius); }
.prose figcaption { margin-top: 10px; font: 400 14px/1.45 var(--sans); color: var(--muted); }
.prose code, .prose pre { font-family: var(--mono); font-size: .85em; }
.prose :not(pre) > code { padding: .12em .4em; border-radius: 6px; background: rgba(11, 124, 122, .1); color: var(--ink); }
.prose pre code { font-size: 1em; white-space: pre-wrap; }
.prose strong { font-weight: 700; }
.prose .credit { font: 400 14px/1.45 var(--sans); color: var(--muted); }
.prose .credit a { color: inherit; }
.prose pre { overflow-x: auto; padding: 18px 20px; border-radius: var(--radius); background: var(--night); color: var(--on-night); line-height: 1.6; }
.prose hr { border: 0; height: 1px; background: var(--line); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--night); overflow: hidden; }
.video iframe, .prose iframe { width: 100%; height: 100%; border: 0; }
/* Видео из редактора (23.10): файл MP4 и вставка окном «Видео» — во всю ширину текста, 16:9 */
.prose video { display: block; width: 100%; height: auto; max-height: 80vh; border-radius: var(--radius); background: var(--night); }
.prose p > iframe, .prose iframe[width] { display: block; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); }
@media (max-width: 759px) { .prose { font-size: 18px; } .prose h2 { font-size: 26px; } }

.section { padding-block: clamp(56px, 6vw, 88px); }
.section--more { background: var(--band); }
.section__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.section__title { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; font-weight: 720; font-variation-settings: var(--display-axes); letter-spacing: -.02em; }

.editbar { background: var(--night-2); color: var(--on-night); font-size: 14px; font-weight: 600; }
.editbar--draft { background: var(--peach); color: var(--ink); }
.editbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; min-height: 44px; }
.editbar a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }

.progress { position: fixed; top: 0; left: 0; z-index: 70; width: 100%; height: 3px; background: var(--mint); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* ---------- Рубрика ---------- */
.topic-head { padding-block: clamp(40px, 6vw, 80px); background: var(--night); color: var(--on-night); }
.topic-head__title { font-size: clamp(44px, 7.4vw, 104px); line-height: .96; font-weight: 760; font-variation-settings: "FLAR" 80; letter-spacing: -.04em; color: var(--mint); }
.topic-head__desc { max-width: 42ch; margin-top: 20px; font-size: 20px; line-height: 1.45; color: var(--on-night-muted); }
.topic-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 44px; align-items: center; margin-top: clamp(32px, 5vw, 56px); }
.topic-feature .kicker { color: var(--mint); }
.topic-feature .meta { color: var(--on-night-muted); }
.topic-feature__body { display: flex; flex-direction: column; gap: 14px; }
.topic-feature__title { font-size: clamp(26px, 3vw, 42px); line-height: 1.08; font-weight: 720; font-variation-settings: var(--display-axes); letter-spacing: -.02em; color: #fff; transition: color .2s; }
.topic-feature:hover .topic-feature__title { color: var(--mint); }
.topic-feature__lead { font-size: 18px; line-height: 1.5; color: var(--on-night-muted); }
@media (max-width: 899px) { .topic-feature { grid-template-columns: 1fr; gap: 20px; } }

.topic-feed { padding-block: 24px 88px; }
.feed { max-width: 920px; }
.feed-item { display: grid; grid-template-columns: 1fr 260px; gap: 36px; align-items: center; padding-block: 30px; border-bottom: 1px solid var(--line); }
.feed-item__body { display: flex; flex-direction: column; gap: 10px; }
.feed-item__title { font-size: 24px; line-height: 1.2; font-weight: 700; font-variation-settings: var(--display-axes); letter-spacing: -.015em; transition: color .2s; }
.feed-item__lead { font-size: 16px; line-height: 1.5; color: var(--muted); }
@media (max-width: 759px) {
  .feed-item { grid-template-columns: 1fr 96px; gap: 16px; padding-block: 20px; }
  .feed-item__thumb { aspect-ratio: 1; }
  .feed-item__title { font-size: 18.5px; }
  .feed-item__lead { display: none; }
}

.button, .load-more { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.button:hover { background: transparent; color: var(--ink); }
.load-more { margin-top: 36px; background: transparent; color: var(--ink); }
.load-more:hover { background: var(--ink); color: #fff; }
.load-more[aria-busy] { opacity: .5; pointer-events: none; }
.empty { padding-block: 40px; color: var(--muted); }

/* ---------- 404: тумблер выключен; наведи на кнопку — щёлкнет ---------- */
.notfound { padding-block: clamp(56px, 9vw, 120px); background: var(--night); color: var(--on-night); }
.notfound__inner { display: grid; grid-template-columns: minmax(160px, 320px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.notfound__inner > div { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.notfound .kicker { color: var(--mint); }
.notfound__title { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; font-weight: 720; font-variation-settings: var(--display-axes); letter-spacing: -.025em; color: #fff; }
.notfound__text { max-width: 34em; font-size: 19px; line-height: 1.5; color: var(--on-night-muted); }
.notfound .button { border-color: var(--mint); background: var(--mint); color: var(--night); }
.notfound .button:hover { background: transparent; color: var(--mint); }
.notfound__switch rect { fill: var(--night-2); stroke: var(--line-night); stroke-width: 2; }
.notfound__switch circle { fill: var(--on-night-muted); transition: transform .45s var(--ease), fill .45s; }
.notfound:has(.button:hover, .button:focus-visible) .notfound__switch circle { transform: translateX(100px); fill: var(--mint); }
@media (max-width: 759px) { .notfound__inner { grid-template-columns: 1fr; } .notfound__switch { width: 160px; } }

/* ---------- Подвал: имя во всю ширину ---------- */
.footer { overflow: hidden; padding-top: 72px; background: var(--night); color: var(--on-night); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer__about { display: flex; flex-direction: column; gap: 16px; max-width: 38ch; color: var(--on-night-muted); }
.footer__label { margin-bottom: 14px; font-size: 14px; font-weight: 600; color: var(--on-night-muted); }
.footer__nav { display: flex; flex-direction: column; gap: 8px; }
.footer__nav a:hover { color: var(--mint); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line-night); font-size: 14px; color: var(--on-night-muted); }
.footer__word { margin: 24px 0 0; padding-bottom: .3em; text-align: center; font-size: clamp(120px, 27vw, 400px); line-height: .9; font-weight: 800; font-variation-settings: "FLAR" 100; letter-spacing: -.06em; color: var(--night-2); user-select: none; }
@media (max-width: 759px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }

@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  @view-transition { navigation: none; }
}
.ai-col { display: flex; flex-direction: column; gap: 20px; }
.channel__head--wide .channel__all { justify-self: start; }
.footer__credit { color: var(--on-night-muted); }
.footer__yt, .drawer__yt { display: inline-flex; align-items: center; gap: 8px; }
.footer__yt svg, .drawer__yt svg { flex: none; }
.drawer__yt { font-weight: 600; color: var(--on-night); }
.drawer__yt:hover { color: var(--mint); }
.footer__credit:hover { color: var(--mint); }

/* ---------- AIqyn, фаза 1 (21.10.2026): главная по макету docs/redesign/aiqyn-home-mock.html, облик — токены выше ---------- */
/* Слово-логотип: «AI» мятным — в Commissioner заглавная I похожа на l, без цвета «AIqyn» читается «Alqyn» */
.logo__ai { color: var(--mint); margin-right: .045em; }
.footer__word .logo__ai { color: var(--mint); opacity: .22; }

/* Hero с карточками (22.10.2026, рисунок Мади): крупный заголовок сверху, ниже ряд «Новости AI сегодня» из 5 карточек с фото.
   Каждая следующая уходит в тень (1 → .75 → .5 → .3 → .15) и чуть уже, справа ряд растворяется в ночи маской к краю экрана.
   Наведение или фокус — карточка яркая, край отступает. Начальное состояние видно без скрипта; движение — только переходы. */
@property --edge { syntax: "<length>"; inherits: true; initial-value: 0px; }
.hero--cards { padding-top: clamp(20px, 3vw, 36px); padding-bottom: clamp(24px, 3vw, 40px); }
.hero-cards__title { max-width: 15em; font-size: clamp(32px, 4vw, 56px); line-height: 1.02; font-weight: 760; font-variation-settings: var(--display-axes); letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.hero-cards__title em { font-style: normal; color: var(--mint); }
.hero-cards { margin-top: clamp(18px, 2.4vw, 32px); scroll-margin-top: calc(var(--header-h) + 16px); }
.hero-cards__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.hero-cards__label { display: flex; align-items: center; gap: 10px; font-size: 16px; line-height: 1.2; font-weight: 700; color: #fff; }
/* «5 новостей  3 мин» целиком: не рвётся, при нехватке места уходит строкой ниже */
.hero-cards__date { font-size: 14px; color: var(--on-night-muted); font-variant-numeric: tabular-nums; }
.hero-cards__meta { white-space: nowrap; font-size: 13.5px; color: var(--on-night-muted); font-variant-numeric: tabular-nums; }
.hero-cards__row {
  --lead: max(var(--gutter), calc((100% - 1280px) / 2));
  display: flex; align-items: flex-start; gap: 20px; margin-top: 4px; padding: 14px 24px 18px var(--lead);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--edge)), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - var(--edge)), transparent);
  transition: --edge .45s var(--ease);
}
.hero-cards__row:has(.hero-card:hover, .hero-card:focus-within) { --edge: 0px; }
.hero-card { --grow: 1; --dim: 1; flex: var(--grow) 1 0; min-width: 0; opacity: var(--dim); transition: opacity .35s var(--ease); }
.hero-card--1 { --grow: 1.5; }
.hero-card--2 { --grow: 1.2; }
.hero-card--3 { --grow: 1.1; }
.hero-card--4 { --grow: 1; }
.hero-card--5 { --grow: 1; }  /* 27.10 заказчик: все карточки яркие, без «веера» */
.hero-card:hover, .hero-card:focus-within { opacity: 1; }
.hero-card__link { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line-night); border-radius: 10px; background: var(--night-2); }
.hero-card__link:focus-visible { outline-offset: 3px; }
.hero-card__photo { display: block; overflow: hidden; height: clamp(150px, 30vh, 300px); background: var(--night); }
.hero-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.hero-card__link:hover .hero-card__photo img { transform: scale(1.045); }
.hero-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.hero-card__kicker { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; line-height: 1.3; font-weight: 600; color: var(--on-night-muted); }
.hero-card__kicker b { font-weight: 760; color: var(--mint); font-variant-numeric: tabular-nums; }
.hero-card__title { font-size: 18px; line-height: 1.28; font-weight: 680; color: #fff; text-wrap: balance; transition: color .2s; }
.hero-card--1 .hero-card__title { font-size: clamp(19px, 1.55vw, 23px); line-height: 1.2; font-variation-settings: var(--display-axes); letter-spacing: -.01em; }
.hero-card__link:hover .hero-card__title { color: var(--mint); }
.hero-card__why { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 13.5px; line-height: 1.45; color: var(--on-night-muted); }
.hero-card__why b, .for-you b { font-weight: 600; color: var(--peach); }
.hero-card--text .hero-card__link { border-top: 3px solid var(--mint); }
.hero-card--text .hero-card__body { padding-top: 20px; }
.hero-card--text.hero-card--1 .hero-card__title { font-size: clamp(22px, 2vw, 28px); }
.hero-cards__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: clamp(14px, 2vw, 24px); }
.hero-cards__foot .promise__cta, .hero-cards__foot .proof { margin-top: 0; }
@media (min-width: 760px) { .hero-cards__title em { white-space: nowrap; } }
/* Уже 1180 px — горизонтальная прокрутка со scroll-snap; карточки не тускнеют (на касание нет наведения), в тень уходит правый край */
@media (max-width: 1179px) {
  .hero-cards__row { --edge: 72px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--lead); padding-right: var(--edge); scrollbar-width: none; overscroll-behavior-x: contain; }
  .hero-cards__row::-webkit-scrollbar { display: none; }
  .hero-card { --dim: 1; flex: 0 0 min(300px, 72vw); scroll-snap-align: start; }
  .hero-card--1 { flex-basis: min(340px, 78vw); }
  .hero-cards__row:has(.hero-card:hover, .hero-card:focus-within) { --edge: 72px; }
}
@media (max-width: 759px) { .hero-cards__row { gap: 14px; } .hero-card__body { padding: 14px 16px 18px; } .hero-card__why { -webkit-line-clamp: 3; line-clamp: 3; } }
.promise__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.promise__cta:empty { display: none; }
.button { gap: 10px; }
.button--mint { border-color: var(--mint); background: var(--mint); color: var(--night); }
.button--mint:hover { background: transparent; color: var(--mint); }
.button--ghost { border-color: var(--line-night); background: transparent; color: var(--on-night); }
.button--ghost:hover { border-color: var(--mint); background: transparent; color: var(--mint); }
.button__arrow { width: 8px; height: 8px; border-top: 1.8px solid currentColor; border-right: 1.8px solid currentColor; transform: rotate(45deg); }
.proof { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 6px; font-size: 14.5px; color: var(--on-night-muted); }
.proof b { margin-right: 2px; font-size: 17px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }

/* Главный материал дня на белой панели, рядом — свежее из других рубрик */
.lead-panel { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.lead-main .mosaic__title { font-size: clamp(26px, 3vw, 42px); line-height: 1.08; }
.lead-main .mosaic__lead { max-width: 40em; font: 400 18px/1.55 var(--serif); }
.lead-side { display: flex; flex-direction: column; gap: 14px; }
.lead-side__title { padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-size: 18px; font-weight: 700; }
.lead-side .row-story { grid-template-columns: 1fr 96px; }
.lead-side .mosaic__list li:first-child .row-story { padding-top: 4px; }
@media (max-width: 1099px) { .lead-panel { grid-template-columns: 1fr; } }

/* Промты, которые работают: три карточки с копированием на ночном */
.prompt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.prompt-grid .prompt-card { margin: 0; height: 100%; }
.prompt-grid .copy { margin-top: auto; }
.prompt-card__kicker { font-size: 14px; font-weight: 600; color: var(--mint); }
@media (max-width: 1099px) { .prompt-grid { grid-template-columns: 1fr; } }

/* Рубрики ТЗ компактно: четыре колонки — карточка и ссылка */
.channel--rubs { background: var(--band); }
.rubs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
.rubs__col { display: flex; flex-direction: column; gap: 14px; }
.rubs__name { padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-size: 20px; line-height: 1.2; font-weight: 720; font-variation-settings: var(--display-axes); letter-spacing: -.01em; }
.rubs__name a:hover { color: var(--mint-ink); }
.rubs .card__title { font-size: 18.5px; }
.rubs__link { padding-top: 12px; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.35; font-weight: 600; transition: color .2s; }
.rubs__link:hover { color: var(--mint-ink); }
@media (max-width: 1099px) { .rubs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .rubs { grid-template-columns: 1fr; } }

/* Полоса Telegram: мятная, только когда в «Контакты и ссылки» есть канал */
.tg-section { padding-block: 0 clamp(56px, 7vw, 104px); background: var(--band); }
.tg-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding: clamp(24px, 3.4vw, 44px); border-radius: 10px; background: var(--mint); color: var(--night); }
.tg-band__title { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.1; font-weight: 720; font-variation-settings: var(--display-axes); letter-spacing: -.02em; text-wrap: balance; }
.tg-band__text { margin-top: 8px; font-size: 17px; }
.tg-band .button { border-color: var(--night); background: var(--night); color: var(--on-night); }
.tg-band .button:hover { background: transparent; color: var(--night); }
@media (max-width: 759px) { .tg-band { grid-template-columns: 1fr; } }

/* «Для вас» в шапке статьи; промт под текстом статьи */
.for-you { max-width: 40em; padding: 12px 16px; border-left: 3px solid var(--peach); border-radius: 0 var(--radius) var(--radius) 0; background: var(--night-2); font-size: 16.5px; line-height: 1.5; color: var(--on-night); }
.story-main { min-width: 0; }
.story-main .prompt-card { margin-top: 8px; }
/* У «I» в логотипе — засечки сверху и снизу (как в IBM Plex): так она не путается с «l». Отсчёт от области шрифта
   Commissioner: верх области — 1em над базовой линией, высота заглавной — .714em. */
.logo__i { position: relative; }
.logo__i::after { content: ""; position: absolute; left: 50%; top: .286em; width: .4em; height: .714em; transform: translateX(-50%); border-block: .085em solid currentColor; box-sizing: border-box; }

/* ---------- AIqyn, фаза 2 (21.10.2026): реклама, партнёрский материал, каталог AI-инструментов, страница «Реклама».
   Только токены выше; формы — как у сайта: плашки var(--radius), карточки 10px, органы управления — пилюли. ---------- */

/* Реклама: пунктирная рамка отделяет её от редакционного; метка «Реклама» всегда сверху */
.ad { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px dashed rgba(11, 26, 30, .3); border-radius: var(--radius); background: var(--paper); }
.ad__label { font-size: 12.5px; line-height: 1.2; font-weight: 600; color: var(--muted); }
.ad__cover { display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--night-2); }
.ad__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.ad:hover .ad__cover img { transform: scale(1.045); }
.ad__body { display: flex; flex-direction: column; gap: 4px; }
.ad__title { font-size: 17px; line-height: 1.3; font-weight: 650; transition: color .2s; }
.ad:hover .ad__title { color: var(--mint-ink); }
.ad__text { font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.ad--wide.ad--image { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 10px 20px; align-items: center; }
.ad--wide .ad__label { grid-column: 1 / -1; }
.story-ad { margin-top: 40px; }
.home-ad { padding-block: clamp(28px, 4vw, 48px); }  /* баннер на главной — своей полосой после «Главных новостей» (27.10) */
.feed-ad { padding-block: 24px; border-bottom: 1px solid var(--line); }
@media (max-width: 559px) { .ad--wide.ad--image { grid-template-columns: 1fr; } }

/* «Партнёрский материал» — честная пометка на карточках и в шапке статьи */
.partner-mark { display: inline-block; align-self: flex-start; padding: 2px 8px; border: 1px solid currentColor; border-radius: 4px; font-size: 12.5px; line-height: 1.4; font-weight: 600; color: var(--muted); white-space: nowrap; }
.hero-card .partner-mark, .story-head .partner-mark, .topic-head .partner-mark, .prompt-card .partner-mark { color: var(--on-night-muted); }

/* Каталог AI-инструментов: на главной (4 карточки) и страница /tools/ */
.channel--tools { padding-top: 0; background: var(--band); }
.tools-head { display: flex; flex-direction: column; gap: 10px; }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tool { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 10px; background: var(--paper); }
.tool--promo { box-shadow: inset 0 0 0 2px var(--mint-ink); }
.tool__head { display: flex; align-items: center; gap: 12px; }
.tool__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; border-radius: var(--radius); font: 760 19px/1 var(--sans); font-variation-settings: "FLAR" 100; color: var(--night); }
.tool__icon img { width: 100%; height: 100%; object-fit: cover; }
.tool__icon--mint { background: var(--mint); }
.tool__icon--night { background: var(--night); color: var(--mint); }
.tool__icon--band { background: var(--band); }
.tool__id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tool__name { font-size: 18px; line-height: 1.25; font-weight: 680; font-variation-settings: var(--display-axes); letter-spacing: -.01em; }
.tool__name a { transition: color .2s; }
.tool__name a:hover { color: var(--mint-ink); }
.tool__cat { font-size: 13.5px; line-height: 1.3; color: var(--muted); }
.kz-score { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.kz-score__bars { display: flex; gap: 3px; }
.kz-score__bars i { width: 16px; height: 6px; border-radius: 2px; background: var(--band); }
.kz-score__bars i.is-on { background: var(--mint-ink); }
.tool__desc { font-size: 15px; line-height: 1.5; color: var(--muted); }
.tool__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--band); font-size: 12.5px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.chip--free { background: var(--mint); }
.chip--promo { background: var(--mint-ink); color: #fff; }
.tool__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: auto; padding-top: 4px; }
.tool__go { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.tool__go:hover { background: var(--ink); color: #fff; }
.tool__go .button__arrow { width: 7px; height: 7px; }
.tool__review { font-size: 14px; font-weight: 600; color: var(--mint-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.tools-note { margin-top: 20px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* Лента инструментов (22.10.2026): карточки 300 px с прокруткой и привязкой, стрелки появляются под курсором; верх — плашка с буквой/логотипом */
.rail { position: relative; }
.tool-rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px max(var(--gutter), calc((100% - 1280px) / 2)) 20px; scroll-padding-inline: max(var(--gutter), calc((100% - 1280px) / 2)); scrollbar-width: none; overscroll-behavior-x: contain; }
.tool-rail::-webkit-scrollbar { display: none; }
.tool-card { position: relative; flex: 0 0 300px; display: flex; flex-direction: column; overflow: hidden; scroll-snap-align: start; border-radius: 16px; background: var(--paper); box-shadow: 0 1px 2px rgba(11, 26, 30, .06); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tool-card:hover { transform: translateY(-8px); box-shadow: 0 28px 44px -26px rgba(12, 35, 41, .45); }
.tool-card--promo { box-shadow: inset 0 0 0 2px var(--mint-ink); }
.tool-card__plate { position: relative; display: grid; place-items: center; height: 164px; color: var(--night); }
.tool-card__plate--mint { background: linear-gradient(135deg, var(--mint) 0%, #C9F4EC 100%); }
.tool-card__plate--night { background: linear-gradient(135deg, var(--night) 0%, var(--night-2) 100%); color: var(--mint); }
.tool-card__plate--band { background: linear-gradient(135deg, #D7DEE2 0%, var(--band) 100%); }
.tool-card__plate img { width: 96px; height: 96px; border-radius: 22px; object-fit: cover; transition: transform .5s var(--ease); }
.tool-card__letter { font: 760 76px/1 var(--sans); font-variation-settings: "FLAR" 100; letter-spacing: -.04em; transition: transform .5s var(--ease); }
.tool-card:hover .tool-card__letter, .tool-card:hover .tool-card__plate img { transform: scale(1.1); }
.tool-card__promo { position: absolute; top: 12px; left: 12px; }
.tool-card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.tool-card__tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.tool-card__tag svg { color: var(--mint-ink); }
.tool-card__name { font-size: 19px; line-height: 1.25; font-weight: 700; font-variation-settings: var(--display-axes); letter-spacing: -.01em; }
.tool-card__name a { transition: color .2s; }
.tool-card__name a:hover { color: var(--mint-ink); }
.tool-card__desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.tool-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.tool-card__foot .kz-score { flex: 1 1 100%; }
.tool-card__foot .chip { margin-right: auto; }
.tool-card__go { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--band); color: var(--ink); transition: transform .35s var(--ease), background .2s, color .2s; }
.tool-card:hover .tool-card__go { transform: rotate(-45deg); background: var(--night); color: var(--mint); }
.rail__btn { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--ink); cursor: pointer; opacity: 0; transition: opacity .25s, background .2s, color .2s; }
.rail:hover .rail__btn, .rail__btn:focus-visible { opacity: 1; }
.rail__btn:hover { background: var(--night); color: var(--mint); }
.rail__btn--prev { left: 12px; }
.rail__btn--next { right: 12px; }
.rail__btn[disabled] { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .rail__btn { display: none; } }
@media (max-width: 759px) { .tool-card { flex-basis: min(280px, 82vw); } .tool-rail { gap: 14px; } }

/* Промты бегущими рядами (22.10.2026): две полосы навстречу, круг без шва за счёт копии ряда; под курсором и при фокусе — стоят */
.prompt-marquee { display: flex; flex-direction: column; gap: 20px; }
.marquee { --dur: 60s; display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { flex: none; display: flex; gap: 20px; padding-right: 20px; animation: marquee var(--dur) linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.prompt-marquee.is-waiting .marquee__track { animation-play-state: paused; }
.marquee .prompt-card { width: min(400px, 84vw); margin: 0; }
.marquee .prompt-card__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.marquee .copy { margin-top: auto; }
.copy.is-fail { border-color: var(--peach); color: var(--peach); background: transparent; }
.story-source { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.story-source a { font-weight: 600; color: var(--mint-ink); text-decoration: underline; text-underline-offset: 3px; }
.kz-score__n { font-variant-numeric: tabular-nums; color: var(--muted); }
/* На телефоне ряды бегут как на компе (Мади 22.10 днём); первая карточка стартует с отступом слева, края без затухания.
   Касание ставит ряд на паузу (:hover / :focus-within выше) */
@media (max-width: 759px) {
  .marquee { padding-left: var(--gutter); -webkit-mask-image: none; mask-image: none; }
}
/* Без движения (настройка системы) — ряд листается пальцем, копия ряда скрыта */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); scrollbar-width: none; }
  .marquee::-webkit-scrollbar { display: none; }
  .marquee__track[aria-hidden="true"] { display: none; }
  .marquee .prompt-card { scroll-snap-align: start; }
}
main > .channel:last-of-type { padding-bottom: clamp(40px, 5vw, 64px); }
@media (max-width: 1099px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .tool-grid { grid-template-columns: 1fr; } }

.topic-head__title--long { max-width: 15em; font-size: clamp(36px, 5.4vw, 72px); line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.tools-page { padding-block: clamp(32px, 4vw, 48px) clamp(56px, 7vw, 104px); background: var(--band); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.filter a:hover { border-color: var(--ink); }
.filter a[aria-current] { border-color: var(--ink); background: var(--ink); color: #fff; }

/* «Реклама на сайте»: для кого пишем, живые цифры, форматы с ценами */
.adv-head__cta { margin-top: 28px; }
.adv-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
.adv-block { display: flex; flex-direction: column; gap: 20px; }
.adv-list li { position: relative; padding: 14px 0 14px 26px; border-top: 1px solid var(--line); font-size: 18px; line-height: 1.45; font-weight: 500; }
.adv-list li::before { content: ""; position: absolute; left: 2px; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--mint-ink); }
.adv-note { font-size: 14px; line-height: 1.5; color: var(--muted); }
.adv-note--big { font-size: 17px; }
.adv-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.adv-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 18px 20px; border-radius: var(--radius); background: var(--night); }
.adv-stats dd { margin: 0; font-size: clamp(32px, 3.4vw, 46px); line-height: 1; font-weight: 760; font-variation-settings: var(--display-axes); letter-spacing: -.03em; color: var(--mint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.adv-stats dt { font-size: 14px; line-height: 1.35; color: var(--on-night-muted); }
.adv-formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.adv-format { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 10px; background: var(--paper); }
.adv-format__name { font-size: 21px; line-height: 1.25; font-weight: 680; font-variation-settings: var(--display-axes); letter-spacing: -.01em; text-wrap: balance; }
.adv-format__text { font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.adv-format__price { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.adv-format__price--ask { font-weight: 600; color: var(--mint-ink); }
.adv-law { margin-top: 24px; }
.adv-cta { margin-top: 32px; }
@media (max-width: 1099px) { .adv-formats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) { .adv-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 559px) { .adv-formats { grid-template-columns: 1fr; } .adv-list li { font-size: 17px; } }

/* ---------- Фаза 3 AIqyn (21.10.2026): вход, профиль, комментарии — из тех же токенов и кнопок ---------- */
.icon { flex: none; }
/* Аккаунт: от 1280 px — в полосе шапки после языков; уже — справа в строке сверху и в шторке */
.account { display: none; align-items: center; gap: 8px; }
.account__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-night); border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--on-night); font-size: 14px; font-weight: 600; white-space: nowrap; transition: border-color .2s, color .2s, background .2s; }
.account__btn:hover { border-color: var(--mint); color: var(--mint); }
.account__btn--icon, .account__btn--panel { width: 40px; padding: 0; }
.account__btn--panel { border-color: var(--mint); background: var(--mint); color: var(--night); }
.account__btn--panel:hover { background: transparent; color: var(--mint); }
.account__label { display: none; }
.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu[open] summary { border-color: var(--mint); color: var(--mint); }
.account-menu__pop { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; display: flex; flex-direction: column; min-width: 230px; padding: 8px; border: 1px solid var(--line-night); border-radius: 12px; background: var(--night-2); color: var(--on-night); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); animation: pop-in .18s var(--ease); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px); } }
.account-menu__name { padding: 8px 12px 10px; border-bottom: 1px solid var(--line-night); margin-bottom: 6px; font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-menu__item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--on-night); font: 500 14.5px/1.3 var(--sans); text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.account-menu__item:hover { background: rgba(255, 255, 255, .06); color: var(--mint); }
.account-menu__item .icon { width: 16px; height: 16px; }
.account-menu__logout { margin-top: 4px; color: var(--on-night-muted); }
.drawer__account { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 1280px) { .account { display: inline-flex; } }
@media (min-width: 1100px) { .account__btn--panel { width: auto; padding: 0 16px; } .account__label { display: inline; } }

/* Формы: вход, код, профиль */
.auth { display: flex; flex-direction: column; gap: 32px; }
.auth__block { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 20px; border-top: 3px solid var(--mint); }
.auth__block--danger { border-top-color: var(--peach); }
.auth__title { font-size: 22px; line-height: 1.25; font-weight: 700; font-variation-settings: var(--display-axes); letter-spacing: -.01em; }
.auth__sub { font-size: 15px; font-weight: 600; }
.auth__form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; }
.auth__form .button { margin-top: 6px; }
.auth__links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.auth__link { display: inline-flex; align-items: center; min-height: 40px; padding: 0; border: 0; background: none; color: var(--mint-ink); font: 600 15px/1.4 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auth__link:hover { color: var(--ink); }
.auth__facts { display: grid; gap: 10px; margin: 0; }
.auth__facts dt { font-size: 14px; font-weight: 600; color: var(--muted); }
.auth__facts dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.auth__panel { align-self: flex-start; }
.field__label { font-size: 15px; font-weight: 600; }
.field__input { width: 100%; max-width: 440px; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--muted); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: 400 17px/1.4 var(--sans); }
.field__input:focus { border-color: var(--mint-ink); }
.field__input--area { max-width: none; min-height: 112px; resize: vertical; line-height: 1.55; }
.field__input--code { max-width: 220px; font: 600 26px/1 var(--mono); letter-spacing: .3em; text-align: center; }
.field__hint { max-width: 40em; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.notice { padding: 12px 16px; border-left: 3px solid var(--mint-ink); border-radius: 0 var(--radius) var(--radius) 0; background: var(--band); font-size: 15.5px; line-height: 1.5; }
.notice--error { border-left-color: var(--peach); }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--mint-ink); }
.tg-login { min-height: 40px; }

/* Комментарии под статьёй — в колонке текста */
.comments, .comment { scroll-margin-top: calc(var(--header-h) + 16px); }
.comments { display: flex; flex-direction: column; gap: 20px; margin-top: 56px; padding-top: 24px; border-top: 3px solid var(--mint); }
.comments__title { display: flex; align-items: baseline; gap: 10px; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; font-weight: 720; font-variation-settings: var(--display-axes); letter-spacing: -.02em; }
.comments__count { font-size: .6em; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.comments__login { align-self: flex-start; }
.comments__empty { font-size: 16px; color: var(--muted); }
.comment-form { display: flex; flex-direction: column; gap: 10px; }
.comment-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.comment-form__as { font-size: 14.5px; color: var(--muted); }
.comment-form__as a { color: var(--mint-ink); text-decoration: underline; text-underline-offset: 3px; }
.comment-list { display: flex; flex-direction: column; }
.comment { padding: 18px 0; border-top: 1px solid var(--line); }
.comment-list--replies { margin-top: 12px; padding-left: 20px; border-left: 2px solid var(--line); }
.comment-list--replies .comment { padding: 10px 0; border-top: 0; }
.comment__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.comment__name { font-size: 15.5px; font-weight: 700; }
.comment__badge { padding: 1px 8px; border-radius: 999px; background: var(--mint); color: var(--night); font-size: 12.5px; font-weight: 600; }
.comment__pending { padding: 1px 8px; border: 1px solid currentColor; border-radius: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.comment__text { margin-top: 6px; font-size: 16.5px; line-height: 1.6; overflow-wrap: anywhere; }
.comment__reply { margin-top: 6px; }
.comment__reply summary { display: inline-flex; align-items: center; min-height: 40px; color: var(--mint-ink); font-size: 14.5px; font-weight: 600; cursor: pointer; list-style: none; }
.comment__reply summary::-webkit-details-marker { display: none; }
.comment__reply[open] summary { color: var(--muted); }
.comment-form--reply { padding-bottom: 6px; }
.auth .load-more { margin: 0; }


/* Без фото — текстовая карточка, не узор (22.10.2026: заглушек на сайте нет; публиковать без обложки админка не даёт) */
.card--text { padding-top: 16px; border-top: 3px solid var(--mint-ink); }
.card--text .card__title { font-size: 23px; }
.row-story.row-story--text, .lead-side .row-story--text { grid-template-columns: 1fr; }
.lead-main--text { padding-top: 18px; border-top: 3px solid var(--mint-ink); }
.feed-item.feed-item--text { grid-template-columns: 1fr; }
.topic-feature--text { grid-template-columns: minmax(0, 1fr); max-width: 52em; padding-top: 24px; border-top: 3px solid var(--mint); }
article:has(> .story-nocover) .story-head { padding-bottom: clamp(40px, 5vw, 72px); }

/* Фильтр по аудиториям в рубрике (22.10.2026): ряд чипов «Всем / Школьникам / …» */
.aud-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.aud-filter__chip { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.3; color: inherit; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.aud-filter__chip--active { background: var(--night); border-color: var(--night); color: #fff; }
.topic-head .aud-filter__chip { border-color: var(--line-night); color: var(--on-night); }
.topic-head .aud-filter__chip:hover { border-color: var(--mint); color: var(--mint); }
.topic-head .aud-filter__chip--active, .topic-head .aud-filter__chip--active:hover { background: var(--mint); border-color: var(--mint); color: var(--night); }
