/*
Theme Name: SERM Online
Theme URI: https://serm.online/
Author: Михайлин и Партнёры
Author URI: https://serm.online/
Description: Самостоятельная тема сайта serm.online — управление деловой репутацией. Без родительской темы, без наследия 2014 года.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: serm-online
Tags: dark, business, responsive, accessibility-ready
*/

/* ===== Inter — переменный шрифт, размещён на своём домене ===== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/inter-cyrillic.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: 400 800;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root {
  /* Brand */
  --c-accent:        #3d8bfd;
  --c-accent-hover:  #5c9dff;
  --c-accent-press:  #2f72d6;
  --c-accent-soft:   rgba(61,139,253,.12);
  --c-accent-ring:   rgba(61,139,253,.45);

  /* Surfaces — darkest to lightest */
  --c-bg:            #080b12;
  --c-surface:       #0e1420;
  --c-surface-2:     #141c2b;
  --c-surface-3:     #1c2739;

  /* Text — all pass WCAG AA on --c-bg */
  --c-text:          #e8ecf4;   /* 15.8:1 */
  --c-text-2:        #aab4c5;   /*  8.1:1 */
  --c-text-3:        #8793a6;   /*  5.4:1 */

  /* Lines */
  --c-line:          rgba(255,255,255,.08);
  --c-line-strong:   rgba(255,255,255,.16);

  /* Status */
  --c-danger:        #f0616d;
  --c-success:       #3dd68c;

  /* Type scale — fluid, 1.25 ratio */
  --t-xs:   .8125rem;
  --t-sm:   .9375rem;
  --t-base: 1.0625rem;
  --t-lg:   clamp(1.125rem, .35vw + 1.05rem, 1.25rem);
  --t-xl:   clamp(1.35rem, .7vw + 1.2rem,  1.6rem);
  --t-2xl:  clamp(1.65rem, 1.3vw + 1.35rem, 2.1rem);
  --t-3xl:  clamp(2rem,    2.4vw + 1.5rem,  2.9rem);
  --t-4xl:  clamp(2.3rem,  4vw + 1.4rem,    3.9rem);

  --lh-tight: 1.15;
  --lh-snug:  1.35;
  --lh-base:  1.7;

  /* Space — 4px base */
  --s-1: .25rem;  --s-2: .5rem;   --s-3: .75rem;  --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;    --s-10: 8rem;

  /* Geometry */
  --r-sm: 8px;  --r: 12px;  --r-lg: 18px;  --r-full: 999px;
  --w-max: 1180px;
  --w-prose: 44rem;
  --h-nav: 72px;

  /* Motion */
  --ease: cubic-bezier(.4,0,.2,1);
  --dur: .22s;

  --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 24px 56px -20px rgba(0,0,0,.75);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* =========================================================
   2. RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--h-nav) + var(--s-4));
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font: 400 var(--t-base)/var(--lh-base) var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--s-4); font-weight: 650; line-height: var(--lh-tight); letter-spacing: -.02em; color: var(--c-text); text-wrap: balance; }
h1 { font-size: var(--t-4xl); font-weight: 700; letter-spacing: -.03em; }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }

p { margin: 0 0 var(--s-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--c-accent); text-decoration-color: color-mix(in srgb, var(--c-accent) 40%, transparent); text-underline-offset: .2em; transition: color var(--dur) var(--ease); }
a:hover { color: var(--c-accent-hover); text-decoration-color: currentColor; }

img, picture, svg, video { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.4em; }
li { margin-bottom: var(--s-2); }
li::marker { color: var(--c-accent); }

blockquote {
  margin: var(--s-5) 0;
  padding: var(--s-4) var(--s-5);
  border-left: 3px solid var(--c-accent);
  background: var(--c-surface);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--c-text-2);
  font-style: italic;
}

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
code { background: var(--c-surface-2); padding: .15em .4em; border-radius: var(--r-sm); }
pre { background: var(--c-surface); padding: var(--s-4); border-radius: var(--r); overflow-x: auto; }

hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--s-7) 0; }

table { width: 100%; border-collapse: collapse; margin: var(--s-5) 0; font-size: var(--t-sm); }
th, td { padding: var(--s-3) var(--s-4); text-align: left; border-bottom: 1px solid var(--c-line); }
th { color: var(--c-text); font-weight: 600; background: var(--c-surface); }
td { color: var(--c-text-2); }

/* Focus — visible for keyboard users everywhere */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

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

.screen-reader-text, .sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100%; left: var(--s-4); z-index: 1000;
  background: var(--c-accent); color: #fff;
  padding: var(--s-3) var(--s-5); border-radius: 0 0 var(--r) var(--r);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

/* =========================================================
   3. LAYOUT PRIMITIVES
   ========================================================= */
.shell { width: 100%; max-width: var(--w-max); margin-inline: auto; padding-inline: var(--s-5); }
@media (max-width: 560px) { .shell { padding-inline: var(--s-4); } }

.section { padding-block: var(--s-9); }
.section--tight { padding-block: var(--s-7); }
@media (max-width: 768px) { .section { padding-block: var(--s-7); } }

.section__head { max-width: 46rem; margin-bottom: var(--s-7); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__lead { font-size: var(--t-lg); color: var(--c-text-2); margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-accent); margin-bottom: var(--s-3);
}

.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

/* =========================================================
   4. BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: .8em 1.6em;
  font: 600 var(--t-sm)/1.2 var(--font);
  border: 1px solid transparent; border-radius: var(--r-sm);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-hover); color: #fff; }
.btn--primary:active { background: var(--c-accent-press); }

.btn--ghost { background: transparent; color: var(--c-text); border-color: var(--c-line-strong); }
.btn--ghost:hover { background: var(--c-surface-2); border-color: var(--c-accent); color: var(--c-text); }

.btn--lg { padding: 1em 2em; font-size: var(--t-base); }
.btn--block { width: 100%; }

/* =========================================================
   5. HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--h-nav);
  background: color-mix(in srgb, var(--c-bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }

.brand {
  font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--c-text); text-decoration: none; flex-shrink: 0;
}
.brand__accent { color: var(--c-accent); }

.nav { display: flex; align-items: center; gap: var(--s-1); }
.nav ul { display: flex; align-items: center; gap: var(--s-1); list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; position: relative; }

.nav a {
  display: block; padding: .55em .85em;
  font-size: var(--t-sm); font-weight: 500;
  color: var(--c-text-2); text-decoration: none;
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav a:hover { color: var(--c-text); background: var(--c-surface-2); }
.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav .current-menu-ancestor > a { color: var(--c-accent); }

/* Dropdowns */
.nav .sub-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 15rem; flex-direction: column; align-items: stretch; gap: 2px;
  padding: var(--s-2);
  background: var(--c-surface-2); border: 1px solid var(--c-line);
  border-radius: var(--r); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.nav li:hover > .sub-menu,
.nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .sub-menu a { white-space: normal; line-height: 1.4; }

.nav__cta { margin-left: var(--s-3); }

/* Burger */
.burger {
  display: none; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--c-line-strong);
  border-radius: var(--r-sm); cursor: pointer; color: var(--c-text);
}
.burger__bars, .burger__bars::before, .burger__bars::after {
  content: ""; display: block; width: 18px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.burger__bars::before { transform: translateY(-6px); }
.burger__bars::after  { transform: translateY(4px); }
.burger[aria-expanded="true"] .burger__bars { background: transparent; }
.burger[aria-expanded="true"] .burger__bars::before { transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars::after  { transform: rotate(-45deg) translateY(-2px); }

@media (max-width: 1024px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--h-nav) 0 0 0;
    display: block; overflow-y: auto;
    padding: var(--s-5);
    background: var(--c-bg);
    border-top: 1px solid var(--c-line);
    transform: translateX(100%); visibility: hidden;
    transition: transform var(--dur) var(--ease), visibility var(--dur);
  }
  .nav[data-open="true"] { transform: translateX(0); visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: var(--s-3) var(--s-2); font-size: var(--t-base); border-radius: 0; border-bottom: 1px solid var(--c-line); }
  .nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; box-shadow: none;
    padding: 0 0 0 var(--s-4); margin: 0;
  }
  .nav .sub-menu a { color: var(--c-text-3); font-size: var(--t-sm); }
  .nav__cta { margin: var(--s-5) 0 0; }
  .nav__cta a { justify-content: center; border-bottom: 0; }
  body[data-nav-open="true"] { overflow: hidden; }
}

/* =========================================================
   6. HERO
   ========================================================= */
.hero { position: relative; padding-block: var(--s-10) var(--s-9); text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 50%;
  width: min(1000px, 130vw); aspect-ratio: 2/1; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--c-accent-soft) 0%, transparent 65%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero h1 { max-width: 20ch; margin-inline: auto; }
.hero__lead {
  max-width: 54ch; margin: var(--s-5) auto 0;
  font-size: var(--t-lg); color: var(--c-text-2);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-7); }

/* Stats */
.stats { border-block: 1px solid var(--c-line); }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.stat { padding: var(--s-6) var(--s-4); text-align: center; border-right: 1px solid var(--c-line); }
.stat:last-child { border-right: 0; }
.stat__num { font-size: var(--t-3xl); font-weight: 700; color: var(--c-accent); letter-spacing: -.03em; line-height: 1; }
.stat__label { margin-top: var(--s-2); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-3); }
@media (max-width: 680px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--c-line); }
}

/* Media logos */
.media-strip { padding-block: var(--s-6); }
.media-strip__label { text-align: center; font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--c-text-3); margin-bottom: var(--s-4); }
.media-strip__list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-4) var(--s-7); list-style: none; margin: 0; padding: 0; }
.media-strip__list li { margin: 0; font-size: var(--t-lg); font-weight: 600; color: var(--c-text-3); opacity: .75; }

/* =========================================================
   7. CARDS
   ========================================================= */
.card {
  display: flex; flex-direction: column;
  padding: var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { border-color: var(--c-line-strong); background: var(--c-surface-2); transform: translateY(-2px); }
.card h3 { margin-bottom: var(--s-3); }
.card p { color: var(--c-text-2); font-size: var(--t-sm); }
.card__more { margin-top: auto; padding-top: var(--s-4); font-size: var(--t-sm); font-weight: 600; }

.card__icon {
  width: 42px; height: 42px; margin-bottom: var(--s-4);
  display: grid; place-items: center;
  background: var(--c-accent-soft); border-radius: var(--r-sm);
  color: var(--c-accent);
}
.card__icon svg { width: 21px; height: 21px; }

/* Linked card — whole surface clickable, keyboard accessible */
.card--link { position: relative; text-decoration: none; color: inherit; }
.card--link:hover { color: inherit; }
.card--link .card__title-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* Post card */
.post-card__meta { font-size: var(--t-xs); color: var(--c-text-3); margin-bottom: var(--s-2); }
.post-card__title { font-size: var(--t-lg); margin-bottom: var(--s-3); }
.post-card__title a { color: var(--c-text); text-decoration: none; }
.post-card__title a:hover { color: var(--c-accent); }
.post-card__thumb { margin: calc(var(--s-5) * -1) calc(var(--s-5) * -1) var(--s-5); border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; aspect-ratio: 16/9; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   8. PAGE HEAD & BREADCRUMBS
   ========================================================= */
.page-head { padding-block: var(--s-7) var(--s-6); border-bottom: 1px solid var(--c-line); background: var(--c-surface); }
.page-head h1 { font-size: var(--t-3xl); margin-bottom: 0; }
.page-head__meta { margin-top: var(--s-3); font-size: var(--t-sm); color: var(--c-text-3); }

.crumbs { margin-bottom: var(--s-4); font-size: var(--t-xs); color: var(--c-text-3); }
.crumbs a { color: var(--c-text-3); text-decoration: none; }
.crumbs a:hover { color: var(--c-accent); }
.crumbs .sep { margin-inline: .5em; opacity: .5; }
.crumbs #breadcrumbs { margin: 0; padding: 0; }

/* =========================================================
   9. PROSE — article body
   ========================================================= */
.prose { max-width: var(--w-prose); font-size: var(--t-base); color: var(--c-text-2); }
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  margin: var(--s-7) 0 var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-line);
  font-size: var(--t-2xl); color: var(--c-text);
}
.prose h3 { margin: var(--s-6) 0 var(--s-3); font-size: var(--t-xl); color: var(--c-text); }
.prose h4 { margin: var(--s-5) 0 var(--s-3); color: var(--c-text); }
.prose strong { color: var(--c-text); font-weight: 650; }
.prose img { border-radius: var(--r); margin-block: var(--s-5); }
.prose figure { margin: var(--s-6) 0; }
.prose figcaption { margin-top: var(--s-3); font-size: var(--t-sm); color: var(--c-text-3); text-align: center; }
.prose ul, .prose ol { margin-bottom: var(--s-5); }
.prose > ul > li, .prose > ol > li { margin-bottom: var(--s-3); }

.prose--wide { max-width: none; }

.featured-img { margin-bottom: var(--s-6); border-radius: var(--r-lg); overflow: hidden; }

/* Source note at article end */
.source-note { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--c-line); font-size: var(--t-sm); color: var(--c-text-3); }

/* =========================================================
   10. POST LIST / ARCHIVE
   ========================================================= */
.post-list { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }

.pagination { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; margin-top: var(--s-8); }
.pagination .page-numbers {
  display: inline-grid; place-items: center;
  min-width: 2.6rem; height: 2.6rem; padding-inline: .7em;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-sm); color: var(--c-text-2);
  font-size: var(--t-sm); font-weight: 600; text-decoration: none;
  transition: all var(--dur) var(--ease);
}
.pagination .page-numbers:hover { border-color: var(--c-accent); color: var(--c-text); }
.pagination .page-numbers.current { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.pagination .dots { border-color: transparent; background: transparent; }

.post-nav { display: grid; gap: var(--s-4); grid-template-columns: 1fr 1fr; margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--c-line); }
.post-nav a { display: block; padding: var(--s-4); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); color: var(--c-text); text-decoration: none; font-size: var(--t-sm); font-weight: 600; transition: border-color var(--dur) var(--ease); }
.post-nav a:hover { border-color: var(--c-accent); }
.post-nav__label { display: block; font-size: var(--t-xs); font-weight: 500; color: var(--c-text-3); margin-bottom: var(--s-1); text-transform: uppercase; letter-spacing: .08em; }
.post-nav > div:last-child { text-align: right; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav > div:last-child { text-align: left; } }

/* Related */
.related { margin-top: var(--s-8); padding-top: var(--s-7); border-top: 1px solid var(--c-line); }
.related h2 { font-size: var(--t-xl); margin-bottom: var(--s-5); }

/* =========================================================
   11. FORMS
   ========================================================= */
.field { margin-bottom: var(--s-5); }
.field__label { display: block; margin-bottom: var(--s-2); font-size: var(--t-sm); font-weight: 600; color: var(--c-text); }
.field__req { color: var(--c-danger); }
.field__hint { margin-top: var(--s-2); font-size: var(--t-xs); color: var(--c-text-3); }

.input, .textarea, .select {
  width: 100%; padding: .85em 1em;
  font: 400 var(--t-base)/1.5 var(--font);
  color: var(--c-text);
  background: var(--c-surface-2);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--c-text-3); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-ring);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--c-danger); }
.textarea { resize: vertical; min-height: 8rem; }

.check { display: flex; align-items: flex-start; gap: var(--s-3); margin-bottom: var(--s-5); }
.check input[type="checkbox"] { flex-shrink: 0; width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; accent-color: var(--c-accent); cursor: pointer; }
.check label { font-size: var(--t-sm); color: var(--c-text-2); cursor: pointer; line-height: 1.5; }

.form-note { padding: var(--s-4); border-radius: var(--r); font-size: var(--t-sm); margin-bottom: var(--s-5); }
.form-note--ok   { background: color-mix(in srgb, var(--c-success) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c-success) 35%, transparent); color: var(--c-success); }
.form-note--err  { background: color-mix(in srgb, var(--c-danger) 12%, transparent);  border: 1px solid color-mix(in srgb, var(--c-danger) 35%, transparent);  color: var(--c-danger); }

.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* Search form */
.search-form { display: flex; gap: var(--s-2); }
.search-form .input { flex: 1; }

/* =========================================================
   12. CTA BAND
   ========================================================= */
.cta-band {
  padding-block: var(--s-8);
  background: linear-gradient(135deg, var(--c-surface-2), var(--c-surface));
  border-block: 1px solid var(--c-line);
  text-align: center;
}
.cta-band h2 { margin-bottom: var(--s-3); }
.cta-band p { max-width: 48ch; margin-inline: auto; color: var(--c-text-2); font-size: var(--t-lg); }
.cta-band .btn { margin-top: var(--s-6); }

/* =========================================================
   13. FOOTER
   ========================================================= */
.site-footer { background: var(--c-surface); border-top: 1px solid var(--c-line); padding-block: var(--s-8) var(--s-6); margin-top: var(--s-9); }
.site-footer__grid { display: grid; gap: var(--s-7); grid-template-columns: 1.4fr 1fr 1.2fr; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; gap: var(--s-6); } }

.site-footer h2 { font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-3); margin-bottom: var(--s-4); font-weight: 600; }
.site-footer__desc { font-size: var(--t-sm); color: var(--c-text-2); margin-top: var(--s-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--s-3); }
.site-footer li a { font-size: var(--t-sm); color: var(--c-text-2); text-decoration: none; }
.site-footer li a:hover { color: var(--c-accent); }

.contact-line { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); font-size: var(--t-sm); color: var(--c-text-2); text-decoration: none; }
.contact-line:hover { color: var(--c-accent); }
.contact-line svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--c-text-3); }

.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4);
  margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--c-line);
  font-size: var(--t-xs); color: var(--c-text-3);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.site-footer__legal a { color: var(--c-text-3); text-decoration: none; }
.site-footer__legal a:hover { color: var(--c-accent); }

/* =========================================================
   14. COOKIE BANNER
   ========================================================= */
.cookie-bar {
  position: fixed; left: var(--s-4); right: var(--s-4); bottom: var(--s-4); z-index: 200;
  max-width: 44rem; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--c-surface-2); border: 1px solid var(--c-line-strong);
  border-radius: var(--r); box-shadow: var(--shadow-lg);
  font-size: var(--t-sm); color: var(--c-text-2);
}
.cookie-bar p { flex: 1 1 18rem; margin: 0; }
.cookie-bar[hidden] { display: none; }

/* =========================================================
   15. UTILITIES & STATES
   ========================================================= */
.empty-state { padding: var(--s-9) var(--s-5); text-align: center; color: var(--c-text-2); }
.empty-state h1, .empty-state h2 { margin-bottom: var(--s-4); }
.error-code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; line-height: 1; color: var(--c-accent); opacity: .3; letter-spacing: -.04em; }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* Print */
@media print {
  .site-header, .site-footer, .cookie-bar, .post-nav, .related, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { max-width: none; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* =========================================================
   16. CASE RESULT — измеримый результат кейса
   ========================================================= */
.case-result {
  margin: 0 0 var(--s-7);
  padding: var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
}
.case-result__metric {
  margin: 0 0 var(--s-4);
  font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-text-3);
}
.case-result__grid {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5);
}
.case-result__col { flex: 1 1 8rem; min-width: 0; }
.case-result__label {
  display: block; margin-bottom: var(--s-1);
  font-size: var(--t-xs); color: var(--c-text-3);
  letter-spacing: .06em; text-transform: uppercase;
}
.case-result__value {
  margin: 0; font-size: var(--t-lg); font-weight: 650;
  line-height: var(--lh-snug); color: var(--c-text);
}
.case-result__value--before { color: var(--c-text-2); }
.case-result__value--after  { color: var(--c-success); }
.case-result__arrow { flex: 0 0 auto; font-size: var(--t-xl); color: var(--c-accent); }
.case-result__note {
  margin: var(--s-4) 0 0; padding-top: var(--s-3);
  border-top: 1px solid var(--c-line);
  font-size: var(--t-sm); color: var(--c-text-3);
}

/* В карточке на главной — компактнее */
.card .case-result {
  margin: var(--s-3) 0 0; padding: var(--s-4) 0 0;
  background: transparent; border: 0; border-top: 1px solid var(--c-line); border-radius: 0;
}
.card .case-result__value { font-size: var(--t-base); }
@media (max-width: 420px) {
  .case-result__arrow { display: none; }
}

/* =========================================================
   17. CONFIDENTIALITY + CASE INDEX
   ========================================================= */
.confidential { border-block: 1px solid var(--c-line); background: var(--c-surface); }
.confidential__grid { display: grid; gap: var(--s-8); grid-template-columns: 1fr 1fr; align-items: start; }
.confidential p { color: var(--c-text-2); max-width: 46ch; }
@media (max-width: 880px) { .confidential__grid { grid-template-columns: 1fr; gap: var(--s-7); } }

.case-index { list-style: none; margin: 0; padding: 0; }
.case-index__group { margin-bottom: var(--s-5); }
.case-index__group:last-child { margin-bottom: 0; }

.case-index__section {
  display: block; margin-bottom: var(--s-2);
  font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-text-3); text-decoration: none;
}
.case-index__section:hover { color: var(--c-accent); }

.case-index__list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--c-line); }
.case-index__list li { margin: 0; }
.case-index__list a {
  display: block; padding: var(--s-3) var(--s-4);
  font-size: var(--t-sm); color: var(--c-text-2); text-decoration: none;
  border-left: 2px solid transparent; margin-left: -1px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.case-index__list a:hover {
  color: var(--c-text); border-left-color: var(--c-accent);
  background: var(--c-surface-2);
}
