/* =========================================================================
   site-evo/assets/landing.css
   Страничные стили для лендингов. Зависит от /assets/base.css (tokens + components).
   Все цвета — только var(--*) из tokens.css. Никаких хардкодов.
   Обновлено: 26.04.2026 (приведено к DESIGN_SYSTEM_KIT.md)
   Layer: utilities (DU-001 D1 — ниже layer components)
   ========================================================================= */

@layer utilities {

/* --- Глобальная типографика (все страницы) -------------------------------- */
body, p, li, td, span {
  font-size: 16px;
  line-height: var(--lh-body, 1.6);
}
@media (min-width: 768px) {
  body, p, li, td, span { font-size: 17px; }
}
.text-sm, .hint, .caption, small {
  font-size: var(--fs-micro, 13px);
  line-height: 1.5;
}
h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

/* Заголовки задают свой масштаб. Инлайновые <span>-акценты (золотые/градиентные
   слова, напр. .accent) внутри заголовков НЕ должны уменьшаться до 16/17px из
   правила body/span выше — иначе акцентные слова выглядят мельче остальных.
   Все слова заголовка одного размера и высоты. Span с собственным классом и
   явным размером сохраняют его за счёт большей специфичности. */
h1 span, h2 span, h3 span, h4 span,
.h1 span, .h2 span, .h3 span, .h4 span, .section-title span {
  font-size: inherit;
  line-height: inherit;
}

/* --- Shake-анимация (INPUT_RULES v1.1 — только на submit) ----------------- */
@keyframes evo-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-4px); }
  40%       { transform: translateX(4px); }
  60%       { transform: translateX(-3px); }
  80%       { transform: translateX(3px); }
}
.evo-field-shake { animation: evo-shake 0.35s ease; }

/* --- Стили главной страницы (ru/index.html) ------------------------------- */
/* Все правила scoped в .page-ru-home — не вытекают на другие страницы       */

@scope (.page-ru-home) {

:scope {
  font-family: var(--font-body);
  font-feature-settings: 'cv02','cv03','cv04','cv11';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
@media (min-width: 1024px) {
  .container { padding: 0 var(--sp-8); }
}

/* Кнопки главной (используют компоненты из components.css + свои расширения) */
.btn-shimmer {
  display: inline-flex; align-items: center; justify-content: center;
  height: 60px; padding: 0 48px;
  background: linear-gradient(135deg,
    color-mix(in hsl, var(--primary) 35%, var(--bg)),
    var(--primary),
    color-mix(in hsl, var(--primary) 40%, var(--text)));
  color: var(--primary-ink);
  font-size: 18px; font-weight: 700;
  border-radius: var(--radius-lg);
  border: none; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.btn-shimmer::after {
  content: ''; position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.12) 50%, transparent 70%);
  animation: shimmer 3.5s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { transform: translateX(-80%) rotate(25deg); }
  50%       { transform: translateX(80%) rotate(25deg); }
}
.btn-shimmer:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-btn), 0 16px 48px color-mix(in hsl, var(--primary) 30%, transparent);
}

/* Секции */
.section     { padding: clamp(72px, 10vw, 128px) 0; }
.section-sm  { padding: var(--sp-12) 0; }
.section--band { background: var(--card-2); }

/* Hero */
.hero {
  padding: 140px 0 96px;
  position: relative; overflow: hidden;
}
@media (min-width: 768px) { .hero { padding: 160px 0 128px; } }
.hero::before {
  content: ''; position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, color-mix(in hsl, var(--primary) 8%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-12); align-items: center;
}
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-16); }
}
h1 { font-family: var(--font-head); font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; }
.hero h1 {
  filter: drop-shadow(0 0 24px color-mix(in hsl, var(--primary) 35%, transparent))
          drop-shadow(0 0 48px color-mix(in hsl, var(--primary) 15%, transparent));
}
.hero h1 span {
  background: linear-gradient(135deg,
    color-mix(in hsl, var(--primary) 40%, var(--text)),
    var(--primary),
    color-mix(in hsl, var(--primary) 45%, var(--bg)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h2 { font-family: var(--font-head); font-weight: 800; line-height: 1.15; letter-spacing: -0.5px; text-align: center; margin-bottom: 16px; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.3; letter-spacing: -0.3px; }
.sub  { text-align: center; color: var(--muted); font-size: 17px; max-width: 580px; margin: 0 auto var(--sp-16); line-height: 1.75; }
.sub--mb48 { margin-bottom: var(--sp-12); }
.bridge { text-align: center; padding: var(--sp-6); color: var(--muted-2); font-size: 15px; font-style: italic; max-width: 520px; margin: 0 auto; }
.hero p { font-size: 17px; color: var(--muted); line-height: 1.75; margin: 24px 0 40px; max-width: 480px; }
.hero-btns { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* Hero float cards */
.hero-vis { display: none; width: 100%; max-width: 440px; margin: 0 auto; position: relative; }
@media (min-width: 768px) {
  .hero-vis { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; align-items: start; justify-items: stretch; }
}
.float-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 24px;
  opacity: 0; animation: floatIn .7s ease forwards;
}
@keyframes floatIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fc1 { grid-column: 2; grid-row: 1; justify-self: end; max-width: 220px; animation-delay: .25s; }
.fc2 { grid-column: 1 / -1; grid-row: 2; animation-delay: .45s; }
.fc3 { grid-column: 2; grid-row: 3; justify-self: end; max-width: 280px; animation-delay: .65s; }
.fc4 { grid-column: 1; grid-row: 3; justify-self: start; animation-delay: .85s; }
.fc-label { font-size: var(--fs-micro); color: var(--muted-2); margin-bottom: 4px; }
.fc-value  { font-size: 24px; font-weight: 700; }
.fc-stars  { color: var(--primary); font-size: 15px; letter-spacing: 2px; }
.fc-bar    { display: flex; gap: 4px; margin-top: 8px; }
.fc-bar span { display: block; width: 8px; border-radius: 8px; background: var(--primary); }

/* Pain grid */
.pain-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px)  { .pain-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pain-grid { gap: 20px; } }
.pain-icon { width: 48px; height: 48px; border-radius: var(--radius); background: var(--primary-fill); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; border: 1px solid var(--primary-border); }
.pain-icon svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps-row { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 768px) { .steps-row { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.step { text-align: center; }
.step-num {
  width: 64px; height: 64px; border-radius: var(--radius-pill);
  border: 2px solid var(--primary); background: var(--primary-fill-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: var(--primary);
  margin-bottom: 24px; position: relative; z-index: 1;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 17px; line-height: 1.75; max-width: 320px; margin: 0 auto; }

/* Product wrap */
.product-wrap {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px; display: grid; grid-template-columns: 1fr; gap: 40px;
  align-items: center; overflow: hidden; position: relative;
}
@media (min-width: 768px) { .product-wrap { grid-template-columns: 1fr 1fr; padding: 48px; } }
.product-wrap.reverse { direction: rtl; }
.product-wrap.reverse > * { direction: ltr; }
.product-wrap.glow::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, color-mix(in hsl, var(--primary) 6%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.feat-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.feat      { display: flex; gap: 14px; align-items: flex-start; }
.feat-dot  { width: 10px; height: 10px; border-radius: var(--radius-pill); background: var(--primary); margin-top: 7px; flex-shrink: 0; }
.feat-txt strong { font-size: 17px; font-weight: 600; display: block; margin-bottom: 2px; }
.feat-txt span   { font-size: 15px; color: var(--muted); }
.mock-box {
  background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  min-height: 260px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px; gap: 12px; color: var(--muted-2); font-size: 15px; position: relative;
}
.mock-bar { display: flex; gap: 5px; align-items: flex-end; justify-content: center; }
.mock-bar span { display: block; width: 10px; border-radius: 8px; background: var(--primary); }

/* Form row */
.form-row { display: flex; gap: 10px; }

/* Reply и AI box */
.reply-box, .ai-box {
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  min-height: 260px; display: flex; flex-direction: column;
}
.reply-box  { justify-content: center; }
.reply-q    { color: var(--muted); margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); font-size: 17px; line-height: 1.75; }
.reply-stars  { color: var(--primary); letter-spacing: 2px; font-size: 15px; display: block; margin-bottom: 8px; }
.reply-label  { font-size: var(--fs-micro); color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; }
.reply-a      { color: var(--text); font-size: 17px; line-height: 1.75; font-style: italic; }
.ai-box   { gap: 16px; }
.ai-tags  { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-tag {
  height: 36px; padding: 0 14px; border-radius: var(--radius);
  font-size: var(--fs-micro); font-weight: 500;
  border: 1px solid var(--border); background: var(--bg); color: var(--muted);
  display: inline-flex; align-items: center;
}
.ai-tag.active { border-color: var(--primary-border-2); background: var(--primary-fill-2); color: var(--primary); }
.ai-output { flex: 1; background: var(--bg); border-radius: var(--radius); padding: 20px; font-size: 17px; color: var(--muted); line-height: 1.75; overflow: hidden; }
.cursor-blink { display: inline-block; width: 2px; height: 18px; background: var(--primary); animation: blink 1s steps(1) infinite; vertical-align: middle; margin-left: 3px; }
@keyframes blink { 50% { opacity: 0; } }

/* Product choice */
.products-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 800px; margin: 0 auto; }
@media (max-width: 639px) { .products-choice { grid-template-columns: 1fr; } }
.product-choice-card {
  display: flex; flex-direction: column; gap: 12px; padding: 32px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--text);
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.product-choice-card:hover { border-color: var(--primary-border-2); box-shadow: var(--glow-card); transform: translateY(-2px); }
.product-choice-icon  { font-size: 32px; }
.product-choice-card h3 { font-size: 20px; font-weight: 700; }
.product-choice-card p  { font-size: 15px; color: var(--muted); line-height: 1.6; flex: 1; }
.product-choice-badge   { display: inline-block; font-size: 12px; font-weight: 600; color: var(--primary); background: var(--primary-fill); padding: 4px 10px; border-radius: var(--radius-pill); width: fit-content; }
.product-choice-cta     { font-size: 15px; font-weight: 600; color: var(--primary); margin-top: 4px; }

/* Audit result */
.audit-result { display: none; margin-top: 28px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; text-align: left; }
.audit-result.show { display: block; animation: floatIn .4s ease; }
.ar-name   { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.ar-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-size: 15px; color: var(--muted); }
.ar-rating strong { font-size: 30px; font-weight: 700; color: var(--primary); }
.ar-stats  { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.ar-stat   { display: flex; justify-content: space-between; font-size: 15px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.ar-stat span:first-child  { color: var(--muted); }
.ar-stat span:last-child   { font-weight: 600; }
.ar-stat.neg span:last-child { color: var(--destructive); }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 56px; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.stat-card  { text-align: center; padding: 32px 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.stat-num   {
  font-size: clamp(32px, 5vw, 48px); font-weight: 700; line-height: 1.2;
  background: linear-gradient(135deg, color-mix(in hsl, var(--primary) 50%, var(--text)), var(--primary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 15px; color: var(--muted); margin-top: 6px; }

/* Marquee */
.marquee-wrap { overflow: hidden; position: relative; height: 52px; }
.marquee-wrap::before, .marquee-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2;
}
.marquee-wrap::before { left: 0;  background: linear-gradient(90deg,  var(--bg), transparent); }
.marquee-wrap::after  { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee { display: flex; gap: 56px; align-items: center; animation: scroll 22s linear infinite; width: max-content; }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee span { font-size: 15px; color: var(--muted-2); white-space: nowrap; font-weight: 500; }

/* FAQ */
.faq-list { max-width: 768px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); }
.faq-q { padding: 20px 24px; font-size: 17px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: color var(--dur-base); user-select: none; }
.faq-q:hover { color: var(--primary); }
.faq-chevron { transition: transform var(--dur-slow); color: var(--muted-2); font-size: 14px; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) ease, padding var(--dur-slow); padding: 0 24px; font-size: 17px; color: var(--muted); line-height: 1.75; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 24px 20px; }

/* Final CTA */
.final { text-align: center; position: relative; padding: 128px 0; }
.final::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, color-mix(in hsl, var(--primary) 10%, transparent) 0%, transparent 65%);
  pointer-events: none;
}
.final h2, .final .sub, .final .btn-shimmer { position: relative; z-index: 1; }

/* Trust grid */
.trust-grid { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 1000px; margin: 0 auto; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }

/* Mobile overrides */
@media (max-width: 639px) {
  .hero           { text-align: center; }
  .hero p         { margin-left: auto; margin-right: auto; }
  .hero-btns      { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .form-row       { flex-direction: column; }
  .form-row .btn  { width: 100%; justify-content: center; }
  .card           { padding: 24px; }
  .product-wrap   { padding: 24px; }
  .float-card     { max-width: 240px; }
  .small-txt      { text-align: center; }
  .link-arrow     { justify-content: center; width: 100%; }
  .product-wrap .btn { width: 100%; justify-content: center; text-align: center; }
  .btn-shimmer    { width: 100%; max-width: 320px; }
}
@media (max-width: 767px) {
  .hero-vis { display: none; }
  .product-wrap.reverse { direction: ltr; }
}

/* --- DU-003: RU home — replace inline styles (scoped) ---------------------- */
.fc-float-quote { font-size: 17px; margin-top: 6px; }
.fc-float-tg-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.fc-tg-chip {
  width: 28px; height: 28px; border-radius: 50%; background: var(--primary-fill);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--primary);
}
.fc-float-tg-text { font-size: 15px; }
.fc-bar span:nth-child(1) { height: 18px; }
.fc-bar span:nth-child(2) { height: 26px; }
.fc-bar span:nth-child(3) { height: 22px; }
.fc-bar span:nth-child(4) { height: 32px; }
.fc-bar span:nth-child(5) { height: 28px; }
.fc-bar span:nth-child(6) { height: 36px; }

.ru-h2-center-mb48 { text-align: center; margin-bottom: 48px; }
.btn-nowrap { white-space: nowrap; }
.btn-mt-8 { margin-top: 8px; }
.btn-w-full { width: 100%; }
.mock-cap { font-size: 13px; color: var(--muted-2); }
.mock-bar span:nth-child(1) { height: 20px; }
.mock-bar span:nth-child(2) { height: 30px; }
.mock-bar span:nth-child(3) { height: 26px; }
.mock-bar span:nth-child(4) { height: 38px; }
.mock-bar span:nth-child(5) { height: 32px; }
.mock-bar span:nth-child(6) { height: 42px; }
.mock-bar span:nth-child(7) { height: 36px; }
.mock-rating-jump { font-size: 15px; color: var(--muted); }

.section-audit-center { text-align: center; }
.audit-inner { max-width: 540px; margin: 0 auto; }
.ar-stars { color: var(--primary); }

.stats-grid.stats-grid--cases {
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .stats-grid.stats-grid--cases { grid-template-columns: repeat(3, 1fr); }
}
.stat-card--case { text-align: left; padding: 28px; }
.stat-case-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.stat-case-icon {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.stat-case-icon--primary { background: linear-gradient(135deg, var(--primary), var(--primary-3)); }
.stat-case-icon--brand { background: linear-gradient(135deg, var(--primary-3), var(--primary)); }
.stat-case-icon--alert { background: linear-gradient(135deg, var(--destructive), var(--warning)); }
.stat-case-title { font-weight: 700; font-size: 16px; }
.stat-case-title--semi { font-weight: 600; font-size: 16px; }
.stat-case-meta { font-size: 13px; color: var(--muted-2); font-weight: 600; }
.stat-case-meta--normal { font-weight: 400; }
.stat-kv {
  display: flex; justify-content: space-between; padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.stat-kv:last-child { border-bottom: none; }
.stat-kv-label { color: var(--muted-2); }
.stat-kv-val { font-weight: 600; }
.stat-kv-val--ok { font-weight: 600; color: var(--success); }
.stat-case-body { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.stats-case-foot { text-align: center; margin-top: 32px; color: var(--muted-2); font-size: 14px; }

.bridge--plain { font-style: normal; font-weight: 500; color: var(--muted); }
.legal-footer {
  padding: 16px; text-align: center; font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--border); background: var(--bg);
}
.legal-footer a { color: var(--primary); margin: 0 10px; text-decoration: none; }
.legal-footer .sep { color: var(--border); }
.ru-product-tile { text-decoration: none; color: inherit; display: block; }

} /* end @scope (.page-ru-home) */

}
