:root {
  color-scheme: dark;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --bg: #000000;
  --bg-elevated: #050505;
  --bg-soft: #090909;
  --surface: rgba(14, 14, 14, 0.9);
  --surface-2: rgba(19, 19, 19, 0.86);
  --surface-3: rgba(24, 24, 24, 0.82);
  --surface-hover: rgba(30, 30, 30, 0.94);
  --surface-active: rgba(42, 23, 28, 0.96);
  --card: rgba(13, 13, 13, 0.96);
  --glass-surface: rgba(9, 9, 9, 0.9);
  --glass-surface-strong: rgba(11, 11, 11, 0.98);

  --border: rgba(255, 255, 255, 0.11);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-accent: rgba(255, 64, 86, 0.44);

  --text-primary: #f7f7f7;
  --text-secondary: #b7b7b7;
  --text-tertiary: #909090;
  --muted: #777777;
  --accent: #f7f7f7;
  --accent-strong: #ffffff;
  --brand-red: #ed193f;
  --brand-red-bright: #ff405d;
  --brand-red-soft: rgba(255, 64, 93, 0.12);
  --brand-red-softer: rgba(255, 64, 93, 0.07);
  --danger: #dc1738;
  --danger-strong: #ff405d;
  --success: #48d69a;
  --success-soft: rgba(72, 214, 154, 0.12);
  --warning: #f2bb61;
  --warning-soft: rgba(242, 187, 97, 0.12);
  --info: #ff405d;
  --info-soft: rgba(255, 64, 93, 0.12);
  --violet: #aa8cff;
  --violet-soft: rgba(170, 140, 255, 0.12);
  --cyan: #ff6b80;
  --cyan-soft: rgba(255, 64, 93, 0.12);
  --telegram-blue: #2aabee;
  --telegram-blue-strong: #229ed9;
  --telegram-blue-soft: rgba(42, 171, 238, 0.16);
  --telegram-blue-border: rgba(42, 171, 238, 0.52);
  --tag-bg: rgba(255, 255, 255, 0.065);
  --tag-text: #dadada;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  --radius-xs: 8px;
  --radius-sm: 11px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 30px;
  --radius-pill: 999px;

  --control-sm: 40px;
  --control-md: 48px;
  --control-lg: 56px;
  --content-max: 1040px;
  --content-max-desktop: 1600px;
  --desktop-hero-height: clamp(360px, 36vw, 540px);
  --desktop-hero-padding: clamp(48px, 6.4vw, 96px);
  --desktop-hero-title-size: clamp(3.25rem, 5.4vw, 6rem);
  --page-gutter: 24px;
  --page-gutter-mobile: 16px;
  --page-gutter-compact: 12px;
  --bottom-nav-height: 84px;

  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 28px 78px rgba(0, 0, 0, 0.56);
  --shadow: var(--shadow-md);
  --shadow-accent: 0 16px 38px rgba(0, 0, 0, 0.46);
  --inner-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.065);

  --blur-sm: 12px;
  --blur-md: 20px;
  --blur-lg: 28px;

  --duration-fast: 120ms;
  --duration-base: 180ms;
  --duration-slow: 260ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-emphasized: cubic-bezier(0.2, 0.8, 0.2, 1);

  --focus-ring: 0 0 0 3px rgba(255, 64, 93, 0.3);

  --tg-bg: #000000;
  --tg-secondary-bg: #0a0a0a;
  --tg-text: #f7f7f7;
  --tg-hint: #858585;
  --tg-button: #ed193f;
  --tg-link: #ff405d;
}

/* Project pages share the application's font tokens. */
body.seo-app-shell-page.seo-project-page {
  font-family: var(--font-sans);
}

body.seo-project-page .seo-trust-hero {
  min-height: 0;
  padding: clamp(28px, 4vw, 56px);
  align-items: center;
  border-radius: var(--radius-xl);
  background: var(--seo-surface);
}

body.seo-project-page .seo-trust-hero .seo-hero-content {
  width: min(1040px, 100%);
  padding: 0;
}

body.seo-project-page .seo-trust-hero h1 {
  max-width: 1040px;
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 3.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.035em;
  text-transform: none;
  overflow-wrap: anywhere;
  hyphens: none;
}

body.seo-project-page .seo-trust-hero .seo-lead {
  max-width: 900px;
  color: var(--seo-muted);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.65;
}

.seo-project-page .seo-trust-content {
  width: min(1200px, 100%);
  margin: 40px auto 52px;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
}

.seo-project-page .seo-page-nav {
  padding: 4px 0 4px 16px;
}

.seo-project-page .seo-page-nav strong {
  margin-bottom: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.seo-project-page .seo-page-nav nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.seo-project-page .seo-page-nav a {
  color: var(--seo-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.seo-project-page .seo-page-nav a:hover {
  color: var(--seo-brand);
}

.seo-project-page .seo-content-list {
  min-width: 0;
  border-top: 0;
}

.seo-project-page .seo-content-section {
  display: block;
  padding: 28px 0;
  scroll-margin-top: 24px;
}

.seo-project-page .seo-content-section:first-child {
  padding-top: 0;
}

.seo-project-page .seo-content-section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.seo-project-page .seo-content-section :is(p, li) {
  max-width: none;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.seo-project-page .seo-content-section p {
  margin: 0 0 16px;
}

.seo-project-page .seo-content-section p:last-child {
  margin-bottom: 0;
}

.seo-project-page .seo-project-list {
  margin: 0 0 20px;
  padding-left: 22px;
}

.seo-project-page .seo-project-list li + li {
  margin-top: 10px;
}

.seo-project-page .seo-project-list li::marker {
  color: var(--seo-brand);
}

.seo-project-page .seo-project-faq + .seo-project-faq {
  margin-top: 26px;
}

.seo-project-page .seo-project-faq h3 {
  margin: 0 0 10px;
  color: var(--seo-text);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.seo-project-page .seo-project-contact {
  max-width: 100%;
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  box-shadow: none;
}

.seo-project-page .seo-content-section a.seo-project-contact {
  color: #fff;
}

@media (max-width: 760px) {
  body.seo-project-page .seo-trust-hero {
    padding: 26px 20px;
    border-radius: var(--radius-lg);
  }

  .seo-project-page .seo-trust-content {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 28px;
  }

  .seo-project-page .seo-page-nav {
    position: static;
  }

  .seo-project-page .seo-content-section :is(p, li) {
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  body.seo-project-page .seo-trust-hero h1 {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.seo-project-page) {
    scroll-behavior: auto;
  }
}
