/* ================== ZMIENNE (MOTYW) ================== */
:root{
  --bg-dark:#0f141a;
  --bg-section:#1b2430;
  --accent:#00bcd4;
  --accent-strong:#05c4d8;
  --accent-soft: rgba(0,188,212,.14);
  --text-light:#f1f1f1;
  --gray:#9ca3af;

  --accent-text: #F6C453;
  --accent-text-strong: #FFD27E;

  --header-h: 100px;
}

/* ================== RESET PODSTAWOWY ================== */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
html{scroll-behavior:smooth}
body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background:var(--bg-dark);
  color:var(--text-light);
  line-height:1.6;
}

/* ================== HEADER ================== */
.site-header{
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); width: 100%;
  background: rgba(8,10,12,.94);
  border-bottom: 1px solid rgba(255,255,255,.05);
  backdrop-filter: saturate(120%) blur(6px);
  z-index: 1000;

  /* bezpieczne strefy iOS */
  padding-top: env(safe-area-inset-top);
}
.header-inner{
  max-width: 1200px; margin: 0 auto; height: 100%;
  padding: 0 32px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;

  padding-left: calc(32px + env(safe-area-inset-left));
  padding-right: calc(32px + env(safe-area-inset-right));
}

.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--text-light); }
.brand-badge{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(5,196,216,.12);
  border: 1px solid rgba(5,196,216,.35);
  box-shadow: 0 6px 18px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.04);
  backdrop-filter: saturate(120%) blur(2px);
}
.brand img{
  height: 64px; width:auto;
  filter: brightness(1.18) contrast(1.05) saturate(1.05) drop-shadow(0 0 6px rgba(5,196,216,.2));
}
.brand span{
  font-weight:700; font-size:1.35rem; color:var(--accent-text);
}

.site-nav{
  display:flex; align-items:center; gap:10px;
}
.nav-pill{
  display:inline-flex; align-items:center; justify-content:center;
  padding:8px 14px; border-radius:12px;
  text-decoration:none; color:var(--text-light); font-weight:600;
  background:transparent; border:1px solid transparent;
  transition:background .2s, border-color .2s, transform .06s, color .2s;
  white-space:nowrap;
}
.nav-pill:hover{ background:var(--accent-soft); border-color:rgba(0,188,212,.28); }
.nav-pill:active{ transform:translateY(1px); }
.nav-pill.active, .nav-pill[aria-current="page"]{
  background: rgba(5,196,216,.18);
  border-color: rgba(5,196,216,.36);
  color: var(--accent-text-strong);
}

/* anchor offset dla scrolla */
.section{ scroll-margin-top: calc(var(--header-h) + 16px); }

/* ================== SEKCJE OGÓLNE ================== */
.section{ padding:100px 10%; min-height: calc(100vh - var(--header-h)); }
.section h2{ text-align:center; color:var(--accent-text); margin-bottom:30px; font-size:2rem; }

/* ================== HERO (slider tła) ================== */
.hero{
  height:100vh; width:100%;
  background: url("bmw1.jpg") center/cover no-repeat; /* pierwszy kadr */
  display:flex; justify-content:center; align-items:center; text-align:center; position:relative;
  overflow:hidden;
}
.hero::after{
  content:""; position:absolute; inset:0; background:rgba(0,0,0,.72); pointer-events:none;
}

/* tor slajdów */
.hero-track{
  position:absolute; inset:0; display:flex; height:100%;
  will-change: transform;
  transition: transform .8s cubic-bezier(.22,.61,.36,1);
}

/* każdy slajd */
.hero-slide{
  flex: 0 0 100%;
  height:100%;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
}

/* treść na wierzchu */
.hero-content{
  position:relative; z-index:1; color:#fff;
  transform: translateY(-7vh);
  text-align:center;
}
.hero-content h1{ font-size:3rem; margin-bottom:15px; color:var(--accent-text); }
.hero-content p{ font-size:1.2rem; color:#e5e9ef; }

.hero-cta{
  display:inline-block;
  margin-top:16px;
  padding:12px 18px;
  border-radius:12px;
  background: var(--accent);
  color:#001014;
  font-weight:700;
  text-decoration:none;
  box-shadow: 0 8px 22px rgba(0,188,212,.25);
  transition: transform .06s ease, box-shadow .2s ease;
}
.hero-cta:hover{ box-shadow:0 12px 28px rgba(0,188,212,.35); }
.hero-cta:active{ transform: translateY(1px); }

/* ================== O NAS ================== */
.about{
  position: relative; overflow:hidden;
  padding:100px 10%;
  background:
    radial-gradient(900px 480px at 12% 25%, rgba(246,196,83,.07), transparent 70%),
    radial-gradient(900px 520px at 88% 75%, rgba(255,183,3,.06), transparent 70%),
    linear-gradient(180deg, rgba(27,36,48,.06), transparent 35%);
}
.about-inner{ max-width:1100px; margin:0 auto; }
.about-header{ text-align:left; margin-bottom:28px; }
.about-header h2{ font-size:2.6rem; color:var(--accent-text); line-height:1.05; margin-bottom:12px; }
.about-lead{ font-size:1.12rem; color:#d7dbe0; max-width:900px; }

.about-grid{ display:grid; grid-template-columns: 1fr 340px; gap:28px; align-items:stretch; }
.about-card, .about-features{
  background:var(--bg-section);
  padding:26px; border-radius:14px;
  box-shadow:0 8px 20px rgba(2,6,10,0.35);
  display:flex; flex-direction:column;
}
.about-card h3, .about-features h3{ font-size:1.15rem; }
.about-card p{ color:#d7dbe0; line-height:1.7; }
.about-features ul{ list-style:none; display:grid; gap:12px; }
.about-features li{ color:var(--gray); }
.about-features li strong{ color:var(--text-light); }

/* fale na górze i dole sekcji */
.about::after,
.about::before{
  content:""; position:absolute; left:0; right:0; height:110px; pointer-events:none;
  background: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 110' preserveAspectRatio='none'>\
    <path fill='%23f6c453' fill-opacity='.12' d='M0,70 C240,130 480,10 720,70 C960,130 1200,10 1440,70 L1440,0 L0,0 Z'/>\
  </svg>") no-repeat 50% / 100% 100%;
}
.about::before{ top:0; }
.about::after{ bottom:-1px; transform: scaleY(-1); }

/* separator między sekcjami */
.separator-wave{
  height: 78px; line-height: 0; overflow: hidden;
  filter: drop-shadow(0 -6px 18px rgba(0,0,0,.25));
}
.separator-wave svg{ display:block; width:100%; height:100%; }
.separator-wave path{ fill: var(--bg-dark); opacity:.9; }

.section-sep{
  max-width: 1200px; margin: 36px auto 44px;
  display:flex; align-items:center; gap:12px; opacity:.9;
}
.sep-line{
  flex:1; height:2px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,188,212,.45) 50%, transparent 100%);
}
.sep-dot{ width:8px; height:8px; border-radius:50%; background:var(--accent); box-shadow:0 0 16px rgba(0,188,212,.35); }

/* ================== OFERTA ================== */
#oferta .services{
  display:grid; gap:22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
#oferta .service-card{
  background:var(--bg-section);
  border-radius:16px; padding:24px;
  box-shadow:0 0 12px rgba(0,0,0,.38);
  transition: transform .2s, box-shadow .2s;
}
#oferta .service-card:hover{ transform:translateY(-4px); box-shadow:0 8px 22px rgba(0,0,0,.42); }
#oferta .service-card h3{ font-size:1.2rem; color:var(--accent-text); }
#oferta .service-card p{ color:#d7dbe0; }

.service-card.featured{
  position: relative; display:flex; flex-direction:column; min-height:240px;
  background: linear-gradient(180deg, rgba(5,196,216,.14), rgba(5,196,216,.07));
  border: 1px solid rgba(5,196,216,.35);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.service-card.featured .btn-featured{ margin-top:auto; align-self:flex-start; }
.btn-featured{
  background: var(--accent); color:#001014; text-decoration:none;
  padding:10px 14px; border-radius:10px; font-weight:700;
  transition: transform .06s ease, box-shadow .2s ease;
}
.btn-featured:hover{ box-shadow: 0 6px 18px rgba(0,188,212,.35); }
.btn-featured:active{ transform: translateY(1px); }

/* ================== OPINIE (slider 3 na slajd) ================== */
.reviews-container{
  position: relative; padding:100px 5%; text-align:center;
  background:
    radial-gradient(1200px 600px at 50% 0%, rgba(246,196,83,.08), transparent 60%),
    radial-gradient(900px 500px at 20% 35%, rgba(5,196,216,.09), transparent 70%),
    radial-gradient(900px 500px at 80% 70%, rgba(93,219,255,.07), transparent 70%),
    linear-gradient(180deg, #1b2430, #0f141a);
  overflow:hidden;
}
.reviews-container::before{
  content:""; position:absolute; inset:-2px;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(0deg,  rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask: radial-gradient(circle at 50% 35%, rgba(0,0,0,.65), transparent 75%);
  pointer-events:none;
}
.reviews-container::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:70px;
  background: radial-gradient(60% 90px at 50% 110%, rgba(0,0,0,.55), transparent 70%);
  pointer-events:none;
}

.reviews-slider{ position:relative; max-width:1200px; margin:0 auto; }
.rs-viewport{ overflow:hidden; border-radius:12px; }
.rs-track{ display:flex; transition:transform .4s ease; will-change:transform; }
.rs-slide{
  flex:0 0 100%;
  display:grid; grid-template-columns:repeat(3, minmax(0,1fr));
  gap:18px; padding:2px;
}
.rs-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(0,0,0,.35); color:#fff; border:0;
  width:40px; height:40px; border-radius:999px; cursor:pointer; display:grid; place-items:center;
}
.rs-prev{ left:-12px; } .rs-next{ right:-12px; }
.rs-dots{ display:flex; gap:8px; justify-content:center; margin-top:12px; }
.rs-dot{ width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,.25); border:0; cursor:pointer; }
.rs-dot[aria-current="true"]{ background:var(--accent); }

.review{
  background: rgba(15,20,26,.92);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 8px 22px rgba(0,0,0,.42);
  padding:18px; border-radius:12px; text-align:left; display:flex; flex-direction:column;
}
.review h4{ color:var(--accent-text); margin-bottom:2px; font-size:1rem; }
.review .rating{ font-size:1rem; color:gold; display:flex; align-items:center; gap:8px; margin:6px 0; line-height:1; }
.review .rating .rating-num{
  font-size:.9rem; color:var(--text-light);
  background:rgba(255,255,255,.03); padding:2px 6px; border-radius:6px; font-weight:600;
}

/* ================== KONTAKT ================== */
.contact{ background:var(--bg-dark); }
.contact-grid{
  display:grid; grid-template-columns:1fr 1.1fr; gap:40px;
  max-width:1200px; margin:0 auto; align-items:stretch;
}
.contact-left{ display:flex; flex-direction:column; gap:18px; }
.contact-left h2{ font-size:2.2rem; margin-bottom:20px; color:var(--accent-text); text-align:left; }
.contact-card{ background:var(--bg-section); border-radius:16px; padding:22px; box-shadow:0 0 10px rgba(0,0,0,.35); }
.contact-info-item{ display:flex; align-items:flex-start; gap:14px; padding:12px 0; border-bottom:1px solid rgba(255,255,255,.06); }
.contact-info-item:last-child{ border-bottom:0; }
.contact-icon{ font-size:22px; line-height:1; color:var(--accent); }
.label{ font-weight:600; color:#cfd5dc; margin-bottom:2px; }
.value{ color:#e8eaed; }
.hint{ color:var(--gray); font-size:.9rem; }

.form-title{ font-size:1.25rem; margin-bottom:6px; }
.form-sub{ color:var(--gray); font-size:.95rem; margin-bottom:14px; }
.contact-form input, .contact-form textarea{
  width:100%; background:#0f141a; color:var(--text-light);
  border:1px solid rgba(255,255,255,.12); border-radius:10px;
  padding:12px 14px; outline:none; transition:border-color .2s; margin-bottom:10px;
}
.contact-form input:focus, .contact-form textarea:focus{ border-color:var(--accent); }
.contact-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:6px; }
.btn-primary,.btn-secondary{
  appearance:none; border:0; cursor:pointer; font-weight:700;
  padding:10px 16px; border-radius:10px;
  transition:transform .08s, background-color .2s, box-shadow .2s;
}
.btn-primary{ background:var(--accent); color:#001014; }
.btn-primary:active{ transform:translateY(1px); }
.btn-secondary{ background:#2b3442; color:var(--text-light); }
.btn-secondary:hover{ background:#3a4557; }
.btn-secondary:active{ transform:translateY(1px); }

.contact-right{ position:relative; background:var(--bg-section); border-radius:16px; overflow:hidden; box-shadow:0 0 10px rgba(0,0,0,.35); }
.map-embed{ display:block; width:100%; height:100%; border:0; }
.map-fallback{ position:absolute; inset:0; display:grid; place-items:center; text-align:center; color:var(--gray); padding:20px; pointer-events:none; }

/* ================== STOPKA ================== */
.site-footer{ background:#0a0f14; text-align:center; padding:20px; color:#777; font-size:.9rem; }

/* ================== FLOATING WIDGETS ================== */
.floating-widgets{
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  display: grid; gap: 18px; z-index: 1100;
}
.fw{ position: relative; display: inline-flex; align-items: center; text-decoration: none; }
.fw-icon{
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: #111; border: 4px solid rgba(255,255,255,.08); outline: 3px solid rgba(255,255,255,.06);
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
}
.fw-icon svg{ width: 28px; height: 28px; display:block; }
.fw-tip{
  position: absolute; right: 72px; top: 50%; transform: translateY(-50%) translateX(8px);
  background: rgba(16,18,22,.9); color: var(--text-light);
  padding: 12px 16px; border-radius: 16px; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 8px 24px rgba(0,0,0,.45);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.fw:hover .fw-tip{ opacity:1; transform: translateY(-50%) translateX(0); }
.fw-google .fw-icon{ outline-color: rgba(66,133,244,.25); }
.fw-fb     .fw-icon{ outline-color: rgba(24,119,242,.25); }

/* ================== RESPONSYWNOŚĆ ================== */

/* 992px */
@media (max-width: 992px){
  :root{ --header-h: 80px; }

  .header-inner{ padding: 0 22px; }
  .brand img{ height:52px; }
  .brand span{ font-size:1.12rem; }

  .about-grid{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  .contact-right{ height:400px; }

  .site-header{ background: rgba(8,10,12,.96); }
}

/* 920px – dopracowanie mobile layoutu */
@media (max-width: 920px){
  :root{ --header-h: 72px; }

  .header-inner{ padding: 0 16px; }
  .brand img{ height:44px; }
  .brand span{ font-size:1.02rem; }

  .hero{ min-height: calc(100svh - var(--header-h)); }
  .hero-content{ transform:none; padding:0 16px; }
  .hero-content h1{ font-size: clamp(1.6rem, 5vw + .6rem, 2.2rem); line-height: 1.1; }
  .hero-content p{ font-size: clamp(1rem, 2.6vw + .2rem, 1.1rem); }
  .hero-cta{ padding:11px 16px; border-radius:12px; }

  .section{ padding: 64px 16px; min-height:auto; }
  .about{ padding: 64px 16px; }
  #o-nas.about, #o-nas.about .about-inner{ min-height:auto; }

  #oferta .services{ gap:14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  #oferta .service-card{ padding:18px; }
  #oferta .service-card h3{ font-size:1.05rem; }

  .rs-slide{ grid-template-columns:1fr; gap:12px; padding:2px; }
  .rs-nav{ width:34px; height:34px; }
  .rs-dots{ gap:6px; }

  .separator-wave{ height:54px; }
  .floating-widgets{ display:none; }
}

/* 560px – kompaktowa nawigacja */
@media (max-width: 560px){
  :root{ --header-h: 72px; }
  .brand span{ display:none; }

  .site-nav{
    overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch;
    white-space:nowrap; gap:8px; padding-bottom:4px;
    mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  }
  .site-nav::-webkit-scrollbar{ display:none; }

  .nav-pill{ flex:0 0 auto; font-size:.95rem; padding:8px 12px; border-radius:12px; }
  .hero::after{ background: rgba(0,0,0,.62); }
}

/* 480px */
@media (max-width: 480px){
  :root{ --header-h: 64px; }
  .nav-pill{ font-size:.95rem; }
  .section{ padding:56px 14px; }
  .review{ padding:14px; }
}

/* 400px */
@media (max-width: 400px){
  .nav-pill{ font-size:.9rem; padding:7px 10px; }
  .hero-content{ padding: 0 14px; }
  .hero-content h1{ font-size: clamp(1.35rem, 6.4vw + .4rem, 1.9rem); line-height:1.15; }
  .hero-content p{ font-size:.98rem; }
  .hero-cta{ font-size:.95rem; padding:10px 14px; border-radius:12px; }
}

a.tel-link,
a.tel-link:link,
a.tel-link:visited{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  color: var(--text-light);
  text-decoration:none;
  background:#0f141a;
  border:1px solid rgba(255,255,255,.14);
  border-radius:10px;
  line-height:1;
  transition: border-color .2s, box-shadow .2s, background .2s, color .2s;
}

a.tel-link:hover{
  background:#0c1116;
  border-color: rgba(5,196,216,.45);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  color: var(--text-light);
}
a.tel-link:focus-visible{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(5,196,216,.28);
}

#oferta .services .services-group{
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  text-align: center;

  margin: 18px 0 6px;
  padding: 10px 0 6px;

  position: relative;
}
#oferta .services .services-group h3{
  margin: 0;
  padding: 6px 14px;
  font-size: 1.02rem;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--accent-text);
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

#oferta .services .services-group p{ display:none; }

#oferta .services .services-group::before,
#oferta .services .services-group::after{
  content:"";
  height: 1px; width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  position: absolute; top: 50%; transform: translateY(-50%);
}
#oferta .services .services-group::before{ left: 0; }
#oferta .services .services-group::after { right: 0; }

@media (max-width: 720px){
  #oferta .services .services-group{ margin: 12px 0 4px; }
  #oferta .services .services-group h3{ font-size: .98rem; padding: 6px 12px; }
}

#oferta .service-card.featured{
  position: relative;
  display: flex; flex-direction: column;
  min-height: 260px;
  grid-column: span 2;
}
@media (max-width: 900px){
  #oferta .service-card.featured{ grid-column: auto; }
}

#oferta .service-card.featured .btn-featured{
  margin-top: 12px;
  align-self: flex-start; 
}

#oferta .service-card.featured p:last-child{
  margin-bottom: 6px;
}

