/* IT Solutions Plus — same look as ITSP Monitor: Terminal (default) / Classic */
:root, :root[data-theme="terminal"] {
  --bg: #0a0f0a;
  --bg2: #0f1a10;
  --card: #0d150e;
  --line: #1f3a22;
  --ink: #b6f5b0;
  --muted: #6fa86a;
  --accent: #33ff66;
  --accent2: #ffb000;
  --danger: #ff5c5c;
  --btn-ink: #041006;
  --head: "VT323", "IBM Plex Mono", monospace;
  --body: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --glow: 0 0 8px rgba(51,255,102,.35);
  --radius: 4px;
}
:root[data-theme="classic"] {
  --bg: #f5f7fa;
  --bg2: #e9eef5;
  --card: #ffffff;
  --line: #d6dee8;
  --ink: #142233;
  --muted: #5a6b7e;
  --accent: #0b5ed7;
  --accent2: #0b8a4a;
  --danger: #c62828;
  --btn-ink: #ffffff;
  --head: "IBM Plex Mono", ui-monospace, monospace;
  --body: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --glow: none;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.65 var(--body);
}
/* background line drawings: computers, cameras, intercoms, phones, network, recycling */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--icons);
  opacity: var(--icons-op);
  -webkit-mask: url(bg.svg) 0 0 / 420px 420px repeat;
          mask: url(bg.svg) 0 0 / 420px 420px repeat;
}
:root, :root[data-theme="terminal"] { --icons: #33ff66; --icons-op: .09; --bg2-see: rgba(15,26,16,.72); }
:root[data-theme="classic"] { --icons: #5a6b7e; --icons-op: .11; --bg2-see: rgba(233,238,245,.72); }
section.alt { background: var(--bg2-see) !important; }
[data-theme="terminal"] body::after { /* soft CRT scanlines */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.18) 2px 3px);
}
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { font: 26px/1 var(--head); color: var(--accent); text-decoration: none; text-shadow: var(--glow); white-space: nowrap; }
[data-theme="classic"] .logo { font-size: 18px; font-weight: 600; }
.logo .cur { display: inline-block; width: .55em; height: 1em; background: var(--accent); vertical-align: -0.12em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
nav.menu { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
nav.menu a { color: var(--ink); text-decoration: none; padding: 6px 10px; border-radius: var(--radius); }
nav.menu a:hover, nav.menu a.on { color: var(--accent); background: var(--bg2); }
[data-theme="terminal"] nav.menu a::before { content: "> "; color: var(--muted); }
.call { color: var(--accent2); text-decoration: none; font-weight: 600; white-space: nowrap; }
.theme-btn { background: none; border: 1px solid var(--line); color: var(--muted); font: 12px var(--body); padding: 5px 9px; border-radius: var(--radius); cursor: pointer; }
.theme-btn:hover { color: var(--accent); border-color: var(--accent); }
.burger { display: none; background: none; border: 1px solid var(--line); color: var(--ink); font: 14px var(--body); padding: 6px 10px; border-radius: var(--radius); }

@media (max-width: 860px) {
  .burger { display: inline-block; margin-left: auto; }
  nav.menu { display: none; width: 100%; flex-direction: column; margin: 0 0 12px; }
  nav.menu.open { display: flex; }
  .call { order: 3; }
}

/* ---------- common blocks ---------- */
section { padding: 64px 0; }
section.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { color: var(--accent2); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; }
[data-theme="terminal"] .kicker::before { content: "// "; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.1; margin: 0 0 14px; }
h1 { font-size: clamp(40px, 7vw, 72px); color: var(--accent); text-shadow: var(--glow); }
h2 { font-size: clamp(32px, 4.5vw, 48px); }
h3 { font-size: 28px; color: var(--accent); }
[data-theme="classic"] h1, [data-theme="classic"] h2, [data-theme="classic"] h3 { font-weight: 600; letter-spacing: -.02em; }
[data-theme="classic"] h1 { font-size: clamp(32px, 5vw, 52px); }
[data-theme="classic"] h2 { font-size: clamp(26px, 3.5vw, 36px); }
[data-theme="classic"] h3 { font-size: 19px; }
.lead { font-size: 17px; color: var(--muted); max-width: 720px; }
.muted { color: var(--muted); }

.btn { display: inline-block; padding: 12px 20px; border-radius: var(--radius); text-decoration: none; font-weight: 600; border: 1px solid var(--accent); }
.btn.solid { background: var(--accent); color: var(--btn-ink); box-shadow: var(--glow); }
.btn.ghost { color: var(--accent); }
.btn:hover { filter: brightness(1.1); }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* hero */
.hero { padding: 72px 0 64px; }
.prompt { color: var(--muted); margin: 0 0 10px; }
.prompt b { color: var(--accent); font-weight: 400; }
.term {
  margin-top: 36px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); padding: 16px 18px; font-size: 14px; overflow-x: auto;
}
.term .ok { color: var(--accent); }
.term .warn { color: var(--accent2); }
.term div { white-space: nowrap; }

/* cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 32px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.card .tag { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.card p { margin: 0 0 14px; color: var(--muted); flex: 1; }
.card a.more { text-decoration: none; font-weight: 600; }
.card.new { border-color: var(--accent2); }
.card.new .tag { color: var(--accent2); }

.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { padding: 6px 0 6px 30px; position: relative; }
.checks li::before { content: "[OK]"; position: absolute; left: -12px; color: var(--accent); font-size: 12px; top: 9px; }
[data-theme="classic"] .checks li::before { content: "✓"; left: 4px; font-size: 15px; top: 6px; }

.two { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 16px 64px; position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 18px; top: 12px; font: 30px/1 var(--head); color: var(--accent2); }
.steps b { color: var(--ink); }
.steps span { color: var(--muted); display: block; }

.cta { text-align: center; }
.cta .btns { justify-content: center; }

.service-block { padding: 28px 0; border-bottom: 1px dashed var(--line); }
.service-block:last-child { border-bottom: 0; }
.service-block ul { color: var(--muted); margin: 8px 0 0; padding-left: 20px; }

/* forms */
form.contact { display: grid; gap: 14px; }
form.contact label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
form.contact input, form.contact textarea, form.contact select {
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 12px; font: 15px var(--body); width: 100%;
}
form.contact input:focus, form.contact textarea:focus, form.contact select:focus { outline: none; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; border: 1px solid var(--accent); border-radius: var(--radius); margin-bottom: 18px; }
.notice.err { border-color: var(--danger); color: var(--danger); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 28px; font-size: 14px; }
footer .cols { display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; } }
footer h4 { margin: 0 0 10px; font-size: 13px; color: var(--accent2); text-transform: uppercase; letter-spacing: .1em; }
footer a { color: var(--ink); text-decoration: none; display: block; padding: 2px 0; }
footer a:hover { color: var(--accent); }
footer .bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer .bottom a { display: inline; color: var(--muted); }

/* NEW tag next to a service title */
.new-tag { color: var(--accent2); font-size: .6em; vertical-align: middle; margin-left: 6px; }

/* ---------- cookie preferences ---------- */
.ck-banner { position: fixed; left: 16px; bottom: 16px; z-index: 9000; max-width: 460px; width: calc(100vw - 112px);
  background: var(--card); border: 1px solid var(--accent); border-radius: var(--radius); padding: 16px 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,.35), var(--glow); font-size: 13.5px; }
.ck-banner p { margin: 0; color: var(--ink); }
.ck-title { color: var(--accent); margin-right: 6px; }
.ck-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ck-btns .btn { padding: 8px 14px; font: 600 13px var(--body); cursor: pointer; background: transparent; }
.ck-btns .btn.solid { background: var(--accent); color: var(--btn-ink); }
.ck-overlay { position: fixed; inset: 0; z-index: 9500; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ck-panel { background: var(--card); border: 1px solid var(--accent); border-radius: var(--radius); padding: 22px; max-width: 540px; width: 100%;
  max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: var(--glow); }
.ck-panel h3 { margin: 0 0 6px; color: var(--accent); }
.ck-muted { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.ck-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0; border-top: 1px dashed var(--line); }
.ck-row b { color: var(--ink); }
.ck-always { color: var(--accent2); font-size: 12px; white-space: nowrap; padding-top: 2px; }
.ck-switch { position: relative; width: 44px; height: 24px; flex: none; cursor: pointer; }
.ck-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.ck-switch span { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--bg); transition: .15s; }
.ck-switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: var(--muted); transition: .15s; }
.ck-switch input:checked + span { border-color: var(--accent); }
.ck-switch input:checked + span::before { transform: translateX(20px); background: var(--accent); }
.ck-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ck-link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
@media (max-width: 600px) { .ck-banner { left: 8px; right: 8px; width: auto; max-width: none; bottom: 90px; } }
