/* LPTiE — Laboratorium Protetyki Trwałej i Estetycznej */

:root {
  --bg: #111a2e;
  --bg-soft: #18223a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-elev: rgba(255, 255, 255, 0.025);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2f7;
  --text-dim: #aab4ca;
  --text-muted: #7a849c;
  --accent: #79d6ff;
  --rainbow: linear-gradient(90deg, #6dd0ff 0%, #a18cff 35%, #ff8fc8 65%, #ffd58a 100%);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 6px 24px rgba(0, 0, 0, 0.22);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

body {
  background:
    radial-gradient(900px 500px at 85% -120px, rgba(109, 208, 255, 0.10), transparent 60%),
    radial-gradient(800px 500px at -120px 18%, rgba(193, 164, 255, 0.08), transparent 60%),
    radial-gradient(700px 400px at 110% 65%, rgba(255, 180, 214, 0.06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #b8e6ff; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* HEADER */
.site-header {
  padding: 18px 0 12px;
  position: relative;
  z-index: 20;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand img.logo {
  height: 40px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(109, 208, 255, 0.25));
}
.brand .mark {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.94rem;
  transition: all 0.18s;
}
.nav a:hover { color: var(--text); }
.nav a.active {
  color: var(--text);
  background: var(--bg-card);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: calc(100% + 4px);
    right: 16px;
    left: 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    transform-origin: top right;
    transform: scaleY(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
  }
  .nav.is-open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }
  .nav a {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    text-align: left;
  }
  .nav a + a { border-top: 1px solid var(--border); border-radius: 0; }
  .nav a:first-child { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
  .nav a:last-child { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
}

/* HERO — bez maski na dole, pełna grafika */
.hero {
  width: 100%;
  margin: 0 0 16px;
}
.hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  object-position: center top;
}

/* INTRO + LEADY */
.intro {
  padding: 12px 0 24px;
  text-align: center;
}
.intro h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  margin: 0 0 14px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.18;
}
.intro h1 .gradient,
.gradient {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.intro .lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 0 auto 8px;
  max-width: 66ch;
}
.intro .lead + .lead {
  font-size: 0.98rem;
  margin-top: 6px;
  color: var(--text-muted);
}

/* SERVICES grid */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.service {
  padding: 22px 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.service::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--rainbow);
  opacity: 0.5;
}
.service:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.service h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.service p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* SECTION BAND */
.section-band {
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(109, 208, 255, 0.08), transparent 60%),
    radial-gradient(500px 240px at 90% 100%, rgba(193, 164, 255, 0.07), transparent 60%),
    rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 28px 0;
  padding: 44px 0;
  position: relative;
}
.section-band::before,
.section-band::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--rainbow);
  opacity: 0.35;
}
.section-band::before { top: -1px; }
.section-band::after { bottom: -1px; }

/* PILLARS */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.pillar {
  padding: 24px 22px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}
.pillar::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--rainbow);
}
.pillar:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.pillar-num {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: transparent;
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 700;
  margin-bottom: 10px;
}
.pillar h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
}
.pillar p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* KONTAKT */
.contact { padding: 28px 0 40px; }
.contact-rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px 36px;
}
.contact-row .label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-bottom: 6px;
}
.contact-row .value {
  font-size: 1.08rem;
  color: var(--text);
  font-weight: 500;
}
.contact-row a.value { color: var(--text); border-bottom: 1px solid transparent; transition: border-color 0.18s; }
.contact-row a.value:hover { color: var(--text); border-bottom-color: var(--accent); }

/* SECTIONS */
.section { padding: 28px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.section-head h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.1px;
  color: var(--text-dim);
}
.section-head .hint {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* MAP */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  aspect-ratio: 16 / 7;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.85);
}

/* FOOTER */
.site-footer {
  margin-top: auto;
  padding: 24px 0 32px;
  color: var(--text-muted);
  font-size: 0.86rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

/* PRICE TOOLBAR — search + categories */
.price-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.price-search {
  position: relative;
  flex: 1 1 220px;
  min-width: 180px;
}
.price-search input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
}
.price-search input:focus {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}
.price-search input::placeholder { color: var(--text-muted); }
.price-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}
.price-categories {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cat-btn {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.16s;
  font-family: inherit;
}
.cat-btn:hover { color: var(--text); border-color: var(--border-strong); }
.cat-btn.active {
  background: var(--rainbow);
  color: #0a0e1a;
  border-color: transparent;
  font-weight: 600;
}

/* PRICE TABLE */
.price-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
}
.price-table thead th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  font-weight: 600;
}
.price-table thead th:last-child { text-align: right; }
.price-table tbody tr.row td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  transition: background 0.14s;
}
.price-table tbody tr.row:hover td {
  background: var(--bg-card-hover);
}
.price-table tbody tr.row:last-child td { border-bottom: 0; }
.price-table tbody tr.group td {
  padding: 22px 20px 12px;
  background: linear-gradient(90deg, rgba(109, 208, 255, 0.07), transparent 70%);
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.price-table .name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}
.price-table .desc {
  display: block;
  color: var(--text-muted);
  font-size: 0.86rem;
  margin-top: 4px;
  font-weight: 400;
}
.price-table .price {
  text-align: right;
  color: var(--text-dim);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}
.price-empty {
  padding: 22px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.94rem;
}
@media (max-width: 560px) {
  .price-table thead th, .price-table tbody tr.row td { padding: 12px 14px; }
  .price-table tbody tr.group td { padding: 18px 14px 10px; }
}

/* FILE CARDS — bogatsze */
.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.file-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.file-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--rainbow);
  opacity: 0.7;
}
.file-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  color: var(--text);
}
.file-card .icon {
  width: 48px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(150deg, rgba(109, 208, 255, 0.22), rgba(193, 164, 255, 0.22));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.file-card .icon svg { width: 22px; height: 22px; }
.file-card .icon .ext {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
  text-transform: uppercase;
}
.file-card .info {
  flex: 1;
  min-width: 0;
}
.file-card .file-name {
  font-size: 1rem;
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-card .file-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.file-card .file-meta .dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  margin: 0 6px;
  vertical-align: middle;
}
.file-card .dl {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: all 0.18s;
}
.file-card .dl svg { width: 18px; height: 18px; }
.file-card:hover .dl {
  background: var(--rainbow);
  color: #0a0e1a;
  border-color: transparent;
}

/* DROPZONE */
.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 44px 22px;
  text-align: center;
  background: var(--bg-card);
  transition: all 0.18s;
  cursor: pointer;
}
.dropzone.is-drag {
  border-color: var(--accent);
  background: rgba(109, 208, 255, 0.06);
}
.dropzone .dz-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(109, 208, 255, 0.16), rgba(255, 180, 214, 0.14));
  border: 1px solid var(--border);
}
.dropzone .dz-icon svg { width: 32px; height: 32px; }
.dropzone h3 { margin: 0 0 6px; font-weight: 500; }
.dropzone p { margin: 0; color: var(--text-dim); font-size: 0.94rem; }
.dropzone input[type="file"] { display: none; }

.dz-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dz-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  text-align: left;
}
.dz-item .dz-meta { color: var(--text-muted); font-size: 0.8rem; }
.dz-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.94rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s;
  font-family: inherit;
}
.btn:hover { background: var(--bg-card-hover); border-color: var(--accent); color: var(--text); }
.btn-primary {
  background: var(--rainbow);
  color: #0a0e1a;
  border-color: transparent;
  font-weight: 600;
}
.btn-primary:hover { color: #0a0e1a; filter: brightness(1.08); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.notice {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .brand img.logo { height: 34px; }
  .brand .mark { font-size: 1.05rem; }
  .section { padding: 22px 0; }
  .intro h1 { font-size: 1.6rem; }
  .intro .lead { font-size: 0.98rem; }
}
