/* =====================================================
   KLOSAK — DACHY PŁASKIE
   Stylesheet main. Wszystkie kolory i odstępy sterowane
   przez zmienne CSS poniżej — edytuj tylko sekcję :root,
   żeby zmienić wygląd całej strony.
   ===================================================== */

:root {
  /* --- Kolory --- */
  --bg: #15181b;              /* tło główne — grafit/smoła */
  --bg-alt: #1c2024;          /* tło paneli na ciemnym tle */
  --surface: #ffffff;
  --surface-2: #f3f4f2;
  --text-light: #eceeef;      /* tekst na ciemnym tle */
  --text-light-muted: #a7aeb4;
  --text-dark: #15181b;       /* tekst na jasnym tle */
  --text-dark-muted: #4c555c;
  --accent: #009fb1;
  --accent-dark: #007d8d;
  --steel: #71828d;           /* stalowo-cynkowy szary — linie, ikony */
  --line-dark: #2b3136;
  --line-light: #d7dbde;
  --roof-line: #687276;

  /* --- Typografia --- */
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* --- Odstępy / kontener --- */
  --wrap: 1160px;
  --gap: clamp(1.5rem, 3vw, 3rem);
  --radius: 6px;
}

/* =====================================================
   RESET
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff;
  padding: .75em 1.25em; z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* =====================================================
   PRZYCISKI
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.6em;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost {
  border-color: currentColor;
  color: var(--text-light);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-block { width: 100%; margin-top: 1.5rem; }

/* =====================================================
   NAGŁÓWEK
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 24, 27, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.logo-mark {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
}
.logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: .02em;
  line-height: 1.1;
}
.logo-text em {
  font-style: normal;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel);
}

.nav-toggle {
  display: grid;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-light);
  transition: transform .2s ease, opacity .2s ease;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-family: var(--font-display);
  font-size: .92rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.primary-nav a:not(.nav-cta) {
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.primary-nav a:not(.nav-cta):hover {
  border-color: var(--accent);
  color: var(--accent);
}
.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: .55em 1.1em;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dark); }

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .primary-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .primary-nav.is-open { max-height: 420px; }
  .primary-nav a {
    padding: 1em clamp(1.25rem, 4vw, 2.5rem);
    border-bottom: 1px solid var(--line-dark);
  }
  .nav-cta { margin: 1em clamp(1.25rem, 4vw, 2.5rem); text-align: center; }
}
@media (min-width: 861px) {
  .nav-toggle { display: none; }
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(4rem, 10vw, 7rem);
  background: var(--bg);
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 23, 24, .94) 0%, rgba(20, 23, 24, .7) 42%, rgba(20, 23, 24, .28) 100%), url('../assets/images/dach-hero.jpg') center / cover;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--gap);
  align-items: center;
}
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  color: var(--accent);
  margin-bottom: .75em;
}
.eyebrow-dark { color: var(--accent-dark); }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  max-width: 16ch;
}
.lede {
  font-size: 1.08rem;
  color: var(--text-light-muted);
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-block: 1.5rem 1rem;
}
.hero-guarantee {
  font-size: .9rem;
  color: var(--steel);
  margin: 0;
}
.hero-guarantee::before { content: "✓ "; color: var(--accent); }


@media (min-width: 860px) {
  .hero-grid { display: block; }
  .hero-copy { max-width: 760px; }
}

/* =====================================================
   SEKCJE OGÓLNE
   ===================================================== */
section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-lede {
  color: var(--text-dark-muted);
  max-width: 62ch;
  font-size: 1.05rem;
}

.about { background: var(--surface); color: var(--text-dark); }
.about h2 { color: var(--text-dark); max-width: 18ch; }
.about-grid { display: grid; gap: var(--gap); align-items: start; }
.about p { color: var(--text-dark-muted); max-width: 58ch; }

.specialist-card {
  align-self: center;
  padding: 1rem 0 1rem 2rem;
  border-left: 4px solid var(--accent);
}
.specialist-role {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .75rem;
  color: var(--steel);
  margin-bottom: .5em;
}
.specialist-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: .35em;
}
.specialist-phone {
  font-weight: 600;
  color: var(--accent-dark);
  font-size: 1.05rem;
}

@media (min-width: 780px) {
  .about-grid { grid-template-columns: 1.4fr .9fr; }
}

/* --- Usługi --- */
.services { background: var(--bg); }
.services h2 { max-width: 20ch; }
.services h2, .coverage h2, .contact h2 { color: var(--text-light); }
.services .eyebrow, .coverage .eyebrow, .contact .eyebrow { color: var(--accent); }
.card-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-top: 5px solid var(--roof-line);
  border-radius: var(--radius);
  padding: 1.75rem;
  color: var(--text-dark);
  overflow: hidden;
}
.card h3 { font-size: 1.15rem; }
.card p { color: var(--text-dark-muted); margin: 0; font-size: .96rem; }
.service-photo {
  height: 150px;
  margin: -1.75rem -1.75rem 1.5rem;
  width: calc(100% + 3.5rem);
  max-width: none;
  object-fit: cover;
}
.service-photo-warranty {
  background: #f3f4f2;
  object-fit: contain;
}

/* --- Dlaczego my --- */
.why { background: var(--surface); color: var(--text-dark); }
.why h2 { color: var(--text-dark); max-width: 22ch; }
.why-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 2rem;
  margin-top: 2.25rem;
  justify-content: center;
}
.why-item { flex: 1 1 220px; max-width: 350px; }
.why-item {
  position: relative;
  background: #e3e6e5;
  padding: 1.5rem;
  border-top: 4px solid var(--roof-line);
}
.why-item::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 1.5rem;
  width: 4.5rem;
  height: 4px;
  background: var(--roof-line);
}
.why-item h3 {
  font-size: 1.05rem;
  color: var(--text-dark);
  position: relative;
  padding-left: 1.1em;
  text-align: left;
}
.why-item h3::before {
  content: "";
  position: absolute;
  left: 0; top: .35em;
  width: .48em; height: .48em;
  border-radius: 50%;
  background: var(--accent);
}
.why-item p { color: var(--text-dark-muted); font-size: .95rem; margin: 0; }

/* --- Certyfikacje --- */
.certifications { background: #fff; color: var(--text-dark); }
.certification-grid { display: grid; gap: var(--gap); align-items: center; }
.certifications h2 { max-width: 20ch; }
.certifications p:not(.eyebrow) { color: var(--text-dark-muted); max-width: 48ch; }
.certificate-frame { justify-self: center; max-width: 280px; }
.certificate-frame img { width: 100%; height: auto; }
@media (min-width: 780px) {
  .certification-grid { grid-template-columns: 1fr .7fr; }
}

/* --- Zasięg --- */
.coverage { background: var(--bg); }
.coverage h2 { max-width: 22ch; }
.coverage .section-lede { color: var(--text-light); }
.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}
.city-list li {
  border: 1px solid var(--line-dark);
  color: var(--text-light);
  padding: .55em 1.1em;
  border-radius: 999px;
  font-size: .9rem;
}
.city-list li:nth-child(-n+6) { border-color: var(--accent); }

/* --- Kontakt --- */
.contact { background: var(--bg-alt); }
.contact h2 { max-width: 16ch; }
.contact-grid { display: grid; gap: var(--gap); align-items: start; }
.contact-card {
  background: var(--bg);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.contact-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: .9rem;
  border-bottom: 1px solid var(--line-dark);
  transition: color .15s ease;
}
.contact-card .contact-line:first-child { padding-top: 0; }
.contact-line:hover { color: var(--accent); }
.contact-label {
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--text-light-muted);
}
.contact-value { font-weight: 600; }

@media (min-width: 780px) {
  .contact-grid { grid-template-columns: 1.2fr .8fr; }
}

@media (max-width: 620px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   STOPKA
   ===================================================== */
.site-footer {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.75rem;
  font-size: .85rem;
  color: var(--text-light-muted);
}
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
}
.footer-bar a:hover { color: var(--accent); }
