/* ===================== Design tokens ===================== */
:root {
  --graphite-950: #05060C; /* page canvas — deep space black */
  --graphite-900: #0A0D1C; /* alt section / mobile nav / modal surface */
  --graphite-850: #0C1024; /* card surface */
  --graphite-800: #121735; /* chip / icon bg / input bg */
  --graphite-700: #161B3D; /* svg bus-bar track */
  --line: #242B52;
  --copper-100: #FFC896; /* light copper — gradient stop only */
  --copper-300: #FF9A4D; /* vivid copper — eyebrows, icons, accents */
  --copper-600: #C2570F; /* deep copper — gradient stop, hover borders */
  --volt-500: #5B8CFF; /* electric indigo, glows on black */
  --ink-on-copper: #1A0F04; /* dark text sitting on the copper gradient */
  --ink-950: #F5F7FC; /* headings, strong text */
  --ink-300: #C7CEE0; /* primary body text */
  --ink-500: #8890A8; /* secondary / muted text */
  --ink-700: #6B7488; /* tertiary / footer meta */

  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container-w: 1180px;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 900px 520px at 12% -8%, rgba(91, 140, 255, .14), transparent 60%),
    radial-gradient(ellipse 760px 520px at 102% 18%, rgba(255, 154, 77, .10), transparent 60%),
    var(--graphite-950);
  background-attachment: fixed;
  color: var(--ink-950);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .6em; color: var(--ink-950); }
h1 { font-size: clamp(2rem, 3.6vw, 3.05rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { color: var(--ink-300); margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--volt-500); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--volt-500); outline-offset: 3px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--copper-300);
  margin: 0 0 .9em;
  text-transform: uppercase;
}
.eyebrow.center { text-align: center; }
.center { text-align: center; }
.section-lede { max-width: 640px; color: var(--ink-500); }
.section-lede.center { margin-left: auto; margin-right: auto; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 600; border: 1px solid transparent;
  padding: 13px 26px; font-size: .95rem; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--copper-100), var(--copper-600));
  color: var(--ink-on-copper);
  box-shadow: 0 10px 28px -8px rgba(255, 154, 77, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(255, 154, 77, .5); }
.btn-outline {
  background: transparent; border-color: var(--line); color: var(--ink-950);
}
.btn-outline:hover { border-color: var(--volt-500); color: var(--volt-500); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }

/* ===================== Header ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 6, 12, .78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { flex-shrink: 0; }
.brand-logo { height: 38px; width: auto; }

.main-nav { display: flex; gap: 16px; flex: 1; min-width: 0; justify-content: center; }
.main-nav a { font-size: .89rem; color: var(--ink-300); font-weight: 500; transition: color .15s; white-space: nowrap; }
.main-nav a:hover { color: var(--copper-300); }

.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.phone-link { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .86rem; color: var(--ink-950); white-space: nowrap; }
.phone-link:hover { color: var(--copper-300); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.burger span { width: 22px; height: 2px; background: var(--ink-950); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; gap: 2px;
  background: var(--graphite-900); border-bottom: 1px solid var(--line);
  padding: 8px 24px 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--graphite-800); color: var(--ink-300); }
.mobile-nav .btn, .mobile-nav .phone-link { margin-top: 12px; border-bottom: none; }
.mobile-nav .phone-link { justify-content: center; padding: 12px 0; }

/* ===================== Hero ===================== */
.hero { padding: 80px 0 64px; overflow: hidden; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 800px; margin: 0 auto; }
.hero h1 { letter-spacing: -.01em; }
.hero-lede { max-width: 620px; font-size: 1.08rem; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin: 28px 0 44px; }

.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; margin: 0; padding-top: 28px; border-top: 1px solid var(--line); width: 100%; }
.hero-stats div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero-stats dt { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 600; color: var(--copper-300); margin: 0; }
.hero-stats dd { margin: 0; font-size: .8rem; color: var(--ink-500); }

/* ===================== Sections ===================== */
.section { padding: 88px 0; }
.section-alt { background: var(--graphite-900); }
.section h2 { max-width: 720px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.check-list { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink-300); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--graphite-800); color: var(--copper-300);
  font-size: .75rem; display: flex; align-items: center; justify-content: center;
}
.about-figure { display: flex; flex-direction: column; gap: 18px; }
.figure-card {
  background: var(--graphite-850); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 22px 24px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 2px 14px -6px rgba(0, 0, 0, .08);
}
.figure-num { font-family: var(--font-mono); font-size: 1.9rem; font-weight: 600; color: var(--volt-500); }
.figure-label { color: var(--ink-500); font-size: .88rem; }

/* Cards grid generic */
.cards-grid { display: grid; gap: 22px; margin-top: 44px; }
.advantages-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.warehouse-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.adv-card {
  background: var(--graphite-850); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 26px; transition: border-color .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 2px 14px -8px rgba(0, 0, 0, .08);
}
.adv-card:hover { border-color: var(--copper-600); transform: translateY(-3px); box-shadow: 0 16px 32px -14px rgba(0, 0, 0, .5), 0 0 26px -6px rgba(255, 154, 77, .3); }
.adv-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: var(--radius-s);
  background: var(--graphite-800); color: var(--copper-300); margin-bottom: 16px;
}
.adv-card p { margin-bottom: 0; font-size: .92rem; }

/* Catalog cards (buttons) */
.cat-card {
  background: var(--graphite-850); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 26px; text-align: left; color: var(--ink-950);
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .15s, transform .15s, background .15s, box-shadow .15s;
  box-shadow: 0 2px 14px -8px rgba(0, 0, 0, .08);
}
.cat-card:hover { border-color: var(--volt-500); transform: translateY(-4px); box-shadow: 0 16px 32px -14px rgba(0, 0, 0, .5), 0 0 26px -6px rgba(91, 140, 255, .35); }
.cat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: var(--radius-s);
  background: var(--graphite-800); color: var(--copper-300); margin-bottom: 14px;
}
.cat-card p { font-size: .88rem; margin-bottom: 12px; }
.cat-more { font-family: var(--font-mono); font-size: .78rem; color: var(--volt-500); margin-top: auto; }

/* Service */
.service-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.service-list { display: flex; flex-direction: column; gap: 22px; }
.service-item { display: flex; gap: 20px; align-items: flex-start; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.service-item:last-child { border-bottom: none; padding-bottom: 0; }
.service-item.highlight h3 { color: var(--copper-300); }
.step-num {
  font-family: var(--font-mono); font-weight: 600; font-size: .95rem; color: var(--ink-on-copper);
  background: linear-gradient(135deg, var(--copper-100), var(--copper-600));
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.service-item h3 { margin-bottom: 4px; }
.service-item p { margin: 0; font-size: .92rem; }

/* Industries */
.industries { padding: 56px 0; }
.industries-row {
  display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 2.4vw, 1.6rem); color: var(--ink-300);
}
.industries-row .dot { color: var(--copper-600); }

/* Warehouses */
.wh-card {
  background: var(--graphite-850); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 30px; display: flex; flex-direction: column; gap: 8px; text-align: center;
  box-shadow: 0 2px 14px -8px rgba(0, 0, 0, .08);
}
.wh-city { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.wh-size { font-family: var(--font-mono); color: var(--volt-500); font-size: 1.1rem; }
.wh-type { color: var(--ink-500); font-size: .85rem; }
.wh-note { margin-top: 30px; }

/* Partners */
.partners-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px;
}
.partners-grid span {
  font-family: var(--font-mono); font-size: .82rem; color: var(--ink-300);
  background: var(--graphite-850); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px;
}
.partners-sub { margin-top: 40px; font-weight: 600; color: var(--ink-300); }
.partners-grid-cables span { color: var(--copper-300); }
.partners-grid span.has-logo {
  padding: 8px 20px; background: #FFFFFF; border-color: var(--line);
}
.partners-grid span.has-logo img { height: 22px; width: auto; max-width: 120px; object-fit: contain; display: block; }
.cert-strip {
  margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
  font-size: .88rem; color: var(--ink-500);
}

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 44px; }
.news-card {
  background: var(--graphite-850); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 26px; box-shadow: 0 2px 14px -8px rgba(0, 0, 0, .08);
}
.news-date { font-family: var(--font-mono); font-size: .78rem; color: var(--copper-300); }
.news-card h3 { margin: 10px 0 8px; font-size: 1.05rem; }
.news-card p { font-size: .9rem; margin: 0; }
.news-empty { text-align: center; color: var(--ink-500); margin-top: 30px; grid-column: 1 / -1; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 44px; }
.step-card {
  background: var(--graphite-850); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 26px;
  box-shadow: 0 2px 14px -8px rgba(0, 0, 0, .08);
}
.step-card .step-num { margin-bottom: 18px; }
.step-card p { font-size: .9rem; margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: start; }
.request-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 32px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row-full { grid-column: 1 / -1; }
.form-row label { font-size: .85rem; color: var(--ink-500); }
.form-row input, .form-row select, .form-row textarea {
  background: var(--graphite-850); border: 1px solid var(--line); border-radius: var(--radius-s);
  color: var(--ink-950); padding: 12px 14px; font-family: var(--font-body); font-size: .95rem;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--volt-500); }
.form-row textarea { resize: vertical; }
.form-consent { flex-direction: row; align-items: flex-start; gap: 10px; }
.form-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--copper-300); }
.form-consent label { font-size: .82rem; color: var(--ink-500); }
.form-status { font-size: .88rem; margin: 12px 0 0; }
.form-status.ok { color: #4ADE80; }
.form-status.err { color: #FF6B5E; }

.contact-direct {
  background: var(--graphite-850); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 30px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 100px;
  box-shadow: 0 2px 14px -8px rgba(0, 0, 0, .08);
}
.direct-item { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: var(--ink-950); }
.direct-item.static { color: var(--ink-300); }
.direct-item:not(.static):hover { color: var(--copper-300); }
.direct-note { font-size: .82rem; color: var(--ink-500); margin: 4px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-logo { height: 30px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { font-size: .88rem; color: var(--ink-500); }
.footer-nav a:hover { color: var(--copper-300); }
.footer-meta { text-align: right; font-size: .82rem; color: var(--ink-700); }
.footer-meta a { color: var(--ink-500); }

/* ===================== Modals ===================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(2, 3, 8, .72); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 24px; z-index: 200;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--graphite-900); border: 1px solid var(--line); border-radius: var(--radius-l);
  max-width: 640px; width: 100%; max-height: 86vh; overflow-y: auto; padding: 40px; position: relative;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35);
}
.modal-close {
  position: absolute; top: 18px; right: 18px; background: var(--graphite-800); border: none;
  color: var(--ink-300); width: 36px; height: 36px; border-radius: 50%; font-size: .9rem;
}
.modal-close:hover { color: var(--ink-950); }
.spec-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 24px; margin: 20px 0 26px; }
.spec-list div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.spec-list dt { color: var(--ink-500); font-size: .85rem; }
.spec-list dd { margin: 0; font-family: var(--font-mono); font-size: .85rem; color: var(--ink-950); text-align: right; }
.callout {
  background: var(--graphite-850); border-left: 3px solid var(--copper-300); border-radius: var(--radius-s);
  padding: 18px 20px; margin: 20px 0 26px;
}
.callout strong { display: block; margin-bottom: 6px; color: var(--copper-300); }
.callout p { margin: 0; font-size: .9rem; }

/* ===================== News widget ===================== */
.news-widget {
  position: fixed; top: 92px; right: 24px; z-index: 140; width: 300px;
  background: var(--graphite-850); border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 154, 77, .08);
  animation: newsIn .4s ease;
}
.news-widget[hidden] { display: none; }
.news-widget-close {
  position: absolute; top: 10px; right: 10px; background: var(--graphite-800); border: none;
  color: var(--ink-500); width: 24px; height: 24px; border-radius: 50%; font-size: .72rem; cursor: pointer; line-height: 1;
}
.news-widget-close:hover { color: var(--ink-950); }
.news-widget-body { display: block; padding: 18px 36px 18px 18px; }
.news-widget-eyebrow {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--copper-300); margin: 0 0 6px;
}
.news-widget-title { font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--ink-950); margin: 0 0 6px; line-height: 1.3; }
.news-widget-text { font-size: .82rem; color: var(--ink-500); margin: 0 0 10px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-widget-link { font-family: var(--font-mono); font-size: .78rem; color: var(--volt-500); }
@keyframes newsIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .news-widget { animation: none; } }

/* ===================== Game ===================== */
.game-fab {
  position: fixed; right: 28px; bottom: 28px; z-index: 150;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--copper-100), var(--copper-600));
  color: var(--ink-on-copper); border: none; border-radius: 999px;
  padding: 15px 22px 15px 18px; cursor: pointer; overflow: visible;
  box-shadow: 0 12px 30px -8px rgba(255, 154, 77, .55);
  animation: fabBounce 3.2s ease-in-out infinite;
  transition: transform .15s ease;
}
.game-fab:hover { transform: translateY(-3px) scale(1.06); }

.game-fab-ring {
  position: absolute; inset: -6px; border-radius: 999px;
  border: 2px solid var(--copper-300);
  animation: fabRing 1.8s ease-out infinite;
  pointer-events: none;
}
.game-fab-shine {
  position: absolute; inset: 0; border-radius: 999px; overflow: hidden; pointer-events: none;
}
.game-fab-shine::after {
  content: ""; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.85), transparent);
  transform: rotate(20deg); animation: fabShine 2.8s ease-in-out infinite;
}
.game-fab-icon { position: relative; z-index: 1; }
.game-fab-label { font-weight: 800; font-size: .95rem; position: relative; z-index: 1; }
.game-fab-badge {
  position: absolute; top: -10px; right: -8px; font-size: 1.1rem; line-height: 1;
  animation: fabWiggle 1.6s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}

@keyframes fabBounce {
  0%, 78%, 100% { transform: translateY(0); }
  4% { transform: translateY(-9px); }
  8% { transform: translateY(0); }
  12% { transform: translateY(-5px); }
  16% { transform: translateY(0); }
}
@keyframes fabRing {
  0% { transform: scale(1); opacity: .9; border-color: var(--copper-300); }
  100% { transform: scale(1.5); opacity: 0; border-color: var(--volt-500); }
}
@keyframes fabShine {
  0%, 30% { left: -60%; }
  60%, 100% { left: 130%; }
}
@keyframes fabWiggle {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(10deg) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .game-fab, .game-fab-ring, .game-fab-shine::after, .game-fab-badge { animation: none; }
}

.game-modal-box { max-width: 720px; padding: 26px; }
.game-intro { color: var(--ink-500); font-size: .9rem; margin-bottom: 14px; }
.game-hud {
  display: flex; align-items: center; gap: 24px; margin: 0 0 14px;
  padding: 10px 16px; background: var(--graphite-800); border: 1px solid var(--line); border-radius: var(--radius-s);
}
.game-stat { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .95rem; color: var(--ink-950); }
.game-stat-label { font-size: .72rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: .06em; }
.game-hud .btn { margin-left: auto; }

.game-board-wrap { position: relative; background: var(--graphite-800); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
/* viewBox is deliberately short (640x330) so height:auto keeps the whole board on screen
   without the modal needing to scroll — a scrolled-out row would be unreachable by click. */
.game-svg { width: 100%; height: auto; display: block; touch-action: none; -webkit-user-select: none; user-select: none; }
.game-wire-drag { pointer-events: none; }
.game-rail { fill: var(--graphite-700); stroke: var(--line); }
.game-terminal { cursor: pointer; }
.game-terminal .game-hit { cursor: pointer; }
.game-terminal:focus { outline: none; }
.game-terminal:focus .game-dot { stroke-width: 4; }
.game-terminal.selected .game-dot { filter: drop-shadow(0 0 6px rgba(255,255,255,.6)); }
.game-select-ring { animation: ringPulse 1.1s ease-in-out infinite; transition: opacity .15s; }
@keyframes ringPulse {
  0%, 100% { r: 21; opacity: .9; }
  50% { r: 24; opacity: .4; }
}
.game-terminal.done { cursor: default; }
.game-terminal.done .game-select-ring { display: none; }
.game-wire-done { filter: drop-shadow(0 0 4px rgba(255, 255, 255, .25)); }
.game-wire-wrong { animation: wireShake .38s ease; }
@keyframes wireShake { 0%, 100% { opacity: .9; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .game-select-ring { animation: none; } }

.game-win {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(2, 3, 8, .78); backdrop-filter: blur(3px);
}
.game-win[hidden] { display: none; }
.game-win-card {
  background: var(--graphite-850); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 30px; text-align: center; max-width: 320px;
}
.game-win-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.game-win-card p { color: var(--ink-500); font-size: .9rem; margin-bottom: 18px; }

/* ===================== Responsive ===================== */
@media (max-width: 1240px) {
  .main-nav { display: none; }
  .burger { display: flex; }
}

@media (max-width: 960px) {
  .about-grid, .service-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .advantages-grid, .catalog-grid, .warehouse-grid, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-direct { position: static; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; column-gap: 20px; }
  .game-fab .game-fab-label { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 40px; }
  .header-actions .phone-link span { display: none; }
  .header-actions .btn { display: none; } /* full CTA still lives in the burger dropdown — avoids the header overflowing on narrow phones */
  .advantages-grid, .catalog-grid, .warehouse-grid, .steps-grid, .news-grid { grid-template-columns: minmax(0, 1fr); }
  .request-form { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-meta { text-align: left; }
  .modal { padding: 28px 22px; }
  .spec-list { grid-template-columns: minmax(0, 1fr); }
  .game-fab { padding: 13px 16px 13px 14px; right: 16px; bottom: 16px; }
  .game-hud { flex-wrap: wrap; gap: 10px; }
  .news-widget { left: 16px; right: 16px; width: auto; top: 80px; }
}
