/* Раздел «Статьи»: лёгкий редакционный лист в палитре витрины. Без плакатных эффектов — это текст для чтения.
   Палитра: кремовый #F4F0EA, красный #C81814, хвойный #164234, чернила #1B1A18. Шрифты: Jost — заголовки, Oswald — подписи, Manrope — текст. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/static/fonts/manrope-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/static/fonts/manrope-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/static/fonts/manrope-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/static/fonts/jost-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/static/fonts/jost-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/static/fonts/jost-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/static/fonts/oswald-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/static/fonts/oswald-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }

:root { --red: #C81814; --red-deep: #A51210; --cream: #F4F0EA; --ink: #1B1A18; --green: #164234; --champ: #EAD9C5; --line: rgba(27, 26, 24, 0.16);
  --disp: "Jost", "Manrope", system-ui, sans-serif; --cond: "Oswald", "Manrope", system-ui, sans-serif; --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; }
html[data-theme="pozdrav"] { --red: #CB3027; --red-deep: #AB241C; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 500 18px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: break-word; }
a { color: var(--red-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
a:focus-visible, .tbl:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 5; padding: 10px 16px; background: var(--ink); color: #FFFFFF; text-decoration: none; }
.skip:focus { top: 12px; }
.in { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* шапка и подвал */
.top { background: var(--red); color: var(--cream); }
.top .in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; max-width: 9.5em; color: var(--cream); text-decoration: none;
  font-family: var(--cond); font-weight: 600; font-size: 17px; line-height: 1.15; letter-spacing: 0.08em; text-transform: uppercase; }
.brand:hover { color: #FFFFFF; }
.top a:focus-visible { outline-color: #FFFFFF; }
/* длинная подпись кнопки переносится на вторую строку, а не уезжает за край узкого экрана (замечание Контроля 26.11) */
.btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; max-width: 100%; min-height: 52px; padding: 10px 24px; border-radius: 2px;
  background: var(--red); color: #FFFFFF; text-decoration: none; white-space: normal; text-align: center; overflow-wrap: anywhere; touch-action: manipulation;
  font-family: var(--cond); font-weight: 500; font-size: 17px; line-height: 1.25; letter-spacing: 0.08em; text-transform: uppercase; }
.btn:hover { background: var(--red-deep); color: #FFFFFF; }
.btn.sm { min-height: 44px; padding: 6px 14px; font-size: 14px; background: var(--ink); }
.btn.sm:hover { background: #000000; }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.line:hover { background: rgba(27, 26, 24, 0.06); color: var(--ink); }
.foot { margin-top: 72px; padding: 28px 0 40px; border-top: 1.5px solid var(--ink); }
@media (max-width: 1023px) { .foot { padding-bottom: 100px; } }   /* запас под маскот помощницы: он всегда справа внизу */
.foot .in { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none;
  font-family: var(--cond); font-weight: 500; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }
.foot a:hover { color: var(--red); }
.draft { max-width: 1040px; margin: 16px auto 0; padding: 12px 20px; background: var(--champ); font-size: 15px; line-height: 1.5; }

/* хлебные крошки */
.crumbs { max-width: 720px; margin: 0 auto; padding: 16px 20px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px;
  font-family: var(--cond); font-weight: 500; font-size: 14px; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(27, 26, 24, 0.72); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.crumbs a:hover { color: var(--red); }

/* текст статьи: строка до 680 px */
article, .wide { max-width: 720px; margin: 0 auto; padding: 8px 20px 0; }
h1 { margin: 12px 0 16px; font-family: var(--disp); font-weight: 900; font-size: clamp(30px, 7.4vw, 46px); line-height: 1.04; letter-spacing: -0.012em; text-wrap: balance; }
h2 { margin: 48px 0 14px; font-family: var(--disp); font-weight: 800; font-size: clamp(24px, 5.6vw, 30px); line-height: 1.12; letter-spacing: -0.008em; text-wrap: balance; }
h3 { margin: 30px 0 8px; font-family: var(--sans); font-weight: 700; font-size: 20px; line-height: 1.35; }
p, ul, ol { margin: 0 0 18px; }
ul, ol { padding-left: 24px; }
li { margin: 0 0 8px; }
li::marker { color: var(--red); font-weight: 700; }
strong, b { font-weight: 700; }
.meta { margin: 0 0 20px; font-family: var(--cond); font-weight: 500; font-size: 14px; line-height: 1.5; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(27, 26, 24, 0.72); }
.answer { margin: 0 0 28px; padding: 18px 20px; background: #FFFDF9; box-shadow: inset 4px 0 0 var(--red); font-size: 19px; line-height: 1.6; font-weight: 600; }
.toc { margin: 0 0 32px; padding: 20px 20px 8px; border: 1.5px solid var(--line); border-radius: 4px; }
.toc p { margin: 0 0 8px; font-family: var(--cond); font-weight: 500; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(27, 26, 24, 0.72); }
.toc ol { margin-bottom: 12px; }
.toc li { margin: 0; padding: 0; line-height: 1.45; }
.toc li a { display: block; padding: 9px 0; min-height: 44px; }   /* вся строка содержания нажимается пальцем */
figure { margin: 28px 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 4px; background: var(--champ); }
figcaption { margin-top: 8px; font-size: 15px; line-height: 1.5; color: rgba(27, 26, 24, 0.72); }
.note { margin: 24px 0; padding: 16px 20px; background: var(--green); color: var(--cream); border-radius: 2px; font-size: 17px; line-height: 1.55; }
.note a { color: #FFFFFF; }
/* таблица прокручивается внутри своей рамки, страница — нет */
.tbl { margin: 24px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1.5px solid var(--line); border-radius: 4px; background: #FFFDF9; }
table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
caption { caption-side: top; padding: 14px 16px 10px; text-align: left; font-family: var(--cond); font-weight: 500; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(27, 26, 24, 0.72); }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1.5px solid var(--line); }
th { background: var(--champ); font-weight: 700; }
.cta-row { margin: 28px 0; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-card { margin: 44px 0 8px; padding: 26px 22px; background: var(--champ); border-radius: 4px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cta-t { margin: 0; font-family: var(--disp); font-weight: 900; font-size: 26px; line-height: 1.08; text-transform: uppercase; letter-spacing: -0.008em; }
.cta-n { margin: 0 0 6px; font-family: var(--cond); font-weight: 500; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(27, 26, 24, 0.8); }
.sources ul, .related ul { padding-left: 20px; }
.sources li, .related li { margin: 0; padding: 9px 0; line-height: 1.45; }

/* список статей */
.list { list-style: none; margin: 0; padding: 0; }
.list li { margin: 0; padding: 20px 0 12px; border-top: 1.5px solid var(--line); }
.list h3 { margin: 0 0 8px; font-family: var(--disp); font-weight: 800; font-size: 22px; line-height: 1.2; }
.list h3 a { color: var(--ink); text-decoration: none; }
.list h3 a:hover { color: var(--red); text-decoration: underline; }
.list p { margin: 0 0 8px; font-size: 17px; }
.list .meta { margin: 0; }
.tag { display: inline-block; margin-left: 8px; padding: 3px 8px; background: var(--champ); border-radius: 2px; vertical-align: middle;
  font-family: var(--cond); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

/* узкий телефон (до 390 px): длинное слово «Поздравление» в названии и кнопка в шапке помещаются без вылета за экран;
   на самых узких экранах подпись кнопки переносится на вторую строку */
@media (max-width: 389px) {
  .top .in { gap: 12px; }
  .brand { flex: 0 0 auto; max-width: 8.6em; font-size: 15px; letter-spacing: 0.06em; }
  .top .btn.sm { flex: 0 1 auto; min-width: 0; padding: 4px 10px; font-size: 13px; line-height: 1.2; letter-spacing: 0.06em; white-space: normal; text-align: center; }
}

@media (min-width: 760px) {
  .in, .draft { padding-left: 32px; padding-right: 32px; }
  .top .in { min-height: 76px; }
  .btn.sm { padding: 0 16px; font-size: 15px; }
  .brand { font-size: 24px; max-width: none; }
  article, .wide { padding-top: 16px; }
  .answer { font-size: 20px; padding: 22px 26px; }
  .cta-card { padding: 34px 32px; }
  .cta-t { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* зарубежные сайты: строка продавца под ссылками подвала */
.foot .seller { display: block; margin: 14px auto 0; font-size: 13px; line-height: 20px; color: #5b564e; overflow-wrap: anywhere; }
/* ---------- карточки статей с обложками, картинки и плеер трейлера в статье (Ник 26.11) ---------- */
.list.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 24px; }
.list.cards li { display: flex; flex-direction: column; min-width: 0; padding: 0; border-top: 0; background: #FFFDF9; border: 1.5px solid var(--line); border-radius: 6px; overflow: hidden; }
.list.cards .cover { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--champ); }
.list.cards .cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.list.cards .card-t { padding: 16px 18px 14px; min-width: 0; }
.list.cards h3 { font-size: 20px; overflow-wrap: anywhere; }
.list.cards p { font-size: 16px; }
figure.art-img { max-width: 520px; margin: 32px auto; }
figure.art-img img { border-radius: 6px; }
.vrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin: 28px 0 32px; }
.vplayer { flex: 0 1 300px; max-width: 300px; min-width: 0; margin: 0; }
.vplayer video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 10px; background: #1B1A18; object-fit: cover; }
.vplayer figcaption { text-align: center; }
@media (max-width: 700px) { .vrow.two .vplayer { flex-basis: calc(50% - 10px); } .list.cards { grid-template-columns: 1fr; } figure.art-img { max-width: 100%; } }
/* ---------- просмотры и «Полезно» в статье и на карточках (Ник 26.11) ---------- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.st-ic { width: 18px; height: 18px; flex: none; }
.art-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: -6px 0 22px; font-family: var(--cond); font-weight: 500; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(27, 26, 24, 0.72); }
.art-stats[data-where="bottom"] { margin: 36px 0 8px; padding-top: 20px; border-top: 1.5px solid var(--line); }
.st-views { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; }
.st-views b, .st-like b { font-weight: 600; font-variant-numeric: tabular-nums; }
.st-like { display: inline-flex; align-items: center; gap: 7px; box-sizing: border-box; max-width: 100%; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--red); border-radius: 999px;
  background: #FFFDF9; color: var(--red); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; touch-action: manipulation;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease; }
.st-like:hover { background: #FBEDEA; }
.st-like:focus-visible { outline: 3px solid #D99B26; outline-offset: 3px; }
.st-like.on { background: var(--red); color: #FFFFFF; }
.st-like.on .heart path { fill: currentColor; }
.st-like.pop { transform: scale(1.06); }
.card-stats { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 0; font-family: var(--cond); font-weight: 500; font-size: 14px; letter-spacing: 0.06em; color: rgba(27, 26, 24, 0.72); }
.card-stats span { display: inline-flex; align-items: center; gap: 6px; }
.list.cards .card-stats { font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .st-like { transition: none; } .st-like.pop { transform: none; } }
