:root{
  /* === ACCENT SYSTEM (jedno źródło prawdy) === */
  --accent: #d70d14;                 /* zmieniasz TYLKO TO */
  --accent-yellow: #f5c451;
  --accent-green:  #1f7a5a;
  --accent-red:    #d70d14;
  --accent-soft: rgba(185,28,28,.12);
  --accent-mid:  rgba(185,28,28,.45);
  --accent-strong: rgba(185,28,28,.95);

  /* === LEGACY / ALIAS === */
  --yellow: var(--accent);           /* stare klasy dalej działają */

  /* === BASE COLORS === */
 --bg:  #08120f;   /* prawie czarny, zielony undertone */
 --bg2: #050d0a;   /* jeszcze ciemniejszy */


  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --line: rgba(255,255,255,.14);

  /* === BRAND === */
  --navy:   #05431b;
  --cyan:   #64ec52;

  --radius: 18px;
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --max: 1120px;
}


*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 12% 10%, rgba(82,190,236,.16), transparent 55%),
    radial-gradient(900px 600px at 88% 18%, rgba(0,75,142,.18), transparent 50%),
    radial-gradient(700px 500px at 70% 85%, rgba(251,165,52,.10), transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg) 40%, var(--bg2));
  line-height: 1.45;
}

a{ color: inherit; text-decoration: none; }
img{ max-width:100%; display:block; }
.container{ max-width: var(--max); margin: 0 auto; padding: 18px 16px 64px; }

/* Sticky header */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(11,18,32,.88), rgba(11,18,32,.55));
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.topbar-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.brand img{
  height: 68px;          /* było 52px */
  width: auto;
  max-height: 72px;      /* bezpiecznik */
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.25));
}

.nav{
  display:flex; gap: 10px; flex-wrap:wrap; justify-content:flex-end; align-items:center;
}
.nav a{
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: 14px;
  white-space:nowrap;
}
.nav a:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-color: rgba(82,190,236,.40);
}

.actions{ display:flex; gap: 10px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }

.tel{
  display:inline-flex; align-items:center; gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(82,190,236,.40);
  background: rgba(82,190,236,.10);
  color: rgba(255,255,255,.92);
  font-weight: 800;
  letter-spacing: .2px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;

  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);

  background: rgba(255,255,255,.04);
  color: var(--text);

  font-weight: 700;
  font-size: 15px;          
  line-height: 1.2;

  cursor:pointer;
  white-space:nowrap;

  transition:
    transform .06s ease,
    background .2s ease,
    filter .2s ease,
    border-color .2s ease;
}

.btn:hover{
  background: rgba(255,255,255,.08);
}

.btn:active{
  transform: translateY(1px);
}

/* PRIMARY CTA */
.btn.primary{
  border-color: rgba(0,0,0,.25);
  background: linear-gradient(
    135deg,
    #f5c451,   /* żółty bazowy */
    #f0a81f    /* lekko w stronę czerwieni */
  );
  color: #111;              /* czarny tekst */
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 10px 24px rgba(0,0,0,.35);
}

.btn.primary:hover{
  background: linear-gradient(
    135deg,
    #f7cf6b,
    #f2b53a
  );
}

.btn.primary:active{
  transform: translateY(1px);
}


/* SECONDARY CTA */
.btn.secondary{
  display:inline-flex;
  align-items:center;
  gap:8px;

  padding: 10px 12px;
  border-radius: 12px;

  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.18);

  color: var(--text);
  font-weight: 800;
  font-size: 14px;

  transition:
    background .2s ease,
    border-color .2s ease,
    transform .06s ease;
}

.btn.secondary:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.28);
}

.btn.secondary:active{
  transform: translateY(1px);
}


/* FORM CTA – */
#contactForm .btn.primary{
  font-size: 16px;
  padding: 13px 16px;
}

.link{
  color: rgba(255,255,255,.92);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(82,190,236,.70);
}
.link:hover{
  text-decoration-color: rgba(251,165,52,.85);
}

/* Facebook sticky */
.fb-sticky{
  position: fixed;
  left: 0;
  top: 42%;
  z-index: 70;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 12px 10px;
  border-radius: 12px 0 0 12px;
  border: 1px solid rgba(82,190,236,.35);
  border-right: none;
  background: rgba(0,75,142,.28);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.92);
  font-weight: 800;
  letter-spacing: .3px;
}
.fb-sticky:hover{
  background: rgba(0,75,142,.40);
  border-color: rgba(251,165,52,.45);
}
@media (max-width: 820px){
  .hero{ grid-template-columns: 1fr; }
  .hero-right{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .hero-right .info:nth-child(3){ grid-column: 1 / -1; }
}
@media (max-width: 520px){
  .hero-right{ grid-template-columns: 1fr; }
}

@media (max-width: 980px){
  .fb-sticky{ top: 36%; padding: 11px 9px; }
}
@media (max-width: 520px){
  .brand img{
    height: 56px;
  }
}
/* Cards */
.card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  padding: 18px;
  box-shadow: var(--shadow);
}
.h3{ margin:0 0 10px; font-size: 16px; }
.muted{ margin:0; color: var(--muted); }
.urgent-label{
  color: #fba534;
  font-weight: 700;
  margin-right: 4px;
}
.strong{ color: rgba(255,255,255,.90); }
.underline{ text-decoration: underline; text-underline-offset: 3px; }
.help{ color: var(--muted); font-size: 13px; margin: 10px 0 0; }

.section{ margin-top: 22px; }
.section-title{
  display:flex; align-items: baseline; justify-content:space-between; gap: 10px;
  margin: 0 0 12px;
}
.section-title h2{
  margin:0 0 2px;
  font-size: 18px;
  letter-spacing: -.2px;
}
.section-title h2::after{
  content:"";
  display:inline-block;
  width: 56px;
  height: 3px;
  margin-left: 10px;
  border-radius: 999px;
  background: rgba(251,165,52,.95);
  vertical-align: middle;
}
.section-title span{ color: var(--muted); font-size: 14px; }

/* Hero */
.hero{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
  align-items: stretch;
}

/* left card */
.hero-left{
  position: relative;
  overflow: hidden;
  padding: 0;
}

/* photo */
.hero-media{
  position: absolute;
  inset: 0;
  z-index: 0;

  background: url("../../img/hero/hero.jpg") center/cover no-repeat;
  transform: scale(1.02) translateZ(0);
  filter: saturate(1.02) contrast(1.02);
}
.hero-media-zarzad{
  position: absolute;
  inset: 0;
  z-index: 0;

  background: url("../../img/hero/zarzad.jpg") center/cover no-repeat;
  transform: scale(1.02) translateZ(0);
  filter: saturate(1.02) contrast(1.02);
}
.hero-media-misja{
  position: absolute;
  inset: 0;
  z-index: 0;

  background: url("../../img/hero/misja.jpg") center/cover no-repeat;
  transform: scale(1.02) translateZ(0);
  filter: saturate(1.02) contrast(1.02);
}
.hero-media-dzialania{
  position: absolute;
  inset: 0;
  z-index: 0;

  background: url("../../img/hero/dzialania.jpg") center/cover no-repeat;
  transform: scale(1.02) translateZ(0);
  filter: saturate(1.02) contrast(1.02);
}
.hero-media-wesprzyj{
  position: absolute;
  inset: 0;
  z-index: 0;

  background: url("../../img/hero/wesprzyj.jpg") center/cover no-repeat;
  transform: scale(1.02) translateZ(0);
  filter: saturate(1.02) contrast(1.02);
}
.hero-media-protetyka{
  position: absolute;
  inset: 0;
  z-index: 0;

  background: url("../../img/hero/protetyka1.jpg") center/cover no-repeat;
  transform: scale(1.02) translateZ(0);
  filter: saturate(1.02) contrast(1.02);
}
.hero-media-chirugria{
  position: absolute;
  inset: 0;
  z-index: 0;

  background: url("../../img/hero/chirurgia1.jpg") center/cover no-repeat;
  transform: scale(1.02) translateZ(0);
  filter: saturate(1.02) contrast(1.02);
}
.hero-media-cennik{
  position: absolute;
  inset: 0;
  z-index: 0;

  background: url("../../img/hero/cennik1.jpg") center/cover no-repeat;
  transform: scale(1.02) translateZ(0);
  filter: saturate(1.02) contrast(1.02);
}
.hero-media-praca{
  position: absolute;
  inset: 0;
  z-index: 0;

  background: url("../../img/hero/praca1.jpg") center/cover no-repeat;
  transform: scale(1.02) translateZ(0);
  filter: saturate(1.02) contrast(1.02);
}

/* soft overlay*/
.hero-left::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background:
    /* bottom fade for CTA */
    linear-gradient(
      to top,
      rgba(7,11,20,.62) 0%,
      rgba(7,11,20,.30) 34%,
      rgba(7,11,20,.12) 56%,
      rgba(7,11,20,0) 78%
    ),
    /* left readability */
    linear-gradient(
      90deg,
      rgba(7,11,20,.72) 0%,
      rgba(7,11,20,.32) 52%,
      rgba(7,11,20,.08) 78%,
      rgba(7,11,20,0) 100%
    );
}

/* content */
.hero-content{
  position: relative;
  z-index: 2;

  padding: 20px;
  min-height: 330px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}

.badge{
  display: inline-flex;
  align-items: center;

  border: 1px solid rgba(251,165,52,.40);
  padding: 6px 10px;
  border-radius: 999px;

  font-size: 13px;
  color: rgba(255,255,255,.90);
  background: rgba(251,165,52,.10);
  width: fit-content;
}

.hero h1{
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.6px;
}

.hero p{
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 16px;
  max-width: 62ch;
}

/* CTA pinned bottom */
.hero-actions{
  position: absolute;
  z-index: 2;

  left: 20px;
  right: 20px;
  bottom: 20px;

  display: flex;
  gap: 10px;
  flex-wrap: wrap;

  margin-top: 0;
}

/* right column */
.hero-right{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  padding: 16px;
  position: relative;
}

.info h3{
  margin: 0 0 6px;
  font-size: 15px;
}

.info p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.info-icon{
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  display: block;
  opacity: .9;
}

/* Trust tiles */
.trust{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.trust .tile{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  padding: 14px;
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
}
.trust .tile strong{
  display:block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .1px;
}
.trust .tile strong::before{
  content:"";
  display:inline-block;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(14, 174, 84, 0.95);
  margin-right: 8px;
  box-shadow: 0 0 0 3px rgba(82,190,236,.12);
  vertical-align: middle;
}
.trust .tile p{ margin:0; color: var(--muted); font-size: 13px; }

/* Services */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.service{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  padding: 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,.24);
  display:flex;
  flex-direction:column;
  gap: 10px;
  min-height: 170px;
}
.service h3{ margin:0; font-size: 16px; font-weight:900;}
.service p{ margin:0; color: var(--muted); font-size: 14px; }
.service .cta{
  margin-top:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.linkbtn{
  display:inline-flex; align-items:center; gap:8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(82,190,236,.10);
  border: 1px solid rgba(14, 174, 84, 0.95);
  font-weight:800;
  font-size: 15px;
}
.linkbtn:hover{
  background: rgba(82,190,236,.14);
  border-color: rgba(251,165,52,.45);
}
.small{ color: var(--muted); font-size: 13px; }

/* Zarząd mini */
.team-mini{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.doc{
  display:flex;
  gap:10px;
  align-items:center;
  padding: 10px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.doc:hover{ background: rgba(255,255,255,.06); border-color: rgba(5, 146, 94, 0.35); }
.avatar{
  width:86px;
  height:86px;
  border-radius:999px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.18);
}
.doc-name{ font-weight:900; font-size: 13px; line-height: 1.15; }
.doc-role{ color: var(--muted); font-size: 12px; margin-top: 2px; }
.doc-clear{ color: var(--muted); font-size: 10px; margin-top: 2px; }
.team-actions{ margin-top: 12px; display:flex; gap:10px; flex-wrap:wrap; }

/* Clinic media */
.media-row{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 12px;
  align-items:stretch;
}
.photo{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow:hidden;
  background: rgba(255,255,255,.03);
  min-height: 210px;
}
.photo img{
  width:100%;
  height:100%;
  object-fit: cover;
  filter: saturate(1.02);
}
.photo.map{
  margin-top: 14px;
  background: rgba(251,165,52,.06);
}
.photo.map img{
  object-fit: contain;
  padding: 12px;
  filter: none;
}

/* Bullets */
.bullets{ margin-top: 12px; display:grid; gap:8px; }
.bullet{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.86);
  font-size: 14px;
}
.bullet::before{
  content:"";
  display:inline-block;
  width: 10px; height: 10px;
  border-radius: 999px;
  background: rgba(251,165,52,.95);
  margin-right: 10px;
  vertical-align: middle;
}
.actions-row{ margin-top: 12px; display:flex; gap:10px; flex-wrap:wrap; }

/* Reviews */
.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.quote{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  padding: 16px;
}
.quote-head{
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom: 10px;
}
.pavatar{
  width:42px; height:42px;
  border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  font-weight: 950;
  letter-spacing: .2px;
  color: rgba(0,0,0,.85);
  border:1px solid rgba(251,165,52,.55);
  background: radial-gradient(18px 18px at 30% 30%, rgba(251,165,52,.95), rgba(255,255,255,.25));
}
.who{ margin:0; font-weight: 900; font-size: 13px; }
.meta{ margin:0; color: var(--muted); font-size: 12px; }
.q{ margin:0; color: rgba(255,255,255,.86); }
.review-cta{ display:flex; flex-direction:column; gap:10px; }

/* Contact */
.contact-wrap{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
form{ display:grid; gap: 10px; }
label{ font-size: 13px; color: var(--muted); }
input, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline: none;
  font-size: 15px;
}
textarea{ min-height: 110px; resize: vertical; }
input:focus, textarea:focus{ border-color: rgba(82,190,236,.65); }
.row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.checkbox{
  display:flex; gap:10px; align-items:flex-start;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
.checkbox input{ width: 18px; height: 18px; margin-top: 2px; }

.status{
  display:none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(167,243,208,.35);
  background: rgba(167,243,208,.08);
  color: rgba(255,255,255,.9);
  font-size: 14px;
}
.contact-photo{
  margin-top: 24px;
  border-radius: 18px;
  overflow: hidden;
}

.contact-photo img{
  width: 100%;
  height: auto;
  display: block;
}

/* Payments */
.pay{ padding: 16px; }
.pay-head{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 12px;
}
.pay-note{ color: var(--muted); font-size: 14px; }
.pay-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items:stretch;
}
.cards{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  align-items:center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}
.cards img{
  height: 46px;
  width: auto;
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .15s ease, box-shadow .15s ease;
}

.cards img:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

.mediraty{
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(251,165,52,.28);
  background: rgba(251,165,52,.06);
}
.mediraty-title{
  font-weight: 950;
  letter-spacing: .2px;
}
@media (max-width: 980px){
  .pay-grid{ grid-template-columns: 1fr; }
}

/* Footer */
footer{
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
  display:flex;
  flex-wrap:wrap;
  gap: 10px 14px;
  align-items:center;
  justify-content:space-between;
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 16px;
}
.footer-links{ display:flex; gap:14px; flex-wrap:wrap; }
footer a{ text-decoration: underline; text-underline-offset: 3px; }

/* Responsive */
@media (max-width: 1100px){
  .team-mini{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .trust{ grid-template-columns: 1fr 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .two-col{ grid-template-columns: 1fr; }
  .media-row{ grid-template-columns: 1fr; }
  .contact-wrap{ grid-template-columns: 1fr; }
  .row{ grid-template-columns: 1fr; }
  .nav{ display:none; }
  .team-mini{ grid-template-columns: 1fr; }
}
@media (max-width: 520px){
  .trust{ grid-template-columns: 1fr; }
}

/* Mobile CTA bar */
.mobile-cta{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(7,11,20,.86);
  border-top: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  padding: 10px 18px;
  display:none;
}
.mobile-cta .wrap{
  max-width: var(--max);
  margin: 0 auto;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 980px){
  .mobile-cta{ display:block; }
  body{ padding-bottom: 72px; }
}
/* Hamburger */
.burger{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  cursor: pointer;
  align-items:center;
  justify-content:center;
  gap: 6px;
  flex-direction: column;
}
.burger span{
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,.86);
  border-radius: 999px;
  transition: transform .18s ease, opacity .18s ease;
}
.burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu panel */
.mobile-menu{
  position: fixed;
  top: 70px; 
  right: 16px;
  left: 16px;
  z-index: 80;

  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(11,18,32,.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  padding: 14px;
}
.mobile-nav{
  display:grid;
  gap: 10px;
}
.mobile-nav a{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.86);
  font-weight: 700;
}
.mobile-nav a:hover{
  border-color: rgba(82,190,236,.40);
  background: rgba(255,255,255,.06);
}

/* Backdrop */
.backdrop{
  position: fixed;
  inset: 0;
  z-index: 75;
  background: rgba(0,0,0,.55);
}

/* Breakpoint: nav znika, burger się pojawia */
@media (max-width: 980px){
  .burger{ display:flex; }
}

/* =========================
   Podstrony usług (np. Implanty)
   ========================= */
.hero-service{
position: relative;
overflow: hidden;
padding: 0;
}
.hero-service .cover{
position:absolute; inset:0;
background:
linear-gradient(90deg, rgba(7,11,20,.86), rgba(7,11,20,.46) 55%, rgba(7,11,20,.22)),
url("img/implant1.jpg") center/cover no-repeat;
transform: scale(1.02);
}
.hero-service .inner{
position: relative;
padding: 20px;
min-height: 320px;
display:flex;
flex-direction:column;
gap: 12px;
}
.kpi{
display:grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 10px;
margin-top: 6px;
}
.kpi .tile{
border:1px solid rgba(255,255,255,.12);
border-radius: 16px;
background: rgba(255,255,255,.04);
padding: 12px;
}
.kpi .n{
font-weight: 900;
letter-spacing: -.2px;
font-size: 16px;
margin:0 0 2px;
}
.kpi .t{
margin:0;
color: rgba(255,255,255,.72);
font-size: 13px;
}
@media (max-width: 980px){
.kpi{ grid-template-columns: 1fr; }
}

.steps{
display:grid;
grid-template-columns: repeat(5, 1fr);
gap: 12px;
}
.step{
border:1px solid rgba(255,255,255,.12);
border-radius: 18px;
background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
padding: 14px;
box-shadow: 0 10px 22px rgba(0,0,0,.22);
}
.step .no{
display:inline-flex;
align-items:center;
justify-content:center;
width: 34px;
height: 34px;
border-radius: 999px;
background: rgba(251,165,52,.95);
color: rgba(0,0,0,.82);
font-weight: 950;
margin-bottom: 8px;
box-shadow: 0 0 0 4px rgba(251,165,52,.12);
}
.step h3{
margin:0 0 6px;
font-size: 14px;
}
.step p{
margin:0;
color: rgba(255,255,255,.72);
font-size: 13px;
}
@media (max-width: 1100px){
.steps{ grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 780px){
.steps{ grid-template-columns: 1fr; }
}

.compare{
display:grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
@media (max-width: 980px){
.compare{ grid-template-columns: 1fr; }
}
.compare .card h3{ margin:0 0 10px; }
.list{
display:grid;
gap: 8px;
margin-top: 10px;
}
.li{
padding: 10px 12px;
border-radius: 12px;
border: 1px solid rgba(255,255,255,.12);
background: rgba(255,255,255,.03);
color: rgba(255,255,255,.86);
font-size: 14px;
}
.li::before{
content:"";
display:inline-block;
width: 10px; height: 10px;
border-radius: 999px;
background: rgba(251,165,52,.95);
margin-right: 10px;
vertical-align: middle;
}

.inline-photo{
border-radius: var(--radius);
border: 1px solid rgba(255,255,255,.12);
overflow: hidden;
background: rgba(255,255,255,.03);
min-height: 220px;
}
.inline-photo img{
width:100%;
height:100%;
object-fit: cover;
filter: saturate(1.02);
}
/* Implanty – odsunięcie kafelków KPI od hero */
.hero-service .kpi{
  margin-top: 32px;
}
/* === Before/After (płynny before/after bez skalowania) === */
.compare-slider.compare--range{
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  user-select: none;
  touch-action: none;
}

/* Obie grafiki są nieruchome i mają identyczny rozmiar/kadr */
.compare-slider.compare--range > img,
.compare-slider.compare--range .compare-after img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  display: block;
}

/* Warstwa "PO" */
.compare-slider.compare--range .compare-after{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  will-change: clip-path;
}

/* Etykiety BEFORE / AFTER */
.compare-slider.compare--range .labels{
  position:absolute;
  inset: 10px 10px auto 10px;
  display:flex;
  justify-content: space-between;
  gap: 10px;
  z-index: 4;
  pointer-events:none;
}
.compare-slider.compare--range .lab{
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2px;
  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
}

/* Pionowa linia + uchwyt */
.compare-slider.compare--range .handle{
  position:absolute;
  top:0;
  left: var(--pos);
  width:2px;
  height:100%;
  background: rgba(255,255,255,.92);
  z-index: 3;
  pointer-events:none;
}
.compare-slider.compare--range .handle::before{
  content:"↔";
  position:absolute;
  top:50%;
  left:50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  font-weight: 900;
  font-size: 16px;
  color: rgba(0,0,0,.85);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}

/* Prawdziwy suwak (range) */
.compare-slider.compare--range .compare-range{
  position:absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  z-index: 5;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
/* === PERSONEL: lekarze – korekta odstępów (desktop) === */
@media (min-width: 900px){

  /* Układ pionowy kart lekarzy */
  .doc--stack{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Nazwisko – lekki oddech od specjalizacji */
  .doc--stack .doc-name{
    margin-bottom: 6px;
  }

  /* Specjalizacja */
  .doc--stack .doc-role{
    line-height: 1.3;
    margin: 0;
  }

  /* Uczelnia – ciaśniej i wizualnie lżej */
  .doc--stack small{
    display: block;
    line-height: 1.2;
    margin-top: 2px;
    opacity: 0.5;
  }

}
/* Żółte bullet'y */
.bullets--yellow .bullet::before {
  background: #f5c400; 
}

/* =========================
   FORM VALIDATION (SAFE)
   ========================= */

/* Premium invalid highlight (used by JS: .is-invalid) */
.is-invalid {
  outline: 2px solid rgba(255, 180, 180, .75);
  outline-offset: 2px;
}

/* Focus styles */
#contactForm input:focus,
#contactForm textarea:focus {
  outline: none;
  border-color: #f5c400; 
  box-shadow: 0 0 0 2px rgba(245, 196, 0, 0.2);
}

/* Native required validity (only when fields have required="required") */
#contactForm input:required:invalid,
#contactForm textarea:required:invalid {
  border-color: #d9534f;
}

#contactForm input:required:valid,
#contactForm textarea:required:valid {
  border-color: #4caf50;
}

/* checkbox RODO */
#contactForm input[type="checkbox"]:required:invalid + label {
  color: #d9534f;
}

#contactForm input[type="checkbox"]:required:valid + label {
  color: inherit;
}

/* Status message (used by JS: #status.status + data-type) */
#contactForm .status {
  margin-top: 10px;
  font-size: 14px;
  display: none; 
}

/* pokaż, gdy JS ustawi data-type (albo jeśli kiedyś zrobisz to tylko CSS-em) */
#contactForm .status[data-type] {
  display: block;
}

#contactForm .status[data-type="success"] { color: #b7f5c2; }
#contactForm .status[data-type="error"]   { color: #ffb4b4; }
#contactForm .status[data-type="info"]    { color: rgba(255,255,255,.75); }

/* =========================================================
   CENNIK – BD
   ========================================================= */

.card .price-table {
  margin-top: 6px;
}

/* tabela */
.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  line-height: 1.35;
  overflow: hidden;
  border-radius: 14px; 
}

/* wiersze */
.price-table tr {
  background: transparent;
}

/* delikatny separator między wierszami */
.price-table tr + tr td {
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* zebra striping – subtelny */
.price-table tr:nth-child(even) td {
  background: rgba(255,255,255,0.03);
}

/* hover – bardzo dyskretny */
.price-table tr:hover td {
  background: rgba(255,255,255,0.06);
}

/* komórki */
.price-table td {
  padding: 12px 14px;
  vertical-align: middle;
}

/* kolumna: usługa (80%) */
.price-table td:first-child {
  width: 80%;
  color: rgba(255,255,255,0.92);
}

/* kolumna: cena (20%) */
.price-table td:last-child {
  width: 20%;
  text-align: right;
  font-weight: 650;
  color: #f5c451;            
  white-space: nowrap;
  letter-spacing: 0.1px;
}

/* jeśli w nazwie usługi masz wypunktowania/średniki i wiersz robi się długi */
.price-table td:first-child strong {
  font-weight: 650;
}

/* =========================================================
   Nagłówki sekcji na stronie cennika 
   ========================================================= */

.section-title h2 {
  letter-spacing: 0.2px;
}

/* =========================================================
   MOBILE – dopracowanie: mniej paddingu, cena git
   ========================================================= */

@media (max-width: 640px) {
  .price-table {
    font-size: 14.5px;
  }

  .price-table td {
    padding: 11px 12px;
  }

  .price-table td:last-child {
    font-size: 14px;
  }
}

/* =========================================================
   EXTRA (opcjonalne, ale robi robotę):
   gdy cena to zakres "100–200 zł", wyrównanie wygląda lepiej
   ========================================================= */
.price-table td:last-child {
  font-variant-numeric: tabular-nums;
}
/* ==========================
   CENNIK — PRO: 2 kolumny 
   ========================== */

.price-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;                 
}

/* każdy blok to: tytuł + card */
.price-block{
  display: grid;
  gap: 10px;
}

/* dociskamy section-title w ramach price-block */
.price-block > .section-title{
  margin: 0;
  padding: 0;
}

/* jeśli w Twoim CSS section-title ma duże odstępy – to je ucinamy tutaj */
.price-block > .section-title h2{
  margin: 0 0 6px 0;
}

/* Desktop: 2 kolumny */
@media (min-width: 1024px){
  .price-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: start;
  }
}
/* DESKTOP: masonry bez dziur */
@media (min-width: 1024px){
  .price-grid{
    display: block;
    column-count: 2;
    column-gap: 32px;
  }

  .price-grid > *{
    break-inside: avoid;
    margin: 0 0 22px;
  }
}
.actions .tel{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.actions .tel .icon{
  width: 16px;
  height: 16px;
  fill: #fff;  
  flex-shrink: 0;
}
/* PRACA – oferty: 2 równe kolumny na desktopie */
.jobs-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 1024px){
  .jobs-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: start;
  }
}
/* OPINIE – 3 równe kolumny na desktopie */
@media (min-width: 1024px){
  .reviews-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
  }
}
/* OPINIE – gwiazdki */
.stars{
  display: flex;
  gap: 2px;
  margin: 6px 0 8px;
  line-height: 1;
}

.stars span{
  font-size: 14px;
  color: #f5c451; /* ten sam „premium gold” co ceny */
}
.stars span{
  opacity: 0.9;
}


/* =========================================================
   URGENT – delikatne żółte tło (LIGHT + DARK)
   ========================================================= */

/* baza – działa w obu trybach */
.info.urgent{
  position: relative;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(251,165,52,.35);
  background: rgba(251,165,52,.10);
}

/* akcentowa kreska */
.info.urgent::before{
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 4px;
  background: var(--yellow);
}

/* label */
.urgent-label{
  color: var(--yellow);
  font-weight: 700;
  font-size: larger;
}

/* Płynne przewijanie + offset pod sticky header */
html{
  scroll-behavior: smooth;
  scroll-padding-top: 42px; 
}

/* Dodatkowo: każdy anchor/sekcja nie będzie wchodzić pod nagłówek */
:where(section, [id]){
  scroll-margin-top: 42px; 
}
/* =========================================
   FORM – focus subtelny + brak czerwieni na starcie
   ========================================= */

/* 1) Domyślnie: nie pokazuj natywnego "invalid" (ALE nie zabijaj focusu) */
#contactForm :is(input, textarea, select):invalid:not(:focus){
  border-color: var(--line) !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Firefox potrafi świecić własnym invalid */
#contactForm :is(input, textarea, select):-moz-ui-invalid:not(:focus){
  border-color: var(--line) !important;
  box-shadow: none !important;
}

/* 2) Focus: zawsze widać (również gdy pole jest required i puste) */
#contactForm :is(input, textarea, select):focus{
  outline: none !important;
  border-color: rgba(251,165,52,.55) !important;        /* --yellow, subtelnie */
  box-shadow: 0 0 0 3px rgba(251,165,52,.12) !important;/* miękki ring */
}

/* 3) Dopiero po próbie wysłania (JS dodaje .was-validated) pokazuj błąd */
#contactForm.was-validated :is(input, textarea, select):invalid{
  border-color: #e24a4a !important;
  box-shadow: 0 0 0 3px rgba(226,74,74,.16) !important;
}

/* 4) Checkbox RODO – błąd tylko po submit */
#contactForm.was-validated input[type="checkbox"]:invalid + label{
  color: #e24a4a !important;
}
#contactForm input[type="checkbox"]:invalid + label{
  color: inherit !important;
}
/* ======================================
   MOBILE CTA – ukrywanie przy formularzu
   ====================================== */

/* stan ukryty */
.mobile-cta.is-hidden{
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .2s ease;
}

/* normalny stan (żeby animacja była płynna) */
.mobile-cta{
  transition: transform .25s ease, opacity .2s ease;
}
/* ======================================
   MOBILE – logotypy kart: 4 w jednym rzędzie
   ====================================== */
@media (max-width: 768px){

  /* wymuszamy 4 równe kolumny */
  .cards,
  .pay .cards,
  .pay-grid .cards{
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: center;
  }

  /* obrazki realnie mniejsze (a nie tylko "wizualnie") */
  .cards img,
  .pay .cards img,
  .pay-grid .cards img{
    width: 100%;
    max-width: 60px;     /* ~10% mniejsze, możesz dać 52–60 */
    height: auto;
    justify-self: center;
  }
}
/* ======================================
   RATY – iframe: skalowanie na mobile (70%)
   ====================================== */

.mediraty-embed{
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}

/* Mobile: skalowanie całości do ~70% */
@media (max-width: 768px){

  /* wysokość widoczna po skali (1050px * 0.7 ≈ 735px) */
  .mediraty-embed{
    height: 740px;
  }

  .mediraty-embed iframe{
    /* kompensacja szerokości: 100 / 0.7 ≈ 143% */
    width: 143% !important;

    /* kompensacja wysokości: 1050 / 0.7 ≈ 1500px */
    height: 1500px !important;

    transform: scale(0.7);
    transform-origin: 0 0;

    border: 0;
    display: block;
    background: #fff;
  }
}
/* ======================================
   TOPBAR CTA – telefon ważniejszy na mobile,
   ale w landscape na iPhonie przycisk ma wrócić
   ====================================== */

/* Domyślnie: przycisk widoczny */
.topbar .actions .btn.primary{
  display: inline-flex;
}

/* Mobile LANDSCAPE: przycisk ZAWSZE wraca (np. iPhone 15 Pro po obrocie) */
@media (max-width: 920px) and (orientation: landscape){
  .topbar .actions .btn.primary{
    display: inline-flex !important;
  }
}

/* =====================================
   ACCENT OVERRIDES (GLOBAL)
   Jedno źródło koloru akcentowego
   ===================================== */

/* przyciski secondary */
.btn.secondary{
  border-color: var(--accent-mid);
  background: var(--accent-soft);
}
.btn.secondary:hover{
  background: rgba(185,28,28,.18);
}

/* sekcje – kreska przy h2 */
.section-title h2::after{
  background: var(--accent-strong);
}

/* listy i bullet points */
.bullet::before,
.li::before{
  background: var(--accent-strong);
}

/* badge */
.badge{
  border-color: var(--accent-mid);
  background: var(--accent-soft);
}

/* urgent */
.info.urgent{
  border-color: var(--accent-mid);
  background: var(--accent-soft);
}
.info.urgent::before{
  background: var(--accent);
}
.urgent-label{
  color: var(--accent);
}

/* ceny / gwiazdki */
.price-table td:last-child,
.stars span{
  color: var(--accent);
}

/* focusy formularzy */
#contactForm :is(input, textarea, select):focus{
  border-color: var(--accent-mid) !important;
  box-shadow: 0 0 0 3px var(--accent-soft) !important;
}
/* =====================================================
   ACCENT SYSTEM – JEDNO ŹRÓDŁO PRAWDY
   (tylko nadpisania, zero usuwania)
   ===================================================== */

:root{
  --accent: #f5c451;                 /* złoto (jak logo, lekko w red) */
  --accent-soft: rgba(245,196,81,.14);
  --accent-mid:  rgba(245,196,81,.45);
  --accent-strong: rgba(245,196,81,.95);

  /* alias dla starego żółtego */
  --yellow: var(--accent);
}

/* =====================================================
   PRIMARY CTA – ŻÓŁTY / CZARNY TEKST
   ===================================================== */

.btn.primary{
  border-color: rgba(0,0,0,.25);
  background: linear-gradient(
    135deg,
    var(--accent-strong),
    #f0a81f
  );
  color: #111 !important;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 10px 24px rgba(0,0,0,.35);
}

.btn.primary:hover{
  background: linear-gradient(
    135deg,
    #f7cf6b,
    #f2b53a
  );
}

.btn.primary:active{
  transform: translateY(1px);
}


/* =====================================================
   SECONDARY CTA = LINKBTN (JEDEN STYL)
   ===================================================== */

.btn.secondary,
.linkbtn{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--text);
  font-weight: 800;
}

.btn.secondary:hover,
.linkbtn:hover{
  background: rgba(255,255,255,.08);
  border-color: var(--accent-mid);
}

/* =====================================================
   AKCENTY GLOBALNE
   ===================================================== */

/* kreska przy nagłówkach */
.section-title h2::after{
  background: var(--accent-strong);
}

/* badge */
.badge{
  border-color: var(--accent-mid);
  background: var(--accent-soft);
}

/* listy, bullet points */
.bullet::before,
.li::before{
  background: var(--accent-strong);
}

/* urgent */
.info.urgent{
  border-color: var(--accent-mid);
  background: var(--accent-soft);
}
.info.urgent::before{
  background: var(--accent);
}
.urgent-label{
  color: var(--accent);
}

/* ceny + gwiazdki */
.price-table td:last-child,
.stars span{
  color: var(--accent);
}

/* =====================================================
   FORM – FOCUS (SPÓJNY Z AKCENTEM)
   ===================================================== */

#contactForm :is(input, textarea, select):focus{
  border-color: var(--accent-mid) !important;
  box-shadow: 0 0 0 3px var(--accent-soft) !important;
}
/* === TEXT ACCENT (FORCE) === */
.accent{
  color: var(--accent) !important;
}
.accent-strong{
  color: var(--accent) !important;
  font-weight: 900;
}
/* Kolory akcentowe – utility */
.text-accent{ color: var(--accent); }
.text-muted{ color: var(--muted); }
.text-white{ color: var(--text); }
.text-accent-soft{
  color: color-mix(in srgb, var(--accent) 80%, white);
}
/* === MISJA === */
.mission{
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 32px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
  align-items: center;
}

.mission-logo{
  display: flex;
  justify-content: center;
  align-items: center;
}

.mission-logo img{
  max-width: 260px;
  width: 100%;
  height: auto;
  opacity: .95;
}

.mission-text p{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.mission-text p:last-child{
  margin-bottom: 0;
}

/* MOBILE */
@media (max-width: 900px){
  .mission{
    grid-template-columns: 1fr;
    text-align: left;
  }

  .mission-logo{
    justify-content: center;
  }

  .mission-logo img{
    max-width: 240px;
  }
}
/* ======================================
   MEDIA ROW – wersja odwrócona (opcjonalna)
   ====================================== */

.media-row--reverse{
  grid-template-columns: .9fr 1.1fr; /* tekst | zdjęcie */
}

.media-row--reverse .photo{
  order: 2;
}

.media-row--reverse .transparency-text{
  order: 1;
}

/* Mobile: zawsze jedno pod drugim */
@media (max-width: 980px){
  .media-row--reverse{
    grid-template-columns: 1fr;
  }

  .media-row--reverse .photo{
    order: 2;
  }

  .media-row--reverse .transparency-text{
    order: 1;
  }
}
/* =========================
   PARTNERZY
   ========================= */

.partners{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
  align-items: center;
}

.partners img{
  width: 100%;
  max-height: 100px;
  object-fit: contain;
  filter: 
    grayscale(1)
    sepia(0.35)
    hue-rotate(90deg)
    saturate(1.1)
    brightness(0.95);
  opacity: 0.85;
  transition:
    transform .25s ease,
    filter .25s ease,
    opacity .25s ease;
}

/* Desktop hover */
@media (hover: hover){
  .partners img:hover{
    transform: scale(1.15);
    filter: none;
    opacity: 1;
  }
}

/* Tablet */
@media (max-width: 980px){
  .partners{
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile – 3 logotypy w rzędzie */
@media (max-width: 768px){
  .partners{
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .partners img{
    filter: none !important;   /* kolor od razu */
    opacity: 1;
    transform: scale(1.1);     /* +10% */
    transition: none;          /* bez hover efektów */
  }
}
/* =========================
   SECONDARY BUTTON – FINAL
   ========================= */

.btn.secondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 22px;

  background: rgba(34,197,94,.10);   /* green-500 soft */
  border: 1px solid rgba(34,197,94,.35);
  color: #ecfdf5; 

  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    0 0 0 0 rgba(82,190,236,0);

}

/* HOVER – dokładnie jak na screenie */
.btn.secondary:hover{
  background: rgba(34,197,94,.18);
  border-color: rgba(34,197,94,.65);

  box-shadow:
    0 8px 18px rgba(0,0,0,.30);
}

/* active */
.btn.secondary:active{
  box-shadow:
    0 4px 10px rgba(0,0,0,.25);
}
.btn .icon{
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}
/* === AKCENTOWANE WIERSZE (nie lista) === */
.row-accent{
  position: relative;
  padding-left: 28px;
}

.row-accent::before{
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);

  width: 8px;
  height: 8px;
  border-radius: 999px;

  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
/* domyślny kolor kropki */
.dot-accent{
  --dot-color: var(--accent);
}

.dot-accent strong::before{
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 10px;
  vertical-align: middle;

  background: var(--dot-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot-color) 25%, transparent);
}
.dot-yellow   { --dot-color: #f5c451; }
.dot-green    { --dot-color: rgba(14, 174, 84, 0.95); }
.dot-blue     { --dot-color: #52beec; }
.dot-red      { --dot-color: #d70d14; }
.dot-muted    { --dot-color: rgba(255,255,255,.5); }
/* === FUNDACJA LOGO – kontrola rozmiaru === */
.fundacja-logo{
  --logo-width: 160px; /* ← TU sterujesz wielkością */

  width: var(--logo-width);
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 16px;
}

/* Mobile */
@media (max-width: 640px){
  .fundacja-logo{
    --logo-width: 120px;
    margin-left: auto;
    margin-right: auto;
  }
}
/* === MAPA – ZOOM 300% NA HOVER === */
.photo2{
  overflow: hidden;              /* kluczowe */
  border-radius: var(--radius);
  cursor: zoom-in;
}

.photo2 img{
  transition: transform .6s ease;
  transform-origin: center center;
}

/* desktop hover */
@media (hover: hover){
  .photo2:hover img{
    transform: scale(3.2) translateX(27%);         /* 300% */
  }
}

/* mobile – brak zoomu (UX safe) */
@media (hover: none){
  .photo2 img{
    transform: none !important;
  }
}

.text-yellow{ color: var(--accent-yellow); }
.text-green{  color: var(--accent-green); }
.text-red{    color: var(--accent-red); }

/* === IKONY W KARTACH (Jak pomagamy) === */

.service{
  position: relative;
}

.service-icon{
  position: absolute;
  top: 16px;
  right: 16px;

  width: 26px;
  height: 26px;

  opacity: 0.7;
}

.service-icon svg{
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #3fa37a;          /* zielonkawy akcent */
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* hover – tylko delikatne wzmocnienie */
.service:hover .service-icon{
  opacity: 1;
}

/* =========================
   COOKIE BANNER – FIX CENTER
   ========================= */

.cookie-banner{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 999;

  flex-direction: column;   /* <<< KLUCZ */
  align-items: center;      /* <<< KLUCZ */
  gap: 14px;

  padding: 18px 20px;
  border-radius: 16px;

  background: rgba(6, 58, 20, 0.92);
  backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);

  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.cookie-banner p{
  width: 100%;              /* <<< KLUCZ */
  max-width: 100%;
  margin: 0;

  display: flex;
  justify-content: center;  /* <<< KLUCZ */
}

.cookie-banner p span{
  max-width: 72ch;          /* realna szerokość tekstu */
  text-align: center;
  color: var(--muted);
}


.cookie-banner a{
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-buttons{
  display: flex;
  justify-content: center;
  gap: 10px;
}


/* =========================
   COOKIE BUTTONS
   ========================= */

.cookie-buttons{
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* PRIMARY – Akceptuj */
.cookie-buttons .btn-primary{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 14px;
  border-radius: 12px;

  border: none;
  cursor: pointer;

  font-weight: 900;
  font-size: 14px;
  color: #111;

  background: linear-gradient(
    135deg,
    #f5c451,
    #f0a81f
  );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 10px 24px rgba(0,0,0,.35);

  transition: filter .2s ease;
}

.cookie-buttons .btn-primary:hover{
  filter: brightness(1.06);
}

/* SECONDARY – Odrzuć (ZGODNY Z SYSTEMEM) */
.cookie-buttons .btn-secondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 14px;
  border-radius: 12px;

  background: rgba(255,255,255,.04);
  border: 1px solid var(--accent-mid);

  color: var(--text);
  font-weight: 800;
  font-size: 14px;

  cursor: pointer;

  transition: background .2s ease, border-color .2s ease;
}

.cookie-buttons .btn-secondary:hover{
  background: var(--accent-soft);
}

/* FORCE CENTER – COOKIE TEXT */
.cookie-banner,
.cookie-banner p{
  text-align: center !important;
}

/* Ukryty domyślnie */
.cookie-banner{
  display: none;
}

/* Pokazany po decyzji JS */
.cookie-banner.show{
  display: flex;
}

/* ------BIO */
.bio-card{
  margin-top: 12px;
  padding: 18px;
}

.zarzad-card{
  position: relative;
}

.bio-text{
  margin-top: 16px;
}

.foot-icon{
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 22px;
  opacity: .15;
}
/* Zarząd – 4 kafle w jednym rzędzie */
.grid-4{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

/* Tablet */
@media (max-width: 1100px){
  .grid-4{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 680px){
  .grid-4{
    grid-template-columns: 1fr;
  }
}
/* =========================
   ZARZĄD – MIX WERSJA PREMIUM
   ========================= */

.board-card{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.board-top{
  display: flex;
  align-items: center;   /* WYŚRODKOWANIE WZGLĘDEM ZDJĘCIA */
  gap: 18px;
}

.board-head{
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.board-head .doc-name{
  font-size: 15px;
  font-weight: 800;
}

.board-head .doc-role{
  font-size: 13px;
  opacity: .8;
  margin-top: 2px;
}

.board-bio{
  font-size: 15px;
  line-height: 1.6;
  opacity: .9;
}

/* ładniejsze zdjęcie */
.board-card .avatar{
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15);
}
/* cegielka */
.ceg-btn.active{
  box-shadow: 0 0 0 2px var(--accent) inset;
}

.cegielka-info{
  margin-top: 8px;
}
/* przelew mobile */
.mobile-only { display:none; }

@media (max-width:768px){
  .desktop-only { display:none !important; }
  .mobile-only { display:block; }
}

/*styl fb i insta do stopki */
footer{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-social{
  display: flex;
  gap: 12px;
}

.footer-social img{
  width: 30px;
  height: 30px;
  opacity: .8;
  transition: .2s ease;
}

.footer-social a:hover img{
  opacity: 1;
  transform: scale(1.1);
}

.donation-buttons form {
    margin: 10px 0;
}

.custom-amount input {
    padding: 10px;
    margin-right: 10px;
    width: 150px;
}

/* =========================
   GALERIA – WSZYSTKIE POZIOME
   ========================= */

.gallery{
  display:grid;
  gap:24px;
  grid-template-columns: repeat(1, 1fr); /* mobile */
}

@media (min-width: 768px){
  .gallery{
    grid-template-columns: repeat(3, 1fr); /* tablet */
  }
}

@media (min-width: 1200px){
  .gallery{
    grid-template-columns: repeat(4, 1fr); /* desktop */
  }
}


.gallery-item{
  position:relative;
  overflow:hidden;
  border-radius:18px;
  cursor:pointer;
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
  transition: transform .35s ease, box-shadow .35s ease;

  aspect-ratio: 3 / 2;   /* <-- KLUCZOWE */
}

.gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;      /* przycina ładnie */
  display:block;
  transition: transform .6s ease;
}

.gallery-item:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}

.gallery-item:hover img{
  transform: scale(1.07);
}

/* =========================
   LIGHTBOX
   ========================= */

.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.95);
  display:none; /* <-- KLUCZOWE */
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:40px;
}

.lightbox.active{
  display:flex;
}

.lightbox-img{
  max-width:90%;
  max-height:85vh;
  border-radius:18px;
  box-shadow:0 20px 60px rgba(0,0,0,.6);
}

.lightbox-close{
  position:absolute;
  top:30px;
  right:40px;
  font-size:40px;
  color:white;
  cursor:pointer;
  font-weight:300;
}
.hero-left2 img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* =========================
   STORY BLOCK
========================= */

.story-block{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:24px;
  margin-bottom:24px;
  align-items:start; /* KLUCZOWE */
}

/* Odwrócony układ */
.story-block.reverse{
  direction: rtl;
}

.story-block.reverse > *{
  direction: ltr;
}

/* MEDIA */
.story-media{
  border-radius:24px;
  overflow:hidden;
  align-self:stretch;   /* WAŻNE */
  display:flex;         /* daje pełną kontrolę */
}

.story-media img{
  width:100%;
  object-fit:cover;         /* wypełnia bez deformacji */
  display:block;
}

/* CONTENT */
.story-content{
  height:auto;              /* tekst rządzi wysokością */
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px){

  .story-block{
    display:flex;
    flex-direction:column;
    gap:20px;
    margin-bottom:48px;
  }

  .story-media{
    order:1;
  }

  .story-heading{
    order:2;
  }

  .story-content{
    order:3;
  }

  .story-content .card{
    padding:16px;
  }

}
/* =========================
   STORY – HEADING OUTSIDE CARD
========================= */

.story-heading{
  margin-bottom: 14px;
}

.story-heading h2{
  margin: 0;
  font-size: 18px;
  letter-spacing: -.3px;
  font-weight: 700;
  position: relative;
}

/* akcentowa kreska */
.story-heading h2::after{
  content:"";
  display:inline-block;
  width: 64px;
  height: 3px;
  margin-left: 12px;
  border-radius: 999px;
  background: var(--accent);
  vertical-align: middle;
}
.story-content .card{
  padding: 14px 16px;
}
/* FOOTER Separacja */
.footer-sep{
  opacity: .4;
  margin: 0 6px;
}