/* ================================================================
   СертГид — preview stylesheet
   Aesthetic: Editorial Technical · Swiss precision × modern SaaS
   Typography: General Sans (Fontshare) + JetBrains Mono
   Palette: warm paper + electric blue + accent orange
================================================================= */

/* ====================================================
   TOKENS
==================================================== */
:root {
  /* Brand */
  --primary:        #0363ff;
  --primary-dark:   #0040b8;
  --primary-deep:   #001a73;
  --primary-soft:   rgba(3, 99, 255, 0.08);
  --primary-ghost:  rgba(3, 99, 255, 0.04);

  --accent:         #ff5a1f;
  --accent-dark:    #d9410a;
  --accent-soft:    rgba(255, 90, 31, 0.12);

  --success:        #0c8a4e;

  /* Ink / paper */
  --ink:            #0a0a0a;
  --ink-soft:       #1f1f1f;
  --muted:          #6b6b6b;
  --muted-light:    #9a9a9a;

  --paper:          #f7f6f1;
  --paper-warm:     #efede4;
  --paper-deep:     #e8e5d9;
  --white:          #ffffff;

  /* Lines */
  --line:           rgba(10, 10, 10, 0.08);
  --line-strong:    rgba(10, 10, 10, 0.14);
  --line-on-dark:   rgba(255, 255, 255, 0.14);

  /* Type */
  --font-display: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-sm: 0 2px 6px rgba(10, 10, 10, 0.04), 0 0 0 1px var(--line);
  --shadow-md: 0 8px 24px rgba(10, 10, 10, 0.06), 0 0 0 1px var(--line);
  --shadow-lg: 0 24px 60px rgba(10, 10, 10, 0.08), 0 0 0 1px var(--line);
  --shadow-hover: 0 20px 50px rgba(3, 99, 255, 0.14), 0 0 0 1px var(--primary);

  /* Layout */
  --wrap: 1240px;
  --gutter: clamp(1rem, 3vw, 2rem);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

/* Page-wide subtle grain — editorial feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.35'/></svg>");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ====================================================
   TYPOGRAPHY
==================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
h2 {
  font-size: clamp(1.875rem, 3.6vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.04;
}
h3 {
  font-size: clamp(1.125rem, 1.6vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.2;
}
h4 { font-size: 1rem; font-weight: 600; letter-spacing: -0.005em; }

p { margin: 0; text-wrap: pretty; }

/* Editorial small-cap prefix */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}
.eyebrow strong { font-weight: 600; color: var(--ink); }
.eyebrow--on-dark { color: rgba(255, 255, 255, 0.7); }
.eyebrow--on-dark::before { background: rgba(255, 255, 255, 0.4); }
.eyebrow--on-dark strong { color: var(--white); }

/* Section heading block */
.section-head {
  max-width: 820px;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head .eyebrow { margin-bottom: 1.25rem; }
.section-head h2 { margin-bottom: 0.9rem; }
.section-lead {
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.55;
}
.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
}
.section-head--split > div { max-width: 680px; }
.section-head--split .section-lead { margin: 0; }

@media (max-width: 840px) {
  .section-head--split { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ====================================================
   BUTTONS
==================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  line-height: 1;
  transition: transform 0.18s var(--ease), background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--sm { padding: 0.6rem 1rem; font-size: 0.88rem; }
.btn--sm svg { width: 16px; height: 16px; }
.btn--lg { padding: 1.1rem 1.6rem; font-size: 1rem; }
.btn--lg svg { width: 20px; height: 20px; }

.btn--primary {
  background: var(--ink);
  color: var(--white);
}
.btn--primary:hover { background: var(--primary); }

.btn--accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 30px -10px var(--accent);
}
.btn--accent:hover { background: var(--accent-dark); box-shadow: 0 14px 34px -10px var(--accent); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost:hover {
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.btn--link {
  padding: 0.6rem 0;
  border-radius: 0;
  color: var(--primary);
  font-weight: 500;
  border-bottom: 1px solid transparent;
}
.btn--link:hover { transform: none; border-bottom-color: var(--primary); }

/* ====================================================
   HEADER
==================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.9rem 0;
  background: rgba(247, 246, 241, 0.75);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 246, 241, 0.92);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
}
.brand__mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--ink);
  position: relative;
}
.brand__mark::before,
.brand__mark::after {
  content: '';
  position: absolute;
  background: var(--paper);
}
.brand__mark::before {
  width: 6px; height: 6px; top: 5px; left: 5px; border-radius: 2px;
  background: var(--accent);
}
.brand__mark::after {
  width: 6px; height: 6px; bottom: 5px; right: 5px; border-radius: 2px;
  background: var(--primary);
}
.brand__dot { color: var(--primary); }
.brand__badge {
  display: inline-block;
  padding: 2px 7px;
  margin-left: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 4px;
}

.nav {
  display: flex;
  gap: 0.4rem;
  flex: 1;
  justify-content: center;
}
.nav a {
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: rgba(10, 10, 10, 0.05); color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.phone svg { width: 16px; height: 16px; color: var(--primary); }
.phone:hover { color: var(--primary); }

.burger { display: none; }

@media (max-width: 1020px) {
  .nav { display: none; }
  .header-actions .phone { display: none; }
}
@media (max-width: 640px) {
  .site-header .wrap { justify-content: space-between; }
  .brand__badge { display: none; }
}

/* ====================================================
   HERO
==================================================== */
.hero {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(4rem, 7vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.hero__content { min-width: 0; }

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__preview { max-width: 520px; margin: 0 auto; }
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,0.6), rgba(0,0,0,0) 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,0.6), rgba(0,0,0,0) 70%);
}
.hero__blob {
  position: absolute;
  top: -25%;
  right: -30%;
  width: 70vw;
  max-width: 780px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
}
@media (max-width: 1024px) { .hero__blob { display: none; } }
.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.beta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem 0.3rem 0.55rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.beta__dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(12, 138, 78, 0.16);
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(12, 138, 78, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(12, 138, 78, 0.06); }
}

.hero__title {
  max-width: 16ch;
  margin-bottom: 1.75rem;
}
.hero__title > span { display: block; }

.accent-line {
  position: relative;
  white-space: nowrap;
}
.accent-line::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -0.08em;
  height: 0.12em;
  background: var(--primary);
  border-radius: 2px;
  transform-origin: left;
  animation: line-grow 1.2s 0.8s var(--ease-out) backwards;
}
@keyframes line-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.accent-num {
  font-style: normal;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: -0.045em;
  position: relative;
}
.accent-num::before {
  content: '→ ';
  color: var(--accent);
  font-weight: 500;
}

.hero__lead {
  max-width: 52ch;
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

/* --------- SEARCH --------- */
.search {
  z-index: 1;
  position: relative;
  display: flex;
  gap: 0.6rem;
  max-width: 640px;
  margin-bottom: 1rem;
}
.search__field {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 0 1.25rem 0 3.2rem;
  transition: border-color 0.18s, box-shadow 0.18s;
  box-shadow: var(--shadow-xs);
}
.search__field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.search__icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  color: var(--muted);
  transition: color 0.18s;
}
.search__field:focus-within .search__icon { color: var(--primary); }
.search__input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 1rem 0;
  background: transparent;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.search__input::placeholder { color: var(--muted-light); font-weight: 400; }
.search__kbd {
  display: none;
  padding: 0.25rem 0.4rem;
  background: var(--paper-warm);
  border-radius: var(--r-xs);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.search__field:focus-within .search__kbd { display: inline-block; }
kbd { font-family: inherit; }
.search__submit { flex-shrink: 0; }

@media (max-width: 640px) {
  .search { flex-direction: column; }
  .search__submit { width: 100%; justify-content: center; }
}

/* --------- CHIPS --------- */
.chips {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.chips__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 0.5rem;
}
.chip {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  transition: all 0.16s var(--ease);
}
.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* ====================================================
   METRICS
==================================================== */
.metrics {
  padding: clamp(4rem, 6vw, 6rem) 0;
  background: var(--paper-warm);
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metrics__head { margin-bottom: 2.5rem; }
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 1px solid var(--line);
}
.metric {
  position: relative;
  padding: 2rem 2rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  background: transparent;
  transition: background 0.2s;
}
.metric:hover { background: rgba(255, 255, 255, 0.5); }
.metric__id {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted-light);
  text-transform: uppercase;
}
.metric__value {
  font-family: var(--font-display);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  line-height: 1;
  color: var(--ink);
}
.metric__num {
  font-size: clamp(3.8rem, 7vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.metric__unit {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0;
}
.metric__label {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.4;
  max-width: 22ch;
}

@media (max-width: 960px) {
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .metric { padding: 1.75rem 1.5rem; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .metrics__grid { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
}

/* ====================================================
   HOW IT WORKS
==================================================== */
.how {
  padding: clamp(5rem, 8vw, 8rem) 0;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: step;
  position: relative;
}
/* Connecting dashed line behind steps (desktop) */
.steps::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 12%;
  right: 12%;
  height: 1px;
  background-image: linear-gradient(to right, var(--line-strong) 40%, transparent 40%);
  background-size: 10px 1px;
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  padding-top: 1rem;
}
.step__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--paper);
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--primary-soft);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.step__icon {
  width: 44px;
  height: 44px;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.step__icon svg { width: 100%; height: 100%; }
.step__title {
  margin-bottom: 0.6rem;
}
.step__text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .steps::before { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

/* ====================================================
   FOR WHOM · personas
==================================================== */
.for-whom {
  padding: clamp(5rem, 8vw, 8rem) 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.persona {
  position: relative;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
  isolation: isolate;
  overflow: hidden;
}
.persona::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--primary-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}
.persona:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}
.persona:hover::after { opacity: 1; }

.persona__id {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted-light);
  letter-spacing: 0.06em;
}
.persona__icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.persona__icon svg { width: 100%; height: 100%; }
.persona__title { margin-bottom: 0.75rem; }
.persona__text {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.persona__tag {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--paper-deep);
  border-radius: var(--r-xs);
}

@media (max-width: 1000px) { .persona-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .persona-grid { grid-template-columns: 1fr; } }

/* ====================================================
   RESULT DEMO CARD
==================================================== */
.demo { padding: clamp(5rem, 8vw, 8rem) 0; }

.result-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.result-card::before {
  content: 'ДЕМО';
  position: absolute;
  top: 1.5rem;
  right: -2rem;
  transform: rotate(18deg);
  padding: 0.3rem 3rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.result-card__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px dashed var(--line-strong);
}
.result-card__meta .eyebrow { margin-bottom: 0.6rem; }
.result-card__product {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 600;
  margin-bottom: 0.9rem;
  letter-spacing: -0.015em;
}
.result-card__tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--paper-warm);
  border-radius: var(--r-xs);
  color: var(--ink-soft);
}
.tag--mono { font-family: var(--font-mono); font-size: 0.78rem; background: var(--primary-soft); color: var(--primary-dark); }

.result-card__badge {
  text-align: right;
  padding: 0.9rem 1.1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-md);
  min-width: 230px;
}
.result-card__badge-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 0.35rem;
}
.result-card__badge-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (max-width: 640px) {
  .result-card__head { grid-template-columns: 1fr; }
  .result-card__badge { text-align: left; min-width: 0; }
  .result-card::before { display: none; }
}

.result-card__params {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.param {
  padding: 1.25rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.param:last-child { border-right: 0; }
.param__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.param__value {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
.param__value strong { font-weight: 600; }
.param__value--mono { font-family: var(--font-mono); letter-spacing: -0.01em; font-weight: 500; }
.param__sub { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.param--accent { background: var(--primary-soft); }
.param--accent .param__value { color: var(--primary-deep); }
.param--accent .param__value strong { color: var(--primary); font-size: 1.35rem; }

@media (max-width: 680px) {
  .result-card__params { grid-template-columns: 1fr; }
  .param { border-right: 0; border-bottom: 1px solid var(--line); }
  .param:last-child { border-bottom: 0; }
}

.result-card__docs {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0;
  margin-bottom: 1.75rem;
  overflow: hidden;
}
.result-card__docs summary {
  padding: 1rem 1.25rem;
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
}
.result-card__docs summary::-webkit-details-marker { display: none; }
.result-card__docs summary svg { width: 18px; height: 18px; transition: transform 0.2s; color: var(--muted); }
.result-card__docs[open] summary svg { transform: rotate(180deg); }
.result-card__docs[open] summary { border-bottom: 1px solid var(--line); }
.result-card__docs ul {
  margin: 0;
  padding: 1rem 1.25rem 1.25rem 2.2rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.7;
}
.result-card__docs ul li::marker { color: var(--primary); }

.result-card__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.5rem;
}

.disclaimer {
  display: flex;
  gap: 0.7rem;
  padding: 0.9rem 1.1rem;
  background: var(--paper-warm);
  border-radius: var(--r-md);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  align-items: flex-start;
}
.disclaimer svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--primary); margin-top: 1px; }

/* ====================================================
   COMPARISON
==================================================== */
.compare { padding: clamp(5rem, 8vw, 8rem) 0; }

.compare__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.compare__col {
  padding: 2.25rem;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  position: relative;
}
.compare__col--us {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.compare__col--us .eyebrow,
.compare__col--us .compare__mark { color: rgba(255, 255, 255, 0.6); }
.compare__col--us h3 { color: var(--white); }
.compare__col--us .compare__head p { color: rgba(255, 255, 255, 0.7); }
.compare__col--us::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(3, 99, 255, 0.3), transparent 50%);
  border-radius: inherit;
  pointer-events: none;
}

.compare__col--them { background: var(--paper); }

.compare__head {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid currentColor;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.compare__col--them .compare__head { border-bottom-color: var(--line); }
.compare__mark {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}
.compare__head h3 {
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  margin-bottom: 0.5rem;
}
.compare__head p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

.compare__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.compare__list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.55;
}
.compare__list li strong { font-weight: 600; }
.compare__col--them .compare__list li { color: var(--muted); }
.compare__col--them .compare__list li strong { color: var(--ink-soft); }

.compare__check,
.compare__cross {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.compare__check {
  background: var(--primary);
  color: var(--white);
}
.compare__check svg { width: 14px; height: 14px; }
.compare__cross {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--muted-light);
}
.compare__cross svg { width: 12px; height: 12px; }

@media (max-width: 840px) {
  .compare__grid { grid-template-columns: 1fr; }
}

/* ====================================================
   FAQ
==================================================== */
.faq {
  padding: clamp(5rem, 8vw, 8rem) 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
}
.faq__list {
  max-width: 860px;
  margin: 0 auto;
}
.faq__item {
  border-bottom: 1px solid var(--line-strong);
}
.faq__item:first-child { border-top: 1px solid var(--line-strong); }

.faq__item summary {
  padding: 1.6rem 0;
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  transition: color 0.2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover .faq__q { color: var(--primary); }

.faq__q {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.2s;
}

.faq__toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, transform 0.3s var(--ease);
}
.faq__toggle::before,
.faq__toggle::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}
.faq__toggle::before { width: 12px; height: 1.5px; transform: translate(-50%, -50%); }
.faq__toggle::after { width: 1.5px; height: 12px; transform: translate(-50%, -50%); }
.faq__item[open] .faq__toggle {
  background: var(--primary);
  border-color: var(--primary);
}
.faq__item[open] .faq__toggle::before,
.faq__item[open] .faq__toggle::after { background: var(--white); }
.faq__item[open] .faq__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq__a {
  padding: 0 0 1.8rem;
  max-width: 65ch;
}
.faq__a p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.faq__a em { font-style: italic; color: var(--primary-dark); }

/* ====================================================
   FINAL CTA
==================================================== */
.final { padding: clamp(5rem, 8vw, 8rem) 0; }

.final__card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: clamp(2.5rem, 5vw, 4rem);
  background: var(--primary-deep);
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(3, 99, 255, 0.5), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(255, 90, 31, 0.2), transparent 50%);
  color: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
}
.final__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: flex;
  gap: 120px;
  opacity: 0.08;
  transform: rotate(-20deg) scale(1.3);
}
.final__deco > div {
  flex: 1;
  border-right: 1px solid var(--white);
}

.final__content { position: relative; z-index: 1; }
.final__content h2 {
  color: var(--white);
  margin: 1.2rem 0 1.2rem;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
}
.final__content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
  margin-bottom: 2rem;
  max-width: 42ch;
}
.final__perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.final__perks li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}
.final__perks svg {
  width: 18px; height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.final__form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-self: center;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--wide { grid-column: 1 / -1; }
.field__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.field input {
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-sm);
  color: var(--white);
  font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.field input::placeholder { color: rgba(255, 255, 255, 0.4); }
.field input:focus {
  outline: none;
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.final__submit {
  grid-column: 1 / -1;
  justify-content: center;
  margin-top: 0.5rem;
}

.final__legal {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 900px) {
  .final__card { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 520px) {
  .final__form { grid-template-columns: 1fr; }
}

/* ====================================================
   FOOTER
==================================================== */
.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.brand--footer { margin-bottom: 1rem; }
.site-footer__brand p {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 32ch;
  line-height: 1.55;
}
.site-footer h4 {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.site-footer nav ul,
.site-footer__contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.93rem;
}
.site-footer a {
  color: var(--ink-soft);
  transition: color 0.15s;
}
.site-footer a:hover { color: var(--primary); }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.site-footer__mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

@media (max-width: 820px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
}

/* ====================================================
   REVEAL · page-load animation
==================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.9s var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll-reveal — toggled by JS */
.in-view {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
}
[data-scroll] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

/* ====================================================
   HERO · live indicator + trust + preview card
==================================================== */

/* Live status strip под поиском */
.hero__live {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.hero__live strong { color: var(--ink); font-weight: 600; }
.hero__live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(12, 138, 78, 0.16);
  animation: pulse 2s var(--ease-out) infinite;
}
.hero__live-sep { opacity: 0.4; }

/* Trust row */
.hero__trust {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.hero__avatars {
  display: flex;
  flex-shrink: 0;
}
.av {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--white);
  border: 2px solid var(--paper);
  margin-left: -10px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.av:first-child { margin-left: 0; }
.av--1 { background: var(--primary); }
.av--2 { background: var(--accent); }
.av--3 { background: var(--success); }
.av--4 { background: #6b3fa0; }
.av--more {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.68rem;
}
.hero__trust-text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
.hero__trust-text strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.94rem;
  margin-bottom: 0.1rem;
}

/* ----- LIVE PREVIEW CARD ----- */
.hero__preview {
  position: relative;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  box-shadow: 0 30px 80px -30px rgba(3, 99, 255, 0.22), 0 0 0 1px var(--line);
  overflow: hidden;
  isolation: isolate;
}
.hero__preview::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(3, 99, 255, 0.18), transparent 40%, rgba(255, 90, 31, 0.12));
  z-index: -1;
  pointer-events: none;
}

.hero__preview-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
}
.hero__preview-dots {
  display: flex;
  gap: 5px;
}
.hero__preview-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}
.hero__preview-dots span:first-child { background: #ff5f56; }
.hero__preview-dots span:nth-child(2) { background: #ffbd2e; }
.hero__preview-dots span:nth-child(3) { background: #27c93f; }
.hero__preview-label {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__preview-search {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px dashed var(--line-strong);
  background: linear-gradient(180deg, rgba(3, 99, 255, 0.025), transparent);
}
.hero__preview-search svg {
  width: 17px; height: 17px;
  color: var(--primary);
  flex-shrink: 0;
}
.hero__preview-typed {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  overflow: hidden;
  white-space: nowrap;
  animation: type 2.4s steps(30, end) 0.6s both;
}
@keyframes type {
  from { max-width: 0; }
  to   { max-width: 100%; }
}
.hero__preview-caret {
  width: 2px;
  height: 16px;
  background: var(--primary);
  animation: caret 0.9s ease-in-out infinite;
}
@keyframes caret {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero__preview-result {
  padding: 1.25rem;
}
.hero__preview-doctype {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  animation: reveal 0.6s var(--ease-out) 3s backwards;
}
.hero__preview-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__preview-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink);
}
.hero__preview-reg {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.2rem 0.5rem;
  border-radius: var(--r-xs);
  align-self: flex-start;
  letter-spacing: 0;
}

.hero__preview-params {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin: 0 0 1.1rem;
  overflow: hidden;
  animation: reveal 0.6s var(--ease-out) 3.15s backwards;
}
.hero__preview-params > div {
  padding: 0.7rem 0.85rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hero__preview-params > div:last-child {
  border-right: 0;
  background: var(--primary-soft);
}
.hero__preview-params dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0;
}
.hero__preview-params dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
.hero__preview-price { color: var(--primary-deep) !important; }

.hero__preview-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s, transform 0.2s;
  animation: reveal 0.6s var(--ease-out) 3.3s backwards;
}
.hero__preview-cta:hover { background: var(--primary); transform: translateY(-1px); }
.hero__preview-cta svg { width: 16px; height: 16px; }

.hero__preview-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.hero__preview-foot svg { width: 14px; height: 14px; color: var(--success); }
.hero__preview-foot strong { color: var(--ink); font-weight: 600; }

/* ====================================================
   FAQ · list & strong inside answer
==================================================== */
.faq__a ul {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.faq__a ul li { font-size: 0.96rem; padding-left: 0.2rem; }
.faq__a ul li::marker { color: var(--primary); }
.faq__a p + p { margin-top: 0.7rem; }
.faq__a strong { font-weight: 600; color: var(--ink); }

/* ====================================================
   INNER PAGES · breadcrumbs · page header · shared
==================================================== */

/* Breadcrumbs */
.crumbs {
  padding: 1.2rem 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.crumbs a { color: var(--muted); transition: color 0.15s; }
.crumbs a:hover { color: var(--primary); }
.crumbs__sep { opacity: 0.5; }
.crumbs__current { color: var(--ink); }

/* Page header — универсальный для внутренних страниц */
.page-header {
  padding: 2rem 0 clamp(2.5rem, 5vw, 4rem);
  position: relative;
}
.page-header__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.page-header__meta .eyebrow { margin: 0; }
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  max-width: 22ch;
  margin-bottom: 1rem;
}
.page-header__lead {
  font-size: clamp(1.05rem, 1.15vw, 1.2rem);
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.55;
}

/* Mini search (для внутренних страниц) */
.mini-search {
  display: flex;
  gap: 0.5rem;
  max-width: 560px;
  margin-top: 1.5rem;
}
.mini-search .search__field { padding: 0 1rem 0 2.7rem; }
.mini-search .search__icon { left: 0.9rem; width: 18px; height: 18px; }
.mini-search .search__input { padding: 0.85rem 0; font-size: 0.95rem; }
.mini-search .btn { flex-shrink: 0; }

/* Tag (status pill) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
}
.status-pill--active { color: var(--success); }
.status-pill--active::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
}
.status-pill--ai { color: var(--primary); background: var(--primary-soft); border-color: transparent; }

/* Alert box (для disclaimers / hint) */
.alert {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.92rem;
  line-height: 1.5;
  align-items: flex-start;
}
.alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.alert--info { border-color: var(--primary-soft); background: var(--primary-ghost); }
.alert--info svg { color: var(--primary); }
.alert--warn { background: var(--accent-soft); border-color: transparent; }
.alert--warn svg { color: var(--accent); }

/* Sidebar layout (для group / catalog) */
.with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.5rem;
  align-items: start;
}
.with-sidebar__aside { position: sticky; top: 96px; }

@media (max-width: 960px) {
  .with-sidebar { grid-template-columns: 1fr; gap: 2rem; }
  .with-sidebar__aside { position: static; }
}

/* Section separator */
.section-sep {
  height: 1px;
  background: var(--line);
  margin: 0;
}

/* ====================================================
   GROUP PAGE (карточка товарной группы)
==================================================== */
.group {
  padding-bottom: clamp(4rem, 7vw, 7rem);
}

.group__header {
  padding-bottom: 2.5rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.group__tnved {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.group__title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  max-width: 20ch;
  margin-bottom: 1rem;
}
.group__subline {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 54ch;
}

/* Hero result block on group page */
.group__hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  margin-bottom: 3rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.group__hero-main {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.group__hero-facts {
  list-style: none;
  padding: 1.25rem 0 0;
  margin: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  border-top: 1px dashed var(--line-strong);
  margin-top: 1rem;
}
.group__hero-facts li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.group__hero-facts svg {
  width: 18px; height: 18px;
  color: var(--success);
  margin-top: 1px;
  flex-shrink: 0;
}
.group__hero-main .eyebrow { margin-bottom: 0; }
.group__doctype {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}
.group__regulation {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  align-self: flex-start;
}
.group__regulation-label {
  font-size: 0.95rem;
  color: var(--muted);
  font-family: var(--font-body);
}

.group__hero-side {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--primary-deep);
  background-image:
    radial-gradient(ellipse at 100% 0%, rgba(3, 99, 255, 0.35), transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(255, 90, 31, 0.15), transparent 50%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.75rem;
  position: relative;
  overflow: hidden;
}
.group__hero-side .eyebrow { color: rgba(255, 255, 255, 0.55); margin: 0; }
.group__hero-side .eyebrow::before { background: rgba(255, 255, 255, 0.35); }

.group__price {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.group__price-value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--white);
}
.group__price-unit {
  font-size: 0.5em;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: -0.01em;
}
.group__price-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-body);
}

.group__price-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin: 0;
}
.group__price-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.group__price-item dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.group__price-item dd {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.group__hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.group__hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
  align-self: flex-start;
}
.group__hero-phone:hover { color: var(--white); }
.group__hero-phone svg { width: 14px; height: 14px; color: var(--accent); }
.group__hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s, background 0.2s, color 0.2s;
  align-self: flex-start;
  white-space: nowrap;
}
.group__hero-cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.group__hero-cta:hover { background: var(--accent); color: var(--white); transform: translateY(-1px); }

@media (max-width: 820px) {
  .group__hero { grid-template-columns: 1fr; }
}

/* Data blocks (two columns) */
.group__data {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.data-block {
  padding: 1.75rem;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.data-block__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.data-block__title svg { width: 20px; height: 20px; color: var(--primary); }
.data-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.data-block ul li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.data-block ul li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  margin-top: 9px;
  margin-left: 6px;
}
@media (max-width: 720px) {
  .group__data { grid-template-columns: 1fr; }
}

/* Process blocks */
.process {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
  counter-reset: proc;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.process li {
  counter-increment: proc;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  position: relative;
}
.process li::before {
  content: counter(proc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.25rem 0.5rem;
  border-radius: var(--r-xs);
  display: inline-block;
  margin-bottom: 0.85rem;
}
.process strong { font-size: 1rem; font-weight: 600; display: block; margin-bottom: 0.35rem; }
.process p { font-size: 0.92rem; color: var(--muted); line-height: 1.5; }

@media (max-width: 720px) { .process { grid-template-columns: 1fr; } }

/* Registry widget (OData ЕАЭС) */
.registry {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  margin-bottom: 3rem;
}
.registry__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.registry__title { font-size: 1.15rem; font-weight: 600; }
.registry__title svg { width: 20px; height: 20px; color: var(--primary); display: inline-block; vertical-align: -4px; margin-right: 0.4rem; }
.registry__source {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.registry__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.registry__row {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(0, 1.5fr) 120px 100px;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  align-items: center;
}
.registry__row:last-child { border-bottom: 0; }
.registry__num {
  font-family: var(--font-mono);
  color: var(--primary);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.registry__holder {
  color: var(--ink);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.registry__date { font-family: var(--font-mono); color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.registry__status { font-size: 0.78rem; font-family: var(--font-mono); white-space: nowrap; }
.registry__status--ok { color: var(--success); }
.registry__status--exp { color: var(--accent); }
.registry__foot {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
@media (max-width: 900px) {
  .registry__row {
    grid-template-columns: 1fr auto;
    gap: 0.6rem 1rem;
    padding: 1.1rem 0;
  }
  .registry__num { grid-column: 1 / -1; font-size: 0.8rem; white-space: normal; word-break: break-all; }
  .registry__holder { grid-column: 1 / -1; font-size: 0.95rem; }
  .registry__date, .registry__status { grid-column: auto; font-size: 0.78rem; }
}

/* Related groups */
.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}
.related__card {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.2s, transform 0.2s;
  color: inherit;
}
.related__card:hover { border-color: var(--primary); transform: translateY(-2px); }
.related__code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.related__name { font-weight: 600; line-height: 1.3; }
.related__doc {
  font-size: 0.82rem;
  color: var(--primary);
  margin-top: auto;
  padding-top: 0.5rem;
}
@media (max-width: 720px) { .related { grid-template-columns: 1fr; } }

/* ====================================================
   SEARCH PAGE
==================================================== */
.search-page__head {
  padding: 2rem 0 2.5rem;
}
.search-page__stats {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.search-page__stats strong { color: var(--ink); font-size: 1rem; font-weight: 600; }

.search-results {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 3rem;
}
.result-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  align-items: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: inherit;
}
.result-row:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px -12px rgba(3, 99, 255, 0.2);
}
.result-row__code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--paper-warm);
  padding: 0.4rem 0.65rem;
  border-radius: var(--r-xs);
  white-space: nowrap;
}
.result-row__content { min-width: 0; }
.result-row__name {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}
.result-row__name mark {
  background: var(--accent-soft);
  color: var(--ink);
  padding: 1px 3px;
  border-radius: 3px;
}
.result-row__meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
  align-items: center;
}
.result-row__meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.result-row__doctype {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-radius: var(--r-xs);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
}
.result-row__arrow {
  color: var(--muted-light);
  transition: color 0.2s, transform 0.2s;
}
.result-row:hover .result-row__arrow { color: var(--primary); transform: translateX(4px); }

@media (max-width: 720px) {
  .result-row { grid-template-columns: 1fr; gap: 0.75rem; }
  .result-row__code { justify-self: flex-start; }
  .result-row__arrow { display: none; }
}

/* AI answer block */
.ai-answer {
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary-ghost), var(--paper-warm));
  border: 1px solid var(--primary-soft);
  border-radius: var(--r-lg);
  margin-bottom: 2rem;
  position: relative;
}
.ai-answer__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.ai-answer__badge::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s var(--ease-out) infinite;
}
.ai-answer__title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.ai-answer__body {
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.ai-answer__body p + p { margin-top: 0.6rem; }

/* ====================================================
   CATALOG PAGE — filters + grid
==================================================== */
.filters {
  padding: 1.5rem;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 2rem;
}
.filters__title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 600;
}
.filters__group { margin-bottom: 1.25rem; }
.filters__group:last-child { margin-bottom: 0; }
.filters__label {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.filter-chip {
  padding: 0.4rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filter-chip.is-active:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* Catalog grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.cat-card {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.2s, transform 0.2s;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 180px;
}
.cat-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cat-card__code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.cat-card__name { font-weight: 600; font-size: 1.02rem; line-height: 1.25; margin-bottom: 0.5rem; }
.cat-card__meta {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--muted);
}
.cat-card__meta strong { color: var(--primary); font-weight: 600; }
@media (max-width: 1000px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .cat-grid { grid-template-columns: 1fr; } }

/* Catalog section header */
.cat-section-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 3rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.cat-section-title::before {
  content: '';
  width: 22px; height: 22px;
  background: var(--primary-soft);
  border-radius: var(--r-xs);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0;
  font-size: 0.72rem;
}
.cat-section-title[data-num]::before { content: attr(data-num); }
.cat-section-title:first-of-type { margin-top: 0; }

/* Pagination */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  padding: 2.5rem 0 0;
}
.pager a, .pager span {
  padding: 0.55rem 0.9rem;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  transition: all 0.15s;
}
.pager a:hover { border-color: var(--ink); }
.pager .is-current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pager .is-ellipsis { border: 0; background: transparent; color: var(--muted); }

/* ====================================================
   METHODOLOGY · article layout
==================================================== */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0 clamp(4rem, 7vw, 6rem);
}
.article h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  margin: 3rem 0 1.2rem;
  letter-spacing: -0.02em;
}
.article h2:first-child { margin-top: 0; }
.article h3 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
  font-weight: 600;
}
.article p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.article ul, .article ol {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.article ul li::marker, .article ol li::marker { color: var(--primary); }
.article li + li { margin-top: 0.3rem; }
.article strong { color: var(--ink); font-weight: 600; }
.article em { color: var(--primary-dark); font-style: italic; }
.article a { color: var(--primary); border-bottom: 1px solid var(--primary-soft); transition: border-color 0.15s; }
.article a:hover { border-bottom-color: var(--primary); }

.article-toc {
  padding: 1.5rem;
  background: var(--paper-warm);
  border-radius: var(--r-md);
  margin-bottom: 2.5rem;
  border-left: 3px solid var(--primary);
}
.article-toc h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.article-toc ol {
  list-style: decimal-leading-zero inside;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
}
.article-toc ol li::marker {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.article-toc a { border: 0; color: var(--ink-soft); }
.article-toc a:hover { color: var(--primary); }

.callout {
  padding: 1.5rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 90, 31, 0.04);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 1.5rem 0;
  font-style: normal;
}
.callout p { margin: 0; font-size: 0.98rem; }
.callout strong { color: var(--accent-dark); }

/* ====================================================
   GLOSSARY
==================================================== */
.glossary__alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 72px;
  z-index: 10;
  background: rgba(247, 246, 241, 0.92);
  backdrop-filter: blur(10px);
}
.glossary__alpha a {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  border-radius: var(--r-xs);
  transition: background 0.15s, color 0.15s;
}
.glossary__alpha a:hover { background: var(--ink); color: var(--white); }
.glossary__alpha a[data-empty] { color: var(--muted-light); pointer-events: none; }

.glossary__letter {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--primary);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  line-height: 1;
}
.glossary__letter:first-child { margin-top: 0; }

.glossary__term {
  padding: 1.25rem 0;
  border-bottom: 1px dashed var(--line-strong);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}
.glossary__term:last-child { border-bottom: 0; }
.glossary__name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.glossary__abbr {
  display: inline-block;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.glossary__definition {
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.glossary__definition strong { font-weight: 600; color: var(--ink); }
.glossary__definition em { color: var(--primary-dark); font-style: italic; }
@media (max-width: 720px) {
  .glossary__term { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* ====================================================
   FOR WHOM (extended page)
==================================================== */
.persona-big {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}
.persona-big:first-of-type { border-top: 0; }
.persona-big__visual {
  padding: 2.25rem 1.75rem;
  background: var(--paper-warm);
  border-radius: var(--r-lg);
  text-align: center;
  align-self: start;
}
.persona-big__icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  color: var(--primary);
}
.persona-big__icon svg { width: 100%; height: 100%; }
.persona-big__id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.6rem;
  display: block;
}
.persona-big__title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.persona-big__tag {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--white);
  border-radius: var(--r-xs);
}

.persona-big__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.persona-big__situation {
  padding: 1.25rem;
  background: var(--white);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 1rem;
  line-height: 1.55;
}
.persona-big__situation strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.persona-big__value {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.value-card {
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.value-card__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.value-card__text { font-size: 0.95rem; line-height: 1.45; color: var(--ink-soft); }

@media (max-width: 820px) {
  .persona-big { grid-template-columns: 1fr; gap: 1.5rem; }
  .persona-big__value { grid-template-columns: 1fr; }
}

/* ====================================================
   REDUCED MOTION
==================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  [data-scroll] { opacity: 1; transform: none; }
}
/* ============================================================
   Иконка поиска в шапке
============================================================ */
.header-search-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.header-search-link:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.header-search-link svg { width: 18px; height: 18px; }

/* ============================================================
   Автоподсказки (Autocomplete dropdown)
============================================================ */
.search__field { position: relative; }

.cg-autocomplete {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px rgba(10, 10, 10, 0.12), 0 0 0 1px var(--line);
  z-index: 100;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  max-height: 225px;
  overflow-y: auto;
}
.cg-autocomplete.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cg-autocomplete__head {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper-warm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.cg-autocomplete__head strong { color: var(--ink); font-weight: 600; }

.cg-autocomplete__item {
  display: block;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.12s, padding 0.15s;
}
.cg-autocomplete__item:last-child { border-bottom: 0; }
.cg-autocomplete__item:hover,
.cg-autocomplete__item:focus {
  background: var(--primary-soft);
  padding-left: 1.5rem;
  text-decoration: none;
}
.cg-autocomplete__code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.cg-autocomplete__name {
  display: block;
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.cg-autocomplete__meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.cg-autocomplete__meta strong { color: var(--primary); font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; }

.cg-autocomplete__more {
  display: block;
  padding: 0.85rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.15s;
}
.cg-autocomplete__more:hover { background: var(--primary); color: var(--white); }

.cg-autocomplete__empty {
  padding: 1.5rem 1.25rem;
  text-align: center;
}
.cg-autocomplete__empty strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.cg-autocomplete__empty p {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}
.cg-autocomplete__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cg-autocomplete__link {
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--primary);
  border: 1px solid var(--primary-soft);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.cg-autocomplete__link:hover { background: var(--primary); color: var(--white); text-decoration: none; }
.cg-autocomplete__link--cta {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.cg-autocomplete__link--cta:hover { background: var(--accent); border-color: var(--accent); }

@media (max-width: 640px) {
  .cg-autocomplete {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: var(--r-md) var(--r-md) 0 0;
    max-height: 60vh;
  }
}

/* ============================================================
   Форма успеха (после отправки заявки)
============================================================ */
.cg-form-success {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  color: var(--white);
}
.cg-form-success h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}
.cg-form-success p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 48ch;
  margin-inline: auto;
}

/* ============================================================
   Toast уведомления
============================================================ */
.cg-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(140px);
  padding: 14px 20px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-md);
  font-size: 0.92rem;
  font-weight: 500;
  max-width: 92vw;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.cg-toast.is-active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ============================================================
   FIX: autocomplete dropdown must be above chips and hero elements
============================================================ */
.search__field {
  position: relative;
  z-index: 50;
}
.cg-autocomplete {
  z-index: 9999 !important;
}
.hero__search {
  position: relative;
  z-index: 30;
}
.chips {
  position: relative;
  z-index: 1;
}
.hero__preview {
  position: relative;
  z-index: 1;
}

/* ============================================================
   Registry check block on group card
============================================================ */
.registry-btn {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.1rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--ink);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.registry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,10,10,0.08);
  border-color: var(--primary);
  text-decoration: none;
}
.registry-btn__flag {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}
.registry-btn__body { flex: 1; min-width: 0; }
.registry-btn__label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: .15rem;
}
.registry-btn__name {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--primary);
  margin-bottom: .2rem;
  word-break: break-all;
}
.registry-btn__hint {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.3;
}
.registry-btn__arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: color .15s, transform .15s;
}
.registry-btn:hover .registry-btn__arrow {
  color: var(--primary);
  transform: translate(2px, -2px);
}
.registry-btn--by:hover { border-color: #cc1f1a; }
.registry-btn--eaeu:hover { border-color: #0066cc; }
.registry-btn--ru:hover { border-color: #0052b4; }

.tnved-detail .tnved-list ul li:hover {
  background: var(--white) !important;
  border-left: 3px solid var(--primary);
  padding-left: calc(.8rem - 3px) !important;
}

/* ============================================================
   PDF export button on group card
============================================================ */
.group__header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1rem;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-family: var(--font-ui);
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-pdf:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn-pdf:disabled {
  opacity: .6;
  cursor: wait;
}
