/* ============================================================
   IT.Done(); — стили лендингов (v2 «дневной терминал»)
   Тёмные hero и блок формы обрамляют светлый контент.
   Бренд: #F831C8 / #00FFC8 / #000 / #FFF
   Шрифты: JetBrains Mono (текст/код), Sofia Sans (заголовки)
   ============================================================ */

:root {
  /* тёмная тема — по умолчанию (hero, форма, подвал) */
  --bg: #000000;
  --card: #0e0e12;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.16);
  --pink: #F831C8;
  --mint: #00FFC8;          /* акцентный текст: на тёмном — неон */
  --pink-dim: rgba(248, 49, 200, 0.12);
  --mint-dim: rgba(0, 255, 200, 0.10);

  --font: 'Courier Prime', 'Courier New', ui-monospace, monospace;
  --font-display: 'Sofia Sans', 'Arial', sans-serif;
  --container: 1160px;
  --radius: 6px;
}

/* Секции контента — графитовые оттенки поверх чёрного (не плоский #000).
   Классы light/light-alt сохранены как маркеры чередования, но палитра тёмная. */
.light, .light-alt {
  --bg: #141419;            /* графит */
  --card: #1c1c23;          /* карточки светлее фона — дают объём */
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.14);
  --mint: #00FFC8;
  --pink-dim: rgba(248, 49, 200, 0.14);
  --mint-dim: rgba(0, 255, 200, 0.10);
  color: var(--fg);
  position: relative;
}
.light-alt {
  --bg: #0c0c10;            /* тёмный графит — чередуется со светлым */
  --card: #16161c;
}

/* Градиентный разделитель на стыке секций */
.light::before, .light-alt::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(248, 49, 200, 0.55), rgba(0, 255, 200, 0.55), transparent);
  opacity: 0.7;
}

/* Контентные секции — ровный графит без фоновых пятен.
   Неон живёт только на элементах: метрики, флагман-карточка, кнопки, hero, форма. */
.section.light, .section.light-alt { background-color: var(--bg); }
.light > .container, .light-alt > .container { position: relative; z-index: 1; }

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

html { scroll-behavior: smooth; }

body {
  background: #000;
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--pink); color: #000; }

img { max-width: 100%; display: block; }

a { color: var(--mint); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pink); }

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

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

/* ---------- Типографика ---------- */

.h1, .h2, .h3,
.problem-card h3, .service-card h3, .process-step h3,
.case-card h3, .faq-item summary {
  font-family: var(--font-display);
}

.h1 {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 40px 0 20px;
}

.h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 44px;
}

.eyebrow {
  font-family: var(--font);
  color: var(--mint);
  font-size: 0.95rem;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.accent-mint { color: var(--mint); }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background: var(--pink);
  color: #000;
  box-shadow: 0 4px 24px rgba(248, 49, 200, 0.35);
}
.btn-primary:hover {
  background: #00FFC8;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 255, 200, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--pink); color: var(--pink); }

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  transition: transform 0.28s ease;
}
/* Скрытие при скролле вниз (моб.): сдвигаем шапку целиком за верхний край */
.site-header.header-hidden { transform: translateY(-100%); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
}

.logo {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
/* Знак: рамка с галочкой. Размер задан и в атрибутах <img> — без CLS.
   В шапке подключается logo-mark-anim.svg (курсор → галочка, анимация
   и prefers-reduced-motion живут внутри самого файла). */
.logo-mark { width: 36px; height: 36px; flex: none; display: block; }
/* Текстовая часть плотно собрана и не выше знака (36px). */
.logo-lockup { display: flex; flex-direction: column; gap: 1px; }
.logo-word { display: block; line-height: 1; }
.logo-sign {
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.03em;
}
.logo-it, .logo-done { color: #fff; }
.logo-dot { color: var(--pink); }
.logo-br { color: #00FFC8; }

/* Верхний ряд: разделы сайта */
.nav-sections {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-left: auto;
}
.nav-page-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-page-link:hover { color: var(--pink); }

.btn-header { padding: 10px 18px; font-size: 0.9rem; }

/* Нижний ряд: якоря лендинга */
.header-anchors {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.4);
}
.nav-anchors {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  /* всё в одну строку, ничего не переносится */
  flex-wrap: nowrap;
  overflow: hidden;
}
.nav-anchors-visible {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
}
.nav-anchor {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-anchor::before { content: '// '; opacity: 0.55; }
.nav-anchor:hover { color: var(--mint); }
/* пункт, спрятанный в меню «...» */
.nav-anchor.is-hidden { display: none; }

/* Кнопка «...» и её меню */
.nav-anchors-more { position: relative; flex-shrink: 0; margin-left: 4px; }
.nav-more-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 40px;
  height: 30px;
  padding: 0 12px;
  cursor: pointer;
}
.nav-more-btn span {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--muted);
}
.nav-more-btn:hover { border-color: var(--mint); }
.nav-more-btn:hover span { background: var(--mint); }

.nav-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #0c0c10;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  z-index: 60;
}
.nav-more-menu a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 9px 12px;
  border-radius: 5px;
  white-space: nowrap;
}
.nav-more-menu a::before { content: '// '; opacity: 0.55; }
.nav-more-menu a:hover { color: var(--mint); background: rgba(255, 255, 255, 0.04); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.burger span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero + терминал (тёмная зона) ---------- */

.hero {
  padding: 72px 0 96px;
  background:
    radial-gradient(ellipse 55% 50% at 80% 5%, rgba(248, 49, 200, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 45% at 8% 95%, rgba(0, 255, 200, 0.16), transparent 60%),
    #000;
}

.hero-lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 34px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.terminal {
  max-width: 640px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: #0e0e12;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(248, 49, 200, 0.12);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.t-dot { width: 11px; height: 11px; border-radius: 50%; }
.t-pink { background: var(--pink); }
.t-mint { background: #00FFC8; }
.t-white { background: #fff; opacity: 0.5; }
.terminal-title { margin-left: 8px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); }

.terminal-body { padding: 18px 20px 20px; font-size: 0.98rem; }
.terminal-line { color: #fff; word-break: break-word; }
.t-prompt { color: var(--pink); }
.terminal-out { margin-top: 8px; color: rgba(255, 255, 255, 0.75); }
.t-ok { color: #00FFC8; }

.cursor {
  display: inline-block;
  width: 9px;
  height: 1.1em;
  vertical-align: text-bottom;
  background: #00FFC8;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Секции ---------- */

.section { padding: 96px 0; }

/* ---------- Карточки (проблема / услуги) ---------- */

.problem-grid, .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.problem-card, .service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 28px 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.problem-card:hover {
  border-color: rgba(0, 255, 200, 0.4);
  box-shadow: 0 0 0 1px rgba(0, 255, 200, 0.15), 0 10px 40px rgba(0, 255, 200, 0.08);
}

.problem-card h3, .service-card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 12px; }
.problem-card p, .service-card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Услуги ---------- */

.service-card {
  display: block;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
a.service-card:hover {
  border-color: var(--pink);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(248, 49, 200, 0.14);
  color: var(--fg);
}

.service-tag {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.8rem;
  color: var(--mint);
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 2px 10px;
  margin-bottom: 16px;
}

.service-card-flag {
  border-color: rgba(248, 49, 200, 0.6);
  background: linear-gradient(160deg, rgba(248, 49, 200, 0.16), var(--card) 60%);
  box-shadow: 0 0 0 1px rgba(248, 49, 200, 0.2), 0 12px 44px rgba(248, 49, 200, 0.14);
}
.service-card-flag .service-tag { color: var(--pink); }

.service-more { display: inline-block; margin-top: 16px; color: var(--pink); font-size: 0.92rem; }

/* ---------- Процесс ---------- */

.process { list-style: none; max-width: 820px; }

.process-step {
  position: relative;
  padding: 0 0 40px 76px;
  border-left: 1px solid var(--line);
  margin-left: 26px;
}
.process-step:last-child { padding-bottom: 0; }

.step-num {
  position: absolute;
  left: -27px;
  top: -4px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 2px solid var(--pink);
  border-radius: 50%;
  color: var(--pink);
  font-weight: 700;
  box-shadow: 0 0 20px rgba(248, 49, 200, 0.4);
}

.process-step h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.process-step p { color: var(--muted); max-width: 640px; }

/* ---------- Кейсы ---------- */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}

.case-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 28px 26px;
}

.case-niche { font-size: 0.82rem; color: var(--muted); margin-bottom: 10px; letter-spacing: 0.05em; }
.case-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 18px; }

.case-metric { margin-bottom: 18px; }
.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 800;
  color: var(--pink);
  line-height: 1.05;
  text-shadow: 0 0 24px rgba(248, 49, 200, 0.45);
}
.metric-label { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

.case-card > p { color: var(--muted); font-size: 0.97rem; }

.logos-title { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }
.logos-row { display: flex; gap: 40px; flex-wrap: wrap; align-items: center; }
.client-logo {
  height: 30px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}
.client-logo:hover { opacity: 1; }
.logos-row img { height: 30px; }
.logo-slot {
  border: 1px dashed var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 10px 26px;
}

/* ---------- Стоимость ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.pricing-from { font-size: 1.15rem; margin-bottom: 18px; color: var(--muted); }
.pricing-sum {
  font-family: var(--font-display);
  color: var(--pink);
  font-weight: 800;
  font-size: 2.4rem;
}
.pricing-main p { color: var(--muted); margin-bottom: 28px; max-width: 520px; }

.pricing-points { list-style: none; }
.pricing-points li {
  position: relative;
  padding: 0 0 18px 30px;
  color: var(--muted);
}
.pricing-points li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 700;
}

/* ---------- FAQ ---------- */

.faq { max-width: 820px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 12px;
}
.faq-item summary {
  cursor: pointer;
  padding: 20px 24px;
  font-size: 1.1rem;
  font-weight: 800;
  list-style: none;
  position: relative;
  padding-right: 52px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pink);
  font-size: 1.4rem;
  font-weight: 400;
}
.faq-item[open] summary::after { content: '−'; color: var(--mint); }
.faq-item p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Форма (тёмная зона) ---------- */

.section-contact {
  background:
    radial-gradient(ellipse 50% 60% at 90% 20%, rgba(248, 49, 200, 0.14), transparent),
    radial-gradient(ellipse 45% 55% at 5% 95%, rgba(0, 255, 200, 0.09), transparent),
    #000;
  color: #fff;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-lead { color: rgba(255, 255, 255, 0.8); margin-bottom: 26px; }

.contact-points { list-style: none; }
.contact-points li { position: relative; padding: 0 0 14px 30px; color: rgba(255, 255, 255, 0.8); }
.contact-points li::before { content: '>'; position: absolute; left: 0; color: #00FFC8; font-weight: 700; }

.lead-form {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: #0e0e12;
  padding: 32px;
}

.field { display: block; margin-bottom: 18px; }
.field-label { display: block; font-size: 0.85rem; color: rgba(255, 255, 255, 0.72); margin-bottom: 7px; }

.field input, .field textarea {
  width: 100%;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  padding: 13px 15px;
  transition: border-color 0.18s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: #00FFC8;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.38); }
.field textarea { resize: vertical; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.smart-captcha { margin: 6px 0 20px; min-height: 100px; }

.btn-submit { width: 100%; }
.btn-submit[disabled] { opacity: 0.6; cursor: wait; }

.form-status { margin-top: 14px; font-size: 0.95rem; min-height: 1.4em; }
.form-status.ok { color: #00FFC8; }
.form-status.error { color: var(--pink); }

.form-privacy { margin-top: 14px; font-size: 0.78rem; color: rgba(255, 255, 255, 0.62); }
.form-privacy a { color: rgba(255, 255, 255, 0.62); }

/* ---------- Подвал (тёмная зона) ---------- */

.site-footer { background: #000; border-top: 1px solid rgba(255, 255, 255, 0.16); padding: 56px 0 28px; color: #fff; }

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}

.footer-tagline { color: rgba(255, 255, 255, 0.65); font-size: 0.9rem; margin-top: 10px; }

.footer-nav, .footer-contacts { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contacts a { color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: 0.95rem; }
.footer-nav a:hover, .footer-contacts a:hover { color: #00FFC8; }

.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 22px; color: rgba(255, 255, 255, 0.6); font-size: 0.8rem; }
.footer-legal-entity { margin-top: 6px; color: rgba(255, 255, 255, 0.45); }
.footer-legal-docs { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal-docs a { color: rgba(255, 255, 255, 0.5); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.footer-legal-docs a:hover { color: var(--mint); border-bottom-color: var(--mint); }

/* ---------- Появление при скролле ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor { animation: none; }
  .btn, a.service-card { transition: none; }
}

/* ---------- Адаптив ---------- */

@media (max-width: 960px) {
  .contact-inner, .pricing-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-sections {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    padding: 8px 24px 16px;
  }
  .nav-sections.open { display: flex; }
  .nav-page-link { padding: 12px 0; font-size: 1rem; }

  .burger { display: flex; margin-left: auto; }
  .btn-header { display: none; }

  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Якоря остаются отдельной строкой и на мобильном, «...» работает так же */
  .header-anchors { position: relative; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 64px; }
  .lead-form { padding: 22px 18px; }
  .process-step { padding-left: 56px; margin-left: 20px; }
  .step-num { width: 42px; height: 42px; left: -22px; font-size: 0.85rem; }
  .hero-cta .btn { width: 100%; text-align: center; }
}

/* ============================================================
   БЛОГ
   ============================================================ */

.blog-hero {
  padding: 64px 0 72px;
  background:
    radial-gradient(ellipse 55% 50% at 80% 10%, rgba(248, 49, 200, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 45% at 5% 95%, rgba(0, 255, 200, 0.12), transparent 60%),
    #000;
}
.blog-hero .h1 { margin-top: 18px; }
.blog-hero .hero-lead { margin-bottom: 0; }

/* --- Фильтр --- */

.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 9px 20px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.filter-btn:hover { color: var(--fg); border-color: rgba(255, 255, 255, 0.4); }
.filter-btn.is-active {
  color: #000;
  background: var(--mint);
  border-color: var(--mint);
  font-weight: 700;
}

/* --- Сетка статей --- */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.article-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.article-card:hover {
  border-color: rgba(248, 49, 200, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 10px 34px rgba(248, 49, 200, 0.12);
}
.article-card[hidden] { display: none; }

.article-link {
  display: block;
  padding: 26px 24px;
  text-decoration: none;
  color: var(--fg);
  height: 100%;
}

.article-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
.article-cat { color: var(--mint); }
.article-dot { opacity: 0.5; }

.article-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.article-excerpt { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }

.article-more { color: var(--pink); font-size: 0.92rem; }

.blog-empty { color: var(--muted); padding: 30px 0; }

/* --- Рекомендуемые статьи на главной --- */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.blog-all-link { display: inline-block; font-size: 1rem; }

/* ============================================================
   СТРАНИЦА СТАТЬИ
   ============================================================ */

.container-narrow { max-width: 760px; }

.article-head {
  padding: 56px 0 44px;
  background:
    radial-gradient(ellipse 60% 60% at 85% 0%, rgba(248, 49, 200, 0.16), transparent 65%),
    #000;
}

.article-breadcrumb { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 18px; }
.article-breadcrumb a { color: var(--mint); text-decoration: none; }
.article-breadcrumb span { opacity: 0.5; margin: 0 4px; }

.article-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
  color: #fff;
}

.article-meta-big { font-size: 0.92rem; color: rgba(255, 255, 255, 0.72); margin-bottom: 0; }

/* --- Тело статьи: тёмная тема по умолчанию --- */

.article-body-wrap {
  --art-bg: #141419;
  --art-fg: rgba(255, 255, 255, 0.92);
  --art-strong: #ffffff;
  --art-muted: rgba(255, 255, 255, 0.62);
  --art-line: rgba(255, 255, 255, 0.14);
  --art-card: #1c1c23;
  --art-accent: #00FFC8;
  background: var(--art-bg);
  color: var(--art-fg);
  padding: 40px 0 80px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* --- Светлая тема чтения --- */

.article-body-wrap.reading-light {
  --art-bg: #faf9f7;
  --art-fg: #23232a;
  --art-strong: #0d0d10;
  --art-muted: #5c5c66;
  --art-line: rgba(0, 0, 0, 0.14);
  --art-card: #ffffff;
  --art-accent: #00806b;
}

/* --- Переключатель темы --- */

.reader-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-bottom: 26px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--art-line);
}

.reader-hint { font-size: 0.82rem; color: var(--art-muted); }

/* Ссылка на источник в конце статьи */
.article-content .article-source {
  margin-top: 2.4em;
  padding-top: 1.2em;
  border-top: 1px solid var(--art-line);
  font-size: 0.9rem;
  color: var(--art-muted);
}
.article-content .article-source a { color: var(--art-accent); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--art-muted);
  padding: 4px;
}
.theme-toggle:hover { color: var(--art-strong); }

.toggle-track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--art-line);
  transition: background-color 0.22s ease;
  flex-shrink: 0;
}
.toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pink);
  transition: transform 0.22s ease, background-color 0.22s ease;
}
.reading-light .toggle-track { background: rgba(0, 0, 0, 0.1); }
.reading-light .toggle-knob { transform: translateX(20px); background: #ffb800; }

/* --- Типографика статьи --- */

.article-content { font-size: 1.06rem; line-height: 1.78; }

.article-content > * + * { margin-top: 1.35em; }

.article-content .lead {
  font-size: 1.22rem;
  line-height: 1.62;
  color: var(--art-strong);
  border-left: 3px solid var(--pink);
  padding-left: 20px;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--art-strong);
  margin-top: 2.2em;
  letter-spacing: -0.01em;
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--art-strong);
  margin-top: 1.8em;
}

.article-content p { color: var(--art-fg); }

.article-content strong { color: var(--art-strong); font-weight: 700; }

.article-content ul, .article-content ol { padding-left: 4px; list-style: none; }
.article-content li { position: relative; padding-left: 28px; margin-bottom: 0.8em; }
.article-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--art-accent);
}
.article-content ol { counter-reset: li; }
.article-content ol li { counter-increment: li; }
.article-content ol li::before {
  content: counter(li) '.';
  position: absolute;
  left: 0;
  color: var(--art-accent);
  font-weight: 700;
}

.article-content blockquote {
  border-left: 3px solid var(--art-accent);
  padding: 4px 0 4px 22px;
  margin-left: 0;
}
.article-content blockquote p {
  font-size: 1.14rem;
  line-height: 1.6;
  color: var(--art-strong);
}

.article-content .callout {
  background: var(--art-card);
  border: 1px solid var(--art-line);
  border-radius: 8px;
  padding: 24px 26px;
  margin-top: 2em;
}
.article-content .callout-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--art-strong);
  margin-bottom: 10px;
}
.article-content .callout p:last-child { margin-bottom: 0; color: var(--art-fg); }

.article-content a { color: var(--art-accent); }

/* --- CTA внутри статьи --- */

.article-cta {
  margin-top: 56px;
  padding: 32px 30px;
  border: 1px solid var(--art-line);
  border-radius: 10px;
  background: var(--art-card);
}
.article-cta-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--art-strong);
  margin-bottom: 10px;
}
.article-cta-text { color: var(--art-muted); margin-bottom: 22px; }

/* --- Читайте также --- */

.article-related { margin-top: 56px; }
.article-related .eyebrow { color: var(--art-accent); }

.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

.related-card {
  display: block;
  border: 1px solid var(--art-line);
  border-radius: 8px;
  background: var(--art-card);
  padding: 20px 22px;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.related-card:hover { border-color: var(--pink); transform: translateY(-2px); }
.related-cat { display: block; font-size: 0.8rem; color: var(--art-accent); margin-bottom: 8px; }
.related-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--art-strong);
}

@media (max-width: 600px) {
  .article-content { font-size: 1rem; }
  .article-content .lead { font-size: 1.1rem; padding-left: 16px; }
  .article-cta { padding: 24px 20px; }
  .reader-bar { justify-content: space-between; }
}

/* --- Плашка «Аналитика» под блоком услуг --- */

.services-note {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--mint);
  border-radius: var(--radius);
  background: var(--card);
}
.services-note .service-tag { margin-bottom: 0; flex-shrink: 0; }
.services-note h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; }
.services-note p { color: var(--muted); font-size: 0.97rem; }

@media (max-width: 700px) {
  .services-note { flex-direction: column; gap: 16px; }
}

/* --- Чекбоксы согласий --- */

.consents { margin: 22px 0 20px; display: flex; flex-direction: column; gap: 13px; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  font-size: 0.83rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.consent input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.consent-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  background: #000;
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.consent-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s ease;
}
.consent input:checked + .consent-box {
  background: var(--mint);
  border-color: var(--mint);
}
.consent input:checked + .consent-box::after { transform: rotate(45deg) scale(1); }
.consent input:focus-visible + .consent-box { outline: 2px solid var(--pink); outline-offset: 2px; }
.consent:hover .consent-box { border-color: rgba(255, 255, 255, 0.6); }

.consent-text a { color: var(--mint); }
.req { color: var(--pink); }

/* ============================================================
   АНИМИРОВАННАЯ ИНФОГРАФИКА
   ============================================================ */

.infographics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 28px 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.info-card-wide { grid-column: span 2; }

.counter {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--mint);
  text-shadow: 0 0 26px rgba(0, 255, 200, 0.4);
}
.info-label { color: var(--muted); font-size: 0.95rem; margin-top: 12px; }

.info-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 18px;
}

/* Линейный график */
.growth-chart { width: 100%; height: 200px; display: block; }
.chart-grid { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }

.growth-line {
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  filter: drop-shadow(0 0 6px rgba(0, 255, 200, 0.5));
}
.growth-area { opacity: 0; }

.info-card.is-visible .growth-line {
  animation: draw-line 1.8s ease forwards;
}
.info-card.is-visible .growth-area {
  animation: fade-area 1.2s ease 0.8s forwards;
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes fade-area { to { opacity: 1; } }

.chart-legend { display: flex; justify-content: space-between; margin-top: 8px; }
.legend-months { font-size: 0.8rem; color: var(--muted); }

/* Пайчарт */
.pie-wrap { display: flex; justify-content: center; margin-bottom: 18px; }
.pie { width: 130px; height: 130px; transform: rotate(-90deg); }
.pie-track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 14; }
.pie-seg {
  fill: none;
  stroke-width: 14;
  stroke-dasharray: 0 314;
  transition: stroke-dasharray 1.1s ease;
}
.seg-1 { stroke: var(--pink); }
.seg-2 { stroke: var(--mint); }
.seg-3 { stroke: #6b6bff; }

.pie-legend { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.pie-legend li { display: flex; align-items: center; gap: 9px; font-size: 0.9rem; color: var(--muted); }
.pie-legend b { color: var(--fg); margin-left: auto; }
.pie-dot { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.dot-1 { background: var(--pink); }
.dot-2 { background: var(--mint); }
.dot-3 { background: #6b6bff; }

.info-disclaimer { margin-top: 22px; font-size: 0.82rem; color: var(--muted); font-style: italic; }

@media (max-width: 860px) {
  .infographics-grid { grid-template-columns: 1fr 1fr; }
  .info-card-wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .infographics-grid { grid-template-columns: 1fr; }
  .info-card-wide { grid-column: span 1; }
  .counter { font-size: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .growth-line { stroke-dashoffset: 0; }
  .growth-area { opacity: 1; }
  .info-card.is-visible .growth-line,
  .info-card.is-visible .growth-area { animation: none; }
}

/* ============================================================
   АВТОРЫ, СОДЕРЖАНИЕ, ОБОГАЩЕНИЕ СТАТЕЙ
   ============================================================ */

/* Аватары: общий фолбэк, если картинки нет */
.avatar-fallback {
  background: linear-gradient(135deg, var(--pink), #6b6bff);
  display: inline-block;
}
.author-avatar, .quote-avatar, .author-card-avatar, .card-author-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Автор в шапке статьи */
.article-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.article-author .author-avatar { width: 52px; height: 52px; }
.author-info { display: flex; flex-direction: column; line-height: 1.35; }
.author-name { font-weight: 700; color: #fff; }
.author-role { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

/* Автор в карточке списка */
.card-author { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.card-author-avatar { width: 28px; height: 28px; }
.card-author-name { font-size: 0.8rem; color: var(--muted); }

/* Содержание */
.article-toc {
  border: 1px solid var(--art-line);
  border-radius: 8px;
  background: var(--art-card);
  padding: 22px 26px;
  margin-bottom: 36px;
}
.toc-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--art-strong);
  margin-bottom: 12px;
}
.article-toc ol { list-style: none; counter-reset: toc; }
.article-toc li { counter-increment: toc; margin-bottom: 8px; padding-left: 30px; position: relative; }
.article-toc li::before {
  content: counter(toc);
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  color: var(--art-accent);
  border: 1px solid var(--art-line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-toc a { color: var(--art-fg); text-decoration: none; }
.article-toc a:hover { color: var(--art-accent); }

/* Проверенные цифры */
.article-facts { margin-top: 48px; }
.facts-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--art-strong);
  margin-bottom: 18px;
}
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fact {
  border: 1px solid var(--art-line);
  border-radius: 8px;
  padding: 20px;
  background: var(--art-card);
}
.fact-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--pink);
  line-height: 1.1;
}
.reading-light .fact-value { color: #c81a9e; }
.fact-label { display: block; font-size: 0.85rem; color: var(--art-muted); margin-top: 8px; }

/* Цитата автора */
.article-quote {
  margin: 48px 0 0;
  padding: 30px 32px;
  border: 1px solid var(--art-line);
  border-left: 3px solid var(--pink);
  border-radius: 8px;
  background: var(--art-card);
}
.article-quote blockquote { border: none; padding: 0; margin: 0; }
.article-quote blockquote p {
  font-size: 1.24rem;
  line-height: 1.55;
  color: var(--art-strong);
  margin: 0;
}
.article-quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--art-muted);
}
.article-quote figcaption b { color: var(--art-strong); }
.quote-avatar { width: 44px; height: 44px; }

/* Что запомнить */
.article-takeaways {
  margin-top: 48px;
  padding: 28px 30px;
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(0, 255, 200, 0.08), var(--art-card) 60%);
  border: 1px solid var(--art-line);
}
.reading-light .article-takeaways {
  background: linear-gradient(160deg, rgba(0, 128, 107, 0.08), var(--art-card) 60%);
}
.takeaways-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--art-strong);
  margin-bottom: 16px;
}
.article-takeaways ul { list-style: none; }
.article-takeaways li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--art-fg);
}
.article-takeaways li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--art-accent);
  font-weight: 700;
}

/* Мини-FAQ статьи */
.article-faq { margin-top: 48px; }
.article-faq-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--art-strong);
  margin-bottom: 16px;
}
.article-faq-item {
  border-color: var(--art-line);
  background: var(--art-card);
}
.article-faq-item summary { color: var(--art-strong); font-size: 1.02rem; }
.article-faq-item p { color: var(--art-fg); }

/* Карточка автора внизу */
.article-author-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 48px;
  padding: 24px 26px;
  border: 1px solid var(--art-line);
  border-radius: 10px;
  background: var(--art-card);
}
.author-card-avatar { width: 64px; height: 64px; }
.author-card-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--art-strong);
  margin-bottom: 6px;
}
.author-card-name span { font-family: var(--font); font-weight: 400; font-size: 0.85rem; color: var(--art-muted); }
.author-card-bio { color: var(--art-muted); font-size: 0.92rem; }

@media (max-width: 560px) {
  .facts-grid { grid-template-columns: 1fr; }
  .article-quote blockquote p { font-size: 1.1rem; }
}
