
/* Langan Quick Connectors — landing page styles */

:root {
  --bg: #ffffff;
  --bg-soft: #f3f6fa;
  --bg-panel: #eaf0f7;
  --ink: #0d2849;
  --ink-2: #2a3a52;
  --muted: #5b6b85;
  --line: #d4dde9;
  --line-soft: #e4eaf2;
  /* Корпоративный Langan: тёмно-синий + бирюзовый + оранжевый */
  --brand: #1c4587;            /* основной — тёмно-синий из логотипа */
  --brand-2: #143565;          /* затемнённый для hover */
  --brand-soft: #e6edf7;       /* подложки */
  --teal: #2eb5a8;             /* бирюзовый акцент из логотипа */
  --teal-2: #228d83;           /* hover бирюзового */
  --teal-soft: #d8f2ef;        /* подложки бирюзового */
  --orange: #f5a623;           /* оранжевый CTA из меню */
  --orange-2: #d88c11;         /* hover оранжевого */
  --steel: #6b7a92;
  --accent: #2eb5a8;           /* акцент = бирюзовый */
  --good: #0b8a4f;
  --warn: #c97a16;
  --grid-line: rgba(28, 69, 135, 0.06);
  --shadow-sm: 0 1px 2px rgba(13, 40, 73, 0.04);
  --shadow-md: 0 4px 16px rgba(13, 40, 73, 0.06);
  --shadow-lg: 0 12px 40px rgba(13, 40, 73, 0.08);
  --radius: 6px;
  --radius-lg: 12px;
}

[data-theme="graphite"] {
  --bg: #f7f6f3;
  --bg-soft: #efece5;
  --bg-panel: #e9e5db;
  --ink: #1a1a1a;
  --ink-2: #2e2e2e;
  --muted: #6e6a5e;
  --line: #d6d1c2;
  --line-soft: #e3dfd1;
  --brand: #c2410c;
  --brand-2: #9a3309;
  --brand-soft: #fdebd9;
  --steel: #6e6a5e;
  --accent: #c2410c;
  --grid-line: rgba(194, 65, 12, 0.06);
}

[data-theme="dark"] {
  --bg: #0a0e1a;
  --bg-soft: #111726;
  --bg-panel: #182037;
  --ink: #f0f4fb;
  --ink-2: #c8d2e3;
  --muted: #8a99b5;
  --line: #243150;
  --line-soft: #1c2640;
  --brand: #4a8aff;
  --brand-2: #6ba0ff;
  --brand-soft: #1a2a4d;
  --steel: #6b7a92;
  --accent: #4a8aff;
  --grid-line: rgba(74, 138, 255, 0.08);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: 'Manrope', 'Inter', system-ui, sans-serif; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); margin: 0; }
.mono { font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace; font-feature-settings: 'ss01', 'ss02'; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
}

/* ====== TOP BAR ====== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand) 50%, var(--teal) 100%);
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.brand-name { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 14px; color: var(--ink-2); transition: color .15s; }
.nav a:hover { color: var(--brand); }

/* Бургер-кнопка — скрыта на десктопе */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
  z-index: 51;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform .25s, opacity .2s;
  transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное выезжающее меню */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  z-index: 9990;
}
.mobile-menu-backdrop.open { opacity: 1; pointer-events: auto; }
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--bg);
  z-index: 9991;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,.1,.2,1);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 88px 24px 24px;
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-size: 17px;
  color: var(--ink);
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-soft);
  transition: color .15s;
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a:hover { color: var(--brand); }
.mobile-menu a.btn { border-bottom: none; padding: 14px 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  border: 1px solid transparent;
  transition: all .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
/* Оранжевая CTA — для главного действия (Связаться/Запросить расчёт) */
.btn-cta { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-cta:hover { background: var(--orange-2); border-color: var(--orange-2); }
/* Бирюзовая — для второстепенных позитивных действий */
.btn-teal { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-teal:hover { background: var(--teal-2); border-color: var(--teal-2); }

/* ====== HERO ====== */
.hero {
  position: relative;
  padding: 80px 40px 100px;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 40%, black 30%, transparent 80%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; color: var(--brand);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 12px; border: 1px solid var(--brand-soft);
  background: var(--brand-soft); border-radius: 999px;
  margin-bottom: 20px;
}
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--brand); border-radius: 50%; }
.hero h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--brand); }
.hero p.lede {
  font-size: 18px; line-height: 1.55; color: var(--ink-2);
  max-width: 520px; margin: 0 0 32px;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto);
  gap: 40px; margin: 36px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.stat-num { font-family: 'Manrope', sans-serif; font-size: 32px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* HERO TECH ILLUSTRATION */
.hero-tech {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin-left: auto;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-tech-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
}
.hero-tech-label {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ====== SECTIONS GENERIC ====== */
.section { padding: 100px 40px; border-bottom: 1px solid var(--line-soft); overflow-x: hidden; }
.section-head { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; margin-bottom: 56px; align-items: end; }
.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 12px;
}
.section h2 {
  font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 600;
  text-wrap: balance;
}
.section-desc { font-size: 16px; color: var(--ink-2); line-height: 1.6; max-width: 540px; }

/* ====== О КОМПАНИИ ====== */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.about-stat { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.about-stat:nth-child(2n) { border-right: none; }
.about-stat:nth-last-child(-n+2) { border-bottom: none; }
.about-stat .num { font-family: 'Manrope', sans-serif; font-size: 36px; font-weight: 700; color: var(--brand); letter-spacing: -0.02em; }
.about-stat .lbl { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

/* ====== ADVANTAGES ====== */
.advantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.advantage { padding: 32px 28px; background: var(--bg); border-right: 1px solid var(--line); transition: background .2s; }
.advantage:last-child { border-right: none; }
.advantage:hover { background: var(--bg-soft); }
.advantage-num { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--brand); margin-bottom: 16px; letter-spacing: 0.1em; }
.advantage-title { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.advantage-desc { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* ====== SELECTOR / CATALOG ====== */
.selector-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 13px; color: var(--ink-2);
  transition: all .15s; cursor: pointer;
}
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; opacity: 0.6;
}
.chip.active .count { opacity: 0.8; }

.filter-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding: 16px 20px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 24px; }
.filter-group { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.filter-label { color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.range-input { width: 160px; }
.filter-value { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink); min-width: 80px; }

.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all .2s ease;
  cursor: pointer;
  display: flex; flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-soft) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.product-card:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card:hover::before { opacity: 1; }
.product-card > * { position: relative; z-index: 1; }

.product-card-head { display: flex; align-items: flex-start; justify-content: space-between; }
.product-id { font-family: 'Manrope', sans-serif; font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.product-icon-wrap {
  width: 56px; height: 56px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--brand);
  flex-shrink: 0;
  overflow: hidden;
}
.product-icon-wrap.has-photo {
  width: 88px; height: 72px;
  padding: 4px;
  background: linear-gradient(135deg, var(--brand) 0%, #2a6fc4 50%, var(--teal) 100%);
  border-color: rgba(28, 69, 135, 0.3);
}
.product-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Drawer hero — фото или иконка крупно */
.drawer-hero {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
  display: grid;
  place-items: center;
  min-height: 200px;
  color: var(--brand);
  overflow: hidden;
}
.drawer-hero.has-photo {
  padding: 24px;
  min-height: 280px;
  background: linear-gradient(135deg, var(--brand) 0%, #2a6fc4 50%, var(--teal) 100%);
  border-color: rgba(28, 69, 135, 0.3);
}
.drawer-hero img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  display: block;
}

/* Drawer video */
.drawer-video {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}
.drawer-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-title { font-size: 14px; color: var(--ink-2); line-height: 1.4; min-height: 40px; }
.product-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.product-spec { display: flex; flex-direction: column; gap: 2px; }
.product-spec-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-family: 'JetBrains Mono', monospace; }
.product-spec-value { font-size: 13px; color: var(--ink); font-weight: 500; }
.product-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; padding: 4px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
}

/* DETAIL DRAWER */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 22, 40, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 560px; max-width: 90vw;
  background: var(--bg);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,.1,.2,1);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  will-change: transform;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  position: sticky; top: 0;
  background: var(--bg);
  z-index: 2;
}
.drawer-id { font-family: 'Manrope', sans-serif; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.drawer-close {
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-2);
  display: grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}
.drawer-close:hover { background: var(--bg-soft); }
.drawer-body { padding: 28px; }
.drawer-section { margin-bottom: 28px; }
.drawer-section-title { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; }
.drawer-spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { padding-left: 24px; position: relative; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.feature-list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 12px; height: 8px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }

/* ====== APPLICATIONS ====== */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app-card { padding: 28px; background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 14px; transition: all .2s; }
.app-card:hover { border-color: var(--brand); background: var(--bg); }
.app-icon { width: 40px; height: 40px; color: var(--brand); }
.app-title { font-size: 18px; font-weight: 600; }
.app-desc { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.app-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.app-tag { font-size: 11px; padding: 3px 9px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }

/* ====== TECH SPECS ====== */
.spec-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table thead { background: var(--bg-soft); }
.spec-table th { text-align: left; padding: 14px 16px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); font-family: 'JetBrains Mono', monospace; }
.spec-table td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
.spec-table tr:hover { background: var(--bg-soft); cursor: pointer; }
.spec-table .id { font-family: 'Manrope', sans-serif; font-weight: 600; color: var(--ink); }
.spec-table .pressure { font-family: 'JetBrains Mono', monospace; }

.pressure-bar { display: flex; align-items: center; gap: 8px; }
.pressure-bar-track { flex: 1; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; max-width: 80px; }
.pressure-bar-fill { height: 100%; background: var(--brand); border-radius: 2px; }

/* ====== CONTACT ====== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; padding-top: 100px; padding-bottom: 100px; }
.contact > * { min-width: 0; }
.contact h2 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px; text-wrap: balance; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-row { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.contact-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-family: 'JetBrains Mono', monospace; padding-top: 2px; }
.contact-value { font-size: 15px; color: var(--ink); word-break: break-word; }
.contact-form { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 16px; min-width: 0; max-width: 100%; }
.form-row { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-row label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.form-row input, .form-row textarea, .form-row select {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; font: inherit; color: var(--ink); transition: border-color .15s;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 15px;
  -webkit-appearance: none;
  appearance: none;
}
.form-row select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%235b6b85' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--brand); }
.form-row textarea { resize: vertical; min-height: 100px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* === НОВОСТИ === */
.news { position: relative; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.news-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.news-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--brand), var(--teal));
  opacity: 0;
  transition: opacity .25s;
}
.news-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.news-card:hover::before { opacity: 1; }
.news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.news-card-date {
  font-size: 12px;
  color: var(--muted);
}
.news-card-tag {
  font-size: 11px;
  padding: 4px 10px;
  background: var(--teal-soft);
  color: var(--teal-2);
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}
.news-card-title {
  font-family: 'Manrope', sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.news-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}

/* === ПРИКРЕПЛЕНИЕ ФАЙЛОВ === */
.file-dropzone {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  background: var(--bg);
  transition: border-color .2s, background .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.file-dropzone:hover {
  border-color: var(--brand);
  background: var(--bg-soft);
}
.file-dropzone.drag-over {
  border-color: var(--brand);
  background: rgba(11, 95, 255, 0.04);
  border-style: solid;
}
.file-dropzone-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--brand);
  line-height: 1;
}
.file-dropzone.drag-over .file-dropzone-icon {
  background: var(--brand);
  color: white;
}
.file-dropzone-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.file-dropzone-text strong {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.file-dropzone-text span {
  font-size: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.file-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 4px 8px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  flex-wrap: wrap;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 6px;
  transition: background .15s;
  min-width: 0;
}
.file-item:hover { background: var(--bg-soft); }
.file-item-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 20px;
}
.file-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.file-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.file-item-name {
  font-size: 13px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.file-item-size {
  font-size: 11px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.file-item-remove {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.file-item-remove:hover { background: rgba(220, 38, 38, 0.08); color: rgb(220, 38, 38); }

/* Ошибки и статусы формы */
.form-error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: rgb(180, 30, 30);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
}

/* Спиннер для кнопки */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-right: 8px;
  vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Success экран */
.form-success {
  grid-column: 1 / -1;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(11, 95, 255, 0.1);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Теги подключений в drawer */
.conn-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 100px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ====== FOOTER ====== */
.footer { padding: 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }

/* ====== UTILITIES ====== */
.fade-up { animation: fadeUp .6s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .section-head { grid-template-columns: 1fr; }
  .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid, .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .topbar-cta { display: none; }
  .burger { display: flex; }
}

/* ===================== MOBILE OPTIMIZATION ===================== */
@media (max-width: 700px) {
  /* Контейнер и базовая типографика */
  html, body { font-size: 15px; }
  .page { max-width: 100%; }

  /* Хиро */
  .hero { padding: 48px 20px 56px; }
  .hero h1 { font-size: 30px; line-height: 1.15; }
  .hero .lede { font-size: 15px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; padding: 14px 20px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero-stats .stat-num { font-size: 22px; }

  /* Секции */
  .section { padding: 56px 20px; }
  .section h2 { font-size: 26px; line-height: 1.2; }
  .section-head { margin-bottom: 32px; gap: 16px; }
  .section-desc { font-size: 15px; }

  /* Топбар */
  .topbar {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
  }
  [data-theme="graphite"] .topbar { background: rgba(247, 246, 243, 0.92); }
  [data-theme="dark"] .topbar { background: rgba(10, 14, 26, 0.85); }
  .topbar .btn { padding: 8px 12px; font-size: 12px; }
  .brand-name { font-size: 14px; }
  .brand-sub { display: none; }
  .brand-mark { width: 28px; height: 28px; font-size: 13px; }

  /* Сетки */
  .catalog-grid, .apps-grid, .advantages-grid { grid-template-columns: 1fr; gap: 12px; }
  .news-grid { grid-template-columns: 1fr; gap: 12px; }
  .news-card { padding: 20px; }
  .news-card-title { font-size: 17px; }
  .about-stats { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .contact { padding-top: 48px; padding-bottom: 48px; }
  .footer { padding: 20px; flex-direction: column; gap: 10px; align-items: flex-start; text-align: left; font-size: 12px; }

  /* Форма — мобильная адаптация */
  .contact-form {
    padding: 20px;
    gap: 14px;
  }
  .form-row input,
  .form-row textarea,
  .form-row select {
    /* iOS Safari зумит, если font-size < 16px при фокусе на input */
    font-size: 16px;
    padding: 12px 14px;
    min-height: 44px;
  }
  .form-row textarea {
    min-height: 120px;
  }
  .form-row label { font-size: 11px; }
  .contact-info { margin-top: 24px !important; }
  .contact-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 0;
  }
  .contact-label { padding-top: 0; }

  /* Прикрепление файлов — компактнее на мобильном */
  .file-dropzone { padding: 18px 12px; }
  .file-dropzone-icon { width: 36px; height: 36px; font-size: 20px; }
  .file-dropzone-text strong { font-size: 13px; }
  .file-item-name { font-size: 12px; }
  .form-success { padding: 40px 24px; }

  /* Сводная таблица — горизонтальный скролл на мобильном */
  .spec-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Подсказка-градиент справа: "тут можно скроллить" */
    background:
      linear-gradient(to right, var(--bg) 30%, rgba(255,255,255,0)) left center / 20px 100% no-repeat,
      linear-gradient(to left, var(--bg) 30%, rgba(255,255,255,0)) right center / 20px 100% no-repeat,
      radial-gradient(farthest-side at 0 50%, rgba(10,22,40,0.12), rgba(0,0,0,0)) left center / 12px 100% no-repeat,
      radial-gradient(farthest-side at 100% 50%, rgba(10,22,40,0.12), rgba(0,0,0,0)) right center / 12px 100% no-repeat;
    background-attachment: local, local, scroll, scroll;
  }
  .spec-table {
    min-width: 720px;
    font-size: 12px;
  }
  .spec-table th,
  .spec-table td {
    padding: 12px 14px;
    white-space: nowrap;
  }

  /* Карточки продуктов — увеличиваем тач-зоны */
  .product-card { padding: 20px; }
  .product-id { font-size: 24px; }
  .product-icon-wrap.has-photo {
    width: 80px;
    height: 64px;
  }

  /* Drawer hero на мобильном — не такой высокий */
  .drawer-hero.has-photo {
    min-height: 180px;
    padding: 12px;
  }
  .drawer-hero img { max-height: 220px; }

  /* Фильтры — лучшая раскладка на узких экранах */
  .selector-bar { gap: 8px; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 4px; margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .selector-bar::-webkit-scrollbar { display: none; }
  .selector-bar { scrollbar-width: none; }
  .chip { white-space: nowrap; flex-shrink: 0; padding: 10px 14px; font-size: 13px; }
  .filter-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .filter-row > div:last-child { margin-left: 0 !important; text-align: right; }
  .filter-group { flex-wrap: wrap; gap: 10px; }

  /* Tweaks-панель компактнее */
  .tweaks-panel { right: 8px; bottom: 8px; }

  /* Кнопки и ссылки — комфортные тач-зоны (минимум 44px) */
  .btn { min-height: 44px; }

  /* DRAWER на мобильном — bottom sheet почти на весь экран */
  .drawer {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 92vh;
    max-height: 92vh;
    border-left: none;
    border-top: 1px solid var(--line);
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    /* Маркер-полоска сверху для понимания "это можно закрыть свайпом" */
  }
  .drawer.open { transform: translateY(0); }
  .drawer::before {
    content: '';
    position: sticky;
    top: 0;
    display: block;
    width: 36px;
    height: 4px;
    background: var(--line);
    border-radius: 2px;
    margin: 8px auto 0;
    flex-shrink: 0;
  }
  .drawer-head {
    padding: 12px 20px 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .drawer-head > div:first-child { padding-right: 50px; }
  .drawer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
  }
  .drawer-id { font-size: 26px; }
  .drawer-body { padding: 20px; padding-bottom: 32px; }
  .drawer-section { margin-bottom: 24px; }
  .drawer-spec-list { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
}

/* Очень узкие экраны */
@media (max-width: 380px) {
  .hero h1 { font-size: 26px; }
  .section h2 { font-size: 22px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats > *:last-child { grid-column: 1 / -1; }
  .drawer-spec-list { grid-template-columns: 1fr; }
}

  