/* IT4Biz - style strony. Kolory i odstępy jak w projekcie z Claude Design (system "Industry"). */

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('fonts/jetbrains-mono-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('fonts/jetbrains-mono-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f2f2f3;
  --text: #1d1f20;
  --divider: color-mix(in srgb, #1d1f20 16%, transparent);
  --accent: #ff0410;
  --accent-600: oklch(0.57 0.23 29);
  --accent-700: oklch(0.48 0.19 29);
  --accent-ink: var(--accent-700);
  --accent-ink-hover: oklch(0.28 0.1 29);
  --on-accent: #f5f5f8;
  --logo-text: #1d1f20;
  --font-heading: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #2b2b2d;
  --text: #f5f5f8;
  --divider: color-mix(in srgb, #f5f5f8 22%, transparent);
  --accent-ink: oklch(0.72 0.2 29);
  --accent-ink-hover: oklch(0.85 0.1 29);
  --logo-text: #f2f2f3;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image: radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1.2px);
  background-size: 24px 24px;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; margin: 0; }
p { margin: 0; }
a { color: var(--accent-ink); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink-hover); text-decoration: underline; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.muted { color: color-mix(in srgb, var(--text) 78%, transparent); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link { position: absolute; left: 8px; top: -48px; z-index: 20; background: var(--accent); color: var(--on-accent); padding: 8px 12px; }
.skip-link:focus { top: 8px; }

/* - buttons - */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 7px 20px;
  font: 700 14px/1.2 var(--font-heading);
  color: var(--text); background: transparent;
  border: 1px solid var(--divider); border-radius: 0;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; background: color-mix(in srgb, var(--text) 7%, transparent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-600); border-color: var(--accent-600); color: var(--on-accent); }
.btn-primary:active { background: var(--accent-700); border-color: var(--accent-700); }
.btn-ghost { border-color: transparent; color: var(--accent-ink); padding-inline: 4px; }
.btn-ghost:hover { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.btn-sm { min-height: 32px; height: 32px; min-width: 40px; padding: 0 8px; font-size: 13px; letter-spacing: 0.06em; }

/* - blueprint frame with corner marks - */
.blueprint { position: relative; border: 1px solid var(--divider); }
.blueprint::before, .blueprint::after,
.blueprint > .c::before, .blueprint > .c::after { content: ""; position: absolute; width: 11px; height: 11px; pointer-events: none;
  background:
    linear-gradient(currentColor, currentColor) 5px 0 / 1px 100% no-repeat,
    linear-gradient(currentColor, currentColor) 0 5px / 100% 1px no-repeat;
  color: color-mix(in srgb, var(--text) 55%, transparent);
}
.blueprint::before { top: -6px; left: -6px; }
.blueprint::after { top: -6px; right: -6px; }
.blueprint > .c::before { bottom: -6px; left: -6px; }
.blueprint > .c::after { bottom: -6px; right: -6px; }
.btn.blueprint::before, .btn.blueprint::after,
.btn.blueprint > .c::before, .btn.blueprint > .c::after { color: color-mix(in srgb, var(--text) 55%, transparent); }

/* - navigation - */
.site-nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 13.6px;
  padding: 10.2px max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter)));
  background: var(--bg);
  border-bottom: 1px solid var(--divider);
}
.brand { margin-right: auto; display: block; color: var(--text); }
.brand:hover { text-decoration: none; }
.logo { display: block; height: 40px; width: auto; }
.logo .lt { fill: var(--logo-text); }
.logo .l4 { fill: var(--accent); }
.nav-links { display: contents; }
.site-nav .nav-link { color: inherit; font-size: 14px; }
.site-nav .nav-link:hover { color: var(--accent-ink); text-decoration: none; }
.nav-tools { display: flex; gap: 12px; align-items: center; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch .btn { border-color: transparent; color: var(--accent-ink); }
.lang-switch .btn[aria-current="true"] { border-color: var(--divider); color: var(--text); }
.theme-toggle { width: 32px; height: 32px; min-height: 32px; padding: 0; border-color: transparent; color: var(--accent-ink); }
.theme-toggle svg { display: block; }
html[data-theme="dark"] .icon-moon, html:not([data-theme="dark"]) .icon-sun { display: none; }

/* - layout - */
main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.hero { padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); }
.hero h1 { font-size: clamp(30px, 5vw, 60px); line-height: 1.08; letter-spacing: -0.02em; }
.hero h1 > span { display: block; }
.cursor {
  display: inline-block; width: 0.55em; height: 0.9em; margin-left: 0.15em; vertical-align: -0.08em;
  background: var(--accent); animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.lead { font-size: 18px; line-height: 1.55; max-width: 58ch; margin-top: 32px; color: color-mix(in srgb, var(--text) 82%, transparent); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.section { padding: 48px 0 72px; scroll-margin-top: 72px; }
.section-label {
  display: flex; gap: 0.6em; margin: 0 0 12px;
  font: 500 14px/1.4 var(--font-heading); color: var(--accent-ink);
}
.section-label::before { content: "$"; color: color-mix(in srgb, var(--text) 55%, transparent); }
.rule { height: 1px; background: var(--divider); margin-bottom: 40px; }
.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px clamp(32px, 6vw, 96px);
}
.about-grid h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }
.about-text { display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.6; color: color-mix(in srgb, var(--text) 82%, transparent); }

.services {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.service { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.service h3 { font-size: 17px; line-height: 1.25; }
.service p { font-size: 15px; line-height: 1.55; }

.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 40px clamp(32px, 6vw, 96px); align-items: start;
}
.contact-list { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 16px 32px; font-size: 16px; line-height: 1.5; font-style: normal; }
.contact-list dt {
  font: 500 13px/1.5 var(--font-heading); letter-spacing: 0.02em; text-transform: lowercase;
  color: color-mix(in srgb, var(--text) 70%, transparent); padding-top: 2px;
}
.contact-list dd { margin: 0; }

.map { margin: 0; aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 24px; }
.map iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.map-facade { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 34ch; }
.map-facade svg { color: var(--accent); }
.map-note { font-size: 13px; color: color-mix(in srgb, var(--text) 65%, transparent); }

.site-footer { border-top: 1px solid var(--divider); }
.site-footer .inner {
  max-width: 1200px; margin: 0 auto; padding: 24px var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: 13px; line-height: 1.5; color: color-mix(in srgb, var(--text) 70%, transparent);
}
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-ink); cursor: pointer; }
.linklike:hover { color: var(--accent-ink-hover); text-decoration: underline; }

/* - consent banner (only shown when Google Analytics is configured) - */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30;
  max-width: 560px; margin-left: auto;
  padding: 20px; background: var(--bg); color: var(--text);
  border: 1px solid var(--divider);
  box-shadow: 0 12px 32px color-mix(in srgb, #2b2b2d 22%, transparent);
  font-size: 14px;
}
.consent[hidden] { display: none; }
.consent h2 { font-size: 15px; margin-bottom: 8px; }
.consent .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* - legal pages - */
.legal { max-width: 75ch; padding: clamp(48px, 8vw, 96px) 0 72px; }
.legal h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.15; margin-bottom: 24px; }
.legal h2 { font-size: 18px; margin: 32px 0 10px; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; color: color-mix(in srgb, var(--text) 85%, transparent); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 1.2em; margin: 8px 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; }
}
@media (max-width: 560px) {
  .site-nav .nav-link { font-size: 13px; }
  .contact-list { grid-template-columns: 1fr; gap: 4px; }
  .contact-list dd { margin-bottom: 12px; }
}
@media print {
  body { background: #fff; color: #000; }
  .site-nav, .map, .consent, .nav-tools { display: none; }
}
