/* =========================================================
   Energia Dla Polaków - style strony
   ========================================================= */

:root{
  --navy:      #02004A;
  --navy-2:    #0A0A46;
  --black:     #0a0a0f;
  --red:       #E4002B;
  --red-dark:  #B5001F;
  --white:     #ffffff;
  --off-white: #F4F5F8;
  --gray-100:  #E7E9EF;
  --gray-400:  #8A90A3;
  --gray-700:  #454B5E;
  --text:      #171A2B;

  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(2, 0, 74, 0.08);
  --shadow-lg: 0 20px 50px rgba(2, 0, 74, 0.14);
  --container-w: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); margin: 0 0 .5em; line-height: 1.2; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
fieldset { border: none; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }

.container{
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow{ max-width: 820px; }

.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: var(--white); padding: 12px 20px; z-index: 1000;
}
.skip-link:focus{ left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary{ background: var(--red); color: var(--white); }
.btn-primary:hover{ background: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost{ background: transparent; border-color: rgba(2,0,74,0.25); color: var(--navy); }
.btn-ghost:hover{ background: rgba(2,0,74,0.06); border-color: rgba(2,0,74,0.4); }
.btn-sm{ padding: 10px 20px; font-size: 0.88rem; }
.btn-block{ width: 100%; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 500;
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 2px 16px rgba(2,0,74,0.06);
  /* Note: backdrop-filter lives on ::before (not on this element) so it
     doesn't create a containing block for the fixed-position mobile nav. */
}
.site-header::before{
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
  gap: 20px;
}
.brand-logo{ height: 40px; width: auto; border-radius: 4px; }
.main-nav ul{ display: flex; align-items: center; gap: 28px; }
.main-nav a{
  color: var(--navy); font-weight: 500; font-size: 0.95rem;
  opacity: 0.82; padding: 6px 0; border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.main-nav a:hover{ opacity: 1; color: var(--red); border-color: var(--red); }

.header-actions{ display: flex; align-items: center; gap: 16px; }

.nav-toggle{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; padding: 0;
}
.nav-toggle span{ height: 2px; width: 100%; background: var(--navy); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  color: var(--navy);
  background:
    radial-gradient(1100px 550px at 12% -10%, rgba(2,0,74,0.07) 0%, transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #EEF0F8 100%);
  overflow: hidden;
}
.hero-bg{
  position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 120px, rgba(228,0,43,0.08) 120px 122px);
  pointer-events: none;
}
.hero-inner{
  position: relative;
  padding: 100px 24px 90px;
}
.hero-inner > *{ max-width: 820px; }
.eyebrow{
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red-dark);
  margin-bottom: 18px;
}
.hero h1{
  color: var(--navy);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 22px;
}
.hero-lead{
  font-size: 1.1rem;
  color: var(--gray-700);
  max-width: 640px;
  margin-bottom: 34px;
}
.hero-cta{ display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.hero-tags{ display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags li{
  border: 1px solid rgba(2,0,74,0.18);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--gray-700);
}


/* ---------- Polska mesh flag ---------- */
.poland-mesh{
  position:relative;
  width:100%;
  height:210px;
  margin-top:-18px;
  overflow:hidden;
  pointer-events:none;
}
.poland-mesh::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(246,247,244,0) 0%,rgba(246,247,244,.16) 62%,rgba(246,247,244,.72) 100%);
  z-index:2;
  pointer-events:none;
}
.poland-mesh-svg{
  display:block;
  width:100%;
  height:100%;
  overflow:visible;
}
.mesh-surface{
  transform-origin:50% 50%;
  animation:mesh-drift 10s ease-in-out infinite;
}
@keyframes mesh-drift{
  0%,100%{transform:translate3d(-6px,1px,0) skewY(-.15deg);}
  50%{transform:translate3d(6px,-2px,0) skewY(.15deg);}
}
@media (prefers-reduced-motion: reduce){
  .mesh-surface{animation:none;}
  .poland-mesh-svg animate{display:none;}
}

/* ---------- Why us ---------- */
.why-us{ background: var(--navy); color: var(--white); padding: 56px 0; }
.why-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.why-item h3{ color: var(--white); font-size: 1.05rem; }
.why-item p{ color: rgba(255,255,255,0.7); font-size: 0.92rem; margin-bottom: 0; }
.why-icon{
  width: 46px; height: 46px; margin-bottom: 16px;
  background: rgba(228,0,43,0.16);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.why-icon svg{ width: 24px; height: 24px; fill: none; stroke: var(--red); stroke-width: 1.8; }

/* ---------- Sections (generic) ---------- */
.section{ padding: 96px 0; }
.section.alt{ background: var(--off-white); }
.section-eyebrow{
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 10px;
}
.section h2{ font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 720px; }
.section-lead{ color: var(--gray-700); max-width: 680px; font-size: 1.05rem; }
.section-cta{ margin-top: 40px; }

.badge-row{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.badge-row li{
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Cards / grids ---------- */
.card-grid{
  display: grid;
  gap: 24px;
  margin-top: 44px;
}
.card-grid-6{ grid-template-columns: repeat(3, 1fr); }
.card-grid-4{ grid-template-columns: repeat(4, 1fr); }
.card-grid-3{ grid-template-columns: repeat(3, 1fr); }

.card{
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3{ font-size: 1.08rem; }
.card p{ color: var(--gray-700); font-size: 0.94rem; margin-bottom: 0; }
.card-icon{
  width: 44px; height: 44px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--navy), #24246e);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.card-icon svg{ width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 1.6; }

.card-plain{ background: var(--white); }
.card-logo{
  height: 34px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}
.card-logo img{ max-height: 100%; max-width: 140px; object-fit: contain; object-position: left center; }
.card-tag{
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red);
  background: rgba(228,0,43,0.08);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.card-link{ display: inline-block; margin-top: 10px; font-weight: 600; color: var(--red); }
.card-link:hover{ text-decoration: underline; }

.fine-print{ margin-top: 28px; font-size: 0.85rem; color: var(--gray-400); max-width: 680px; }


/* Kotwice sekcji pod przyklejonym nagłówkiem */
.anchor-target{
  scroll-margin-top: 96px;
  height: 0;
}
section[id]{ scroll-margin-top: 96px; }

/* ---------- Partners ---------- */
.partner-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.partner-logo{
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; align-items: center; justify-content: center;
  height: 100px;
}
.partner-logo img{
  max-height: 52px; max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter .18s ease, opacity .18s ease;
}
.partner-logo:hover img{ filter: grayscale(0); opacity: 1; }
.partner-logo--large img{ max-height: 72px; max-width: 94%; }
.partner-text{
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gray-400);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.partner-text:hover{ color: var(--navy); }

/* ---------- Kontakt ---------- */
.kontakt{ background: var(--off-white); }
.kontakt-grid{
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  margin-top: 44px;
  align-items: start;
}
.kontakt-form{
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  padding: 36px;
}
.form-row{ margin-bottom: 22px; }
.form-row-split{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row label, .form-row legend{
  display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 8px; color: var(--navy);
  padding: 0;
}
.kontakt-form input[type="text"],
.kontakt-form input[type="tel"],
.kontakt-form input[type="email"],
.kontakt-form textarea{
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--off-white);
}
.kontakt-form input:focus,
.kontakt-form textarea:focus{
  outline: none;
  border-color: var(--red);
  background: var(--white);
}
.hp-field{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.checkbox-groups{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.checkbox-group-title{ font-weight: 700; font-size: 0.82rem; color: var(--gray-700); margin-bottom: 8px; }
.checkbox-group label{
  display: flex; align-items: center; gap: 8px;
  font-weight: 400; font-size: 0.88rem; color: var(--text);
  margin-bottom: 8px;
}
.checkbox-group input{ width: 16px; height: 16px; accent-color: var(--red); }

.consent-row{ font-size: 0.85rem; }
.consent-label{ display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--gray-700); }
.consent-label input{ margin-top: 3px; width: 16px; height: 16px; accent-color: var(--red); flex-shrink: 0; }

.form-status{ margin-top: 14px; font-weight: 600; font-size: 0.9rem; min-height: 1.4em; }
.form-status.ok{ color: #17803D; }
.form-status.err{ color: var(--red-dark); }

.kontakt-info{ display: flex; flex-direction: column; gap: 20px; }
.info-card{
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 28px;
}
.info-card h3{ font-size: 1rem; margin-bottom: 14px; }
.info-card p{ font-size: 0.95rem; color: var(--gray-700); }
.info-card p:last-child{ margin-bottom: 0; }
.info-card a:hover{ color: var(--red); }
.info-card-legal{ display: flex; flex-direction: column; gap: 12px; }
.legal-logo{ height: 26px; width: auto; max-width: 150px; object-fit: contain; object-position: left center; align-self: flex-start; }
.legal-name{ font-size: 0.85rem; color: var(--navy); font-weight: 600; margin: 0; }
.legal-ids{ display: flex; flex-direction: column; gap: 4px; margin: 0; }
.legal-ids span{ font-size: 0.8rem; color: var(--gray-400); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--black); color: rgba(255,255,255,0.75); }
.footer-legal{
  padding: 40px 24px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  display: flex; flex-direction: column; gap: 6px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px){
  .card-grid-6{ grid-template-columns: repeat(2, 1fr); }
  .card-grid-4{ grid-template-columns: repeat(2, 1fr); }
  .why-grid{ grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .partner-grid{ grid-template-columns: repeat(3, 1fr); }
  .kontakt-grid{ grid-template-columns: 1fr; }
  .checkbox-groups{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1200px){
  .main-nav{
    position: fixed; inset: 76px 0 0 0;
    background: var(--white);
    padding: 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .main-nav.open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul{ flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a{ display: block; padding: 14px 4px; border-bottom: 1px solid var(--gray-100); white-space: normal; }
  .nav-toggle{ display: flex; }
}

@media (max-width: 640px){
  .section{ padding: 64px 0; }
  .hero-inner{ padding: 70px 24px 60px; }
  .card-grid-6, .card-grid-4, .card-grid-3{ grid-template-columns: 1fr; }
  .why-grid{ grid-template-columns: 1fr; }
  .partner-grid{ grid-template-columns: repeat(2, 1fr); }
  .form-row-split{ grid-template-columns: 1fr; }
  .checkbox-groups{ grid-template-columns: 1fr; }
  .hero-cta .btn{ width: 100%; }
}

/* =========================================================
   V9 REFRESH - spójność wizualna z program-edp-v9
   ========================================================= */
:root{
  --navy:#0d2743;
  --navy-2:#1a3d5a;
  --black:#102640;
  --red:#df403c;
  --red-dark:#bd302d;
  --white:#ffffff;
  --off-white:#f4f6f3;
  --gray-100:#e4e9e6;
  --gray-400:#7d8b96;
  --gray-700:#5f7180;
  --text:#0d2743;
  --font-head:'Inter','Segoe UI',sans-serif;
  --font-body:'Inter','Segoe UI',sans-serif;
  --radius:24px;
  --shadow:0 18px 44px rgba(13,39,67,.08);
  --shadow-lg:0 24px 60px rgba(13,39,67,.12);
  --container-w:1320px;
}

body{background:var(--off-white);color:var(--navy);line-height:1.55;}
h1,h2,h3,h4{font-family:var(--font-head);font-weight:850;letter-spacing:-.035em;color:var(--navy);}
.container{padding-left:24px;padding-right:24px;}
.container.narrow{max-width:920px;}

.site-header{
  height:80px;
  background:rgba(244,246,243,.88);
  border-bottom:1px solid rgba(13,39,67,.05);
  box-shadow:none;
  backdrop-filter:blur(16px);
}
.site-header::before{display:none;}
.header-inner{height:80px;}
.brand-logo{height:42px;border-radius:0;}
.main-nav ul{gap:22px;}
.main-nav a{font-size:.86rem;font-weight:700;color:var(--navy);opacity:.82;border-bottom:0;}
.main-nav a:hover{color:var(--navy);opacity:1;border-color:transparent;}
.header-actions{gap:12px;}

.btn{
  min-height:44px;
  padding:0 18px;
  border-radius:999px;
  font-size:.86rem;
  font-weight:800;
  border:1px solid var(--gray-100);
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.btn-primary{background:var(--navy);border-color:var(--navy);color:#fff;}
.btn-primary:hover{background:var(--navy-2);border-color:var(--navy-2);box-shadow:none;transform:translateY(-1px);}
.btn-sm{min-height:42px;padding:0 16px;font-size:.8rem;}

.hero{
  background:var(--off-white);
  text-align:center;
  overflow:visible;
}
.hero-bg{display:none;}
.hero-inner{padding:72px 24px 62px;}
.hero-inner > *{max-width:900px;margin-left:auto;margin-right:auto;}
.eyebrow,.section-eyebrow{
  margin-bottom:16px;
  color:#657a8c;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.18em;
}
.hero h1{
  max-width:1080px;
  margin-left:auto;margin-right:auto;
  font-size:clamp(44px,6vw,78px);
  line-height:.99;
  letter-spacing:-.055em;
  font-weight:900;
}
.hero-lead{
  max-width:810px!important;
  margin-top:22px;
  margin-bottom:30px;
  font-size:1.14rem;
  line-height:1.55;
  color:var(--gray-700);
}
.hero-cta{justify-content:center;margin-bottom:28px;}
.hero-tags{justify-content:center;gap:8px;}
.hero-tags li,.badge-row li{
  background:#fff;
  border:1px solid var(--gray-100);
  color:#587084;
  padding:9px 13px;
  font-size:.76rem;
  font-weight:800;
}

.why-us{background:transparent;color:var(--navy);padding:0 0 72px;}
.why-grid{gap:14px;}
.why-item{
  background:#fff;
  border:1px solid rgba(13,39,67,.05);
  border-radius:22px;
  padding:26px;
  min-height:205px;
}
.why-item h3{color:var(--navy);font-size:1.08rem;margin-top:0;}
.why-item p{color:var(--gray-700);font-size:.9rem;line-height:1.55;}
.why-icon{width:44px;height:44px;border-radius:14px;background:#eef3f1;}
.why-icon svg{stroke:var(--navy);}

.section{padding:88px 0;}
.section.alt{background:#eef3f1;}
.section h2{
  max-width:860px;
  font-size:clamp(38px,4.8vw,64px);
  line-height:1.02;
  letter-spacing:-.05em;
}
.section-lead{max-width:780px;font-size:1.08rem;line-height:1.58;color:var(--gray-700);}
.badge-row{margin-top:28px;gap:9px;}

.card-grid{gap:14px;margin-top:40px;}
.card{
  background:#fff;
  border:1px solid rgba(13,39,67,.05);
  border-radius:24px;
  padding:28px;
  min-height:220px;
  box-shadow:none;
}
.card:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:rgba(13,39,67,.05);}
.card h3{font-size:1.34rem;line-height:1.08;letter-spacing:-.03em;margin:14px 0 12px;}
.card p{color:var(--gray-700);font-size:.93rem;line-height:1.55;}
.card-icon{
  width:44px;height:44px;
  margin-bottom:18px;
  background:#eef3f1;
  border-radius:14px;
}
.card-icon svg{stroke:var(--navy);}
.card-tag{background:#eef3f1;color:#587084;letter-spacing:.12em;font-size:.66rem;}
.card-link{color:var(--navy);font-weight:850;}
.fine-print{color:var(--gray-400);}

.partner-grid{gap:14px;}
.partner-logo{
  height:112px;
  border-radius:22px;
  border:1px solid rgba(13,39,67,.05);
  background:#fff;
}
.partner-logo img{filter:none;opacity:.82;}
.partner-logo:hover img{opacity:1;}
.partner-logo--large img{max-height:76px;max-width:94%;}
.partner-text{color:#6d7f8f;font-family:var(--font-body);font-weight:850;}

.kontakt{background:#eef3f1;}
.kontakt-grid{gap:18px;}
.kontakt-form,.info-card{
  border-radius:26px;
  border:1px solid rgba(13,39,67,.05);
  background:#fff;
  box-shadow:none;
}
.kontakt-form{padding:32px;}
.info-card{padding:28px;}
.kontakt-form input[type="text"],
.kontakt-form input[type="tel"],
.kontakt-form input[type="email"],
.kontakt-form textarea{
  background:#f4f6f3;
  border-color:var(--gray-100);
  border-radius:14px;
}
.kontakt-form input:focus,.kontakt-form textarea:focus{border-color:#9aabb7;background:#fff;}
.checkbox-group input,.consent-label input{accent-color:var(--navy);}

.site-footer{background:var(--navy);}
.footer-legal{padding-top:36px;padding-bottom:36px;color:rgba(255,255,255,.58);}

@media(max-width:1200px){
  .main-nav{top:80px;background:var(--off-white);}
  .main-nav a{border-bottom:1px solid var(--gray-100);}
}
@media(max-width:760px){
  .site-header,.header-inner{height:70px;}
  .brand-logo{height:36px;}
  .main-nav{top:70px;}
  .hero-inner{padding:46px 18px 44px;}
  .hero h1{font-size:clamp(40px,12vw,58px);}
  .hero-lead{font-size:1rem;}
  .poland-mesh{height:145px;margin-top:-8px;}
  .section{padding:64px 0;}
  .section h2{font-size:clamp(34px,9vw,50px);}
  .why-us{padding-bottom:50px;}
  .why-item,.card{min-height:auto;}
  .kontakt-form{padding:24px;}
}

/* ---------- Hero - 3D network Poland flag ---------- */
.hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
}
.hero-inner{
  position:relative;
  z-index:3;
}
.poland-network-3d{
  position:absolute;
  z-index:1;
  inset:0;
  overflow:hidden;
  pointer-events:none;
  opacity:.92;
}
.poland-network-3d::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(ellipse 48% 42% at 50% 42%, rgba(246,247,244,.92) 0%, rgba(246,247,244,.68) 36%, rgba(246,247,244,.08) 76%, transparent 100%),
    linear-gradient(180deg, rgba(246,247,244,.42) 0%, transparent 25%, transparent 76%, rgba(246,247,244,.72) 100%);
  pointer-events:none;
}
.poland-network-svg{
  display:block;
  width:100%;
  height:100%;
  transform:scale(1.10);
  transform-origin:50% 50%;
}
.poland-network-line{
  vector-effect:non-scaling-stroke;
  stroke-linecap:round;
}
.poland-network-point{
  vector-effect:non-scaling-stroke;
}
@media (max-width: 780px){
  .poland-network-3d{opacity:.66;}
  .poland-network-svg{transform:scale(1.22);}
  .poland-network-3d::after{
    background:
      radial-gradient(ellipse 72% 48% at 50% 40%, rgba(246,247,244,.95) 0%, rgba(246,247,244,.76) 48%, rgba(246,247,244,.10) 86%, transparent 100%),
      linear-gradient(180deg, rgba(246,247,244,.50) 0%, transparent 30%, transparent 72%, rgba(246,247,244,.82) 100%);
  }
}
@media (prefers-reduced-motion: reduce){
  .poland-network-svg{transform:scale(1.10);}
}

/* ---------- V15 layout refinements ---------- */
#partnerzy{
  padding-bottom: 62px;
}

#spoldzielnie .card-plain .card-icon{
  margin-bottom: 18px;
}

/* Contact: full-width form, company details below */
.kontakt-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.kontakt-form{
  width: 100%;
}
.kontakt-info{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.info-card{
  height: 100%;
}

/* Footer */
.site-footer{
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: rgba(255,255,255,.72);
  border-top: 1px solid rgba(255,255,255,.08);
}
.site-footer::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.025), transparent 32%, transparent 68%, rgba(255,255,255,.018));
}
.footer-signoff{
  position: relative;
  z-index: 1;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.footer-signoff-logo{
  display: block;
  width: auto;
  height: 38px;
  max-width: 210px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: .88;
}
.footer-signoff p{
  margin: 0;
  color: rgba(255,255,255,.54);
  font-size: .78rem;
  line-height: 1.5;
  letter-spacing: .01em;
  text-align: right;
}

@media (max-width: 760px){
  #partnerzy{ padding-bottom: 48px; }
  .kontakt-info{ grid-template-columns: 1fr; }
  .footer-signoff{
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .footer-signoff-logo{
    height: 34px;
  }
  .footer-signoff p{
    text-align: left;
    font-size: .74rem;
  }
}

/* ---------- V16 interactive card icons ---------- */
.card{
  --icon-accent: #0d2743;
  --icon-bg-hover: rgba(13,39,67,.10);
}
.card:nth-child(1){ --icon-accent:#d9a300; --icon-bg-hover:rgba(217,163,0,.12); }
.card:nth-child(2){ --icon-accent:#2f8f63; --icon-bg-hover:rgba(47,143,99,.12); }
.card:nth-child(3){ --icon-accent:#d84444; --icon-bg-hover:rgba(216,68,68,.12); }
.card:nth-child(4){ --icon-accent:#4f8f68; --icon-bg-hover:rgba(79,143,104,.12); }
.card:nth-child(5){ --icon-accent:#356fa8; --icon-bg-hover:rgba(53,111,168,.12); }
.card:nth-child(6){ --icon-accent:#6c5ea8; --icon-bg-hover:rgba(108,94,168,.12); }
.card:nth-child(7){ --icon-accent:#16828b; --icon-bg-hover:rgba(22,130,139,.12); }
.card:nth-child(8){ --icon-accent:#0d2743; --icon-bg-hover:rgba(13,39,67,.10); }

.card .card-icon{
  transition: background-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.card .card-icon svg{
  transition: stroke .22s ease, transform .22s ease;
}

@media (hover:hover) and (pointer:fine){
  .card:hover .card-icon{
    background:var(--icon-bg-hover);
    transform:translateY(-2px) scale(1.04);
    box-shadow:0 8px 22px rgba(13,39,67,.07);
  }
  .card:hover .card-icon svg{
    stroke:var(--icon-accent);
    transform:scale(1.06);
  }
}


/* ---------- V17 hover polish and contact heading ---------- */
/* Partner logos: quiet by default, vivid and lifted on hover */
.partner-logo{
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background-color .24s ease;
}
.partner-logo img{
  filter: grayscale(.72) saturate(.62);
  opacity:.64;
  transition: filter .24s ease, opacity .24s ease, transform .24s ease;
}
.partner-text{
  opacity:.68;
  transition: color .24s ease, opacity .24s ease, transform .24s ease;
}
@media (hover:hover) and (pointer:fine){
  .partner-logo:hover{
    transform:translateY(-5px);
    box-shadow:0 14px 34px rgba(13,39,67,.10);
    border-color:rgba(13,39,67,.10);
    background:#fff;
  }
  .partner-logo:hover img{
    filter:grayscale(0) saturate(1.08);
    opacity:1;
    transform:scale(1.035);
  }
  .partner-logo.partner-text:hover{
    color:var(--navy);
    opacity:1;
  }
}

/* Top benefit row: same lift/highlight language as the cards */
.why-item{
  --why-accent:#0d2743;
  --why-bg:rgba(13,39,67,.09);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
}
.why-item:nth-child(1){--why-accent:#356fa8;--why-bg:rgba(53,111,168,.11);}
.why-item:nth-child(2){--why-accent:#2f8f63;--why-bg:rgba(47,143,99,.11);}
.why-item:nth-child(3){--why-accent:#6c5ea8;--why-bg:rgba(108,94,168,.11);}
.why-item:nth-child(4){--why-accent:#d84444;--why-bg:rgba(216,68,68,.10);}
.why-item .why-icon{
  transition:background-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.why-item .why-icon svg{
  transition:stroke .22s ease, transform .22s ease;
}
.why-item h3{
  transition:color .22s ease, transform .22s ease;
}
@media (hover:hover) and (pointer:fine){
  .why-item:hover{
    transform:translateY(-4px);
    box-shadow:0 14px 34px rgba(13,39,67,.09);
    border-color:rgba(13,39,67,.09);
  }
  .why-item:hover .why-icon{
    background:var(--why-bg);
    transform:translateY(-2px) scale(1.04);
    box-shadow:0 8px 22px rgba(13,39,67,.06);
  }
  .why-item:hover .why-icon svg{
    stroke:var(--why-accent);
    transform:scale(1.06);
  }
  .why-item:hover h3{
    color:var(--why-accent);
  }
}

/* Keep the contact headline on one line when there is enough room */
@media (min-width: 980px){
  .kontakt h2{
    max-width:none;
    width:100%;
    white-space:nowrap;
    font-size:clamp(42px,3.9vw,56px);
  }
}

/* ---------- V20 O nas: 3D orbit + unified card title hover ---------- */
.about-section{
  position:relative;
  overflow:hidden;
}
.about-grid{
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  gap:clamp(44px,6vw,92px);
  align-items:center;
}
.about-copy{
  min-width:0;
}
.about-copy .section-lead{
  max-width:760px;
}
.about-orbit{
  position:relative;
  min-height:520px;
  border-radius:32px;
  overflow:hidden;
  pointer-events:none;
  isolation:isolate;
}
.about-orbit::before{
  content:"";
  position:absolute;
  inset:8% 6%;
  border-radius:50%;
  background:radial-gradient(ellipse at 50% 50%, rgba(53,92,126,.06) 0%, rgba(47,143,99,.025) 44%, transparent 74%);
  filter:blur(20px);
  z-index:0;
}
.about-orbit::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  background:radial-gradient(ellipse 72% 68% at 50% 50%, transparent 0%, rgba(246,247,244,.08) 62%, rgba(246,247,244,.78) 100%);
}
.about-orbit-svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:1;
  transform:scale(1.04);
  transform-origin:50% 50%;
}
.about-orbit-ring,
.about-orbit-particle,
.about-orbit-core-point{
  vector-effect:non-scaling-stroke;
}

.card h3{
  transition:color .22s ease, transform .22s ease;
}
@media (hover:hover) and (pointer:fine){
  .card:hover h3{
    color:var(--icon-accent);
    transform:translateY(-1px);
  }
}

@media (max-width: 980px){
  .about-grid{
    grid-template-columns:1fr;
    gap:34px;
  }
  .about-copy{
    order:1;
  }
  .about-orbit{
    order:2;
    min-height:360px;
    max-width:720px;
    width:100%;
  }
}
@media (max-width: 760px){
  .about-grid{gap:24px;}
  .about-orbit{
    min-height:290px;
    border-radius:24px;
  }
}


/* ---------- V21 globe, compact sections, contact grid and footer ---------- */
/* Slightly tighter category sections */
#oferta-dom,
#oferta-biznes,
#dla-rolnika,
#spoldzielnie,
#dotacje,
#partnerzy{
  padding-bottom:72px;
}
.section-cta{ margin-top:32px; }

/* Contact interests: requested 2x2 desktop order */
.checkbox-groups{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-areas:
    "home business"
    "other farmer";
  gap:18px 28px;
  align-items:start;
}
.checkbox-group:nth-child(1){ grid-area:home; }
.checkbox-group:nth-child(2){ grid-area:business; }
.checkbox-group:nth-child(3){ grid-area:farmer; }
.checkbox-group:nth-child(4){ grid-area:other; }
.checkbox-group{ margin:0; padding-bottom:0; }
.checkbox-group-title{ margin-bottom:8px; }

/* O nas: slowly rotating digital globe */
.about-globe{
  position:relative;
  min-height:520px;
  border-radius:32px;
  overflow:hidden;
  pointer-events:none;
  isolation:isolate;
}
.about-globe::before{
  content:"";
  position:absolute;
  inset:10% 8%;
  border-radius:50%;
  background:radial-gradient(circle at 48% 46%, rgba(53,92,126,.055), rgba(47,143,99,.022) 48%, transparent 74%);
  filter:blur(18px);
  z-index:0;
}
.about-globe::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  background:radial-gradient(circle at 47% 50%, transparent 0%, transparent 58%, rgba(246,247,244,.20) 74%, rgba(246,247,244,.86) 100%);
}
.about-globe-svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:1;
  transform:scale(1.03);
  transform-origin:50% 50%;
}
.about-globe-line,
.about-globe-point{ vector-effect:non-scaling-stroke; }

/* Thin neutral footer - just the legal line */
.site-footer{
  background:#dfe5e3;
  color:#42515d;
  border-top:1px solid rgba(13,39,67,.08);
}
.site-footer::before{ display:none; }
.footer-signoff{
  min-height:48px;
  padding-top:10px;
  padding-bottom:10px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.footer-signoff p{
  margin:0;
  color:#586874;
  font-size:.72rem;
  line-height:1.35;
  text-align:center;
  letter-spacing:.01em;
}
.footer-signoff-logo{ display:none !important; }

@media (max-width:980px){
  .about-globe{
    order:2;
    min-height:360px;
    max-width:720px;
    width:100%;
  }
}
@media (max-width:760px){
  #oferta-dom,
  #oferta-biznes,
  #dla-rolnika,
  #spoldzielnie,
  #dotacje,
  #partnerzy{ padding-bottom:54px; }
  .checkbox-groups{
    grid-template-columns:1fr;
    grid-template-areas:"home" "business" "farmer" "other";
    gap:14px;
  }
  .about-globe{ min-height:290px; border-radius:24px; }
  .footer-signoff{
    min-height:42px;
    padding-top:8px;
    padding-bottom:8px;
    align-items:center;
  }
  .footer-signoff p{ text-align:center; font-size:.68rem; }
}


/* ---------- V22 fixes: contact anchors, clean O nas photo space, seamless footer ---------- */
.about-photo-space{
  min-height:460px;
  border-radius:28px;
  background:transparent;
}
/* Keep O nas copy on the right, leaving a calm space for future company photography. */
.about-copy{ grid-column:2; }

.site-footer{
  background:#eef3f1 !important;
  color:#5f6d76 !important;
  border-top:1px solid rgba(13,39,67,.045) !important;
}
.footer-signoff{
  min-height:36px !important;
  padding-top:7px !important;
  padding-bottom:7px !important;
}
.footer-signoff p{
  color:#66747d !important;
  font-size:.68rem !important;
}

@media (max-width:980px){
  .about-photo-space{ min-height:220px; order:2; }
  .about-copy{ grid-column:auto; }
}
@media (max-width:760px){
  .about-photo-space{ display:none; }
  .footer-signoff{ min-height:32px !important; padding-top:6px !important; padding-bottom:6px !important; }
}

/* ---------- V23 compact interest columns ---------- */
.checkbox-groups{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:28px;
  align-items:start;
}
.checkbox-column{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}
.checkbox-group{ margin:0; padding:0; }
.checkbox-group-title{ margin-bottom:8px; }
@media (max-width:760px){
  .checkbox-groups{ grid-template-columns:1fr; gap:14px; }
  .checkbox-column{ gap:12px; }
}

/* ---------- V25 layout and typography cleanup ---------- */
/* O nas is a full-width central section, not a narrow centered box. */
.about-section .about-center{
  width:100%;
  text-align:center;
}
.about-section .about-center .section-eyebrow{
  text-align:center;
}
.about-section .about-center h2{
  max-width:1040px;
  margin-left:auto;
  margin-right:auto;
}
.about-section .about-center .section-lead{
  max-width:1040px;
  margin-left:auto;
  margin-right:auto;
}
.about-section .badge-row{
  justify-content:center;
}

/* Alternating section headings requested by the client. Cards remain full-width. */
#oferta-dom .section-eyebrow,
#oferta-dom h2,
#oferta-dom .section-lead,
#dla-rolnika .section-eyebrow,
#dla-rolnika h2,
#dla-rolnika .section-lead,
#dotacje .section-eyebrow,
#dotacje h2,
#dotacje .section-lead,
#dotacje .fine-print{
  margin-left:0;
  margin-right:auto;
  text-align:left;
}
#oferta-dom .section-cta,
#dla-rolnika .section-cta{
  text-align:left;
}

#oferta-biznes .section-eyebrow,
#oferta-biznes h2,
#oferta-biznes .section-lead,
#spoldzielnie .section-eyebrow,
#spoldzielnie h2,
#spoldzielnie .section-lead,
#partnerzy .section-eyebrow,
#partnerzy h2,
#partnerzy .section-lead{
  margin-left:auto;
  margin-right:0;
  text-align:right;
}
#oferta-biznes .section-cta,
#spoldzielnie .section-cta{
  text-align:right;
}

/* Compact, balanced 2-column interest layout. */
.checkbox-groups{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:30px;
  align-items:start;
}
.checkbox-column{
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width:0;
}
.checkbox-group{
  margin:0;
  padding:0;
}
.checkbox-group-title{
  margin:0 0 6px;
  font-family:var(--font-body);
  font-size:.88rem;
  line-height:1.45;
  font-weight:700;
  color:var(--navy);
}

/* Contact typography uses one body type system throughout. */
.info-card,
.info-card p,
.info-card a,
.legal-name,
.legal-ids,
.legal-ids span{
  font-family:var(--font-body);
}
.info-card p,
.legal-name,
.legal-ids span{
  font-size:.95rem;
  line-height:1.6;
}
.legal-name{
  color:var(--gray-700);
  font-weight:600;
  margin:0 0 6px;
}
.legal-ids{
  display:flex;
  flex-direction:column;
  gap:2px;
  margin:0;
}
.legal-ids span{
  color:var(--gray-700);
  font-weight:400;
}

/* Keep visual typography consistent in partner text fallback as well. */
.partner-text{
  font-family:var(--font-body);
  letter-spacing:0;
}

@media (max-width:760px){
  .checkbox-groups{ grid-template-columns:1fr; gap:12px; }
  .checkbox-column{ gap:12px; }
  #oferta-biznes .section-eyebrow,
  #oferta-biznes h2,
  #oferta-biznes .section-lead,
  #spoldzielnie .section-eyebrow,
  #spoldzielnie h2,
  #spoldzielnie .section-lead,
  #partnerzy .section-eyebrow,
  #partnerzy h2,
  #partnerzy .section-lead,
  #oferta-biznes .section-cta,
  #spoldzielnie .section-cta{
    text-align:left;
    margin-left:0;
    margin-right:auto;
  }
}


/* ---------- V26 centered O nas, left section headings, compact contact and one-line footer ---------- */
/* Full-width, genuinely centered O nas section. */
.about-section .about-center-wrap{
  width:100%;
  max-width:none;
  text-align:center;
}
.about-section .about-center-wrap .section-eyebrow{
  text-align:center;
  margin-left:auto;
  margin-right:auto;
}
.about-section .about-center-wrap h2{
  width:100%;
  max-width:1320px;
  margin-left:auto;
  margin-right:auto;
  text-align:center;
}
.about-section .about-center-wrap .section-lead{
  width:100%;
  max-width:1180px;
  margin-left:auto;
  margin-right:auto;
  text-align:center;
}
.about-section .about-center-wrap .badge-row{
  justify-content:center;
}

/* All regular category section headings back to the left. */
#oferta-dom .section-eyebrow,
#oferta-dom h2,
#oferta-dom .section-lead,
#oferta-biznes .section-eyebrow,
#oferta-biznes h2,
#oferta-biznes .section-lead,
#dla-rolnika .section-eyebrow,
#dla-rolnika h2,
#dla-rolnika .section-lead,
#spoldzielnie .section-eyebrow,
#spoldzielnie h2,
#spoldzielnie .section-lead,
#dotacje .section-eyebrow,
#dotacje h2,
#dotacje .section-lead,
#dotacje .fine-print,
#partnerzy .section-eyebrow,
#partnerzy h2,
#partnerzy .section-lead{
  margin-left:0;
  margin-right:auto;
  text-align:left;
}
#oferta-dom .section-cta,
#oferta-biznes .section-cta,
#dla-rolnika .section-cta,
#spoldzielnie .section-cta{
  text-align:left;
}

/* Contact remains a single full-width form. */
.kontakt-grid{
  display:block;
}
.kontakt-form{
  width:100%;
  padding-bottom:22px;
}
/* Keep the interest area compact and remove the artificial air before Wiadomosc. */
.kontakt-form fieldset.form-row{
  margin-bottom:10px;
}
.checkbox-column{
  gap:6px;
}
.checkbox-group-title{
  margin-bottom:6px;
}
.checkbox-group label:last-child{
  margin-bottom:0;
}
.kontakt-form fieldset.form-row + .form-row{
  margin-top:0;
}
/* Do not reserve empty status space below the submit button. */
.form-status:empty{
  display:none;
}
.form-status:not(:empty){
  margin-top:10px;
  min-height:0;
}

/* Seamless, ultra-thin footer with all company data in one line on desktop. */
.site-footer{
  background:#eef3f1 !important;
  color:#66747d !important;
  border-top:1px solid rgba(13,39,67,.045) !important;
}
.footer-signoff{
  min-height:30px !important;
  padding-top:5px !important;
  padding-bottom:5px !important;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:18px;
}
.footer-signoff p{
  margin:0;
  color:#66747d !important;
  font-family:var(--font-body);
  font-size:.66rem !important;
  line-height:1.3;
  letter-spacing:0;
  text-align:center;
  white-space:nowrap;
}
.footer-signoff a{
  color:inherit;
}
.footer-signoff a:hover{
  color:var(--navy);
}

@media (max-width:1100px){
  .footer-signoff p{
    white-space:normal;
  }
}
@media (max-width:760px){
  .about-section .about-center-wrap h2,
  .about-section .about-center-wrap .section-lead{
    max-width:100%;
  }
  .footer-signoff{
    min-height:34px !important;
    padding-top:6px !important;
    padding-bottom:6px !important;
  }
  .footer-signoff p{
    font-size:.62rem !important;
    line-height:1.4;
  }
}

/* ---------- V27 O nas placement and heading ---------- */
.about-section .about-center-wrap .section-eyebrow{
  text-align:left;
  margin-left:0;
  margin-right:auto;
}
.about-section .about-center-wrap h2{
  width:100%;
  max-width:1320px;
  margin-left:auto;
  margin-right:auto;
  text-align:center;
}
@media (max-width:760px){
  .about-section .about-center-wrap h2 br{ display:none; }
}

/* ---------- V28 footer split layout ---------- */
.footer-signoff{
  justify-content:space-between !important;
  gap:24px;
}
.footer-signoff p{
  margin:0;
  text-align:left;
}
.footer-signoff .footer-company{
  flex:1 1 auto;
  min-width:0;
}
.footer-signoff .footer-copy{
  flex:0 0 auto;
  text-align:right;
  white-space:nowrap;
}
@media (max-width:1180px){
  .footer-signoff{
    flex-wrap:wrap;
    justify-content:center !important;
    gap:2px 14px;
  }
  .footer-signoff .footer-company,
  .footer-signoff .footer-copy{
    flex:0 1 auto;
    text-align:center;
    white-space:normal;
  }
}

/* ---------- V30 final alignment fix ---------- */
/* Keep O NAS on exactly the same content axis as KONTAKT and other sections. */
.about-section .container.about-center-wrap{
  width:100%;
  max-width:var(--container-w);
  margin-left:auto;
  margin-right:auto;
  padding-left:24px;
  padding-right:24px;
}
.about-section .about-center-wrap .section-eyebrow{
  text-align:left;
  margin-left:0;
  margin-right:auto;
}


/* ---------- V30 scroll reveal - Apple-inspired ---------- */
/* Elements stay fully visible unless JavaScript enables the reveal system. */
.reveal-ready .scroll-reveal{
  opacity:0;
  translate:0 46px;
  scale:.987;
  filter:blur(8px);
  transition:
    opacity 1.28s cubic-bezier(.16,1,.3,1),
    translate 1.52s cubic-bezier(.16,1,.3,1),
    scale 1.52s cubic-bezier(.16,1,.3,1),
    filter 1.18s cubic-bezier(.16,1,.3,1);
  transition-delay:var(--reveal-delay,0ms);
  will-change:opacity,translate,scale,filter;
}
.reveal-ready .scroll-reveal.is-visible{
  opacity:1;
  translate:0 0;
  scale:1;
  filter:blur(0);
}

/* Hero enters in a clean sequence on first load. */
.reveal-ready .hero .scroll-reveal{
  translate:0 38px;
}

/* Cards and logos get a slower, more fluid entrance while keeping hover effects natural. */
.reveal-ready .card.scroll-reveal,
.reveal-ready .why-item.scroll-reveal,
.reveal-ready .partner-logo.scroll-reveal,
.reveal-ready .badge-row > .scroll-reveal{
  translate:0 38px;
  scale:.982;
  transition-duration:1.72s, 2.05s, 2.05s, 1.58s;
}

/* The contact form arrives as one solid object instead of animating every input. */
.reveal-ready .kontakt-form.scroll-reveal{
  translate:0 44px;
  scale:.990;
  transition-duration:1.88s, 2.18s, 2.18s, 1.82s;
}

@media (max-width:760px){
  .reveal-ready .scroll-reveal,
  .reveal-ready .hero .scroll-reveal{
    translate:0 28px;
    filter:blur(5px);
  }
  .reveal-ready .card.scroll-reveal,
  .reveal-ready .why-item.scroll-reveal,
  .reveal-ready .partner-logo.scroll-reveal{
    translate:0 24px;
  }
}

@media (prefers-reduced-motion: reduce){
  .reveal-ready .scroll-reveal,
  .reveal-ready .scroll-reveal.is-visible{
    opacity:1 !important;
    translate:none !important;
    scale:1 !important;
    filter:none !important;
    transition:none !important;
  }
}

/* ---------- V30 CTA spacing after slower card reveal ---------- */
#oferta-dom .section-cta,
#oferta-biznes .section-cta,
#dla-rolnika .section-cta,
#spoldzielnie .section-cta{
  margin-top:52px;
}

@media (max-width:760px){
  #oferta-dom .section-cta,
  #oferta-biznes .section-cta,
  #dla-rolnika .section-cta,
  #spoldzielnie .section-cta{
    margin-top:42px;
  }
}

/* ---------- V30 fine-print spacing + O nas cleanup ---------- */
#dotacje .fine-print{
  margin-top:52px;
}

@media (max-width:760px){
  #dotacje .fine-print{
    margin-top:42px;
  }
}

/* Footer must always remain visible - excluded from scroll reveal. */
.footer-signoff.scroll-reveal,
.reveal-ready .footer-signoff.scroll-reveal{
  opacity:1 !important;
  transform:none !important;
  filter:none !important;
  transition:none !important;
}


/* V31 - privacy notice and Cloudflare Turnstile */
.privacy-notice {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--gray-700);
}
.privacy-notice p { margin: 0; }
.privacy-notice a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.turnstile-row[hidden] { display: none !important; }
.turnstile-row { min-height: 65px; }
#turnstile-container { width: 100%; }

/* ---------- V32.2 premium contact form ---------- */
#kontakt .kontakt-grid{
  margin-top:20px;
}
#kontakt .kontakt-form{
  position:relative;
  overflow:hidden;
  padding:34px 36px 30px;
  border:1px solid rgba(2,0,74,.08);
  border-radius:22px;
  background:#fff;
  box-shadow:0 18px 50px rgba(2,0,74,.06);
}
#kontakt .form-row{
  margin-bottom:18px;
}
#kontakt .form-row-split{
  gap:16px;
}
#kontakt .form-row > label,
#kontakt .form-row-split label,
#kontakt .form-row > legend{
  margin-bottom:7px;
  font-size:.82rem;
  line-height:1.35;
  font-weight:700;
  letter-spacing:.01em;
  color:var(--navy);
}
#kontakt .kontakt-form input[type="text"],
#kontakt .kontakt-form input[type="tel"],
#kontakt .kontakt-form input[type="email"],
#kontakt .kontakt-form textarea{
  padding:12px 14px;
  border:1px solid var(--gray-100);
  border-radius:12px;
  background:#f4f6f3;
  color:var(--text);
  transition:border-color .28s ease, background .28s ease, box-shadow .28s ease, transform .28s ease;
}
#kontakt .kontakt-form input[type="text"]:hover,
#kontakt .kontakt-form input[type="tel"]:hover,
#kontakt .kontakt-form input[type="email"]:hover,
#kontakt .kontakt-form textarea:hover{
  border-color:#b9c4c9;
  background:#fff;
}
#kontakt .kontakt-form input[type="text"]:focus,
#kontakt .kontakt-form input[type="tel"]:focus,
#kontakt .kontakt-form input[type="email"]:focus,
#kontakt .kontakt-form textarea:focus{
  border-color:#9aabb7;
  background:#fff;
  box-shadow:0 0 0 4px rgba(154,171,183,.16);
  transform:translateY(-1px);
}
#kontakt .kontakt-form fieldset.form-row{
  margin:4px 0 18px;
  padding:18px;
  border:1px solid rgba(13,39,67,.07);
  border-radius:16px;
  background:#f4f6f3;
}
#kontakt .kontakt-form fieldset.form-row > legend{
  padding:0 8px;
  margin-left:-8px;
  background:#f4f6f3;
}
#kontakt .checkbox-groups{
  gap:22px;
}
#kontakt .checkbox-column{
  gap:12px;
}
#kontakt .checkbox-group-title{
  margin:0 0 7px;
  font-size:.82rem;
  line-height:1.3;
  font-weight:700;
  color:var(--navy);
}
#kontakt .checkbox-group{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
  align-content:start;
}
#kontakt .checkbox-group-title{
  grid-column:1 / -1;
}
#kontakt .checkbox-group label{
  position:relative;
  display:flex;
  align-items:center;
  min-height:42px;
  margin:0;
  padding:9px 11px;
  gap:9px;
  border:1px solid rgba(13,39,67,.08);
  border-radius:11px;
  background:#fff;
  color:var(--gray-700);
  font-size:.82rem;
  line-height:1.3;
  font-weight:500;
  cursor:pointer;
  transition:transform .22s ease, border-color .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
}
#kontakt .checkbox-group label:hover{
  transform:translateY(-1px);
  border-color:#9aabb7;
  box-shadow:0 6px 16px rgba(13,39,67,.055);
}
#kontakt .checkbox-group label:has(input:checked){
  border-color:#9aabb7;
  background:#eef3f1;
  color:var(--navy);
  box-shadow:inset 0 0 0 1px rgba(13,39,67,.035);
}
#kontakt .checkbox-group input[type="checkbox"]{
  width:16px;
  height:16px;
  margin:0;
  flex:0 0 16px;
  accent-color:var(--navy);
}
#kontakt .privacy-notice{
  margin-top:2px;
  margin-bottom:14px;
  padding:0 2px;
  color:#6b7280;
  font-size:.78rem;
  line-height:1.5;
}
#kontakt .privacy-notice a{
  color:var(--navy);
  font-weight:600;
  text-decoration-thickness:1px;
}
#kontakt #submit-btn{
  min-height:48px;
  border-radius:12px;
  border:0;
  font-size:.94rem;
  letter-spacing:.01em;
  box-shadow:0 10px 24px rgba(228,0,43,.14);
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
}
#kontakt #submit-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(228,0,43,.20);
}
@media (max-width:900px){
  #kontakt .checkbox-group{
    grid-template-columns:1fr;
  }
}
@media (max-width:760px){
  #kontakt .kontakt-form{
    padding:26px 18px 22px;
    border-radius:18px;
  }
  #kontakt .kontakt-form fieldset.form-row{
    padding:15px 13px;
  }
  #kontakt .checkbox-groups{
    gap:14px;
  }
  #kontakt .checkbox-group{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:480px){
  #kontakt .checkbox-group{
    grid-template-columns:1fr;
  }
}

/* Prevent accidental text selection across the site for a cleaner visual feel. */
html, body, body * {
  -webkit-user-select: none;
  user-select: none;
}

/* Keep form controls fully usable and editable. */
input, textarea, select, option, [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}
