/* ============================================================
   IDTEX — Дистрибуция ПО для безопасности
   Тёмный редизайн · enterprise / cybersecurity minimalism
   Дизайн-система: primitive → semantic → component токены
   ============================================================ */

/* ------------------------------------------------------------
   1. PRIMITIVE TOKENS — сырая палитра, свет, тень, шрифт
   ------------------------------------------------------------ */
:root {
  /* Цвета (primitive) */
  --color-blue-600: #2563eb;   /* primary dark   */
  --color-blue-500: #3b82f6;   /* primary        */
  --color-blue-400: #60a5fa;   /* primary light  */
  --color-cyan-500: #06b6d4;   /* secondary      */
  --color-amber-500: #f59e0b;  /* accent         */
  --color-slate-950: #020617;  /* deepest bg     */
  --color-slate-900: #0f172a;  /* base bg        */
  --color-slate-800: #1e293b;  /* surface        */
  --color-slate-700: #334155;  /* surface strong */
  --color-slate-600: #475569;  /* muted border   */
  --color-slate-500: #64748b;  /* gray text      */
  --color-slate-400: #94a3b8;  /* gray light     */
  --color-slate-200: #e2e8f0;  /* soft text      */
  --color-slate-100: #f1f5f9;  /* light text     */
  --color-slate-50: #f8fafc;   /* bright text    */
  --color-white: #ffffff;
  --color-success: #22c55e;
  --color-danger: #ef4444;

  /* Свет и тень (primitive) */
  --shadow-color: rgba(2, 6, 23, 0.5);
  --glow-primary: rgba(59, 130, 246, 0.4);
  --glow-secondary: rgba(6, 182, 212, 0.3);

  /* Типографика (primitive) */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: clamp(2rem, 4vw, 3rem);
  --font-size-3xl: clamp(2.5rem, 5vw, 4rem);
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Геометрия (primitive) */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 50px;

  /* Движение (primitive) */
  --duration-fast: 0.2s;
  --duration-base: 0.3s;
  --duration-slow: 0.4s;
  --ease-out: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ------------------------------------------------------------
   2. SEMANTIC TOKENS — назначение, а не цвет
   ------------------------------------------------------------ */
:root {
  /* Фон */
  --bg-base: var(--color-slate-900);
  --bg-surface: rgba(30, 41, 59, 0.5);
  --bg-surface-solid: var(--color-slate-800);
  --bg-elevated: rgba(15, 23, 42, 0.95);
  --bg-elevated-solid: rgba(15, 23, 42, 0.98);
  --bg-input: var(--color-slate-900);
  --bg-overlay: rgba(2, 6, 23, 0.6);

  /* Текст */
  --text-primary: var(--color-slate-50);
  --text-secondary: var(--color-slate-400);
  --text-muted: var(--color-slate-500);
  --text-inverse: var(--color-slate-900);

  /* Акценты */
  --accent-primary: var(--color-blue-500);
  --accent-primary-dark: var(--color-blue-600);
  --accent-primary-light: var(--color-blue-400);
  --accent-secondary: var(--color-cyan-500);
  --accent-warning: var(--color-amber-500);
  --accent-success: var(--color-success);
  --accent-danger: var(--color-danger);

  /* Градиенты */
  --gradient-brand: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  --gradient-text: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 25%, var(--accent-primary) 50%, var(--accent-secondary) 75%, var(--accent-primary-light) 100%);
  --gradient-logo: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 25%, var(--accent-primary) 50%, var(--accent-secondary) 75%, var(--accent-primary) 100%);

  /* Границы и тени */
  --border-default: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(59, 130, 246, 0.3);
  --border-hover: rgba(59, 130, 246, 0.5);
  --border-accent: rgba(6, 182, 212, 0.3);
  --shadow-card: 0 20px 40px var(--shadow-color);
  --shadow-button: 0 10px 30px var(--glow-primary);
  --shadow-stage: 0 25px 50px rgba(59, 130, 246, 0.15), 0 0 30px rgba(59, 130, 246, 0.1);

  /* Эффекты */
  --blur: 10px;
  --glow-soft: 0 0 20px rgba(59, 130, 246, 0.3);
  --glow-pulse: rgba(59, 130, 246, 0.4);

  /* Бренд */
  --brand-name: 'АйДиТекс';
  --font-body: var(--font-family);
}

/* ------------------------------------------------------------
   3. RESET & BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  background: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration-base) ease;
}

ul {
  list-style: none;
}

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

button {
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: var(--font-size-3xl);
}

h2 {
  font-size: var(--font-size-2xl);
}

h3 {
  font-size: var(--font-size-xl);
}

p {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
}

/* Доступность: фокус для клавиатуры */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Скрытый, но доступный скринридерам */
.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;
}

/* ------------------------------------------------------------
   4. LAYOUT
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 20px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  color: var(--accent-secondary);
  margin-bottom: 16px;
}

.section-tag svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.section-title {
  margin-bottom: 16px;
}

.section-description {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
}

/* ------------------------------------------------------------
   5. COMPONENT TOKENS — кнопки, карточки и пр.
   (значения собраны из primitive/semantic слоёв)
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-body);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform var(--duration-base) ease,
              box-shadow var(--duration-base) ease,
              background var(--duration-base) ease,
              border-color var(--duration-base) ease;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--text-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-button);
}

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

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-default);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.1);
}

/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-elevated);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--border-default);
  transition: background var(--duration-base) ease,
              box-shadow var(--duration-base) ease;
}

.header.scrolled {
  background: var(--bg-elevated-solid);
  box-shadow: 0 4px 20px rgba(2, 6, 23, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

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

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
}

.logo-text {
  font-size: 1.75rem;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 2px;
  background: var(--gradient-logo);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logo-shine 4s linear infinite;
}

@keyframes logo-shine {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 300% center;
  }
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  position: relative;
  white-space: nowrap;
  transition: color var(--duration-base) ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width var(--duration-base) ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

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

.nav-link-highlight {
  background: var(--gradient-brand);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
}

.nav-link-highlight::after {
  display: none;
}

.nav-link-highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--glow-primary);
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-phone {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  font-size: 0.9rem;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--accent-primary-light);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-btn svg {
  width: 28px;
  height: 28px;
  transition: transform var(--duration-base) ease;
}

.mobile-menu-btn.active svg line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  transform-origin: center;
}

.mobile-menu-btn.active svg line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active svg line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  transform-origin: center;
}

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 20px 80px;
  background:
    radial-gradient(ellipse at top right, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  color: var(--accent-secondary);
  margin-bottom: 24px;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero h1 {
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: var(--font-weight-semibold);
  animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% center;
  }
  50% {
    background-position: 200% center;
  }
}

.hero-description {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 700px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   VENDORS (simple cards)
   ------------------------------------------------------------ */
.vendors {
  background: transparent;
}

.vendors-simple-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.vendor-simple-card {
  background: var(--bg-surface);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  transition: transform var(--duration-base) ease,
              border-color var(--duration-base) ease,
              box-shadow var(--duration-base) ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.vendor-simple-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.3;
  transition: opacity var(--duration-base) ease;
}

.vendor-simple-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 15px 30px var(--glow-primary);
}

.vendor-simple-card:hover::before {
  opacity: 0.8;
}

.vendor-name {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

/* ------------------------------------------------------------
   PRODUCTS
   ------------------------------------------------------------ */
.products {
  background: transparent;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--bg-surface);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: transform var(--duration-base) ease,
              border-color var(--duration-base) ease,
              box-shadow var(--duration-base) ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) ease;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-icon {
  width: 60px;
  height: 60px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.product-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent-primary-light);
}

.product-card h3 {
  margin-bottom: 12px;
  font-size: var(--font-size-xl);
}

.product-card > p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.product-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.product-feature svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-secondary);
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   VENDOR PRODUCTS (решения)
   ------------------------------------------------------------ */
.vendor-products {
  background: transparent;
}

.vendor-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.vendor-product-card {
  background: var(--bg-surface);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: transform var(--duration-base) ease,
              border-color var(--duration-base) ease,
              box-shadow var(--duration-base) ease;
  position: relative;
  overflow: hidden;
}

.vendor-product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) ease;
}

.vendor-product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.vendor-product-card:hover::before {
  transform: scaleX(1);
}

.vp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.vp-vendor {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.vp-link {
  color: var(--text-muted);
  transition: color var(--duration-base) ease;
}

.vp-link:hover {
  color: var(--accent-primary-light);
}

.vp-link svg {
  width: 20px;
  height: 20px;
}

.vendor-product-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: 12px;
}

.vendor-product-card > p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.vp-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vp-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.vp-features svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-secondary);
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   ADVANTAGES
   ------------------------------------------------------------ */
.advantages {
  background: transparent;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.advantage-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-surface);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  transition: transform var(--duration-base) ease,
              border-color var(--duration-base) ease;
}

.advantage-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-5px);
}

.advantage-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantage-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--accent-primary-light);
}

.advantage-card h3 {
  margin-bottom: 12px;
}

/* ------------------------------------------------------------
   WORK STAGES
   ------------------------------------------------------------ */
.work-stages {
  background: transparent;
  position: relative;
}

.stages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  position: relative;
}

.stage-card {
  background: var(--bg-surface);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  padding: 40px 28px 32px;
  text-align: center;
  transition: transform var(--duration-slow) var(--ease-out),
              border-color var(--duration-slow) ease,
              box-shadow var(--duration-slow) ease;
  position: relative;
  overflow: visible;
}

.stage-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-2xl);
  padding: 2px;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.2;
  transition: opacity var(--duration-slow) ease;
}

.stage-card::after {
  content: attr(data-stage);
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--gradient-brand);
  border: 3px solid var(--border-strong);
  border-radius: 50%;
  z-index: 2;
  transition: transform var(--duration-slow) ease,
              border-color var(--duration-slow) ease,
              box-shadow var(--duration-slow) ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-extrabold);
  color: var(--text-primary);
  box-shadow: var(--glow-soft);
}

.stage-card:hover {
  transform: translateY(-12px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-stage);
}

.stage-card:hover::before {
  opacity: 0.8;
}

.stage-card:hover::after {
  border-color: var(--accent-primary);
  box-shadow: 0 0 30px var(--glow-primary),
              0 0 60px rgba(59, 130, 246, 0.3);
  transform: translateX(-50%) scale(1.1);
}

.stage-number {
  display: none;
}

.stage-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: transform var(--duration-slow) ease;
}

.stage-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--duration-slow) ease;
  z-index: -1;
}

.stage-card:hover .stage-icon {
  transform: scale(1.1);
}

.stage-card:hover .stage-icon::before {
  opacity: 0.3;
}

.stage-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--accent-primary-light);
  transition: stroke var(--duration-slow) ease;
}

.stage-card:hover .stage-icon svg {
  stroke: var(--text-primary);
}

.stage-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: 14px;
}

.stage-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Pulse animation для номеров этапов */
@keyframes stage-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 var(--glow-pulse);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
  }
}

.stage-card:nth-child(1)::after { animation: stage-pulse 3s ease-in-out infinite 0s; }
.stage-card:nth-child(2)::after { animation: stage-pulse 3s ease-in-out infinite 0.5s; }
.stage-card:nth-child(3)::after { animation: stage-pulse 3s ease-in-out infinite 1s; }
.stage-card:nth-child(4)::after { animation: stage-pulse 3s ease-in-out infinite 1.5s; }
.stage-card:nth-child(5)::after { animation: stage-pulse 3s ease-in-out infinite 2s; }

/* ------------------------------------------------------------
   CONTACT FORM
   ------------------------------------------------------------ */
.contact-form-section {
  background: transparent;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-surface);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  padding: 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--font-size-base);
  font-family: var(--font-body);
  transition: border-color var(--duration-base) ease,
              box-shadow var(--duration-base) ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

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

.form-submit {
  margin-top: 30px;
  text-align: center;
}

.form-submit .btn {
  width: 100%;
  max-width: 300px;
}

.form-note {
  margin-top: 16px;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   CONTACTS
   ------------------------------------------------------------ */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.contact-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-surface);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  transition: border-color var(--duration-base) ease;
}

.contact-card:hover {
  border-color: var(--border-strong);
}

.contact-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-primary-light);
}

.contact-card h3 {
  font-size: var(--font-size-base);
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-card p,
.contact-card a {
  font-size: var(--font-size-md);
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
}

.contact-card a:hover {
  color: var(--accent-primary-light);
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.footer {
  background: rgba(15, 23, 42, 0.8);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border-top: 1px solid var(--border-default);
  padding: 48px 20px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 32px;
}

.footer-brand {
  max-width: 220px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-column h4 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color var(--duration-fast) ease;
}

.footer-column a:hover {
  color: var(--accent-primary-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-default);
  max-width: 1200px;
  margin: 0 auto;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

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

.footer-requisites {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-requisites span {
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   SCROLL REVEAL (main.js: .animate-on-scroll → .visible)
   ------------------------------------------------------------ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease,
              transform 0.6s ease;
  will-change: opacity, transform;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Отключить анимацию для тех, кто предпочитает без движения */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------
   CURSOR GLOW (main.js)
   ------------------------------------------------------------ */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(6, 182, 212, 0.04) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  mix-blend-mode: screen;
}

/* ------------------------------------------------------------
   BUBBLE BACKGROUND (main.js)
   ------------------------------------------------------------ */
.phantom-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -20px;
  opacity: 0;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.6), rgba(6, 182, 212, 0.3));
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

@keyframes phantom-rise {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: var(--max-opacity);
  }
  90% {
    opacity: var(--max-opacity);
  }
  100% {
    transform: translateY(-120vh) scale(1);
    opacity: 0;
  }
}

@keyframes bubble-collapse {
  0%, 100% {
    transform: scale(1);
    opacity: var(--max-opacity);
  }
  50% {
    transform: scale(0.3);
    opacity: 0;
  }
}

@keyframes phantom-sway {
  0%, 100% {
    margin-left: 0;
  }
  25% {
    margin-left: 20px;
  }
  50% {
    margin-left: -20px;
  }
  75% {
    margin-left: 10px;
  }
}

/* ------------------------------------------------------------
   NOTIFICATION TOAST (main.js: .notification-toast + .visible)
   ------------------------------------------------------------ */
.notification-toast {
  position: fixed;
  top: 100px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(30, 41, 59, 0.95);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  max-width: 400px;
  transform: translateX(120%);
  opacity: 0;
  transition: transform var(--duration-base) var(--ease-smooth),
              opacity var(--duration-base) ease;
}

.notification-toast.visible {
  transform: translateX(0);
  opacity: 1;
}

.notification-success {
  border-color: rgba(34, 197, 94, 0.5);
}

.notification-success .toast-icon {
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent-success);
}

.notification-error {
  border-color: rgba(239, 68, 68, 0.5);
}

.notification-error .toast-icon {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-danger);
}

.toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.toast-message {
  flex: 1;
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  line-height: 1.5;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) ease,
              color var(--duration-fast) ease;
}

.toast-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.toast-close svg {
  width: 18px;
  height: 18px;
}

/* ------------------------------------------------------------
   RESPONSIVE · mobile-first
   ------------------------------------------------------------ */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .section {
    padding: 64px 20px;
  }
}

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

  .nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated-solid);
    padding: 20px;
    border-bottom: 1px solid var(--border-default);
    gap: 4px;
  }

  .nav.active .nav-link {
    padding: 10px 0;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-requisites {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-legal {
    justify-content: center;
  }

  .notification-toast {
    top: auto;
    bottom: 20px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

  .products-grid,
  .advantages-grid,
  .vendor-products-grid,
  .stages-grid {
    grid-template-columns: 1fr;
  }
}
