/* blog-modern.css — Shakes Blog · современная белая система.
   Бренд: indigo #2e2b54 + cyan #13bfe6. Шрифт Onest. Много воздуха. */

:root {
  --font: 'Onest', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --bg:#ffffff;
  --surface:#ffffff;
  --surface-2:#f5f7fa;
  --surface-3:#eef1f5;
  --line:#e9edf2;
  --line-2:#dfe4ea;

  --ink:#1a1930;          /* deep indigo near-black — заголовки/текст */
  --ink-2:#5a6072;        /* вторичный */
  --ink-3:#969cab;        /* мета, приглушённый */

  --indigo:#2e2b54;       /* брендовый индиго (как в лого) */
  --accent:#12bfe6;       /* брендовый циан */
  --accent-press:#0ea6cc;
  --accent-soft:#e6f8fd;
  --on-accent:#ffffff;

  --radius:20px;
  --radius-sm:12px;
  --shadow:0 1px 2px rgba(20,22,40,.04), 0 6px 22px rgba(20,22,40,.05);
  --shadow-hover:0 2px 6px rgba(20,22,40,.06), 0 18px 44px rgba(18,38,60,.12);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
.m-root { font-family: var(--font); color: var(--ink); -webkit-font-smoothing: antialiased; }

/* generic interaction */
.m-card { transition: transform .2s ease, box-shadow .22s ease; }
.m-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.m-card:hover .m-thumb img, .m-card:hover .m-thumb .m-ph { transform: scale(1.04); }
.m-thumb { overflow: hidden; }
.m-thumb img, .m-thumb .m-ph { transition: transform .4s cubic-bezier(.2,.6,.2,1); display:block; }

.m-link { transition: color .15s; }
.m-link:hover { color: var(--accent-press) !important; }
.m-titlelink { transition: color .15s; }
.m-card:hover .m-titlelink { color: var(--accent-press); }

.m-btn { transition: transform .15s, filter .15s, background .15s; }
.m-btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.m-btn:active { transform: translateY(0); }

.m-chip { transition: background .15s, color .15s, border-color .15s; }
.m-tab { transition: color .15s, border-color .15s; }
.m-tag { transition: color .15s, background .15s; }
.m-tag:hover { color: var(--accent-press) !important; }

.m-icobtn { transition: background .15s, color .15s, border-color .15s; }
.m-icobtn:hover { background: var(--surface-2); color: var(--ink); }

/* sticky header */
.m-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }

/* prose */
.m-prose p { font-size: 18.5px; line-height: 1.78; color: var(--ink-2); margin: 0 0 22px; }
.m-prose .m-lead { font-size: 22px; line-height: 1.6; color: var(--ink); font-weight: 500; margin-bottom: 28px; letter-spacing: -.01em; }
.m-prose h2 { font-size: 28px; line-height: 1.18; letter-spacing: -.02em; font-weight: 700; color: var(--ink); margin: 40px 0 16px; }
.m-prose strong { color: var(--ink); font-weight: 600; }
.m-prose ul { margin: 0 0 24px; padding: 0; list-style: none; }
.m-prose li { font-size: 18px; line-height: 1.55; color: var(--ink-2); padding: 12px 0 12px 34px; position: relative; border-bottom: 1px solid var(--line); }
.m-prose li:last-child { border-bottom: 0; }
.m-prose li:before { content: ''; position: absolute; left: 4px; top: 19px; width: 16px; height: 16px;
  border-radius: 6px; background: var(--accent-soft); }
.m-prose li:after { content: ''; position: absolute; left: 9px; top: 24px; width: 6px; height: 6px;
  border-radius: 99px; background: var(--accent); }

.m-callout { background: var(--surface-2); border-radius: var(--radius-sm); padding: 22px 26px;
  border-left: 4px solid var(--accent); margin: 26px 0; }
.m-callout p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink); font-weight: 500; }

::selection { background: var(--accent); color: #fff; }

/* horizontal scroll hide for tab rows */
.m-noscroll { scrollbar-width: none; -ms-overflow-style: none; }
.m-noscroll::-webkit-scrollbar { display: none; }

/* ============================================================
   LAYOUT SYSTEM — shared by home + article (modern white)
   ============================================================ */
.m-wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ---------- header ---------- */
.m-header-in { display: flex; align-items: center; gap: 28px; height: 70px; }
.m-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.m-logo img { height: 26px; width: auto; display: block; }
.m-nav { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.m-nav a { font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  padding: 9px 14px; border-radius: 10px; transition: color .15s, background .15s; white-space: nowrap; }
.m-nav a:hover { color: var(--ink); background: var(--surface-2); }
.m-nav a.is-active { color: var(--indigo); font-weight: 600; }
.m-header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.m-icobtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 11px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.m-lang { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); }
.m-lang button { border: none; background: none; cursor: pointer; font-family: var(--mono); font-size: 12px;
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3);
  padding: 6px 10px; border-radius: 8px; transition: all .15s; }
.m-lang button.is-active { background: #fff; color: var(--indigo); box-shadow: 0 1px 2px rgba(20,22,40,.08); }
.m-cta { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 11px;
  background: var(--indigo); color: #fff; font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.m-cta.is-accent { background: var(--accent); }

/* ---------- masthead ---------- */
.m-masthead { padding: 44px 0 6px; }
.m-eyebrow { font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-press); margin: 0 0 14px; }
.m-masthead h1 { margin: 0; font-size: 46px; line-height: 1.04; letter-spacing: -.03em; font-weight: 800;
  color: var(--ink); max-width: 760px; text-wrap: balance; }
.m-masthead p { margin: 16px 0 0; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 560px; }

/* ---------- category bar (hashtags) ---------- */
.m-catbar { display: flex; align-items: center; gap: 22px; padding: 30px 0 8px; overflow-x: auto; }
.m-hash { display: inline-flex; align-items: baseline; font-family: var(--mono); font-size: 15px;
  font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; cursor: pointer;
  line-height: 1; transition: color .15s; }
.m-hash i { font-style: normal; color: var(--accent); font-weight: 700; }
.m-hash:hover { color: var(--ink); }
.m-hash.is-active { color: var(--ink); font-weight: 700; }

/* legacy chip (kept for A/B artboards) */
.m-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 500;
  text-decoration: none; white-space: nowrap; cursor: pointer; }
.m-chip:hover { border-color: var(--line-2); color: var(--ink); }
.m-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.m-chip .dot { width: 7px; height: 7px; border-radius: 99px; background: var(--c, var(--accent)); }

/* ---------- placeholders ---------- */
.m-ph { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg,
    hsl(var(--h,200) 42% 93%) 0 16px, hsl(var(--h,200) 48% 88%) 16px 32px); }
.m-ph span { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .01em;
  color: hsl(var(--h,200) 38% 42%); background: rgba(255,255,255,.78); padding: 7px 13px; border-radius: 999px;
  backdrop-filter: blur(2px); text-align: center; max-width: 84%; }

/* ---------- badges / meta / tags ---------- */
.m-badge { display: inline-flex; align-items: center; font-family: var(--font); font-weight: 600; font-size: 11.5px;
  letter-spacing: .05em; text-transform: uppercase; padding: 5px 10px; border-radius: 8px;
  background: hsl(var(--h,200) 70% 95%); color: hsl(var(--h,200) 55% 36%); white-space: nowrap; }
.m-badge.solid { background: var(--c, var(--accent)); color: #fff; }
.m-meta { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.m-meta .sep { opacity: .45; }
.m-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.m-tag { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 8px; text-decoration: none; }

/* ---------- hero (featured + secondary) ---------- */
.m-hero { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; margin: 22px 0 56px; }
.m-feature { display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.m-feature .m-thumb { height: 360px; }
.m-feature-body { padding: 26px 30px 30px; display: flex; flex-direction: column; gap: 15px; }
.m-feature h2 { margin: 0; font-size: 31px; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; color: var(--ink); }
.m-feature p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.m-rail { display: flex; flex-direction: column; gap: 22px; }
.m-mini { display: grid; grid-template-columns: 132px 1fr; gap: 16px; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.m-mini .m-thumb { height: 100%; min-height: 130px; }
.m-mini-body { padding: 15px 16px 15px 0; display: flex; flex-direction: column; gap: 9px; justify-content: center; }
.m-mini h3 { margin: 0; font-size: 16.5px; line-height: 1.22; letter-spacing: -.01em; font-weight: 700; color: var(--ink); }

/* ---------- section heading ---------- */
.m-sechead { display: flex; align-items: baseline; gap: 14px; margin: 0 0 22px; }
.m-sechead h2 { margin: 0; font-size: 25px; letter-spacing: -.02em; font-weight: 800; color: var(--ink); }
.m-sechead .rule { flex: 1; height: 1px; background: var(--line); }
.m-sechead a { font-family: var(--mono); font-size: 13px; color: var(--ink-3); text-decoration: none; }

/* ---------- card grid ---------- */
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.m-card { display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.m-card .m-thumb { height: 190px; position: relative; }
.m-card .m-thumb .m-badge { position: absolute; top: 13px; left: 13px; }
.m-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.m-card-body h3 { margin: 0; font-size: 19px; line-height: 1.24; letter-spacing: -.01em; font-weight: 700; color: var(--ink); }
.m-card-body p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); flex: 1; }
.m-card-foot { border-top: 1px solid var(--line); padding-top: 13px; }

/* ---------- load more ---------- */
.m-loadwrap { display: flex; justify-content: center; margin: 40px 0 56px; }
.m-loadmore { display: inline-flex; align-items: center; gap: 10px; padding: 13px 28px; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: #fff; color: var(--indigo); font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; transition: border-color .15s, color .15s; }
.m-loadmore:hover { border-color: var(--accent); color: var(--accent-press); }

/* ---------- promo banner (CMS-swappable visual) ---------- */
.m-promo { position: relative; display: flex; align-items: center; min-height: 300px; overflow: hidden;
  border-radius: var(--radius); background: var(--indigo); margin: 0 0 64px; box-shadow: var(--shadow); }
.m-promo-bg { position: absolute; inset: 0; z-index: 0; }
.m-promo-bg img, .m-promo-bg .m-ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-promo-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(22,20,46,.94) 0%, rgba(22,20,46,.80) 42%, rgba(22,20,46,.28) 100%); }
.m-promo-body { position: relative; z-index: 1; padding: 46px 50px; max-width: 580px; color: #fff;
  display: flex; flex-direction: column; gap: 12px; }
.m-promo-body h2 { margin: 0; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; font-weight: 800; color: #fff; }
.m-promo-body p { margin: 0; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.78); }
.m-promo-body .m-eyebrow { color: var(--accent); margin: 0; }

/* ---------- newsletter (legacy) ---------- */
.m-news { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: center;
  background: var(--indigo); border-radius: var(--radius); padding: 40px 44px; color: #fff; margin: 0 0 64px;
  background-image: radial-gradient(110% 130% at 100% 0%, rgba(18,191,230,.22) 0%, rgba(18,191,230,0) 55%); }
.m-news h2 { margin: 0 0 10px; font-size: 28px; letter-spacing: -.02em; font-weight: 800; color: #fff; }
.m-news p { margin: 0; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.74); }
.m-news-form { display: flex; gap: 10px; }
.m-news-form input { flex: 1; height: 50px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08); color: #fff; padding: 0 16px; font-family: var(--mono); font-size: 14px; outline: none; }
.m-news-form input::placeholder { color: rgba(255,255,255,.5); }
.m-news-form button { height: 50px; padding: 0 22px; border: none; border-radius: 12px; background: var(--accent);
  color: #fff; font-family: var(--font); font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; }

/* ---------- footer ---------- */
.m-footer { background: var(--surface-2); border-top: 1px solid var(--line); }
.m-footer-in { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 36px; padding: 52px 0 0; }
.m-footer h4 { margin: 0 0 16px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); }
.m-footer a { display: block; color: var(--ink-2); text-decoration: none; font-size: 14.5px; margin-bottom: 11px; transition: color .15s; }
.m-footer a:hover { color: var(--accent-press); }
.m-footer .about { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); max-width: 320px; margin: 18px 0 0; }
.m-footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 44px; padding: 24px 0; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }

/* ---------- breadcrumbs / article ---------- */
.m-crumbs { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.m-crumbs a { color: var(--ink-3); text-decoration: none; }
.m-crumbs a:hover { color: var(--accent-press); }
.m-crumbs .sep { opacity: .45; }
.m-article-head { max-width: 760px; margin: 0 auto; padding: 30px 28px 0; }
.m-article-head h1 { margin: 18px 0 18px; font-size: 44px; line-height: 1.08; letter-spacing: -.025em;
  font-weight: 800; color: var(--ink); text-wrap: balance; }
.m-cover { max-width: 980px; margin: 26px auto 0; padding: 0 28px; }
.m-cover .m-thumb { height: 440px; border-radius: var(--radius); overflow: hidden; }
.m-figcap { font-family: var(--mono); font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 10px; }
.m-share { display: flex; align-items: center; gap: 8px; }
.m-share a { display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px;
  font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); padding: 6px 11px; border-radius: 9px; text-decoration: none; }
.m-share a:hover { border-color: var(--accent); color: var(--accent-press); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .m-hero { grid-template-columns: 1fr; }
  .m-grid { grid-template-columns: repeat(2, 1fr); }
  .m-news { grid-template-columns: 1fr; }
  .m-promo-bg::after { background: linear-gradient(180deg, rgba(22,20,46,.70) 0%, rgba(22,20,46,.92) 100%); }
  .m-promo-body { max-width: 100%; padding: 36px 30px; }
  .m-footer-in { grid-template-columns: 1fr 1fr; gap: 28px; }
  .m-nav { display: none; }
}
@media (max-width: 620px) {
  .m-grid { grid-template-columns: 1fr; }
  .m-masthead h1 { font-size: 34px; }
  .m-article-head h1 { font-size: 32px; }
  .m-feature h2 { font-size: 25px; }
  .m-header-tools .m-cta { display: none; }
  .m-footer-in { grid-template-columns: 1fr; }
}
