/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--color-bg, #FAFBFD);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__inner {
  text-align: center;
  animation: preloader-fade-in 0.4s ease;
}

.preloader__logo {
  font-family: var(--font, 'Inter', sans-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent, #0D3B66);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.preloader__spinner {
  margin-bottom: 16px;
}

.preloader__text {
  font-size: 0.875rem;
  color: var(--color-text-secondary, #64748B);
  letter-spacing: 0.05em;
}

@keyframes preloader-fade-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #1B6EC2;
  --color-primary-dark: #145DA0;
  --color-primary-light: #E8F4FD;
  --color-accent: #0D3B66;
  --color-bg: #FAFBFD;
  --color-bg-alt: #F1F5F9;
  --color-surface: #FFFFFF;
  --color-text: #1E293B;
  --color-text-secondary: #64748B;
  --color-border: #E2E8F0;
  --color-success: #16A34A;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --font: 'Inter', -apple-system, sans-serif;
  --container: 1200px;
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-accent);
  margin-bottom: 48px;
  max-width: 640px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(27,110,194,0.3);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 16px rgba(27,110,194,0.4);
  transform: translateY(-1px);
}

.btn--outline {
  border: 2px solid var(--color-border);
  color: var(--color-text);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--full { width: 100%; }

.btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(250,251,253,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease;
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}

.header__logo span {
  color: var(--color-primary);
  font-weight: 500;
  margin-left: 2px;
}

.header__nav {
  display: flex;
  gap: 32px;
}

.header__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
  position: relative;
}

.header__link:hover,
.header__link.active {
  color: var(--color-primary);
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.2s ease;
}

.header__link:hover::after,
.header__link.active::after {
  width: 100%;
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 1001;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* ===== HERO ===== */
.hero {
  padding: calc(var(--header-h) + 80px) 0 100px;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-primary-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,110,194,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  padding: 6px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-primary);
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-accent);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero slider */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__slider {
  width: 100%;
  max-width: 540px;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-accent);
}

.hero__slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.hero__slide {
  min-width: 100%;
  position: relative;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3;
}

/* Slider buttons */
.hero__slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
  z-index: 2;
  cursor: pointer;
  border: none;
  padding: 0;
}

.hero__slider-btn:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.hero__slider-btn--prev {
  left: 12px;
}

.hero__slider-btn--next {
  right: 12px;
}

/* Slider dots */
.hero__slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: 100px;
}

.hero__slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero__slider-dot.active {
  background: #fff;
  transform: scale(1.3);
}

.hero__slider-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* ===== ABOUT ===== */
.about {
  padding: 100px 0;
  background: var(--color-surface);
}

.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

.about__text p {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about__text p:last-child { margin-bottom: 0; }

.about__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(27,110,194,0.06), transparent);
  transition: left 0.5s ease;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover {
  border-color: var(--color-primary);
  transform: translateX(6px);
  box-shadow: -4px 0 12px rgba(27,110,194,0.1);
}

.stat-card__number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  min-width: 64px;
}

.stat-card__label {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

/* ===== PROBLEM ===== */
.problem {
  padding: 100px 0;
  background: var(--color-bg);
}

.problem__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.problem__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.problem__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--color-primary);
  transition: height 0.4s cubic-bezier(0.16,1,0.3,1);
  border-radius: 0 0 3px 0;
}

.problem__card:hover::before {
  height: 100%;
}

.problem__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(27,110,194,0.12);
  border-color: var(--color-primary);
}

.problem__icon {
  font-size: 1.75rem;
  margin-bottom: 16px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-primary);
}

.problem__card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.problem__card p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ===== SERVICES ===== */
.services {
  padding: 100px 0;
  background: var(--color-surface);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(27,110,194,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(27,110,194,0.15);
  border-color: var(--color-primary);
}

.service-card__icon {
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ===== APPROACH ===== */
.approach {
  padding: 100px 0;
  background: var(--color-bg);
}

.approach__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.approach__timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 48px;
  right: 48px;
  height: 2px;
  background: var(--color-border);
}

.approach__step {
  text-align: center;
  position: relative;
}

.approach__step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(27,110,194,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.approach__step:hover .approach__step-num {
  transform: scale(1.15);
  box-shadow: 0 4px 20px rgba(27,110,194,0.4);
}

.approach__step-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.approach__step-content p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ===== SOFTWARE ===== */
.software {
  padding: 100px 0;
  background: var(--color-surface);
}

.software__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.software__mockup {
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.2);
}

.mockup-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

.mockup-bar span:first-child { background: #ff5f57; }
.mockup-bar span:nth-child(2) { background: #febc2e; }
.mockup-bar span:nth-child(3) { background: #28c840; }

.mockup-body {
  display: flex;
  min-height: 280px;
}

.mockup-sidebar {
  width: 60px;
  background: rgba(255,255,255,0.05);
  border-right: 1px solid rgba(255,255,255,0.08);
}

.mockup-main {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mockup-chart {
  flex: 1;
  background: linear-gradient(180deg, rgba(27,110,194,0.3) 0%, rgba(27,110,194,0.05) 100%);
  border-radius: var(--radius-sm);
  min-height: 120px;
}

.mockup-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mockup-widget {
  height: 48px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Software Gallery */
.software__gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.software__gallery img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.software__gallery img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.software__features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.software__feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.software__feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
}

.software__feature h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.software__feature p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ===== CRUSHING (ДСК) ===== */
.crushing {
  padding: 100px 0;
  background: var(--color-surface);
}

.crushing__intro {
  max-width: 800px;
  margin-bottom: 48px;
}

.crushing__intro p {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.crushing__intro p:last-child {
  margin-bottom: 0;
}

.crushing__blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.crushing__block {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.crushing__block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--color-primary);
  transition: height 0.4s cubic-bezier(0.16,1,0.3,1);
  border-radius: 0 0 3px 0;
}

.crushing__block:hover::before {
  height: 100%;
}

.crushing__block:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(27,110,194,0.12);
  border-color: var(--color-primary);
}

.crushing__block--wide {
  grid-column: 1 / -1;
}

.crushing__block--with-image {
  grid-column: 1 / -1;
  display: flex;
  gap: 32px;
  align-items: center;
}

.crushing__block-content {
  flex: 1;
}

.crushing__block-image {
  flex: 1;
  max-width: 50%;
}

.crushing__block-image img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.crushing__block-image img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .crushing__block--with-image {
    flex-direction: column;
  }
  .crushing__block-image {
    max-width: 100%;
  }
}

.crushing__block-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  margin-bottom: 16px;
}

.crushing__block h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.crushing__block p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.crushing__block p:last-child {
  margin-bottom: 0;
}

.crushing__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.crushing__list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.crushing__list li:last-child {
  margin-bottom: 0;
}

.crushing__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.7;
}

.crushing__cta {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.crushing__cta p {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ===== CONTACTS ===== */
.contacts {
  padding: 100px 0;
  background: var(--color-bg);
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contacts__card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contacts__card-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
}

.contacts__card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 2px;
}

.contacts__card p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.contacts__card a {
  color: var(--color-primary);
  transition: color 0.2s;
}

.contacts__card a:hover {
  color: var(--color-primary-dark);
}

.contacts__form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-family: var(--font);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27,110,194,0.12);
}

.form-group textarea { resize: vertical; }

.form-group input.error,
.form-group textarea.error {
  border-color: #dc2626;
}

/* ===== SECTION DIVIDERS ===== */
.about::before,
.problem::before,
.services::before,
.approach::before,
.software::before,
.crushing::before,
.contacts::before {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  margin: 0 auto 0;
  border-radius: 3px;
  position: relative;
  top: -50px;
}

/* Gradient border accent on service cards */
.service-card:hover {
  border-image: linear-gradient(135deg, var(--color-primary), rgba(27,110,194,0.2)) 1;
  border-image-slice: 1;
}

/* Success message for form */
.form-success {
  display: none;
  text-align: center;
  padding: 32px;
  color: var(--color-success);
  font-weight: 600;
  font-size: 1.0625rem;
}

.form-success.show { display: block; }

/* Input security visual */
.form-group input:invalid:not(:placeholder-shown) {
  border-color: #f59e0b;
}

/* Honeypot field (anti-spam) */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ===== FOOTER ===== */
.footer {
  padding: 32px 0;
  background: var(--color-accent);
  color: rgba(255,255,255,0.6);
}

.footer__inner {
  text-align: center;
  font-size: 0.875rem;
}


/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade from left */
.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fade from right */
.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale in */
.scale-in {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Blur reveal */
.blur-in {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(16px);
  transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease;
}
.blur-in.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Floating animation for hero graphic */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-ring {
  0% { transform: translate(-50%,-50%) scale(0.8); opacity: 0.6; }
  100% { transform: translate(-50%,-50%) scale(1.4); opacity: 0; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Glow pulse for stat numbers */
@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 20px rgba(27,110,194,0.3); }
}

/* Gradient move for hero */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Line draw for approach timeline */
@keyframes draw-line {
  from { width: 0; }
  to { width: calc(100% - 96px); }
}

/* Counter animation helper */
@keyframes count-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */

/* Large desktop (1440px+) */
@media (min-width: 1440px) {
  .container { max-width: 1280px; }
}
@media (min-width: 1920px) {
  .container { max-width: 1440px; }
  html { font-size: 18px; }
}

/* Tablet landscape / small desktop */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero__visual { order: -1; }
  .hero__graphic { max-width: 340px; margin: 0 auto; }
  .hero__actions { justify-content: center; }
  .about__grid { grid-template-columns: 1fr; gap: 36px; }
  .about__text { text-align: center; }
  .about__stats { justify-content: center; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .software__content { grid-template-columns: 1fr; gap: 36px; }
  .software__screen { max-width: 500px; margin: 0 auto; }
  .approach__timeline { grid-template-columns: repeat(2, 1fr); }
  .approach__timeline::before { display: none; }
  .contacts__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Tablet portrait */
@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid var(--color-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    max-height: calc(100vh - var(--header-h));
    z-index: 999;
  }
  .header__nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .header__link {
    font-size: 1.1rem;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    transition: background 0.2s ease, color 0.2s ease;
  }
  .header__link:hover,
  .header__link.active {
    background: var(--color-primary-light);
    color: var(--color-primary);
  }
  .header__link::after { display: none; }
  .header__burger { display: flex; }
  .header__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .header__burger.active span:nth-child(2) { opacity: 0; }
  .header__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero { padding: calc(var(--header-h) + 40px) 0 56px; }
  .hero__title { font-size: clamp(1.6rem, 5.5vw, 2.4rem); }
  .hero__subtitle { font-size: 1rem; }
  .hero__graphic { max-width: 280px; }

  .about, .problem, .services, .approach, .software, .crushing, .contacts { padding: 60px 0; }
  .crushing__blocks { grid-template-columns: 1fr; }
  .section-title { margin-bottom: 32px; font-size: clamp(1.3rem, 4vw, 1.75rem); }
  .section-label { font-size: 0.75rem; }

  .problem__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .approach__timeline { grid-template-columns: 1fr; gap: 20px; }
  .approach__step { text-align: left; display: flex; gap: 16px; align-items: flex-start; }
  .approach__step-num { margin: 0; flex-shrink: 0; width: 44px; height: 44px; font-size: 0.95rem; }

  .contacts__form { padding: 24px; }
  .footer__inner { flex-direction: column; text-align: center; gap: 12px; }
}

/* Mobile large (480px) */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: calc(var(--header-h) + 32px) 0 48px; }
  .hero__tag { font-size: 0.7rem; padding: 4px 12px; }
  .hero__title { font-size: clamp(1.35rem, 6vw, 1.8rem); line-height: 1.25; }
  .hero__subtitle { font-size: 0.9rem; }
  .hero__actions { flex-direction: column; gap: 10px; }
  .hero__actions .btn { width: 100%; text-align: center; justify-content: center; }
  .hero__graphic { max-width: 220px; }

  .about, .problem, .services, .approach, .software, .crushing, .contacts { padding: 48px 0; }
  .section-title { font-size: 1.25rem; margin-bottom: 24px; }

  .stat-card { padding: 16px; gap: 8px; }
  .stat-card__number { font-size: 1.4rem; min-width: 44px; }
  .stat-card__label { font-size: 0.8rem; }

  .problem__card { padding: 20px; }
  .service-card { padding: 24px 20px; }
  .service-card__title { font-size: 1rem; }

  .approach__step-num { width: 40px; height: 40px; font-size: 0.85rem; }
  .approach__step-title { font-size: 0.95rem; }

  .software__feature { padding: 16px; gap: 10px; }

  .contacts__card { padding: 20px; }
  .contacts__form { padding: 20px; }
  .form-group input, .form-group textarea { padding: 10px 14px; font-size: 0.9rem; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
}

/* Mobile small (360px and below) */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .header__logo { font-size: 0.8rem; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
  .header__logo-icon { width: 28px; height: 28px; }
  .hero__title { font-size: 1.2rem; }
  .hero__subtitle { font-size: 0.85rem; }
  .about__stats { gap: 10px; }
  .stat-card { padding: 14px 10px; }
  .stat-card__number { font-size: 1.2rem; min-width: 36px; }
  .stat-card__label { font-size: 0.72rem; }
  .mockup-bar { padding: 6px 8px; }
  .mockup-dot { width: 5px; height: 5px; }
  .mockup-sidebar { width: 40px; }
  .contacts__form { padding: 16px; }
  .form-row { grid-template-columns: 1fr; }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 48px; }
  .header__link { min-height: 44px; display: flex; align-items: center; }
  .service-card:hover { transform: none; }
  .btn--primary:hover { transform: none; }
  .contacts__card:hover { transform: none; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .fade-up, .fade-left, .fade-right, .scale-in, .blur-in { opacity: 1; transform: none; filter: none; }
}

/* Print styles */
@media print {
  .header, .footer, .hero__graphic, .preloader { display: none; }
  body { color: #000; background: #fff; }
  .about, .problem, .services, .approach, .software, .crushing, .contacts { padding: 24px 0; }
}

/* ===== SMOOTH THEME TRANSITION ===== */
body,
.header,
.hero,
.about,
.problem,
.services,
.approach,
.software,
.crushing,
.contacts,
.footer,
.crushing__block,
.stat-card,
.problem__card,
.service-card,
.contacts__form,
.form-group input,
.form-group textarea,
.btn--primary,
.btn--outline,
.theme-toggle {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-text);
  transition: background 0.3s, color 0.3s;
  margin-right: 8px;
}
.theme-toggle:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}
.theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: block; }

/* ===== DARK THEME ===== */
[data-theme="dark"] {
  --color-primary: #4DA8FF;
  --color-primary-dark: #3B8FE0;
  --color-primary-light: rgba(77,168,255,0.12);
  --color-accent: #8BB8E8;
  --color-bg: #0F172A;
  --color-bg-alt: #1E293B;
  --color-surface: #1E293B;
  --color-text: #E2E8F0;
  --color-text-secondary: #94A3B8;
  --color-border: #334155;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
}
[data-theme="dark"] .header {
  background: rgba(15,23,42,0.95);
  border-color: var(--color-border);
}
[data-theme="dark"] .hero__graphic {
  background: linear-gradient(135deg, rgba(77,168,255,0.15), rgba(59,143,224,0.08));
  border-color: rgba(77,168,255,0.2);
}
[data-theme="dark"] .hero__graphic::before {
  border-color: rgba(77,168,255,0.15);
}
[data-theme="dark"] .hero__graphic::after {
  background: rgba(77,168,255,0.25);
}
[data-theme="dark"] .service-card__icon svg rect {
  fill: rgba(77,168,255,0.12);
}
[data-theme="dark"] .service-card__icon svg path,
[data-theme="dark"] .service-card__icon svg circle,
[data-theme="dark"] .service-card__icon svg rect:not(:first-child) {
  stroke: var(--color-primary);
}
[data-theme="dark"] .problem__icon {
  color: var(--color-primary);
}
[data-theme="dark"] .approach__step-num {
  background: rgba(77,168,255,0.12);
  color: var(--color-primary);
}
[data-theme="dark"] .mockup-bar {
  background: var(--color-bg);
}
[data-theme="dark"] .mockup-body {
  background: #0F172A;
}
[data-theme="dark"] .mockup-sidebar {
  background: #162033;
}
[data-theme="dark"] .mockup-chart {
  background: linear-gradient(135deg, rgba(77,168,255,0.1) 0%, rgba(77,168,255,0.05) 100%);
}
[data-theme="dark"] .mockup-widget {
  background: #162033;
}
[data-theme="dark"] .theme-toggle {
  background: var(--color-surface);
}
[data-theme="dark"] .footer {
  background: #0B1120;
  border-color: var(--color-border);
}
