/* Wspólny arkusz rodziny dm6 / host6 / obsluga-informatyczna.
   Motyw: kabel krosowy w kolorze serwisu biegnie wzdłuż strony
   i odgałęzia się do każdej sekcji. Kolor ustawia atrybut data-site na <html>. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-ext-standard-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-standard-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f2f4f5;
  --panel: #ffffff;
  --ink: #14233f;
  --ink-soft: #4a5872;
  --line: #c9d0d8;

  --blue: #1f5fe0;
  --green: #0b8457;
  --yellow: #f0a800;

  --accent: var(--blue);
  --on-accent: #ffffff;

  --cable: 4px;
  --rail: 72px;
  --gutter: 32px;
  --bend: 18px;
  --plug: 12px;

  color-scheme: light dark;
}
:root[data-site="host6"] { --accent: var(--green); }
:root[data-site="obsluga"] { --accent: var(--yellow); --on-accent: var(--ink); }

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1a2e;
    --panel: #17243c;
    --ink: #e9edf3;
    --ink-soft: #a5b1c6;
    --line: #2f3e5a;
    --blue: #6b97ff;
    --green: #35c990;
    --yellow: #f5b700;
    --on-accent: #0f1a2e;
  }
  :root[data-site="obsluga"] { --on-accent: #0f1a2e; }
}

@media (max-width: 720px) {
  :root { --rail: 28px; --gutter: 18px; --bend: 10px; --cable: 3px; --plug: 8px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 4px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Strona i kabel główny ---------- */

.page {
  position: relative;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: 96px;
}
.page::before {
  content: "";
  position: absolute;
  left: var(--gutter);
  top: 0;
  bottom: 0;
  width: var(--cable);
  background: var(--accent);
  border-radius: 0 0 var(--cable) var(--cable);
  transform-origin: top;
  animation: run-down 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.page > * { padding-left: var(--rail); }

/* Odgałęzienie kabla: od pionu do elementu, zakończone wtykiem */
.tap { position: relative; }
.tap::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--rail));
  top: calc(var(--tap-y, 0.55em) - var(--bend));
  width: calc(var(--rail) - var(--plug) - 10px);
  height: var(--bend);
  border: solid var(--c, var(--accent));
  border-width: 0 0 var(--cable) var(--cable);
  border-bottom-left-radius: var(--bend);
}
.tap::after {
  content: "";
  position: absolute;
  left: calc(-1 * var(--plug) - 10px);
  top: calc(var(--tap-y, 0.55em) - 6px - var(--cable) / 2);
  width: var(--plug);
  height: 12px;
  background: var(--c, var(--accent));
  border-radius: 2px 5px 5px 2px;
  transition: transform 0.15s ease-out;
}

/* ---------- Nagłówek ---------- */

.top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 26px;
}
.brand {
  --tap-y: 0.6em;
  font-size: 1.45rem;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}
.brand span { font-weight: 400; color: var(--ink-soft); }
.top nav { margin-left: auto; }
.top nav ul { display: flex; gap: 18px; }
.top nav a { text-decoration: none; font-weight: 500; }
.top nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.lang { font-weight: 600; text-decoration: none; border: 1.5px solid var(--line); border-radius: 4px; padding: 4px 9px; font-size: 0.9rem; }
.lang:hover { border-color: var(--ink); }

@media (max-width: 1200px) {
  .top nav { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 860px) {
  .top { gap: 14px; }
  .brand { font-size: 1.05rem; font-stretch: 100%; white-space: normal; }
}

/* ---------- Przyciski ---------- */

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 6px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.top .btn { padding: 8px 16px; }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(40px, 8vw, 96px); }
.hero h1 {
  font-size: clamp(2.3rem, 6.4vw, 5rem);
  font-weight: 800;
  font-stretch: 122%;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 15em;
  text-wrap: balance;
}
.hero .lead {
  margin-top: 28px;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.45;
  max-width: 34em;
  color: var(--ink-soft);
}
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Porty: wiersze, do których wpięte są kable */
.ports { margin-top: clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.port {
  --tap-y: 44px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) minmax(0, 3fr);
  gap: 8px 32px;
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.port strong {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.port span { color: var(--ink-soft); }
.port em { justify-self: end; font-style: normal; font-weight: 600; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--c, var(--accent)); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.port:hover strong { text-decoration: underline; text-decoration-color: var(--c, var(--accent)); text-decoration-thickness: 4px; text-underline-offset: 0.18em; }
.port:hover::after { transform: translateX(6px); }
.ports li:nth-child(1) .port::before { animation: plug-in 0.5s 0.5s ease-out both; }
.ports li:nth-child(2) .port::before { animation: plug-in 0.5s 0.7s ease-out both; }
.ports li:nth-child(3) .port::before { animation: plug-in 0.5s 0.9s ease-out both; }
.ports li:nth-child(4) .port::before { animation: plug-in 0.5s 1.1s ease-out both; }

@media (max-width: 860px) {
  .port { grid-template-columns: 1fr; padding: 20px 0; --tap-y: 36px; }
  .port em { justify-self: start; }
}

@keyframes run-down { from { transform: scaleY(0); } }
@keyframes plug-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Sekcje ---------- */

.sec { padding-top: clamp(72px, 10vw, 128px); }
.sec h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  font-stretch: 118%;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18em;
  text-wrap: balance;
}
.sec .intro { margin-top: 18px; max-width: 38em; font-size: 1.15rem; color: var(--ink-soft); }
.sec .body { margin-top: 40px; }

/* Wiersze: tytuł po lewej, opis po prawej */
.rows > li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 6px 32px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.rows > li:last-child { border-bottom: 1px solid var(--line); }
.rows h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.rows p { max-width: 36em; }

/* Kroki: faktyczna kolejność zdarzeń, więc numerowane */
.steps { counter-reset: step; }
.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 5fr) minmax(0, 7fr);
  gap: 6px 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.steps > li:last-child { border-bottom: 1px solid var(--line); }
.steps > li::before {
  content: counter(step);
  font-size: 2rem;
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1;
  color: var(--ink);
  -webkit-text-stroke: 0;
}
.steps h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }

/* Oferta: komórki z liniami, bez kart */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.plans.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan {
  display: flex;
  flex-direction: column;
  padding: 30px 32px 34px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.plans:not(.three) .plan:nth-child(even),
.plans.three .plan:not(:nth-child(3n + 1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.plan h3 { font-size: 1.5rem; font-weight: 800; font-stretch: 112%; line-height: 1.15; }
.plan .for { margin-top: 8px; color: var(--ink-soft); }
.plan ul { margin: 20px 0 26px; }
.plan li { position: relative; padding: 5px 0 5px 22px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 12px; height: var(--cable); background: var(--accent); border-radius: 2px; }
.plan .price { margin-top: auto; font-weight: 700; }
.plan .price small { display: block; font-weight: 400; font-size: 0.95rem; color: var(--ink-soft); }
.plan .btn { margin-top: 14px; align-self: flex-start; }
.plan:target h3 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 4px; text-underline-offset: 0.18em; }

/* Lista technologii */
.tags { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 32px; }
.rows .tags { margin-top: 0; }
.tags li { border: 1.5px solid var(--line); border-radius: 4px; padding: 4px 11px; font-weight: 500; background: var(--panel); }

/* Tekst ciągły */
.prose p { max-width: 38em; font-size: 1.15rem; }
.prose p + p { margin-top: 1em; }
.prose h2 + p { margin-top: 28px; }

/* Pytania */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-size: 1.2rem;
  font-weight: 700;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 14px;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ink-soft);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 24px; max-width: 38em; }

/* ---------- Kontakt ---------- */

.contact .body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px 64px; align-items: start; }
form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-weight: 600; }
label small { font-weight: 400; color: var(--ink-soft); }
input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: var(--panel);
  border: 1.5px solid var(--ink-soft);
  border-radius: 4px;
  padding: 11px 13px;
  width: 100%;
}
textarea { min-height: 9.5em; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { font-size: 0.95rem; color: var(--ink-soft); max-width: 40em; }
form .btn { justify-self: start; }
.status { font-weight: 600; padding: 12px 16px; border-left: var(--cable) solid var(--accent); background: var(--panel); }
.status:empty { display: none; }
.status.err { border-left-color: #c8321f; }

.direct dt { font-weight: 600; color: var(--ink-soft); font-size: 0.95rem; }
.direct dd { font-size: 1.2rem; font-weight: 600; margin-bottom: 22px; overflow-wrap: anywhere; }
.direct dd.plain { font-size: 1rem; font-weight: 400; }

@media (max-width: 860px) {
  .rows > li, .contact .body, .pair { grid-template-columns: 1fr; }
  .steps > li { grid-template-columns: 2.4rem 1fr; }
  .steps > li p { grid-column: 2; }
  .plans, .plans.three { grid-template-columns: 1fr; }
  .plans .plan.plan { padding-left: 0; padding-right: 0; border-left: 0; }
}

/* ---------- Stopka: panel krosowy rodziny ---------- */

.foot { background: #14233f; color: #e9edf3; padding: 64px 0 40px; }
.foot .in { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.foot h2 { font-size: 1rem; font-weight: 600; color: #a5b1c6; }
.panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.panel a {
  display: block;
  padding: 20px 20px 22px;
  border: 1.5px solid #2f3e5a;
  border-top: 6px solid var(--c);
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  height: 100%;
}
.panel a:hover { border-color: var(--c); }
.panel strong { display: block; font-size: 1.25rem; font-weight: 800; font-stretch: 112%; overflow-wrap: anywhere; }
.panel span { display: block; margin-top: 6px; color: #a5b1c6; }
.panel [aria-current] { background: #1c2e50; }
.panel [aria-current] small { display: inline-block; margin-top: 12px; font-size: 0.85rem; font-weight: 600; padding: 2px 8px; border-radius: 3px; background: var(--c); color: #14233f; }
.foot .legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid #2f3e5a; display: flex; flex-wrap: wrap; gap: 8px 32px; color: #a5b1c6; font-size: 0.95rem; }
.foot .legal a { color: #e9edf3; }
.foot .legal p:last-child { margin-left: auto; }
.c-blue { --c: #6b97ff; }
.c-green { --c: #35c990; }
.c-yellow { --c: #f5b700; }
.port.c-blue { --c: var(--blue); }
.port.c-green { --c: var(--green); }
.port.c-yellow { --c: var(--yellow); }

@media (max-width: 860px) {
  .panel { grid-template-columns: 1fr; }
  .foot .legal p:last-child { margin-left: 0; }
}

/* ---------- Strony tekstowe ---------- */

.doc { padding-top: clamp(40px, 7vw, 80px); }
.doc h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; font-stretch: 118%; line-height: 1.05; letter-spacing: -0.02em; }
.doc h2 { font-size: 1.35rem; font-weight: 700; margin-top: 2em; }
.doc p, .doc li { max-width: 40em; margin-top: 0.8em; }
.doc ul { list-style: disc; padding-left: 1.2em; }
.doc .imprint { margin-top: 28px; }
.doc .imprint dd { font-size: 1.1rem; margin-bottom: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
