/* ============================================================
   styles.css — Premium Dark Lite (komplet) — cz.1/2
   - full-page background (fixed on desktop)
   - header/footer same color
   - white text palette
   - improved card & form contrast
   ============================================================ */

/* ---------------------------
   Theme variables
   --------------------------- */
:root{
  --bg-deep: #071518;
  --bg-overlay: rgba(6,18,20,0.42);

  /* accents */
  --accent-1: #00d0da;
  --accent-2: #0b7aa0;

  /* text */
  --text-strong: #ffffff;
  --muted: #ffffff;
  --muted-2: #f0ffff;

  /* surfaces */
  --card-opaque: rgba(3,12,14,0.78); /* dark, near-opaque for cards */
  --card-soft: rgba(255,255,255,0.05); /* subtle light card (used in some places) */

  --border-weak: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.18);

  --radius-lg: 14px;
  --radius-md: 10px;
  --btn-height: 48px;
  --max-width: 1200px;
  --ease: cubic-bezier(.2,.9,.3,1);
  --shadow-strong: 0 18px 54px rgba(0,0,0,0.52);
}

/* ---------------------------
   Reset / base
   --------------------------- */
*{box-sizing:border-box}
html,body{height:100%;margin:0;padding:0}
body{
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text-strong);
  line-height: 1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  background-color: var(--bg-deep);

  background-image:
    linear-gradient(180deg, rgba(4,12,13,0.34), rgba(2,8,10,0.48)),
    url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll; /* default; switched to fixed on desktop below */
}

/* global overlay (subtle) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, rgba(6,18,20,0.08), rgba(6,18,20,0.44));
}

/* container */
.container{
  width: min(var(--max-width), 94%);
  margin: 0 auto;
  padding: 30px;
  background: transparent !important;
}

/* Ensure transparent sections so background photograph shows through */
.section,
.container,
.hero,
.hero-bg,
.main,
.site-header,
.site-footer,
.header-inner,
.footer-inner {
  background: transparent !important;
}

/* ---------------------------
   Desktop: fixed background for 'stuck' hero
   --------------------------- */
@media (min-width: 1024px){
  body{ background-attachment: fixed; }
}
@media (max-width: 1023px){
  body{ background-attachment: scroll; background-position: center top; }
}

/* ============================================================
   Header & navigation
   ============================================================ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 140;
  background: rgba(6,18,20,0.94) !important; /* same as footer */
  border-bottom: 1px solid var(--border-weak);
  box-shadow: 0 6px 22px rgba(0,0,0,0.55);
}
.header-inner{
  display:flex;
  align-items:center;
  gap:20px;
  justify-content:space-between;
}
.brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:inherit}
.logo{width:68px;height:68px;flex:0 0 68px}
.brand-text{line-height:1}
.brand-title{font-family:'Playfair Display', serif; font-size:1.15rem; font-weight:700}
.brand-sub{font-size:0.85rem;color:var(--muted)}

/* nav */
.nav-toggle{display:none}
.nav-list{list-style:none;display:flex;gap:14px;margin:0;padding:0;align-items:center}
.nav-list a{
  color:var(--text-strong);
  text-decoration:none;
  padding:8px 12px;
  border-radius:10px;
  font-weight:600;
  transition: background .16s var(--ease);
}
.nav-list a:hover{ background: rgba(255,255,255,0.06); }
.cta-link{
  background: linear-gradient(90deg,var(--accent-1),var(--accent-2));
  color:#04262b !important;
  padding:8px 14px;
  border-radius:12px;
  box-shadow: 0 10px 28px rgba(11,122,160,0.18);
}

/* Quick phone in header (hidden on small screens) */
.contact-quick{display:none !important}

/* ============================================================
   Hero
   ============================================================ */
.hero{ position: relative; padding: 72px 0 48px; overflow: visible; }
.hero-bg{ position:absolute; inset:0; pointer-events:none; z-index:0; background: transparent !important; }
.hero-inner{
  position: relative;
  z-index: 6; /* elevated so content is above overlay */
  display:grid;
  grid-template-columns: 1fr 420px;
  gap:30px;
  align-items: start;
}
.hero-left{ padding:26px 0 }
.hero h1{
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  margin: 0 0 14px;
  color: var(--text-strong);
  text-shadow: 0 10px 28px rgba(0,0,0,0.6);
  line-height: 1.02;
}
.hero-lead{ color: var(--muted); max-width:64ch; margin-bottom:20px; font-size:1.02rem; }

/* CTA row */
.hero-cta{ display:flex; gap:12px; align-items:center; }
.hero-features{ list-style:none; display:flex; gap:12px; padding:0; margin-top:18px; }
.hero-features li{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 10px 14px;
  border-radius: 10px;
  font-weight:700;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.5);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border:none;
  border-radius:12px;
  padding:10px 16px;
  font-weight:800;
  cursor:pointer;
  transition: transform .22s var(--ease), box-shadow .28s var(--ease), opacity .18s;
  line-height:1;
}
.btn:focus{ outline:3px solid rgba(11,122,160,0.14); outline-offset:3px; }
.btn-primary{
  background: linear-gradient(90deg,var(--accent-1),var(--accent-2));
  color:#04262b;
  box-shadow: 0 12px 34px rgba(11,122,160,0.18), inset 0 -2px 8px rgba(255,255,255,0.03);
}
.btn-primary:hover{ transform: translateY(-6px); box-shadow: 0 30px 80px rgba(11,122,160,0.22); }
.btn-soft{
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  color: #fff;
  box-shadow: 0 8px 24px rgba(2,8,10,0.22);
}
.btn-soft:hover{ transform: translateY(-4px); box-shadow: 0 28px 70px rgba(2,8,10,0.32); }

.btn-icon{ display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; margin-right:12px; flex-shrink:0; }
.btn-icon svg{ width:100%; height:100%; display:block; }

/* helper */
.form-actions{ display:flex; gap:10px; align-items:center; }
.flex-1{ flex:1; }

/* ============================================================
   Cards & Panels — make them opaque and readable
   ============================================================ */
/* default card surfaces */
.card,
.card-elevated,
.service-card,
.price-card,
.contact-card,
.info-card {
  position: relative;
  z-index: 7;
  background: var(--card-opaque) !important; /* near opaque dark surface */
  border: 1px solid var(--border-weak);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.65);
  color: var(--text-strong);
}

/* elevated hover */
.card-elevated{ transition: transform .28s var(--ease); }
.card-elevated:hover{ transform: translateY(-6px); }

/* forms/cards spacing */
.quick-form, .contact-form { width:100%; }

/* END PART 1 */

/* ============================================================
   styles.css — Premium Dark Lite — cz.2/2
   (kontynuacja: form styles, pricing, gallery, footer, responsive)
   ============================================================ */

/* ---------------------------
   Forms — clearer fields
   --------------------------- */
.quick-form label, .contact-form label {
  display:block;
  margin-bottom:8px;
  color: #ffffff;
  font-weight:700;
}
.quick-form input,
.quick-form textarea,
.contact-form input,
.contact-form textarea{
  width:100%;
  padding:12px;
  border-radius:10px;
  border:1px solid var(--border-strong); /* stronger border for readability */
  background: rgba(255,255,255,0.10); /* lightly translucent white */
  color: #ffffff;
  box-shadow: inset 0 3px 10px rgba(0,0,0,0.45);
  transition: box-shadow .18s, transform .12s;
}
.quick-form textarea, .contact-form textarea{ min-height:90px; resize:vertical; }

/* placeholder color */
.quick-form input::placeholder,
.quick-form textarea::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.72);
  opacity: 1;
}

/* focus ring */
.quick-form input:focus,
.quick-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus{
  outline: none;
  box-shadow: 0 6px 30px rgba(10,110,120,0.12);
  border-color: rgba(11,122,160,0.85);
}

/* success / error boxes */
.success-box{ background: linear-gradient(90deg,#e9fff8,#e0fffb); color:#01342f; padding:12px; border-radius:10px; margin-bottom:12px; }
.error-box{ background: linear-gradient(90deg,#fff2f2,#fff0f0); color:#7a1a1a; padding:12px; border-radius:10px; margin-bottom:12px; }

/* ---------------------------
   Services grid
   --------------------------- */
.services-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:18px; }
.service-card{
  padding:22px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
  color:#fff;
}

/* ---------------------------
   Pricing
   --------------------------- */
.pricing-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap:22px;
  align-items: start;
}
.price-card{
  padding:24px;
  border-radius:14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.007));
  border:1px solid rgba(255,255,255,0.04);
  box-shadow: var(--shadow-strong);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
  display:flex;
  flex-direction: column;
}
.price-card:hover{ transform: translateY(-8px); box-shadow: 0 40px 110px rgba(0,0,0,0.62); }
.price-card .price{ font-size:1.5rem; font-weight:800; margin:12px 0; color:var(--text-strong); }
.price-sub{ color: var(--muted) !important; }
.price-badge{ position:absolute; right:16px; top:16px; background:var(--accent-1); color:#04262b; padding:8px 12px; border-radius:10px; font-weight:800; box-shadow:0 8px 30px rgba(0,0,0,0.36); z-index: 9; }

/* lists */
.price-card ul{ flex:1 1 auto; margin:12px 0 18px; padding-left:18px; color: var(--muted-2); }
.price-card ul li{ margin-bottom:8px; color:#fff; }

/* ---------------------------
   Gallery & testimonials
   --------------------------- */
.gallery-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; margin-top:18px; }
.gallery-item{ overflow:hidden; border-radius:12px; background:#000; }
.gallery-item img{ width:100%; height:220px; object-fit:cover; display:block; transform:scale(1); transition: transform .6s var(--ease); will-change: transform; }
.gallery-item:hover img{ transform: scale(1.06); }
.gallery-item figcaption{ padding:12px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); color:#fff; font-size:0.95rem; text-shadow: 0 1px 0 rgba(0,0,0,0.28); }

/* testimonials */
.testimonials{ position:relative; margin-top:16px; min-height:120px; }
.testimonial{ position:absolute; inset:0; opacity:0; transform:translateY(6px); transition: all .8s var(--ease); display:flex; flex-direction:column; gap:6px; color:#fff; }
.testimonial.active{ opacity:1; transform:translateY(0); }
.testimonial p{ font-style:italic; color:#fff; }
.testimonial cite{ font-size:0.95rem; color:#fff; }

/* ---------------------------
   Contact grid & info
   --------------------------- */
.grid-2{ display:grid; grid-template-columns: 1fr 380px; gap:22px; }
.info-card .meta{ display:flex; gap:12px; margin-top:12px; flex-direction:column; color:var(--muted); }
.info-card{ color:#fff; background: var(--card-opaque) !important; border:1px solid var(--border-weak); }

/* location inline */
.location-inline{ display:inline-flex; align-items:center; gap:10px; color:#fff; vertical-align:middle; }
.location-inline svg{ width:18px; height:18px; display:block; flex:0 0 18px; opacity:0.95; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.45)); }

/* labels & icons */
.label-with-icon{ display:inline-flex; align-items:center; gap:12px; font-weight:700; color:#fff; }
.label-with-icon .icon, .form-icon{ display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; flex:0 0 22px; line-height:0; border-radius:6px; filter: drop-shadow(0 6px 12px rgba(4,50,60,0.10)); }
.label-with-icon .icon svg, .form-icon svg, .btn-icon svg, .location-inline svg{ display:block; width:100%; height:100%; }

/* stacked labels inside forms */
.quick-form .label-with-icon, .contact-form .label-with-icon{ display:flex; align-items:center; gap:10px; margin-bottom:8px; font-size:0.98rem; }

/* input-with-icon support */
.input-with-icon{ position:relative; }
.input-with-icon .form-icon{ position:absolute; left:12px; top:50%; transform: translateY(-50%); }
.input-with-icon input, .input-with-icon textarea{ padding-left:44px; }

/* ---------------------------
   Footer
   --------------------------- */
.site-footer{
  margin-top:56px;
  padding:36px 0;
  background: rgba(6,18,20,0.94) !important;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.03);
}
.footer-inner{ display:flex; justify-content:space-between; gap:20px; align-items:center; flex-wrap:wrap; color:#fff; }
.footer-links a{ color:#fff; text-decoration:none; }
.footer-links a:hover{ text-decoration:underline; }

/* ---------------------------
   Accessibility helpers
   --------------------------- */
.sr-only{ position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ---------------------------
   Responsive adjustments
   --------------------------- */
@media (max-width:1100px){
  .hero-inner{ grid-template-columns: 1fr 360px; }
  .pricing-grid{ grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); }
}
@media (max-width:900px){
  .hero-inner{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .header-inner{ gap:12px; }
}
@media (max-width:760px){
  .nav-toggle{ display:block; }
  .main-nav{
    position:fixed; inset:auto 12px 0 12px; top:74px;
    background: linear-gradient(180deg, rgba(2,24,28,0.98), rgba(4,36,45,0.98));
    padding:16px; border-radius:12px; box-shadow:0 24px 60px rgba(0,0,0,0.6);
    transform:translateY(-20px); opacity:0; pointer-events:none; transition:all .28s;
  }
  .main-nav.open{ transform:translateY(0); opacity:1; pointer-events:auto; }
  .nav-list{ flex-direction:column; gap:10px; }
  .hero h1{ font-size:1.6rem; }
  .brand-title{ font-size:1rem; }
  .pricing-grid{ grid-template-columns:1fr; }
}

/* reduce motion for prefer-reduced-motion */
@media (prefers-reduced-motion: reduce){
  *{ transition:none!important; animation:none!important; }
}

/* ---------------------------
   Final minor patches for readability (overrides)
   --------------------------- */
/* ensure labels, small text and meta appear white and fully opaque */
.section-lead, .muted, .text-muted, .kicker, .brand-sub, .price-sub, .gallery-item figcaption, .testimonial cite, .location-inline, .footer-inner, .info-card, .info-card .meta, .price-card ul, .price-card ul li {
  color: #fff !important;
  opacity: 1 !important;
}

/* links contrast */
a, .card a, .info-card a, .footer-links a {
  color: #bff7f9 !important;
}
a:hover, .card a:hover, .info-card a:hover, .footer-links a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* Button touch-ups */
.btn-primary { box-shadow: 0 14px 44px rgba(10,115,135,0.30) !important; }

/* Bring hero content above overlays */
.hero-left, .hero-right, .hero-inner { z-index: 8; position: relative; }

/* END PART 2 */
/* ============================================
   PATCH — bardziej przezroczyste tła kart
   ============================================ */

/* Cards — więcej przezroczystości, ale nadal czytelne */
.card,
.card-elevated,
.service-card,
.price-card,
.contact-card,
.info-card {
  background: rgba(3, 12, 14, 0.58) !important; /* było 0.78 — teraz bardziej airy */
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  backdrop-filter: blur(6px) !important; /* lekki efekt szkła */
}

/* Price cards (lekko jaśniejsze tło) */
.price-card {
  background: rgba(3, 12, 14, 0.52) !important;
}

/* Formularze — lekko jaśniejsze, ale nadal mocno czytelne */
.quick-form input,
.quick-form textarea,
.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.08) !important; /* było 0.10 */
  border-color: rgba(255, 255, 255, 0.22) !important;
}

/* Napisy pozostają białe */
.card *, .service-card *, .price-card *, .contact-card *, .info-card * {
  color: #ffffff !important;
}
/* ============================================
   PATCH — bardziej przezroczysty HEADER
   Dopasowany do kart (0.58 + blur)
   ============================================ */

.site-header {
  background: rgba(3, 12, 14, 0.58) !important; /* dopasowane do kart */
  backdrop-filter: blur(6px) !important;       /* ten sam efekt szkła */
  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
}

/* Upewniamy się, że tekst w headerze jest jasny */
.site-header *,
.nav-list a,
.cta-link {
  color: #ffffff !important;
  opacity: 1 !important;
}
/* ============================================
   PATCH — równa wysokość kart w sekcji CENNIK
   ============================================ */

/* Kontener wymusza równe wysokości */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    align-items: stretch;  /* klucz: wszystkie kolumny tej samej wysokości */
}

/* Karty jako elastyczne kolumny */
.price-card {
    display: flex;
    flex-direction: column;
    height: 100%;                  /* rozciąga kartę */
    justify-content: flex-start;
}

/* Lista zajmuje przestrzeń dynamicznie */
.price-card ul {
    flex: 1 1 auto;                /* wypełnia wolną przestrzeń */
    margin-bottom: 20px;
}

/* Przycisk zawsze przyklejony do dołu */
.price-card a.btn {
    margin-top: auto !important;
}

/* Odrobinę większa spójność wizualna */
.price-card .price {
    margin-bottom: 16px;
}
/* ============================================
   PATCH — bardziej przezroczyste karty & header
   ============================================ */

/* KARTY – bardziej airy, szkło, ale tekst nadal czytelny */
.card,
.card-elevated,
.service-card,
.price-card,
.contact-card,
.info-card {
  background: rgba(3, 12, 14, 0.42) !important;  /* było ~0.58 → teraz bardziej transparentne */
  backdrop-filter: blur(10px) !important;        /* mocniejszy efekt szkła */
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
}

/* Price cards nieco jaśniejsze, aby "Premium" było widoczne */
.price-card {
  background: rgba(3, 12, 14, 0.36) !important;
}

/* Formularz — odrobinę bardziej prześwitujący */
.quick-form input,
.quick-form textarea,
.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.06) !important; /* było 0.08 */
  border-color: rgba(255, 255, 255, 0.18) !important;
}

/* HEADER – dopasowany do przezroczystości kart */
.site-header {
  background: rgba(3, 12, 14, 0.42) !important;  /* to samo co karty */
  backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
}

/* Zapewniamy 100% czytelności tekstu */
.site-header *,
.card *,
.price-card *,
.service-card *,
.contact-card *,
.info-card * {
  color: #ffffff !important;
  opacity: 1 !important;
}
/* ============================================
   HEADER — pasek kontaktowy pod menu
   ============================================ */

/* kontener kontaktów */
.header-contact-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 8px;
  padding: 6px 0 2px;
  background: rgba(3, 12, 14, 0.42);  /* ten sam poziom przezroczystości co header */
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.10);
}

/* element kontaktu */
.header-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.92rem;
  transition: opacity .2s ease;
}

.header-contact-item:hover {
  opacity: 0.75;
}

/* ikony */
.h-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* MOBILE: kontakt przeniesiony niżej i wyśrodkowany */
@media (max-width: 760px) {
  .header-contact-bar {
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
  }
}
/* ============================================
   Header contact — centered floating strip (not full-width)
   Replaces previous full-width dark bar
   ============================================ */

.header-contact-bar {
  width: 100%;                     /* container full width, inner is centered */
  display: flex;
  justify-content: center;         /* center the inner bar horizontally */
  margin-top: 8px;
  z-index: 145;                    /* above header background */
  pointer-events: auto;
}

/* visible inner box — not full width, centered, rounded */
.header-contact-inner {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 8px 18px;
  border-radius: 10px;
  background: rgba(3, 12, 14, 0.42);   /* matches header/cards transparency */
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.48);
  border: 1px solid rgba(255,255,255,0.08);
  max-width: calc(min(900px, 88%));    /* don't grow too wide */
}

/* each contact item */
.header-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: opacity .18s ease, transform .12s ease;
}

/* icon */
.hc-icon { display:block; width:18px; height:18px; flex:0 0 18px; }

/* text */
.hc-text { color: #ffffff; }

/* hover */
.header-contact-item:hover { opacity: 0.85; transform: translateY(-1px); }

/* small screens — stack and full width inner */
@media (max-width: 760px) {
  .header-contact-inner {
    flex-direction: column;
    gap: 6px;
    padding: 10px 14px;
    width: calc(100% - 40px);  /* small horizontal margin */
    max-width: 600px;
  }
  .header-contact-item { font-size: 0.92rem; }
}
/* ============================================
   HEADER CONTACT — CENTERED ABSOLUTE (fix)
   centers the contact badge under the nav without shifting menu
   ============================================ */

/* make header a positioning context */
.site-header { position: relative; }

/* center the inner badge absolutely under the header (doesn't affect flow) */
.header-contact-bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 56px;                 /* distance from top of header — tweak if needed */
  z-index: 250;              /* above header */
  width: auto;
  pointer-events: auto;
  display: flex;
  justify-content: center;
  padding: 0;                /* inner element supplies padding */
}

/* visible inner box — constrained width, centered */
.header-contact-inner {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 8px 18px;
  border-radius: 10px;
  background: rgba(3, 12, 14, 0.36);   /* slightly more transparent */
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.06);
  max-width: calc(min(880px, 86%));
}

/* items */
.header-contact-item { display:inline-flex; align-items:center; gap:10px; color:#fff; text-decoration:none; font-weight:700; font-size:0.95rem; }
.hc-icon { width:18px; height:18px; flex:0 0 18px; display:block; }

/* small screens — make it part of flow below header */
@media (max-width: 920px) {
  .header-contact-bar {
    position: static;          /* return to normal flow so it sits under header content */
    transform: none;
    margin-top: 8px;
    padding: 0 12px;
  }
  .header-contact-inner {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    justify-content: center;
    padding: 10px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .header-contact-item { font-size:0.92rem; }
}

/* If header height or nav layout change, tweak 'top' value above.
   For example, set top: calc(100% - 6px); to always pin under header's bottom. */

/* Optional: ensure floating CTA (if any) doesn't collide — add slight right offset for large screens */
@media (min-width:1100px){
  .header-contact-inner{ transform: translateZ(0); } /* keep it sharp */
}

/* Accessibility: ensure focus outline on links inside badge */
.header-contact-item:focus { outline: 3px solid rgba(11,122,160,0.14); outline-offset: 3px; }
/* =============================================
   HEADER CONTACT — fix wrapping, position under header
   ============================================= */

/* make header a positioning context (harmless if already set) */
.site-header { position: relative; }

/* absolute centered badge pinned below header */
.header-contact-bar {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);   /* 8px pod spodem headera — tweak if needed */
  transform: translateX(-50%);
  z-index: 260;
  pointer-events: auto;
  display: flex;
  justify-content: center;
  width: auto;
  padding: 0;
}

/* inner box: constrained width, no wrapping */
.header-contact-inner {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 10px 20px;
  border-radius: 10px;
  background: rgba(3,12,14,0.36);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.06);
  max-width: 820px;
  min-width: 220px;
  width: auto;
  box-sizing: border-box;
  white-space: nowrap;          /* KEY: prevent wrapping inside inner box */
}

/* each contact cell stays on single line and truncates if too long */
.header-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;         /* prevent wrapping per item */
}

/* icon size */
.hc-icon { width:18px; height:18px; flex:0 0 18px; }

/* ensure the text doesn't break; allow truncation with ellipsis if really narrow */
.hc-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
  display: inline-block;
}

/* small screens: stack and normal flow */
@media (max-width: 920px) {
  .header-contact-bar { position: static; transform:none; margin-top:8px; padding:0 12px; }
  .header-contact-inner { width: 100%; max-width:none; padding:10px 14px; gap:10px; flex-wrap:wrap; justify-content:center; white-space:normal; }
  .header-contact-item { font-size:0.92rem; white-space:normal; }
  .hc-text { max-width: none; text-overflow: clip; }
}

/* optional quick nudge to avoid colliding with right-side CTA:
   if your CTA sits on the right and the badge covers it, uncomment and tweak the value */
/*
@media (min-width:1100px){
  .header-contact-bar { left: calc(50% + 80px); transform: translateX(-50%); }
}
*/
/* =====================================================
   HEADER — kontakt NAD menu
   ===================================================== */

.header-top-contact {
  width: 100%;
  display: flex;
  justify-content: flex-end;      /* kontakt po prawej stronie */
  gap: 32px;
  padding: 6px 8px 0 8px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.ht-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  text-decoration: none;
  transition: opacity .2s ease;
}

.ht-item:hover {
  opacity: 0.75;
}

.ht-icon {
  font-size: 1.15rem;
}

/* --- MOBILE: kontakt wyśrodkowany nad menu --- */
@media (max-width: 900px) {
  .header-top-contact {
    justify-content: center;
    gap: 20px;
    font-size: 0.92rem;
  }
}
/* =====================================================
   header-top-contact — centered above menu (final)
   Put this at the end of styles.css
   ===================================================== */

/* Ensure header is a positioned container */
.site-header { position: relative; }

/* the top-contact container (absolute, centered) */
.header-top-contact {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 14px;               /* distance from top of header — tweak if needed */
  z-index: 220;
  display: flex;
  justify-content: center;
  pointer-events: auto;
  width: auto;
  padding: 0;
}

/* inner items row — compact pill centered over nav */
.header-top-contact .ht-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin: 0 8px;
  border-radius: 999px;
  background: rgba(3,12,14,0.28);  /* slightly translucent */
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.06);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;  /* key: prevent breaks inside the phone/email */
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

/* icon inside item */
.header-top-contact .ht-icon { width:18px; height:18px; flex:0 0 18px; display:block; }

/* text */
.header-top-contact .ht-text { color: #ffffff; }

/* hover */
.header-top-contact .ht-item:hover { opacity: 0.9; transform: translateY(-1px); }

/* MOBILE: make it part of normal flow and centered above menu */
@media (max-width: 920px) {
  .header-top-contact {
    position: static;           /* return to flow so it pushes menu down */
    transform: none;
    margin-bottom: 6px;
    padding: 0 12px;
  }
  .header-top-contact .ht-item {
    padding: 8px 12px;
    margin: 6px 6px;
    font-size: 0.92rem;
  }
}

/* If the pill sits too high/low relative to your menu, tweak `top` value above.
   For example: top: 20px;  or  top: calc(100% - 60px);  depending on header layout. */
/* =========================
   Stylowany select (dopasowany do pól formularza)
   ========================= */

.select-people {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  width: 100%;
  height: 44px; /* dopasowane do wysokości inputów */
  padding: 10px 44px 10px 12px; /* miejsce na strzałkę po prawej */
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  color: #fff;
  font-size: 1rem;
  box-shadow: inset 0 3px 10px rgba(0,0,0,0.45);
  cursor: pointer;
  line-height: 1;
}

/* dodajemy własną strzałkę SVG jako tło - ładna, ostro wyglądająca */
.select-people {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'><defs><linearGradient id='g' x1='0' x2='1'><stop offset='0' stop-color='%2300d0da'/><stop offset='1' stop-color='%230b7aa0'/></linearGradient></defs><path fill='url(%23g)' d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
}

/* focus */
.select-people:focus {
  outline: none;
  box-shadow: 0 6px 30px rgba(10,110,120,0.12);
  border-color: rgba(11,122,160,0.85);
}

/* opcjonalnie: wygląd opcji (nie wszystkie przeglądarki to honorują) */
.select-people option {
  color: #04262b;
  background: #fff;
}

/* na bardzo małych ekranach można zmniejszyć padding */
@media (max-width:480px){
  .select-people { padding-right: 40px; height:42px; font-size:0.95rem; }
}
/* ===================================================
   FIX: zapobiegaj obcinaniu rozwijanego selecta
   - pozwala dropdownowi pojawiać się nad kartą
   - usuwa overflow: hidden z kontenerów, podnosi z-index
   =================================================== */

/* 1) Upewnij się, że kontenery formularza nie przycinają potomków */
.contact-card,
.card,
.card-elevated,
.hero-right,
.quick-form,
.contact-form {
  overflow: visible !important;    /* allow the native dropdown to overflow */
  z-index: auto !important;        /* keep normal stacking, select itself podbije z-index */
}

/* 2) Podnieś z-index samego selecta (większy niż karty) */
.select-people,
.contact-form select,
.quick-form select {
  position: relative;   /* wymagane, żeby z-index działał */
  z-index: 99999;       /* bardzo wysoko, nad większością elementów strony */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* 3) Drobne poprawki wizualne rozwiniętego menu (nie wszystkie przeglądarki je honorują)
   – ale poprawią czytelność w przeglądarkach które wspierają stylowanie opcji */
.select-people option {
  padding: 8px 12px;
  background: #ffffff;
  color: #04262b;
}

/* 4) Jeśli któryś z przodków ma transform (np. transform: translateZ / scale)
   to natywne dropdowny w niektórych przeglądarkach mogą być i tak obcinane.
   Znajdź i usuń transform: ... z rodziców lub dodaj - try this fallback:
*/
.header-inner,
.hero-inner,
.container,
.site-header,
.site-footer {
  transform: none !important;
}

/* 5) Mobile: select zwykle otwiera natywny picker - zachowaj standard */
@media (max-width:920px){
  .select-people { z-index: 9999; }
}
/* ===============================
   Custom select (people) — styles
   =============================== */

.custom-select {
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  width:100%;
  min-height:44px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  color:#fff;
  cursor:pointer;
  box-shadow: inset 0 3px 10px rgba(0,0,0,0.45);
  position:relative;
  box-sizing:border-box;
}
.custom-select .cs-selected { flex:1; }
.custom-select .cs-selected::before { content: attr(data-value); display:block; color:#fff; font-size:1rem; line-height:1.1; }
.custom-select .cs-toggle {
  background: transparent;
  border: none;
  color: #00d0da;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  margin-left:8px;
}

/* Dropdown panel appended to body */
.cs-dropdown {
  position: absolute;
  min-width: 160px;
  max-width: 420px;
  max-height: 260px;
  overflow-y: auto;
  border-radius:10px;
  background: rgba(3,12,14,0.92);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 60px rgba(0,0,0,0.6);
  padding:6px;
  z-index: 99999;
}

/* each option */
.cs-option {
  padding: 10px 12px;
  border-radius:8px;
  color:#fff;
  cursor:pointer;
  white-space:nowrap;
}
.cs-option:hover,
.cs-option[aria-selected="true"] {
  background: linear-gradient(90deg,#00d0da,#0b7aa0);
  color:#04262b;
  font-weight:700;
}

/* when dropdown hidden we just remove element; no special hide rule required */

/* keyboard focus style */
.custom-select:focus { outline: 3px solid rgba(11,122,160,0.12); outline-offset:3px; }

/* mobile adjustments */
@media (max-width:760px){
  .cs-dropdown { max-width: calc(100% - 32px); left:16px !important; right:16px !important; }
}
select,
.custom-select-wrapper {
    margin-bottom: 24px !important; /* odstęp pod listą */
}
/* Odstęp między selectem a przyciskiem */
.custom-select,
.custom-select-wrapper,
select#q_people {
    margin-bottom: 22px !important;
}

/* Lepszy wygląd selecta */
select#q_people {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    font-size: 1rem;
}

/* Opcje w dropdown */
select#q_people option {
    background: #0b1d21;
    color: #fff;
    padding: 10px;
}
/* Ensure icon in button is visible and sized correctly */
.btn-icon{ display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; margin-right:10px; flex-shrink:0; vertical-align:middle; }
.btn-icon svg{ width:100%; height:100%; display:block; }
.btn-label{ display:inline-block; vertical-align:middle; }

/* Ikona w przycisku — naprawa rozmiaru, marginesu, wyrównania */
.hero-call-btn .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    flex-shrink: 0;
}

.hero-call-btn .btn-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Aby ikona zawsze była widoczna na tle gradientu */
.hero-call-btn svg path {
    stroke: none;
}
/* FORCE: icon in hero call button — guaranteed visible */
.hero-call-btn { display:inline-flex; align-items:center; gap:10px; }
.hero-call-btn .btn-icon {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:20px !important;
  height:20px !important;
  margin-right:10px !important;
  flex-shrink:0 !important;
  vertical-align:middle !important;
  opacity:1 !important;
}
.hero-call-btn .btn-icon svg {
  width:100% !important;
  height:100% !important;
  display:block !important;
}
.hero-call-btn .btn-label { color:inherit; }

/* In case some parent sets svg { display:none } or path { fill:currentColor } */
.hero-call-btn svg, .hero-call-btn svg * { display:block !important; visibility:visible !important; }
.hero-call-btn svg path { fill: #00c2d1 !important; stroke: none !important; }

/* ensure button children are visible (higher stacking if needed) */
.hero-call-btn { position: relative; z-index: 50 !important; }

/* small screens tweak if needed */
@media (max-width:760px){
  .hero-call-btn { gap:8px; }
  .hero-call-btn .btn-icon { width:18px; height:18px; margin-right:8px; }
}
/* ===========================
   Hero call button — phone icon as background SVG (data URI)
   reliable: not affected by parent overflow/display rules
   =========================== */

.hero-call-btn {
  /* make room for the icon on the left */
  padding-left: 46px !important;      /* 20px icon + 16px gap + inner padding */
  padding-right: 16px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  position: relative;
  vertical-align: middle;
}

/* background svg (phone) as data URI; color matches accent */
.hero-call-btn {
  background-image:
    linear-gradient(90deg, var(--accent-1), var(--accent-2)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%2300c2d1' d='M22 16.9v2.9a1.9 1.9 0 0 1-1.8 1.9 17.8 17.8 0 0 1-16.2-16.1A1.9 1.9 0 0 1 4.9 5h2.9a.95.95 0 0 1 .9.65l.9 2.6a.95.95 0 0 1-.26.96l-1.6 1.6a13.3 13.3 0 0 0 6 6l1.6-1.6a.95.95 0 0 1 .96-.26l2.6.9c.3.1.5.4.5.7z'/></svg>");
  background-repeat: no-repeat, no-repeat;
  background-position: left 12px center, center;
  background-size: 20px 20px, cover;
}

/* ensure the original btn-primary visual stays (gradient under icon) */
.hero-call-btn {
  color: #04262b !important;
  box-shadow: 0 12px 34px rgba(11,122,160,0.18), inset 0 -2px 8px rgba(255,255,255,0.03);
}

/* make sure icon is visible if some global rules target svg elements */
.hero-call-btn::before { content: ''; /* nothing, placeholder to allow bg to render */ }

/* small screens adjustments */
@media (max-width:760px) {
  .hero-call-btn { padding-left: 42px !important; font-size: 0.95rem; }
  .hero-call-btn { background-position: left 10px center, center; background-size: 18px 18px, cover; }
}

/* if something else still hides background, force higher specificity */
a.btn.btn-primary.hero-call-btn {
  background-image:
    linear-gradient(90deg, var(--accent-1), var(--accent-2)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%2300c2d1' d='M22 16.9v2.9a1.9 1.9 0 0 1-1.8 1.9 17.8 17.8 0 0 1-16.2-16.1A1.9 1.9 0 0 1 4.9 5h2.9a.95.95 0 0 1 .9.65l.9 2.6a.95.95 0 0 1-.26.96l-1.6 1.6a13.3 13.3 0 0 0 6 6l1.6-1.6a.95.95 0 0 1 .96-.26l2.6.9c.3.1.5.4.5.7z'/></svg>") !important;
}
.hero-call-btn {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    padding-left: 48px !important;
    padding-right: 18px !important;

    color: #ffffff !important;
    font-weight: 800;

    /* JEDNO tło które łączy gradient + ikonę */
    background:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23ffffff' d='M22 16.9v2.9a1.9 1.9 0 0 1-1.8 1.9 17.8 17.8 0 0 1-16.2-16.1A1.9 1.9 0 0 1 4.9 5h2.9a.95.95 0 0 1 .9.65l.9 2.6a.95.95 0 0 1-.26.96l-1.6 1.6a13.3 13.3 0 0 0 6 6l1.6-1.6a.95.95 0 0 1 .96-.26l2.6.9c.3.1.5.4.5.7z'/></svg>")
      16px center / 20px 20px no-repeat,
      linear-gradient(90deg, var(--accent-1), var(--accent-2)) !important;
}

@media (max-width: 768px) {
    .hero-call-btn {
        padding-left: 42px !important;
        background-position: 12px center, center;
        background-size: 18px 18px, cover;
    }
}
/* ===============================
   HERO CALL — force single background (svg + gradient)
   Removes duplicate backgrounds / pseudo-element tints
   Paste at the end of styles.css
   =============================== */

a.btn.btn-primary.hero-call-btn {
  /* layout */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  position: relative !important;
  z-index: 60 !important;

  /* spacing so icon on the left has room */
  padding-left: 48px !important;
  padding-right: 16px !important;

  /* Force a single composed background: SVG (left) + gradient (base) */
  background: 
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23ffffff' d='M22 16.9v2.9a1.9 1.9 0 0 1-1.8 1.9 17.8 17.8 0 0 1-16.2-16.1A1.9 1.9 0 0 1 4.9 5h2.9a.95.95 0 0 1 .9.65l.9 2.6a.95.95 0 0 1-.26.96l-1.6 1.6a13.3 13.3 0 0 0 6 6l1.6-1.6a.95.95 0 0 1 .96-.26l2.6.9c.3.1.5.4.5.7z'/></svg>")
      12px center / 20px 20px no-repeat,
    linear-gradient(90deg, var(--accent-1), var(--accent-2)) !important;

  /* ensure no other background-image from parent is visible */
  background-repeat: no-repeat !important;
  background-position: 12px center, center !important;
  background-size: 20px 20px, cover !important;

  /* ensure text & shadow remain */
  color: var(--text-strong) !important;
  box-shadow: 0 12px 34px rgba(11,122,160,0.18), inset 0 -2px 8px rgba(255,255,255,0.03) !important;
}

/* Remove any pseudo-element background for this specific button */
a.btn.btn-primary.hero-call-btn::before,
a.btn.btn-primary.hero-call-btn::after {
  background: none !important;
  content: none !important;
}

/* Ensure children SVGs (if any) are hidden to avoid duplicates */
a.btn.btn-primary.hero-call-btn svg { display: none !important; }

/* Small-screen tweaks */
@media (max-width: 760px) {
  a.btn.btn-primary.hero-call-btn {
    padding-left: 42px !important;
    background-position: 10px center, center !important;
    background-size: 18px 18px, cover !important;
  }
}
