/* Пиксельная — фирменный стиль поверх Bootstrap 5 (OpenCart 4) */
:root {
  --px-ink: #12111a;
  --px-ink-2: #1c1b27;
  --px-paper: #faf9f6;
  --px-text: #23222c;
  --px-muted: #6b6a76;
  --px-line: #e7e5df;
  --px-accent: #ff4d2e;
  --px-accent-2: #6c5cff;
  --px-accent-3: #18c29c;
  --px-yellow: #ffc83d;
  --px-radius: 4px;
  --px-font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --px-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--px-font);
  color: var(--px-text);
  background: var(--px-paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--px-accent-2); text-decoration: none; }
a:hover { color: var(--px-accent); }
h1, h2, h3, h4, h5 { color: var(--px-ink); font-weight: 800; letter-spacing: -0.02em; }
#container { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
#alert { position: fixed; top: 80px; right: 16px; z-index: 2000; }

/* ---------- кнопки ---------- */
.px-btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.5em; border: 2px solid var(--px-ink);
  background: var(--px-accent); color: #fff; font-weight: 700;
  border-radius: var(--px-radius); box-shadow: 4px 4px 0 var(--px-ink);
  transition: transform .15s, box-shadow .15s; line-height: 1.2;
}
.px-btn:hover { color: #fff; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--px-ink); }
.px-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--px-ink); }
.px-btn--ghost { background: var(--px-ink); color: #fff; border-color: #fff; box-shadow: 4px 4px 0 var(--px-accent-2); }
.px-btn--ghost:hover { color: #fff; box-shadow: 6px 6px 0 var(--px-accent-2); }
.px-btn--dark { background: var(--px-ink); color: #fff; box-shadow: 4px 4px 0 var(--px-accent); }
.btn-primary {
  background: var(--px-accent); border: 2px solid var(--px-ink); border-radius: var(--px-radius);
  box-shadow: 3px 3px 0 var(--px-ink); font-weight: 700;
}
.btn-primary:hover, .btn-primary:focus { background: var(--px-accent); border-color: var(--px-ink); box-shadow: 5px 5px 0 var(--px-ink); }

/* ---------- логотип ---------- */
.px-logo { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; }
.px-logo:hover { color: #fff; }
.px-logo svg { width: 30px; height: 30px; flex: none; }
.px-logo span b { color: var(--px-accent); }

/* ---------- шапка ---------- */
.px-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(18, 17, 26, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.px-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.px-nav { display: flex; align-items: center; gap: 1.75rem; }
.px-nav a { color: rgba(255, 255, 255, .78); font-weight: 600; font-size: .95rem; }
.px-nav a:hover { color: #fff; }
.px-nav .px-btn { padding: .6em 1.1em; font-size: .9rem; color: #fff; }
.px-burger { display: none; background: none; border: 0; padding: 6px; }
.px-burger i { display: block; width: 24px; height: 3px; background: #fff; margin: 5px 0; }
@media (max-width: 991px) {
  .px-burger { display: block; }
  .px-nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: flex-start; gap: 1rem;
    padding: 1.25rem 1.5rem 1.75rem; background: var(--px-ink);
    border-bottom: 3px solid var(--px-accent);
  }
  .px-nav.is-open { display: flex; }
}

.px-tel { font-family: var(--px-mono); white-space: nowrap; }
.px-tel b { color: var(--px-accent); font-weight: 700; }
@media (min-width: 992px) and (max-width: 1199px) { .px-nav { gap: 1.1rem; } .px-nav .px-tel { display: none; } }

/* ---------- страница 404 ---------- */
.px-404 { background: var(--px-ink); color: rgba(255, 255, 255, .75); padding: 110px 0 120px; position: relative; overflow: hidden; }
.px-404__code { font-family: var(--px-mono); font-size: clamp(5rem, 18vw, 12rem); line-height: 1; font-weight: 800; color: var(--px-accent); letter-spacing: -0.04em; }
.px-404 h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 1.5rem 0 1rem; max-width: 20ch; }
.px-404 p { font-size: 1.15rem; max-width: 34rem; margin-bottom: 2rem; }
.px-404 .px-tel { font-size: 1.6rem; color: #fff; display: inline-block; margin-bottom: 2.5rem; }
.px-404__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- первый экран ---------- */
.px-hero { position: relative; overflow: hidden; background: var(--px-ink); color: #fff; padding: 110px 0 120px; }
.px-hero__grid {
  position: absolute; inset: 0; display: grid;
  grid-template-columns: repeat(auto-fill, 36px); grid-auto-rows: 36px;
  opacity: .9; pointer-events: none;
  -webkit-mask-image: linear-gradient(100deg, rgba(0, 0, 0, .35) 25%, #000 70%);
  mask-image: linear-gradient(100deg, rgba(0, 0, 0, .35) 25%, #000 70%);
}
.px-hero__grid i { border: 1px solid rgba(255, 255, 255, .045); transition: background-color 1.2s ease; }
.px-hero__grid i.on-1 { background: var(--px-accent); }
.px-hero__grid i.on-2 { background: var(--px-accent-2); }
.px-hero__grid i.on-3 { background: var(--px-accent-3); }
.px-hero__grid i.on-4 { background: var(--px-yellow); }
/* подсветка под курсором: загорается мгновенно, гаснет плавно (transition из базового правила) */
.px-hero__grid i.hov { transition: none; box-shadow: 0 0 18px 2px currentColor; position: relative; z-index: 1; }
.px-hero__grid i.hov.on-1 { color: var(--px-accent); }
.px-hero__grid i.hov.on-2 { color: var(--px-accent-2); }
.px-hero__grid i.hov.on-3 { color: var(--px-accent-3); }
.px-hero__grid i.hov.on-4 { color: var(--px-yellow); }
.px-hero .container { position: relative; }
.px-kicker {
  display: inline-block; font-family: var(--px-mono); font-size: .85rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--px-yellow); margin-bottom: 1.25rem;
}
.px-kicker::before { content: "■ "; color: var(--px-accent); }
.px-hero .px-kicker--h1 { display: block; font-size: .85rem; font-weight: 400; letter-spacing: .08em; color: var(--px-yellow); margin: 0 0 1.25rem; }
.px-hero__title { font-weight: 800; letter-spacing: -0.02em; color: #fff; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.04; max-width: 14ch; margin-bottom: 1.5rem; }
.px-hero__title em { font-style: normal; color: var(--px-accent); }
.px-hero p.lead { color: rgba(255, 255, 255, .75); font-size: 1.2rem; max-width: 36rem; margin-bottom: 2.25rem; }
.px-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.px-hero__facts { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 4rem; font-family: var(--px-mono); font-size: .9rem; color: rgba(255, 255, 255, .6); }
.px-hero__facts b { display: block; font-family: var(--px-font); font-size: 1.15rem; color: #fff; }

/* ---------- секции ---------- */
.px-section { padding: 96px 0; }
.px-section--alt { background: #fff; border-top: 1px solid var(--px-line); border-bottom: 1px solid var(--px-line); }
.px-section--dark { background: var(--px-ink); color: rgba(255, 255, 255, .78); }
.px-section--dark h2, .px-section--dark h3 { color: #fff; }
.px-head { max-width: 44rem; margin-bottom: 3.5rem; }
.px-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; margin-bottom: 1rem; }
.px-head p { color: var(--px-muted); font-size: 1.1rem; margin: 0; }
.px-section--dark .px-head p { color: rgba(255, 255, 255, .6); }

/* услуги */
.px-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 991px) { .px-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .px-cards { grid-template-columns: 1fr; } }
.px-card {
  position: relative; background: #fff; border: 2px solid var(--px-ink); border-radius: var(--px-radius);
  padding: 2rem 1.75rem; box-shadow: 6px 6px 0 var(--px-ink); transition: transform .2s, box-shadow .2s;
}
.px-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--px-accent); }
.px-card__icon { width: 48px; height: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-bottom: 1.4rem; }
.px-card__icon i { background: var(--px-line); border-radius: 1px; }
.px-card__icon i.c1 { background: var(--px-accent); }
.px-card__icon i.c2 { background: var(--px-accent-2); }
.px-card__icon i.c3 { background: var(--px-accent-3); }
.px-card__icon i.c4 { background: var(--px-yellow); }
.px-card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.px-card p { color: var(--px-muted); margin: 0; font-size: 1rem; }

/* этапы */
.px-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; counter-reset: step; }
.px-step { padding: 2rem 1.75rem 2rem 0; border-top: 2px solid rgba(255, 255, 255, .15); position: relative; }
.px-step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--px-mono); font-size: .95rem; color: var(--px-accent); margin-bottom: 1rem;
}
.px-step::after { content: ""; position: absolute; top: -2px; left: 0; width: 40px; height: 2px; background: var(--px-accent); }
.px-step h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.px-step p { margin: 0; font-size: .98rem; }

/* цены */
.px-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; align-items: stretch; }
.px-price {
  display: flex; flex-direction: column; background: #fff; border: 2px solid var(--px-ink);
  border-radius: var(--px-radius); padding: 2.25rem 2rem;
}
.px-price--hot { background: var(--px-ink); color: rgba(255, 255, 255, .8); box-shadow: 8px 8px 0 var(--px-accent); }
.px-price--hot h3, .px-price--hot .px-price__sum { color: #fff; }
.px-price__tag { font-family: var(--px-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--px-accent); margin-bottom: .75rem; }
.px-price h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.px-price__sum { font-size: 2rem; font-weight: 800; color: var(--px-ink); margin: .5rem 0 1.25rem; letter-spacing: -0.02em; }
.px-price__sum small { font-size: 1rem; font-weight: 600; color: var(--px-muted); }
.px-price ul { list-style: none; padding: 0; margin: 0 0 2rem; flex: 1; }
.px-price li { padding: .4rem 0 .4rem 1.6rem; position: relative; font-size: .98rem; }
.px-price li::before { content: ""; position: absolute; left: 0; top: .85rem; width: 9px; height: 9px; background: var(--px-accent-3); }
.px-price .px-btn { align-self: flex-start; }
.px-note { margin-top: 2rem; color: var(--px-muted); font-size: .95rem; }

/* технологии */
.px-stack { display: flex; flex-wrap: wrap; gap: .75rem; }
.px-stack span {
  font-family: var(--px-mono); font-size: .92rem; padding: .55rem 1rem; background: #fff;
  border: 2px solid var(--px-ink); border-radius: var(--px-radius);
}
.px-stack span:nth-child(4n+1) { box-shadow: 3px 3px 0 var(--px-accent); }
.px-stack span:nth-child(4n+2) { box-shadow: 3px 3px 0 var(--px-accent-2); }
.px-stack span:nth-child(4n+3) { box-shadow: 3px 3px 0 var(--px-accent-3); }
.px-stack span:nth-child(4n+4) { box-shadow: 3px 3px 0 var(--px-yellow); }

/* призыв */
.px-cta { background: var(--px-accent); color: #fff; padding: 88px 0; position: relative; overflow: hidden; }
.px-cta::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 320px; height: 320px;
  background-image: linear-gradient(var(--px-ink) 0 0), linear-gradient(var(--px-ink) 0 0), linear-gradient(#fff 0 0), linear-gradient(var(--px-ink) 0 0);
  background-size: 80px 80px; background-repeat: no-repeat;
  background-position: 0 0, 160px 80px, 80px 160px, 240px 240px; opacity: .9;
}
.px-cta h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); max-width: 18ch; line-height: 1.1; }
.px-cta p { font-size: 1.15rem; max-width: 34rem; color: rgba(255, 255, 255, .9); margin-bottom: 2rem; }
.px-cta .px-btn { background: var(--px-ink); box-shadow: 4px 4px 0 #fff; }
.px-cta .px-btn:hover { box-shadow: 6px 6px 0 #fff; }

/* ---------- подвал ---------- */
.px-footer { background: var(--px-ink); color: rgba(255, 255, 255, .6); padding: 72px 0 32px; font-size: .95rem; }
.px-footer h5 { color: #fff; font-size: .8rem; font-family: var(--px-mono); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.1rem; }
.px-footer a { color: rgba(255, 255, 255, .75); }
.px-footer a:hover { color: #fff; }
.px-footer ul { list-style: none; padding: 0; margin: 0; }
.px-footer li { margin-bottom: .5rem; }
.px-footer__about { max-width: 22rem; margin-top: 1rem; }
.px-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem;
}
.px-footer__pixels { display: flex; gap: 4px; }
.px-footer__pixels i { width: 10px; height: 10px; display: block; }

/* ---------- внутренние страницы OpenCart ---------- */
#information-information, #information-contact, #information-sitemap, #error-not-found,
#account-login, #account-register, #product-search { padding-top: 48px; padding-bottom: 72px; }
.breadcrumb { font-size: .85rem; font-family: var(--px-mono); background: none; border: 0; padding: 0; margin-bottom: 2rem; }
.breadcrumb > li.breadcrumb-item { padding: 0; text-shadow: none; }
.breadcrumb > li.breadcrumb-item:after { display: none; }
.breadcrumb > li.breadcrumb-item + li:before { content: "/"; padding: 0 .6rem; color: var(--px-line); }
.breadcrumb a { color: var(--px-muted); }
#content > h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.5rem; }
.form-control, .form-select { border: 2px solid var(--px-line); border-radius: var(--px-radius); padding: .7rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--px-accent-2); box-shadow: 0 0 0 3px rgba(108, 92, 255, .15); }
.card { border: 2px solid var(--px-ink); border-radius: var(--px-radius); }
.list-group-item.active { background: var(--px-ink); border-color: var(--px-ink); }

/* баннер про cookies */
#cookie { background: var(--px-ink-2) !important; color: #fff; border-top: 3px solid var(--px-accent); }

@media (max-width: 767px) {
  body { font-size: 16px; }
  .px-hero { padding: 72px 0 80px; }
  .px-section { padding: 64px 0; }
  .px-hero__facts { gap: 1.5rem; margin-top: 2.5rem; }
  .px-cta::after { width: 160px; height: 160px; background-size: 40px 40px; background-position: 0 0, 80px 40px, 40px 80px, 120px 120px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .px-hero__grid i { transition: none; }
}

/* правки 2026-10-05: перенос длинных пунктов подвала, тёмный фон под страницей 404 */
@media (max-width: 575px) { .px-footer li { overflow-wrap: anywhere; hyphens: auto; } }
main:has(.px-404) { background: var(--px-ink); }

/* стандартный stylesheet.css OpenCart прибивает footer абсолютом к низу #container — он перекрывал блок с призывом */
#container { position: relative; margin-bottom: 0; min-height: 100vh; }
footer.px-footer { position: static; bottom: auto; border: 0; margin-top: 0; }
