/* ==========================================================================
   e-WUKO — ciśnieniowe udrażnianie kanalizacji
   Design tokens
   ========================================================================== */
:root {
  --bg:        #070d16;
  --bg-soft:   #0b1421;
  --bg-footer: #050a11;
  --surface:   rgba(255, 255, 255, .015);

  --text:   #c7d2de;
  --muted:  #9fb2c6;
  --muted2: #8296ab;
  --dim:    #647a92;
  --dimmer: #4d6178;
  --ghost:  #2a3a4e;

  --accent:      #e5461e;
  --accent-dark: #cf3c16;
  --accent-soft: #ffd8ca;
  --blue:        #38bdf8;

  --border:      rgba(255, 255, 255, .09);
  --border-soft: rgba(255, 255, 255, .07);

  --maxw: 1200px;
  --radius: 10px;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-head: 'Archivo', sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  color: #fff;
  letter-spacing: -.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

.text-blue   { color: var(--blue); }
.text-accent { color: var(--accent); }
.strong      { font-weight: 600; }
.no-margin   { margin: 0; }

.mono, .eyebrow, .section-label, .fig-label, .stat-label,
.brand-sub, .area-group-label, .review-author, .footer-inner,
.topbar-inner, .service-tag {
  font-family: var(--font-body);
  letter-spacing: .04em;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}

.btn-primary,
.btn-submit {
  background: var(--accent);
  color: #fff;
  padding: 15px 26px;
  border: none;
  font-family: inherit;
}
.btn-primary:hover,
.btn-submit:hover { background: var(--accent-dark); }

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  padding: 14px 26px;
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn-call {
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  font-size: 13.5px;
  letter-spacing: .02em;
}
.btn-call:hover { background: var(--accent-dark); }

.btn-white {
  background: #fff;
  color: var(--accent);
  padding: 13px 24px;
  font-weight: 700;
}
.btn-white:hover { background: var(--bg); color: #fff; }

.btn-submit { justify-content: center; padding: 15px; font-weight: 700; }

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar {
  background: rgba(7, 13, 22, .7);
  border-bottom: 1px solid var(--border-soft);
  font-size: 12.5px;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.topbar-status { display: inline-flex; align-items: flex-start; gap: 9px; color: var(--muted); }
.ts-line { white-space: nowrap; }
.pulse {
  width: 7px; height: 7px;
  margin-top: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.topbar-mail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue);
  font-weight: 600;
}
.topbar-mail:hover { color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 13, 22, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 13px;
  padding-bottom: 13px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 44px; height: 44px; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-head);
  font-size: 23px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.brand-name.lg { font-size: 30px; }
.brand-accent { color: var(--accent); }
.brand-sub {
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--dim);
  margin-top: 4px;
}

.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .02em;
  white-space: nowrap;
}
.main-nav a:hover { color: #fff; }

.btn-call { margin-left: 0; }

/* Hamburger */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 38px;
  padding: 9px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 460px at 82% 8%, rgba(14, 165, 233, .28), transparent 62%);
}
.hero-inner { position: relative; z-index: 2; padding-top: 78px; padding-bottom: 60px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 52px;
  align-items: center;
}
.hero-content { display: flex; flex-direction: column; gap: 24px; }
.eyebrow {
  align-self: flex-start;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--blue);
  border: 1px solid rgba(56, 189, 248, .35);
  padding: 7px 14px;
  border-radius: 4px;
}
.hero-content h1 {
  font-size: 62px;
  line-height: .96;
  font-weight: 700;
  text-wrap: balance;
}
.hero-content p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.fig-label {
  position: absolute;
  top: 12px; left: 14px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--blue);
  pointer-events: none;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 60px 0 0;
  border-top: 1px solid var(--border);
}
.stat { padding: 22px 0 22px 26px; border-right: 1px solid var(--border); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: none; }
.stat-num {
  margin: 0;
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 700;
  color: #fff;
}
.stat-num span { font-size: 15px; }
.stat-label { font-size: 11px; letter-spacing: .06em; color: var(--dim); margin-top: 4px; }

/* ==========================================================================
   Emergency alert
   ========================================================================== */
.alert { background: var(--accent); color: #fff; border-bottom: 1px solid rgba(0, 0, 0, .2); }
.alert-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 20px;
}
.alert-text { display: flex; flex-direction: column; gap: 3px; }
.alert-text strong { font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.alert-text span { font-size: 12.5px; color: var(--accent-soft); letter-spacing: .02em; }

/* ==========================================================================
   Sections (shared)
   ========================================================================== */
.section { padding-top: 80px; padding-bottom: 80px; }
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.section-label { margin: 0; font-size: 12px; letter-spacing: .1em; color: var(--accent); }
.section-title { margin: 8px 0 40px; font-size: 42px; font-weight: 700; }

/* Zalety */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature {
  padding: 28px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .18s ease;
}
.feature:last-child { border-right: none; }
.feature:hover { background: rgba(56, 189, 248, .06); }
.feature-top { display: flex; justify-content: space-between; align-items: center; }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: rgba(56, 189, 248, .12);
  border: 1px solid rgba(56, 189, 248, .4);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-num { font-size: 11px; color: #3d5168; }
.feature h3 { font-size: 19px; font-weight: 600; }
.feature p { margin: 0; font-size: 13.5px; color: var(--muted2); }

/* Zakres */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.service-card {
  display: grid;
  grid-template-columns: 1fr 165px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .18s ease;
}
.service-card:hover { border-color: rgba(56, 189, 248, .4); }
.service-body { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.service-tag { font-size: 11px; color: var(--blue); }
.service-body h3 { font-size: 22px; font-weight: 600; }
.service-body p { margin: 0; font-size: 14px; color: var(--muted2); }
.service-media { overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* Opinie */
.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}
.rating { display: flex; align-items: baseline; gap: 12px; }
.rating-num { font-family: var(--font-head); font-size: 44px; font-weight: 700; color: var(--blue); }
.rating-src { font-size: 13px; color: var(--dim); }
.stars { color: var(--accent); letter-spacing: 2px; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card {
  margin: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.review-card .stars { font-size: 14px; letter-spacing: 3px; }
.review-card p { margin: 0; font-size: 14.5px; color: var(--text); line-height: 1.65; }
.review-author { font-size: 12px; color: var(--dim); margin-top: auto; font-style: normal; }

/* Atuty */
.advantages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.adv {
  border-top: 2px solid var(--accent);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.adv-num { font-family: var(--font-head); font-size: 32px; font-weight: 700; color: var(--ghost); }
.adv h3 { font-size: 20px; font-weight: 600; }
.adv p { margin: 0; font-size: 14px; color: var(--muted2); }

/* Obszar */
.area-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.area-content { display: flex; flex-direction: column; gap: 24px; }
.area-lead { margin: 0; color: var(--muted2); font-size: 15px; }
.area-group { display: flex; flex-direction: column; gap: 12px; }
.area-group-label { font-size: 11px; letter-spacing: .1em; color: var(--dim); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.tag {
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 4px;
  padding: 6px 12px;
}
.area-map {
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  overflow: hidden;
}
.area-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3) contrast(1.05); }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 440px; gap: 52px; }
.company { display: flex; flex-direction: column; gap: 24px; }
.company-brand { display: flex; align-items: center; gap: 15px; }
.company-brand img { width: 60px; height: 60px; border-radius: var(--radius); }
.company-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.95;
}
.company-block { display: flex; flex-direction: column; font-style: normal; }
.company-block-title { color: #fff; font-weight: 600; margin-bottom: 6px; letter-spacing: .03em; }
.company-block a { display: inline-flex; align-items: center; gap: 7px; width: fit-content; }
.mail-link:hover { color: #fff; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  padding: 30px;
}
.form-title { font-family: var(--font-head); font-size: 21px; font-weight: 600; color: #fff; }
.contact-form input[type="text"],
.contact-form input#name,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  padding: 13px 15px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--blue); outline: none; }
.consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--dim);
}
.consent input { margin-top: 3px; flex: none; }
.form-sent {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border-soft); background: var(--bg-footer); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 26px;
  padding-bottom: 26px;
  font-size: 12.5px;
  color: var(--dimmer);
}
.footer-phone { display: inline-flex; align-items: center; gap: 7px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .contact-grid { grid-template-columns: 1fr 380px; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { order: -1; }
  .hero-content h1 { font-size: 48px; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(2) { border-right: none; }
  .feature:nth-child(1), .feature:nth-child(2) { border-bottom: 1px solid var(--border); }
  .services { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: 1fr; gap: 32px; }
  .area-map { max-width: 420px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { order: -1; }
}

@media (max-width: 760px) {
  .container { padding-left: 20px; padding-right: 20px; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    background: rgba(7, 13, 22, .97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
  }
  .main-nav.open { max-height: 340px; }
  .main-nav a {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 14px;
  }
  .header-inner { gap: 8px; flex-wrap: nowrap; }
  .header-inner .btn-call {
    order: 3;
    flex: none;
    width: 42px;
    height: 38px;
    padding: 0;
    justify-content: center;
  }
  .header-inner .btn-call .call-text { display: none; }
  .header-inner .btn-call svg { width: 16px; height: 16px; }
  .nav-toggle { order: 4; margin-left: 0; flex: none; }
  .brand { margin-right: auto; min-width: 0; }
  .brand-sub { display: none; }

  .gallery { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .advantages { grid-template-columns: 1fr; }
  .company-details { grid-template-columns: 1fr; gap: 18px; }
  .service-card { grid-template-columns: 1fr; }
  .service-media { aspect-ratio: 16 / 9; }

  .section { padding-top: 56px; padding-bottom: 56px; }
  .section-title { font-size: 32px; margin-bottom: 30px; }
  .hero-inner { padding-top: 48px; padding-bottom: 40px; }
  .hero-content h1 { font-size: 40px; }
}

@media (max-width: 560px) {
  .topbar-status { font-size: 11px; }
  .topbar-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
  .topbar-mail { font-size: 11px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat { padding: 18px 0 18px 20px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .features { grid-template-columns: 1fr; }
  .feature { border-right: none; border-bottom: 1px solid var(--border); }
  .feature:last-child { border-bottom: none; }
  .feature:nth-child(2) { border-right: none; }
  .alert-inner { flex-direction: column; align-items: flex-start; }
  .hero-content h1 { font-size: 34px; }
  .btn-primary { width: 100%; justify-content: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
