/* ============================================================
   Flexxt — main.css
   Модульная структура: каждый блок страницы — изолированная
   секция стилей. Порядок: base → announce → header → hero →
   board → trust → sticky-cta. Медиазапросы в конце каждой секции.
   ============================================================ */

/* ---------- base ---------- */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

@keyframes rise   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bgDrift { from { transform: translate3d(-2%,-1%,0) scale(1); } to { transform: translate3d(2%,1.5%,0) scale(1.06); } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- announce bar (блок 0) ---------- */
.announce-wrap {
  max-height: 42px;
  overflow: hidden;
  transition: max-height .25s cubic-bezier(.22,1,.36,1);
}
.announce-wrap.is-closed { max-height: 0; }
.announce-bar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 42px;
  background: var(--accent); color: #fff;
  position: relative; cursor: pointer;
  transition: background .2s;
}
.announce-bar:hover { background: var(--accent-hover); color: #fff; }
.announce-text-desktop { font-size: 14.5px; font-weight: 500; letter-spacing: -0.005em; }
.announce-text-mobile { display: none; font-size: 13px; font-weight: 500; white-space: nowrap; }
.announce-arrow { display: inline-block; transition: transform .2s; }
.announce-bar:hover .announce-arrow { transform: translateX(3px); }
.announce-close {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: none; background: transparent;
  color: rgba(255,255,255,.7); font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color .2s;
}
.announce-close:hover { color: #fff; }
@media (max-width: 760px) {
  .announce-text-desktop { display: none; }
  .announce-text-mobile { display: inline; }
}

/* ---------- фон hero ---------- */
.hero-root { background: var(--bg); min-height: 100vh; position: relative; z-index: 0; }
.hero-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-bg-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(22,23,46,.10) 1.1px, transparent 1.1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(1100px 720px at 50% 36%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(1100px 720px at 50% 36%, #000, transparent 75%);
}
.hero-bg-glow {
  position: absolute; inset: -20%;
  background:
    radial-gradient(46% 34% at 50% 52%, rgba(52,60,237,.07), transparent 70%),
    radial-gradient(38% 30% at 78% 6%,  rgba(52,60,237,.045), transparent 70%),
    radial-gradient(40% 32% at 10% 82%, rgba(178,106,0,.05), transparent 70%);
  animation: bgDrift 16s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-bg flexxt-comet { position: absolute; inset: 0; }

/* ---------- header ---------- */
.site-header {
  max-width: var(--container); margin: 0 auto;
  padding: 22px var(--pad-x) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 15px; color: var(--ink); transition: color .2s; }
.nav-link:hover { color: var(--accent); }

/* кнопки */
.btn-primary {
  display: inline-block;
  padding: 14px 28px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500;
  background: var(--accent); color: #fff;
  box-shadow: var(--shadow-btn);
  transition: all .2s;
}
.btn-primary:hover {
  background: var(--accent-hover); color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn-hover);
}
.btn-primary--nav { padding: 11px 20px; font-size: 14px; }
.btn-secondary {
  display: inline-block;
  padding: 14px 28px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500;
  border: 1px solid var(--line);
  background: var(--card); color: var(--ink);
  box-shadow: var(--shadow-card);
  transition: all .2s;
}
.btn-secondary:hover {
  border-color: var(--ink); color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(22,23,46,.08), 0 8px 18px rgba(22,23,46,.10);
}

/* ---------- hero (блок 1) ---------- */
.hero { max-width: var(--container); margin: 0 auto; padding: 56px var(--pad-x); text-align: left; }
.hero h1 {
  margin: 0; max-width: 900px;
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 500; line-height: 1.05; letter-spacing: -0.02em;
  animation: rise .6s cubic-bezier(.22,1,.36,1) .1s backwards;
}
.hero-sub {
  font-size: 18px; color: var(--ink-soft);
  max-width: 620px; margin: 22px 0 0; line-height: 1.5;
  animation: rise .6s cubic-bezier(.22,1,.36,1) .22s backwards;
}
.hero-stats {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  gap: 16px 56px; margin-top: 36px;
  animation: rise .6s cubic-bezier(.22,1,.36,1) .3s backwards;
}
.stat { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.stat-num { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.stat-label { font-size: 13.5px; color: var(--ink-soft); max-width: 220px; line-height: 1.4; }
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px;
  animation: rise .6s cubic-bezier(.22,1,.36,1) .38s backwards;
}

/* ---------- автоканбан (виджет) ---------- */
.board-section {
  max-width: var(--container); margin: 0 auto;
  padding: 0 var(--pad-x) 24px;
  animation: fadein .8s ease .55s backwards;
}

/* ---------- trust bar (блок 2) ---------- */
.trust { max-width: var(--container); margin: 0 auto; padding: 40px var(--pad-x) 100px; }
.trust-label {
  font-size: 11px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft); text-align: center;
}
.trust-mask {
  overflow: hidden; margin-top: 26px;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.trust-track {
  display: flex; width: max-content;
  animation: marquee 26s linear infinite;
  color: var(--ink); opacity: .55;
}
.trust-row { display: flex; align-items: center; gap: 72px; padding-right: 72px; }
.trust-brand { font-size: 15px; font-weight: 600; letter-spacing: .14em; white-space: nowrap; }

/* ---------- sticky CTA (мобайл) ---------- */
.sticky-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(247,245,242,.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  justify-content: center;
}
.sticky-cta .btn-primary { display: block; width: 100%; max-width: 420px; text-align: center; }

@media (max-width: 760px) {
  .site-nav { display: none; }
  .sticky-cta { display: flex; }
  .hero-root { padding-bottom: 96px; }
}

/* ============================================================
   v0.2 — блоки 3–5 + бургер-меню
   ============================================================ */

/* ---------- общие элементы секций ---------- */
.section { max-width: var(--container); margin: 0 auto; padding: 96px var(--pad-x) 0; }
.section-head { max-width: 720px; }
.section-title { margin: 0; font-size: clamp(28px, 3.6vw, 44px); font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; color: var(--accent); }
.section-sub { margin: 14px 0 0; font-size: 17px; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 760px) { .section { padding-top: 64px; } }

/* ---------- блок 3: проблемы ---------- */
.problems-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 40px;
}
.p-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 24px 22px;
  box-shadow: var(--shadow-card);
}
.p-card-title { margin: 0; font-size: 17.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.p-card-text { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.bridge {
  margin-top: 36px; font-size: 16.5px; font-weight: 500;
  color: var(--ink);
}
.bridge a { color: var(--accent); }
.bridge a:hover { color: var(--accent-hover); }
@media (max-width: 1024px) { .problems-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .problems-grid { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- блок 4: решение ---------- */
.solution-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 40px;
}
.s-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 24px 22px;
  box-shadow: var(--shadow-card);
  transition: transform .2s, box-shadow .2s;
}
.s-card-dot {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600;
}
.s-card-title { margin: 14px 0 0; font-size: 17.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.s-card-text { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 1024px) { .solution-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .solution-grid { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- блок 5: кейс (тёмная панель — акцент страницы) ---------- */
.case-section { max-width: var(--container); margin: 0 auto; padding: 96px var(--pad-x) 0; }
.case-panel {
  background: var(--accent); color: #fff;
  border-radius: 22px; padding: 56px 56px 48px;
  position: relative; overflow: hidden;
}
.case-panel::after { /* лёгкое синее свечение в углу */
  content: ""; position: absolute; right: -15%; top: -30%;
  width: 60%; height: 90%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,255,255,.22), transparent 70%);
  pointer-events: none;
}
.case-chip {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.16); color: #fff;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.case-title { margin: 18px 0 0; font-size: clamp(26px, 3.4vw, 42px); font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; max-width: 720px; }
.case-sub { margin: 14px 0 0; font-size: 16.5px; line-height: 1.55; color: rgba(255,255,255,.82); max-width: 640px; }
.case-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: 40px; position: relative; z-index: 1;
}
.case-stat {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 14px; padding: 20px;
}
.case-stat-num { font-size: 27px; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.case-stat-label { margin-top: 6px; font-size: 13px; line-height: 1.4; color: rgba(255,255,255,.78); }
.case-beforeafter {
  margin: 28px 0 0; font-size: 15.5px; line-height: 1.55;
  color: rgba(255,255,255,.90);
  border-left: 3px solid rgba(255,255,255,.55);
  padding-left: 16px; max-width: 680px;
}
.case-cta { margin-top: 32px; }
.case-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15.5px; font-weight: 500; color: rgba(255,255,255,.85);
  transition: color .2s;
}
.case-link:hover { color: #fff; }
.case-link .arrow { transition: transform .2s; }
.case-link:hover .arrow { transform: translateX(3px); }
@media (max-width: 1024px) { .case-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px)  {
  .case-section { padding-top: 64px; }
  .case-panel { padding: 32px 22px 30px; border-radius: 18px; }
}
@media (max-width: 480px)  { .case-stats { grid-template-columns: 1fr 1fr; gap: 10px; } .case-stat { padding: 16px 14px; } .case-stat-num { font-size: 22px; } }

/* ---------- бургер-меню (мобайл) ---------- */
.burger {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  border: none; background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
  position: relative; z-index: 120;
}
.burger-lines { position: relative; width: 22px; height: 16px; display: block; }
.burger-lines span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s, opacity .2s, top .25s;
}
.burger-lines span:nth-child(1) { top: 0; }
.burger-lines span:nth-child(2) { top: 7px; }
.burger-lines span:nth-child(3) { top: 14px; }
.burger.is-open .burger-lines span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.burger.is-open .burger-lines span:nth-child(2) { opacity: 0; }
.burger.is-open .burger-lines span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 110;
  background: var(--bg);
  padding: 96px var(--pad-x) 24px;
  flex-direction: column;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}
.mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu-link {
  display: block; padding: 15px 2px;
  font-size: 19px; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-menu-link:hover { color: var(--accent); }
.mobile-menu .btn-primary { margin-top: 24px; text-align: center; }
body.menu-open { overflow: hidden; }

@media (max-width: 760px) {
  .burger { display: flex; }
  .mobile-menu { display: flex; }
  .site-header { position: relative; z-index: 120; }
}

/* ---------- scroll-reveal (анимация появления карточек) ---------- */
/* Класс .reveal навешивается через JS — без JS контент виден сразу */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- ховер карточек: подъём только активной ---------- */
.p-card, .s-card, .case-stat {
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s, background .3s, border-color .3s;
}
@media (hover: hover) and (pointer: fine) {
  .p-card:hover, .s-card:hover {
    transform: translateY(-6px) scale(1.02);
    position: relative; z-index: 1;
    box-shadow: 0 2px 4px rgba(22,23,46,.08), 0 14px 30px rgba(22,23,46,.13);
  }
  .case-stat:hover {
    transform: translateY(-6px) scale(1.02);
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.34);
  }
}

/* ============================================================
   v0.4 — блоки 7–9: внедрение, сегментация, интеграции
   ============================================================ */

/* ---------- блок 7: как происходит внедрение ---------- */
.steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 20px 16px; margin-top: 44px;
  counter-reset: step;
  position: relative;
}
.step { position: relative; text-align: center; }
.step-num {
  width: 46px; height: 40px; border-radius: 12px;
  margin: 0 auto;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600;
  position: relative; z-index: 1;
  transition: background .35s, color .35s, box-shadow .35s;
}
.step.is-active .step-num {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
/* соединительная рельса между шагами: серое основание + синяя заливка */
.step:not(:last-child)::before {
  content: ""; position: absolute;
  top: 20px; left: calc(50% + 31px); right: calc(-50% + 31px); height: 2px;
  background: var(--line);
}
.step:not(:last-child)::after {
  content: ""; position: absolute;
  top: 20px; left: calc(50% + 31px); right: calc(-50% + 31px); height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1.1s linear;
}
.step.is-filled:not(:last-child)::after { transform: scaleX(1); }
.steps.no-anim .step-num,
.steps.no-anim .step::after { transition: none !important; }
.step-title { margin: 16px 0 0; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.step-text { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }

.migration-note {
  margin-top: 36px; padding: 18px 22px; border-radius: 14px;
  background: var(--accent-soft);
  font-size: 15px; line-height: 1.5; color: var(--ink);
}
.migration-note b { color: var(--accent); font-weight: 600; }

@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .step:not(:last-child)::before,
  .step:not(:last-child)::after { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 26px 62px; text-align: left; }
  .step .step-num { margin: 0; }
  .step-num { position: absolute; left: 0; top: 0; }
  .step-title { margin-top: 8px; }
  /* вертикальная линия на мобайле */
  .step:not(:last-child)::before,
  .step:not(:last-child)::after {
    display: block; top: 44px; bottom: 2px; left: 22px; right: auto;
    width: 2px; height: auto;
  }
  .step:not(:last-child)::after {
    transform: scaleY(0); transform-origin: top center;
  }
  .step.is-filled:not(:last-child)::after { transform: scaleY(1); }
}

/* ---------- блок 8: для кого (сегментация) ---------- */
.segments-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 40px;
}
.seg-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 26px 24px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
}
@media (hover: hover) and (pointer: fine) {
  .seg-card:hover {
    transform: translateY(-6px) scale(1.02);
    position: relative; z-index: 1;
    box-shadow: 0 2px 4px rgba(22,23,46,.08), 0 14px 30px rgba(22,23,46,.13);
  }
}
.seg-volume { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--accent); }
.seg-title { margin: 12px 0 0; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.seg-text { margin: 8px 0 18px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.seg-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14.5px; font-weight: 600; color: var(--accent);
}
.seg-link .arrow { transition: transform .2s; }
.seg-link:hover .arrow { transform: translateX(3px); }
@media (max-width: 900px) { .segments-grid { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- блок 9: интеграции (лента) ---------- */
.integrations-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 36px;
}
.i-chip {
  padding: 11px 18px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 14.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--ink); opacity: .85;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s, border-color .25s, opacity .25s;
}
@media (hover: hover) and (pointer: fine) {
  .i-chip:hover {
    transform: translateY(-3px); opacity: 1;
    border-color: var(--accent); box-shadow: var(--shadow-card);
  }
}
.integrations-more { margin-top: 28px; }
.integrations-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15.5px; font-weight: 600; color: var(--accent);
}
.integrations-link .arrow { transition: transform .2s; }
.integrations-link:hover .arrow { transform: translateX(3px); }

/* ============================================================
   v0.5 — блоки 10–11: FAQ, форма аудита, футер
   ============================================================ */

/* ---------- блок 10: FAQ (аккордеон на details/summary) ---------- */
.faq-list { margin-top: 36px; max-width: 820px; }
.faq-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; margin-bottom: 10px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-chevron {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: transform .25s;
}
.faq-item[open] .faq-chevron { transform: rotate(45deg); }
.faq-answer {
  padding: 0 22px 20px;
  font-size: 15px; line-height: 1.55; color: var(--ink-soft);
  max-width: 700px;
}
.faq-answer a { font-weight: 600; }

/* ---------- блок 11: форма аудита ---------- */
.audit-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center;
}
.audit-left .section-head { margin-bottom: 22px; }
.audit-left .audit-benefits li { padding: 9px 0; font-size: 15.5px; }
.audit-benefits { list-style: none; margin: 0; padding: 0; }
.audit-benefits li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0; font-size: 16px; line-height: 1.5;
}
.audit-check {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  margin-top: 1px;
}
.audit-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.audit-badge {
  padding: 8px 14px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13.5px; font-weight: 600;
}

.audit-form-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px 26px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.audit-form .form-field { margin-bottom: 16px; }
.audit-form label {
  display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px;
}
.audit-form input[type="text"],
.audit-form select {
  width: 100%; padding: 12px 14px;
  font: 500 15.5px var(--font); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.audit-form select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A5B6E' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}
.audit-form input:focus, .audit-form select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.audit-form input.is-invalid, .audit-form select.is-invalid { border-color: #b00020; }
.form-consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12.5px; line-height: 1.45; color: var(--ink-soft);
  margin: 4px 0 18px;
}
.form-consent input { margin-top: 2px; accent-color: var(--accent); }
.audit-form .btn-primary { width: 100%; text-align: center; border: none; cursor: pointer; }

/* экран благодарности (подмена содержимого карточки) */
.form-success {
  display: none; text-align: center; padding: 36px 8px;
}
.form-success.is-visible { display: block; }
.audit-form.is-hidden { display: none; }
.form-success-icon {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 18px;
  background: var(--green-soft); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700;
}
.form-success-title { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.form-success-text { margin: 10px auto 0; max-width: 380px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

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

/* ---------- футер ---------- */
.site-footer {
  max-width: var(--container); margin: 96px auto 0;
  padding: 0 var(--pad-x) 40px;
}
.footer-partner {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 30px 28px;
  box-shadow: var(--shadow-card);
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 24px; align-items: center;
}
.footer-partner-title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.footer-partner-text { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.partner-form { display: flex; gap: 10px; position: relative; }
.partner-form input {
  flex: 1; min-width: 0; padding: 12px 14px;
  font: 500 14.5px var(--font); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.partner-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(52,60,237,.15); }
.partner-form input.is-invalid { border-color: #b00020; }
.partner-form .btn-primary { border: none; cursor: pointer; white-space: nowrap; }
.partner-success {
  display: none; font-size: 15px; font-weight: 600; color: var(--accent);
}
.partner-success.is-visible { display: block; }
.partner-form.is-hidden { display: none; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px;
  margin-top: 36px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-soft);
}
.footer-contacts { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-contacts a { color: var(--ink); font-weight: 500; }
.footer-contacts a:hover { color: var(--accent); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a { color: var(--ink-soft); }
.footer-legal a:hover { color: var(--accent); }
.footer-requisites { width: 100%; margin-top: 4px; font-size: 12.5px; }

@media (max-width: 900px) {
  .footer-partner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .partner-form { flex-direction: column; }
}

/* ---------- блок аудита: панель в электрике ---------- */
.audit-panel {
  background: var(--accent); border-radius: 22px;
  padding: 56px 56px 48px;
  position: relative; overflow: hidden;
}
.audit-panel::after {
  content: ""; position: absolute; left: -15%; bottom: -35%;
  width: 60%; height: 90%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,255,255,.20), transparent 70%);
  pointer-events: none;
}
.audit-panel .section-title { color: #fff; }
.audit-panel .section-sub { color: rgba(255,255,255,.85); }
.audit-panel .audit-grid { position: relative; z-index: 1; }
.audit-panel .audit-benefits li { color: #fff; }
.audit-panel .audit-check { background: rgba(255,255,255,.18); color: #fff; }
.audit-panel .audit-badge { background: rgba(255,255,255,.16); color: #fff; }
@media (max-width: 760px) {
  .audit-panel { padding: 32px 22px 28px; border-radius: 18px; }
}

/* ============================================================
   /price/ — заголовок страницы, слайдер планов, карточки планов,
   дополнительные модули
   ============================================================ */
.page-head { max-width: var(--container); margin: 0 auto; padding: 48px var(--pad-x) 0; }
.page-title {
  margin: 0; max-width: 760px;
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 500; line-height: 1.06; letter-spacing: -0.02em;
  animation: rise .6s cubic-bezier(.22,1,.36,1) .1s backwards;
}
.page-sub {
  font-size: 18px; color: var(--ink-soft);
  max-width: 620px; margin: 18px 0 0; line-height: 1.5;
  animation: rise .6s cubic-bezier(.22,1,.36,1) .22s backwards;
}

/* слайдер планов */
.plans-slider {
  max-width: 720px; margin: 44px auto 0; text-align: center;
  animation: rise .6s cubic-bezier(.22,1,.36,1) .3s backwards;
}
.plans-slider-label { font-size: 14px; font-weight: 600; }
.plans-slider .calc-orders-value { margin-top: 6px; }
.plans-slider .calc-range-scale { max-width: 100%; }

/* карточки планов */
.plans-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: 36px;
}
.plan-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 24px 22px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s, border-color .3s;
}
.plan-card.is-current {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 2px 4px rgba(22,23,46,.08), 0 16px 34px rgba(52,60,237,.35);
  transform: translateY(-4px);
}
.plan-name { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.plan-volume { margin-top: 10px; font-size: 15.5px; font-weight: 600; }
.plan-price { margin-top: 14px; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; min-height: 32px; }
.plan-note { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }

/* плашка экономии — второй визуальный акцент карточки после цены */
.plan-save {
  margin-top: 12px; padding: 10px 12px; border-radius: 12px;
  background: var(--accent-soft);
  display: flex; flex-direction: column; gap: 2px;
}
.plan-save-label { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.plan-save-num { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--accent); }

/* активная карточка: всё содержимое на синем */
.plan-card.is-current .plan-name { color: rgba(255,255,255,.75); }
.plan-card.is-current .plan-volume,
.plan-card.is-current .plan-price { color: #fff; }
.plan-card.is-current .plan-note { color: rgba(255,255,255,.78); }
.plan-card.is-current .plan-save { background: rgba(255,255,255,.16); }
.plan-card.is-current .plan-save-label { color: rgba(255,255,255,.8); }
.plan-card.is-current .plan-save-num { color: #fff; }
.plans-fineprint {
  margin-top: 22px; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft);
  text-align: center;
}
@media (max-width: 1024px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .plans-grid { grid-template-columns: 1fr; gap: 12px; } }

/* дополнительные модули */
.mods-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: 40px;
}
.mod-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 24px 22px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
}
@media (hover: hover) and (pointer: fine) {
  .mod-card:hover {
    transform: translateY(-6px) scale(1.02);
    position: relative; z-index: 1;
    box-shadow: 0 2px 4px rgba(22,23,46,.08), 0 14px 30px rgba(22,23,46,.13);
  }
}
.mod-title { margin: 0; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.mod-price {
  display: inline-block; margin-top: 12px; padding: 6px 12px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13.5px; font-weight: 600; align-self: flex-start;
}
.mod-text { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 1024px) { .mods-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .mods-grid { grid-template-columns: 1fr; gap: 12px; } }

/* активный пункт меню (текущая страница) */
.nav-link.is-active, .mobile-menu-link.is-active { color: var(--accent); }

/* ============================================================
   v0.7 — страница кейса /cases/niceone/
   ============================================================ */

/* hero кейса: синяя панель на весь первый экран страницы */
.case-hero { max-width: var(--container); margin: 24px auto 0; padding: 0 var(--pad-x); }
.case-hero .case-panel { padding-bottom: 56px; }
.case-hero .case-title { font-size: clamp(30px, 4.4vw, 56px); }

/* точка А: карточки болей */
.pains-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: 36px;
}
.pain-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px;
  box-shadow: var(--shadow-card);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
}
@media (hover: hover) and (pointer: fine) {
  .pain-card:hover {
    transform: translateY(-6px) scale(1.02);
    position: relative; z-index: 1;
    box-shadow: 0 2px 4px rgba(22,23,46,.08), 0 14px 30px rgba(22,23,46,.13);
  }
}
.pain-title { margin: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.pain-text { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 1024px) { .pains-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .pains-grid { grid-template-columns: 1fr; gap: 12px; } }

/* повествовательный текст (точка А, поворотный момент) */
.story-text { max-width: 760px; margin-top: 28px; }
.story-text p { margin: 0 0 18px; font-size: 16.5px; line-height: 1.6; color: var(--ink); }

/* блок «что внедрили»: главы текст+скриншот зигзагом */
.impl-chapter {
  display: grid; grid-template-columns: 1fr 1.15fr;
  grid-template-rows: auto auto;
  gap: 10px 32px; align-items: stretch;
  margin-top: 56px;
}
.impl-cards { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 14px; }
.impl-chapter .impl-shot { grid-column: 2; grid-row: 1; }
.impl-chapter .shot-caption { grid-column: 2; grid-row: 2; }
.impl-chapter--flip .impl-cards { grid-column: 2; }
.impl-chapter--flip .impl-shot { grid-column: 1; }
.impl-chapter--flip .shot-caption { grid-column: 1; }

.impl-shot { position: relative; display: flex; flex-direction: column; }
.shot-frame {
  display: block; width: 100%; border: 0; padding: 0; cursor: zoom-in;
  border-radius: 16px; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(22,23,46,.06), 0 18px 40px rgba(22,23,46,.12);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
}
@media (hover: hover) and (pointer: fine) {
  .shot-frame:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 2px 4px rgba(22,23,46,.08), 0 24px 50px rgba(22,23,46,.16);
  }
}
.shot-frame { flex: 1; min-height: 260px; position: relative; }
.shot-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: left top;
}
.shot-caption {
  font-size: 13px; color: var(--ink-soft); text-align: center;
}
@media (max-width: 900px) {
  .impl-chapter { grid-template-columns: 1fr; gap: 16px; }
  .impl-chapter .impl-cards, .impl-chapter--flip .impl-cards { grid-column: 1; grid-row: 1; }
  .impl-chapter .impl-shot, .impl-chapter--flip .impl-shot { grid-column: 1; grid-row: 2; }
  .impl-chapter .shot-caption, .impl-chapter--flip .shot-caption { grid-column: 1; grid-row: 3; }
  .shot-frame { flex: none; height: auto; min-height: 0; }
  .shot-frame img { position: static; height: auto; object-fit: unset; }
}

/* мостик про сроки */
.timeline-note {
  margin-top: 48px; padding: 26px 28px; border-radius: 14px;
  background: var(--accent-soft);
}
.timeline-note p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.55; }
.timeline-note p:last-child { margin: 0; font-weight: 600; color: var(--accent); }

/* точка Б: таблица результатов */
.result-layout {
  display: grid; grid-template-columns: 1.25fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px 32px; align-items: stretch; margin-top: 40px;
}
.result-layout .result-table-wrap { grid-column: 1; grid-row: 1; }
.result-layout .impl-shot { grid-column: 2; grid-row: 1; }
.result-layout .shot-caption { grid-column: 2; grid-row: 2; }
/* аналитика рядом с таблицей: кадр целиком, без кадрирования */
.result-layout .shot-frame { background: #fff; }
.result-layout .shot-frame img { object-fit: contain; object-position: center; }
.result-table-wrap { overflow-x: auto; }
.result-table {
  width: 100%; border-collapse: collapse;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-card);
  font-size: 14px;
}
.result-table th, .result-table td {
  padding: 13px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.result-table th {
  font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-soft); background: var(--bg);
}
.result-table tr:last-child td { border-bottom: none; }
.result-table td.effect { font-weight: 600; color: var(--accent); white-space: nowrap; }
.result-total {
  margin-top: 22px; font-size: 17px; line-height: 1.5; max-width: 760px;
}
.result-total b { color: var(--accent); }
@media (max-width: 1024px) {
  .result-layout { grid-template-columns: 1fr; }
  .result-layout .result-table-wrap { grid-column: 1; grid-row: 1; }
  .result-layout .impl-shot { grid-column: 1; grid-row: 2; }
  .result-layout .shot-caption { grid-column: 1; grid-row: 3; }
  .result-table { font-size: 13px; min-width: 560px; }
}

/* лайтбокс */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(22,23,46,.88);
  display: none; align-items: center; justify-content: center;
  padding: 4vh 3vw; cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  width: 40px; height: 40px; border: none; border-radius: 12px;
  background: rgba(255,255,255,.14); color: #fff;
  font-size: 17px; cursor: pointer;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.28); }
body.lightbox-open { overflow: hidden; }

/* хлебная крошка страницы кейса (задел под каталог /cases/) */
.breadcrumb {
  max-width: var(--container); margin: 20px auto 0; padding: 0 var(--pad-x);
  font-size: 13.5px; color: var(--ink-soft);
}
.breadcrumb a { color: var(--ink-soft); font-weight: 500; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; opacity: .5; }

/* ============================================================
   v0.8 — страницы /integrations/ и /about/
   ============================================================ */

/* заголовок страницы (H1 на светлом фоне) */
.page-head { max-width: var(--container); margin: 40px auto 0; padding: 0 var(--pad-x); }
.page-title {
  margin: 0; max-width: 860px;
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 500; line-height: 1.08; letter-spacing: -0.02em;
}
.page-lead {
  margin: 18px 0 0; max-width: 760px;
  font-size: 17.5px; line-height: 1.55; color: var(--ink-soft);
}

/* интеграции: секции категорий */
.int-note {
  margin-top: 48px; padding: 22px 24px; border-radius: 14px;
  background: var(--accent-soft);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  justify-content: space-between;
}
.int-note p { margin: 0; font-size: 15.5px; line-height: 1.5; max-width: 640px; }

/* о компании: основатели */
.founders-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin-top: 40px;
}
.founder-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex; gap: 20px; align-items: flex-start;
}
.founder-photo {
  flex: none; width: 192px; height: 192px; border-radius: 16px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; font-weight: 600; letter-spacing: .02em;
  overflow: hidden;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-name { margin: 2px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.founder-role { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
@media (max-width: 760px) {
  .founders-grid { grid-template-columns: 1fr; }
  .founder-card { flex-direction: column; }
  .founder-photo { width: 100%; max-width: 220px; height: auto; aspect-ratio: 1; }
}

/* о компании: плитки цифр */
.about-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: 16px;
}
.about-stat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px 20px;
  box-shadow: var(--shadow-card);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
}
@media (hover: hover) and (pointer: fine) {
  .about-stat:hover {
    transform: translateY(-6px) scale(1.02);
    position: relative; z-index: 1;
    box-shadow: 0 2px 4px rgba(22,23,46,.08), 0 14px 30px rgba(22,23,46,.13);
  }
}
.about-stat-num { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; color: var(--accent); }
.about-stat-label { margin-top: 6px; font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); }
@media (max-width: 1024px) { .about-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .about-stats { grid-template-columns: 1fr 1fr; gap: 10px; } .about-stat { padding: 16px 14px; } .about-stat-num { font-size: 21px; } }

/* о компании: реквизиты */
.legal-block {
  margin-top: 36px; padding: 26px 28px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.legal-block p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: var(--ink); }
.legal-block p:last-child { margin: 0; }
.legal-block .muted { color: var(--ink-soft); }
.legal-partner {
  margin-top: 16px; display: inline-block;
  padding: 8px 14px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13.5px; font-weight: 600;
}

/* о компании: секция партнёрам (расширенный блок) */
.partner-section-card {
  margin-top: 40px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 30px 28px;
  box-shadow: var(--shadow-card);
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 24px; align-items: center;
}
@media (max-width: 900px) { .partner-section-card { grid-template-columns: 1fr; } }

/* ============================================================
   v0.9 — блог: список статей + шаблон статьи
   ============================================================ */

/* ---------- /blog/: карточки статей ---------- */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 40px;
}
.blog-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px 24px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  color: var(--ink);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
}
@media (hover: hover) and (pointer: fine) {
  .blog-card:hover {
    transform: translateY(-6px) scale(1.02);
    position: relative; z-index: 1;
    box-shadow: 0 2px 4px rgba(22,23,46,.08), 0 14px 30px rgba(22,23,46,.13);
    color: var(--ink);
  }
}
.blog-card-meta { font-size: 12.5px; color: var(--ink-soft); }
.blog-card-title { margin: 12px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.blog-card-text { margin: 10px 0 18px; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.blog-card .seg-link { margin-top: auto; font-size: 14px; }
@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .blog-grid { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- статья ---------- */
.article-head { max-width: 820px; margin: 20px auto 0; padding: 0 var(--pad-x); }
.article-title {
  margin: 14px 0 0;
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 500; line-height: 1.14; letter-spacing: -0.02em;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  margin-top: 16px; font-size: 13.5px; color: var(--ink-soft);
}
.article-lead {
  margin-top: 20px; font-size: 18px; line-height: 1.55; color: var(--ink);
  font-weight: 500;
}

.article-body { max-width: 820px; margin: 0 auto; padding: 24px var(--pad-x) 0; }
.article-body h2 {
  margin: 44px 0 0; font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600; line-height: 1.2; letter-spacing: -0.015em;
  color: var(--accent);
}
.article-body h3 {
  margin: 32px 0 0; font-size: 19px; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.3;
}
.article-body p { margin: 16px 0 0; font-size: 16px; line-height: 1.65; color: var(--ink); }
.article-body b, .article-body strong { font-weight: 600; }
.article-body ul, .article-body ol { margin: 16px 0 0; padding-left: 22px; }
.article-body li { margin: 8px 0 0; font-size: 16px; line-height: 1.6; }
.article-body a { font-weight: 600; }

/* таблицы статьи */
.article-table-wrap { margin-top: 20px; overflow-x: auto; }
.article-body table {
  width: 100%; border-collapse: collapse;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-card);
  font-size: 14.5px;
}
.article-body th, .article-body td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--line);
}
.article-body th {
  font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-soft); background: var(--bg);
}
.article-body tr:last-child td { border-bottom: none; }
.article-body td b { color: var(--accent); white-space: nowrap; }

/* CTA-плашка в теле статьи */
.article-cta {
  margin-top: 28px; padding: 22px 24px; border-radius: 14px;
  background: var(--accent-soft);
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 14px 24px;
}
.article-cta p { margin: 0; font-size: 15px; line-height: 1.5; max-width: 560px; }
.article-cta .btn-primary { white-space: nowrap; }

/* чек-лист */
.article-checklist {
  margin-top: 20px; padding: 24px 26px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.article-checklist ol { margin: 0; padding-left: 22px; counter-reset: check; }
.article-checklist li { margin: 10px 0 0; font-size: 15.5px; line-height: 1.55; }
.article-checklist li:first-child { margin-top: 0; }
.article-checklist-verdict {
  margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 15px; font-weight: 600; color: var(--accent);
}

/* авторский блок */
.article-author {
  max-width: 820px; margin: 48px auto 0; padding: 0 var(--pad-x);
}
.article-author .founder-card { max-width: 720px; }

/* FAQ статьи — переиспользует .faq-item; обёртка */
.article-faq { max-width: 820px; margin: 40px auto 0; padding: 0 var(--pad-x); }
.article-faq h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; color: var(--accent); margin: 0 0 20px; }
