/* «Хроника» — газета-путеводитель по сериалу «Айда!» */

@font-face { font-family: "PT Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/ptserif-italic-400-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/ptserif-italic-400-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; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/ptserif-normal-400-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/ptserif-normal-400-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; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/ptserif-normal-700-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/ptserif-normal-700-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; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/playfair-normal-700-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/playfair-normal-700-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; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 900; font-display: swap; src: url("assets/fonts/playfair-normal-700-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 900; font-display: swap; src: url("assets/fonts/playfair-normal-700-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; }

:root {
  --paper: #f1e9d6;
  --paper-2: #e8dec6;
  --ink: #1b1813;
  --ink-2: #4a4338;
  --muted: #7a7062;
  --red: #c8201b;
  --rule: #1b1813;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --display: "Playfair Display", "PT Serif", Georgia, serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #d9cfb8;
  color: var(--ink);
  font: 400 17px/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* лист газеты */
.paper {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 44px) 40px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .18 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--paper);
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 30px 80px rgba(60,45,20,.25);
}

/* служебная строка */
.strip {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font: 400 12px/1.4 var(--serif);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* шапка */
.masthead { text-align: center; padding: 22px 0 12px; border-bottom: 4px double var(--rule); }
.masthead__over, .masthead__under {
  margin: 0; font: italic 400 14px/1.4 var(--serif); color: var(--ink-2);
}
.masthead__title {
  display: flex; align-items: center; justify-content: center; gap: clamp(10px, 3vw, 28px);
  margin: 6px 0 8px;
  font: 900 clamp(46px, 13.5vw, 168px)/.9 var(--display);
  letter-spacing: -.02em;
}
.masthead__title img {
  width: clamp(70px, 19vw, 220px);
  transform: rotate(-6deg);
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.08));
}
.masthead__under { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; font-style: normal; text-transform: uppercase; font-size: 12px; letter-spacing: .12em; }

/* рубрики */
.rubrics {
  display: flex; gap: 0; overflow-x: auto;
  border-bottom: 1px solid var(--rule);
  scrollbar-width: none;
}
.rubrics::-webkit-scrollbar { display: none; }
.rubrics a {
  flex: none; padding: 12px 16px;
  font: 700 13px/1 var(--serif); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; border-right: 1px solid rgba(27,24,19,.25);
}
.rubrics a:first-child { padding-left: 0; }
.rubrics a:hover { color: var(--red); }

/* общие элементы */
.kicker {
  margin: 0 0 8px;
  font: 700 13px/1.2 var(--serif); letter-spacing: .14em; text-transform: uppercase; color: var(--red);
}
.cols { column-gap: 30px; column-rule: 1px solid rgba(27,24,19,.25); }
.cols p { margin: 0 0 .8em; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.dropcap {
  float: left; margin: .06em .1em 0 0;
  font: 900 3.6em/.8 var(--display); color: var(--red);
}

/* фото «газетная печать» */
.photo { position: relative; margin: 0; }
.photo img { width: 100%; filter: grayscale(1) contrast(1.18) brightness(1.04) sepia(.12); transition: filter .4s; }
.photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(27,24,19,.35) 32%, transparent 34%);
  background-size: 4px 4px; mix-blend-mode: multiply; opacity: .45;
}
.photo:hover img { filter: none; }
.photo figcaption {
  position: relative; z-index: 1;
  padding: 6px 0 0; font: italic 400 13px/1.4 var(--serif); color: var(--ink-2);
}
.photo:has(figcaption)::after { bottom: auto; height: calc(100% - 2.2em); }

/* передовица */
.front {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px;
  padding: 26px 0 30px; border-bottom: 4px double var(--rule);
}
.lead__title {
  margin: 0 0 12px;
  font: 900 clamp(40px, 7.4vw, 86px)/.95 var(--display); letter-spacing: -.015em;
}
.lead__deck { margin: 0 0 20px; font: italic 400 clamp(18px, 2vw, 22px)/1.45 var(--serif); color: var(--ink-2); }
.photo--lead { margin-bottom: 18px; }
.lead__text { columns: 2; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 16px; }
.link-more { font: 700 15px/1 var(--serif); text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 3px; }
.link-more:hover { color: var(--red); }

/* «билет»-кнопка */
.ticket {
  position: relative; display: inline-flex; flex-direction: column; gap: 4px;
  padding: 14px 30px 14px 26px;
  background: var(--red); color: #fff; text-decoration: none;
  border: 2px dashed rgba(255,255,255,.55); outline: 3px solid var(--red);
  transform: rotate(-1.2deg);
  transition: transform .2s, background-color .2s;
  box-shadow: 4px 5px 0 var(--ink);
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background: var(--paper); border-radius: 50%;
}
.ticket::before { left: -11px; } .ticket::after { right: -11px; }
.ticket__small { font: 700 11px/1 var(--serif); letter-spacing: .16em; text-transform: uppercase; opacity: .9; }
.ticket__big { font: 900 24px/1 var(--display); }
.ticket:hover { transform: rotate(0) translateY(-2px); background: #a8150f; }
.ticket--big .ticket__big { font-size: clamp(26px, 3.4vw, 34px); }

/* боковая колонка */
.side { display: grid; gap: 22px; align-content: start; }
.box { border-top: 3px solid var(--rule); padding-top: 10px; }
.box__title { margin: 0 0 10px; font: 900 22px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.summary { margin: 0; }
.summary div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dotted rgba(27,24,19,.45); font-size: 15px; }
.summary dt { color: var(--ink-2); }
.summary dd { margin: 0; font-weight: 700; text-align: right; }
.age { display: inline-block; padding: 1px 6px; border: 2px solid var(--red); color: var(--red); transform: rotate(-4deg); }
.next { margin: 12px 0 0; padding: 10px 12px; background: var(--paper-2); border-left: 4px solid var(--red); font: italic 400 15px/1.4 var(--serif); }
.next:empty { display: none; }
.box--poster img { filter: sepia(.15) contrast(1.05); border: 1px solid var(--rule); }
.box--quote { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 14px 0; text-align: center; }
.box--quote p { margin: 0 0 8px; font: italic 700 20px/1.35 var(--serif); }
.box--quote cite { font: 400 13px/1 var(--serif); font-style: normal; color: var(--ink-2); }

/* разделы */
.section { padding: 34px 0 30px; border-bottom: 4px double var(--rule); }
.section__title {
  display: flex; align-items: center; gap: 16px;
  margin: 0 0 10px;
  font: 900 clamp(30px, 5vw, 50px)/1 var(--display); text-transform: uppercase; letter-spacing: .01em;
}
.section__title::before, .section__title::after { content: ""; flex: 1; height: 3px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section__title span { flex: none; max-width: 100%; text-align: center; }
.section__lead { margin: 0 auto 24px; max-width: 46em; text-align: center; font-style: italic; color: var(--ink-2); }

/* телепрограмма */
.tv { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 40px; column-rule: 1px solid rgba(27,24,19,.25); }
.tv li {
  break-inside: avoid;
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "date st" "ep st";
  gap: 2px 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px dotted rgba(27,24,19,.45);
}
.tv time { grid-area: date; font: 400 13px/1.2 var(--serif); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.tv__ep { grid-area: ep; font: 900 26px/1.1 var(--display); }
.tv__st { grid-area: st; }
.tv__st a, .tv__st span {
  display: inline-block; padding: 4px 10px;
  font: 700 12px/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  border: 2px solid currentColor; transform: rotate(-5deg);
}
.tv li.is-out .tv__st a { color: var(--red); }
.tv li.is-out .tv__st a:hover { background: var(--red); color: #fff; }
.tv li.is-next { background: linear-gradient(90deg, rgba(200,32,27,.08), transparent); }
.tv li.is-next .tv__st span { color: var(--ink); }
.tv li.is-soon .tv__st span { color: var(--muted); border-style: dashed; }

/* ориентировки */
.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.card { border: 1px solid var(--rule); padding: 10px 10px 14px; background: rgba(255,255,255,.18); }
.card .photo { margin-bottom: 10px; border: 1px solid var(--rule); }
.card__tag { margin: 0; font: 700 11px/1 var(--serif); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.card h3 { margin: 4px 0 0; font: 900 26px/1.05 var(--display); }
.card__actor { margin: 2px 0 8px; font: italic 400 14px/1.3 var(--serif); color: var(--ink-2); }
.card__note { margin: 0; font-size: 14px; line-height: 1.45; }
.also { margin: 22px 0 0; text-align: center; font-size: 15px; color: var(--ink-2); }

/* архив */
.archive__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 30px; }
.archive__text { columns: 2; }
.archive__photos { display: grid; gap: 16px; align-content: start; }
.stamp-note {
  padding: 12px 14px; border: 2px solid var(--red); color: var(--ink);
  font-size: 15px; line-height: 1.45; transform: rotate(-.8deg);
  background: rgba(200,32,27,.05);
}
.stamp-note b { color: var(--red); text-transform: uppercase; letter-spacing: .08em; }

/* заметки */
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.note { padding: 4px 22px; border-left: 1px solid rgba(27,24,19,.3); }
.note:first-child { border-left: 0; padding-left: 0; }
.note h3 { margin: 0 0 6px; font: 900 22px/1.15 var(--display); }
.note p { margin: 0; font-size: 15.5px; }

/* вопросы */
.qa { max-width: 820px; margin: 0 auto; }
.qa details { border-bottom: 1px dotted rgba(27,24,19,.5); }
.qa summary {
  position: relative; padding: 14px 36px 14px 0; cursor: pointer; list-style: none;
  font: 700 19px/1.3 var(--serif);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font: 900 26px/1 var(--display); color: var(--red); transition: transform .2s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { margin: 0 0 16px; color: var(--ink-2); }
.qa a { color: var(--red); }

/* где смотреть */
.watch__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 34px; align-items: center; }
.watch__title { margin: 0 0 8px; font: 900 clamp(28px, 4vw, 42px)/1.05 var(--display); }
.watch__main p { margin: 0 0 22px; }
.apps { margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--rule); }
.apps li { padding: 12px 0; border-bottom: 1px dotted rgba(27,24,19,.5); font-weight: 700; }
.apps a { text-decoration: none; }
.apps a::after { content: " →"; color: var(--red); }
.apps a:hover { color: var(--red); }
.apps span { font-weight: 400; font-style: italic; color: var(--ink-2); }

/* подвал */
.footer { padding: 26px 0 0; text-align: center; font-size: 13px; color: var(--ink-2); }
.footer__logo { margin: 0 0 6px; font: 900 34px/1 var(--display); color: var(--ink); }

/* появление */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* адаптив */
@media (max-width: 1040px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .front { grid-template-columns: 1fr; }
  .side { grid-template-columns: 1fr 1fr; }
  .box--quote { grid-column: 1 / -1; }
  .archive__grid, .watch__grid { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr; }
  .note { border-left: 0; border-top: 1px solid rgba(27,24,19,.3); padding: 14px 0; }
  .note:first-child { border-top: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .lead__text, .archive__text, .tv { columns: 1; }
  .side { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card h3 { font-size: 22px; }
  .strip span:last-child { display: none; }
  .ticket { width: 100%; text-align: center; align-items: center; }
  .box--poster img { max-width: 260px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ===== призывы в Telegram ===== */
.tg { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; vertical-align: -.18em; }

/* «молния» над шапкой */
.flash {
  display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap;
  margin: 10px 0 0; padding: 12px 16px;
  background: var(--red); color: #fff; text-decoration: none;
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.flash:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.flash__tag { font: 700 12px/1 var(--serif); letter-spacing: .16em; text-transform: uppercase; padding: 5px 8px; background: #fff; color: var(--red); }
.flash__text { flex: 1 1 260px; font: 700 clamp(16px, 1.9vw, 20px)/1.25 var(--serif); }
.flash__go { display: inline-flex; align-items: center; gap: 8px; font: 900 18px/1 var(--display); white-space: nowrap; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }

/* кнопки под заголовком */
.cta-row--top { margin: 0 0 22px; }
.ticket--tg { animation: ring 2.4s ease-out infinite; }
.ticket--tg .ticket__small { display: inline-flex; align-items: center; gap: 6px; }
@keyframes ring { 0% { box-shadow: 4px 5px 0 var(--ink), 0 0 0 0 rgba(200,32,27,.45); } 70% { box-shadow: 4px 5px 0 var(--ink), 0 0 0 16px rgba(200,32,27,0); } 100% { box-shadow: 4px 5px 0 var(--ink), 0 0 0 0 rgba(200,32,27,0); } }

/* фото — кнопка */
.photo-link { display: block; text-decoration: none; color: inherit; }
.photo-link .photo { cursor: pointer; }
.play {
  position: absolute; z-index: 2; left: 50%; top: calc(50% - 1.1em);
  width: clamp(72px, 11vw, 112px); aspect-ratio: 1; display: grid; place-items: center;
  transform: translate(-50%, -50%);
  background: var(--red); color: #fff; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 6px 24px rgba(0,0,0,.35);
  font-size: clamp(26px, 4vw, 40px); transition: transform .2s;
}
.play span { margin-left: 8%; }
.photo-link:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.photo-link:hover img { filter: none; }

/* кнопка в «Сводке» */
.btn-side {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 12px; padding: 13px 14px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font: 700 15px/1 var(--serif); letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--red); transition: background-color .2s;
}
.btn-side:hover { background: var(--red); color: #fff; box-shadow: 3px 3px 0 var(--ink); }

/* закреплённая кнопка */
.dock {
  position: fixed; z-index: 50; right: 22px; bottom: 22px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: var(--red); color: #fff; text-decoration: none;
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transform: translateY(0); transition: transform .3s, opacity .3s;
}
.dock .tg { width: 28px; height: 28px; }
.dock__text { display: grid; gap: 2px; line-height: 1.1; }
.dock__text b { font: 900 19px/1.1 var(--display); }
.dock__text small { font: 400 12px/1.2 var(--serif); letter-spacing: .04em; opacity: .9; }
.dock__go { font: 900 22px/1 var(--display); animation: nudge 1.6s ease-in-out infinite; }
.dock:hover { background: #a8150f; }
.dock.is-hidden { transform: translateY(160%); opacity: 0; pointer-events: none; }

@media (max-width: 640px) {
  .flash { padding: 10px 12px; }
  .flash__text { flex-basis: 100%; }
  .dock { left: 10px; right: 10px; bottom: 10px; justify-content: center; padding: 12px 14px; }
  .paper { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .flash__go, .dock__go, .ticket--tg { animation: none; }
}
