/* TEL-SERVICE Group — hub centrumzakopane.pl
   Statyczny arkusz stylów. Bez zależności, bez build-stepu.
   Motyw: grafitowa „płyta przyrządowa” — hairline grid, mocna typografia,
   cztery kafle w gradiencie od zimnego (technika) do ciepłego (energia). */

/* ---------- kroje pisma (self-hosted, bez zewnętrznych żądań) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/archivo-latin-ext.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-weight: 400 800;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-006F, U+0071-007F, U+00A0-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;
}
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plexmono-400-latin-ext.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: "Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plexmono-400-latin.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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/plexmono-500-latin-ext.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: "Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/plexmono-500-latin.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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- zmienne ---------- */
:root {
  --ink: #0a0b0d;
  --ink-raised: #0e1013;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e9e7e2;
  --text-dim: #9aa0a8;
  --brass: #c9a227;

  --a1: #5b8aa6; /* Monitoring & Security — stal */
  --a2: #4fa3a0; /* Software & SaaS — morska zieleń */
  --a3: #c2703f; /* HoReCa & Italy — terakota */
  --a4: #d4922e; /* PeletLab — żar */

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad: clamp(1.25rem, 4vw, 3rem);
  --max: 1180px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

/* atmosfera: siatka hairline + dwa delikatne rozświetlenia */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(91, 138, 166, 0.14), transparent 70%),
    radial-gradient(760px 480px at 98% 108%, rgba(212, 146, 46, 0.10), transparent 70%),
    repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 96px);
  opacity: 0.85;
}

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- skip link ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--ink);
  padding: 0.75rem 1rem;
  z-index: 50;
}
.skip:focus { left: 0; }

/* ---------- nagłówek ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(10, 11, 13, 0.72);
  backdrop-filter: blur(8px);
}
.topbar__in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
  font-size: 1.02rem;
}
.brand svg { width: 22px; height: 22px; flex: none; }
.brand span { color: var(--text-dim); font-weight: 500; }
.topbar .mono { display: none; }
@media (min-width: 720px) { .topbar .mono { display: block; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(2.5rem, 5vw, 4rem); }
.hero__eyebrow { display: flex; align-items: center; gap: 0.8rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.hero__eyebrow::after { content: ""; height: 1px; flex: 1; background: var(--line-strong); }
.hero h1 {
  font-size: clamp(2.75rem, 9.5vw, 5.75rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--text-dim);
  display: block;
  font-weight: 500;
}
.hero__sub {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  font-size: clamp(1.0625rem, 0.95rem + 0.7vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}
.hero__sub b { font-weight: 500; }
.hero__sub i { font-style: normal; color: var(--brass); }
.hero__lead {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  max-width: 62ch;
  color: var(--text-dim);
  font-size: clamp(1rem, 0.96rem + 0.35vw, 1.125rem);
  line-height: 1.65;
}

/* ---------- płyta z czterema kaflami ---------- */
.panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-block: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 860px) { .panel { grid-template-columns: 1fr 1fr; } }

.tile {
  --a: var(--a1);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.6rem, 3.6vw, 2.75rem);
  min-height: clamp(15rem, 34vw, 20rem);
  background: var(--ink-raised);
  text-decoration: none;
  isolation: isolate;
  transition: background 260ms ease;
}
.tile:nth-child(2) { --a: var(--a2); }
.tile:nth-child(3) { --a: var(--a3); }
.tile:nth-child(4) { --a: var(--a4); }

/* wash w kolorze filaru — pojawia się na hover/focus */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--a) 18%, transparent), transparent 65%);
  transition: opacity 260ms ease;
}
/* górna kreska akcentu */
.tile::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 100%;
  background: var(--a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.tile:hover::before, .tile:focus-visible::before { opacity: 1; }
.tile:hover::after, .tile:focus-visible::after { transform: scaleX(1); }
.tile:hover { background: #12151a; }
.tile:focus-visible { outline: 2px solid var(--a); outline-offset: -2px; }

.tile__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.tile__num { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; color: var(--text-dim); }
.tile__icon { width: 34px; height: 34px; stroke: var(--text-dim); stroke-width: 1.25; fill: none; transition: stroke 260ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1); }
.tile:hover .tile__icon { stroke: var(--a); transform: translateY(-2px); }

.tile h2 {
  font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.tile h2 small {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--a);
  margin-top: 0.55rem;
  font-family: var(--mono);
}
.tile p { color: var(--text-dim); max-width: 40ch; font-size: 0.975rem; line-height: 1.6; }
.tile__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
}
.tile__cta svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; fill: none; transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1); }
.tile:hover .tile__cta { color: #fff; }
.tile:hover .tile__cta svg { transform: translateX(5px); }
.tile__host { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--text-dim); text-transform: none; }

/* ---------- sekcja „jedna firma” ---------- */
.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .split { grid-template-columns: 0.9fr 1.1fr; } }
.split h2 {
  font-size: clamp(1.85rem, 1.3rem + 2vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}
.split p { color: var(--text-dim); max-width: 60ch; line-height: 1.7; }
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(1.5rem, 3vw, 2rem); grid-template-columns: repeat(2, 1fr); }
.facts div { background: var(--ink); padding: 1.15rem 1.25rem; }
.facts dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.facts dd { margin: 0.4rem 0 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- kontakt ---------- */
.contact { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.contact__row { display: flex; flex-wrap: wrap; gap: clamp(1.25rem, 4vw, 3.5rem); align-items: flex-start; margin-top: 1.5rem; }
.contact__row > div { min-width: 12rem; }
.contact__row p.value { margin-top: 0.35rem; }
.contact a.big {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 200ms ease, color 200ms ease;
}
.contact a.big:hover { color: var(--brass); border-color: var(--brass); }

/* ---------- stopka ---------- */
footer { border-top: 1px solid var(--line); padding-block: clamp(2rem, 4vw, 3rem); }
.foot { display: grid; gap: 1.75rem; }
@media (min-width: 760px) { .foot { grid-template-columns: 1fr auto; align-items: start; } }
.foot__brand { font-weight: 700; letter-spacing: -0.015em; font-size: 1.05rem; }
.foot__addr { color: var(--text-dim); font-size: 0.95rem; font-style: normal; margin-top: 0.4rem; line-height: 1.7; }
.foot__addr a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.foot__addr a:hover { color: var(--brass); }
.foot nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: color 180ms ease;
}
.foot nav a:hover { color: var(--text); }
.foot__legal { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* ---------- podstrona tekstowa ---------- */
.prose { padding-block: clamp(2.5rem, 6vw, 4.5rem); max-width: 72ch; }
.prose h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.prose h2 { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.45rem); font-weight: 700; letter-spacing: -0.02em; margin-top: 2.5rem; }
.prose p, .prose li { color: var(--text-dim); line-height: 1.75; margin-top: 1rem; }
.prose ul { list-style: none; }
.prose ul li { padding-left: 1.15rem; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 6px; height: 1px; background: var(--brass); }
.prose a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.prose a:hover { color: var(--brass); border-color: var(--brass); }
.back { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; text-decoration: none; color: var(--text-dim); }
.back:hover { color: var(--text); }

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