/* =========================================
   1. UTILITIES & RESET
   ========================================= */
.visually-hidden {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

:root {
  /* Palette extracted from your brand mockups */
  --navy-900: #16222E;
  --navy-800: #1A2E3D;
  --blue-700: #184A76;    /* primary */
  --blue-650: #1E5888;
  --blue-500: #30719E;
  --orange-500: #E38F20;  /* accent */
  --orange-600: #D77F12;
  --green-500: #878B43;   /* accent */
  --sky-50: #F2F5F9;
  --slate-100: #EEF2F6;
  --slate-200: #E5E9EF;
  --slate-600: #5B6B77;
  --white: #FFFFFF;

  --radius: 18px;
  --shadow: 0 18px 40px rgba(22, 34, 46, .14);
  --shadow-soft: 0 10px 22px rgba(22, 34, 46, .10);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--navy-900);
  background: linear-gradient(180deg, var(--sky-50), #F5F7FA 45%, var(--sky-50));
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* Layout helpers */
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.grid { display: grid; gap: 18px; }

/* Scroll offsets for fixed header */
section, [id] { scroll-margin-top: 92px; }

/* =========================================
   2. BUTTONS & UI ELEMENTS
   ========================================= */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 999px;
  background: rgba(48, 113, 158, .10);
  border: 1px solid rgba(48, 113, 158, .18);
  color: var(--blue-700);
  font-weight: 650; letter-spacing: .2px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  user-select: none;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0px); }
.btn-primary { background: linear-gradient(135deg, var(--blue-700), var(--blue-650)); color: #fff; }
.btn-ghost {
  background: rgba(255, 255, 255, .9);
  border-color: rgba(22, 34, 46, .12);
}
.btn-accent { background: linear-gradient(135deg, var(--orange-500), var(--orange-600)); color: #fff; }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(22, 34, 46, .10);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  color: rgba(22, 34, 46, .82);
}
.badge i {
  width: 10px; height: 10px; border-radius: 99px;
  background: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(227, 143, 32, .18);
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, #14171b, #0b0c0e);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  backdrop-filter: none;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  position: relative;
}

/* Brand / Logo */
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  min-width: 220px;
}
.logoMark {
  height: 44px; width: 44px;
  border-radius: 16px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, .35);
  filter: none;
}
.brandText { display: flex; flex-direction: column; line-height: 1.05; }
.brandName { font-weight: 900; letter-spacing: -.3px; font-size: 16px; color: rgba(255, 255, 255, .96); }
.brandTag { font-weight: 750; color: rgba(255, 255, 255, .70); font-size: 12.5px; margin-top: 2px; }

/* Desktop Nav Links */
.navlinks { display: flex; align-items: center; gap: 8px; }
.navlinks a {
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  line-height: 1.05;
  color: rgba(255, 255, 255, .88);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .7px;
  font-weight: 850;
  padding: 10px 9px;
  border-radius: 12px;
}
.navlinks a:hover { background: rgba(255, 255, 255, .08); }
.navlinks a.navBack {
  background: rgba(227, 143, 32, .12);
  border: 1px solid rgba(227, 143, 32, .28);
  font-weight: 900;
}
.navlinks a.navBack:hover { background: rgba(227, 143, 32, .18); }

/* Hamburger Menu (Mobile) */
.hamburger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 18px rgba(0, 0, 0, .30);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.hamburger svg { width: 22px; height: 22px; display: block; }

/* Mobile Menu Dropdown */
.mobileMenu {
  display: none;
  background: linear-gradient(180deg, #0f1114, #0b0c0e);
  border-top: 1px solid rgba(255, 255, 255, .10);
  padding: 12px 0 18px;
}
.mobileMenu .container { display: grid; gap: 8px; }
.mobileMenu a {
  display: block;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .7px;
  font-weight: 850;
  font-size: 13px;
  padding: 12px 12px;
  border-radius: 14px;
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
}
.mobileMenu a:hover { background: rgba(255, 255, 255, .10); }

/* =========================================
   4. HOME PAGE HERO SECTIONS
   ========================================= */
/* Hero Split (Dlaczego My) */
.heroSplit {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  align-items: stretch;
}
.heroImage {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #f4f6f9;
  height: 100%;
  min-height: 260px;
  display: flex;
}
.heroImage img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

.heroSide { display: flex; flex-direction: column; gap: 14px; height: 100%; }

/* Brand Card inside Hero */
.brandCard { display: flex; align-items: center; gap: 16px; }
.brandLogoWrap { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.brandCard .brandLogo {
  width: 100%; height: auto;
  max-width: 380px;
  max-height: 150px; /* adjusted for desktop */
  object-fit: contain;
  flex: 0 0 auto;
}
.brandCard .meta { display: flex; flex-direction: column; justify-content: center; }
.brandCard .meta strong { display: block; font-size: 18px; line-height: 1.15; }
.brandCard .meta span { display: block; margin-top: 2px; color: rgba(22, 34, 46, .70); font-weight: 650; }

/* Checklist Style */
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.checklist li {
  display: flex; gap: 10px; align-items: flex-start;
  color: rgba(22, 34, 46, .82);
  font-weight: 650;
}
.checklist li .tick {
  width: 20px; height: 20px; border-radius: 8px;
  background: rgba(135, 139, 67, .18);
  border: 1px solid rgba(135, 139, 67, .35);
  display: grid; place-items: center;
  flex: 0 0 auto;
  margin-top: 1px;
  font-weight: 900;
  color: rgba(22, 34, 46, .85);
}

/* =========================================
   5. SUBPAGES (DACHY, ELEWACJE ETC.)
   ========================================= */
.breadcrumbs {
  font-size: 13px;
  color: rgba(255, 255, 255, .70);
  text-transform: uppercase;
  letter-spacing: .7px;
  font-weight: 850;
}
.breadcrumbs a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.heroSub { padding: 28px 0 18px; }
.heroSubStack { display: grid; gap: 18px; margin-top: 14px; }

.heroVisual {
  border-radius: var(--radius);
  border: 1px solid rgba(22, 34, 46, .10);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.heroVisual img { width: 100%; height: auto; display: block; }

/* Subpage Content Layouts */
.split2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px; align-items: start;
}

/* Chips / Tags */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(48, 113, 158, .08);
  border: 1px solid rgba(48, 113, 158, .16);
  color: rgba(22, 34, 46, .82);
  font-weight: 800;
  font-size: 13px;
}

/* Gallery Grid */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery .ph {
  border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(22, 34, 46, .10);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-soft);
}
.gallery img {
  width: 100%; height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover; display: block;
}

/* =========================================
   6. SERVICES GRID (HOME)
   ========================================= */
.servicesGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.serviceCard {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(22, 34, 46, .10);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.serviceCard h3 { margin: 0; font-size: 16px; letter-spacing: -.2px; }
.serviceImageLink {
  display: block; border-radius: 18px; overflow: hidden;
  aspect-ratio: 3 / 2;
}
.serviceImageLink picture,
.serviceImageLink img {
  width: 100%; height: 100%;
  display: block; object-fit: cover;
}

/* =========================================
   7. SECTIONS & CONTENT
   ========================================= */
section { padding: 42px 0; }
.sectionTop {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 18px;
}
.kicker { margin: 0; color: var(--blue-700); font-weight: 800; letter-spacing: .2px; }
h2 { margin: 6px 0 0; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -.4px; }
.muted { color: rgba(22, 34, 46, .70); line-height: 1.55; }
.card {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(22, 34, 46, .10);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

/* FAQ Details */
details { transition: all 0.2s; }

/* =========================================
   8. FORMS & CONTACT
   ========================================= */
.bottomTiles { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: stretch; }
.bottomTiles .bottomCard { height: 100%; }

form { display: grid; gap: 12px; }
label { font-weight: 750; font-size: 13px; color: rgba(22, 34, 46, .75); }
input, textarea, select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(22, 34, 46, .12);
  background: rgba(255, 255, 255, .95);
  font: inherit; outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(48, 113, 158, .45);
  box-shadow: 0 0 0 4px rgba(48, 113, 158, .14);
}
textarea { min-height: 120px; resize: vertical; }

/* Sales / Handlowcy */
.salesGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.salesCard { padding: 16px; }
.salesRow { display: flex; gap: 12px; align-items: center; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  flex: 0 0 56px;
  background: rgba(48, 113, 158, .12);
  display: flex; align-items: center; justify-content: center;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.salesName { font-weight: 900; letter-spacing: -.2px; }
.salesRole { font-size: 13px; }
.salesLinks { margin-top: 12px; display: grid; gap: 8px; }
.salesLinks a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(22, 34, 46, .10);
  text-decoration: none;
}
.waIcon { width: 18px; height: 18px; display: inline-block; border-radius: 5px; flex: 0 0 auto; }

/* =========================================
   9. FOOTER
   ========================================= */
footer {
  padding: 22px 0 34px;
  border-top: 1px solid rgba(22, 34, 46, .08);
  background: rgba(247, 249, 252, .88);
}
.footerInner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.small { font-size: 13px; color: rgba(22, 34, 46, .72); }
.links { display: flex; gap: 12px; flex-wrap: wrap; }
.links a { color: rgba(22, 34, 46, .72); text-decoration: none; }
.links a:hover { text-decoration: underline; }

/* =========================================
   10. PRIVACY CONSENT MODALS
   ========================================= */
.consentBackdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .68);
  backdrop-filter: blur(3px);
  z-index: 2000;
  display: none;
}
.consentModal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 26px));
  max-height: min(78vh, 720px);
  overflow: auto;
  z-index: 2001;
  display: none;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(22, 34, 46, .12);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}
.consentModal header {
  position: sticky; top: 0;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid rgba(22, 34, 46, .08);
  border-radius: 22px 22px 0 0;
  padding: 14px 16px;
  z-index: 1;
}
.consentModal header h3 { margin: 0; font-size: 16px; letter-spacing: -.2px; }
.consentBody {
  padding: 14px 16px 4px;
  color: rgba(22, 34, 46, .82);
  line-height: 1.55;
  font-size: 14px;
}
.consentBody .muted { color: rgba(22, 34, 46, .70); }
.consentActions {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(22, 34, 46, .08);
  border-radius: 0 0 22px 22px;
  background: rgba(247, 249, 252, .88);
}
.consentLink {
  font-weight: 800;
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.consentClose {
  width: 42px; height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(22, 34, 46, .12);
  background: rgba(255, 255, 255, .9);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  font-weight: 900;
}
.policyModal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(860px, calc(100vw - 26px));
  max-height: min(84vh, 860px);
  overflow: auto;
  z-index: 2002;
  display: none;
  background: rgba(255, 255, 255, .99);
  border: 1px solid rgba(22, 34, 46, .12);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}
.policyBody { padding: 14px 16px 18px; font-size: 14px; line-height: 1.55; color: rgba(22, 34, 46, .84); }
.policyBody h4 { margin: 14px 0 8px; font-size: 15px; }
.policyBody ul { margin: 6px 0 0; padding-left: 18px; }
.policyBadge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(48, 113, 158, .08);
  border: 1px solid rgba(48, 113, 158, .16);
  font-weight: 800;
  margin: 10px 0 2px;
}

@media (prefers-reduced-motion: reduce) {
  .consentModal, .policyModal { scroll-behavior: auto; }
}

/* =========================================
   11. RESPONSIVE MEDIA QUERIES
   ========================================= */
/* Hero & Layout adjust for Tablet/Mobile */
@media (max-width: 960px) {
  .heroSplit { grid-template-columns: 1fr; }
  .heroImage { min-height: 260px; }
  .nav { position: relative; }
  .navlinks { display: none; }
  .hamburger {
    display: inline-flex;
    position: absolute; right: 0; left: auto;
    transform: none; z-index: 5;
  }
  .brand { min-width: 0; }
}

@media (max-width: 920px) {
  .heroLogoWrap { padding: 14px; }
  .heroLogo { max-width: 420px; }
  .heroInner { grid-template-columns: 1fr; }
  .service { grid-column: span 12; }
  .twoCols { grid-template-columns: 1fr; }
  .bundle { grid-column: span 12; }
  .contactGrid { grid-template-columns: 1fr; }
  .burger { display: inline-grid; place-items: center; }
  .phone { display: inline-flex; }
  .fab { display: inline-flex; }
  .sectionTop { flex-direction: column; align-items: flex-start; }
  .nav { gap: 10px; }
  .brand img { height: 40px; }
  .whySplit { grid-template-columns: 1fr; }
  
  header { position: fixed; top: 0; left: 0; right: 0; }
  main { padding-top: 74px; }
  
  .brandName { font-size: 15px; }
  .brandTag { font-size: 12px; }
  
  .servicesGrid { grid-template-columns: 1fr; }
  .bottomTiles { grid-template-columns: 1fr; }
  .salesGrid { grid-template-columns: 1fr; }
  
  .heroSubInner { grid-template-columns: 1fr; }
  .heroSubCards { grid-template-columns: 1fr; }
  .split2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .statRow { grid-template-columns: 1fr; }
  .whyImage { padding: 0; }
  .whyImage img { border-radius: 0; }
}

@media (max-width: 700px) {
  .service { grid-column: span 12; }
}

@media (max-width: 520px) {
  .brandCard .brandLogo { height: 110px; }
}


/* =========================================
   FIX DO ZGODY RODO (CHECKBOX)
   ========================================= */

/* Kontener - układ checkboxa i tekstu */
.consent-row {
  display: grid;
  grid-template-columns: 20px 1fr; /* Checkbox ma stałe 20px, tekst resztę */
  gap: 12px;
  align-items: start; /* Tekst równo z górą checkboxa */
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(22, 34, 46, .75);
  user-select: none;
}

/* Nadpisujemy globalne style inputów dla tego konkretnego checkboxa */
.consent-row input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  min-height: 0;
  padding: 0;
  margin: 2px 0 0 0;
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  border: 1px solid rgba(22, 34, 46, .25);
  border-radius: 4px;
  display: grid;
  place-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.consent-row input[type="checkbox"]:checked {
  background-color: var(--blue-700);
  border-color: var(--blue-700);
}

.consent-row input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  background-color: #fff;
  transform: scale(0);
  transform-origin: center;
  transition: 0.12s transform ease-in-out;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.consent-row input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.consent-row:hover input[type="checkbox"] {
  border-color: var(--blue-500);
}

/* === NAPRAWA NAGŁÓWKA OKNA POLITYKI PRYWATNOŚCI === */

/* Zmiana koloru tytułu "Polityka prywatności" na biały */
.policyModal header h3 {
  color: #ffffff !important;
  margin: 0; /* dla pewności, żeby było równo */
}

/* Zmiana koloru krzyżyka (przycisku zamknij) na biały */
.policyModal header .consentClose {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important; /* Jasna obwódka przycisku */
}

/* Efekt po najechaniu na krzyżyk */
.policyModal header .consentClose:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: #ffffff !important;
}
