/* NETbis · Brzostek — style strony */

@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --net: #CD1D23;       /* czerwień z logo NETbis */
  --net-dark: #A8171C;
  --net-tint: #FBE9E8;
  --net-light: #F28B8F; /* na ciemnym tle */
  --it: #034EA2;        /* granat z logo NETbis */
  --it-dark: #023A7A;
  --it-light: #8FB5E8;  /* na ciemnym tle */
  --ink: #15201E;
  --ink-2: #1F2B28;
  --paper: #F3F0E8;
  --sand: #EAE5D9;
  --line: #D8D2C4;
  --line-soft: #E3DED2;
  --muted: #4A5552;
  --body: #333D3A;
  --dim: #C9CFC9;
  --white: #FFFFFF;

  --display: "Bricolage", "Segoe UI", system-ui, sans-serif;
  --sans: "Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(16px, 5vw, 96px);
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--it); }
a:hover { color: var(--it-dark); }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; }
:focus-visible { outline: 3px solid var(--it); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; }
.muted { color: var(--muted); }

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

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 48px; padding: 0 22px; }
.btn-square { border-radius: 10px; }
.btn-net { background: var(--net); color: var(--white); }
.btn-net:hover { background: var(--net-dark); color: var(--white); }
.btn-it { background: var(--it); color: var(--white); }
.btn-it:hover { background: var(--it-dark); color: var(--white); }
.btn-it-outline { border: 1.5px solid var(--it); color: var(--it); background: transparent; }
.btn-it-outline:hover { background: var(--it); color: var(--white); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2A3734; color: var(--paper); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--white); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 240, 232, .94); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; flex-shrink: 0; }
.brand-netbis { width: 168px; }
.brand-brzostek { width: 128px; }
.brand-sep { width: 1px; height: 34px; background: #C9C2B2; }
.menu { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.menu a { color: var(--ink); text-decoration: none; }
.menu a:hover { color: var(--it); }
.menu .menu-it { color: var(--it); font-weight: 600; }
.menu .btn-ink { color: var(--paper); }
.menu-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
}

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.kicker { font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.kicker-net { color: var(--net); }
.kicker-it { color: var(--it); }
.kicker-net-light { color: var(--net-light); }
.kicker-it-light { color: var(--it-light); }
p.mono.kicker-net, p.mono.kicker-it, p.mono.kicker-it-light, p.mono.kicker-net-light { text-transform: uppercase; }
h1 { font-weight: 800; font-size: clamp(42px, 6vw, 76px); line-height: 1.0; letter-spacing: -0.02em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--body); max-width: 640px; }
.hero-cards { display: flex; flex-direction: column; gap: 16px; }
.pick {
  display: flex; flex-direction: column; gap: 10px; padding: 28px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s;
}
.pick:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 28px -16px rgba(21, 32, 30, .35); }
.pick-net { border-top: 6px solid var(--net); }
.pick-net .mono { color: var(--net); }
.pick-it { border-top: 6px solid var(--it); }
.pick-it .mono { color: var(--it); }
.pick-title { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.1; }
.pick .muted { font-size: 16px; }

/* ---------- fakty ---------- */
.facts { background: var(--ink); color: var(--paper); padding: 56px 0; }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.facts-grid > div { display: flex; flex-direction: column; gap: 8px; }
.facts-grid p:not(.fact-big) { font-size: 16px; color: var(--dim); }
.fact-big { font-family: var(--display); font-weight: 700; font-size: 26px; }
.fact-big.mono { font-family: var(--mono); font-weight: 500; font-size: 26px; letter-spacing: 0; }

/* ---------- sekcje ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-tight { padding-top: 0; }
.section-sand { background: var(--sand); }
.section > .wrap { display: flex; flex-direction: column; gap: 48px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.section-head .btn-row { margin-top: 10px; }
h2 { font-weight: 800; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.05; }
h3 { font-weight: 700; font-size: 26px; line-height: 1.15; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.offer, .card {
  display: flex; flex-direction: column; gap: 16px; padding: 36px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.offer { border-top: 6px solid var(--net); gap: 18px; }
.offer h3 { font-weight: 800; font-size: 30px; line-height: 1.05; }
.card-flat { border: 0; padding: 32px; gap: 12px; }
.card-flat h3 { font-size: 24px; }
.card ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

.price { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -0.02em; }
.price-from { font-size: 24px; font-weight: 700; letter-spacing: 0; }
.price-unit { font-family: var(--sans); font-size: 17px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.specs { margin: 0; padding-top: 16px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 6px; }
.specs div { display: flex; justify-content: space-between; gap: 12px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }

/* dostępność adresu */
.availability {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 16px;
  padding: 32px 36px; background: var(--net-tint); border-radius: var(--radius);
}
.availability-field { display: flex; flex-direction: column; gap: 8px; }
.availability label { font-weight: 600; font-size: 18px; }
.availability input {
  min-height: 56px; padding: 0 18px; font: inherit; color: var(--ink);
  background: var(--white); border: 1px solid #E3A9A7; border-radius: 10px;
}
.availability-note { grid-column: 1 / -1; font-size: 16px; color: var(--muted); }
.availability-note a { font-weight: 600; color: var(--net-dark); }

/* pasy w sekcji IT */
.band {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 64px; align-items: center;
  padding: 44px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.band > div { display: flex; flex-direction: column; gap: 12px; }
.band h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; }
.band p { color: var(--body); }
.band .band-tags { color: var(--ink); font-weight: 600; }
.band-dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.band-dark p { color: var(--dim); }
.band-dark .band-tags { color: var(--paper); font-weight: 400; }

/* samorządy */
.split { display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 96px; align-items: start; }
.numbered { list-style: none; padding: 0; border-bottom: 1px solid var(--line); }
.numbered li { display: flex; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); font-size: 19px; }
.numbered .mono { color: var(--net); min-width: 32px; font-size: 15px; padding-top: 3px; }

/* dlaczego my */
.section > .wrap.grid-3 { display: grid; }
.why { gap: 48px; }
.why > div { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; border-top: 3px solid var(--ink); }

/* ---------- kontakt ---------- */
.contact-section { padding-bottom: clamp(56px, 7vw, 96px); }
.contact {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 96px;
  padding: clamp(32px, 5vw, 64px); background: var(--ink); color: var(--paper); border-radius: 24px;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact h2 { font-size: clamp(36px, 4vw, 48px); }
.contact-lead { color: var(--dim); font-size: 18px; }
.contact-block { display: flex; flex-direction: column; gap: 6px; }
.contact-block a { color: var(--paper); text-underline-offset: 3px; width: fit-content; }
.contact-block a:hover { color: var(--white); }
.contact-block .contact-link-it { color: var(--it-light); font-weight: 600; }
.contact-address { padding-top: 18px; border-top: 1px solid #33413D; }
.dim { color: var(--dim); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; color: var(--dim); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0 16px; font: inherit; color: var(--paper);
  background: var(--ink-2); border: 1px solid #4A5552; border-radius: 10px;
}
.field textarea { padding: 14px 16px; resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23C9CFC9' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--it-light); outline-offset: 1px; border-color: var(--it-light); }
.field [aria-invalid="true"] { border-color: var(--net-light); }
.contact-form .btn { align-self: flex-start; padding: 0 32px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.55em; font-weight: 600; }
.form-status.ok { color: #9FE0B4; }
.form-status.err { color: var(--net-light); }
.form-legal { font-size: 14px; color: var(--dim); }
.form-legal a { color: var(--paper); }

/* ---------- stopka ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 40px 64px; }
.footer-co { display: flex; flex-direction: column; gap: 4px; }
.footer-co img { height: 24px; width: auto; align-self: flex-start; margin-bottom: 8px; }
.footer-co strong { color: var(--ink); }
.footer-end { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.footer-end a { color: var(--muted); }

/* pasek „zadzwoń” na telefonie */
.callbar { display: none; }

/* ---------- strona tekstowa (polityka) ---------- */
.doc { padding: clamp(48px, 7vw, 96px) 0; }
.doc .wrap { max-width: 860px; display: flex; flex-direction: column; gap: 18px; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 8px; }
.doc h2 { font-size: 26px; margin-top: 24px; }
.doc ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc .muted { font-size: 15px; }

/* ============ responsywność ============ */
@media (max-width: 1180px) {
  .menu { gap: 16px; font-size: 14px; }
  .brand-netbis { width: 140px; }
  .brand-brzostek { width: 96px; }
}

@media (max-width: 1024px) {
  .menu-toggle { display: inline-flex; }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--paper); border-bottom: 1px solid var(--line); font-size: 17px;
    box-shadow: 0 16px 24px -20px rgba(21, 32, 30, .5);
  }
  .menu.open { display: flex; }
  .menu a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .menu .btn { margin-top: 14px; border-bottom: 0; }
  .header-row { position: relative; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-cards { flex-direction: row; }
  .hero-cards .pick { flex: 1; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .band, .contact { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-end { grid-column: 1 / -1; align-items: flex-start; }
}

@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: 72px; }
  html { scroll-padding-top: 80px; }
  .header-row { min-height: 68px; gap: 12px; }
  .brand { gap: 12px; }
  .brand-netbis { width: 110px; }
  .brand-brzostek { width: 78px; }
  .brand-sep { height: 26px; }
  .menu-toggle span { display: none; }
  .menu-toggle { padding: 0 11px; }

  .hero-copy { gap: 22px; }
  .hero-cards { flex-direction: column; }
  .btn-row .btn { flex: 1 1 100%; }
  .facts { padding: 40px 0; }
  .facts-grid { gap: 24px; }
  .fact-big, .fact-big.mono { font-size: 21px; }
  .facts-grid p:not(.fact-big) { font-size: 15px; }
  .grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .offer, .card { padding: 28px 24px; }
  .price { font-size: 48px; }
  .availability { grid-template-columns: 1fr; padding: 24px; }
  .availability .btn { width: 100%; }
  .band { padding: 28px 24px; }
  .numbered li { font-size: 17px; gap: 16px; }
  .why { gap: 28px; }
  .contact { border-radius: 18px; padding: 28px 20px; }
  .contact-section .wrap { padding-inline: 8px; }
  .form-2 { grid-template-columns: 1fr; }
  .contact-form .btn { align-self: stretch; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding-bottom: env(safe-area-inset-bottom); background: var(--ink);
  }
  .callbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60px;
    color: var(--white); text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.2;
  }
  .callbar span { font-size: 12px; font-weight: 500; opacity: .85; }
  .callbar-net { background: var(--net); }
  .callbar-it { background: var(--it); }
}

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

@media print {
  .site-header, .callbar, .contact-form, .availability { display: none !important; }
  body { background: #fff; padding: 0; }
}
