/* ============================================
   KvartsBox — Brutalist / Industrial Design
   ============================================ */

:root {
  /* Цвета — глубокий navy + cyan */
  --bg-primary: #06101F;
  --bg-secondary: #0B1A2E;
  --bg-tertiary: #122642;
  --bg-card: #0E1B30;
  --bg-elevated: #15273F;
  --bg-invert: #F1F5F9;

  --border: rgba(0, 212, 255, 0.18);
  --border-strong: rgba(0, 212, 255, 0.45);
  --border-heavy: #00D4FF;
  --border-mute: rgba(241, 245, 249, 0.10);

  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-invert: #06101F;

  --accent: #00D4FF;
  --accent-light: #67E8F9;
  --accent-dark: #0891B2;

  --success: #4ADE80;
  --error: #F87171;

  /* Типографика */
  --font-display: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', Consolas, monospace;

  /* Размеры */
  --container: 1320px;
  --border-w: 2px;

  /* Переходы */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-brutal: cubic-bezier(0.85, 0, 0.15, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* ============================================
   ТИПОГРАФИКА — Brutalist
   ============================================ */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
  font-size: 1.06rem;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--accent-light); }

.accent {
  color: var(--accent);
  font-weight: inherit;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.section-label {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
}

.section-label::before {
  content: '//';
  color: var(--text-muted);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s var(--ease-brutal), transform 0.6s var(--ease-brutal);
}

.reveal.revealed { opacity: 1; transform: translateY(0); }

.reveal-fade { opacity: 0; transition: opacity 0.8s var(--ease-out); }
.reveal-fade.revealed { opacity: 1; }

.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.6s var(--ease-brutal), transform 0.6s var(--ease-brutal); }
.reveal-left.revealed { opacity: 1; transform: translateX(0); }

.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.6s var(--ease-brutal), transform 0.6s var(--ease-brutal); }
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-fade, .reveal-left, .reveal-right {
    opacity: 1; transform: none; transition: none;
  }
}

/* ============================================
   MARQUEE — бегущая лента сверху
   ============================================ */

.marquee {
  position: relative;
  overflow: hidden;
  border-bottom: var(--border-w) solid var(--accent);
  background: var(--bg-primary);
  height: 44px;
  display: flex;
  align-items: center;
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: scroll 60s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

.marquee-item {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0 32px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.marquee-item::before {
  content: '◆';
  color: var(--accent);
  font-size: 0.7em;
}

.marquee-item.hl {
  color: var(--accent);
  font-weight: 600;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   HEADER
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-primary);
  border-bottom: var(--border-w) solid var(--text-primary);
  transition: border-color var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border: var(--border-w) solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  transition: all var(--transition);
}

.logo-mark svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}

.logo:hover .logo-mark {
  background: var(--accent);
}

.logo:hover .logo-mark svg { stroke: var(--bg-primary); }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.logo-tagline {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.nav { display: flex; gap: 2px; align-items: center; }

.nav a {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 8px 12px;
  border: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.nav a:hover, .nav a.active {
  color: var(--accent);
  border-color: var(--accent);
}

.header-cta { display: flex; align-items: center; gap: 16px; }

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Компактная кнопка для шапки */
.header-cta .btn {
  padding: 10px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.header-phone svg { stroke: var(--accent); }

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  background: transparent;
  border: var(--border-w) solid var(--accent);
  cursor: pointer;
  position: relative;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--accent);
  margin: 5px auto;
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   КНОПКИ — Brutalist
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 32px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: var(--border-w) solid currentColor;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '→';
  font-family: var(--font-mono);
  font-size: 1.1em;
  transition: transform var(--transition);
}

.btn:hover::after { transform: translateX(6px); }

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--bg-primary);
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn-ghost:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn-large { padding: 22px 40px; font-size: 0.95rem; }

.btn svg { display: none; }

/* ============================================
   HERO — Brutalist
   ============================================ */

.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  border-bottom: var(--border-w) solid var(--text-primary);
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 36px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border-mute);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  animation: brutalFadeUp 0.5s 0.05s var(--ease-brutal) forwards;
}

.hero-meta-item { display: flex; align-items: center; gap: 8px; }

.hero-meta-item strong {
  color: var(--accent);
  font-weight: 500;
}

.hero-meta-item::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  display: inline-block;
}

.hero-meta-cmd {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-meta-cmd::before {
  content: '>';
  color: var(--accent);
}

.hero-headline {
  margin-bottom: 56px;
}

.hero-headline h1 {
  display: block;
}

.hero-headline .hl-line {
  display: block;
  overflow: hidden;
}

.hero-headline .hl-line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: hlSlideUp 0.8s var(--ease-brutal) forwards;
}

.hero-headline .hl-line:nth-child(1) > span { animation-delay: 0.1s; }
.hero-headline .hl-line:nth-child(2) > span { animation-delay: 0.22s; }
.hero-headline .hl-line:nth-child(3) > span { animation-delay: 0.34s; }

.hero-headline .accent-block {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 0 18px;
  margin-right: 4px;
}

@keyframes hlSlideUp {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}

.hero-grid-bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 680px;
  opacity: 0;
  animation: brutalFadeUp 0.6s 0.7s var(--ease-out) forwards;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  animation: brutalFadeUp 0.6s 0.85s var(--ease-out) forwards;
}

.hero-actions .btn { width: 100%; }

@keyframes brutalFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   СЕКЦИИ
   ============================================ */

.section {
  padding: 120px 0;
  position: relative;
  border-bottom: 1px solid var(--border-mute);
}

.section-tight { padding: 80px 0; }

.section-header {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  margin-bottom: 80px;
  align-items: end;
}

.section-header-left { padding-right: 32px; }
.section-header h2 { margin-bottom: 0; }

.section-header.center {
  display: block;
  text-align: center;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.section-header p {
  font-size: 1.08rem;
  margin-top: 20px;
}

/* ============================================
   PRODUCT GRID — технические паспорта
   ============================================ */

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: var(--border-w) solid var(--accent);
  border-left: var(--border-w) solid var(--accent);
}

.product-card {
  position: relative;
  background: var(--bg-primary);
  border-right: var(--border-w) solid var(--accent);
  border-bottom: var(--border-w) solid var(--accent);
  padding: 56px 48px;
  transition: background var(--transition);
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width var(--transition-slow) var(--ease-brutal);
  z-index: 0;
}

.product-card:hover::before { width: 100%; }

.product-card > * { position: relative; z-index: 1; transition: color var(--transition-slow); }

.product-card-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition-slow), border-color var(--transition-slow);
}

.product-card-code::after {
  content: '[ 0' counter(card) ' ]';
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.product-grid { counter-reset: card; }
.product-card { counter-increment: card; }

.product-card h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  margin-bottom: 18px;
  text-transform: uppercase;
  transition: color var(--transition-slow);
}

.product-card-tagline {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  flex-grow: 1;
  transition: color var(--transition-slow);
}

.product-card-specs {
  list-style: none;
  margin-bottom: 36px;
  padding: 0;
}

.product-card-specs li {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  transition: color var(--transition-slow), border-color var(--transition-slow);
}

.product-card-specs li:last-child { border-bottom: none; }
.product-card-specs li span { color: var(--text-primary); font-weight: 500; transition: color var(--transition-slow); }

.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  align-self: flex-start;
  transition: color var(--transition-slow);
}

.product-card-link::after {
  content: '→';
  transition: transform var(--transition);
}

.product-card:hover .product-card-link::after { transform: translateX(6px); }

/* Hover state: всё текст становится тёмным на cyan фоне */
.product-card:hover .product-card-code,
.product-card:hover h3,
.product-card:hover .product-card-tagline,
.product-card:hover .product-card-specs li,
.product-card:hover .product-card-specs li span,
.product-card:hover .product-card-link {
  color: var(--bg-primary);
}

.product-card:hover .product-card-code,
.product-card:hover .product-card-specs li {
  border-color: rgba(6, 16, 31, 0.25);
}

.product-card:hover .product-card-code::after {
  color: rgba(6, 16, 31, 0.6);
}

/* ============================================
   ПРЕИМУЩЕСТВА (FEATURES) — Brutalist
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  grid-auto-rows: 1fr;
}

.feature {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  background: var(--bg-primary);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  position: relative;
  min-height: 0;
}

.feature:hover {
  background: var(--bg-secondary);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-w) solid var(--accent);
  margin-bottom: 20px;
  transition: all var(--transition);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  transition: stroke var(--transition);
}

.feature:hover .feature-icon {
  background: var(--accent);
}

.feature:hover .feature-icon svg { stroke: var(--bg-primary); }

.feature-number {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 500;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-number::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.feature h4 {
  margin-bottom: 12px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  line-height: 1.15;
}

.feature p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ============================================
   SPEC BLOCK (страницы продуктов)
   ============================================ */

.spec-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.spec-block:last-child {
  border-bottom: 1px solid var(--border);
}

.spec-block:nth-child(even) .spec-block-content { order: 2; border-right: none; border-left: 1px solid var(--border); }
.spec-block:nth-child(even) .spec-block-visual { order: 1; }

.spec-block-content {
  padding: 56px 48px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spec-block-content .section-label { margin-bottom: 14px; }

.spec-block h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 24px;
}

.spec-features {
  list-style: none;
  margin: 32px 0;
  padding: 0;
}

.spec-features li {
  padding: 12px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-mute);
  font-size: 0.97rem;
  line-height: 1.5;
}

.spec-features li::before {
  content: '+';
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}

.spec-features li:last-child { border-bottom: none; }

.spec-block-visual {
  position: relative;
  aspect-ratio: auto;
  min-height: 480px;
  background: var(--bg-card);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spec-block-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spec-block-visual svg {
  width: 50%;
  height: 50%;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  opacity: 0.85;
}

/* Бейджи моделей */
.model-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  margin: 4px 6px 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition);
}

.model-tag:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

.compat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  margin-top: 24px;
}

.compat-item {
  padding: 28px 24px;
  background: var(--bg-primary);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition);
}

.compat-item:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ============================================
   КОНТАКТЫ И ФОРМА
   ============================================ */

.contact-section { position: relative; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info { position: sticky; top: 120px; }
.contact-info h2 { margin-bottom: 24px; }

.contact-info-list { list-style: none; margin-top: 40px; padding: 0; }

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left var(--transition);
}

.contact-info-item:hover { padding-left: 6px; }
.contact-info-item:last-child { border-bottom: none; }

.contact-info-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: var(--border-w) solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.contact-info-item:hover .contact-info-icon {
  background: var(--accent);
}

.contact-info-item:hover .contact-info-icon svg {
  stroke: var(--bg-primary);
}

.contact-info-icon svg {
  width: 19px;
  height: 19px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  transition: stroke var(--transition);
}

.contact-info-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.contact-info-value { color: var(--text-primary); font-size: 1.02rem; line-height: 1.5; }
.contact-info-value a { color: var(--text-primary); }
.contact-info-value a:hover { color: var(--accent); }

.form {
  background: var(--bg-primary);
  border: var(--border-w) solid var(--accent);
  padding: 48px;
  position: relative;
}

.form::before {
  content: 'REQ.01';
  position: absolute;
  top: -1px;
  right: 24px;
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  padding: 6px 12px;
  font-weight: 600;
}

.form h3 { margin-bottom: 10px; font-size: 1.5rem; }
.form-subtitle { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 32px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-group { position: relative; margin-bottom: 18px; }

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.96rem;
  transition: all var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-tertiary);
}

.form-control.error { border-color: var(--error); }

textarea.form-control {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
}

.form-error { display: none; color: var(--error); font-size: 0.78rem; margin-top: 6px; }
.form-control.error + .form-error { display: block; }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.form-checkbox input { margin-top: 4px; accent-color: var(--accent); }
.form-submit { width: 100%; }

.form-success {
  display: none;
  background: rgba(74, 222, 128, 0.1);
  border: var(--border-w) solid var(--success);
  padding: 16px 20px;
  color: var(--success);
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-success.active { display: block; }

/* ============================================
   CTA БЛОК
   ============================================ */

.cta-block {
  background: var(--accent);
  color: var(--bg-primary);
  padding: 96px 64px;
  text-align: center;
  position: relative;
  border: var(--border-w) solid var(--accent);
}

.cta-block .section-label {
  color: var(--bg-primary);
  font-weight: 700;
}

.cta-block .section-label::before { color: var(--bg-primary); }

.cta-block-inner { max-width: 880px; margin: 0 auto; }

.cta-block h2 {
  margin-bottom: 24px;
  color: var(--bg-primary);
}

.cta-block p {
  font-size: 1.12rem;
  margin-bottom: 44px;
  color: rgba(6, 16, 31, 0.85);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-block .btn-primary {
  background: var(--bg-primary);
  color: var(--accent);
  border-color: var(--bg-primary);
}

.cta-block .btn-primary:hover {
  background: transparent;
  color: var(--bg-primary);
  border-color: var(--bg-primary);
}

.cta-block .btn-outline {
  color: var(--bg-primary);
  border-color: var(--bg-primary);
}

.cta-block .btn-outline:hover {
  background: var(--bg-primary);
  color: var(--accent);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--bg-primary);
  border-top: var(--border-w) solid var(--accent);
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 64px;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 500;
}

.footer-about {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin: 20px 0;
  max-width: 320px;
  line-height: 1.6;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.94rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent); }

.footer-contact-item {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin-bottom: 10px;
  line-height: 1.5;
}

.footer-contact-item a { color: var(--text-secondary); }
.footer-contact-item a:hover { color: var(--accent); }

.footer-disclaimer {
  padding: 24px 0 0;
  margin-top: 8px;
  border-top: 1px solid var(--border-mute);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

.footer-disclaimer strong {
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-mute);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
}

.footer-copy { color: var(--text-muted); font-size: 0.82rem; letter-spacing: 0.04em; }

.footer-legal a {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-left: 24px;
  transition: color var(--transition);
  letter-spacing: 0.04em;
}

.footer-legal a:hover { color: var(--accent); }

/* ============================================
   PAGE HEADER (внутренние страницы)
   ============================================ */

.page-header {
  position: relative;
  padding: 80px 0 80px;
  border-bottom: var(--border-w) solid var(--text-primary);
}

.page-header-inner { position: relative; z-index: 1; }

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }

.breadcrumbs span:not(:last-child)::after {
  content: '/';
  margin-left: 12px;
  color: var(--border-strong);
}

.page-header h1 {
  margin-bottom: 28px;
  max-width: 1100px;
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.page-header p {
  max-width: 760px;
  font-size: 1.1rem;
}

/* ============================================
   ТЕКСТОВЫЕ СТРАНИЦЫ (политики)
   ============================================ */

.legal-article {
  max-width: 860px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.8;
}

.legal-meta {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-article h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  color: var(--text-primary);
  margin-top: 56px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-article h2:first-of-type { margin-top: 0; }

.legal-article h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
}

.legal-article p { margin-bottom: 18px; text-transform: none; }
.legal-article strong { color: var(--text-primary); font-weight: 600; }

.legal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px 0;
}

.legal-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  line-height: 1.7;
}

.legal-list li::before {
  content: '+';
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-info { position: static; }

  .section-header { grid-template-columns: 1fr; gap: 24px; }
  .section-header-left { padding-right: 0; }

  .hero-grid-bottom { grid-template-columns: 1fr; gap: 40px; }
  .hero-meta { flex-wrap: wrap; gap: 16px; }

  .spec-block { grid-template-columns: 1fr; }
  .spec-block:nth-child(even) .spec-block-content { order: 1; border-left: none; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .spec-block:nth-child(even) .spec-block-visual { order: 2; }
  .spec-block-content { border-right: none; border-bottom: 1px solid var(--border); }
  .spec-block-visual { min-height: 360px; }

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

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav, .header-cta .header-phone { display: none; }
  .menu-toggle { display: block; }

  .nav.mobile-active {
    display: flex;
    position: fixed;
    top: 0; right: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 100;
    padding: 40px;
  }

  .nav.mobile-active a {
    font-size: 1.15rem;
    border: var(--border-w) solid var(--accent);
    padding: 14px 24px;
  }

  .hero { padding: 48px 0 64px; }
  .hero-meta { font-size: 0.72rem; gap: 10px; }
  .hero-headline { margin-bottom: 32px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .section { padding: 72px 0; }
  .section-header { margin-bottom: 48px; }

  .features-grid { grid-template-columns: 1fr; }
  .product-card { padding: 40px 28px; }
  .spec-block-content { padding: 40px 28px; }

  .form { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }

  .cta-block { padding: 64px 28px; }

  .footer { padding: 60px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal a { margin: 0 12px; }

  .page-header { padding: 56px 0 56px; }

  .compat-grid { grid-template-columns: 1fr 1fr; }
  .marquee { display: none; }
}
