/* ============================================================
   xt-job.ru — единая дизайн-система v2
   Один CSS для всех страниц: главная, блог, статьи, SEO,
   юр.документы, страницы оплаты, thank-you.
   ============================================================ */

:root {
  /* Палитра — из главной */
  --bg:           #FAFAF7;
  --bg-paper:     #FFFFFF;
  --ink:          #0E1116;
  --ink-2:        #2A2F3A;
  --ink-3:        #5A6273;
  --muted:        #6B7280;
  --line:         #E6E6E0;
  --line-strong:  #D9D9D2;

  --red:          #E11D2A;
  --red-soft:     #FF3A48;
  --red-deep:     #A8121C;
  --orange:       #FF6B1A;
  --orange-soft:  #FFA24A;
  --yellow:       #FFD23F;
  --green:        #18A04E;
  --green-soft:   rgba(24, 160, 78, 0.12);

  /* Тени */
  --shadow-soft:  0 1px 0 rgba(14,17,22,0.04), 0 8px 24px -10px rgba(14,17,22,0.10);
  --shadow-card:  0 1px 0 rgba(14,17,22,0.06), 0 30px 60px -30px rgba(14,17,22,0.18), 0 18px 36px -24px rgba(225,29,42,0.15);
  --shadow-red:   0 24px 60px -20px rgba(225, 29, 42, 0.45), 0 8px 20px -8px rgba(225, 29, 42, 0.30);
  --shadow-orange:0 24px 60px -20px rgba(255, 107, 26, 0.55), 0 8px 20px -8px rgba(255, 107, 26, 0.35);

  /* Радиусы */
  --r-card:       22px;
  --r-card-lg:    28px;
  --r-pill:       999px;
  --r-input:      14px;
}

/* ============================================================
   База
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', -apple-system, system-ui, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: clip;
}

a       { color: inherit; text-decoration: none; }
button  { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img     { max-width: 100%; display: block; }

::selection { background: rgba(225, 29, 42, 0.18); color: var(--ink); }

.xt-container {
  width: min(100% - 36px, 1240px);
  margin-inline: auto;
}
.xt-container-narrow { width: min(100% - 36px, 880px); margin-inline: auto; }


/* ============================================================
   Глобальный фон — живой aurora-слой за всем сайтом
   ============================================================ */
.xt-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.xt-aurora::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14,17,22,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,17,22,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.xt-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
@media (hover:hover) {
  .xt-blob { will-change: transform; }
}
.xt-blob-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--red) 0%, transparent 70%);
  top: -160px; left: -120px;
  opacity: 0.42;
  animation: xt-float-1 20s ease-in-out infinite;
}
.xt-blob-2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
  top: -40px; right: -160px;
  opacity: 0.44;
  animation: xt-float-2 24s ease-in-out infinite;
}
.xt-blob-3 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, var(--yellow) 0%, transparent 70%);
  top: 36vh; left: 38%;
  opacity: 0.20;
  animation: xt-float-3 28s ease-in-out infinite;
}
@keyframes xt-float-1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,80px) scale(1.1); } }
@keyframes xt-float-2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-80px,60px) scale(0.9); } }
@keyframes xt-float-3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-50px) scale(1.15); } }

/* На внутренних страницах фон чуть скромнее, чтобы контент читался */
body.xt-page-inner .xt-blob-1 { opacity: 0.28; }
body.xt-page-inner .xt-blob-2 { opacity: 0.30; }
body.xt-page-inner .xt-blob-3 { opacity: 0.14; }


/* ============================================================
   Eyebrow / chip / общие маленькие компоненты
   ============================================================ */
.xt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin: 0 0 18px;
}
.xt-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(225, 29, 42, 0.16);
}
.xt-eyebrow-line::before,
.xt-eyebrow-line::after {
  content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.45;
}

.xt-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(14, 17, 22, 0.05);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.xt-chip-link:hover { background: rgba(225, 29, 42, 0.10); color: var(--red); }


/* Хлебные крошки */
.breadcrumbs, .xt-breadcrumbs {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.breadcrumbs a, .xt-breadcrumbs a { color: var(--ink-3); transition: color .15s; }
.breadcrumbs a:hover, .xt-breadcrumbs a:hover { color: var(--red); }
.breadcrumbs-separator { margin: 0 8px; opacity: 0.45; }

/* ============================================================
   Кнопки
   ============================================================ */
.xt-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .3s, background-color .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.xt-btn-primary {
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  box-shadow: 0 16px 32px -14px rgba(225,29,42,0.55), inset 0 1px 0 rgba(255,255,255,0.18);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.xt-btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--orange), var(--red));
  opacity: 0;
  transition: opacity .3s;
  z-index: -1;
}
.xt-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
}
.xt-btn-primary:hover::before { opacity: 1; }
.xt-btn-primary .xt-cta-circle {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.xt-btn-primary .xt-arrow,
.xt-btn .xt-arrow { transition: transform .3s; }
.xt-btn-primary:hover .xt-arrow,
.xt-btn:hover .xt-arrow { transform: translateX(4px); }


.xt-btn-ghost {
  background: rgba(255,255,255,0.7);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
}
.xt-btn-ghost:hover { background: #fff; transform: translateY(-2px); border-color: var(--ink); }

.xt-btn-mega {
  padding: 20px 30px 20px 24px;
  font-size: 18px;
  gap: 14px;
  box-shadow:
    0 28px 60px -20px rgba(255,107,26,0.6),
    0 12px 24px -10px rgba(225,29,42,0.45),
    inset 0 1px 0 rgba(255,255,255,0.25);
}
.xt-btn-mega .xt-cta-circle { width: 34px; height: 34px; }

/* ============================================================
   Заголовки
   ============================================================ */
.xt-h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 6.5vw, 92px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 22px;
  text-wrap: balance;
}

.xt-h1-doc { font-size: clamp(36px, 5.2vw, 64px); }


.xt-h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  text-wrap: balance;
}


.xt-lead {
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 64ch;
  margin: 0 0 28px;
}
.xt-lead b { color: var(--ink); font-weight: 700; }

/* Анимация подъёма строк */
.xt-rise {
  display: block;
  overflow: hidden;
  padding: 0.12em 0.06em;
  margin: -0.12em -0.06em;
}
.xt-rise-inner {
  display: inline-block;
  padding: 0 0.04em;
  animation: xt-rise 1s cubic-bezier(.2,.7,.3,1) both;
}
.xt-rise-2 { animation-delay: 0.12s; }
.xt-rise-3 { animation-delay: 0.24s; }
@keyframes xt-rise {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Шиммер на тексте */
.xt-shimmer {
  background: linear-gradient(
    100deg,
    var(--red) 0%,
    var(--red-soft) 25%,
    var(--orange) 50%,
    var(--red-soft) 75%,
    var(--red) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: xt-shimmer 8s linear infinite;
  will-change: background-position;
}
@keyframes xt-shimmer {
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }
}


/* ============================================================
   Hero — внутренний (для блога, статьи, документов, оплаты)
   ============================================================ */
.xt-hero {
  position: relative;
  padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 4vw, 48px);
  text-align: left;
}


/* Кнопки в ряд под лидом */
.xt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}


/* meta-строка с разделителями для статьи */
.xt-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-3);
}
.xt-meta-dot { opacity: 0.45; }


/* ============================================================
   Секции и шапки секций
   ============================================================ */
.xt-section {
  position: relative;
  padding: clamp(48px, 7vw, 100px) 0;
}
.xt-section-tight { padding: clamp(32px, 4vw, 56px) 0; }


.xt-section-head {
  margin-bottom: clamp(28px, 4vw, 56px);
}
.xt-section-head-center { text-align: center; }
.xt-section-head-center .xt-eyebrow { justify-content: center; }
.xt-section-head .xt-eyebrow-line { color: var(--orange-soft); }

/* ============================================================
   Карточки (универсальные)
   ============================================================ */
.xt-card {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  transition: transform .3s, box-shadow .3s, border-color .25s;
}
.xt-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-card); }


/* Тонкое мерцание для интерактивных карточек */
.xt-card-shine {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.xt-card-shine::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255,107,26,0.06) 40%, rgba(255,210,63,0.08) 50%, rgba(225,29,42,0.06) 60%, transparent 100%);
  transition: left 0.7s ease;
  pointer-events: none;
  z-index: 0;
}
.xt-card-shine:hover::after { left: 130%; }
.xt-card-shine > * { position: relative; z-index: 1; }

/* ============================================================
   Лента блога (карточки статей)
   ============================================================ */
.xt-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(18px, 2.5vw, 26px);
}
.xt-blog-empty { padding: clamp(32px,4vw,56px) 0; text-align: center; color: var(--muted); font-size: 15px; }
.xt-article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
  transition: transform .25s, box-shadow .3s, border-color .25s;
  position: relative;
}
.xt-article-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 60%, rgba(225,29,42,0.35), rgba(255,107,26,0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.xt-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}
.xt-article-card:hover::before { opacity: 1; }

.xt-article-card-image {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(225,29,42,0.08), rgba(255,162,74,0.08));
  position: relative;
}
.xt-article-card-image img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.xt-article-card:hover .xt-article-card-image img{ transform: scale(1.05); }

.xt-article-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.xt-article-card-title {
  font-size: 19px;
  line-height: 1.25;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.xt-article-card-excerpt {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.xt-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
}
.xt-article-meta-foot { margin-top: auto; padding-top: 6px; }

/* Featured (большая карточка) */
.xt-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 3vw, 36px);
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: transform .25s, box-shadow .3s, border-color .25s;
  position: relative;
}
.xt-featured:hover { transform: translateY(-2px); }
.xt-featured-image {
  margin: 0;
  background: linear-gradient(135deg, rgba(225,29,42,0.08), rgba(255,162,74,0.08));
}
.xt-featured-image img{
  width: 100%; height: 100%; min-height: 320px;
  object-fit: cover; display: block;
}
.xt-featured-body {
  padding: clamp(28px, 3vw, 48px);
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.xt-featured-body .xt-article-card-title { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; }
.xt-featured-body .xt-article-card-excerpt {
  font-size: 16px;
  -webkit-line-clamp: 4;
}
@media (max-width: 820px) {
  .xt-featured { grid-template-columns: 1fr; }
  .xt-featured-image img{ min-height: 220px; }
}
.xt-featured--no-img { grid-template-columns: 1fr; }

.xt-article-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-weight: 700;
  font-size: 15px;
}


/* ============================================================
   Категории / next-steps / простые карточки-якоря
   ============================================================ */
.xt-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.xt-category-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 28px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .3s;
}
.xt-category-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--red), var(--orange));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.xt-category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: rgba(225,29,42,0.25); }
.xt-category-card:hover::before { transform: scaleY(1); }
.xt-category-meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0;
}
.xt-category-title {
  font-size: 21px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.xt-category-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
  flex: 1;
}
.xt-category-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.xt-category-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}
.xt-category-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(14,17,22,0.05);
  color: var(--ink);
  transition: background .25s, transform .25s, color .25s;
}
.xt-category-card:hover .xt-category-arrow {
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  transform: translateX(3px);
}

/* ============================================================
   FAQ
   ============================================================ */
.xt-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.xt-faq-item {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 22px;
  transition: border-color .25s, box-shadow .25s;
}
.xt-faq-item[open] {
  border-color: rgba(225, 29, 42, 0.32);
  box-shadow: 0 12px 28px -16px rgba(225, 29, 42, 0.22);
}
.xt-faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.xt-faq-item summary::-webkit-details-marker { display: none; }
.xt-faq-item summary::after {
  content: '';
  width: 20px; height: 20px;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat;
  color: var(--red);
  transition: transform .25s;
  flex-shrink: 0;
}
.xt-faq-item[open] summary::after {
  transform: rotate(45deg);
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat;
}
.xt-faq-item p {
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================================
   Длинный текст статьи / документа
   ============================================================ */
.xt-prose {
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  max-width: 720px;
}
.xt-prose-wide { max-width: 820px; }
.xt-prose > * + * { margin-top: 1em; }
.xt-prose h2 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 2em 0 0.5em;
  color: var(--ink);
  scroll-margin-top: 100px;
  position: relative;
  padding-left: 22px;
}
.xt-prose h2::before {
  content: '';
  position: absolute;
  left: 0; top: 0.22em;
  width: 4px; height: 0.85em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--red), var(--orange));
}
.xt-prose h3 {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.25;
  font-weight: 700;
  margin: 1.6em 0 0.4em;
  color: var(--ink);
}
.xt-prose p { margin: 0; color: var(--ink-2); }
.xt-prose ul,
.xt-prose ol {
  padding-left: 1.4em;
  display: flex; flex-direction: column;
  gap: 0.5em;
  color: var(--ink-2);
  margin: 0;
}
.xt-prose li::marker { color: var(--red); }
.xt-prose blockquote {
  margin: 1.4em 0;
  padding: 18px 22px;
  background: rgba(14,17,22,0.04);
  border-left: 3px solid var(--red);
  border-radius: 12px;
  font-style: italic;
  color: var(--ink-2);
}
.xt-prose a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s;
}
.xt-prose a:hover { color: var(--red-deep); }
.xt-prose code {
  background: rgba(14,17,22,0.06);
  padding: 2px 6px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.92em;
}
.xt-prose pre {
  background: var(--ink);
  color: #F5F5F1;
  padding: 18px 22px;
  border-radius: 14px;
  overflow-x: auto;
  font-size: 14px;
}
.xt-prose pre code { background: transparent; padding: 0; color: inherit; }
.xt-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 15px;
}
.xt-prose th, .xt-prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.xt-prose th { background: rgba(14,17,22,0.04); font-weight: 700; }
.xt-prose strong { color: var(--ink); font-weight: 700; }

/* Хайлайт-цитата в начале — для статей */
.xt-takeaways {
  background: linear-gradient(135deg, rgba(225,29,42,0.05), rgba(255,162,74,0.05));
  border: 1px solid rgba(225,29,42,0.18);
  border-radius: var(--r-card);
  padding: 24px 28px;
  margin: 0 0 36px;
  position: relative;
  overflow: hidden;
}
.xt-takeaways::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225,29,42,0.18), transparent 70%);
  pointer-events: none;
}
.xt-takeaways .xt-eyebrow { margin-bottom: 12px; }
.xt-takeaways ul {
  margin: 0;
  padding-left: 22px;
  display: flex; flex-direction: column;
  gap: 8px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
  position: relative;
}
.xt-takeaways li::marker { color: var(--red); }

/* ============================================================
   Layout статьи + TOC
   ============================================================ */
.xt-article {
  position: relative;
}
.xt-article-hero {
  padding: clamp(28px, 4vw, 48px) 0 0;
  position: relative;
}
.xt-article-h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 14px 0 16px;
  color: var(--ink);
  max-width: 22ch;
  text-wrap: balance;
}
.xt-article-lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 18px;
  max-width: 60ch;
}
.xt-article-figure {
  margin: clamp(20px, 3vw, 36px) 0 0;
  border-radius: var(--r-card-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
}
.xt-article-figure img{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.xt-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(32px, 4vw, 56px) 0 clamp(48px, 6vw, 80px);
}
/* Док-страницы (privacy/offer/payment-and-refund/legal_doc): у hero + section шли
   двойные отступы (hero padding-bottom + section padding-top + padding-top у
   .xt-article-layout + 2em у первого H2) → большая пустая полоса между лидом и
   первым разделом. Маркер-классы убирают дубликаты адресно, не затрагивая блог/SEO. */
.xt-hero-tight { padding-bottom: clamp(8px, 1.5vw, 16px); }
.xt-section-doc { padding-top: clamp(8px, 1.5vw, 16px); }
.xt-section-doc > .xt-article-layout { padding-top: 0; }
.xt-prose > :first-child { margin-top: 0; }
.xt-article-main { min-width: 0; }
.xt-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px 24px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  box-shadow: var(--shadow-soft);
}
.xt-toc-title {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
}
.xt-toc nav { display: flex; flex-direction: column; gap: 4px; }
.xt-toc-link {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
  padding: 6px 8px;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: color .15s, background-color .15s, border-color .15s;
}
.xt-toc-link:hover { color: var(--red); background: rgba(225,29,42,0.04); }
.xt-toc-link.is-active {
  color: var(--red);
  border-left-color: var(--red);
  background: rgba(225,29,42,0.05);
}

@media (max-width: 980px) {
  .xt-article-layout { grid-template-columns: 1fr; }
  .xt-toc { display: none; }
}

/* Reading progress bar */
.xt-progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow));
  z-index: 99;
  transition: width 0.08s linear;
  box-shadow: 0 0 12px rgba(255,107,26,0.5);
}

/* ============================================================
   SEO landing — benefits / proof / sections
   ============================================================ */
.xt-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: clamp(28px, 4vw, 40px) 0;
}
.xt-benefit-card {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .3s, border-color .25s;
}
.xt-benefit-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at top right, rgba(255,107,26,0.18), transparent 70%);
  pointer-events: none;
}
.xt-benefit-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: rgba(225,29,42,0.22); }
.xt-benefit-mark {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(225,29,42,0.10), rgba(255,107,26,0.14));
  color: var(--red);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}
.xt-benefit-card h3 {
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.xt-benefit-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
}

.xt-doc-section {
  margin-top: clamp(40px, 5vw, 64px);
}

.xt-proof {
  background: linear-gradient(135deg, rgba(225,29,42,0.06), rgba(255,162,74,0.06));
  border: 1px solid rgba(225,29,42,0.18);
  border-radius: var(--r-card);
  padding: clamp(28px, 4vw, 40px);
  margin-top: clamp(36px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}
.xt-proof::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,26,0.16), transparent 70%);
  pointer-events: none;
}
.xt-proof h2 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.xt-proof-lead { font-size: 16px; line-height: 1.55; color: var(--ink-2); margin: 0 0 18px; max-width: 60ch; }
.xt-proof-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.xt-proof-list li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--ink);
  align-items: flex-start;
}
.xt-proof-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--orange));
  margin-top: 2px;
  display: grid; place-items: center;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='black'/><path d='M7 12l3.5 3.5L17 9' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='black'/><path d='M7 12l3.5 3.5L17 9' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>") center/contain no-repeat;
}

/* ============================================================
   CTA-блок (тёмный) — общий
   ============================================================ */
.xt-cta-block {
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(32px, 4vw, 56px);
  background: linear-gradient(160deg, #150709 0%, #260a0e 50%, #361207 100%);
  color: #fff;
  border-radius: var(--r-card-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.xt-cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(225,29,42,0.40), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,107,26,0.45), transparent 50%);
}
.xt-cta-block::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 70%);
}
.xt-cta-block > * { position: relative; z-index: 1; }
.xt-cta-block h2 {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 10px;
  color: #fff;
  max-width: 560px;
  letter-spacing: -0.02em;
}
.xt-cta-block p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  margin: 0;
  max-width: 560px;
}
.xt-cta-block .xt-btn-primary { flex-shrink: 0; }


/* ============================================================
   Pay status (success / fail / pending) и pay-landing
   ============================================================ */
.xt-pay-card {
  margin: clamp(40px, 5vw, 72px) auto;
  max-width: 640px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card-lg);
  padding: clamp(32px, 4vw, 48px);
  box-shadow: var(--shadow-card);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.xt-pay-card::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 320px; height: 320px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.55;
}
.xt-pay-card-success::before { background: radial-gradient(circle, rgba(24,160,78,0.45), transparent 70%); }
.xt-pay-card-fail::before    { background: radial-gradient(circle, rgba(225,29,42,0.45),  transparent 70%); }
.xt-pay-card-pending::before { background: radial-gradient(circle, rgba(255,162,74,0.50), transparent 70%); }

.xt-pay-badge {
  display: inline-grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 18px;
  margin-bottom: 22px;
  position: relative;
}
.xt-pay-badge-success { background: rgba(24,160,78,0.14); color: #137a3d; }
.xt-pay-badge-fail    { background: rgba(225,29,42,0.14); color: var(--red); }
.xt-pay-badge-pending { background: rgba(255,162,74,0.20); color: #B76F17; }

.xt-pay-badge-success::after {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 22px;
  border: 2px solid currentColor;
  opacity: 0.25;
  animation: xt-pulse-ring 2.2s ease-out infinite;
}
@keyframes xt-pulse-ring {
  0% { transform: scale(1); opacity: 0.25; }
  100% { transform: scale(1.4); opacity: 0; }
}
.xt-pay-badge-pending svg { animation: xt-spin 6s linear infinite; }
@keyframes xt-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.xt-pay-card h1 {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--ink);
}
.xt-pay-card p { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin: 0 0 12px; }
.xt-pay-card .xt-actions { margin-top: 24px; }
.xt-pay-order {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-3);
  background: rgba(14,17,22,0.05);
  padding: 8px 14px;
  border-radius: var(--r-pill);
}
.xt-pay-order code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--ink);
}

/* Pay-landing summary table */
.xt-pay-summary {
  margin: clamp(24px, 3vw, 36px) 0;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.xt-pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
}
.xt-pay-row + .xt-pay-row { border-top: 1px solid var(--line); }
.xt-pay-row .xt-pay-label { color: var(--ink-3); font-size: 14px; }
.xt-pay-row .xt-pay-value { font-weight: 700; color: var(--ink); font-size: 16px; }
.xt-pay-row .xt-pay-amount {
  font-size: clamp(22px, 2.5vw, 30px);
  background: linear-gradient(135deg, var(--red), var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 800;
}
.xt-pay-row code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12.5px;
  background: rgba(14,17,22,0.04);
  padding: 4px 10px;
  border-radius: 6px;
}
.xt-pay-includes {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex; flex-direction: column;
  gap: 12px;
  font-size: 15px;
  color: var(--ink);
}
.xt-pay-includes li {
  display: flex; gap: 12px; align-items: flex-start;
}
.xt-pay-includes li::before {
  content: '';
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--orange));
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='black'/><path d='M7 12l3.5 3.5L17 9' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='black'/><path d='M7 12l3.5 3.5L17 9' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>") center/contain no-repeat;
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.xt-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.xt-reveal.in { opacity: 1; transform: translateY(0); }
.xt-reveal-2.in { transition-delay: 0.08s; }
.xt-reveal-3.in { transition-delay: 0.16s; }


/* ============================================================
   A11y: видимый фокус (L-1) + skip-link (M-12)
   ============================================================ */
:focus-visible { outline: 2.5px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.xt-skip {
  position: absolute; left: 12px; top: -56px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; font-size: 14px; text-decoration: none; transition: top .15s ease;
}
.xt-skip:focus { top: 12px; }


.xt-text-muted { color: var(--ink-3); }


/* Поддержка motion-preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .xt-blob{ display: none; }
}

/* ============================================================
   Мобильный перф-слой (≤760px) — только производительность,
   десктоп не затрагивается. Aurora-блобы —
   чисто декоративный фон. На телефонах:
   1) глушим непрерывную анимацию (translate+scale поверх
      blur(80px) на fixed-слоях = постоянный GPU-repaint и
      рывки при скролле; паритет с SPA-helmet, где анимация
      блобов на мобильном уже отключена);
   2) снижаем радиус blur 80px→40px — дешевле первичная
      растеризация размытого слоя;
   3) will-change:auto — убираем лишний композит-слой, т.к.
      без анимации он только ест память GPU.
   ============================================================ */
@media (max-width: 760px) {
  .xt-blob {
    animation: none !important;
    filter: blur(40px);
    will-change: auto;
  }
}
