/* =========================================================
   styles.css (NEW) — styl „firmowy” inspirowany układem usługowym
   Pasuje do HTML z klasami: container/nav/brand/menu/cta-phone/
   hero hero-bg hero-inner/btn/badge/grid/services/service/contact-grid itd.
   ========================================================= */

/* Base / reset */
:root{
  --bg: #f6f8fb;
  --text: #0f172a;
  --muted: #475569;

  --primary: #0d6efd;      /* niebieski jak wcześniej */
  --primary-2: #0b5ed7;

  --card: #ffffff;
  --border: rgba(15, 23, 42, 0.10);

  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.12);

  --radius: 14px;
  --radius-sm: 12px;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html, body{ height:100%; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a{ color: inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.visually-hidden{
  position:absolute !important;
  height:1px; width:1px;
  overflow:hidden;
  clip: rect(1px,1px,1px,1px);
  white-space:nowrap;
}

/* Layout */
.container{
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header / nav */
header{
  position: sticky;
  top:0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(15,23,42,0.08);
  backdrop-filter: blur(10px);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}

.brand-title{
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 18px;
}

.muted{
  color: var(--muted);
  font-size: 14px;
}

.nav-right{
  display:flex;
  align-items:center;
  gap: 12px;
}

.menu{
  display:flex;
  align-items:center;
  gap: 6px;
}

.menu a{
  padding: 10px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  color: rgba(15,23,42,0.82);
  transition: background .2s ease, color .2s ease;
}

.menu a:hover{
  background: rgba(13,110,253,0.08);
  color: rgba(15,23,42,0.95);
}

.nav-toggle{
  display:none;
  background: transparent;
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 18px;
  cursor:pointer;
}

.nav-toggle[aria-expanded="true"]{
  background: rgba(13,110,253,0.08);
  border-color: rgba(13,110,253,0.25);
}

.cta-phone{
  font-weight: 900;
  color: var(--primary);
  background: rgba(13,110,253,0.10);
  border: 1px solid rgba(13,110,253,0.22);
  padding: 10px 12px;
  border-radius: 12px;
  white-space: nowrap;
  transition: transform .15s ease, background .2s ease;
}

.cta-phone:hover{
  background: rgba(13,110,253,0.14);
  transform: translateY(-1px);
}

/* Hero (zdjęcie jako tło + overlay) */
.hero{
  display:grid;
  align-items: stretch;
  margin-top: 18px;
}

/* dodajesz w HTML: class="hero hero-bg" style="--hero-bg:url(...)" */
.hero.hero-bg{
  position: relative;
  padding: 70px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);

  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* overlay: mocny po lewej, lżejszy po prawej (czytelność jak na stronach usługowych) */
.hero.hero-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,
      rgba(2, 18, 42, 0.78) 0%,
      rgba(13,110,253,0.45) 40%,
      rgba(2, 18, 42, 0.10) 100%);
}

/* delikatna „mgiełka” u góry */
.hero.hero-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
  pointer-events:none;
}

.hero-inner{
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-left: 0;
  padding: 0 20px;
}

/* tekst hero */
.hero-inner .eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 8px 12px;
  border-radius: 999px;
}

.hero h2{
  margin-top: 14px;
  font-size: 44px;
  line-height: 1.06;
  letter-spacing: -0.6px;
  color: #fff;
}

.hero p{
  margin-top: 12px;
  color: rgba(255,255,255,0.92);
  font-size: 16px;
  max-width: 62ch;
}

/* Buttons */
.hero-actions{
  margin-top: 18px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 14px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  user-select:none;
}

.btn-primary{
  background: var(--primary);
  color:#fff;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 14px 32px rgba(13,110,253,0.28);
}

.btn-primary:hover{
  background: var(--primary-2);
  transform: translateY(-1px);
}

.btn-ghost{
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.28);
  color:#fff;
}

.btn-ghost:hover{
  background: rgba(255,255,255,0.16);
  transform: translateY(-1px);
}

/* Badges */
.badge{
  display:inline-flex;
  align-items:center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
}

/* Sections */
section{
  padding: 64px 0;
}

.section-head{
  text-align:center;
  margin-bottom: 26px;
}

.section-head h3{
  font-size: 30px;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}

.section-head p.muted{
  font-size: 15px;
}

/* Grid helpers */
.grid{ display:grid; gap: 16px; }

/* Services */
.services{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease;
  display:flex;
  gap: 12px;
  align-items:flex-start;
}

.service:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13,110,253,0.22);
}

.svc-ico{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(13,110,253,0.12);
  border: 1px solid rgba(13,110,253,0.20);
  color: var(--primary);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  flex: 0 0 auto;
}

.service h4{
  font-size: 16px;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.service p{
  color: var(--muted);
  font-size: 14px;
}

/* Gallery */
.gallery{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery img{
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .22s ease;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery img:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Testimonials/FAQ cards (u Ciebie używane jako .testimonial, .quote) */
.testimonials{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.testimonial{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
}

.quote{
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.2px;
  margin-bottom: 6px;
}

/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.contact-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
}

/* Forms */
input, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.12);
  background: #fff;
  font: inherit;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

textarea{ resize: vertical; min-height: 120px; }

input:focus, textarea:focus, button:focus, a:focus{
  outline: none;
  border-color: rgba(13,110,253,0.40);
  box-shadow: 0 0 0 4px rgba(13,110,253,0.14);
}

.row{ margin-bottom: 10px; }

/* Footer */
footer{
  margin-top: 20px;
  background: #0b1220;
  color: rgba(255,255,255,0.86);
  padding: 28px 0;
}

.footer-grid{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}

.legal{
  font-size: 14px;
  color: rgba(255,255,255,0.76);
}

/* Mobile menu open */
.menu.menu-open{
  display:flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 0 0;
  width: 100%;
}

/* Responsive */
@media (max-width: 1100px){
  .services{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h2{ font-size: 38px; }
}

@media (max-width: 768px){
  .nav{ flex-wrap: wrap; }
  .nav-toggle{ display:inline-flex; }
  .menu{ display:none; }

  .cta-phone{ width: 100%; justify-content:center; text-align:center; }

  .hero.hero-bg{ padding: 44px 0; }
  .hero h2{ font-size: 28px; }
  .hero-inner{ padding: 0 14px; }
  .hero-actions{ flex-direction: column; }
  .btn{ width: 100%; }

  section{ padding: 46px 0; }

  .testimonials{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: 1fr; }
  .brand-logo{
    height: 44px;
    max-width: 140px;
    padding: 0;
  }
}

@media (max-width: 480px){
  .section-head h3{ font-size: 24px; }
  .hero-inner .eyebrow{ font-size: 12px; }
}

/* Small touch polish */
.btn, .menu a{ -webkit-tap-highlight-color: rgba(0,0,0,0.06); }
.brand-logo{
  height: 56px;
  width: auto;
  max-width: 180px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 10px rgba(15,23,42,0.18));
}