/* mishas.tips/distributors — фирменный стиль MISHAS CONTENT
   Inter (заголовки CAPS 500, подзаголовки CAPS 800, короткие тексты CAPS 400, длинные — обычный регистр)
   Playfair Display SemiBold Italic — акцентные фразы в скобках.
   Красный #E71812 — фон кнопок/секций и крупный текст; мелкий текст на светлом фоне — тёмный (AA). */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-cyrillic-wght-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin-wght-normal.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: italic; font-weight: 600; font-display: swap; src: url('fonts/playfair-display-cyrillic-600-italic.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: italic; font-weight: 600; font-display: swap; src: url('fonts/playfair-display-latin-600-italic.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 {
  --red: #E71812;
  --ink: #1D1D1E;
  --bg: #F7F7F7;
  --surface: #FFFFFF;
  --text: #1D1D1E;
  --muted: #5E5E62;
  --line: rgba(29, 29, 30, .16);
  --line-strong: #1D1D1E;
  --on-red: #1D1D1E;
  --footer-bg: #1D1D1E;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-accent: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --track: -0.02em;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { font-weight: 500; text-transform: uppercase; letter-spacing: var(--track); line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

/* короткие тексты: CAPS, мелко */
.meta, .metabar, .crumbs, .tag, .card-num, .card-facts, .card-more, .meta-row, dt, .stat-label, .btn, .side-title, .ctable thead th, .note, .disclosure {
  text-transform: uppercase; letter-spacing: var(--track); line-height: 1.15; font-weight: 400;
}
.meta { font-size: 12px; color: var(--muted); }

/* акцент — Playfair в скобках */
.accent { font-family: var(--font-accent); font-style: italic; font-weight: 600; text-transform: none; letter-spacing: 0; }
.kicker { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; color: var(--red); margin-bottom: 14px; }
.dot { color: var(--red); }
.ico { font-size: .8em; }
.stars { text-align: center; color: var(--red); font-size: 28px; letter-spacing: .4em; padding-left: .4em; line-height: 1; margin: 8px 0; }

/* мета-строка 2026 — MISHAS.TIPS — 2026 */
.metabar { font-size: 11px; border-bottom: 1px solid var(--line); background: var(--surface); }
.metabar-in { display: flex; justify-content: space-between; align-items: center; height: 28px; }
.metabar--foot { background: transparent; border-bottom: 0; border-top: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .72); }

/* шапка */
.tm { position: relative; z-index: 50; font-family: var(--font); -webkit-font-smoothing: antialiased; }
.tm-list, .tm-sub, .tm-soc, .tm-mlist, .tm-msub { list-style: none; margin: 0; padding: 0; }
.tm a, .tm button { color: #1D1D1E; text-decoration: none; }
.tm button { font-family: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
.tm-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 80px; padding: 0 45px 0 40px; background: rgba(255, 255, 255, .8); }
.tm-logo { display: inline-flex; justify-self: start; width: 150px; color: #1D1D1E; }
.tm-logo-svg { width: 150px; height: auto; display: block; }
.tm-list { display: flex; align-items: center; height: 80px; }
.tm-item { position: relative; display: flex; align-items: center; height: 80px; margin: 0 15px; }
.tm-link, .tm-mlink { font-size: 15px; font-weight: 500; line-height: 1.2; text-transform: uppercase; letter-spacing: .6px; white-space: nowrap; transition: color .2s; }
.tm-link.is-active, .tm-item.is-open > .tm-link, .tm-sublink.is-active { color: #E71812; }
.tm-sub { display: none; position: absolute; top: 75px; left: 50%; width: 200px; transform: translateX(-50%); padding: 13px 20px; background: #fff; text-align: left; }
.tm-item.is-open > .tm-sub { display: block; }
.tm-sublink { display: block; padding: 7px 0; font-size: 13px; font-weight: 500; line-height: 1.2; text-transform: uppercase; letter-spacing: .52px; transition: color .2s; }
@media (hover: hover) { .tm-link:hover, .tm-sublink:hover, .tm-mlink:hover { color: #E71812; } }
.tm a:focus-visible, .tm button:focus-visible { outline: 2px solid #E71812; outline-offset: 3px; color: #E71812; }
.tm-soc { display: flex; justify-self: end; gap: 10px; }
.tm-soc a { display: block; width: 30px; height: 30px; border-radius: 50%; transition: opacity .2s; }
.tm-soc svg { display: block; }
@media (hover: hover) { .tm-soc a:hover { opacity: .8; } }
.tm-mbar, .tm-panel { display: none; }
@media (max-width: 980px) {
  .tm-bar { display: none; }
  .tm-mbar { display: flex; align-items: center; justify-content: flex-end; height: 64px; padding: 0 20px; background: #1D1D1E; }
  .tm-burger { position: relative; width: 28px; height: 20px; }
  .tm-burger span { position: absolute; left: 0; width: 100%; height: 3px; background: #fff; transition: transform .25s, opacity .25s, top .25s; }
  .tm-burger span:nth-child(1) { top: 0; }
  .tm-burger span:nth-child(2), .tm-burger span:nth-child(3) { top: 8px; }
  .tm-burger span:nth-child(4) { top: 16px; }
  .tm.is-menu-open .tm-burger span:nth-child(1), .tm.is-menu-open .tm-burger span:nth-child(4) { top: 8px; width: 0; left: 50%; opacity: 0; }
  .tm.is-menu-open .tm-burger span:nth-child(2) { transform: rotate(45deg); }
  .tm.is-menu-open .tm-burger span:nth-child(3) { transform: rotate(-45deg); }
  .tm-burger:focus-visible { outline-color: #fff; }
  .tm-panel:not([hidden]) { display: block; position: absolute; top: 64px; left: 0; right: 0; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; padding: 40px 10px 36px; background: #fff; text-align: center; }
  .tm-logo--panel { display: block; width: 150px; margin: 0 auto 42px; }
  .tm-mitem { display: flex; flex-direction: column; align-items: center; }
  .tm-msub { align-self: stretch; }
  .tm-mlink { display: inline-block; padding: 10px 12px; }
  .tm-mitem.is-open > .tm-mlink { color: #E71812; }
  .tm-msub { padding: 2px 0 14px; margin-bottom: 12px; border-bottom: 1px solid rgba(29, 29, 30, .16); }
  .tm-msub .tm-sublink { display: inline-block; padding: 9px 12px; }
  .tm-soc--panel { justify-content: center; justify-self: center; gap: 14px; margin-top: 34px; }
}

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; font-size: 13px; font-weight: 500; text-decoration: none; border: 1px solid var(--line-strong); background: transparent; color: var(--text); transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--text); color: var(--bg); }
.btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--ghost { border-color: var(--line); }
.btn svg { flex: none; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* hero */
.hero { padding: 56px 0 56px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(40px, 7.4vw, 104px); max-width: 15ch; overflow-wrap: anywhere; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 64px; margin-top: 40px; align-items: end; }
.lead { font-size: 18px; line-height: 1.55; max-width: 62ch; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.stats li { padding: 14px 12px 0 0; display: grid; gap: 6px; }
.stat-num { font-size: clamp(36px, 4.4vw, 64px); font-weight: 500; letter-spacing: var(--track); line-height: 1; }
.stat-label { font-size: 12px; color: var(--muted); }

/* заголовки секций */
.sec-head { margin-bottom: 28px; }
.sec-head .kicker { margin-bottom: 8px; }
.sec-head h2, .similar h2 { font-size: clamp(32px, 4.6vw, 64px); }

/* подборки: крупная красная секция с чёрным текстом */
.collections { padding: 64px 0; }
.collections--red { background: var(--red); color: var(--on-red); }
.collections--red .kicker { color: var(--on-red); }
.coll-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.coll { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 20px; align-items: center; gap: 12px; min-height: 64px; padding: 14px 4px; border-top: 1px solid currentColor; text-decoration: none; color: inherit; transition: background .15s, color .15s, padding .15s; }
.coll-list li:nth-last-child(-n+2) .coll { border-bottom: 1px solid currentColor; }
.coll-list li:nth-last-child(2):nth-child(even) .coll { border-bottom: 0; }
.coll-num { font-size: 12px; letter-spacing: var(--track); }
/* #1D1D1E на красном — 3.6:1: мелкий текст делаем крупным/жирным (AA для крупного текста) */
.collections--red .coll-num { font-size: 19px; font-weight: 700; }
.coll-name { font-size: clamp(19px, 1.6vw, 20px); font-weight: 800; text-transform: uppercase; letter-spacing: var(--track); line-height: 1.15; }
.coll-count { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: var(--track); font-variant-numeric: tabular-nums; }
.coll-arrow { font-size: 12px; text-align: right; }
.collections--red .coll:hover { background: var(--on-red); color: #fff; padding-left: 14px; padding-right: 14px; }
.coll-list--plain { color: var(--text); }
.coll-list--plain .coll { border-color: var(--line); }
.coll-list--plain .coll-num { color: var(--muted); }
.coll-list--plain .coll:hover { background: var(--surface); }
.coll-list--plain .coll:hover .coll-arrow { color: var(--red); }

/* список */
.all { padding: 64px 0; }
.all-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.all-head .sec-head { margin: 0; }
.search { display: flex; align-items: center; gap: 16px; flex: 1 1 340px; max-width: 520px; }
.search input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; color: var(--text); font: inherit; font-size: 16px; border-radius: 0; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-bottom: 2px solid var(--red); }
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.card { background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card[hidden] { display: none; }
.card-link { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 200px; padding: 18px 20px 20px; color: var(--text); text-decoration: none; transition: background .15s; }
.card-link::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.card-link:hover::before { transform: scaleX(1); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 22px; }
.card-num { font-size: 11px; color: var(--muted); }
.card-name { font-size: 22px; font-weight: 500; text-transform: uppercase; letter-spacing: var(--track); line-height: 1.1; overflow-wrap: break-word; margin-top: 6px; }
.card-type { font-size: 18px; line-height: 1.1; }
.card-facts { font-size: 12px; color: var(--muted); }
.card-dsp { font-size: 14px; line-height: 1.4; }
.card-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.card-more { margin-top: auto; padding-top: 10px; font-size: 12px; font-weight: 500; }
.card-more .ico { color: var(--red); }
.tag { font-size: 11px; padding: 4px 7px; border: 1px solid var(--line); max-width: 100%; overflow-wrap: anywhere; }
.tag--partner { background: var(--red); border-color: var(--red); color: #fff; }

/* хлебные крошки */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 24px 0 32px; font-size: 12px; color: var(--muted); }
.crumbs li + li::before { content: '—'; margin-right: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--red); }
.crumbs [aria-current] { color: var(--text); }

/* шапка страницы */
.page-head { padding: 0 0 48px; border-bottom: 1px solid var(--line-strong); margin-bottom: 40px; }
.page-head h1 { font-size: clamp(40px, 7.4vw, 104px); overflow-wrap: anywhere; hyphens: manual; }
.title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; }
.title-row h1 { min-width: 0; overflow-wrap: anywhere; }
.title-accent { font-size: clamp(26px, 3.4vw, 48px); color: var(--red); line-height: 1.1; }
.page-head--coll h1 { font-size: clamp(40px, 7.4vw, 104px); }
.page-meta { margin: 20px 0 0; }
.meta-row { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 0; font-size: 12px; }
.meta-row li { padding-right: 14px; margin-right: 14px; border-right: 1px solid var(--line); }
.meta-row li:last-child { border-right: 0; }
.page-head .lead { margin-top: 22px; }
.note { margin-top: 14px; font-size: 12px; color: var(--muted); }
.note a { color: var(--text); }
.disclosure { margin-top: 16px; font-size: 12px; color: var(--muted); max-width: 70ch; }

/* карточка */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.content { display: grid; gap: 48px; min-width: 0; }
.group-head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); }
.group-num { font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; color: var(--red); letter-spacing: var(--track); line-height: 1.1; }
.group h2 { font-size: clamp(20px, 2.2vw, 28px); }
.group dl { margin: 0; }
.row { display: grid; grid-template-columns: minmax(150px, 36%) minmax(0, 1fr); gap: 6px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
dt { font-size: 12px; color: var(--muted); padding-top: 3px; }
dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 14px; padding: 3px 9px; border: 1px solid var(--line); background: var(--surface); }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.pill--yes::before { content: '●'; color: var(--red); font-size: 11px; }
.pill--no { color: var(--muted); font-weight: 400; }
.pill--no::before { content: '○'; font-size: 11px; }
.pill--service { color: var(--muted); font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: 0.02em; gap: 2px; cursor: help; }
.fn-mark { font-family: var(--font-accent); font-style: italic; font-weight: 600; letter-spacing: 0; text-transform: none; }
.group-notes { list-style: none; margin: 0; padding: 12px 0 0; display: grid; gap: 4px; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 70ch; }
.group-notes .fn-mark { color: var(--text); }
.val { line-height: 1.5; }
.val a { overflow-wrap: anywhere; }
.prose { padding-top: 16px; max-width: 70ch; }
.prose h3 { font-size: 15px; font-weight: 800; margin: 22px 0 8px; }
.prose p + p, .prose ul { margin-top: 10px; }
.prose ul { padding-left: 20px; }
.empty > p { padding-top: 16px; max-width: 70ch; }
.faq .kicker { margin-bottom: 8px; }
.faq h2 { font-size: clamp(22px, 2.8vw, 36px); margin-bottom: 12px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 17px; font-weight: 500; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-size: 22px; line-height: 1; color: var(--red); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 18px; max-width: 70ch; }
.side { display: grid; gap: 28px; position: sticky; top: 24px; }
.side-box { border-top: 1px solid var(--line-strong); padding-top: 14px; }
.side-kicker { font-size: 18px; margin-bottom: 4px; }
.side-title { font-size: 12px; font-weight: 500; margin-bottom: 12px; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 15px; }
.side-list a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.side-list .ico { color: var(--red); margin-right: 4px; }
.side-text { font-size: 14px; color: var(--muted); line-height: 1.5; }
.similar { padding: 72px 0 64px; }

/* таблица подборки */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line-strong); }
.ctable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ctable th, .ctable td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ctable thead th { font-size: 11px; color: var(--muted); padding-top: 12px; padding-bottom: 12px; }
.ctable tbody th { font-weight: 500; text-transform: uppercase; letter-spacing: var(--track); white-space: nowrap; }
.ctable tbody th a { text-decoration: none; }
.ctable tbody th a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.ctable td:last-child { font-variant-numeric: tabular-nums; color: var(--muted); }
.ctable td .val { max-width: 60ch; }

.nf { padding: 80px 32px 120px; }
.nf h1 { font-size: clamp(32px, 8vw, 112px); }

/* подвал */
.site-footer { background: var(--footer-bg); color: #fff; margin-top: 24px; }
.site-footer .stars { padding-top: 40px; margin: 0 0 32px; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 48px; }
.footer-about { max-width: 62ch; }
.footer-kicker { font-size: 24px; color: #fff; margin-bottom: 6px; }
.footer-title { font-size: clamp(22px, 3vw, 36px); font-weight: 500; text-transform: uppercase; letter-spacing: var(--track); line-height: 1.1; margin-bottom: 14px; }
.footer-text { color: rgba(255, 255, 255, .78); font-size: 15px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; align-content: start; }
.footer-links a { font-size: 13px; text-transform: uppercase; letter-spacing: var(--track); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--red); }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; gap: 48px; }
  .side { position: static; }
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .coll-list { grid-template-columns: 1fr; }
  .coll-list li:nth-last-child(2) .coll, .coll-list li:nth-last-child(2):nth-child(even) .coll { border-bottom: 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 36px 0 40px; }
  .hero-grid { margin-top: 28px; }
  .lead { font-size: 16px; }
  .hide-sm { display: none; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .search { max-width: none; flex-basis: 100%; }
  .actions .btn, .hero-actions .btn { flex: 1 1 100%; }
  .collections, .all { padding: 48px 0; }
  .coll { grid-template-columns: 46px minmax(0, 1fr) auto 14px; min-height: 58px; }
  .ctable tbody th { white-space: normal; }
  .page-head { padding-bottom: 36px; margin-bottom: 32px; }
  .nf { padding: 56px 16px 80px; }
  .stats li { padding-right: 8px; }
  .meta-row { gap: 8px 16px; }
  .meta-row li { border: 0; margin: 0; padding: 0; }
}
@media (max-width: 440px) {
  .hide-xs { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
