:root {
  --red: #ed1c24;
  --red-dark: #b80f16;
  --black: #0e0e10;
  --ink: #17171a;
  --muted: #6f737b;
  --line: #e6e8ec;
  --soft: #f5f6f8;
  --white: #ffffff;
  --radius: 24px;
  --shadow: 0 22px 80px rgba(0, 0, 0, .14);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 1000;
  background: var(--red);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 10px;
}
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.brand-logo { height: 42px; width: auto; }
.brand-subtitle {
  display: inline-grid;
  place-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-left: 3px solid var(--red);
  font-weight: 600;
  letter-spacing: .1em;
  font-size: 12px;
}
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #333;
  font-weight: 600;
  font-size: 14px;
}
.main-nav a:hover { background: var(--soft); color: var(--red); }
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.nav-toggle span { display: block; width: 28px; height: 3px; margin: 5px 0; background: var(--black); border-radius: 99px; }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(237,28,36,.42), transparent 28%),
    linear-gradient(110deg, rgba(0,0,0,.96), rgba(0,0,0,.78) 45%, rgba(0,0,0,.45)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 1px, transparent 1px 18px);
}
.hero::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -170px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 80px solid rgba(237,28,36,.22);
}
.hero-grid {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.1fr .74fr;
  align-items: center;
  gap: 60px;
  padding: 84px 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: #808285;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .095em;
  font-size: 16px;
  line-height: 1.25;
  font-family: inherit;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 99px; }
h1, h2, h3 { line-height: 1.08; margin: 0; font-weight: 600; }
strong { font-weight: 600; }
h1 { font-size: clamp(42px, 7vw, 78px); letter-spacing: -.06em; max-width: 900px; }
h2 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -.045em; }
h3 { font-size: 22px; letter-spacing: -.02em; }
.lead { font-size: clamp(18px, 2.1vw, 23px); color: rgba(255,255,255,.84); max-width: 760px; margin: 28px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 16px 40px rgba(237,28,36,.28); }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { color: var(--white); border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); }
.btn-secondary:hover { background: rgba(255,255,255,.14); }
.btn-wide { width: 100%; border: 0; }
.hero-note { color: rgba(255,255,255,.68); font-size: 14px; margin-top: 18px; }
.hero-card {
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 42px);
  box-shadow: var(--shadow);
}
.stat span { display: block; font-size: 112px; line-height: .84; font-weight: 600; letter-spacing: -.08em; color: var(--red); }
.stat strong { display: block; font-size: 24px; margin-top: 16px; }
.stat p { margin: 6px 0 0; color: rgba(255,255,255,.7); }
.hero-checklist { margin: 34px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.hero-checklist li { position: relative; padding-left: 30px; color: rgba(255,255,255,.86); }
.hero-checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--red); font-weight: 600; }

.section { padding: 96px 0; }
.two-col { display: grid; grid-template-columns: .85fr 1fr; gap: 70px; align-items: start; }
.text-block { font-size: 18px; color: #383b41; }
.text-block p:first-child { margin-top: 0; }
.section-heading p:not(.eyebrow) { color: var(--muted); max-width: 720px; margin: 18px auto 0; font-size: 18px; }
.centered { text-align: center; }
.centered .eyebrow { justify-content: center; }
.services { background: var(--soft); }
.service-grid { margin-top: 46px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.service-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,.1); }
.service-card p { color: var(--muted); margin: 0; }
.process { padding-top: 0; background: var(--soft); }
.process-panel {
  background: var(--black);
  color: var(--white);
  border-radius: calc(var(--radius) + 10px);
  padding: clamp(30px, 5vw, 58px);
  display: grid;
  grid-template-columns: .7fr 1fr;
  gap: 44px;
  box-shadow: var(--shadow);
}
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.process-steps div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); padding: 22px; border-radius: 20px; }
.process-steps span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--red); font-weight: 600; margin-bottom: 18px; }
.process-steps p { margin: 0; color: rgba(255,255,255,.82); }

.news-section { background: var(--white); }
.news-grid { margin-top: 38px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  min-height: 230px;
  box-shadow: 0 12px 36px rgba(0,0,0,.06);
}
.news-card time {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.news-card p { color: var(--muted); margin: 14px 0 0; }

.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.gallery-filter {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
}
.gallery-filter.is-active { background: var(--black); color: var(--white); border-color: var(--black); }
.gallery-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  position: relative;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: var(--soft);
  border-radius: 22px;
  cursor: zoom-in;
  aspect-ratio: 1.32 / 1;
  box-shadow: 0 12px 36px rgba(0,0,0,.08);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-caption {
  position: absolute;
  inset: auto 12px 12px 12px;
  background: rgba(0,0,0,.68);
  color: var(--white);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  text-align: left;
}
.gallery-empty { text-align: center; color: var(--muted); }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.9);
  display: grid;
  place-items: center;
  padding: 44px 20px;
}
.lightbox[hidden] { display: none !important; }
.lightbox img { max-height: 78vh; width: auto; border-radius: 18px; box-shadow: var(--shadow); }
.lightbox p { color: var(--white); text-align: center; margin: 14px 0 0; }
.lightbox-close { position: absolute; right: 18px; top: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--red); color: var(--white); font-size: 30px; cursor: pointer; }

.contact-section { background: linear-gradient(180deg, #fff, #f4f5f7); }
.contact-grid { display: grid; grid-template-columns: .85fr 1fr; gap: 52px; align-items: start; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.contact-cards { display: grid; gap: 12px; margin-top: 28px; }
.contact-card { display: block; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--white); }
.contact-card span { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.contact-card strong { display: block; margin-top: 5px; font-size: 18px; }
.contact-card:hover strong { color: var(--red); }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px); padding: clamp(22px, 4vw, 38px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 8px; margin-bottom: 16px; font-weight: 600; }
input, textarea, select {
  width: 100%;
  border: 1px solid #d9dde4;
  border-radius: 16px;
  background: #fff;
  min-height: 52px;
  padding: 12px 14px;
  color: var(--ink);
  outline: none;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(237,28,36,.1); }
input[type="file"] { min-height: 58px; padding: 6px; cursor: pointer; }
input[type="file"]::file-selector-button {
  min-height: 44px;
  margin-right: 12px;
  border: 0;
  border-radius: 13px;
  padding: 10px 16px;
  background: var(--red);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
input[type="file"]::file-selector-button:hover { background: var(--red-dark); }
input[type="file"]::-webkit-file-upload-button {
  min-height: 44px;
  margin-right: 12px;
  border: 0;
  border-radius: 13px;
  padding: 10px 16px;
  background: var(--red);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.file-field small { color: var(--muted); font-weight: 500; }
.check-field { display: flex; grid-template-columns: auto 1fr; align-items: flex-start; gap: 10px; font-weight: 600; color: #3a3d44; }
.check-field input { width: 20px; min-height: 20px; margin-top: 3px; }
.check-field a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

.site-footer { background: var(--black); color: var(--white); padding: 46px 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; align-items: start; }
.footer-logo { height: 70px; width: auto; max-width: 230px; margin-bottom: 8px; }
.site-footer p { color: rgba(255,255,255,.72); margin: 8px 0 0; }
.site-footer a:hover { color: var(--red); }
.footer-legal { font-size: 14px; }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }

.legal-main { min-height: 100vh; padding: 118px 0 82px; background: var(--soft); }
.legal-card { max-width: 920px; margin: 0 auto; padding: clamp(24px, 5vw, 54px); border: 1px solid var(--line); border-radius: 28px; background: var(--white); box-shadow: var(--shadow); }
.legal-card h1 { margin-bottom: 20px; }
.legal-card h2 { margin-top: 36px; font-size: clamp(22px, 3vw, 30px); }
.legal-card p, .legal-card li { color: #454a53; }
.legal-card ul { padding-left: 22px; }
.legal-card a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.legal-card .btn.btn-primary, .legal-card .btn.btn-primary:visited { color: var(--white); text-decoration: none; }
.legal-card .btn.btn-primary:hover { color: var(--white); }
.legal-meta { margin-bottom: 30px; color: var(--muted); }
.legal-back { margin-top: 36px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero-grid, .two-col, .process-panel, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; gap: 36px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr; }
  .gallery-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .container { width: min(100% - 28px, var(--container)); }
  .header-inner { min-height: 68px; }
  .brand-logo { height: 34px; max-width: 190px; }
  .brand-subtitle { font-size: 10px; padding-left: 7px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: var(--white);
    padding: 18px 14px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 50px rgba(0,0,0,.12);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px; }
  .hero-grid { padding: 62px 0; }
  .hero-actions { display: grid; }
  .btn { width: 100%; }
  .hero-card { padding: 24px; }
  .stat span { font-size: 86px; }
  .section { padding: 70px 0; }
  .service-grid, .gallery-grid, .news-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .footer-logo { height: 60px; max-width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .btn:hover, .service-card:hover { transform: none; }
}

/* Finalizacja treści i oficjalnego logo */
.brand-logo-official { display: block; height: 78px; max-width: 260px; }
.contact-card-phones strong + strong { margin-top: 2px; }
.contact-card-phones a:hover { color: var(--red); }
.hero-checklist { font-size: 15px; }
.hero-checklist li { line-height: 1.45; }

@media (max-width: 760px) {
  .brand-logo-official { height: 58px; max-width: 190px; }
  .hero-checklist { font-size: 14px; }
}
