/**
 * Резерв, если основной бандл CSS из /_next/static не загрузился (прокси, basePath, блокировщик).
 * Селекторы через :where() — низкая специфичность, полный remion-v2.css перекрывает при успешной загрузке.
 * Сгенерировано: scripts/generate-fallback-css.cjs (критические токены из src/styles/remion-v2.css).
 */
:root {
  --remion-primary: #0f2942;
  --remion-primary-hover: #163a5c;
  --remion-primary-light: rgba(15, 41, 66, 0.08);
  --remion-accent: #c75a4f;
  --remion-accent-hover: #b04d43;
  --remion-accent-light: rgba(199, 90, 79, 0.12);
  --remion-accent-on: #ffffff;
  --remion-trust: #0d9488;
  --remion-trust-hover: #0f766e;
  --remion-trust-light: rgba(13, 148, 136, 0.1);
  --remion-trust-on: #ffffff;
  --remion-text-primary: #1a1a1a;
  --remion-text-secondary: #525252;
  --remion-text-tertiary: #5c5c5c;
  --remion-text-inverse: #fafafa;
  --remion-bg: #ffffff;
  --remion-bg-subtle: #f5f5f5;
  --remion-bg-muted: #e5e5e5;
  --remion-border: #e5e5e5;
  --remion-border-strong: #a3a3a3;
  --remion-border-subtle: #e5e7eb;
  --remion-gradient-hero: linear-gradient(180deg, #0f2942 0%, #1a3d5c 48%, #0f2942 100%);
  --remion-shadow-sm: 0 2px 4px rgba(15, 41, 66, 0.06), 0 1px 2px rgba(15, 41, 66, 0.04);
  --remion-shadow-md: 0 4px 12px rgba(15, 41, 66, 0.08), 0 2px 4px rgba(15, 41, 66, 0.04);
  --remion-radius-none: 0;
  --remion-radius-base: 6px;
  --remion-radius-surface: 10px;
  --remion-radius-button: 24px;
  --remion-radius-pill: 9999px;
  --remion-radius-sm: 6px;
  --remion-radius-md: 10px;
  --remion-radius-lg: 10px;
  --remion-radius-xl: 10px;
  --remion-radius-full: 9999px;
  --remion-font: var(--font-landing-display, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
  --remion-text-xs: 0.75rem;
  --remion-text-sm: 0.875rem;
  --remion-text-base: 1rem;
  --remion-leading-tight: 1.25;
  --remion-leading-normal: 1.5;
  --remion-duration-normal: 250ms;
  --remion-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --section-px: 1rem;
}

:where(.remion-body) {
  background-color: var(--remion-bg);
}

:where(.landing-header) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: var(--remion-gradient-hero);
  color: var(--remion-text-inverse);
  box-shadow: var(--remion-shadow-md);
}

:where(.landing-header__brand) {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
}

:where(.landing-header__nav) {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: var(--remion-text-sm);
}

:where(.landing-header__nav a:not(.landing-header__cta)),
:where(.landing-header__nav .landing-header__login) {
  color: rgba(250, 250, 250, 0.95);
  text-decoration: none;
}

:where(.landing-header__nav a.landing-header__cta.btn--secondary) {
  background: #f8fafc;
  color: var(--remion-primary);
  border: 1px solid rgba(248, 250, 252, 0.45);
  border-radius: var(--remion-radius-button);
  padding: 0.45rem 1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

:where(.landing-header__nav a.landing-header__cta.btn--secondary:hover) {
  background: linear-gradient(to right, #ffffff 0%, #f8fffe 42%, #ecfdf9 72%, #e6f7f4 100%);
  border-color: rgba(13, 148, 136, 0.44);
  color: #163a5c;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 4px 18px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(13, 148, 136, 0.14);
}

:where(.main-landing) {
  overflow-x: clip;
  max-width: 100%;
}

:where(.main-landing__hero) {
  background: linear-gradient(180deg, #0f2942 0%, #163a5c 50%, #0f2942 100%);
  color: #fafafa;
  padding: 3rem var(--section-px) 3.5rem;
}

:where(.main-landing__hero-grid) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  max-width: 1120px;
  margin: 0 auto;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  :where(.main-landing__hero-grid) {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
  }
}

:where(.main-landing__title) {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  max-width: 40ch;
}

:where(.main-landing__lead) {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 65ch;
  margin: 0 0 1rem;
}

:where(.main-landing__section-title--dark),
:where(.main-landing__section-title) {
  color: var(--remion-text-primary);
}

:where(.main-landing section:not(.main-landing__hero)) {
  padding: 3rem var(--section-px);
  max-width: 1120px;
  margin: 0 auto;
  box-sizing: border-box;
}

:where(.btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--remion-font);
  font-size: var(--remion-text-base);
  font-weight: 600;
  line-height: var(--remion-leading-tight);
  border: none;
  border-radius: var(--remion-radius-button);
  cursor: pointer;
  text-decoration: none;
}

:where(.btn--primary) {
  background: var(--remion-accent);
  color: var(--remion-accent-on);
}

:where(.btn--secondary) {
  background: var(--remion-bg-subtle);
  color: var(--remion-text-primary);
  border: 1px solid var(--remion-border);
}

:where(.landing-footer) {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--remion-primary);
  color: var(--remion-text-inverse);
}

:where(.landing-footer__inner) {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  text-align: left;
}

:where(.landing-footer__legal) {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  font-size: var(--remion-text-sm);
}

:where(.landing-footer__legal a) {
  color: rgba(250, 250, 250, 0.9);
  text-decoration: none;
}

:where(.landing-footer__copy) {
  margin: 0;
  font-size: var(--remion-text-xs);
  color: rgba(250, 250, 250, 0.7);
}

:where(.form-input) {
  width: 100%;
  max-width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--remion-border);
  border-radius: var(--remion-radius-md);
  font: inherit;
  box-sizing: border-box;
}

:where(.chip) {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--remion-radius-full);
  font-size: var(--remion-text-xs);
  font-weight: 700;
}

/* `/main`: маршрутная оболочка и loading — если основной `remion-v2.css` не подгрузился */
:where(.main-route-shell) {
  min-height: 100vh;
  background-color: var(--remion-bg-subtle, #f5f5f5);
  box-sizing: border-box;
}

:where(.main-loading) {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  color: var(--remion-text-secondary, #525252);
  background: var(--remion-bg, #ffffff);
  font-family: var(--remion-font, system-ui, sans-serif);
}
