/* LLMCheck — Notion / Stripe / Linear (light) */

:root {
  --bg: #ffffff;
  --bg-subtle: #f9f9f8;
  --bg-raised: #f1f1ef;
  --bg-overlay: #ffffff;

  --accent: #2383e2;
  --accent-bg: #e8f1fb;
  --accent-text: #1a6bbf;

  --ok: #0f7b6c;
  --ok-bg: #e3f5f2;
  --warn: #c47d0e;
  --warn-bg: #fef3dc;
  --err: #c93b3b;
  --err-bg: #fdeaea;

  --tx-primary: #191919;
  --tx-secondary: #6b7280;
  --tx-muted: #9ca3af;
  --tx-disabled: #d1d5db;

  --bd: rgba(0, 0, 0, 0.08);
  --bd-md: rgba(0, 0, 0, 0.14);
  --bd-focus: var(--accent);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.04);

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;

  --content-max: 900px;
  --shell-max: 1120px;
  --layout-gutter: 1.5rem;
  /* Верхний отступ первого блока в main — как у .page-intro на внутренних страницах */
  --page-intro-pad-top: 28px;

  /* Chart / model colors */
  --chart-gpt: #2383e2;
  --chart-claude: #6b7280;
  --chart-gemini: #0f7b6c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 16px;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--accent);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none !important;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--tx-primary);
  background: var(--bg-subtle);
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--tx-primary);
  background: var(--bg-raised);
  padding: 2px 6px;
  border-radius: var(--r-sm);
}

/* ——— Layout (единый контейнер: main, футер, шапка — одна сетка shell-max + gutter) ——— */
.layout,
.lc-wrap,
.site-header__inner {
  width: 100%;
  max-width: var(--shell-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--layout-gutter);
  padding-right: var(--layout-gutter);
  box-sizing: border-box;
}

/* Единственный контейнер контента в main — та же сетка, что шапка и футер */
.site-main > .layout {
  min-width: 0;
}

.site-main {
  padding: 24px 0 64px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.page-intro {
  text-align: left;
  padding: var(--page-intro-pad-top) 0 0;
  margin: 0;
  max-width: none;
}

.page-intro .text-secondary {
  max-width: min(60ch, 100%);
}

.page-intro__api {
  font-size: 11px;
  font-weight: 600;
  color: var(--tx-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.page-intro .h1-page,
.page-intro .h1-hero,
.page-intro .text-secondary,
.page-intro .text-muted,
.page-intro__api {
  text-align: left;
}

/* Home — testimonial (before footer) */
.home-testimonial {
  border-top: 1px solid var(--bd);
  padding: clamp(2.5rem, 6vw, 3.75rem) 0;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 100%);
}

.home-testimonial__inner {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
  max-width: var(--shell-max);
}

@media (min-width: 720px) {
  .home-testimonial__inner {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 2.5rem 3rem;
  }
}

.home-testimonial__figure {
  margin: 0;
  justify-self: center;
}

@media (min-width: 720px) {
  .home-testimonial__figure {
    justify-self: end;
  }
}

.home-testimonial__img {
  display: block;
  width: min(220px, 72vw);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--bd);
}

.home-testimonial__quote {
  margin: 0;
  padding: 0;
  border: 0;
}

.home-testimonial__quote > p {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.55;
  color: var(--tx-primary);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.home-testimonial__cite {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bd);
  font-size: 14px;
  font-style: normal;
  color: var(--tx-secondary);
}

.home-testimonial__name {
  font-weight: 600;
  color: var(--tx-primary);
}

.home-testimonial__role {
  font-size: 13px;
  font-weight: 500;
  color: var(--tx-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer {
  border-top: 1px solid var(--bd);
  padding: 20px 0;
  font-size: 12px;
  color: var(--tx-muted);
  background: var(--bg-subtle);
}

.site-footer .layout,
.site-footer .lc-wrap {
  padding-top: 0;
  padding-bottom: 0;
}

.site-footer a {
  color: var(--tx-secondary);
}

.site-footer a:hover {
  color: var(--tx-primary);
}

.site-footer__inner {
  display: grid;
  gap: 20px 28px;
  align-items: start;
}

@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1.2fr) auto auto;
  }
}

.site-footer__logo {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--tx-primary);
  text-decoration: none !important;
}

.site-footer__logo:hover {
  color: var(--accent-text);
}

.site-footer__desc {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--tx-muted);
  max-width: 28ch;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.site-footer__nav a {
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
}

.site-footer__contacts-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tx-muted);
}

.site-footer__col--contacts a {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
  text-decoration: none !important;
}

.site-footer__legal {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--bd);
  font-size: 11px;
  color: var(--tx-muted);
}

.site-footer__offer,
.site-footer__legal-links {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--tx-muted);
}

.site-footer__offer a,
.site-footer__legal-links a {
  font-weight: 500;
  color: var(--tx-secondary);
  text-decoration: none !important;
}

.site-footer__offer a:hover,
.site-footer__legal-links a:hover {
  color: var(--accent-text);
}

.site-footer__legal-sep {
  margin: 0 0.4em;
  opacity: 0.55;
  user-select: none;
}

.site-footer__offer-current {
  font-weight: 600;
  color: var(--tx-primary);
}

.legal-consent {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--bd);
  background: var(--bg-subtle);
}

.legal-consent-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
  color: var(--tx-primary);
}

.legal-consent-label input {
  margin-top: 3px;
  flex-shrink: 0;
}

.legal-consent-label a {
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  color: var(--accent-text);
}

.pricing-legal-row {
  margin-bottom: 18px;
  max-width: 52rem;
}

/* Юридические страницы (RU) */
.legal-doc {
  max-width: 800px;
  margin: 0 auto 32px;
  padding: 1.5rem 1.35rem 1.75rem;
  font-size: 15px;
  line-height: 1.65;
  color: var(--tx-primary);
}

.legal-doc__title {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--tx-primary);
}

.legal-doc__pubdate {
  margin: 0 0 1.75rem;
  font-size: 14px;
  color: var(--tx-muted);
}

.legal-doc__section {
  margin-bottom: 0.25rem;
}

.legal-doc__section h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--tx-primary);
}

.legal-doc__section h2:first-of-type {
  margin-top: 0;
}

.legal-doc ol,
.legal-doc ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.35rem;
}

.legal-doc li {
  margin: 0.4rem 0;
}

.legal-doc li::marker {
  color: var(--tx-muted);
}

.legal-doc__table-wrap {
  margin: 1rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.legal-doc__table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}

.legal-doc__table th,
.legal-doc__table td {
  border: 1px solid var(--bd);
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
}

.legal-doc__table th {
  background: var(--bg-subtle);
  font-weight: 600;
  color: var(--tx-primary);
}

.legal-doc__table a {
  color: var(--accent-text);
  text-decoration: none;
}

.legal-doc__table a:hover {
  text-decoration: underline;
}

.back-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 90;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--bd);
  border-radius: 50%;
  background: var(--bg);
  color: var(--tx-primary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.back-top:hover {
  background: var(--bg-raised);
  border-color: var(--bd-md);
}

.back-top:active {
  transform: scale(0.96);
}

.back-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.back-top[hidden] {
  display: none !important;
}

@media (max-width: 680px) {
  .site-main {
    padding-bottom: 88px;
  }
}

@media print {
  .site-header,
  .site-nav__backdrop,
  .back-top,
  .skip-link,
  .report-share,
  .lc-toast-stack,
  .site-nav__toggle,
  .site-nav__bar-login,
  .site-user-chip {
    display: none !important;
  }

  .report-toc {
    position: static !important;
    break-inside: avoid;
  }

  body {
    background: #fff;
  }
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bd);
  isolation: isolate;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-width: 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--tx-primary);
}
.site-logo:hover {
  text-decoration: none;
}

.site-logo__mark {
  width: 18px;
  height: 18px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.site-logo__text {
  font-size: 15px;
  font-weight: 700;
  color: var(--tx-primary);
  letter-spacing: -0.2px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--tx-muted);
  flex-shrink: 0;
}

.lang-switch__link {
  color: var(--tx-secondary);
  text-decoration: none !important;
  padding: 4px 2px;
  border-radius: var(--r-sm);
}

.lang-switch__link:hover {
  color: var(--accent-text);
}

.lang-switch__current {
  color: var(--tx-primary);
  padding: 4px 2px;
}

.lang-switch__sep {
  opacity: 0.4;
  user-select: none;
  pointer-events: none;
}

@media (min-width: 681px) {
  .lang-switch--drawer {
    display: none !important;
  }
}

/* Авторизованный пользователь в шапке */
.site-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(220px, 42vw);
  min-width: 0;
  text-decoration: none;
  color: var(--tx-primary);
  flex-shrink: 1;
  border-radius: var(--r-md);
  padding: 2px 4px 2px 2px;
  margin: 0;
}
.site-user-chip:hover {
  text-decoration: none;
  background: var(--bg-raised);
  color: var(--tx-primary);
}
.site-user-chip__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #2383e2 0%, #1a6bbf 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.site-user-chip__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.site-user-chip__name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

body.auth-logged-in .site-nav__bar-login,
body.auth-logged-in .site-nav__login-inline {
  display: none !important;
}

body.auth-logged-in #site-nav-panel > a[href*="/profile"] {
  display: none !important;
}

body.auth-logged-in .site-footer a[href*="auth-login"],
body.auth-logged-in .site-footer__nav a[href*="/profile"] {
  display: none !important;
}

/* Профиль: в шапке не дублируем «Продукт / Проверка» — есть действия в карточке ниже */
body.page-profile #site-nav-panel > a[href="/ru/"],
body.page-profile #site-nav-panel > a[href="/ru/check"],
body.page-profile #site-nav-panel > a[href="/en/"],
body.page-profile #site-nav-panel > a[href="/en/check"] {
  display: none !important;
}

.profile-guest-banner {
  padding: 20px 22px;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}

/* Author `display: flex` beats UA [hidden]; force hide when JS sets hidden="". */
.profile-guest-banner[hidden] {
  display: none !important;
}

.profile-guest-banner__text {
  margin: 0;
  font-size: 15px;
  color: var(--tx-primary);
}

.profile-page--guest .profile-hero,
.profile-page--guest .profile-grid,
.profile-page--guest .profile-foot-actions {
  display: none !important;
}

/* Toasts (top-right) */
.lc-toast-stack {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
  max-width: min(380px, calc(100vw - 28px));
}

.lc-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-xl);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transform: translateX(calc(100% + 24px));
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
}

.lc-toast--in {
  transform: translateX(0);
  opacity: 1;
}

.lc-toast--out {
  transform: translateX(calc(100% + 16px));
  opacity: 0;
}

.lc-toast--success {
  background: linear-gradient(145deg, #0d6b5c 0%, #0a5a4e 100%);
}

.lc-toast--info {
  background: linear-gradient(145deg, #1f6fc4 0%, #1a5fa8 100%);
}

.lc-toast--warn {
  background: linear-gradient(145deg, #b45309 0%, #92400e 100%);
}

.lc-toast__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.lc-toast__text {
  flex: 1;
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  .lc-toast {
    transition-duration: 0.01ms;
  }
}

@media (max-width: 680px) {
  .lc-toast-stack {
    top: max(56px, calc(48px + env(safe-area-inset-top) + 6px));
    right: max(12px, env(safe-area-inset-right));
    max-width: calc(100vw - 24px);
  }
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
}

@media (min-width: 681px) {
  .site-nav {
    margin-left: auto;
  }
}

.site-nav a:not(.site-nav__cta) {
  font-size: 13px;
  font-weight: 500;
  color: var(--tx-secondary);
  text-decoration: none;
}
.site-nav a:not(.site-nav__cta):hover {
  color: var(--tx-primary);
  text-decoration: none;
}
.site-nav a:not(.site-nav__cta).is-active,
.site-nav a:not(.site-nav__cta)[aria-current="page"] {
  color: var(--tx-primary);
  font-weight: 600;
}

.site-nav__sep {
  width: 1px;
  height: 16px;
  background: var(--bd);
  margin: 0 4px;
}

.site-nav__cta {
  background: var(--accent);
  color: #fff !important;
  padding: 6px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  border: none;
  text-decoration: none !important;
}
.site-nav__cta:hover {
  background: var(--accent-text);
  text-decoration: none !important;
}

.site-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--tx-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.site-nav__toggle:hover {
  background: var(--bg-raised);
}

.site-nav__toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
  pointer-events: none;
}

.site-nav__toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 1px;
  background: var(--tx-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-menu-open .site-nav__toggle-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-menu-open .site-nav__toggle-bars span:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .site-nav__toggle-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav__bar-login {
  display: none;
  align-items: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 4px;
}

.site-nav__bar-login:hover {
  color: var(--accent-text);
  text-decoration: none;
}

.site-nav__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(15, 23, 42, 0.38);
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.site-nav__backdrop:not([hidden]) {
  display: block;
}

body.is-nav-open {
  overflow: hidden;
}

/* ——— Typography ——— */
.h1-hero {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: var(--tx-primary);
  margin: 0 0 12px;
}

.h1-page {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: var(--tx-primary);
  margin: 0 0 8px;
}

.h2-section {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: var(--tx-primary);
  margin: 0 0 8px;
  text-align: left;
}

.h3-block {
  font-size: 15px;
  font-weight: 600;
  color: var(--tx-primary);
  margin: 0 0 6px;
}

.text-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--tx-secondary);
  margin: 0 0 8px;
  letter-spacing: 0;
}

.text-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--tx-secondary);
  margin: 0;
}

.text-secondary {
  font-size: 13px;
  font-weight: 400;
  color: var(--tx-secondary);
}

.text-muted {
  font-size: 12px;
  font-weight: 400;
  color: var(--tx-muted);
}

.mt-0 {
  margin-top: 0;
}
.mb-8 {
  margin-bottom: 8px;
}

/* ——— Buttons ——— */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s;
}
.btn-primary:hover {
  background: var(--accent-text);
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--tx-primary);
  border: 1px solid var(--bd-md);
  padding: 8px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: background 0.12s, box-shadow 0.12s;
}
.btn-secondary:hover {
  background: var(--bg-subtle);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--tx-primary);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--tx-secondary);
  border: none;
  padding: 8px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.btn-ghost:hover {
  background: var(--bg-raised);
  color: var(--tx-primary);
  text-decoration: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  justify-content: center;
}

.btn-row--left {
  justify-content: flex-start;
}

/* ——— Cards ——— */
.card {
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: var(--r-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.card-interactive {
  transition: box-shadow 0.15s, border-color 0.15s;
  cursor: pointer;
}
.card-interactive:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--bd-md);
}

.card-accent {
  background: var(--accent-bg);
  border: 1px solid rgba(35, 131, 226, 0.25);
  border-radius: var(--r-xl);
  padding: 1.25rem;
}

.card-flat {
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 1rem;
}

/* ——— Hero ——— */
.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
  margin: var(--page-intro-pad-top) 0 56px;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  }
}

.hero-viz {
  background: linear-gradient(165deg, #f4f7fb 0%, #ffffff 42%, #f7f9fc 100%);
  border: 1px solid var(--bd);
  border-radius: var(--r-xl);
  padding: 0;
  box-shadow: var(--shadow-md), 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  overflow: hidden;
}

.hero-viz__inner {
  padding: 16px 16px 14px;
}

.hero-viz__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.hero-viz__kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tx-muted);
}

.hero-viz__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--tx-primary);
}

.hero-viz__stat {
  text-align: right;
  flex-shrink: 0;
}

.hero-viz__stat-val {
  display: block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--tx-primary);
}

.hero-viz__stat-delta {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ok);
  background: var(--ok-bg);
  padding: 3px 9px;
  border-radius: 999px;
}

.hero-viz__chart {
  display: block;
  width: 100%;
  height: auto;
}

.hero-viz__axis-txt {
  fill: var(--tx-muted);
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font);
}

.hero-viz__axis-txt--x {
  fill: var(--tx-secondary);
  font-size: 10px;
  font-weight: 500;
}

.hero-viz__line-main {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: heroVizDraw 1.15s cubic-bezier(0.33, 1, 0.68, 1) forwards;
  filter: drop-shadow(0 2px 12px rgba(35, 131, 226, 0.28));
}

.hero-viz__line-secondary,
.hero-viz__line-tertiary {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: heroVizDraw 0.95s cubic-bezier(0.33, 1, 0.68, 1) 0.2s forwards;
}

.hero-viz__area {
  opacity: 0;
  animation: heroVizArea 0.75s ease 0.32s forwards;
}

.hero-viz__dots circle {
  opacity: 0;
  animation: heroVizDot 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero-viz__dots circle:nth-child(1) {
  animation-delay: 0.5s;
}
.hero-viz__dots circle:nth-child(2) {
  animation-delay: 0.58s;
}
.hero-viz__dots circle:nth-child(3) {
  animation-delay: 0.66s;
}
.hero-viz__dots circle:nth-child(4) {
  animation-delay: 0.74s;
}
.hero-viz__dots circle:nth-child(5) {
  animation-delay: 0.82s;
}

@keyframes heroVizDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes heroVizArea {
  to {
    opacity: 1;
  }
}

@keyframes heroVizDot {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-viz__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--bd);
}

.hero-viz__lg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  color: var(--tx-secondary);
}

.hero-viz__lg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-viz__lg-dot--accent {
  background: linear-gradient(135deg, #2383e2, #1a6bbf);
  box-shadow: 0 0 0 2px rgba(35, 131, 226, 0.18);
}

.hero-viz__lg-dot--sov {
  background: #6b7280;
}

.hero-viz__lg-dot--niche {
  background: #0f7b6c;
}

@media (prefers-reduced-motion: reduce) {
  .hero-viz__line-main,
  .hero-viz__line-secondary,
  .hero-viz__line-tertiary {
    animation: none;
    stroke-dashoffset: 0;
  }

  .hero-viz__area {
    animation: none;
    opacity: 1;
  }

  .hero-viz__dots circle {
    animation: none;
    opacity: 1;
  }
}

.hero {
  text-align: left;
  margin: 0;
  padding: 0;
}

.hero__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: var(--tx-primary);
  margin: 0 0 14px;
}

.hero__lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--tx-secondary);
  max-width: 52ch;
  margin: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 28px;
}

.model-chips {
  display: flex;
  gap: 6px;
  row-gap: 8px;
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 28px;
}

.model-chips__more {
  font-size: 12px;
  font-weight: 500;
  color: var(--tx-muted);
  padding: 5px 2px 5px 4px;
  line-height: 1.2;
}

.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--bd);
  border-radius: var(--r-md);
  padding: 5px 10px;
  font-size: 12px;
  color: var(--tx-secondary);
  font-weight: 500;
}

.chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ——— Hero: демо-чат (главная) ——— */
.hero-chat-wrap {
  margin: 0 0 32px;
  padding: 22px 22px 20px;
  border-radius: var(--r-xl);
  background: #f7f7f7;
  box-sizing: border-box;
}

.hero-chat-wrap__caption {
  margin: 16px 0 0;
  padding: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
  color: var(--tx-muted);
}

.gpt-chat {
  position: relative;
}

.gpt-chat__head {
  margin-bottom: 18px;
  text-align: left;
}

.gpt-chat__head .gpt-chat__title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
  line-height: 1.25;
}

.gpt-chat__head .gpt-chat__sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #737373;
  line-height: 1.35;
}

.gpt-chat__thread {
  padding: 0;
  max-height: none;
  overflow: visible;
  background: transparent;
}

.gpt-msg {
  margin-bottom: 18px;
}

.gpt-msg:last-child {
  margin-bottom: 0;
}

.gpt-msg--user {
  display: flex;
  justify-content: flex-end;
}

.gpt-msg--user .gpt-msg__bubble {
  max-width: min(50%, 520px);
  padding: 13px 17px;
  border-radius: 20px 20px 6px 20px;
  font-size: 14px;
  line-height: 1.55;
  color: #f5f5f5;
  background: #1a1a1a;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.gpt-msg--assistant {
  display: flex;
  justify-content: flex-start;
}

.gpt-msg--assistant .gpt-msg__bubble {
  max-width: min(100%, 560px);
  padding: 15px 17px 16px;
  border-radius: 20px 20px 20px 6px;
  font-size: 14px;
  line-height: 1.58;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.gpt-msg--assistant .gpt-msg__bubble > p:first-child {
  margin: 0 0 4px;
}

.gpt-msg--assistant .gpt-msg__bubble > p {
  margin: 10px 0 0;
  color: var(--tx-secondary);
}

.gpt-chat__school-list {
  margin: 14px 0 0;
  padding: 0 0 0 1.15em;
  color: var(--tx-secondary);
}

.gpt-chat__school-list li {
  margin-top: 10px;
  line-height: 1.45;
}

.gpt-chat__school-list li:first-child {
  margin-top: 0;
}

.gpt-chat__school-list strong {
  color: var(--tx-primary);
  font-weight: 600;
}

.gpt-msg__footer {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.45;
  color: #737373;
  font-style: normal;
}

/* Появление сообщений (демо) */
.gpt-msg--in {
  opacity: 0;
  transform: translateY(12px);
  animation: gptMsgIn 0.58s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.gpt-msg--in-delay {
  animation-delay: 0.42s;
}

.gpt-chat__school-list li {
  opacity: 0;
  transform: translateX(-8px);
  animation: gptLineIn 0.44s ease forwards;
}

.gpt-chat__school-list li:nth-child(1) {
  animation-delay: 0.72s;
}
.gpt-chat__school-list li:nth-child(2) {
  animation-delay: 0.86s;
}
.gpt-chat__school-list li:nth-child(3) {
  animation-delay: 1s;
}
.gpt-chat__school-list li:nth-child(4) {
  animation-delay: 1.14s;
}

.gpt-msg__footer--in {
  opacity: 0;
  animation: gptMsgIn 0.5s ease 1.22s forwards;
}

/* Главная: инсайт под демо-чатом — «порядок и формулировки в реальном чате» */
.gpt-msg__footer--insight {
  margin-top: 16px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--tx-primary);
  font-weight: 500;
  background: linear-gradient(
    135deg,
    var(--accent-bg) 0%,
    rgba(232, 241, 251, 0.65) 100%
  );
  border: 1px solid rgba(35, 131, 226, 0.22);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  box-shadow: 0 2px 8px rgba(35, 131, 226, 0.07);
}

.gpt-msg__footer--insight .gpt-msg__footer__lead {
  display: inline;
  font-weight: 700;
  color: var(--accent-text);
  letter-spacing: -0.01em;
}

@keyframes gptMsgIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gptLineIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gpt-msg--in,
  .gpt-msg--in-delay,
  .gpt-chat__school-list li,
  .gpt-msg__footer--in {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ——— Logo cloud (clients) ——— */
.logo-cloud {
  margin: 40px 0 0;
  padding: 28px 0 36px;
  border-top: 1px solid var(--bd);
}

.logo-cloud__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--tx-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
}

.logo-cloud__row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px 12px;
}

.logo-cloud__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--tx-secondary);
  transition: color 0.12s, border-color 0.12s, box-shadow 0.12s;
  box-shadow: var(--shadow-sm);
}

.logo-cloud__item:hover {
  color: var(--tx-primary);
  border-color: var(--bd-md);
  box-shadow: var(--shadow-md);
}

.logo-cloud__item--accent {
  color: var(--accent-text);
  border-color: rgba(35, 131, 226, 0.35);
  background: var(--accent-bg);
}

/* Главная: без горизонтальных «линий-разделителей» между секциями и над логотипами */
.page-home .logo-cloud {
  border-top: none;
  padding-top: 20px;
}

.page-home .section + .section {
  border-top: none;
}

.page-home .site-nav__sep {
  display: none;
}

/* ——— Sections ——— */
.section {
  margin: 0;
  padding: 48px 0;
  width: 100%;
}

.section + .section {
  border-top: 1px solid var(--bd);
}

.section__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--tx-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.section__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--tx-primary);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.section__sub {
  font-size: 14px;
  color: var(--tx-secondary);
  line-height: 1.6;
  max-width: min(60ch, 100%);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.audience-scenarios-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.audience-card__lead {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--tx-secondary);
}

.audience-card__list {
  margin: 0;
  padding-left: 1.15em;
  font-size: 13px;
  line-height: 1.5;
  color: var(--tx-secondary);
}

.audience-card__list li + li {
  margin-top: 6px;
}

.process-flow-steps {
  padding-left: 1.15em;
  margin: 14px 0 0;
  max-width: 58ch;
  line-height: 1.55;
}

.process-flow-steps > li + li {
  margin-top: 12px;
}

.process-flow-steps strong {
  color: var(--tx-primary);
  font-weight: 600;
}

/* Лид внутри секции (не в .page-intro) — та же мера строки, что и интро */
.u-measure {
  max-width: min(58ch, 100%);
}

.process-flow-lede {
  margin-top: 10px;
  line-height: 1.55;
}

/* Цепочка проверки (лендинг) — вертикальный поток, без SVG */
.check-pipeline-card {
  margin-top: 24px;
  padding: 1.35rem 1.4rem 1.45rem;
}

.check-pipeline-card__title {
  margin: 0 0 1.1rem;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--tx-muted);
}

.check-pipeline__flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.check-pipeline__node {
  position: relative;
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 13px 15px 13px 17px;
  background: var(--bg);
  text-align: left;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.88) inset;
}

.check-pipeline__node-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--tx-primary);
  line-height: 1.25;
}

.check-pipeline__node-meta {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--tx-secondary);
}

.check-pipeline__node--brand {
  border-left: 3px solid var(--tx-muted);
}

.check-pipeline__node--pack {
  border-left: 3px solid var(--warn);
  background: linear-gradient(165deg, var(--warn-bg) 0%, var(--bg) 72%);
}

.check-pipeline__node--api {
  border-left: 3px solid var(--accent);
  background: linear-gradient(165deg, var(--accent-bg) 0%, var(--bg) 70%);
}

.check-pipeline__node--agg {
  border-left: 3px solid var(--ok);
  background: linear-gradient(165deg, var(--ok-bg) 0%, var(--bg) 75%);
}

.check-pipeline__node--report {
  border-left: 3px solid var(--chart-claude);
}

.check-pipeline__node--live {
  border-left: 3px solid var(--accent);
  background: var(--bg-subtle);
}

.check-pipeline__join {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 18px;
  flex-shrink: 0;
  color: var(--tx-muted);
}

.check-pipeline__join svg {
  display: block;
  opacity: 0.65;
}

/* Компактная цепочка (страница проверки, колонка справа) */
.check-pipeline-card--compact {
  padding: 0.75rem 0.85rem 0.8rem;
}

.check-pipeline-card--compact .check-pipeline-card__title {
  margin: 0 0 0.35rem;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.check-pipeline-card--compact .check-pipeline-card__lede {
  margin: 0 0 7px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--tx-muted);
}

.check-pipeline-card--compact .check-pipeline__node {
  padding: 8px 10px 8px 12px;
  border-radius: var(--r-md);
}

.check-pipeline-card--compact .check-pipeline__node-title {
  font-size: 12.5px;
  line-height: 1.2;
}

.check-pipeline-card--compact .check-pipeline__node-meta {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.35;
}

.check-pipeline-card--compact .check-pipeline__join {
  height: 10px;
}

.check-pipeline-card--compact .check-pipeline__join svg {
  width: 12px;
  height: auto;
  opacity: 0.5;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* ——— Form ——— */
.form-card {
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  max-width: 600px;
  margin: 40px 0;
}

.form-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--tx-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bd);
}

.field {
  margin-bottom: 12px;
}

.field__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--tx-secondary);
  margin-bottom: 5px;
}

.field__input,
.field__select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--bd-md);
  border-radius: var(--r-md);
  padding: 8px 10px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--tx-primary);
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.field__input::placeholder {
  color: var(--tx-muted);
}

.field__input:focus,
.field__select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-bg);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.model-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.model-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--bd-md);
  background: var(--bg);
  font-size: 13px;
  font-weight: 500;
  color: var(--tx-secondary);
  cursor: pointer;
  transition: 0.12s;
  box-shadow: var(--shadow-sm);
  user-select: none;
}

.model-pill:hover {
  background: var(--bg-subtle);
  color: var(--tx-primary);
}

.model-pill:has(input:checked) {
  background: var(--accent-bg);
  border-color: rgba(35, 131, 226, 0.4);
  color: var(--accent-text);
  font-weight: 600;
}

.model-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.model-pill__check {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid var(--bd-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  pointer-events: none;
  position: relative;
  z-index: 0;
}

.model-pill:has(input:checked) .model-pill__check {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.model-pill:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.query-type:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.model-pill__check svg {
  display: none;
  width: 10px;
  height: 10px;
}

.model-pill:has(input:checked) .model-pill__check svg {
  display: block;
}

.query-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.query-type {
  position: relative;
  border: 1px solid var(--bd-md);
  border-radius: var(--r-lg);
  padding: 10px 12px;
  cursor: pointer;
  transition: 0.12s;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  display: block;
}

.query-type:hover {
  background: var(--bg-subtle);
}

.query-type:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.query-type input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.query-type__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--tx-primary);
  margin-bottom: 2px;
}

.query-type:has(input:checked) .query-type__name {
  color: var(--accent-text);
}

.query-type__desc {
  font-size: 12px;
  color: var(--tx-muted);
}

/* Progress (check page) */
.check-progress-panel {
  display: none;
  max-width: 600px;
  margin: 24px auto 0;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}

.check-progress-panel.is-visible {
  display: block;
}

/* Страница проверки: форма + справка справа (десктоп) */
.check-page-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 36px;
}

.check-page-grid__main {
  min-width: 0;
}

.check-page-grid__main .form-card {
  margin-top: 0;
  margin-bottom: 0;
}

.check-page-grid__main .check-progress-panel {
  margin-left: 0;
  margin-right: 0;
}

.check-page-grid__aside {
  min-width: 0;
}

.check-page-grid__aside.check-pipeline-card {
  margin-top: 0;
}

@media (min-width: 960px) {
  .check-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 600px) minmax(252px, 300px);
    gap: 32px 40px;
    align-items: start;
  }

  .check-page-grid__aside {
    position: sticky;
    top: 64px;
  }
}

.progress {
  height: 3px;
  background: var(--bg-raised);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 16px;
}

.progress__fill {
  height: 100%;
  background: var(--accent);
  width: 0;
  transition: width 0.4s ease;
  border-radius: 2px;
}

.progress__label {
  font-size: 12px;
  color: var(--tx-muted);
  margin-top: 8px;
  text-align: center;
}

/* ——— Report ——— */
.report-page-title {
  margin-bottom: 8px;
}

.report-meta {
  margin-top: 14px;
  padding: 12px 14px;
}

.report-meta__list {
  display: grid;
  gap: 10px 20px;
  margin: 0;
}

@media (min-width: 640px) {
  .report-meta__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.report-meta__list > div {
  margin: 0;
}

.report-meta__list dt {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tx-muted);
}

.report-meta__list dd {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--tx-primary);
  line-height: 1.35;
}

.report-share {
  margin-top: 16px;
  padding: 14px 16px;
}

.report-share--in-actions {
  margin-top: 20px;
  margin-bottom: 0;
}

/* Report — ежедневный автозапуск (платный тариф) */
.report-schedule {
  margin-top: 20px;
  padding: 16px 18px;
  background: linear-gradient(
    165deg,
    var(--warn-bg) 0%,
    var(--bg) 52%
  );
  border: 1px solid rgba(196, 125, 14, 0.22);
  border-radius: var(--r-xl);
}

.report-schedule__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-bottom: 10px;
}

.report-schedule__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tx-primary);
}

.report-schedule__desc {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--tx-secondary);
}

.report-schedule__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 10px;
}

.report-schedule__btn {
  font-weight: 600;
}

.report-schedule__pricing {
  font-weight: 600;
  font-size: 13px;
}

.report-schedule__hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  max-width: 56ch;
}

.report-share__main {
  width: 100%;
  justify-content: center;
}

@media (min-width: 520px) {
  .report-share__main {
    width: auto;
    justify-content: flex-start;
  }
}

.report-share__panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--bd);
}

.report-share__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--tx-secondary);
  margin-bottom: 8px;
}

.report-share__field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 520px) {
  .report-share__field {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .report-share__input {
    flex: 1;
    min-width: 0;
  }

  .report-share__copy {
    flex-shrink: 0;
  }
}

.report-share__input {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--tx-primary);
}

.report-share__hint {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  max-width: 52ch;
}

.report-layout {
  display: grid;
  gap: 20px;
  align-items: start;
}

@media (min-width: 960px) {
  .report-layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}

.report-toc {
  position: sticky;
  top: 56px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 960px) {
  .report-toc {
    flex-direction: column;
    flex-wrap: nowrap;
  }
}

.report-toc a {
  font-size: 12px;
  font-weight: 500;
  color: var(--tx-secondary);
  padding: 6px 10px;
  border-radius: var(--r-md);
  text-decoration: none;
}
.report-toc a:hover {
  background: var(--bg-subtle);
  color: var(--tx-primary);
  text-decoration: none;
}
.report-toc a.is-active {
  background: var(--accent-bg);
  color: var(--accent-text);
}

.report-block {
  scroll-margin-top: 56px;
  margin-bottom: 32px;
}

.score-header {
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.score-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-sm);
}

.badge--accent {
  background: var(--accent-bg);
  color: var(--accent-text);
}
.badge--ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.badge--warn {
  background: var(--warn-bg);
  color: var(--warn);
}
.badge--err {
  background: var(--err-bg);
  color: var(--err);
}
.badge--muted {
  background: var(--bg-raised);
  color: var(--tx-secondary);
}

.score-big {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -2px;
}

.score-label {
  font-size: 12px;
  color: var(--tx-muted);
  margin-top: 2px;
}

.score-ring-svg {
  flex-shrink: 0;
}

.score-ring-track {
  stroke: var(--bg-raised);
}

.score-ring-circle {
  stroke: var(--accent);
  transition: stroke-dashoffset 0.9s ease;
}

.score-ring-center {
  font-size: 14px;
  font-weight: 700;
  fill: var(--accent);
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}

@media (min-width: 1240px) {
  .metrics-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

.metric-card {
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.metric-card__val {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 3px;
  color: var(--tx-primary);
}

.metric-card__label {
  font-size: 12px;
  color: var(--tx-muted);
  line-height: 1.4;
}

.metric-block-intro {
  margin: -2px 0 14px;
  font-size: 13px;
  color: var(--tx-secondary);
  line-height: 1.5;
  max-width: 56ch;
}

.metric-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.metric-card__head .metric-card__label {
  margin: 0;
  flex: 1;
  font-weight: 500;
  color: var(--tx-secondary);
}

.metric-card__pill {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-bg);
  padding: 3px 7px;
  border-radius: 999px;
}

.metric-card__pill--ok {
  color: var(--ok);
  background: var(--ok-bg);
}

.metric-card__pill--risk {
  color: var(--err);
  background: var(--err-bg);
}

.metric-card__sub {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--tx-muted);
}

.metric-card .metric-spark-wrap {
  margin-top: auto;
}

.metric-bar {
  margin-top: 10px;
}

.metric-bar__track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-raised);
  overflow: hidden;
  border: 1px solid var(--bd);
}

.metric-bar__fill {
  height: 100%;
  min-width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #1a6bbf, #2383e2);
  transition: width 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}

.metric-bar__fill--growth {
  background: linear-gradient(90deg, #0d5c52, #0f7b6c);
}

.metric-bar__scale {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 500;
  color: var(--tx-muted);
  line-height: 1.25;
}

.metric-bar__scale span {
  min-width: 0;
}

.metric-bar__scale--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
}

.metric-spark-wrap {
  margin-top: 10px;
  padding: 10px 10px 6px;
  border-radius: var(--r-md);
  background: var(--bg-subtle);
  border: 1px solid var(--bd);
}

.metric-chart-hint {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tx-muted);
  line-height: 1.35;
}

.metric-spark {
  display: block;
  width: 100%;
  height: auto;
}

.metric-hbar {
  cursor: crosshair;
}

.metric-hbar rect,
.metric-hbar .metric-hit-dot {
  transition: filter 0.12s ease, stroke-width 0.12s ease;
}

.metric-hit-dot {
  pointer-events: none;
}

.metric-hbar:hover rect,
.metric-hbar:focus rect {
  filter: brightness(0.94);
  stroke-width: 2px;
}

.metric-hbar:hover .metric-hit-dot,
.metric-hbar:focus .metric-hit-dot {
  stroke-width: 2.5px;
}

.metric-hbar:focus {
  outline: none;
}

.metric-hbar:focus-visible rect {
  filter: brightness(0.94);
  stroke-width: 2px;
}

.metric-hbar:focus-visible .metric-hit-dot {
  stroke-width: 2.5px;
}

.metric-card--tone-ok {
  border-color: rgba(15, 123, 108, 0.22);
  background: linear-gradient(165deg, rgba(227, 245, 242, 0.4) 0%, var(--bg) 42%);
}

.metric-card--tone-risk {
  border-color: rgba(201, 59, 59, 0.18);
  background: linear-gradient(165deg, rgba(253, 234, 234, 0.35) 0%, var(--bg) 45%);
}

.report-section {
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: var(--r-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
}

.report-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bd);
}

.report-section__head .report-section__title {
  flex: 1;
  min-width: 0;
}

.report-section__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--tx-primary);
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

/* Inline help (?): справа, раскрывающаяся подсказка */
.help-hint {
  position: relative;
  flex-shrink: 0;
}

.help-hint__btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--bd-md);
  background: var(--bg-raised);
  color: var(--tx-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.help-hint__btn::-webkit-details-marker {
  display: none;
}

.help-hint__btn:hover {
  border-color: var(--accent);
  color: var(--accent-text);
  background: var(--accent-bg);
}

.help-hint[open] > .help-hint__btn {
  border-color: var(--accent);
  color: var(--accent-text);
  background: var(--accent-bg);
}

.help-hint__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(340px, calc(100vw - 36px));
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--bd-md);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--tx-secondary);
  z-index: 30;
}

.help-hint__panel strong {
  color: var(--tx-primary);
  font-weight: 600;
}

.hall-verification-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hall-verification-line__text {
  flex: 1;
  min-width: min(100%, 28ch);
}

/* Model bars */
.model-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.model-bar__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.model-bar__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--tx-secondary);
  width: 88px;
  flex-shrink: 0;
}

.model-bar__track {
  flex: 1;
  height: 5px;
  background: var(--bg-raised);
  border-radius: 3px;
  overflow: hidden;
}

.model-bar__fill {
  height: 100%;
  border-radius: 3px;
  width: 0;
  transition: width 0.9s ease;
}

.model-bar__val {
  font-size: 13px;
  font-weight: 600;
  color: var(--tx-primary);
  width: 34px;
  text-align: right;
  flex-shrink: 0;
}

/* Chart */
.chart-panel {
  background: var(--bg-subtle);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 12px 12px 8px;
  margin-top: 4px;
}

.chart-svg {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 680 / 280;
  max-height: 320px;
}

.chart-legend-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--tx-secondary);
}

.chart-legend-inline span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend-inline i {
  width: 18px;
  height: 3px;
  border-radius: 2px;
  display: inline-block;
}

.chart-grid-line {
  stroke: var(--bd);
  stroke-dasharray: 3 3;
  fill: none;
}

.chart-label-y {
  font-size: 9px;
  fill: var(--tx-muted);
}

.chart-line {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-area-stop-1 {
  stop-color: var(--accent);
  stop-opacity: 0.08;
}
.chart-area-stop-2 {
  stop-color: var(--accent);
  stop-opacity: 0;
}

.chart-dot {
  stroke: #fff;
  stroke-width: 1.5;
}

/* Donut */
.donut-svg {
  display: block;
  flex-shrink: 0;
}

.donut-center-val {
  font-size: 13px;
  font-weight: 600;
  fill: var(--tx-primary);
}

.donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--tx-secondary);
}

.donut-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Hallucination */
.hall-item {
  padding: 10px 12px;
  border-radius: var(--r-lg);
  border-left: 3px solid;
  margin-bottom: 7px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.hall-item__main {
  flex: 1;
  min-width: 0;
}

.hall-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.hall-item--critical {
  border-left-color: var(--err);
  background: var(--err-bg);
}

.hall-item--warning {
  border-left-color: var(--warn);
  background: var(--warn-bg);
}

.hall-item__title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0;
  color: var(--tx-primary);
  flex: 1;
  min-width: 0;
}

.hall-item__text {
  font-size: 12px;
  color: var(--tx-secondary);
  line-height: 1.5;
}

/* Quotes (report — compact table + legacy cards) */
.report-quotes-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 6px;
}

.report-quotes-head__title {
  margin-bottom: 0;
}

.report-quotes-head__xlsx {
  flex-shrink: 0;
  font-size: 12px;
  padding: 6px 12px;
  font-weight: 600;
}

.quotes-compact__hint {
  font-size: 12px;
  line-height: 1.45;
  margin: 0 0 10px;
}

.quotes-compact-wrap {
  overflow-x: auto;
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
}

.quotes-compact {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 12px;
}

.quotes-compact th,
.quotes-compact td {
  padding: 5px 10px;
  text-align: left;
  border-bottom: 1px solid var(--bd);
  vertical-align: top;
}

.quotes-compact th {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tx-muted);
  background: var(--bg-subtle);
  white-space: nowrap;
}

.quotes-compact tbody tr:last-child td {
  border-bottom: 0;
}

.quotes-compact tbody tr:hover td {
  background: rgba(0, 0, 0, 0.02);
}

.quotes-compact__n {
  color: var(--tx-muted);
  width: 2.25rem;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}

.quotes-compact__model {
  font-weight: 600;
  color: var(--tx-primary);
  white-space: nowrap;
  width: 1%;
}

.quotes-compact__mention {
  width: 1%;
  white-space: nowrap;
}

.quotes-compact__pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  line-height: 1.3;
}

.quotes-compact__pill--yes {
  background: var(--ok-bg);
  color: var(--ok);
}

.quotes-compact__pill--no {
  background: var(--bg-raised);
  color: var(--tx-muted);
}

.quotes-compact__text {
  color: var(--tx-secondary);
  line-height: 1.4;
  word-break: break-word;
}

.quote-item {
  padding: 10px 12px;
  border-left: 2px solid var(--bd-md);
  background: var(--bg-subtle);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin-bottom: 7px;
}

.quote-item__model {
  font-size: 11px;
  font-weight: 600;
  color: var(--tx-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.quote-item__text {
  font-size: 13px;
  color: var(--tx-secondary);
  line-height: 1.6;
}

.quote-item__text::before {
  content: '"';
}
.quote-item__text::after {
  content: '"';
}

/* Alerts */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-lg);
  margin-bottom: 8px;
}

.alert--error {
  background: var(--err-bg);
  border: 1px solid rgba(201, 59, 59, 0.2);
}
.alert--warning {
  background: var(--warn-bg);
  border: 1px solid rgba(196, 125, 14, 0.2);
}
.alert--info {
  background: var(--accent-bg);
  border: 1px solid rgba(35, 131, 226, 0.2);
}

.alert__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  color: currentColor;
}

.alert__title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--tx-primary);
}

.alert__text {
  font-size: 12px;
  color: var(--tx-secondary);
  line-height: 1.5;
}

/* Recommendations */
.rec-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-lg);
  border: 1px solid var(--bd);
  background: var(--bg);
  margin-bottom: 7px;
  transition: box-shadow 0.12s;
}

.rec-item:hover {
  box-shadow: var(--shadow-md);
}

.rec-item__num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--tx-secondary);
  flex-shrink: 0;
  margin-top: 1px;
}

.rec-item__body {
  flex: 1;
}

.rec-item__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--tx-primary);
  margin-bottom: 3px;
}

.rec-item__text {
  font-size: 12px;
  color: var(--tx-secondary);
  line-height: 1.5;
}

.rec-item__priority {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 1px;
}

.rec-item__priority--critical {
  background: var(--err-bg);
  color: var(--err);
}
.rec-item__priority--important {
  background: var(--warn-bg);
  color: var(--warn);
}
.rec-item__priority--medium {
  background: var(--accent-bg);
  color: var(--accent-text);
}
.rec-item__priority--good {
  background: var(--ok-bg);
  color: var(--ok);
}

/* Report — Query fan-out (sub-queries) */
.fanout-intro {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--tx-primary);
}

.fanout-intro--why {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.fanout-demo-note {
  font-size: 12px;
  margin: 0 0 12px;
}

.fanout-summary {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: var(--r-lg);
  border: 1px solid var(--bd);
  background: var(--bg-subtle);
}

.fanout-summary__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tx-muted);
  margin-bottom: 8px;
}

.fanout-summary__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fanout-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--r-md);
  line-height: 1.2;
}

.fanout-pill--yes {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid rgba(15, 123, 108, 0.22);
}

.fanout-pill--no {
  background: var(--err-bg);
  color: var(--err);
  border: 1px solid rgba(201, 59, 59, 0.18);
}

.fanout-pill--table {
  padding: 3px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fanout-table td:last-child {
  white-space: nowrap;
  width: 1%;
}

/* Report — Prompt Gaps */
.report-gaps-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.report-gaps-head__title {
  margin-bottom: 0;
}

.report-gaps-head__en {
  font-size: 0.85em;
  font-weight: 500;
  color: var(--tx-muted);
}

.report-gaps-head__copy {
  flex-shrink: 0;
  font-size: 12px;
  padding: 6px 12px;
  font-weight: 600;
}

.gaps-intro {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--tx-primary);
}

.gaps-intro--why {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.gaps-demo-note {
  font-size: 12px;
  margin: 0 0 10px;
}

.gaps-list {
  margin: 0;
  padding-left: 1.15em;
  font-size: 14px;
  line-height: 1.55;
}

.gaps-list li {
  margin-bottom: 4px;
}

.gaps-list li:last-child {
  margin-bottom: 0;
}

.gaps-copy-status {
  min-height: 1.25em;
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--ok);
}

/* Competitor table */
.comp-table {
  width: 100%;
  border-collapse: collapse;
}

.comp-table th {
  font-size: 11px;
  font-weight: 600;
  color: var(--tx-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  text-align: left;
  border-bottom: 1px solid var(--bd);
}

.comp-table td {
  padding: 8px 10px;
  font-size: 13px;
  border-bottom: 1px solid var(--bd);
  color: var(--tx-primary);
}

.comp-table tr:last-child td {
  border-bottom: none;
}

.comp-table tr.you td {
  background: var(--accent-bg);
  font-weight: 600;
}

.comp-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comp-bar__track {
  flex: 1;
  height: 4px;
  background: var(--bg-raised);
  border-radius: 2px;
  overflow: hidden;
}

.comp-bar__fill {
  height: 100%;
  border-radius: 2px;
}

.comp-bar__val {
  font-size: 12px;
  font-weight: 600;
  width: 28px;
  text-align: right;
  color: var(--tx-secondary);
}

/* Audit */
.audit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.audit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--bd);
  background: var(--bg-subtle);
  font-size: 12px;
  color: var(--tx-primary);
}

.audit-item--pass {
  border-color: rgba(15, 123, 108, 0.25);
}
.audit-item--fail {
  border-color: rgba(201, 59, 59, 0.25);
}
.audit-item--warn {
  border-color: rgba(196, 125, 14, 0.25);
}

.audit-item__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--tx-muted);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
  width: 100%;
  min-width: 0;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg);
}

.pricing-card__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--tx-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.pricing-card__price {
  font-size: 32px;
  font-weight: 700;
  color: var(--tx-primary);
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.pricing-card__price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--tx-muted);
  letter-spacing: 0;
}

.pricing-card__desc {
  font-size: 13px;
  color: var(--tx-secondary);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bd);
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.pricing-card__features li {
  font-size: 13px;
  color: var(--tx-secondary);
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.45;
}

.pricing-card__features svg {
  flex-shrink: 0;
  color: var(--ok);
  margin-top: 3px;
}

.pricing-card__features li.is-no svg {
  color: var(--tx-muted);
}

.pricing-invoice-note {
  margin-top: 28px;
  padding: 1.25rem 1.5rem;
}

.pricing-invoice-note .h2-section {
  margin-bottom: 10px;
}

.pricing-invoice-note__text {
  margin: 0;
  max-width: none;
  line-height: 1.55;
}

/* Data table (landing) */
.data-table-wrap {
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--bd);
}

.data-table th {
  font-size: 11px;
  font-weight: 600;
  color: var(--tx-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.fade-in {
  animation: fadeIn 0.25s ease;
}

/* Screen reader only (a11y) */
.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Auth pages (log in / sign up) ——— */
.site-main.site-main--auth {
  padding-top: 18px;
  padding-bottom: 72px;
}

.auth-shell {
  width: 100%;
  min-height: min(72vh, 680px);
  box-sizing: border-box;
  background: linear-gradient(
    180deg,
    var(--bg-subtle) 0%,
    var(--bg) 48%,
    var(--bg) 100%
  );
}

.auth-shell__inner {
  display: flex;
  justify-content: center;
  padding-top: clamp(12px, 3vw, 28px);
  padding-bottom: clamp(28px, 5vw, 48px);
}

.auth-panel {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.auth-panel__back {
  display: inline-flex;
  align-items: center;
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--tx-secondary);
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.auth-panel__back:hover {
  color: var(--accent-text);
}

.auth-panel__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  text-decoration: none !important;
  color: inherit;
}

.auth-panel__brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 10px rgba(35, 131, 226, 0.28);
}

.auth-panel__brand-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--tx-primary);
}

.auth-panel__brand:hover .auth-panel__brand-text {
  color: var(--accent-text);
}

.auth-panel__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--tx-muted);
}

.auth-panel__title {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 4.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--tx-primary);
}

.auth-panel__lead {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--tx-secondary);
}

.auth-panel__card {
  padding: 1.5rem 1.35rem 1.4rem;
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}

.auth-panel__card-label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tx-muted);
}

.auth-panel__card-hint {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--tx-secondary);
}

.oauth-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oauth-stack--auth {
  gap: 11px;
}

.auth-yandex-suggest-host {
  min-height: 44px;
  display: flex;
  align-items: center;
  width: 100%;
}

.auth-yandex-fallback {
  margin: 0;
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--bd);
  background: var(--bg);
  color: var(--tx-primary);
  text-align: left;
  text-decoration: none;
  box-sizing: border-box;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.oauth-btn:hover {
  border-color: var(--bd-md);
  box-shadow: var(--shadow-sm);
}

.oauth-btn:active {
  transform: scale(0.99);
}

.oauth-btn__icon {
  display: flex;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
}

.oauth-btn__icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.oauth-btn--yandex {
  border-color: rgba(252, 63, 29, 0.35);
}

.oauth-btn--yandex:hover {
  background: rgba(252, 63, 29, 0.06);
  border-color: rgba(252, 63, 29, 0.5);
}

.oauth-btn--google:hover {
  background: var(--bg-subtle);
}

.oauth-btn--telegram {
  border-color: rgba(34, 158, 217, 0.4);
  color: var(--tx-primary);
}

.oauth-btn--telegram:hover {
  background: rgba(34, 158, 217, 0.08);
  border-color: rgba(34, 158, 217, 0.55);
}

.auth-panel__demo {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--tx-secondary);
  background: var(--accent-bg);
  border: 1px solid rgba(35, 131, 226, 0.2);
  border-radius: var(--r-md);
}

.auth-panel__demo-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent-text);
}

.auth-panel__alt {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--bd);
  font-size: 14px;
  text-align: center;
}

.auth-panel__alt a {
  font-weight: 600;
}

@media (max-width: 480px) {
  .auth-panel__card {
    padding: 1.25rem 1.1rem 1.15rem;
  }

  .oauth-btn {
    padding: 12px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oauth-btn:active {
    transform: none;
  }
}

/* Dashboard */
.dash-activity {
  margin: 20px 0 16px;
  padding: 1.25rem 1.35rem 1.2rem;
  overflow: hidden;
}

.dash-activity__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 1rem;
}

.dash-activity__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--tx-primary);
  line-height: 1.25;
}

.dash-activity__lede {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--tx-secondary);
  max-width: min(64ch, 100%);
}

.dash-activity__badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-text);
  background: var(--accent-bg);
  border: 1px solid rgba(35, 131, 226, 0.22);
  padding: 5px 10px;
  border-radius: 999px;
}

.dash-activity__kpi {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
  margin-bottom: 1.1rem;
}

.dash-activity__kpi-item {
  padding: 10px 12px;
  border-radius: var(--r-lg);
  border: 1px solid var(--bd);
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.dash-activity__kpi-val {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--tx-primary);
  line-height: 1.15;
}

.dash-activity__kpi-label {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--tx-muted);
}

.dash-activity__body {
  display: grid;
  gap: 20px;
  align-items: start;
}

@media (min-width: 720px) {
  .dash-activity__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 22px 28px;
  }
}

.dash-activity__table-block {
  min-width: 0;
}

.dash-activity__grid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.dash-activity__table-caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--tx-muted);
  line-height: 1.35;
}

.dash-activity__grid-table th,
.dash-activity__grid-table td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--bd);
}

.dash-activity__grid-table thead th {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tx-muted);
  padding-top: 0;
}

.dash-activity__grid-table tbody tr:last-child td {
  border-bottom: none;
}

.dash-activity__grid-table td:nth-child(2),
.dash-activity__grid-table td:nth-child(3) {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.dash-activity__grid-table td:nth-child(3) {
  font-weight: 500;
}

.dash-activity__week-range {
  display: block;
  font-weight: 600;
  color: var(--tx-primary);
  line-height: 1.3;
}

.dash-activity__week-sub {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 400;
  color: var(--tx-muted);
  line-height: 1.3;
}

.dash-activity__delta--up {
  color: var(--ok);
}

.dash-activity__delta--down {
  color: var(--warn);
}

.dash-activity__delta--na {
  color: var(--tx-muted);
  font-weight: 400;
}

.dash-activity__viz-block {
  min-width: 0;
}

.dash-activity__viz-label {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--tx-secondary);
}

.dash-activity__chart-wrap {
  border-radius: var(--r-lg);
  border: 1px solid var(--bd);
  background:
    radial-gradient(ellipse 90% 55% at 50% -20%, rgba(35, 131, 226, 0.07), transparent 55%),
    var(--bg);
  padding: 12px 8px 8px;
}

.dash-activity__chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 168px;
  max-height: 220px;
}

.dash-activity__chart .dash-activity__axis {
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font);
  fill: var(--tx-muted);
}

.dash-activity__chart .dash-activity__wk {
  font-size: 9px;
  font-weight: 600;
  font-family: var(--font);
  fill: var(--tx-secondary);
}

.dash-activity__footnote {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--tx-muted);
}

@media (max-width: 680px) {
  .dash-activity__kpi {
    grid-template-columns: 1fr;
  }

  .dash-activity__top {
    flex-direction: column;
    align-items: stretch;
  }

  .dash-activity__badge {
    align-self: flex-start;
  }
}

.dash-actions {
  margin-top: 24px;
}

/* ——— Profile ——— */
.profile-page__api {
  margin: 0 0 6px;
}

.profile-page {
  padding-bottom: 8px;
}

.profile-hero.card {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.profile-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(35, 131, 226, 0.1) 0%,
    rgba(15, 123, 108, 0.07) 42%,
    transparent 72%
  );
  pointer-events: none;
}

.profile-hero__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 1.35rem 1.4rem 1.4rem;
}

.profile-hero__id {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2383e2 0%, #1a6bbf 48%, #0f5a8c 100%);
  color: #fff;
  font-size: 1.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow:
    0 10px 28px rgba(35, 131, 226, 0.32),
    0 0 0 3px rgba(255, 255, 255, 0.9) inset;
}

.profile-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.profile-name {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--tx-primary);
  line-height: 1.2;
}

.profile-email {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--tx-secondary);
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.profile-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.profile-badge--plan {
  background: var(--accent-bg);
  color: var(--accent-text);
  border: 1px solid rgba(35, 131, 226, 0.22);
}

.profile-badge--ok {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid rgba(15, 123, 108, 0.22);
}

.profile-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.profile-section--wide {
  grid-column: 1 / -1;
}

.profile-section__title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--tx-muted);
}

.profile-kv {
  margin: 0;
}

.profile-kv__row {
  display: grid;
  grid-template-columns: minmax(0, 118px) minmax(0, 1fr);
  gap: 8px 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bd);
  font-size: 13px;
}

.profile-kv__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-kv__row:first-child {
  padding-top: 0;
}

.profile-kv dt {
  margin: 0;
  font-weight: 500;
  color: var(--tx-muted);
}

.profile-kv dd {
  margin: 0;
  color: var(--tx-primary);
  font-weight: 500;
}

.profile-kv__hint {
  font-weight: 400;
  color: var(--tx-muted);
  font-size: 12px;
}

.profile-support-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  word-break: break-all;
  user-select: all;
}

.profile-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.profile-pill--ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.profile-provider {
  font-weight: 600;
}

.profile-provider--yandex::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 2px;
  background: #fc3f1d;
  vertical-align: middle;
  transform: translateY(-1px);
}

.profile-usage__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.profile-usage__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--tx-primary);
}

.profile-usage__nums {
  font-size: 13px;
  color: var(--tx-secondary);
}

.profile-usage__nums strong {
  color: var(--tx-primary);
  font-weight: 700;
}

.profile-usage__track {
  height: 10px;
  border-radius: 999px;
  background: var(--bg-raised);
  border: 1px solid var(--bd);
  overflow: hidden;
}

.profile-usage__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1a6bbf, #2383e2);
  transition: width 0.5s ease;
}

.profile-usage__note {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--tx-muted);
  line-height: 1.4;
}

.profile-section__foot {
  margin: 12px 0 0;
  font-size: 11px;
}

.profile-sub-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--bd);
}

.profile-sub-actions__hint {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.45;
  max-width: 42ch;
}

.btn-cancel-subscription {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  padding: 8px 14px;
  border-radius: var(--r-md);
  cursor: pointer;
  color: var(--err);
  background: transparent;
  border: 1px solid rgba(201, 59, 59, 0.35);
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-cancel-subscription:hover {
  background: var(--err-bg);
  border-color: rgba(201, 59, 59, 0.5);
  color: #a12f2f;
}

.btn-cancel-subscription:focus-visible {
  outline: 2px solid var(--bd-focus);
  outline-offset: 2px;
}

.profile-foot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--bd);
}

@media (max-width: 720px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-kv__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .profile-hero__actions {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: auto;
    min-height: 44px;
    padding: 0;
    align-items: center;
  }

  .site-header__inner {
    gap: 10px;
    min-width: 0;
    padding: 8px var(--layout-gutter);
    position: relative;
    z-index: 101;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 0;
  }

  .site-logo__text {
    font-size: 14px;
  }

  .site-header.is-menu-open .site-header__inner {
    box-shadow: 0 1px 0 var(--bd);
  }

  .site-logo {
    margin-right: auto;
  }

  .site-header__inner > .lang-switch {
    display: none !important;
  }

  .site-nav__toggle {
    display: inline-flex;
    order: 2;
    border: 1px solid var(--bd);
    background: var(--bg-subtle);
  }

  .site-nav__bar-login {
    display: inline-flex;
    order: 3;
    margin-left: 2px;
  }

  .site-user-chip {
    order: 3;
    margin-left: 2px;
    max-width: min(160px, 36vw);
  }

  .lang-switch.lang-switch--drawer {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 4px;
    padding: 4px 4px 16px;
    border-bottom: 1px solid var(--bd);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--tx-muted);
    text-transform: uppercase;
  }

  .lang-switch--drawer .lang-switch__link,
  .lang-switch--drawer .lang-switch__current {
    padding: 10px 20px;
    border-radius: var(--r-lg);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    border: 1px solid transparent;
  }

  .lang-switch--drawer .lang-switch__link {
    color: var(--tx-secondary);
    background: var(--bg-subtle);
    border-color: var(--bd);
  }

  .lang-switch--drawer .lang-switch__link:hover {
    color: var(--accent-text);
    border-color: var(--bd-md);
    background: var(--bg-raised);
  }

  .lang-switch--drawer .lang-switch__current {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
  }

  .lang-switch--drawer .lang-switch__sep {
    opacity: 0.35;
    font-weight: 500;
  }

  .site-nav {
    order: 4;
    position: fixed;
    left: 0;
    right: 0;
    top: calc(52px + env(safe-area-inset-top, 0px));
    bottom: 0;
    z-index: 99;
    flex: none;
    min-width: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px max(20px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom))
      max(20px, env(safe-area-inset-left));
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: var(--bg);
    border-radius: 0 0 var(--r-xl) var(--r-xl);
    border: 1px solid var(--bd);
    border-top: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.06);
    transform: translate3d(0, calc(-100% - 24px), 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease,
      visibility 0.32s;
  }

  .site-header.is-menu-open .site-nav {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav > a:not(.site-nav__cta) {
    font-size: 15px;
    font-weight: 500;
    white-space: normal;
    padding: 12px 4px;
    border-bottom: 1px solid var(--bd);
  }

  .site-nav > .site-nav__cta {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--bd);
    border-bottom: none;
  }

  .site-nav__login-inline {
    display: none !important;
  }

  .site-nav__sep--desktop {
    display: none !important;
  }

  .site-nav__cta {
    padding: 12px 16px;
    font-size: 14px;
    text-align: center;
    justify-content: center;
    border-radius: var(--r-md);
  }

  @media (prefers-reduced-motion: reduce) {
    .site-nav {
      transition: none;
    }

    .site-nav__toggle-bars span {
      transition: none;
    }
  }

  .site-main {
    padding: 12px 0 48px;
  }

  .page-intro {
    padding-top: 12px;
  }

  .pricing-grid,
  .grid-3,
  .audience-scenarios-grid,
  .grid-2,
  .metrics-row,
  .audit-grid,
  .query-types,
  .field-row {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    margin: 12px 0 36px;
    gap: 20px;
  }

  .hero__actions {
    margin-top: 20px;
  }

  .model-chips {
    margin-top: 16px;
  }

  .hero-chat-wrap {
    margin-bottom: 22px;
    padding: 18px 16px 16px;
  }

  .gpt-msg--user .gpt-msg__bubble {
    max-width: min(88%, 520px);
    font-size: 13px;
    padding: 11px 14px;
  }

  .gpt-msg--assistant .gpt-msg__bubble {
    font-size: 13px;
    padding: 13px 14px;
  }

  .hero-viz__inner {
    padding: 12px 12px 12px;
  }

  .hero-viz__stat-val {
    font-size: 22px;
  }

  .score-header {
    flex-direction: column;
  }

  .h1-hero,
  .hero__title {
    font-size: 28px;
  }
}
