/* Backstage. Светлый журнал: бумага, чёрная краска, один красный акцент (цвет билета).
   Устройство главной — как у mysteryladys.ru, спокойная типографика — как у agbranding.ru. */
:root {
  --bg: #f6f2eb;
  --panel: #ede7dc;
  --line: #ddd5c7;
  --ink: #16130f;
  --muted: #6f675c;
  --spot: #c8372a;
  --spot-ink: #fff;
  --night: #16130f;
  --night-ink: #f4efe6;
  --head: "Playfair Display", Georgia, serif;
  --body: "Golos Text", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --gutter: clamp(16px, 3vw, 32px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15130f; --panel: #1f1c17; --line: #332e26; --ink: #f1ebe0; --muted: #a59c8e;
    --spot: #f0695a; --spot-ink: #15130f; --night: #0b0a08; --night-ink: #f1ebe0; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15130f; --panel: #1f1c17; --line: #332e26; --ink: #f1ebe0; --muted: #a59c8e;
  --spot: #f0695a; --spot-ink: #15130f; --night: #0b0a08; --night-ink: #f1ebe0; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--body); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.shell { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: 2px solid var(--spot); outline-offset: 3px; border-radius: 4px; }

/* Шапка и подвал */
.top { border-bottom: 1px solid var(--ink); position: sticky; top: 0; z-index: 10; background: var(--bg); }
.top__row { display: flex; align-items: center; gap: 32px; min-height: 60px; }
.top__nav { display: flex; gap: 22px; overflow-x: auto; font-size: .85rem; font-weight: 500; color: var(--muted); scrollbar-width: none; }
.top__nav::-webkit-scrollbar { display: none; }
.top__nav a { position: relative; white-space: nowrap; padding: 6px 0; transition: color .2s; }
.top__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--spot); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.top__nav a:hover, .top__nav a[aria-current] { color: var(--ink); }
.top__nav a:hover::after, .top__nav a[aria-current]::after { transform: scaleX(1); }
.logo { flex: none; font: 700 1.6rem/1 var(--head); letter-spacing: -.02em; }
.logo i { color: var(--spot); }
.logo--sm { display: inline-block; font-size: 1.3rem; margin-bottom: 8px; }
.foot { margin-top: 80px; background: var(--night); color: color-mix(in srgb, var(--night-ink) 65%, transparent); font-size: .9rem; }
.foot .logo { color: var(--night-ink); }
.foot__row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 40px; }
.foot__copy { align-self: flex-end; }

/* Общие */
.kicker { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--spot); }
.label { display: flex; justify-content: space-between; margin: 0 0 12px; font: 600 .72rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.title { margin: 0; font: 700 1.75rem/1.1 var(--head); letter-spacing: -.01em; }
.block { padding-top: 48px; }
.block__head { margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.section { padding-top: 40px; }
.section__title { margin: 0 0 18px; font: 700 1.6rem/1.15 var(--head); }
.section__lead { max-width: 640px; margin: -6px 0 24px; color: var(--muted); }
.tag { align-self: flex-start; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--spot); }
.crumbs { margin-bottom: 18px; font-size: .85rem; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.page__title { margin: 0 0 14px; max-width: 900px; font: 700 clamp(2rem, 4.5vw, 3rem)/1.08 var(--head); letter-spacing: -.015em; }

/* Бегущая строка */
.ticker { overflow: hidden; background: var(--night); color: var(--night-ink); font-size: .8rem; white-space: nowrap; }
.ticker__track { display: inline-flex; gap: 18px; padding: 9px 0; animation: ticker 110s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span { color: var(--spot); font-size: .5rem; align-self: center; }
.ticker a:hover { text-decoration: underline; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* Шапка главной */
.masthead { display: flex; justify-content: space-between; align-items: end; gap: 12px 40px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.masthead__title { margin: 0; font: italic 600 clamp(1.5rem, 3vw, 2.1rem)/1.1 var(--head); letter-spacing: -.01em; }
.masthead__lead { max-width: 440px; margin: 0; font-size: .88rem; color: var(--muted); }

/* Обложки */
.thumb { display: block; flex: none; width: 88px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--panel); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a:hover .thumb img { transform: scale(1.04); }
.thumb--tile { width: 100%; aspect-ratio: 4 / 3; margin-bottom: 10px; }
.thumb--lead { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius); margin-bottom: 14px; }

/* Первый экран: главная история, «Главное», совет и рубрики */
.cover { display: grid; grid-template-columns: 1.35fr 1fr .9fr; gap: 32px; padding-top: 28px; }
.cover__col { min-width: 0; }
.lead-story__title { display: block; margin: 6px 0 8px; font: 700 2.1rem/1.08 var(--head); letter-spacing: -.02em; text-wrap: balance; transition: color .2s; }
.lead-story:hover .lead-story__title { color: var(--spot); }
.lead-story__text { display: block; color: var(--muted); font-size: .92rem; }
.picks { margin: 0; padding: 0; list-style: none; }
.picks li + li { border-top: 1px solid var(--line); }
.picks a { display: flex; gap: 14px; padding: 12px 0; font: 600 1.1rem/1.22 var(--head); transition: color .2s; }
.picks a:hover { color: var(--spot); }
.picks .kicker { margin-bottom: 4px; font-family: var(--body); }
.picks__n { flex: none; width: 24px; font: italic 600 1.7rem/1 var(--head); color: var(--spot); }
.tip { margin-bottom: 28px; padding: 18px; border-radius: var(--radius); background: var(--night); color: var(--night-ink); }
.tip__label { margin: 0 0 8px; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--spot); }
.tip__text { margin: 0 0 14px; font: italic 600 1.08rem/1.35 var(--head); }
.tip__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .8rem; }
.tip__link { opacity: .75; }
.tip__link:hover { opacity: 1; }
.tip__next { padding: 6px 12px; border: 1px solid color-mix(in srgb, var(--night-ink) 30%, transparent); border-radius: 999px; background: transparent; color: inherit; font: inherit; cursor: pointer; transition: background .2s; }
.tip__next:hover { background: color-mix(in srgb, var(--night-ink) 12%, transparent); }
.cats { margin: 0; padding: 0; list-style: none; }
.cats li + li { border-top: 1px solid var(--line); }
.cats a { display: flex; justify-content: space-between; padding: 9px 0; font-size: .92rem; font-weight: 500; transition: color .2s; }
.cats a:hover { color: var(--spot); }
.cats small { color: var(--muted); font-weight: 400; }

/* Новое */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.tile .kicker { margin-bottom: 4px; }
.tile__title { display: block; font: 600 1.08rem/1.22 var(--head); transition: color .2s; }
.tile:hover .tile__title { color: var(--spot); }

/* Рубрики на главной */
.sections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 32px; }
.sect__title { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font: 700 1.3rem/1.15 var(--head); }
.sect__title a:hover { color: var(--spot); }
.sect__title small { font: 400 .8rem var(--body); color: var(--muted); }
.row { display: flex; gap: 14px; align-items: flex-start; }
.row__text { min-width: 0; }
.row__title { display: block; margin-top: 4px; font: 600 1.05rem/1.22 var(--head); transition: color .2s; }
.row:hover .row__title { color: var(--spot); }
.sect__more { margin: 12px 0 0; padding: 0; list-style: none; }
.sect__more li { padding: 8px 0; border-top: 1px solid var(--line); font-size: .88rem; line-height: 1.4; }
.sect__more a:hover { color: var(--spot); }

/* Digital против афиш */
.versus { margin: 0; padding: 0; list-style: none; }
.versus__row { display: grid; grid-template-columns: 56px 1fr 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.versus__num { font: italic 600 1.2rem/1 var(--head); color: var(--spot); }
.versus__pro { font-weight: 600; }
.versus__con { color: var(--muted); font-size: .92rem; }

/* Карточки «Читайте также» под статьёй */
.feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 20px; }
.card { display: flex; flex-direction: column; gap: 6px; }
.card__img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 6px; }
.card__title { font: 600 1.12rem/1.22 var(--head); transition: color .2s; }
.card:hover .card__title { color: var(--spot); }
.card__meta { font-size: .8rem; color: var(--muted); }

/* Списки рубрик */
.list { display: grid; border-top: 1px solid var(--ink); }
.item { display: grid; grid-template-columns: 150px 1fr; column-gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.item time { font-size: .82rem; color: var(--muted); }
.item__title { font: 600 1.12rem/1.25 var(--head); transition: color .2s; }
.item:hover .item__title { color: var(--spot); }
.item__lead { grid-column: 2; margin-top: 4px; font-size: .9rem; color: var(--muted); }
.item--thumb { grid-template-columns: 150px 1fr 120px; }
.item--thumb .thumb { grid-column: 3; grid-row: 1 / span 2; width: 120px; aspect-ratio: 4 / 3; }

/* Статья — устройство как у agbranding.ru: шапка, обложка, липкое оглавление, «Коротко», выноски, автор */
.read-progress { position: fixed; inset: 0 0 auto; z-index: 100; height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; background: var(--spot); transform: scaleX(0); transform-origin: 0 50%; }
.post { padding-top: 32px; }
.crumbs__here { color: var(--ink); }
.post__head { max-width: 900px; padding: 18px 0 36px; }
.post__title { margin: 0 0 18px; font: 700 clamp(2rem, 4.6vw, 3.2rem)/1.06 var(--head); letter-spacing: -.015em; text-wrap: balance; }
.post__lead { max-width: 680px; margin: 0 0 20px; font-size: 1.15rem; line-height: 1.6; }
.post__topics { margin: 0 0 10px; font-size: .7rem; font-weight: 600; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--spot); }
.post__topics a:hover { text-decoration: underline; }
.post__back { display: inline-block; font-size: .82rem; color: var(--muted); }
.post__back:hover { color: var(--spot); }
.post__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.post__author { color: var(--ink); font-weight: 600; }
.post__cover { margin: 0 auto; }
.post__cover img { width: 100%; aspect-ratio: 16 / 9; max-height: 620px; object-fit: cover; border-radius: var(--radius); }
.post__grid { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 56px; padding-top: 40px; }
.post__toc .toc { position: sticky; top: 96px; }
.toc summary { cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc nav { display: grid; gap: 12px; margin-top: 4px; }
.toc a { font-size: .86rem; line-height: 1.35; color: var(--muted); transition: color .2s; }
.toc a:hover, .toc a.is-active { color: var(--ink); }
.toc a.is-active { box-shadow: inset 2px 0 0 var(--spot); padding-left: 10px; margin-left: -12px; }
.brief { margin: 0 0 36px; padding: 22px 26px; border-radius: var(--radius); background: var(--panel); }
.brief ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.brief li { position: relative; padding-left: 18px; line-height: 1.55; }
.brief li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--spot); }
.prose .callout { margin: 1.6em 0; padding: 18px 22px; border: 0; border-radius: var(--radius); background: var(--night); color: var(--night-ink); font-size: 1rem; }
.prose .callout p { margin: 0; }
.callout__label { display: block; margin-bottom: 6px; font-size: .7rem; font-weight: 600; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; color: var(--spot); }
.author-box { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.author-box__row { display: flex; gap: 16px; align-items: center; }
.author-box__pic { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--night); color: var(--night-ink); font: italic 700 1.2rem var(--head); }
.author-box__name { margin: 0 0 4px; font-weight: 600; }
.author-box__role { margin: 0; font-size: .88rem; color: var(--muted); }
.post__more { margin-top: 40px; }
.post__more .item { grid-template-columns: 130px 1fr; }
.prose { font-size: 1.05rem; }
.prose h2 { margin: 2em 0 .6em; font: 700 1.6rem/1.2 var(--head); scroll-margin-top: 96px; }
.prose h3 { margin: 1.6em 0 .5em; font-size: 1.12rem; }
.prose a { color: var(--spot); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--spot); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { border-bottom-color: var(--ink); }

@media (max-width: 1000px) {
  .cover { grid-template-columns: 1fr 1fr; }
  .cover > .lead-story { grid-column: 1 / -1; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .sections, .feed { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .post__grid { grid-template-columns: 1fr; gap: 0; padding-top: 28px; }
  .post__toc .toc { position: static; margin-bottom: 28px; padding: 16px 18px; border-radius: var(--radius); background: var(--panel); }
  .toc a.is-active { box-shadow: none; padding-left: 0; margin-left: 0; }
}
@media (max-width: 640px) {
  .top__row { flex-wrap: wrap; gap: 4px 20px; padding-top: 10px; padding-bottom: 4px; }
  .top__nav { width: 100%; }
  .cover, .sections, .feed { grid-template-columns: 1fr; }
  .lead-story__title { font-size: 1.65rem; }
  .tiles { gap: 22px 14px; }
  .tile__title { font-size: .98rem; }
  .versus__row { grid-template-columns: 36px 1fr; }
  .versus__con { grid-column: 2; }
  .item { grid-template-columns: 1fr; }
  .item--thumb { grid-template-columns: 1fr 96px; }
  .item time, .item__title, .item__lead { grid-column: 1; }
  .item--thumb .thumb { grid-column: 2; grid-row: 1 / span 3; width: 96px; }
}
