/* ===== ROOT & TOKENS ===== */
:root {
  --primary: #1A6FD4;
  --primary-dark: #1158B0;
  --primary-glow: rgba(26,111,212,0.28);
  --accent: #00C9A7;
  --accent-glow: rgba(0,201,167,0.22);

  --dark:   #040D1E;
  --dark-2: #081728;
  --dark-3: #0D2441;

  --surface:   #FFFFFF;
  --surface-2: #F5F8FF;
  --border: rgba(26,111,212,0.12);

  --text: #0B1929;
  --text-muted: #5A7999;
  --text-on-dark: rgba(255,255,255,0.92);
  --text-muted-dark: rgba(255,255,255,0.52);

  --radius:    16px;
  --radius-lg: 24px;
  --container: 1200px;

  --shadow-sm: 0 4px 16px rgba(14,38,68,0.06);
  --shadow:    0 8px 32px rgba(14,38,68,0.10);
  --shadow-lg: 0 24px 64px rgba(14,38,68,0.14);
  --shadow-glow: 0 0 40px rgba(26,111,212,0.18);

  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--surface-2);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== LAYOUT ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255,255,255,0.82);
  border-bottom: 1px solid rgba(26,111,212,0.08);
  box-shadow: 0 1px 24px rgba(14,38,68,0.06);
}

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

.logo { font-weight: 800; color: var(--primary); text-decoration: none; font-size: 1.1rem; }
.logo img { height: 61px; display: block; }

.nav a {
  margin-left: 24px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--primary); }

.nav a.btn-outline {
  padding: 9px 18px;
  border-radius: 10px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  transition: all 0.25s;
}
.nav a.btn-outline:hover { background: var(--primary); color: white; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, #EDF5FF 0%, #F8FBFF 45%, #EDF9F6 100%);
  overflow: hidden;
}

/* Hero video frame */
.hero-video-wrap {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 30%;
  height: 60%;
  border-radius: 28px;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(26, 111, 212, 0.10),
    0 8px 40px rgba(14, 38, 68, 0.16),
    0 2px 12px rgba(26, 111, 212, 0.10);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  display: block;
}


@media (max-width: 900px) {
  .hero-video-wrap { display: none; }
}

/* Animated light blobs */
.hero::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse at 18% 45%, rgba(59,130,246,0.22)  0%, transparent 52%),
    radial-gradient(ellipse at 82% 52%, rgba(20,184,166,0.20)  0%, transparent 50%),
    radial-gradient(ellipse at 50% 8%,  rgba(139,92,246,0.14)  0%, transparent 48%),
    radial-gradient(ellipse at 90% 14%, rgba(59,130,246,0.14)  0%, transparent 42%),
    radial-gradient(ellipse at 8%  88%, rgba(6,182,212,0.14)   0%, transparent 46%),
    radial-gradient(ellipse at 66% 90%, rgba(20,184,166,0.12)  0%, transparent 44%);
  animation: lightFloat 14s ease-in-out infinite alternate;
}

/* Subtle grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,111,212,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,111,212,0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 25%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 50%, black 25%, transparent 75%);
}

@keyframes lightFloat {
  0%   { transform: scale(1)    rotate(0deg)  translate(0%,  0%); }
  25%  { transform: scale(1.05) rotate(2deg)  translate(1%, -1%); }
  50%  { transform: scale(1.08) rotate(-1deg) translate(-2%, 2%); }
  75%  { transform: scale(1.03) rotate(3deg)  translate(2%,  1%); }
  100% { transform: scale(1.06) rotate(-2deg) translate(-1%,-2%); }
}

@keyframes meshPulse {
  0%   { transform: scale(1)    rotate(0deg);  }
  50%  { transform: scale(1.06) rotate(3deg);  }
  100% { transform: scale(1.02) rotate(-2deg); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 64px;
  align-items: center;
  padding: 100px 0 80px;
  width: 100%;
}

.hero-left { flex: 1.1; }

/* Pulsing badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26,111,212,0.08);
  border: 1px solid rgba(26,111,212,0.22);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: dotPulse 2s infinite;
}
@keyframes dotPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(.7); }
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, #7EC8FF, #00C9A7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.75;
  max-width: 480px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Stats row */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid rgba(26,111,212,0.12);
}
.hero-stat .num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat .lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero image */
.hero-image { flex: 1; position: relative; }
.hero-image::before {
  content: '';
  position: absolute;
  inset: -24px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.18) 0%, rgba(20,184,166,0.10) 50%, transparent 72%);
  border-radius: 50%;
}
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(26,111,212,0.16), 0 0 0 1px rgba(26,111,212,0.08);
  position: relative;
  z-index: 1;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 13px 26px;
  min-height: 48px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 4px 20px var(--primary-glow);
  letter-spacing: 0.2px;
  font-family: inherit;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px var(--primary-glow); }

.btn-secondary {
  background: rgba(255,255,255,0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(26,111,212,0.22);
  color: var(--primary);
  box-shadow: 0 2px 12px rgba(26,111,212,0.08);
}
.btn-secondary:hover {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 6px 24px rgba(26,111,212,0.15);
}

.btn-ghost {
  display: block;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--primary);
  padding: 12px 18px;
  min-height: 48px;
  border-radius: 10px;
  touch-action: manipulation;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.25s;
  text-align: center;
  font-family: inherit;
  margin-top: 16px;
}
.btn-ghost:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

/* ===== SECTIONS ===== */
.section { padding: 96px 0; }
.section-label {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 14px;
}
.section > .container > p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 0;
}

/* ===== ABOUT ===== */
.about { background: white; }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.38fr;
  gap: 72px;
  align-items: center;
}

.about-list {
  list-style: none;
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--surface-2);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  transition: all 0.25s;
}
.about-list li::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  flex-shrink: 0;
}
.about-list li:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 18px var(--primary-glow);
  transform: translateY(-2px);
}

.about-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ===== CATALOG ===== */
.catalog { background: var(--surface-2); }
.catalog .section-header { margin-bottom: 48px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26,111,212,0.14);
}

.card-img-wrap { overflow: hidden; }
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.card:hover img { transform: scale(1.06); }

.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  letter-spacing: -0.2px;
}
.card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}
.card ul li {
  padding: 7px 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  border-bottom: 1px solid #F0F4F8;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card ul li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.card ul li:last-child { border-bottom: none; }

/* ===== PRODUCTION ===== */
.production {
  background: linear-gradient(145deg, #EDF5FF 0%, #F8FBFF 45%, #EDF9F6 100%);
  position: relative;
  overflow: hidden;
}
.production::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse at 18% 45%, rgba(59,130,246,0.22)  0%, transparent 52%),
    radial-gradient(ellipse at 82% 52%, rgba(20,184,166,0.20)  0%, transparent 50%),
    radial-gradient(ellipse at 50% 8%,  rgba(139,92,246,0.14)  0%, transparent 48%),
    radial-gradient(ellipse at 90% 14%, rgba(59,130,246,0.14)  0%, transparent 42%),
    radial-gradient(ellipse at 8%  88%, rgba(6,182,212,0.14)   0%, transparent 46%),
    radial-gradient(ellipse at 66% 90%, rgba(20,184,166,0.12)  0%, transparent 44%);
  animation: lightFloat 14s ease-in-out infinite alternate;
}
.production::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,111,212,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,111,212,0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 25%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 50%, black 25%, transparent 75%);
}
.production > .container {
  position: relative;
  z-index: 2;
}
.production h2 { color: var(--text); }
.production .section-label { color: var(--primary); }
.production > .container > p { color: var(--text-muted); }

.steps {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
}
.step {
  flex: 1;
  min-width: 130px;
  text-align: center;
  position: relative;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(26,111,212,0.12);
  border-radius: var(--radius);
  padding: 28px 16px 24px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}
.step:hover {
  background: rgba(255,255,255,0.95);
  transform: translateY(-4px);
  border-color: rgba(26,111,212,0.4);
  box-shadow: var(--shadow);
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem; color: white;
  margin: 0 auto 14px;
  box-shadow: 0 0 24px rgba(26,111,212,0.45);
}
.step-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

/* ===== CERTS ===== */
.certs { background: white; }
.certs p { margin-bottom: 0; }

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.cert-card {
  padding: 28px 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  text-align: center;
  background: var(--surface-2);
  transition: all 0.27s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cert-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
  z-index: 2;
}
.cert-icon { width: 112px; height: 112px; object-fit: contain; display: block; margin: 0 auto 12px; mix-blend-mode: multiply; }
.cert-card h4 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.cert-card p  { font-size: 0.8rem; color: var(--text-muted); max-width: none; }

.cert-btn-more {
  display: block;
  width: 100%;
  margin-top: auto;
  padding-top: 16px;
  padding: 11px 16px;
  min-height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.25s;
  font-family: inherit;
  box-shadow: 0 3px 12px var(--primary-glow);
}
.cert-btn-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

/* Hover-превью сертификата */
.cert-preview {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(248,251,255,0.97) 0%, rgba(235,245,255,0.97) 100%);
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 14px;
  opacity: 0;
  transition: opacity 0.32s ease;
  text-align: center;
}
.cert-card .cert-preview { display: none; }

.cert-prev-stamp {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 2px;
  box-shadow: 0 4px 16px rgba(26,111,212,0.32);
}
.cert-prev-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cert-prev-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.cert-prev-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 130px;
}
.cert-prev-seal {
  margin-top: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-top: 1px solid rgba(26,111,212,0.18);
  padding-top: 7px;
  width: 100%;
}

/* ===== CERT OVERLAY ===== */
.cert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,13,30,0.55);
  z-index: 1999;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.cert-overlay[hidden] { display: none; }

/* ===== CERT POPUP ===== */
.cert-popup {
  position: fixed;
  z-index: 2000;
  width: min(440px, calc(100vw - 32px));
  height: min(580px, 85vh);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.32);
  border: 1.5px solid var(--border);
  display: none;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
}
.cert-popup[aria-hidden="false"] { display: flex; }
.cert-popup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  flex-shrink: 0;
}
.cert-popup-bar span {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cert-popup-x {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s;
  touch-action: manipulation;
  flex-shrink: 0;
}
.cert-popup-x:hover { background: var(--surface-2); }
.cert-popup-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f6fa;
}
.cert-popup-body iframe { width: 100%; height: 100%; border: none; display: block; }
.cert-popup-body img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

/* ===== WHY US ===== */
.why {
  background: linear-gradient(145deg, #EDF5FF 0%, #F8FBFF 45%, #EDF9F6 100%);
  position: relative;
  overflow: hidden;
}
.why::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse at 18% 45%, rgba(59,130,246,0.22)  0%, transparent 52%),
    radial-gradient(ellipse at 82% 52%, rgba(20,184,166,0.20)  0%, transparent 50%),
    radial-gradient(ellipse at 50% 8%,  rgba(139,92,246,0.14)  0%, transparent 48%),
    radial-gradient(ellipse at 90% 14%, rgba(59,130,246,0.14)  0%, transparent 42%),
    radial-gradient(ellipse at 8%  88%, rgba(6,182,212,0.14)   0%, transparent 46%),
    radial-gradient(ellipse at 66% 90%, rgba(20,184,166,0.12)  0%, transparent 44%);
  animation: lightFloat 14s ease-in-out infinite alternate;
}
.why::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,111,212,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,111,212,0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 25%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 50%, black 25%, transparent 75%);
}
.why > .container { position: relative; z-index: 2; }
.why h2          { color: var(--text); }
.why .section-label { color: var(--primary); }
.why > .container > p { color: var(--text-muted); max-width: 560px; }

.advantages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(161px, 1fr));
  gap: 14px;
  margin-top: 48px;
  position: relative;
  z-index: 3;
}
.adv {
  background: rgba(255,255,255,0.75);
  border: 1.5px solid var(--border);
  padding: 18px 12px;
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.adv:hover {
  background: #fff;
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: var(--primary);
}
.adv-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}

/* ===== CONTACTS ===== */
.contacts { background: var(--surface-2); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
  margin-top: 48px;
}
.contact-card {
  background: white;
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
}
.contact-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #F0F4F8;
}
.contact-info-item:last-child { border-bottom: none; }
.contact-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-item p { margin: 0; font-size: 0.9rem; color: var(--text); }

.contact-card form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
}
.contact-card form input,
.contact-card form textarea {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid #E2EAF4;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface-2);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: inherit;
}
.contact-card form input:focus,
.contact-card form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: white;
}

.muted { color: var(--text-muted); font-size: 0.8rem; margin-top: 12px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  border-top: none;
  padding: 28px 0;
  margin-top: 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.38);
  font-size: 0.86rem;
}
.footer-links a {
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.8); }

/* ===== MODAL ===== */
.modal {
  position: fixed; inset: 0;
  background: rgba(4,13,30,0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}
.modal[aria-hidden="false"] { display: flex; }

.modal-panel {
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  box-shadow: 0 40px 100px rgba(0,0,0,0.32);
  position: relative;
}
.modal-panel h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 22px; color: var(--text); }

.modal-close {
  position: absolute; right: 14px; top: 14px;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1.5px solid #E2EAF4;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  line-height: 1;
  touch-action: manipulation;
}
.modal-close:hover { background: var(--surface-2); border-color: var(--primary); }

.modal form label {
  display: flex; flex-direction: column; gap: 5px;
  margin-bottom: 14px;
  font-size: 0.83rem; font-weight: 600; color: var(--text-muted);
}
.modal input, .modal textarea {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid #E2EAF4;
  border-radius: 10px;
  font-size: 0.9rem; color: var(--text);
  background: var(--surface-2);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none; font-family: inherit;
}
.modal input:focus, .modal textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: white;
}

/* ===== CATEGORIES ===== */
.categories { display: flex; flex-direction: column; gap: 24px; }

.category-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
}

.category-preview {
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: 280px;
}

.category-img { position: relative; overflow: hidden; }
.category-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.category-card:hover .category-img img { transform: scale(1.04); }

.category-info {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-badge {
  display: inline-block;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  width: fit-content;
}

.category-info h3 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  margin: 0 0 12px;
  line-height: 1.2;
}

.category-info p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 26px;
}

.btn-category {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  touch-action: manipulation;
  border: none;
  padding: 14px 24px;
  min-height: 52px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  transition: all 0.25s;
  box-shadow: 0 4px 20px var(--primary-glow);
  font-family: inherit;
}
.btn-category:hover { transform: translateY(-2px); box-shadow: 0 10px 32px var(--primary-glow); }

.cat-arrow {
  font-size: 1rem;
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.2,0.9,0.2,1);
}
.btn-category.open .cat-arrow { transform: rotate(180deg); }

/* Products grid (inside category) */
.category-products {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.2,0,0.2,1);
}
.category-products.open {
  max-height: 3000px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.category-products.open-done {
  overflow: visible;
  position: relative;
  z-index: 2;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 28px;
}

.prod-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s;
}
.prod-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(26,111,212,0.15);
}

.prod-img-wrap {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  touch-action: manipulation;
}
.prod-img-wrap img {
  width: 100%; height: 155px;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}

.prod-img-overlay {
  position: absolute; inset: 0;
  background: rgba(8,23,52,0.58);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.prod-img-overlay span {
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1.5px solid rgba(255,255,255,0.65);
  padding: 7px 16px;
  border-radius: 100px;
}
/* Hover-эффект только на устройствах с настоящим hover (мышь/тачпад) */
@media (hover: hover) {
  .prod-img-wrap:hover img { transform: scale(1.07); }
  .prod-img-wrap:hover .prod-img-overlay { opacity: 1; }
}
/* На тач-устройствах: маленький значок "нажмите" поверх фото */
@media (hover: none) {
  .prod-img-wrap::after {
    content: 'ℹ';
    position: absolute;
    top: 8px; right: 8px;
    width: 26px; height: 26px;
    background: rgba(255,255,255,0.88);
    color: var(--primary);
    font-size: 0.95rem;
    font-style: normal;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    line-height: 1;
    padding-top: 1px;
  }
}

.prod-info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prod-density-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  width: fit-content;
}
.prod-info h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}
.prod-info .btn-ghost {
  margin-top: 2px;
  font-size: 0.8rem;
  padding: 8px 12px;
}

/* ===== CHARACTERISTICS MODAL ===== */
.char-modal-panel { max-width: 560px; }

.char-density-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.char-modal-panel h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 22px;
  line-height: 1.35;
}

.char-specs {
  display: grid;
  gap: 1px;
  background: #dde8f4;
  border: 1px solid #dde8f4;
  border-radius: 14px;
  overflow: hidden;
}
.char-spec-row {
  display: grid;
  grid-template-columns: 175px 1fr;
  background: white;
}
.char-spec-key {
  padding: 11px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
  border-right: 1px solid #dde8f4;
}
.char-spec-val {
  padding: 11px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

/* ===== REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2,0.9,0.2,1), transform 0.7s cubic-bezier(0.2,0.9,0.2,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ===== CHAT WIDGET ===== */
.chat-widget {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.chat-fab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  padding: 14px 22px 14px 18px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: inherit;
  box-shadow: 0 8px 32px rgba(26,111,212,0.42);
  transition: all 0.3s cubic-bezier(0.2,0.9,0.3,1);
  letter-spacing: 0.2px;
  animation: fabFloat 3s ease-in-out infinite;
}
.chat-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(26,111,212,0.52);
  animation: none;
}
@keyframes fabFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

.chat-fab-badge {
  position: absolute;
  top: -7px; right: -7px;
  width: 20px; height: 20px;
  background: #FF4444;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  animation: badgePulse 2s ease-in-out infinite;
}
.chat-fab-badge[hidden] { display: none; }
@keyframes badgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,68,68,0.5); }
  50%       { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(255,68,68,0); }
}

.chat-panel {
  width: 360px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 64px rgba(14,38,68,0.18), 0 0 0 1px rgba(26,111,212,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 530px;
  transform: scale(0.92) translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.2,0.9,0.3,1), opacity 0.28s ease;
  transform-origin: bottom right;
}
.chat-panel[aria-hidden="false"] {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.chat-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.28);
}
.chat-name   { font-size: 0.88rem; font-weight: 700; color: white; }
.chat-status {
  font-size: 0.71rem;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
  display: flex; align-items: center; gap: 5px;
}
.chat-status::before {
  content: '';
  width: 6px; height: 6px;
  background: #4AE68A;
  border-radius: 50%;
  display: inline-block;
  animation: dotPulse 2s infinite;
}
.chat-close {
  background: rgba(255,255,255,0.15);
  border: none; color: white;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; line-height: 1;
  touch-action: manipulation;
  flex-shrink: 0;
}
.chat-close:hover { background: rgba(255,255,255,0.28); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  min-height: 180px;
}
.chat-msg { display: flex; max-width: 86%; }
.chat-msg.bot  { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }

.msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.855rem;
  line-height: 1.58;
  white-space: pre-wrap;
}
.chat-msg.bot  .msg-bubble {
  background: var(--surface-2);
  color: var(--text);
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(26,111,212,0.08);
}
.chat-msg.user .msg-bubble {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-typing {
  padding: 2px 20px 10px;
  display: none;
  gap: 5px;
  align-items: center;
  flex-shrink: 0;
}
.chat-typing.visible { display: flex; }
.typing-dot {
  width: 7px; height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0);   opacity: 0.38; }
  30%            { transform: translateY(-7px); opacity: 1; }
}

.chat-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  border-top: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  border: 1.5px solid #E2EAF4;
  border-radius: 22px;
  padding: 9px 16px;
  font-size: 0.86rem;
  color: var(--text);
  outline: none;
  font-family: inherit;
  background: var(--surface-2);
  transition: border-color 0.2s, background 0.2s;
}
.chat-input:focus { border-color: var(--primary); background: white; }
.chat-send {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s;
  box-shadow: 0 4px 14px rgba(26,111,212,0.32);
  touch-action: manipulation;
}
.chat-send:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(26,111,212,0.44); }

.chat-footer {
  padding: 8px 13px 14px;
  flex-shrink: 0;
}
.chat-tg-btn {
  width: 100%;
  background: linear-gradient(135deg, #2AABEE, #0088CC);
  color: white; border: none;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 0.86rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(0,136,204,0.28);
}
.chat-tg-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,136,204,0.42); }

@media(max-width: 420px) {
  .chat-widget     { bottom: 16px; right: 14px; }
  .chat-panel      { width: calc(100vw - 28px); max-height: 78vh; }
  .chat-fab-label  { display: none; }
  .chat-fab        { padding: 15px; }
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(26,111,212,0.06);
  border: 1px solid rgba(26,111,212,0.14);
  border-radius: 100px;
  padding: 4px;
  flex-shrink: 0;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 10px 14px;
  min-height: 44px;
  border-radius: 100px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  touch-action: manipulation;
}
.lang-btn:hover {
  color: var(--primary);
  background: rgba(26,111,212,0.08);
}
.lang-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(26,111,212,0.32);
}

@media(max-width:640px) {
  .lang-switcher { padding: 3px; gap: 2px; }
  .lang-btn      { padding: 10px 10px; font-size: 0.7rem; }
}

/* ===== HAMBURGER NAV TOGGLE ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  transition: background 0.2s;
  touch-action: manipulation;
}
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== RESPONSIVE ===== */

/* Tablet wide — shrink category image column */
@media(max-width:1100px) {
  .category-preview { grid-template-columns: 280px 1fr; }
}

/* Tablet — collapse main layout */
@media(max-width:900px) {
  /* Nav → mobile drawer */
  .nav-toggle   { display: flex; }
  .nav {
    display: none;
    position: fixed;
    top: 65px; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    flex-direction: column;
    padding: 16px 20px 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(26,111,212,0.10);
    box-shadow: 0 12px 40px rgba(14,38,68,0.12);
    z-index: 99;
  }
  .nav.open { display: flex; }
  .nav a {
    margin-left: 0;
    padding: 14px 16px;
    min-height: 48px;
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text);
    transition: background 0.2s, color 0.2s;
    touch-action: manipulation;
  }
  .nav a:hover { background: var(--surface-2); color: var(--primary); }
  .nav a.btn-outline {
    margin-top: 8px;
    text-align: center;
    display: block;
  }

  /* Layout */
  .hero-inner       { flex-direction: column; gap: 40px; padding: 70px 0 60px; }
  .hero-image       { width: 100%; max-width: 520px; margin: 0 auto; }
  .about-inner      { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid     { grid-template-columns: 1fr; }
  .steps            { gap: 10px; }
  .category-preview { grid-template-columns: 1fr; }
  .category-img     { height: 240px; }
  .category-info    { padding: 28px 24px; }
}

/* Phone landscape / small tablet */
@media(max-width:640px) {
  .section { padding: 64px 0; }

  /* Hero */
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-badge { font-size: 0.68rem; padding: 5px 13px; }

  /* About */
  .about-list { grid-template-columns: 1fr; }

  /* Catalog */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 18px;
  }

  /* Certs & advantages */
  .certs-grid   { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .advantages   { grid-template-columns: repeat(2, 1fr); }

  /* Char modal spec table */
  .char-spec-row { grid-template-columns: 120px 1fr; }

  /* Modal */
  .modal-panel  { padding: 24px 18px; }

  /* Footer */
  .footer-inner   { flex-direction: column; gap: 10px; text-align: center; }
  .footer-links a { margin: 0 8px; }
}

/* Phone portrait */
@media(max-width:420px) {
  .container { padding: 0 14px; }

  /* Hero */
  .hero h1 { letter-spacing: -0.5px; }
  .hero-stat .num { font-size: 1.6rem; }

  /* Catalog — single column */
  .products-grid { grid-template-columns: 1fr; padding: 14px; }

  /* Steps — vertical */
  .steps { flex-direction: column; }
  .step  { min-width: unset; flex: none; }

  /* Char modal */
  .char-spec-row { grid-template-columns: 100px 1fr; }
  .char-spec-key, .char-spec-val { font-size: 0.78rem; padding: 9px 12px; }

  /* Certs — 1 column */
  .certs-grid { grid-template-columns: 1fr; }
}
