:root {
    --bg: #0a1826; --bg-panel: #0f2233; --bg-card: #12283b;
    --line: #1e3a52; --steel: #4a7fa8; --amber: #f0a830;
    --amber-dim: #c88a20; --text: #dce8f2; --text-dim: #8ba6bf; --white: #ffffff;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { background: var(--bg); color: var(--text);
    font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6; overflow-x: hidden; }
  .mono { font-family: "Consolas", "SF Mono", "Courier New", monospace; }

  .log-strip { position: fixed; top: 0; left: 0; width: 54px; height: 100vh;
    border-right: 1px solid var(--line); background: var(--bg-panel);
    z-index: 50; display: flex; flex-direction: column; align-items: center; padding-top: 14px; }
  .log-strip svg { flex: 1; width: 100%; }
  .log-strip .depth-label { font-size: 8px; color: var(--text-dim);
    writing-mode: vertical-rl; letter-spacing: 3px; padding: 10px 0; text-transform: uppercase; }
  .wrap { margin-left: 54px; }
  @media (max-width: 720px) { .log-strip { width: 32px; } .wrap { margin-left: 32px; } }

  header { position: sticky; top: 0; background: rgba(10, 24, 38, 0.92);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); z-index: 40; }
  nav { max-width: 1120px; margin: 0 auto; padding: 14px 32px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .logo { font-family: "Consolas", monospace; font-size: 20px; font-weight: 700;
    letter-spacing: 1px; color: var(--white); white-space: nowrap; }
  .logo span { color: var(--amber); }
  .nav-links { display: flex; gap: 22px; flex: 1; }
  .nav-links a { color: var(--text-dim); text-decoration: none;
    font-size: 14px; transition: color .2s; white-space: nowrap; }
  .nav-links a:hover { color: var(--amber); }
  @media (max-width: 900px) { .nav-links { display: none; } }

  .lang-switch { display: flex; gap: 4px; background: var(--bg-card);
    border: 1px solid var(--line); border-radius: 5px; padding: 3px; }
  .lang-switch button { background: transparent; border: none; cursor: pointer;
    color: var(--text-dim); font-size: 12px; font-weight: 600;
    padding: 5px 10px; border-radius: 3px; transition: all .2s; font-family: "Consolas", monospace; }
  .lang-switch button.active { background: var(--amber); color: #1a1206; }
  .lang-switch button:hover:not(.active) { color: var(--amber); }

  .hero { max-width: 1120px; margin: 0 auto; padding: 84px 32px 60px; }
  .eyebrow { font-family: "Consolas", monospace; font-size: 13px; letter-spacing: 3px;
    color: var(--amber); text-transform: uppercase; margin-bottom: 20px; }
  .hero h1 { font-size: clamp(36px, 5.5vw, 62px); line-height: 1.06; font-weight: 800;
    color: var(--white); letter-spacing: -1px; margin-bottom: 22px; }
  .hero h1 .accent { color: var(--amber); }
  .hero p.lead { font-size: clamp(16px, 2.2vw, 20px); color: var(--text-dim);
    max-width: 640px; margin-bottom: 34px; }
  .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
  .btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px;
    border-radius: 4px; font-size: 15px; font-weight: 600; text-decoration: none;
    transition: all .2s; cursor: pointer; border: none; }
  .btn-primary { background: var(--amber); color: #1a1206; }
  .btn-primary:hover { background: var(--amber-dim); transform: translateY(-2px); }
  .btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
  .btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

  section { max-width: 1120px; margin: 0 auto; padding: 64px 32px; }
  .section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 40px;
    border-bottom: 1px solid var(--line); padding-bottom: 18px; }
  .section-head .idx { font-family: "Consolas", monospace; font-size: 13px;
    color: var(--amber); letter-spacing: 2px; }
  .section-head h2 { font-size: clamp(24px, 4vw, 36px); color: var(--white);
    font-weight: 700; letter-spacing: -0.5px; }

  .programs { display: grid; grid-template-columns: 1fr; gap: 22px; }
  .prog-card { background: var(--bg-card); border: 1px solid var(--line);
    border-radius: 8px; padding: 30px; display: grid;
    grid-template-columns: auto 1fr auto; gap: 26px; align-items: center;
    transition: border-color .25s, transform .25s; }
  .prog-card:hover { border-color: var(--steel); transform: translateY(-3px); }
  .prog-icon { width: 68px; height: 68px; border-radius: 10px;
    background: linear-gradient(135deg, var(--steel), var(--bg-panel));
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; border: 1px solid var(--line); }
  .prog-info h3 { font-size: 21px; color: var(--white); margin-bottom: 6px; font-weight: 700; }
  .prog-info .ver { font-family: "Consolas", monospace; font-size: 12px; color: var(--amber); margin-bottom: 10px; }
  .prog-info p { color: var(--text-dim); font-size: 15px; max-width: 540px; }
  .prog-tags { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
  .tag { font-family: "Consolas", monospace; font-size: 11px; color: var(--steel);
    border: 1px solid var(--line); padding: 3px 10px; border-radius: 3px; }
  .prog-action { display: flex; flex-direction: column; gap: 10px; }
  @media (max-width: 760px) { .prog-card { grid-template-columns: 1fr; } .prog-action { flex-direction: row; } }
  .prog-card.soon { opacity: 0.6; border-style: dashed; }
  .prog-card.soon .prog-icon { background: var(--bg-panel); }

  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  @media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
  .svc-card { background: var(--bg-card); border: 1px solid var(--line);
    border-radius: 8px; padding: 30px; transition: border-color .25s, transform .25s; }
  .svc-card:hover { border-color: var(--steel); transform: translateY(-3px); }
  .svc-card .svc-icon { width: 56px; height: 56px; border-radius: 10px;
    background: linear-gradient(135deg, var(--steel), var(--bg-panel));
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin-bottom: 18px; border: 1px solid var(--line); }
  .svc-card h3 { font-size: 19px; color: var(--white); margin-bottom: 10px; font-weight: 700; }
  .svc-card p { color: var(--text-dim); font-size: 14px; }
  .svc-card ul { list-style: none; margin-top: 14px; }
  .svc-card ul li { color: var(--text-dim); font-size: 14px; padding: 5px 0 5px 20px; position: relative; }
  .svc-card ul li::before { content: "\25B8"; color: var(--amber); position: absolute; left: 0; }

  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  @media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }
  .about-text p { color: var(--text-dim); margin-bottom: 16px; }
  .about-text strong { color: var(--text); }
  .dev-card { background: var(--bg-panel); border: 1px solid var(--line);
    border-left: 3px solid var(--amber); border-radius: 6px; padding: 28px; }
  .dev-card .dev-name { font-size: 18px; color: var(--white); font-weight: 700; margin-bottom: 6px; }
  .dev-card .dev-role { font-size: 13px; color: var(--amber); font-family: "Consolas", monospace; margin-bottom: 20px; }
  .dev-row { display: flex; align-items: center; gap: 12px; padding: 10px 0;
    border-top: 1px solid var(--line); font-size: 15px; }
  .dev-row .ico { color: var(--steel); font-size: 18px; width: 24px; text-align: center; }
  .dev-row a { color: var(--text); text-decoration: none; }
  .dev-row a:hover { color: var(--amber); }

  .contact-band { background: var(--bg-panel); border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line); margin-top: 40px; }
  .contact-inner { max-width: 1120px; margin: 0 auto; padding: 54px 32px; text-align: center; }
  .contact-inner h2 { font-size: clamp(24px, 4vw, 34px); color: var(--white); margin-bottom: 14px; }
  .contact-inner p { color: var(--text-dim); margin-bottom: 28px; }
  .contact-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

  footer { max-width: 1120px; margin: 0 auto; padding: 32px; display: flex;
    justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
    color: var(--text-dim); font-size: 13px; }
  footer .mono { color: var(--steel); }

  /* ── Новости ── */
  .news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
  .news-card { background: var(--bg-card); border: 1px solid var(--line);
    border-radius: 8px; overflow: hidden; transition: border-color .25s, transform .25s;
    display: flex; flex-direction: column; }
  .news-card:hover { border-color: var(--steel); transform: translateY(-3px); }
  .news-card img { width: 100%; height: 180px; object-fit: cover; display: block;
    border-bottom: 1px solid var(--line); }
  .news-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
  .news-date { font-family: "Consolas", monospace; font-size: 11px;
    color: var(--amber); margin-bottom: 8px; }
  .news-card h3 { font-size: 18px; color: var(--white); margin-bottom: 8px; font-weight: 700; }
  .news-card p { color: var(--text-dim); font-size: 14px; flex: 1; }
  .news-empty { color: var(--text-dim); font-size: 15px; padding: 20px 0; }

  /* ── Карточки товаров с фото ── */
  .prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 24px; }
  .prod-card { background: var(--bg-card); border: 1px solid var(--line);
    border-radius: 8px; overflow: hidden; transition: border-color .25s, transform .25s; }
  .prod-card:hover { border-color: var(--steel); transform: translateY(-3px); }
  .prod-card img { width: 100%; height: 190px; object-fit: cover; display: block;
    background: var(--bg-panel); border-bottom: 1px solid var(--line); }
  .prod-body { padding: 18px; }
  .prod-body h4 { font-size: 16px; color: var(--white); margin-bottom: 6px; font-weight: 700; }
  .prod-body p { color: var(--text-dim); font-size: 13px; margin-bottom: 10px; }
  .prod-price { font-family: "Consolas", monospace; font-size: 14px;
    color: var(--amber); font-weight: 700; }
  .prod-stock { font-size: 11px; color: #88cc88; margin-left: 8px; }
  .prod-stock.out { color: #d88; }

  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
  .reveal.show { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; }
  }
/* ── Многостраничность ── */
.logo { text-decoration: none; }
.nav-links a.active { color: var(--amber); font-weight: 600; }

.page-head { margin-bottom: 40px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.page-head h1 { font-size: clamp(28px, 5vw, 44px); color: var(--white);
  font-weight: 800; letter-spacing: -1px; }

/* Карточки на главной */
.home-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.home-card { background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 10px; padding: 30px; text-decoration: none; display: block;
  transition: border-color .25s, transform .25s; }
.home-card:hover { border-color: var(--amber); transform: translateY(-4px); }
.home-card .hc-icon { width: 60px; height: 60px; border-radius: 12px;
  background: linear-gradient(135deg, var(--steel), var(--bg-panel));
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin-bottom: 18px; border: 1px solid var(--line); }
.home-card h3 { font-size: 21px; color: var(--white); margin-bottom: 8px; font-weight: 700; }
.home-card p { color: var(--text-dim); font-size: 14px; margin-bottom: 16px; }
.home-card .hc-link { font-family: "Consolas", monospace; font-size: 13px;
  color: var(--amber); font-weight: 600; }

/* Мобильное меню */
@media (max-width: 900px) {
  .nav-links { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; }
  .nav-links a { font-size: 13px; }
}

/* ── Категории товаров (кликабельные карточки) ── */
.cat-card { text-decoration: none; display: block; position: relative; }
.cat-card:hover { border-color: var(--amber); }
.cat-count { display: block; font-family: "Consolas", monospace; font-size: 12px;
  color: var(--amber); margin: 12px 0 6px; }
.back-link { display: inline-block; font-size: 14px; color: var(--text-dim);
  text-decoration: none; margin-bottom: 12px; transition: color .2s; }
.back-link:hover { color: var(--amber); }

/* Карточка товара в списке — кликабельная */
a.prod-card { text-decoration: none; display: block; }
.prod-noimg { width: 100%; height: 190px; display: flex; align-items: center;
  justify-content: center; font-size: 48px; background: var(--bg-panel);
  border-bottom: 1px solid var(--line); }

/* ── Страница товара ── */
.prod-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .prod-detail { grid-template-columns: 1fr; } }

.pd-main { width: 100%; border-radius: 10px; border: 1px solid var(--line);
  cursor: zoom-in; display: block; background: var(--bg-panel); }
.pd-noimg { width: 100%; height: 300px; display: flex; align-items: center;
  justify-content: center; font-size: 64px; background: var(--bg-panel);
  border: 1px solid var(--line); border-radius: 10px; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 6px;
  border: 2px solid var(--line); cursor: pointer; transition: border-color .2s; }
.pd-thumb:hover, .pd-thumb.active { border-color: var(--amber); }

.pd-price { font-family: "Consolas", monospace; font-size: 26px;
  color: var(--amber); font-weight: 700; margin-bottom: 8px; }
.pd-stock { font-size: 14px; color: #88cc88; margin-bottom: 20px; }
.pd-stock.out { color: #d88; }
.pd-summary { color: var(--text); font-size: 16px; margin-bottom: 16px; }
.pd-body { color: var(--text-dim); font-size: 15px; margin-bottom: 24px; }
.pd-body p { margin-bottom: 12px; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Лайтбокс (увеличение фото) ── */
.lightbox { position: fixed; inset: 0; background: rgba(5, 12, 20, 0.95);
  display: none; align-items: center; justify-content: center; z-index: 999;
  padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain;
  border-radius: 6px; box-shadow: 0 8px 40px rgba(0,0,0,.6); }
.lb-close { position: absolute; top: 20px; right: 28px; background: none;
  border: none; color: var(--text); font-size: 42px; line-height: 1;
  cursor: pointer; transition: color .2s; }
.lb-close:hover { color: var(--amber); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(15, 34, 51, .8); border: 1px solid var(--line);
  color: var(--text); font-size: 40px; line-height: 1; width: 56px; height: 72px;
  cursor: pointer; border-radius: 6px; transition: all .2s; }
.lb-nav:hover { background: var(--amber); color: #1a1206; border-color: var(--amber); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: "Consolas", monospace; font-size: 14px; color: var(--text-dim); }
@media (max-width: 640px) {
  .lightbox { padding: 12px; }
  .lb-nav { width: 44px; height: 60px; font-size: 32px; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
}

/* Логотип-значок в шапке */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-img { width: 32px; height: 32px; border-radius: 7px; display: block; }

/* Блок презентации */
.pres-block { margin-top: 50px; padding-top: 40px; border-top: 1px solid var(--line); }
.pres-title { font-size: clamp(22px, 3.5vw, 30px); color: var(--white);
  font-weight: 700; margin-bottom: 8px; }
.pres-desc { color: var(--text-dim); font-size: 15px; margin-bottom: 24px; }
.pres-viewer { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px;
  overflow: hidden; border: 1px solid var(--line); background: var(--bg-panel); }
.pres-viewer iframe { width: 100%; height: 100%; border: none; display: block; }
.pres-actions { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .pres-viewer { aspect-ratio: 4 / 3; }
}

/* ── Шапка: правая часть ── */
.nav-right { display: flex; align-items: center; gap: 14px; }
.search-link, .cart-link { text-decoration: none; font-size: 20px; position: relative;
  display: inline-flex; align-items: center; transition: transform .2s; }
.search-link:hover, .cart-link:hover { transform: scale(1.15); }
.cart-badge { position: absolute; top: -8px; right: -10px; background: var(--amber);
  color: #1a1206; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px;
  border-radius: 9px; display: none; align-items: center; justify-content: center;
  padding: 0 4px; font-family: "Consolas", monospace; }
@media (max-width: 900px) { .nav-right { gap: 10px; } }

/* ── Карточка электроники с кнопкой ── */
.prod-link { text-decoration: none; display: block; }
.prod-card .add-cart { width: calc(100% - 36px); margin: 0 18px 18px; padding: 10px;
  background: var(--amber); color: #1a1206; border: none; border-radius: 6px;
  font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s; }
.prod-card .add-cart:hover { background: var(--amber-dim); }
.prod-card .add-cart.added { background: var(--steel); color: #fff; }

/* ── Поиск ── */
.search-box { margin-bottom: 24px; }
#search-input { width: 100%; padding: 16px 20px; font-size: 17px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); font-family: inherit; }
#search-input:focus { outline: none; border-color: var(--amber); }
.search-results { display: flex; flex-direction: column; gap: 12px; }
.search-item { background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 8px; padding: 18px 20px; text-decoration: none; display: block;
  transition: border-color .2s, transform .2s; }
.search-item:hover { border-color: var(--steel); transform: translateX(4px); }
.search-type { font-family: "Consolas", monospace; font-size: 11px; color: var(--amber);
  text-transform: uppercase; letter-spacing: 1px; }
.search-item-title { font-size: 17px; color: var(--white); font-weight: 700; margin: 4px 0; }
.search-item-sum { font-size: 13px; color: var(--text-dim); }

/* ── Корзина ── */
.cart-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.cart-row { display: flex; align-items: center; gap: 16px; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; }
.cart-info { flex: 1; }
.cart-name { font-size: 16px; color: var(--white); font-weight: 600; }
.cart-price { font-family: "Consolas", monospace; font-size: 14px; color: var(--amber); margin-top: 4px; }
.cart-qty { display: flex; align-items: center; gap: 10px; }
.qty-btn { width: 32px; height: 32px; border: 1px solid var(--line); background: var(--bg-panel);
  color: var(--text); font-size: 18px; border-radius: 6px; cursor: pointer; transition: all .2s; }
.qty-btn:hover { border-color: var(--amber); color: var(--amber); }
.qty-num { min-width: 28px; text-align: center; font-size: 16px; color: var(--white);
  font-family: "Consolas", monospace; }
.cart-del { background: none; border: none; color: var(--text-dim); font-size: 18px;
  cursor: pointer; padding: 4px 8px; transition: color .2s; }
.cart-del:hover { color: #d88; }

/* Форма заказа */
.order-form { background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 28px; max-width: 600px; }
.order-form h3 { font-size: 20px; color: var(--white); margin-bottom: 20px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.form-row input, .form-row textarea { width: 100%; padding: 12px 14px; font-size: 15px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 6px;
  color: var(--text); font-family: inherit; resize: vertical; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--amber); }
#send-order { width: 100%; margin-top: 8px; padding: 14px; font-size: 16px; }
.order-note { font-size: 12px; color: var(--text-dim); margin-top: 12px; text-align: center; }

/* ── Раздел "Что мы можем" ── */
.cap-block { margin-top: 54px; padding-top: 40px; border-top: 1px solid var(--line); }
.cap-title { font-size: clamp(24px, 4vw, 32px); color: var(--white); font-weight: 700;
  margin-bottom: 28px; }
.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cap-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px;
  padding: 28px; transition: border-color .25s, transform .25s; }
.cap-card:hover { border-color: var(--steel); transform: translateY(-4px); }
.cap-icon { width: 56px; height: 56px; border-radius: 12px;
  background: linear-gradient(135deg, var(--steel), var(--bg-panel));
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  margin-bottom: 16px; border: 1px solid var(--line); }
.cap-card h3 { font-size: 18px; color: var(--amber); font-weight: 700; margin-bottom: 10px; }
.cap-card p { font-size: 14px; color: var(--text-dim); }
.cap-banner { margin-top: 26px; background: linear-gradient(135deg, var(--amber), var(--amber-dim));
  border-radius: 10px; padding: 24px 30px; text-align: center; }
.cap-banner span { font-size: clamp(16px, 2.5vw, 20px); font-weight: 700; color: #1a1206; }
