/* ============================================================
   SECRET ROOM MEDIA — design system
   Светлый фон + яркие акценты бренда.
   Palette: yellow #F5DA0F · lime #C8E712 · blue #2E39F7 ·
            pink #F6ADE5 · ink #1B1B1B · paper #FBF2E8
   ============================================================ */

:root {
  --yellow: #F5DA0F;
  --lime:   #C8E712;
  --blue:   #2E39F7;
  --pink:   #F6ADE5;
  --ink:    #1B1B1B;
  --paper:  #FBF2E8;
  --white:  #ffffff;
  --gray:   #6b6b66;
  --line:   #1B1B1B;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-lg: 7px 7px 0 var(--ink);
  --maxw: 1240px;

  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.display {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.mark { background: var(--yellow); padding: 0 .1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.mark-lime { background: var(--lime); }
.mark-pink { background: var(--pink); }
.mark-blue { background: var(--blue); color: #fff; }

/* ---------- header ---------- */
.topbar {
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar .live { display: inline-flex; align-items: center; gap: 7px; }
.topbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.25} }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo .logo-img { height: 42px; width: auto; flex: none; }
.logo .logo-media { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; background: var(--ink); color: var(--paper); padding: 3px 8px; border-radius: 6px; align-self: center; }
.logo .name { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; line-height: .85; font-size: 20px; letter-spacing: -0.01em; }
.logo .name span { display: block; font-size: 10px; letter-spacing: .28em; font-weight: 700; color: var(--gray); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-weight: 700; font-size: 14px; padding: 9px 14px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .02em; transition: .15s;
}
.nav a:hover { background: var(--ink); color: var(--paper); }
.nav a.active { background: var(--yellow); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 800; font-size: 14px;
  text-transform: uppercase; letter-spacing: .02em;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 11px 20px; cursor: pointer; transition: .15s;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow); }
.btn.yellow { background: var(--yellow); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }

.burger { display: none; background: none; border: 0; cursor: pointer; }
.burger span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; }
.hero-lead {
  position: relative; border: 3px solid var(--ink); border-radius: var(--radius);
  overflow: hidden; background: var(--ink); color: var(--paper);
  min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-lead .cover { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-lead .cover-emoji { position: absolute; inset: 0; display: grid; place-items: center; font-size: 220px; opacity: .9; }
.hero-lead .body { position: relative; z-index: 2; padding: 30px; background: linear-gradient(0deg, rgba(27,27,27,.92) 30%, rgba(27,27,27,0)); }
.hero-lead h1 { font-size: clamp(30px, 4.2vw, 52px); text-transform: uppercase; margin: 12px 0 10px; }
.hero-lead .dek { font-size: 16px; max-width: 46ch; color: #e8e4d8; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 5px 11px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--yellow); color: var(--ink);
}
.badge.tg { background: var(--blue); color: #fff; border-color: var(--blue); }
.badge.promo { background: var(--pink); color: var(--ink); border-color: var(--ink); }
.badge.cat { background: var(--lime); }
.badge.ghost { background: transparent; }

.hero-side { display: flex; flex-direction: column; gap: 16px; }
.hero-side .mini {
  border: 3px solid var(--ink); border-radius: var(--radius-sm);
  padding: 16px; background: var(--white); flex: 1;
  display: flex; flex-direction: column; justify-content: space-between; transition: .15s;
}
.hero-side .mini:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow); }
.hero-side .mini h3 { font-size: 20px; text-transform: uppercase; margin-top: 8px; }
.hero-side .mini .meta { font-size: 12px; color: var(--gray); margin-top: 8px; }

/* ---------- section headers ---------- */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; border-bottom: 3px solid var(--ink); padding-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); text-transform: uppercase; }
.section-head .dot { color: var(--blue); }
.section-head a { font-weight: 800; text-transform: uppercase; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.section-head a:hover { color: var(--blue); }

/* ---------- main layout: полотно + сайдбар ---------- */
.main-layout { display: grid; grid-template-columns: 1fr 340px; gap: 34px; align-items: start; }

/* cards grid (основное полотно) */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  border: 3px solid var(--ink); border-radius: var(--radius);
  background: var(--white); overflow: hidden; display: flex; flex-direction: column;
  transition: .15s; cursor: pointer;
}
.card:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-lg); }
.card .thumb { height: 168px; position: relative; display: grid; place-items: center; border-bottom: 3px solid var(--ink); overflow: hidden; }
.card .thumb .emoji { font-size: 82px; }
.card .thumb .thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.card .thumb .badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.card .card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 22px; text-transform: uppercase; }
.card .dek { font-size: 14px; color: #33332f; flex: 1; }
.card .meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--gray); margin-top: auto; }
.card .meta .cat { font-weight: 800; color: var(--ink); }

.card.wide { grid-column: 1 / -1; flex-direction: row; }
.card.wide .thumb { width: 44%; height: auto; border-bottom: 0; border-right: 3px solid var(--ink); }
.card.wide .card-body { width: 56%; }
.card.wide h3 { font-size: 28px; }

/* ---------- sidebar «из ТГ» ---------- */
.rail { border: 3px solid var(--ink); border-radius: var(--radius); background: var(--white); position: sticky; top: 96px; }
.rail-head { background: var(--blue); color: #fff; padding: 14px 18px; border-bottom: 3px solid var(--ink); border-radius: 15px 15px 0 0; display: flex; align-items: center; gap: 10px; }
.rail-head h3 { font-size: 18px; text-transform: uppercase; }
.rail-head .tg-ico { width: 22px; height: 22px; }
.rail-note { font-size: 12px; color: var(--gray); padding: 10px 18px; border-bottom: 2px dashed var(--ink); }
.rail-item { padding: 14px 18px; border-bottom: 2px solid #eee; display: block; transition: .12s; }
.rail-item:last-child { border-bottom: 0; }
.rail-item:hover { background: var(--paper); }
.rail-item .k { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--blue); letter-spacing: .05em; }
.rail-item h4 { font-family: var(--font-body); font-size: 15px; font-weight: 700; line-height: 1.25; margin: 4px 0; }
.rail-item .meta { font-size: 11px; color: var(--gray); }

/* ---------- promo banner ---------- */
.promo-banner {
  border: 3px solid var(--ink); border-radius: var(--radius);
  padding: 16px 20px; margin: 0;
  display: flex; align-items: center; gap: 18px; position: relative; overflow: hidden;
  transition: .15s;
}
.promo-banner:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow); }
.promo-banner.y { background: var(--yellow); }
.promo-banner.p { background: var(--pink); }
.promo-banner.l { background: var(--lime); }
.promo-banner.b { background: var(--blue); color: #fff; }
.promo-banner.b .p-body p { color: rgba(255,255,255,.85); }
.promo-banner .promo-tag { position: absolute; top: 0; right: 0; background: var(--ink); color: var(--paper); font-size: 9px; font-weight: 800; letter-spacing: .12em; padding: 4px 10px; text-transform: uppercase; border-radius: 0 0 0 8px; z-index: 2; }
.promo-banner .emoji { font-size: 48px; flex: none; }
.promo-banner .promo-thumb { width: 72px; height: 72px; object-fit: cover; border: 2px solid var(--ink); border-radius: 10px; flex: none; }
.promo-banner .p-body { flex: 1; min-width: 0; }
.promo-banner .p-body h3 { font-size: clamp(17px, 2.2vw, 22px); text-transform: uppercase; margin-bottom: 4px; line-height: 1.1; }
.promo-banner .p-body p { font-size: 13px; max-width: 60ch; color: #33332f; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* мелкие рекламные карточки — сетка под большим баннером */
.promo-small-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.promo-small {
  border: 2px solid var(--ink); border-radius: var(--radius-sm);
  padding: 12px 14px; display: flex; align-items: center; gap: 10px;
  position: relative; overflow: hidden; min-height: 68px; transition: .12s;
}
.promo-small:hover { transform: translate(-2px,-2px); box-shadow: 3px 3px 0 var(--ink); }
.promo-small.y { background: var(--yellow); }
.promo-small.p { background: var(--pink); }
.promo-small.l { background: var(--lime); }
.promo-small.b { background: var(--blue); color: #fff; }
.promo-small .promo-tag { position: absolute; top: 0; right: 0; background: var(--ink); color: var(--paper); font-size: 8px; font-weight: 800; letter-spacing: .1em; padding: 3px 7px; text-transform: uppercase; border-radius: 0 0 0 6px; }
.promo-small-thumb { width: 44px; height: 44px; object-fit: cover; border: 2px solid var(--ink); border-radius: 8px; flex: none; }
.promo-small .ps-emoji { font-size: 28px; flex: none; width: 44px; text-align: center; }
.promo-small .ps-body { flex: 1; min-width: 0; }
.promo-small .ps-body h4 { font-family: var(--font-body); font-size: 13px; font-weight: 800; line-height: 1.2; text-transform: uppercase; }


/* ---------- article page ---------- */
.article-hero { padding: 30px 0 10px; }
.article-hero .kicker { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.article-hero h1 { font-size: clamp(32px, 5vw, 64px); text-transform: uppercase; margin-bottom: 16px; }
.article-hero .dek { font-size: 19px; max-width: 68ch; color: #33332f; }
.article-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--gray); margin: 20px 0; padding: 14px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); flex-wrap: wrap; }
.article-cover { height: 420px; border: 3px solid var(--ink); border-radius: var(--radius); display: grid; place-items: center; margin: 8px 0 30px; overflow: hidden; }
.article-cover .emoji { font-size: 180px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.7; }
.article-body p { margin: 0 0 22px; }
.article-body h2 { font-family: var(--font-display); font-size: 32px; font-weight: 900; text-transform: uppercase; margin: 36px 0 14px; line-height: 1.15; }
.article-body h3 { font-family: var(--font-display); font-size: 22px; font-weight: 900; margin: 28px 0 10px; line-height: 1.2; }
.article-body a { color: var(--blue); font-weight: 700; text-decoration: underline; }
.article-body ul, .article-body ol { margin: 0 0 22px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body .art-figure { margin: 28px 0; border: 3px solid var(--ink); border-radius: var(--radius-sm); overflow: hidden; background: var(--paper); }
.article-body .art-figure img { display: block; width: 100%; height: auto; }
.article-body .art-figure figcaption { padding: 12px 16px; font-size: 14px; color: var(--gray); font-weight: 600; border-top: 2px solid var(--ink); }
.article-body blockquote { margin: 24px 0; padding: 16px 20px; border-left: 4px solid var(--blue); background: var(--paper); font-style: italic; }
.article-body blockquote.art-quote { border-left-width: 5px; }
.article-body .inline-promo h4 { font-size: 20px; text-transform: uppercase; margin: 10px 0 6px; }
.article-body .tg-source { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 999px; margin-bottom: 24px; }
.inline-promo { border: 3px solid var(--ink); border-radius: var(--radius-sm); background: var(--lime); padding: 18px 20px; margin: 26px 0; }
.inline-promo .promo-tag { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 3px 10px; border-radius: 999px; }
.inline-promo h4 { font-size: 20px; text-transform: uppercase; margin: 10px 0 6px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 30px 0; }
.tag { font-size: 12px; font-weight: 700; border: 2px solid var(--ink); border-radius: 999px; padding: 5px 12px; }
.share-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 28px 0 8px; padding: 16px; border: 3px solid var(--ink); border-radius: var(--radius-sm);
  background: var(--paper);
}
.share-label { font-size: 13px; font-weight: 800; text-transform: uppercase; margin-right: 6px; }
.share-btn {
  border: 2px solid var(--ink); background: #fff; border-radius: 10px;
  font-weight: 800; font-size: 13px; padding: 8px 12px; cursor: pointer;
}
.share-btn:hover { background: var(--yellow); }

/* ---------- filters ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .02em;
  border: 2px solid var(--ink); border-radius: 999px; padding: 8px 16px; cursor: pointer;
  background: var(--white); transition: .12s;
}
.chip:hover { background: var(--paper); }
.chip.active { background: var(--ink); color: var(--paper); }

/* ---------- about / team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.member { border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.member .avatar { height: 200px; display: grid; place-items: center; font-size: 100px; border-bottom: 3px solid var(--ink); }
.member .m-body { padding: 16px; }
.member h3 { font-size: 20px; text-transform: uppercase; }
.member .role { font-size: 13px; font-weight: 700; color: var(--blue); }
.member p { font-size: 13px; color: var(--gray); margin-top: 8px; }

.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin: 30px 0; }
.stat { border: 3px solid var(--ink); border-radius: var(--radius); padding: 24px; text-align: center; }
.stat.y{background:var(--yellow)} .stat.l{background:var(--lime)} .stat.p{background:var(--pink)} .stat.b{background:var(--blue);color:#fff}
.stat .num { font-family: var(--font-display); font-weight: 900; font-size: 46px; line-height: 1; }
.stat .lbl { font-size: 13px; font-weight: 700; text-transform: uppercase; margin-top: 8px; }

/* ---------- careers ---------- */
.jobs { display: grid; gap: 16px; }
.job { border: 3px solid var(--ink); border-radius: var(--radius); background: var(--white); padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; transition: .15s; }
.job:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow); }
.job h3 { font-size: 24px; text-transform: uppercase; }
.job .j-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); margin-top: 50px; padding: 46px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { text-transform: uppercase; font-size: 14px; margin-bottom: 14px; color: var(--yellow); }
.site-footer a { display: block; font-size: 14px; padding: 4px 0; color: #d8d4c8; }
.site-footer a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid #333; margin-top: 20px; padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; color: #888; flex-wrap: wrap; gap: 10px; }

/* ---------- 18+ disclaimer ---------- */
.footer-disclaimer { border-top: 1px solid #333; margin-top: 34px; padding-top: 20px; display: flex; align-items: flex-start; gap: 14px; }
.footer-disclaimer p { margin: 0; font-size: 12px; color: #b8b4a8; max-width: 90ch; line-height: 1.5; }
.footer-disclaimer strong { color: #d8d4c8; }
.age-badge { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--yellow); color: var(--yellow); display: grid; place-items: center; font-weight: 900; font-size: 15px; letter-spacing: -0.5px; }

/* ---------- cookie consent ---------- */
.cc-overlay { position: fixed; inset: 0; z-index: 9000; background: rgba(27,27,27,0.55); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.cc-overlay[hidden] { display: none; }
.cc-panel { background: var(--paper); border: 3px solid var(--ink); box-shadow: var(--shadow); max-width: 680px; width: 100%; max-height: 86vh; overflow: auto; padding: 22px; }
.cc-panel h3 { font-size: 20px; text-transform: uppercase; margin-bottom: 10px; }
.cc-panel p { font-size: 14px; line-height: 1.55; margin-bottom: 12px; }
.cc-panel a { color: var(--blue); text-decoration: underline; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.cc-btn { font: inherit; font-size: 14px; font-weight: 700; padding: 10px 16px; border: 3px solid var(--ink); background: var(--paper); cursor: pointer; }
.cc-btn.cc-primary { background: var(--yellow); }
.cc-btn.cc-primary:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }
.cc-btn.cc-ghost:hover { background: var(--ink); color: var(--paper); }
.cc-cat { display: flex; gap: 14px; align-items: flex-start; border-top: 1px solid #ddd8c8; padding: 12px 0; }
.cc-cat strong { font-size: 14px; }
.cc-cat p { font-size: 13px; color: var(--gray); margin: 4px 0 0; }
.cc-switch { position: relative; flex: 0 0 auto; width: 46px; height: 26px; margin-top: 2px; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-slider { position: absolute; inset: 0; border: 2px solid var(--ink); background: #eee8d8; cursor: pointer; transition: background .15s; }
.cc-slider::before { content: ""; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; background: var(--ink); transition: transform .15s; }
.cc-switch input:checked + .cc-slider { background: var(--yellow); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(20px); }
.cc-switch input:disabled + .cc-slider { opacity: 0.6; cursor: not-allowed; }
.cc-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9100; background: var(--ink); color: var(--paper); font-size: 14px; padding: 12px 18px; border: 3px solid var(--yellow); max-width: 92vw; }
.cc-toast[hidden] { display: none; }
/* скрытые SEO-ссылки — не мешают юзеру, но видны краулеру */
.seo-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 700; color: var(--gray); padding: 18px 0 0; }
.breadcrumbs a { color: var(--blue); text-decoration: underline; }
.breadcrumbs span { color: var(--gray); }

/* ---------- calendar embed page ---------- */
.cal-embed-wrap {
  border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden;
  background: #111; min-height: 70vh; margin-bottom: 30px;
}
.cal-embed { display: block; width: 100%; height: min(85vh, 1100px); border: 0; background: #111; }

/* ---------- homepage calendar month widget ---------- */
.srm-cal-month {
  display: block; text-decoration: none; color: inherit;
  border: 3px solid var(--ink); border-radius: var(--radius);
  background: #1B1B1B; color: #FBF2E8; overflow: hidden;
  transition: .15s;
}
.srm-cal-month:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); }
.srm-cal-month-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 18px 20px; border-bottom: 2px solid #333;
  background: linear-gradient(180deg, #242424, #1B1B1B);
}
.srm-cal-num { font-family: var(--font-display); font-weight: 900; font-size: 42px; line-height: 1; color: var(--yellow); }
.srm-cal-name { font-family: var(--font-display); font-weight: 900; font-size: 28px; text-transform: uppercase; }
.srm-cal-year { margin-left: auto; font-weight: 800; font-size: 14px; color: #888; text-transform: uppercase; }
.srm-cal-list { display: grid; gap: 12px; padding: 16px; }
.srm-cal-card { border: 2px solid #333; border-radius: 12px; overflow: hidden; background: #222; }
.srm-cal-card.major { position: relative; min-height: 160px; }
.srm-cal-card.major .srm-cal-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.srm-cal-card.major .srm-cal-card-body { position: relative; z-index: 1; padding: 16px; }
.srm-cal-card.compact { padding: 12px 14px; border-left: 4px solid var(--blue); }
.srm-cal-card.is-past { opacity: .55; filter: grayscale(.35); }
.srm-cal-card h3 { font-size: 18px; font-weight: 800; margin: 6px 0 4px; color: #fff; }
.srm-cal-card p { font-size: 13px; color: #b8b4a8; margin: 0; }
.srm-cal-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.srm-cal-tag, .srm-cal-att, .srm-cal-cat {
  font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px;
}
.srm-cal-tag { background: rgba(255,255,255,.12); color: #fff; }
.srm-cal-att { background: var(--yellow); color: var(--ink); }
.srm-cal-cat { border: 1px solid rgba(255,255,255,.25); color: #ddd; }
.srm-cal-promo {
  margin-top: 10px; display: inline-block; font-size: 12px; font-weight: 800;
  background: var(--lime); color: var(--ink); padding: 4px 10px; border-radius: 999px;
}
.srm-cal-loading, .srm-cal-empty { padding: 24px 8px; color: #aaa; font-weight: 700; }
.srm-cal-fallback { display: block; margin-top: 6px; color: #ddd; }

/* ---------- services page (top50-like filters, SRM design) ---------- */
.svc-lead { max-width: 64ch; font-size: 17px; margin: -4px 0 10px; }
.svc-partner-cta { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--gray); }
.svc-partner-cta a { color: var(--blue); text-decoration: underline; }
.svc-loading, .svc-empty { padding: 40px 0; font-weight: 800; color: var(--gray); text-align: center; }

.svc-filters {
  position: sticky; top: 0; z-index: 20; margin: 8px 0 22px; padding: 14px 0 12px;
  background: linear-gradient(180deg, var(--paper) 70%, transparent);
}
.svc-filter-block { margin-bottom: 12px; }
.svc-filter-label {
  font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em;
  color: var(--gray); margin-bottom: 8px;
}
.svc-tasks, .svc-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-task-pill, .svc-cat-pill {
  border: 2px solid var(--ink); background: #fff; border-radius: 999px;
  font-weight: 800; font-size: 13px; padding: 8px 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; transition: .12s;
}
.svc-task-pill:hover, .svc-cat-pill:hover { transform: translateY(-1px); }
.svc-task-pill.active { background: var(--ink); color: var(--paper); }
.svc-cat-pill.active { background: var(--yellow); }
.svc-count {
  font-size: 11px; font-weight: 900; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; border: 1.5px solid currentColor; display: inline-grid; place-items: center;
  opacity: .85;
}

.svc-section { margin: 0 0 34px; }
.svc-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.svc-cat-title {
  display: flex; align-items: center; gap: 10px; font-family: var(--font-display);
  font-weight: 900; font-size: 22px; text-transform: uppercase; margin: 0;
}
.svc-cat-dot { width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--ink); flex: none; }
.svc-section-count {
  font-family: var(--font-display); font-weight: 900; font-size: 20px;
  border: 2px solid var(--ink); border-radius: 10px; padding: 4px 10px; background: #fff;
}

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.svc-card {
  position: relative; border: 3px solid var(--ink); border-radius: var(--radius);
  background: #fff; padding: 18px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 4px 4px 0 rgba(27,27,27,.06);
  animation: svcIn .35s ease both; transition: .15s;
}
.svc-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 rgba(27,27,27,.12); }
@keyframes svcIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.svc-card.featured { background: linear-gradient(180deg, #fff8fc, #fff); }
.svc-card.tone-yellow { border-top: 5px solid var(--yellow); }
.svc-card.tone-lime { border-top: 5px solid var(--lime); }
.svc-card.tone-pink { border-top: 5px solid var(--pink); }
.svc-card.tone-blue { border-top: 5px solid var(--blue); }
.svc-badge {
  position: absolute; top: 12px; right: 12px; font-size: 10px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .04em; background: var(--pink);
  border: 2px solid var(--ink); border-radius: 999px; padding: 4px 10px; z-index: 1;
}
.svc-card-top { display: flex; gap: 12px; align-items: flex-start; padding-right: 70px; }
.svc-logo {
  width: 52px; height: 52px; border-radius: 14px; border: 2px solid var(--ink);
  display: grid; place-items: center; overflow: hidden; flex: none; position: relative;
}
.svc-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-logo.has-img { background: #fff !important; }
.svc-logo-fallback {
  font-family: var(--font-display); font-weight: 900; font-size: 16px;
  width: 100%; height: 100%; display: grid; place-items: center;
}
.svc-card-name { font-family: var(--font-display); font-weight: 900; font-size: 20px; text-transform: uppercase; margin: 0 0 4px; line-height: 1.1; }
.svc-card-name a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.svc-card-name a:hover { color: var(--blue); }
.svc-card-tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--gray); }
.svc-card-desc { font-size: 14px; line-height: 1.5; color: #333; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.svc-card-advantage {
  font-size: 14px; font-weight: 800; line-height: 1.4;
  background: #f3f1ec; border: 2px solid var(--ink); border-left: 5px solid var(--ink);
  border-radius: 10px; padding: 10px 12px;
}
.svc-card-note { font-size: 12px; color: var(--gray); font-weight: 600; white-space: pre-line; }
.svc-card-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; }
.svc-card-promo {
  border: 2px solid var(--ink); border-radius: 10px; background: var(--yellow);
  padding: 8px 12px; cursor: pointer; display: inline-flex; flex-direction: column; gap: 2px; text-align: left;
}
.svc-card-promo span { font-size: 10px; font-weight: 800; text-transform: uppercase; color: #555; }
.svc-card-promo strong { font-size: 14px; font-weight: 900; }
.svc-card-promo.copied { background: var(--yellow); }
.svc-card-cta { font-size: 13px; padding: 9px 12px; }
.svc-card-miss { font-size: 12px; font-weight: 700; color: var(--gray); }

@media (max-width: 940px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-filters { position: static; }
  .svc-card-top { padding-right: 0; }
  .svc-badge { position: static; align-self: flex-start; }
}

/* ---------- Пульс (admin analytics dashboard) ---------- */
.pulse { margin-top: 4px; }
.pulse-hero {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-end;
  margin-bottom: 18px; padding: 22px 24px; border: 3px solid var(--ink); border-radius: var(--radius);
  background: linear-gradient(135deg, #fff 0%, var(--yellow) 55%, var(--lime) 100%);
}
.pulse-live {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 900;
  letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--paper);
  padding: 5px 10px; border-radius: 999px; margin-bottom: 10px;
}
.pulse-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d;
  box-shadow: 0 0 0 0 rgba(255,77,77,.7); animation: pulseLive 1.4s infinite;
}
@keyframes pulseLive {
  0% { box-shadow: 0 0 0 0 rgba(255,77,77,.55); }
  70% { box-shadow: 0 0 0 8px rgba(255,77,77,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,77,0); }
}
.pulse-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(36px, 5vw, 52px); text-transform: uppercase; line-height: .95; margin: 0; }
.pulse-sub { margin: 8px 0 0; max-width: 46ch; font-size: 15px; font-weight: 600; color: #333; }
.pulse-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pulse-range { display: flex; gap: 6px; flex-wrap: wrap; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 4px; }
.pulse-range button {
  border: 0; background: transparent; border-radius: 999px;
  font-weight: 800; font-size: 12px; text-transform: uppercase; padding: 9px 14px; cursor: pointer;
}
.pulse-range button.active { background: var(--ink); color: var(--paper); }
.pulse-custom {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin-bottom: 14px;
  padding: 14px 16px; border: 3px solid var(--ink); border-radius: 14px; background: #fff;
}
.pulse-custom[hidden] { display: none; }
.pulse-custom label { font-size: 12px; font-weight: 800; text-transform: uppercase; display: grid; gap: 6px; }
.pulse-custom input { border: 2px solid var(--ink); border-radius: 8px; padding: 8px 10px; font-family: var(--font-body); }
.pulse-status-bar {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; font-weight: 700; color: var(--gray); margin-bottom: 14px;
}
.pulse-kpi { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.pulse-kpi-card {
  border: 3px solid var(--ink); border-radius: 16px; background: #fff; padding: 14px;
  min-height: 148px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: 4px 4px 0 var(--ink);
}
.pulse-kpi-card.tone-y { background: var(--yellow); }
.pulse-kpi-card.tone-l { background: var(--lime); }
.pulse-kpi-card.tone-p { background: var(--pink); }
.pulse-kpi-card.tone-b { background: var(--blue); color: #fff; }
.pulse-kpi-card.tone-b .pulse-kpi-hint,
.pulse-kpi-card.tone-b .pulse-kpi-label { color: rgba(255,255,255,.85); }
.pulse-kpi-top { display: flex; justify-content: space-between; align-items: center; }
.pulse-kpi-ico { font-size: 20px; }
.pulse-delta { font-size: 11px; font-weight: 900; padding: 3px 8px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink); }
.pulse-delta.up { background: var(--lime); }
.pulse-delta.down { background: #ffd0d0; }
.pulse-delta.flat { background: #eee; }
.pulse-kpi-val { font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 2.4vw, 34px); line-height: 1; margin-top: 4px; }
.pulse-kpi-label { font-size: 13px; font-weight: 900; text-transform: uppercase; line-height: 1.15; }
.pulse-kpi-hint { font-size: 11px; font-weight: 600; color: #555; line-height: 1.35; margin-top: auto; }

.pulse-chart-card, .pulse-panel {
  border: 3px solid var(--ink); border-radius: 16px; background: #fff;
  padding: 18px; margin-bottom: 14px; box-shadow: 4px 4px 0 rgba(27,27,27,.08);
}
.pulse-card-head { margin-bottom: 14px; }
.pulse-card-head h3 { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; margin: 0 0 4px; }
.pulse-card-hint { margin: 0; font-size: 13px; font-weight: 600; color: var(--gray); }
.pulse-spark-wrap { color: var(--blue); }
.pulse-chart-frame {
  border: 2px solid var(--ink); border-radius: 12px; background:
    linear-gradient(#f3f1ea 1px, transparent 1px) 0 0 / 100% 36px,
    linear-gradient(90deg, #f3f1ea 1px, transparent 1px) 0 0 / 48px 100%,
    #fbfaf6;
  padding: 10px 8px 4px; overflow: hidden;
}
.pulse-spark { width: 100%; height: 200px; display: block; }
.pulse-gridline { stroke: #ddd; stroke-width: 1; stroke-dasharray: 4 6; }
.pulse-chart-lab { font-size: 9px; fill: #777; font-weight: 700; }
.pulse-chart-foot {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-top: 10px; font-size: 13px; font-weight: 700; color: #444;
}
.pulse-grid { display: grid; grid-template-columns: 1.05fr 1.55fr 0.9fr; gap: 14px; }
.pulse-panel { margin-bottom: 0; }
.pulse-src { display: flex; gap: 12px; padding: 12px 0; border-bottom: 2px solid #eee; }
.pulse-src:last-child { border-bottom: 0; }
.pulse-src-ico {
  width: 42px; height: 42px; border-radius: 12px; border: 2px solid var(--ink);
  display: grid; place-items: center; font-size: 18px; flex: none;
}
.pulse-src-body { flex: 1; min-width: 0; }
.pulse-src-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.pulse-src-top strong { font-size: 14px; }
.pulse-src-num { font-family: var(--font-display); font-weight: 900; font-size: 20px; }
.pulse-src-hint { font-size: 12px; color: var(--gray); font-weight: 600; margin: 2px 0 8px; }
.pulse-bar { height: 8px; background: #eee; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.pulse-bar i { display: block; height: 100%; background: var(--blue); }
.pulse-bar.slim { height: 6px; border-width: 1.5px; margin-top: 8px; }

.pulse-pub {
  display: grid; grid-template-columns: 28px 44px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 2px solid #eee; text-decoration: none; color: inherit;
}
.pulse-pub:last-of-type { border-bottom: 0; }
.pulse-pub:hover .pulse-pub-title { color: var(--blue); }
.pulse-pub-rank {
  width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--ink);
  display: grid; place-items: center; font-weight: 900; font-size: 13px; background: var(--paper);
}
.pulse-pub-thumb {
  width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--ink);
  display: grid; place-items: center; font-size: 22px;
}
.pulse-pub-title { font-size: 14px; font-weight: 800; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pulse-pub-meta { font-size: 12px; color: var(--gray); font-weight: 600; margin-top: 2px; }
.pulse-pub-stats { display: grid; gap: 4px; min-width: 72px; text-align: right; }
.pulse-pub-stats div { font-size: 12px; font-weight: 700; display: flex; justify-content: flex-end; gap: 6px; align-items: center; }
.pulse-pub-stats strong { font-family: var(--font-display); font-size: 16px; }
.pulse-legend { margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--gray); }

.pulse-table-wrap { overflow-x: auto; border: 2px solid var(--ink); border-radius: 12px; }
.pulse-data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.pulse-data-table th {
  text-align: left; font-size: 11px; text-transform: uppercase; font-weight: 900;
  padding: 10px 12px; background: var(--paper); border-bottom: 2px solid var(--ink); white-space: nowrap;
}
.pulse-data-table td { padding: 10px 12px; border-bottom: 1px solid #e8e4dc; vertical-align: top; }
.pulse-data-table tr:last-child td { border-bottom: 0; }
.pulse-data-table .num { font-family: var(--font-display); font-weight: 900; font-size: 15px; text-align: right; white-space: nowrap; }
.pulse-td-title { font-weight: 800; max-width: 280px; }
.pulse-td-title a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pulse-td-title a:hover { color: var(--blue); }

.pulse-donut-wrap { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 2px solid #eee; }
.pulse-donut {
  width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 28px #fff;
}
.pulse-donut-legend { display: grid; gap: 6px; }
.pulse-donut-item { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; }
.pulse-donut-item i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--ink); display: block; }
.pulse-donut-item em { font-style: normal; color: var(--gray); min-width: 36px; text-align: right; }

.pulse-author { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 2px solid #eee; }
.pulse-author:last-child { border-bottom: 0; }
.pulse-author-rank {
  width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--ink);
  display: grid; place-items: center; font-weight: 900; font-size: 13px; background: var(--pink);
}
.pulse-author-body strong { font-size: 14px; display: block; }
.pulse-author-num { font-family: var(--font-display); font-weight: 900; font-size: 20px; }

.pulse-empty {
  text-align: center; padding: 36px 16px; border: 2px dashed var(--ink); border-radius: 14px; background: var(--paper);
}
.pulse-empty-ico { font-size: 36px; margin-bottom: 8px; }
.pulse-empty strong { display: block; font-size: 18px; text-transform: uppercase; margin-bottom: 6px; }
.pulse-empty p { margin: 0 auto; max-width: 40ch; color: var(--gray); font-weight: 600; }
.pulse-empty-inline { padding: 18px 8px; font-size: 13px; font-weight: 700; color: var(--gray); }
.pulse-note {
  margin-top: 18px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 12px;
  background: #fff; font-size: 13px; color: #444; font-weight: 600;
}

@media (max-width: 1100px) {
  .pulse-kpi { grid-template-columns: repeat(4, 1fr); }
  .pulse-grid { grid-template-columns: 1fr; }
  .pulse-spark { height: 160px; }
}
@media (max-width: 700px) {
  .pulse-kpi { grid-template-columns: 1fr 1fr; }
  .pulse-kpi-val { font-size: 26px; }
  .pulse-pub { grid-template-columns: 28px 1fr auto; }
  .pulse-pub-thumb { display: none; }
  .pulse-hero { padding: 18px; }
}

/* ---------- utility ---------- */
.big-cta { border: 3px solid var(--ink); border-radius: var(--radius); background: var(--yellow); padding: 40px; margin: 40px 0; text-align: center; }
.big-cta h2 { font-size: clamp(28px,4vw,46px); text-transform: uppercase; margin-bottom: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .main-layout { grid-template-columns: 1fr; }
  .rail { position: static; }
  .cards { grid-template-columns: 1fr; }
  .card.wide { flex-direction: column; }
  .card.wide .thumb { width: 100%; height: 168px; border-right: 0; border-bottom: 3px solid var(--ink); }
  .card.wide .card-body { width: 100%; }
  .promo-small-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .stat-row { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; background: var(--paper); border-bottom: 3px solid var(--ink); padding: 16px; }
  .burger { display: block; }
  .job { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .team-grid, .stat-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .promo-small-grid { grid-template-columns: 1fr; }
}
