/* Тема по мотивам Launch UI (github.com/launch-ui/launch-ui, MIT): почти чёрный
   фон, стеклянные карточки, градиентные заголовки, тёплое оранжевое свечение.
   Подключается последней в base.html и перекрывает слои site.css теми же
   селекторами. Палитра — в переменных --lu-*, компоненты ниже только их читают. */

/* Светлая тема Launch UI */
html:root,
html:root:not([data-theme]) {
  --lu-bg: #f7f7f8; --lu-surface: #ffffff; --lu-surface-2: #f1f1f3;
  --lu-fg: #09090b; --lu-muted: #71717a; --lu-line: #e4e4e7;
  --lu-brand: #ea6b2d; --lu-brand-2: #f39a3d; --lu-brand-tint: #fdeee4;
  --lu-link: #c2531c; --lu-accent-text: #b4501c;
  --lu-btn: #09090b; --lu-btn-hover: #27272a; --lu-btn-ink: #fafafa;
  --lu-nav: rgb(247 247 248 / .72); --lu-panel: #09090b; --lu-on-dark: #fafafa; --lu-on-dark-dim: #a1a1aa;
  --lu-glow: rgb(243 154 61 / .28); --lu-glow-soft: rgb(243 154 61 / .14);
  --lu-hero: radial-gradient(60% 55% at 50% 115%, rgb(243 154 61 / .45), transparent 70%), #09090b;
  --lu-glass: linear-gradient(180deg, rgb(255 255 255 / .9), rgb(255 255 255 / .6));
  --lu-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 12px 32px rgb(0 0 0 / .06);

  --color-bg: var(--lu-bg); --color-surface: var(--lu-surface); --color-surface-muted: var(--lu-surface-2);
  --color-border: var(--lu-line); --color-border-accent: rgb(234 107 45 / .4);
  --color-heading: var(--lu-fg); --color-text: #27272a; --color-text-muted: var(--lu-muted);
  --color-inverse-bg: #09090b; --color-inverse-text: #fafafa;
  --color-accent: var(--lu-brand); --color-accent-hover: #d65a1e; --color-accent-soft: var(--lu-accent-text);
  --color-accent-text: var(--lu-accent-text); --color-accent-fill: var(--lu-brand); --color-accent-fill-hover: #d65a1e;
  --color-focus-ring: var(--lu-brand);
  --shadow-card: var(--lu-shadow); --shadow-card-hover: 0 1px 2px rgb(0 0 0 / .05), 0 20px 44px rgb(0 0 0 / .1);
  --radius-surface: 14px; --radius-button: 10px;
  --font-text: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --bg: var(--color-bg); --card: var(--color-surface); --card-alt: var(--color-surface-muted);
  --border: var(--color-border); --border-red: var(--color-border-accent);
  --red: var(--color-accent); --red-dark: var(--color-accent-hover);
  --text: var(--color-text); --text-dim: var(--color-text-muted); --heading: var(--color-heading);
  --black: var(--color-inverse-bg); --white: var(--color-inverse-text);
}

/* Тёмная тема Launch UI — и тёмные полосы сайта (.tone-dark) */
html .tone-dark,
html:root[data-theme="dark"],
html[data-theme="dark"] .tone-light,
html[data-theme="dark"] .landing-surface,
html[data-theme="dark"] .service-chapter {
  --lu-bg: #09090b; --lu-surface: #111113; --lu-surface-2: #18181b;
  --lu-fg: #fafafa; --lu-muted: #a1a1aa; --lu-line: rgb(255 255 255 / .1);
  --lu-brand: #f6b26b; --lu-brand-2: #f39a3d; --lu-brand-tint: rgb(243 154 61 / .12);
  --lu-link: #f6b26b; --lu-accent-text: #f6b26b;
  --lu-btn: #fafafa; --lu-btn-hover: #e4e4e7; --lu-btn-ink: #09090b;
  --lu-nav: rgb(9 9 11 / .6); --lu-panel: #111113;
  --lu-glow: rgb(243 154 61 / .35); --lu-glow-soft: rgb(243 154 61 / .16);
  --lu-glass: linear-gradient(180deg, rgb(255 255 255 / .05), rgb(255 255 255 / 0));
  --lu-shadow: 0 0 0 1px rgb(255 255 255 / .02), 0 20px 40px rgb(0 0 0 / .4);

  --color-bg: var(--lu-bg); --color-surface: var(--lu-surface); --color-surface-muted: var(--lu-surface-2);
  --color-border: var(--lu-line); --color-border-accent: rgb(246 178 107 / .4);
  --color-heading: var(--lu-fg); --color-text: #e4e4e7; --color-text-muted: var(--lu-muted);
  --color-inverse-bg: #111113; --color-inverse-text: #fafafa;
  --color-accent: var(--lu-brand); --color-accent-hover: #f39a3d; --color-accent-soft: var(--lu-brand);
  --color-accent-text: var(--lu-accent-text); --color-focus-ring: var(--lu-brand);
  --shadow-card: var(--lu-shadow); --shadow-card-hover: 0 0 0 1px rgb(255 255 255 / .04), 0 24px 48px rgb(0 0 0 / .55);
  --bg: var(--color-bg); --card: var(--color-surface); --card-alt: var(--color-surface-muted);
  --border: var(--color-border); --border-red: var(--color-border-accent);
  --red: var(--color-accent); --red-dark: var(--color-accent-hover);
  --text: var(--color-text); --text-dim: var(--color-text-muted); --heading: var(--color-heading);
  --black: var(--color-inverse-bg); --white: var(--color-inverse-text);
}
html .tone-light, html .landing-surface, html .service-chapter {
  --color-bg: var(--lu-bg); --color-surface: var(--lu-surface); --color-surface-muted: var(--lu-surface-2);
  --color-border: var(--lu-line); --color-heading: var(--lu-fg); --color-text: var(--color-text); --color-text-muted: var(--lu-muted);
  --bg: var(--color-bg); --card: var(--color-surface); --card-alt: var(--color-surface-muted);
  --border: var(--color-border); --text: var(--color-text); --text-dim: var(--color-text-muted); --heading: var(--color-heading);
}
html .tone-dark { background: var(--lu-bg); }
html .landing-surface, html .service-chapter { background: var(--color-bg); }
html body { font-family: var(--font-text); -webkit-font-smoothing: antialiased; }
::selection { background: rgb(243 154 61 / .3); }
html:root, html .compact-home { --ink: var(--color-heading); --muted: var(--color-text-muted); --soft: var(--color-surface-muted); }
html .offer-card .offer-aud, html .compact-case span, html .case-label { color: var(--color-accent-text); }

/* Первый экран — как hero Launch UI: чёрный фон, оранжевое свечение снизу */
html .hero-band, html .hero-band .band-visual { background: #09090b; }
html .hero-band::after, html .hero-band .band-visual::after {
  background:
    radial-gradient(55% 60% at 50% 120%, rgb(243 154 61 / .55), transparent 70%),
    linear-gradient(90deg, rgb(9 9 11 / .95) 0%, rgb(9 9 11 / .78) 45%, rgb(9 9 11 / .35) 100%);
}
@media (max-width: 900px) {
  html .hero-band::after, html .hero-band .band-visual::after { background: radial-gradient(80% 50% at 50% 115%, rgb(243 154 61 / .5), transparent 70%), linear-gradient(180deg, rgb(9 9 11 / .6), rgb(9 9 11 / .92)); }
}
html .hero-band .band-title { background: linear-gradient(90deg, #fafafa 30%, #a1a1aa); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 10px 30px rgb(0 0 0 / .5)); }
html .hero-band .band-title .text-red { background: linear-gradient(90deg, #f6b26b, #f39a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
html .hero-band .band-lead { color: #a1a1aa; }
html .hero-band .band-kicker { display: inline-flex; gap: 8px; align-items: center; padding: 5px 12px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .12); background: linear-gradient(180deg, rgb(255 255 255 / .06), rgb(255 255 255 / .01)); color: #e4e4e7; letter-spacing: .04em; text-transform: none; font-family: var(--font-text); font-weight: 500; }
html .hero-band .band-kicker::before { content: "Новое"; font-size: 11px; font-weight: 600; color: #09090b; background: #f6b26b; border-radius: 999px; padding: 1px 8px; }
html .hero-band a.video-jump { color: #e4e4e7; }
html .hero-band .btn-ghost { color: #fafafa; border-color: rgb(255 255 255 / .14); background: linear-gradient(180deg, rgb(255 255 255 / .06), rgb(255 255 255 / .01)); }

/* Градиентные крупные заголовки секций, как в Launch UI */
html[data-theme="dark"] .compact-section h2,
html[data-theme="dark"] .band-title,
html[data-theme="dark"] .section-title { background: linear-gradient(180deg, #fafafa 40%, #a1a1aa); -webkit-background-clip: text; background-clip: text; color: transparent; }
html .compact-section h2 { letter-spacing: -.035em; font-weight: 600; }

/* Шапка — как .pnav: во всю ширину, тёмно-синее стекло, золотое подчёркивание */
html .navbar {
  top: 0; width: 100%; border-radius: 0; border: 0;
  background: var(--lu-nav);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: none;
}
html .navbar.is-hidden { transform: translate(-50%, -100%); }
html .navbar .navbar-inner { max-width: 1280px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); }
html .navbar .navbar-brand, html .navbar .navbar-brand span { color: #fff; font-weight: 750; }
html .navbar .navbar-links a { color: var(--lu-on-dark-dim); font-size: 14px; }
html .navbar .navbar-links a:hover,
html .navbar .navbar-links a[aria-current="page"],
html .navbar .navbar-links a.active { color: #fff; }
html .navbar .navbar-links a::after { background: var(--lu-brand); height: 2px; }
html .navbar .navbar-links a.nav-primary { color: var(--lu-btn-ink); }
@media (max-width: 1350px) {
  html .navbar .navbar-links.is-open { background: var(--lu-panel); border-color: rgba(255,255,255,.1); }
}
html .navbar .theme-toggle { border-color: rgba(255,255,255,.25); color: var(--lu-on-dark); border-radius: 10px; }
html .navbar .theme-toggle:hover { border-color: var(--lu-brand); }
html .navbar-admin-menu { background: var(--lu-panel); border-color: rgba(255,255,255,.1); }
html .navbar-admin-menu .chip { color: var(--lu-on-dark); background: transparent; border-color: rgba(255,255,255,.18); }
html .navbar-admin-menu .chip:hover { border-color: var(--lu-brand); color: #fff; }

/* Кнопки — как .pbtn: золотой градиент, тёмно-синий текст */
html .btn { border-radius: 10px; font-weight: 700; font-size: 15px; padding: 11px 20px; }
html .btn-primary,
html .nav-primary,
html .skip-link {
  background: var(--lu-btn); border-color: transparent; color: var(--lu-btn-ink);
}
html .btn-primary:hover, html .nav-primary:hover {
  background: var(--lu-btn-hover); border-color: transparent; color: var(--lu-btn-ink);
  box-shadow: 0 8px 24px var(--lu-glow-soft);
}
html .btn-ghost, html .btn-secondary { border-color: var(--border); color: var(--heading); background: transparent; }
html .btn-ghost:hover, html .btn-secondary:hover { border-color: var(--lu-brand); }
html .tone-dark .btn-ghost, html .tone-dark .btn-secondary { color: var(--lu-on-dark); border-color: rgba(255,255,255,.3); }

/* Карточки — как .pcard */
html .card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-card); }
html a.card:hover { border-color: var(--lu-brand); }
html .chip { border-radius: 999px; }

/* Текст: ссылки синие, кикеры золотые, заголовки тёмно-синие */
html main a:not(.btn):not(.card):not(.chip):not([class*="nav"]) { color: var(--lu-link); }
html .band-kicker, html .section-kicker, html .service-label { color: var(--color-accent-text); letter-spacing: .14em; font-weight: 700; }
html h1, html h2, html h3 { text-wrap: balance; }
html main :is(h2, h3) a:not(.btn) { color: inherit; }

/* Подвал — тёмно-синий, как полосы LAB LLM */
html .site-footer { background: var(--lu-panel); color: var(--lu-on-dark); }
html .footer-summary, html .footer-links { color: var(--lu-on-dark-dim); }
html .footer-links a:hover { color: var(--lu-brand); }
html .footer-bottom { color: var(--lu-on-dark-dim); border-top-color: rgba(255,255,255,.1); }

/* Главная: вернувшиеся информационные блоки в карточках LAB LLM */
html .compact-heading .band-kicker, html .compact-section > .compact-wrap > .band-kicker { margin: 0 0 6px; }
html .home-proof-card { background: var(--lu-hero); color: var(--lu-on-dark); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-card); }
html .home-proof-card h3 { color: #fff; margin: 0 0 8px; font-size: 1.35rem; }
html .home-proof-card p { color: var(--lu-on-dark-dim); max-width: 70ch; line-height: 1.55; margin: 0 0 18px; }
html .home-proof-card .btn-ghost { color: var(--lu-on-dark); border-color: rgba(255,255,255,.3); }
html .home-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
html .home-steps li { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-card); }
html .home-steps span { display: block; font: 700 12px var(--font-mono); letter-spacing: .14em; color: var(--color-accent-text); margin-bottom: 10px; }
html .home-steps strong { display: block; color: var(--heading); font-size: 1.05rem; margin-bottom: 6px; }
html .home-steps p { margin: 0; color: var(--text-dim); line-height: 1.5; font-size: .95rem; }
html .home-services { display: grid; gap: 18px; }
html .home-service { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 26px; box-shadow: var(--shadow-card); }
html .home-service h3 { margin: 0 0 10px; font-size: 1.4rem; color: var(--heading); }
html .home-service-main > p:not(.offer-aud) { line-height: 1.55; color: var(--text); margin: 0 0 16px; }
html .home-answers, html .home-flow { display: grid; gap: 10px; margin: 0 0 16px; }
html .home-answers div, html .home-flow div { border-left: 3px solid var(--lu-brand); padding-left: 12px; }
html .home-answers dt, html .home-flow dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--color-accent-text); }
html .home-answers dd, html .home-flow dd { margin: 2px 0 0; line-height: 1.5; color: var(--text); }
html .home-service-groups { display: grid; gap: 14px; align-content: start; background: var(--card-alt); border-radius: 14px; padding: 18px; }
html .home-service-groups h4 { margin: 0 0 8px; font-size: .9rem; color: var(--heading); }
html .home-service-groups .chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
html .home-service-groups .chip { background: var(--card); border: 1px solid var(--border); color: var(--text); font-size: 12.5px; padding: 3px 10px; }
html .compact-case .home-client { color: var(--text-dim); font-size: .9rem; margin: 0 0 12px; }
html .compact-case .home-flow dd { font-size: .92rem; }
html .home-archive { margin-top: 18px; }
html .home-archive summary { cursor: pointer; font-weight: 700; color: var(--heading); padding: 10px 0; }
html .home-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
html .home-quotes blockquote { margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-card); }
html .home-quotes p { margin: 0 0 12px; line-height: 1.55; color: var(--text); }
html .home-quotes footer { color: var(--text-dim); font-size: .9rem; }
html .home-quotes strong { color: var(--heading); }
@media (max-width: 900px) {
  html .home-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html .home-service { grid-template-columns: 1fr; padding: 20px; }
  html .home-quotes { grid-template-columns: 1fr; }
}
@media (max-width: 540px) { html .home-steps { grid-template-columns: 1fr; } }
html .home-service-head { display: flex; gap: 14px; align-items: flex-start; }
html .home-service-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--lu-brand-tint); color: var(--lu-brand); }
html[data-theme="dark"] .home-service-icon { background: var(--lu-brand-tint); color: var(--lu-brand-2); }
html .home-service-icon svg { width: 28px; height: 28px; stroke: currentColor; }
html .home-scene { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 12px; }
html .home-scene summary { cursor: pointer; font-weight: 700; color: var(--lu-link); }
html .home-scene[open] summary { margin-bottom: 12px; }
html .home-scene .scene { border-radius: 14px; overflow: hidden; }

/* Меню «Лаборатория» в шапке */
html .nav-drop { position: relative; }
html .nav-drop summary { list-style: none; cursor: pointer; color: var(--lu-on-dark-dim); font-size: 14px; white-space: nowrap; }
html .nav-drop summary::-webkit-details-marker { display: none; }
html .nav-drop summary::after { content: " ▾"; font-size: 11px; }
html .nav-drop summary:hover, html .nav-drop[open] summary, html .nav-drop summary[aria-current] { color: #fff; }
html .nav-drop-menu { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: 4px; min-width: 280px; padding: 8px; background: var(--lu-panel); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; box-shadow: 0 20px 44px -20px rgba(0,0,0,.6); white-space: normal; }
html .navbar .nav-drop-menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; border-left: 3px solid transparent; color: var(--lu-on-dark); }
html .navbar .nav-drop-menu a::after { display: none; }
html .navbar .nav-drop-menu a:hover, html .navbar .nav-drop-menu a[aria-current] { background: rgba(255,255,255,.07); border-left-color: var(--lu-brand); }
html .nav-drop-menu strong { color: #fff; font-size: 14px; }
html .nav-drop-menu span { color: var(--lu-on-dark-dim); font-size: 12.5px; }
@media (max-width: 1350px) {
  html .nav-drop-menu { position: static; transform: none; min-width: 0; margin-top: 8px; box-shadow: none; }
}

/* Страница «Обучение»: переключатель курсов и карточки новых курсов */
html .course-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
html .course-jump a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--heading); font-size: 14px; font-weight: 600; }
html .course-jump a:hover { border-color: var(--lu-brand); }
html .course-card { margin-top: 24px; }
html .course-head { display: flex; gap: 14px; align-items: flex-start; }
html .page-main .card { scroll-margin-top: 90px; }

/* Блог: новости проектов */
html .news-card { display: flex; flex-direction: column; gap: 8px; }
html .news-card .chip { align-self: flex-start; }
html .news-img { width: calc(100% + 2 * var(--space-8)); margin: calc(-1 * var(--space-8)) calc(-1 * var(--space-8)) 8px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px 18px 0 0; }
html .news-date { margin-top: auto; font-size: 13px; }

/* Главная: слайдер работ (приём «Muestras» с moxen.cl) */
html .works-nav { display: flex; align-items: center; gap: 10px; }
html .works-count { font: 600 14px var(--font-mono); color: var(--text-dim); margin-right: 6px; }
html .works-count b { color: var(--heading); }
html .works-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: var(--heading); font-size: 18px; cursor: pointer; transition: border-color .2s, transform .2s; }
html .works-btn:hover { border-color: var(--lu-brand); transform: translateY(-1px); }
html .works-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 560px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 0; padding-bottom: 10px; scrollbar-width: thin; outline-offset: 6px; }
html .works-slide { scroll-snap-align: start; margin: 0; position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--lu-panel); box-shadow: var(--shadow-card); }
html .works-slide img, html .works-slide video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease-out); }
html .works-slide:hover img { transform: scale(1.04); }
html .works-slide figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; color: #fff; font-size: 14px; line-height: 1.4; background: linear-gradient(180deg, transparent, rgb(9 9 11 / .9)); }
html .works-slide figcaption span { display: block; font: 700 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lu-brand); margin-bottom: 4px; }
html .works-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 14px 0 0; font-size: 14px; }
html .works-hint { color: var(--text-dim); }
@media (max-width: 540px) { html .works-track { grid-auto-columns: 86%; } html .works-btn { width: 38px; height: 38px; } }

/* Главная: форма «Обсудим задачу» (приём «Conversemos» с moxen.cl) */
html .talk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
html .talk-intro p { color: var(--text-dim); line-height: 1.55; max-width: 46ch; }
html .talk-steps { margin: 18px 0 22px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
html .talk-steps li { counter-increment: s; display: flex; gap: 12px; align-items: center; color: var(--heading); font-weight: 600; }
html .talk-steps li::before { content: counter(s, decimal-leading-zero); font: 700 12px var(--font-mono); color: var(--color-accent-text); border: 1px solid var(--border); border-radius: 999px; padding: 4px 9px; }
html .talk-form { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 26px; box-shadow: var(--shadow-card); }
html .talk-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--heading); }
html .talk-form input, html .talk-form select, html .talk-form textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); width: 100%; }
html .talk-form :is(input, select, textarea):focus { outline: 2px solid var(--lu-brand); outline-offset: 1px; border-color: transparent; }
html .talk-actions { display: flex; gap: 10px; flex-wrap: wrap; }
html .talk-error { margin: 0; color: #b42318; font-size: 14px; }
html[data-theme="dark"] .talk-error { color: #ef7b7b; }
html .talk-note { margin: 0; font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }
@media (max-width: 900px) { html .talk-grid { grid-template-columns: 1fr; } html .talk-form { padding: 20px; } }

/* === Слой Launch UI поверх компонентов === */
/* Шапка — матовое стекло цвета фона, тонкая линия снизу */
html .navbar { background: var(--lu-nav); border-bottom: 1px solid var(--lu-line); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); }
html .navbar .navbar-brand, html .navbar .navbar-brand span { color: var(--lu-fg); font-weight: 650; }
html .navbar .navbar-links a, html .nav-drop summary { color: var(--lu-muted); font-weight: 500; }
html .navbar .navbar-links a:hover, html .navbar .navbar-links a[aria-current="page"], html .nav-drop summary:hover, html .nav-drop[open] summary, html .nav-drop summary[aria-current] { color: var(--lu-fg); }
html .navbar .navbar-links a::after { background: var(--lu-brand); }
html .navbar .navbar-links a.nav-primary { color: var(--lu-btn-ink); }
html .navbar .navbar-burger .bar { background: var(--lu-fg); }
html .navbar .theme-toggle { border-color: var(--lu-line); color: var(--lu-fg); }
html .nav-drop-menu, html .navbar-admin-menu { background: var(--lu-surface); border-color: var(--lu-line); box-shadow: var(--lu-shadow); }
html .navbar .nav-drop-menu a { color: var(--lu-fg); }
html .navbar .nav-drop-menu a:hover, html .navbar .nav-drop-menu a[aria-current] { background: var(--lu-surface-2); border-left-color: var(--lu-brand); }
html .nav-drop-menu strong { color: var(--lu-fg); }
html .nav-drop-menu span { color: var(--lu-muted); }
html .navbar-admin-menu .chip { color: var(--lu-fg); border-color: var(--lu-line); }
@media (max-width: 1350px) { html .navbar .navbar-links.is-open { background: var(--lu-surface); border-color: var(--lu-line); } }

/* Кнопки: главная — контрастная (белая на тёмном, чёрная на светлом), вторичная — стекло */
html .btn-primary, html .nav-primary, html .skip-link { background: var(--lu-btn); color: var(--lu-btn-ink); border-color: transparent; box-shadow: 0 1px 0 rgb(255 255 255 / .15) inset, 0 8px 20px -8px var(--lu-glow); }
html .btn-primary:hover, html .nav-primary:hover { background: var(--lu-btn-hover); color: var(--lu-btn-ink); box-shadow: 0 1px 0 rgb(255 255 255 / .15) inset, 0 12px 28px -8px var(--lu-glow); }
html .btn-ghost, html .btn-secondary { background: var(--lu-glass); border: 1px solid var(--lu-line); color: var(--lu-fg); }
html .btn-ghost:hover, html .btn-secondary:hover { border-color: var(--lu-brand); }

/* Стеклянные карточки: градиент, тонкая рамка, верхний край светлее */
html :is(.card, .offer-card, .home-service, .home-steps li, .compact-case, .home-quotes blockquote, .talk-form, .direction-panel, .hub-card, .kpi) {
  background: var(--lu-glass), var(--card); border: 1px solid var(--lu-line); box-shadow: var(--lu-shadow);
}
html[data-theme="dark"] :is(.card, .offer-card, .home-service, .home-steps li, .compact-case, .home-quotes blockquote, .talk-form, .direction-panel, .hub-card) { border-top-color: rgb(255 255 255 / .18); border-bottom-color: rgb(255 255 255 / .04); }
html .home-service-groups { background: var(--lu-surface-2); }
html[data-theme="dark"] .home-service-groups { background: rgb(255 255 255 / .03); border: 1px solid var(--lu-line); }
html .home-service-icon { background: var(--lu-brand-tint); color: var(--lu-brand); }
html .direction-tabs button { background: var(--lu-glass), var(--card); border-color: var(--lu-line); color: var(--lu-fg); }
html .direction-tabs button[aria-selected=true], html .compact-home .direction-tabs button[aria-selected=true], html .hub-controls button[aria-pressed=true] { background: var(--lu-btn); color: var(--lu-btn-ink); border-color: var(--lu-btn); }
html .metric-strip { border-color: var(--lu-line); }
html .metric b { color: var(--lu-fg); }
html main a:not(.btn):not(.card):not(.chip):not([class*="nav"]) { color: var(--lu-link); }
html .band-kicker, html .section-kicker, html .service-label, html .offer-aud { color: var(--color-accent-text); }

/* Подвал — фон страницы с тонкой линией, как в Launch UI */
html .site-footer { background: var(--lu-bg); color: var(--lu-fg); border-top: 1px solid var(--lu-line); }
html .footer-brand-name, html .footer-heading { color: var(--lu-fg); }
html .footer-summary, html .footer-links, html .footer-links a { color: var(--lu-muted); }
html .footer-links a:hover { color: var(--lu-fg); }
html .footer-bottom { color: var(--lu-muted); border-top-color: var(--lu-line); }
html .site-footer .social-icons a { color: var(--lu-muted); }
html .home-proof-card .btn-ghost { color: #fafafa; background: linear-gradient(180deg, rgb(255 255 255 / .08), rgb(255 255 255 / .02)); border-color: rgb(255 255 255 / .16); }
html main .compact-heading > a.btn-primary, html main a.btn-primary { color: var(--lu-btn-ink); }

/* site.css задаёт .nav-primary цвет текста с !important (белый под прежнюю красную
   заливку) — в тёмной теме кнопка белая, поэтому перебиваем тем же способом. */
html .navbar a.nav-primary, html .navbar a.nav-primary:hover { color: var(--lu-btn-ink) !important; }

/* compact.css красит карточки главной в #fff селекторами .compact-home .x —
   :is(.compact-home, body) поднимает специфичность выше них и тема работает в обе стороны. */
html :is(.compact-home, body) :is(.direction-panel, .offer-card, .compact-case, .home-service, .home-steps li, .home-quotes blockquote, .talk-form, .customer-entry-grid article) {
  background: var(--lu-glass), var(--card); border: 1px solid var(--lu-line); box-shadow: var(--lu-shadow);
}
html[data-theme="dark"] :is(.compact-home, body) :is(.direction-panel, .offer-card, .compact-case, .home-service, .home-steps li, .home-quotes blockquote, .talk-form, .customer-entry-grid article) {
  border-top-color: rgb(255 255 255 / .18); border-bottom-color: rgb(255 255 255 / .04);
}
html :is(.compact-home, body) .direction-tabs { background: var(--lu-glass), var(--card); border: 1px solid var(--lu-line); box-shadow: none; }
html :is(.compact-home, body) .hub-icon { background: var(--lu-brand-tint); }
html .theme-menu { background: var(--lu-surface); border-color: var(--lu-line); }
html .theme-menu button { color: var(--lu-fg); }
html .theme-menu button::before { color: var(--lu-brand); }
html .theme-menu button:hover, html .theme-menu button:focus-visible { background: var(--lu-surface-2); }
html .home-proof-card { border: 1px solid var(--lu-line); border-top-color: rgb(255 255 255 / .16); }

/* ===== Блоки Launch UI на главной ===== */
/* Цифры: крупные числа с градиентом и тёплой подсветкой */
html .lu-stats { padding: 56px 0; border-block: 1px solid var(--lu-line); background: var(--lu-bg); }
html .lu-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
html .lu-stat b { display: block; font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 600; letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(180deg, var(--lu-fg) 30%, var(--lu-brand)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgb(243 154 61 / .35)); }
html .lu-stat span { display: block; margin-top: 10px; color: var(--lu-muted); font-size: 14px; }
@media (max-width: 700px) { html .lu-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Услуги как карточки цен: иллюстрация, крупная цена, кнопка, список с галочками */
html .lu-pricing { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
html .lu-price { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; border: 1px solid var(--lu-line);
  background: radial-gradient(80% 40% at 30% 0%, rgb(243 154 61 / .14), transparent 70%), var(--lu-glass), var(--card); box-shadow: var(--lu-shadow); }
html[data-theme="dark"] .lu-price { border-top-color: rgb(255 255 255 / .18); }
html .lu-price-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
html .lu-price-kicker { margin: 0; font: 600 12px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent-text); }
html .lu-price h3 { margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; color: var(--lu-fg); }
html .lu-price-aud { margin: 0; color: var(--lu-muted); font-size: 14px; }
html .lu-price-num { margin: 8px 0 4px; font-size: 2.2rem; font-weight: 700; letter-spacing: -.03em; color: var(--lu-fg); line-height: 1.1; }
html .lu-price-num small { font-size: 1rem; font-weight: 500; color: var(--lu-muted); }
html .lu-price-ask { font-size: 1.4rem; }
html .lu-price-btn { width: 100%; justify-content: center; }
html .lu-price-desc { margin: 4px 0 0; color: var(--lu-muted); font-size: 14px; line-height: 1.55; padding-bottom: 14px; border-bottom: 1px solid var(--lu-line); }
html .lu-check { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--lu-fg); }
html .lu-check li { position: relative; padding-left: 24px; line-height: 1.45; color: var(--lu-muted); }
html .lu-check li strong { color: var(--lu-fg); font-weight: 600; }
html .lu-check li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--lu-line); display: grid; place-items: center; font-size: 10px; color: var(--lu-brand); }
html .lu-more { margin-top: auto; padding-top: 10px; }
html .lu-more summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--lu-link); }
html .lu-more[open] summary { margin-bottom: 12px; }
html .lu-more .scene { border-radius: 12px; overflow: hidden; margin-top: 12px; }

/* Своя иллюстрация карточки: сетка плиток, связи, светящийся узел */
html .lu-illus { position: relative; height: 150px; overflow: hidden; border-bottom: 1px solid var(--lu-line);
  background: radial-gradient(45% 70% at 50% 50%, rgb(243 154 61 / .22), transparent 70%); }
html .lu-illus-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
html .lu-illus .t { stroke: var(--lu-line); fill: rgb(255 255 255 / .015); }
html:not([data-theme="dark"]) .lu-illus .t { stroke: #e4e4e7; fill: #fafafa; }
html .lu-illus .l { stroke: var(--lu-line); }
html .lu-illus .lu-flow { stroke: var(--lu-brand); stroke-dasharray: 4 6; opacity: .7; }
@media (prefers-reduced-motion: no-preference) { html .lu-illus .lu-flow { animation: lu-dash 2.4s linear infinite; } html .lu-price:hover .lu-illus-node { transform: translate(-50%, -50%) scale(1.06); } }
@keyframes lu-dash { to { stroke-dashoffset: -40; } }
html .lu-illus-node { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px;
  color: var(--lu-fg); background: linear-gradient(180deg, var(--lu-surface-2), var(--lu-surface)); border: 1px solid var(--lu-line); border-top-color: rgb(255 255 255 / .25);
  box-shadow: 0 0 0 6px rgb(243 154 61 / .06), 0 0 40px rgb(243 154 61 / .35); transition: transform .3s; }
html .lu-illus-node svg { width: 30px; height: 30px; stroke: currentColor; }

/* Вопросы и ответы — аккордеон */
html .lu-faq h2 { text-align: center; }
html .lu-faq-list { max-width: 760px; margin: 0 auto; }
html .lu-faq-list details { border-bottom: 1px solid var(--lu-line); }
html .lu-faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 2px; font-weight: 500; color: var(--lu-fg); }
html .lu-faq-list summary::-webkit-details-marker { display: none; }
html .lu-faq-list summary::after { content: "⌄"; color: var(--lu-muted); transition: transform .25s; }
html .lu-faq-list details[open] summary::after { transform: rotate(180deg); }
html .lu-faq-list p { margin: 0 0 18px; color: var(--lu-muted); line-height: 1.6; max-width: 64ch; }

/* Финальный призыв с оранжевым свечением снизу */
html .lu-cta { position: relative; overflow: hidden; text-align: center; padding: 96px 0 120px; background: var(--lu-bg); border-top: 1px solid var(--lu-line); }
html .lu-cta h2 { position: relative; z-index: 2; margin: 0 0 12px; font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 600; letter-spacing: -.04em; color: var(--lu-fg); }
html .lu-cta p { position: relative; z-index: 2; margin: 0 auto 28px; max-width: 40rem; color: var(--lu-muted); }
html .lu-cta-actions { position: relative; z-index: 2; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
html .lu-glow { position: absolute; left: 50%; transform: translateX(-50%); z-index: 1; pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, rgb(243 154 61 / .55), rgb(243 154 61 / .15) 45%, transparent 70%); filter: blur(10px); }
html .lu-glow-bottom { bottom: -150px; width: 80%; height: 300px; }

/* Заголовки секций по центру, как в Launch UI */
html .compact-home .compact-section > .compact-wrap > h2,
html .compact-home .compact-heading { text-align: center; }
html .compact-home .compact-heading { flex-direction: column; align-items: center; gap: 10px; }

/* Кабинет долгов: палитра «Ledger» (debts.css) → Launch UI. Статусы сохраняют смысл. */
html .debt-page {
  --card: var(--lu-surface); --card-alt: var(--lu-surface-2); --border: var(--lu-line);
  --heading: var(--lu-fg); --text: var(--color-text); --text-dim: var(--lu-muted);
  --ok: #15803d; --ok-bg: #dcfce7; --warn: #b45309; --warn-bg: #fef3c7; --red: #b91c1c; --crit-bg: #fee2e2;
  background: var(--lu-bg);
}
html[data-theme="dark"] .debt-page { --ok: #4ade80; --ok-bg: rgb(74 222 128 / .1); --warn: #fbbf24; --warn-bg: rgb(251 191 36 / .1); --red: #f87171; --crit-bg: rgb(248 113 113 / .1); }
html .debt-page h1, html .debt-page h2 { font-family: var(--font-text); letter-spacing: -.03em; font-weight: 600; }
html .debt-page .eyebrow { color: var(--color-accent-text); }
html .debt-page :is(.debt-summary article, .debt-card, .month-plan > *) { background: var(--lu-glass), var(--card); box-shadow: var(--lu-shadow); }

/* Меню аккаунта: личное отдельно от управления, обычные строки вместо пилюль */
html .navbar-admin-menu { min-width: 240px; padding: 6px; gap: 0; border-radius: 14px; }
html .acct-head { margin: 0; padding: 10px 12px 12px; display: grid; gap: 2px; border-bottom: 1px solid var(--lu-line); margin-bottom: 4px; }
html .acct-head strong { color: var(--lu-fg); font-size: 14px; font-weight: 600; }
html .acct-head span { color: var(--lu-muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html .acct-group { margin: 8px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lu-muted); }
html .navbar-admin-menu .acct-item { display: block; width: 100%; text-align: left; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--lu-fg); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; box-shadow: none; }
html .navbar-admin-menu .acct-item:hover, html .navbar-admin-menu .acct-item:focus-visible { background: var(--lu-surface-2); outline: none; }
html .navbar-admin-menu .navbar-logout { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--lu-line); }
html .navbar-admin-menu .acct-logout { color: var(--lu-muted); }
