@import './fonts/fonts.css';

:root {
  --font-heading: 'Rubik', sans-serif;
  --font-body: 'Onest', sans-serif;

  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-translucent: rgba(255, 255, 255, 0.88);
  --color-surface-subtle: #f1f5f9;
  --color-surface-card: #ffffff;

  --color-text-main: #0f172a;
  --color-text-muted: #475569;
  --color-text-faint: #94a3b8;

  --color-brand: #059669;
  --color-brand-dark: #047857;
  --color-brand-soft: #ecfdf5;
  --color-brand-border: #a7f3d0;

  --color-review: #d97706;
  --color-review-soft: #fffbeb;
  --color-review-border: #fde68a;

  --color-border: #e2e8f0;
  --color-border-light: #edf2f7;

  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 40px -8px rgba(15, 23, 42, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --header-height: 76px;
  --max-width: 1240px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-main);
  background-color: var(--color-bg);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  background-color: var(--color-surface-translucent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: padding 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background-color: rgba(255, 255, 255, 0.94);
}

.header-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 20px;
}

/* Logo */
.brand-link {
  display: flex;
  align-items: center;
  color: var(--color-text-main);
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-link:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.brand-logo-svg {
  height: 48px;
  width: auto;
  fill: currentColor;
}

/* Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 1;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-brand);
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-brand);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-brand-dark);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  background-color: var(--color-surface-subtle);
  border-color: var(--color-border-subtle);
}

.btn-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Menu Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  z-index: 99;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.mobile-drawer-nav .nav-link {
  font-size: 1.1rem;
}

/* =========================================
   HERO SECTION (Numbers-First)
   ========================================= */
.hero-section {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 64px;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(236, 253, 245, 0.7) 0%, rgba(248, 250, 252, 0) 65%);
}

.hero-header {
  max-width: 960px;
  margin-bottom: 40px;
}

.hero-category {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-brand);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--color-text-main);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 820px;
  margin-bottom: 32px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Numbers-First Composition Grid */
.numbers-first-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
  margin-bottom: 48px;
}

.metric-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-brand-border);
}

.metric-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 10px;
}

.metric-number {
  font-family: var(--font-heading);
  /* Правка приёмщика 21.09: «500 000 ₽» на 1440 переносил ₽ на вторую строку */
  font-size: clamp(2rem, 3vw, 2.7rem);
  white-space: nowrap;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1;
  letter-spacing: -0.03em;
}

.metric-unit {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-brand);
}

.metric-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 6px;
}

.metric-desc {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* Hero Media + Interactive Format Stage */
.hero-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
  margin-top: 24px;
}

/* Без min-width: 0 колонка грида растёт под содержимое и распирает страницу на телефоне. */
.hero-showcase > * {
  min-width: 0;
}

/* Workplace Raster Scene */
.workplace-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.workplace-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
}

.workplace-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Max 25% overlay constraint from brief */
.workplace-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.22) 100%);
  pointer-events: none;
}

.workplace-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(226, 232, 240, 0.8);
  font-size: 0.84rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.workplace-caption strong {
  color: var(--color-text-main);
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

/* Interactive Format Switcher */
.format-switcher-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.format-switcher-header {
  margin-bottom: 20px;
}

.format-switcher-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 6px;
}

.format-switcher-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.format-tabs {
  display: flex;
  gap: 8px;
  background-color: var(--color-surface-subtle);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.format-tab-btn {
  flex: 1;
  padding: 9px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: 6px;
  transition: all 0.2s ease;
  text-align: center;
}

.format-tab-btn.active {
  background-color: var(--color-surface);
  color: var(--color-text-main);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.format-view-panel {
  background-color: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.format-fields-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.format-field-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
}

.format-field-tag {
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 600;
  background-color: #e2e8f0;
  color: var(--color-text-main);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.format-field-desc {
  color: var(--color-text-muted);
  line-height: 1.4;
}

.format-bot-sees {
  border-top: 1px dashed var(--color-border);
  padding-top: 14px;
  font-size: 0.84rem;
  color: var(--color-brand-dark);
  background-color: var(--color-brand-soft);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =========================================
   PROBLEM SECTION
   ========================================= */
.problem-section {
  padding: 88px 0;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-tag {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-brand);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 760px;
  line-height: 1.6;
  margin-bottom: 48px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  background-color: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.problem-card-icon {
  width: 44px;
  height: 44px;
  background-color: #fee2e2;
  color: #b91c1c;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.problem-card-icon svg {
  width: 22px;
  height: 22px;
}

.problem-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 10px;
}

.problem-card-text {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.benchmark-card {
  margin-top: 36px;
  background-color: #f8fafc;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-brand);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.benchmark-info {
  max-width: 800px;
}

.benchmark-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 4px;
}

.benchmark-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.benchmark-figures {
  flex-shrink: 0;
  text-align: right;
}

.benchmark-cost {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-text-main);
  white-space: nowrap;
}

.benchmark-caption {
  font-size: 0.8rem;
  color: var(--color-text-faint);
}

/* =========================================
   SCROLL SEQUENCE (Главный эффект)
   ========================================= */
.sequence-wrapper {
  position: relative;
  min-height: 320vh;
  background-color: #0b1120;
  color: #ffffff;
}

.sequence-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 0;
  overflow: hidden;
}

.sequence-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
}

.sequence-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: #f8fafc;
}

.sequence-timeline-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline-pill {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  transition: all 0.25s ease;
}

.timeline-pill.active {
  background: var(--color-brand);
  color: #ffffff;
  font-weight: 600;
}

.sequence-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 16px 0;
}

#pipeline-canvas {
  width: 100%;
  max-width: 1080px;
  height: 480px;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  background: #0f172a;
}

.sequence-bottom-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}

.stage-description-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stage-step-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-brand);
  font-weight: 600;
}

.stage-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

.stage-text {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.45;
}

.sequence-fixture-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.sequence-fixture-badge strong {
  color: #ffffff;
}

/* =========================================
   ACCURACY SECTION (Честная точность)
   ========================================= */
.accuracy-section {
  padding: 96px 0;
  background-color: var(--color-bg);
}

.accuracy-metrics-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.accuracy-stat-box {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.accuracy-stat-box.high-confidence {
  border-top: 4px solid var(--color-brand);
}

.accuracy-stat-box.overall {
  border-top: 4px solid #3b82f6;
}

.accuracy-big-val {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.accuracy-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.accuracy-subtext {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Honest Error Recognition Card */
.honest-error-card {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.honest-error-icon {
  width: 40px;
  height: 40px;
  background-color: #fef3c7;
  color: #b45309;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.honest-error-icon svg {
  width: 20px;
  height: 20px;
}

.honest-error-content h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 6px;
}

.honest-error-content p {
  font-size: 0.9rem;
  color: #78350f;
  line-height: 1.5;
}

.review-policy-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.review-policy-card strong {
  color: var(--color-text-main);
}

/* =========================================
   BOUNDARIES SECTION (Честные границы)
   ========================================= */
.boundaries-section {
  padding: 88px 0;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.boundaries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.boundary-card {
  background-color: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.boundary-card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
  background-color: #e2e8f0;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.boundary-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 10px;
}

.boundary-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* =========================================
   FAQ SECTION (Частые вопросы)
   ========================================= */
.faq-section {
  padding: 88px 0;
}

.faq-list {
  display: grid;
  gap: 16px;
  max-width: 860px;
}

.faq-item summary {
  cursor: pointer;
  margin-bottom: 0;
}

.faq-item[open] summary {
  margin-bottom: 10px;
}

/* =========================================
   PILOT ACCESS / FORM SECTION
   ========================================= */
.pilot-section {
  padding: 96px 0;
  background-color: var(--color-bg);
}

.pilot-card-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.pilot-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pilot-info-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text-main);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.pilot-info-header p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.pilot-checks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.pilot-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--color-text-main);
}

.pilot-check-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-brand);
  flex-shrink: 0;
}

.pilot-gate-notice {
  background-color: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* Form */
.pilot-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.form-input,
.form-select,
.form-textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-privacy-note {
  font-size: 0.78rem;
  color: var(--color-text-faint);
  line-height: 1.4;
}

.form-feedback {
  display: none;
  background-color: var(--color-brand-soft);
  border: 1px solid var(--color-brand-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: var(--color-brand-dark);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.form-feedback.visible {
  display: block;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 48px 0 32px 0;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-link:hover {
  color: var(--color-text-main);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--color-text-faint);
}

/* =========================================
   BACK TO TOP BUTTON
   ========================================= */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-surface-subtle);
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.1s linear;
}

.back-to-top-icon {
  width: 20px;
  height: 20px;
  color: var(--color-text-main);
  z-index: 2;
}

/* =========================================
   RESPONSIVE ADAPTABILITY
   (1920, 1440, 1280, 768, 360 px)
   ========================================= */
@media (max-width: 1024px) {
  .numbers-first-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-showcase {
    grid-template-columns: 1fr;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .boundaries-grid {
    grid-template-columns: 1fr;
  }

  .pilot-card-wrap {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 32px;
  }
}

@media (max-width: 820px) {
  .header-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .site-header {
    height: 68px;
  }

  :root {
    --header-height: 68px;
  }

  .brand-logo-svg {
    height: 38px;
  }

  .accuracy-metrics-cards {
    grid-template-columns: 1fr;
  }

  .benchmark-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .benchmark-figures {
    text-align: left;
  }

  .sequence-bottom-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #pipeline-canvas {
    height: 360px;
  }
}

@media (max-width: 480px) {
  .brand-logo-svg {
    height: 32px;
  }

  /* Логотип, кнопка и бургер не помещаются в шапку; кнопка есть в мобильном меню. */
  .header-actions .btn {
    display: none;
  }

  .format-field-row {
    flex-direction: column;
    gap: 4px;
  }

  .numbers-first-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .format-tabs {
    flex-direction: column;
  }

  .pilot-card-wrap {
    padding: 20px;
  }
}

/* =========================================
   REDUCED MOTION ACCESSIBILITY
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .metric-card:hover,
  .btn:hover,
  .brand-link:hover,
  .back-to-top:hover {
    transform: none !important;
  }
}
