@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

/* ===== Zmienne ===== */
:root{
  --font-main: 'Inter', sans-serif;
  --font-title: 'Playfair Display', serif;

  --green: #264c3d;         /* tekst */
  --green-deep: #2e5745;    /* nagłówki */
  --gold: #bfa35a;
  --gold-light: #d9c17d;
  --header-height: 64px;
  --wrap: 1100px;

  /* DŹWIGNIA: wysokość całego HERO (tytuł+podtytuł+CTA) */
  --hero-offset: 42vh;
  --hero-gap: 16px;
}

/* ===== Baza ===== */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}

/* OGÓLNE TŁO */
body{
  font-family:var(--font-main);
  color:var(--green);
  line-height:1.6;
  background:#ffffff;
}

/* TŁO PODSTRON */
body.is-subpage {
  background:#ffffff url("../images/PODSTRONY.png") no-repeat center top;
  background-size:cover;
}

/* TŁO – STRONA GŁÓWNA (WAHADEŁKO) – NIE ZALEŻY OD KLASY */
body.is-home .hero{
  background-image:url("../images/hero-bg.png");
  background-repeat:no-repeat;
  background-position:center top;
  background-size:cover;
  background-attachment:fixed;
}

@media (max-width:768px){
  body.is-home .hero{
    background-attachment:scroll;
  }
}

@media (max-width:768px){
  body{background-attachment:scroll;background-position:center top}
}

.wrap{
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 16px;
}

/* ===== Header + NAV ===== */
.header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(6px);
  border-bottom:1px solid rgba(0,0,0,.06);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
}

.logo{
  font-family:var(--font-title);
  font-weight:700;
  color:var(--green);
  text-decoration:none;
  font-size:20px;
}

/* 🔥 DODANE — LOGO IMG */
.logo-img{
  display:block;
  height:40px;
  width:auto;
}

.nav{
  display:flex;
  gap:20px;
}

.nav a{
  text-decoration:none;
  color:var(--green);
  font-weight:500;
  padding:6px 8px;
  border-radius:8px;
  transition:color .2s ease, background-color .2s ease;
}
.nav a:hover{color:var(--gold)}

/* ===== HERO ===== */
.hero{
  min-height:82vh;
  display:grid;
  place-items:start center;
  text-align:center;
  position:relative;
}

.hero-inner{
  padding-top:var(--hero-offset);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:var(--hero-gap);
}

body.is-home {
  min-height: 100vh;
  overflow-x: hidden;
}

.hero-title{
  font-family:var(--font-title);
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:.6px;
  line-height:1.15;
  font-size:clamp(28px,4.2vw,50px);
  color:var(--green-deep);
  text-shadow:0 2px 6px rgba(0,0,0,.20);
  max-width:1100px;
  margin:0;
}

.hero-sub{
  font-size:clamp(16px,1.8vw,20px);
  color:var(--green);
  opacity:.95;
  margin:0 0 28px;
}

/* ===== CTA ===== */
.grid-ctas{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:36px;
}

.btn{
  background:linear-gradient(135deg,var(--gold) 0%,var(--gold-light) 100%);
  color:#fff;
  border:0;
  padding:12px 28px;
  border-radius:12px;
  font-size:17px;
  font-weight:500;
  letter-spacing:.3px;
  text-decoration:none;
  text-align:center;
  box-shadow:0 2px 6px rgba(0,0,0,.15);
  transition:all .25s ease;
  min-width:220px;
}

.btn:hover{
  background:linear-gradient(135deg,var(--green-deep) 0%,#3a6a55 100%);
  box-shadow:0 3px 8px rgba(0,0,0,.20);
}

/* ===== STOPKA ===== */
.footer{
  position:static;
  width:100%;
  background:rgba(255,255,255,.78);
  border-top:1px solid #e8e0cc;
  text-align:center;
  font-size:14px;
  color:#264c3d;
  padding:22px 0;
}


.footer__brand{opacity:.9}
.footer__note,.footer__tagline{font-size:13px;opacity:.8}

/* ===== RWD ===== */
@media (max-width:1200px){
  :root{--hero-offset:38vh}
  .grid-ctas{gap:28px}
}

@media (max-width:900px){
  :root{--hero-offset:30vh}
  .hero{min-height:72vh}
  .hero-title{font-size:clamp(24px,6vw,36px)}
  .grid-ctas{flex-direction:column;gap:18px}
  .btn{min-width:200px}
}

/* === Styl podstron === */
.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: #2e5745;
  margin-bottom: 10px;
}

.intro.text {
  font-size: 18px;
  color: #264c3d;
  opacity: .95;
}

/* FIGURE — WSZYSTKIE OPCJE (Twoja wersja, nic nie zmieniałem) */
.figure { margin:0; }
.figure img{ width:100%; height:auto; border-radius:8px; display:block; }
.figure figcaption{ font-size:14px; color:#555; margin-top:6px; text-align:center; }

.align-left{text-align:left;}
.align-center{text-align:center;}
.align-right{text-align:right;}

.figure.size-small{max-width:50%;}
.figure.size-medium{max-width:75%;}
.figure.size-large{max-width:100%;}

.figure.align-left{margin-left:0;margin-right:auto;}
.figure.align-center{margin-left:auto;margin-right:auto;text-align:center;}
.figure.align-right{margin-left:auto;margin-right:0;}
.figure.align-full{width:100%;max-width:100%;}

.figure.float-left{float:left;margin:0 1rem 1rem 0;}
.figure.float-right{float:right;margin:0 0 1rem 1rem;}
.figure.float-none{float:none;}

.figure.shape-rounded img{border-radius:12px;}
.figure.shape-circle img{border-radius:9999px;aspect-ratio:1/1;object-fit:cover;}

.figure.style-border img{border:1px solid #e0d6b8;}
.figure.style-shadow img{box-shadow:0 4px 14px rgba(0,0,0,.12);}

.figure.ratio-square img{aspect-ratio:1/1;object-fit:cover;}
.figure.ratio-wide img{aspect-ratio:16/9;object-fit:cover;}
.figure.ratio-tall img{aspect-ratio:3/4;object-fit:cover;}

.figure.filter-grayscale img{filter:grayscale(1);}
.figure.filter-sepia img{filter:sepia(1);}
.figure.filter-warm img{filter:sepia(.35) saturate(1.2);}

/* Stopka zawsze poniżej floatów */
footer{
  clear:both;
  margin-top: 0;
}
/* Usunięcie przerwy nad stopką tylko na stronie głównej */
body.is-home footer {
  margin-top: 0;
}
.footer__columns {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 40px 0;
}

.footer__left {
  flex: 1;
}

.footer__right {
  flex: 1;
  text-align: right;
}

.footer__policy a,
.footer__social a {
  margin-left: 10px;
}

.footer__policy span {
  margin: 0 5px;
  color: #999;
}
/* HERO LOGO – jak było */
.hero-logo {
  position: absolute;
  z-index: 20;      /* nad tłem, pod headerem */
}

.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================
   STOPKA eRadiestezja – WERSJA ESTETYCZNA + PREMIUM
   5 SOCIAL (FB, IG, YT, X, TikTok) – TŁO #f8f1ec
   ============================================ */

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35); /* delikatna kreska */
  background: #f8f1ec;                             /* kolor tła jak hero */
  color: #374151;                                  /* ciemny, czytelny tekst */
  font-size: 0.875rem;
  padding: 1.75rem 0 1.5rem;
}

.footer a {
  color: #1f2937;                                  /* ciemny tekst linków */
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  color: #166534;                                  /* zielony akcent pod resztę strony */
  text-decoration: underline;
}

/* Główny układ stopki */

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Kolumny */

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer__col--left {
  text-align: left;
  max-width: 480px;
}

.footer__col--right {
  text-align: right;
}

/* Treści – lewa kolumna */

.footer__brand {
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer__tagline {
  opacity: 0.9;
}

.footer__note {
  opacity: 0.85;
}

/* PRAWA KOLUMNA – linki pionowo, ikony w rzędzie pod nimi */

/* Linki prawne: pionowo, jak w starej wersji */
.footer__nav ul {
  list-style: none;
  margin: 0 0 0.6rem;
  padding: 0;
  display: block;                   /* pionowo, nie flex */
}

.footer__nav li {
  margin: 0 0 0.25rem;
  text-align: right;
}

/* Social: rząd ikon pod linkami, wyrównany do prawej */
.footer__social ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

/* SOCIAL – ikony w kółkach premium */

.footer__social-link {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  padding-top: 1px;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.7);          /* lekkie rozjaśnienie pod ikoną */
}

/* FB / IG / YT */

.footer__social-link--facebook::before {
  content: "f";
}

.footer__social-link--instagram::before {
  content: "IG";
  font-size: 0.7rem;
}

.footer__social-link--youtube::before {
  content: "▶";
  font-size: 0.7rem;
}

/* TWITTER (X) */

.footer__social-link--twitter::before {
  content: "X";
  font-size: 0.72rem;
  font-weight: 700;
}

/* TIKTOK */

.footer__social-link--tiktok::before {
  content: "♪";
  font-size: 0.72rem;
  font-weight: 700;
}

/* Hover ikon social */

.footer__social-link:hover,
.footer__social-link:focus-visible {
  border-color: #166534;
  box-shadow: 0 0 0 1px rgba(22, 101, 52, 0.35);
}

/* Warianty układu sterowane z Panelu Kirby (footer_layout) */

.footer.footer--two-columns .footer__inner {
  flex-direction: row;
}

.footer.footer--centered {
  text-align: center;
}

.footer.footer--centered .footer__inner {
  justify-content: center;
}

.footer.footer--centered .footer__col--left,
.footer.footer--centered .footer__col--right {
  text-align: center;
}

.footer.footer--stacked .footer__inner {
  flex-direction: column;
}

.footer.footer--stacked .footer__col--right {
  text-align: left;
}

/* Mobile */

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__col--right,
  .footer__nav ul,
  .footer__social ul {
    justify-content: flex-start;
    text-align: left;
  }

  .footer__nav ul {
    margin-bottom: 0.75rem;
  }
}

/* Dostępność – ukrycie tekstu dla czytników ekranu */

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

/* HOVER w stopce – wzmocniony (linki i notka) */

.footer .footer__nav a:hover,
.footer .footer__nav a:focus-visible,
.footer .footer__note a:hover,
.footer .footer__note a:focus-visible {
  color: #166534 !important;
  text-decoration: underline;
}

/* HOVER ikon social – obramowanie + kolor */
.footer .footer__social-link:hover,
.footer .footer__social-link:focus-visible {
  border-color: #166534 !important;
  color: #166534 !important;
  box-shadow: 0 0 0 1px rgba(22, 101, 52, 0.35);
}

/* NAV – działa nawet jeśli w HTML nie ma klasy .nav */
.header__inner nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:20px;
  flex-wrap:wrap;
}

.header__inner nav a{
  text-decoration:none;
  color:var(--green);
  font-weight:500;
  padding:6px 8px;
  border-radius:8px;
  display:inline-block;
}
.header__inner nav a:hover{color:var(--gold)}


/* mobile: bez fixed (stabilniej na telefonach) */
@media (max-width: 768px){
  body.is-home{
    background-attachment: scroll !important;
  }
}

/* ===== Kontakt: formularz ===== */

/* Nagłówek formularza */
.contact-form__title{
  max-width: 760px;        /* SZEROKOŚĆ jak obraz */
  margin: 26px 0 6px 0;    /* mała przerwa od treści powyżej */
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: .01em;
}

.contact-form__subtitle{
  max-width: 760px;        /* SZEROKOŚĆ jak obraz */
  margin: 0 0 12px 0;
  opacity: .8;
  line-height: 1.45;
}

/* Karta formularza */
.contact-form{
  max-width: 760px;        /* SZEROKOŚĆ jak obraz */
  margin: 14px 0 0 0;      /* po lewej */
  padding: 22px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.35);
  backdrop-filter: blur(2px);
}

.contact-form__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.contact-form__field{ min-width: 0; }
.contact-form__field--full{ grid-column: 1 / -1; }

.contact-form__label{
  display: block;
  font-weight: 600;
  margin: 0 0 6px 0;
  font-size: .95rem;
  opacity: .9;
}

.contact-form__input,
.contact-form__textarea{
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  border: 1px solid rgba(0,0,0,.16);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,.9);
  outline: none;
}

.contact-form__textarea{
  resize: vertical;
  min-height: 170px;
}

.contact-form__input:focus,
.contact-form__textarea:focus{
  border-color: rgba(0,0,0,.35);
  box-shadow: 0 0 0 4px rgba(0,0,0,.06);
}

.contact-form__checkbox{
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.35;
}

.contact-form__checkbox input{
  margin-top: 3px;
}

.contact-form__info{
  margin: 10px 0 0 0;
  font-size: .9rem;
  opacity: .75;
}

.contact-form__actions{
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
}

.contact-form__btn{
  border: 1px solid rgba(0,0,0,.22);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255,255,255,.92);
}

.contact-form__btn:hover{
  background: rgba(255,255,255,1);
}

@media (max-width: 720px){
  .contact-form__title,
  .contact-form__subtitle,
  .contact-form{
    max-width: 100%;
  }

  .contact-form{
    padding: 16px;
  }

  .contact-form__grid{
    grid-template-columns: 1fr;
  }
}
/* ===== Ciekawostki (blog) ===== */

.ciek-head{margin-bottom:18px}
.ciek-title{margin:0 0 6px}
.ciek-intro{max-width:820px;opacity:.85}

.ciek-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

@media(max-width:980px){.ciek-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.ciek-grid{grid-template-columns:1fr}}

.ciek-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  overflow:hidden;
}

.ciek-card__media{
  display:block;
  aspect-ratio:16/9;
  overflow:hidden;
}

.ciek-card__img{
  width:100%!important;
  height:100%!important;
  object-fit:cover;
}

.ciek-card__body{padding:14px}
.ciek-card__title{margin:0 0 6px;font-size:1.05rem}
.ciek-card__meta{font-size:.85rem;opacity:.7;margin-bottom:8px}
.ciek-card__excerpt{margin:0 0 10px;line-height:1.45}
.ciek-card__more a{font-weight:600;text-decoration:none}

/* ===== Artykuł (pojedynczy wpis) ===== */

.article-inner{
  max-width: 860px;
  margin: 0 auto;
}

.article-head{
  margin-bottom: 18px;
}

.article-title{
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.article-meta{
  font-size: .9rem;
  opacity: .7;
}

.article-hero{
  margin: 22px 0;
}

.article-hero img{
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.article-lead{
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: .9;
  margin-bottom: 22px;
}

.article-content{
  line-height: 1.7;
}

.article-content h2,
.article-content h3{
  margin-top: 28px;
}

.article-footer{
  margin-top: 40px;
  font-weight: 600;
}
/* ===== Typografia: artykuł (czytanie) ===== */

.article-inner{ max-width: 860px; margin: 0 auto; }

.article-title{ margin: 0 0 6px; line-height: 1.15; }
.article-meta{ font-size: .92rem; opacity: .72; margin-bottom: 10px; }

.article-hero{ margin: 20px 0 18px; }
.article-hero img{ width: 100%; height: auto; border-radius: 14px; display:block; }

.article-lead{
  font-size: 1.08rem;
  line-height: 1.7;
  opacity: .92;
  margin: 0 0 22px 0;
}

.article-content{
  line-height: 1.8;
  font-size: 1rem;
}

.article-content p{ margin: 0 0 14px 0; }
.article-content a{ text-decoration: underline; text-underline-offset: 2px; }

.article-content h2{
  margin: 30px 0 12px 0;
  line-height: 1.25;
}
.article-content h3{
  margin: 22px 0 10px 0;
  line-height: 1.3;
}

.article-content ul,
.article-content ol{
  margin: 0 0 14px 1.1rem;
  padding: 0;
}
.article-content li{ margin: 6px 0; }

.article-content blockquote{
  margin: 18px 0;
  padding: 12px 14px;
  border-left: 4px solid rgba(0,0,0,.18);
  background: rgba(0,0,0,.03);
  border-radius: 10px;
}

.article-content code{
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0,0,0,.06);
}
.article-content pre{
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0,0,0,.06);
  overflow: auto;
}
/* ===== COOKIE BAR + USTAWIENIA (pełna wersja) ===== */

.cookie-bar{
  position: fixed;
  left:0; right:0; bottom:0;
  z-index: 9999;
  background:#0b0b0b;
  color:#fff;
  border-top:1px solid rgba(255,255,255,.12);
}

.cookie-bar__inner{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 16px;
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.cookie-bar__text{
  margin:0;
  font-size:14px;
  line-height:1.4;
  opacity:.92;
  max-width: 760px;
}

.cookie-bar__text a{
  color:#fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-bar__buttons{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.cookie-bar__buttons button{
  appearance:none;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color:#fff;
  padding:9px 12px;
  border-radius:10px;
  font-weight:650;
  cursor:pointer;
  line-height:1;
  white-space:nowrap;
}

.cookie-bar__buttons #cookie-accept-all{
  background:#fff;
  color:#000;
  border-color:#fff;
}

.cookie-bar__buttons button:hover{ opacity:.9; }

/* Panel ustawień */
.cookie-settings{
  border-top:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.92);
}

.cookie-settings__inner{
  max-width: var(--wrap);
  margin:0 auto;
  padding: 14px 16px 16px;
}

.cookie-settings__title{ font-weight:750; margin-bottom:4px; }
.cookie-settings__desc{ opacity:.85; font-size:14px; }

.cookie-settings__toggles{
  display:grid;
  gap:10px;
  margin-top:12px;
}

.cookie-toggle{
  display:grid;
  grid-template-columns:44px 1fr;
  gap:10px;
  align-items:center;
  padding:10px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:12px;
  background: rgba(255,255,255,.04);
}

.cookie-toggle input{ display:none; }

.cookie-toggle__ui{
  width:44px;
  height:26px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  position:relative;
}

.cookie-toggle__ui::after{
  content:"";
  width:20px; height:20px;
  border-radius:999px;
  background:#fff;
  position:absolute;
  top:50%; left:3px;
  transform:translateY(-50%);
  transition:left .18s ease;
}

.cookie-toggle input:checked + .cookie-toggle__ui{
  background: rgba(255,255,255,.22);
}

.cookie-toggle input:checked + .cookie-toggle__ui::after{
  left:21px;
}

.cookie-toggle__text strong{ display:block; }
.cookie-toggle__text small{ display:block; opacity:.8; }

.cookie-settings__footer{
  margin-top:12px;
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.cookie-settings__footer button{
  appearance:none;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color:#fff;
  padding:9px 12px;
  border-radius:10px;
  font-weight:650;
  cursor:pointer;
  line-height:1;
  white-space:nowrap;
}

.cookie-settings__footer #cookie-save-settings{
  background:#fff;
  color:#000;
  border-color:#fff;
}

@media (max-width: 820px){
  .cookie-settings__footer{ justify-content:flex-start; }
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-wrapper main {
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
}
.site-wrapper{
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
}

.site-wrapper > main{
  flex: 1 0 auto !important;
}

.site-wrapper > footer{
  margin-top: auto !important;
}
/* =========================================================
   FINAL: MOBILE NAV (☰ Menu + dropdown) + PORZĄDEK MOBILE
   ========================================================= */

/* ===== DESKTOP: linki normalnie ===== */
.nav__toggle{ display:none; }
.nav__burger{ display:none; }
.nav__links{ display:flex; gap:20px; }

/* ===== MOBILE: burger + rozwijane menu pod headerem ===== */
@media (max-width: 900px){

  .header{
    position: sticky;
    top: 0;
    z-index: 3000;
    background: #fff !important;
    backdrop-filter: none !important;
  }

  .header__inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:10px 0;
    flex-wrap: wrap;
  }

  /* LOGO zawsze w headerze na mobile */
  .logo{
    position: relative;
    z-index: 5;
  }

  .nav{ width:100%; }

  .nav__burger{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    border:1px solid rgba(0,0,0,.14);
    background:#fff;
    border-radius:12px;
    color:var(--green);
    font-weight:650;
    line-height:1;
    cursor:pointer;
    user-select:none;
  }

  .nav__icon{
    width:18px;
    height:2px;
    background:var(--green);
    border-radius:2px;
    position:relative;
    display:block;
    flex:0 0 auto;
  }
  .nav__icon::before,
  .nav__icon::after{
    content:"";
    position:absolute;
    left:0;
    width:18px;
    height:2px;
    background:var(--green);
    border-radius:2px;
  }
  .nav__icon::before{ top:-6px; }
  .nav__icon::after{ top:6px; }

  .nav__label{
    display:inline-block;
    white-space:nowrap;
  }

  .nav__links{
    display:none;
    width:100%;
    flex-direction:column;
    gap:0;
    margin:10px 0 0 0;
    padding:10px 0;
    border-top:1px solid rgba(0,0,0,.08);
  }

  .nav__links a{
    display:block;
    padding:10px 2px;
    border-radius:8px;
  }

  .nav__toggle:checked ~ .nav__links{
    display:flex;
  }

}

/* ===== SUBPAGES: wyrównanie do lewej + zawijanie ===== */
body.is-subpage main.wrap.section{ text-align:left !important; }

body.is-subpage p,
body.is-subpage a,
body.is-subpage h1,
body.is-subpage h2,
body.is-subpage h3{
  overflow-wrap:anywhere;
  word-break:break-word;
}

@media (max-width: 900px){
  .contact-form,
  .contact-form__title,
  .contact-form__subtitle{
    max-width:100% !important;
  }
}

/* =========================================================
   FIX: MOBILE — logo (tekst w headerze wraca) + logo w HERO małe po lewej
   (DESKTOP bez zmian)
   ========================================================= */

@media (max-width: 900px){

  /* 0) poziomy overflow tylko na mobile */
  html, body{
    overflow-x: hidden !important;
    max-width: 100% !important;
  }

  /* 1) media nie wypychają layoutu */
  img, svg, video, iframe{
    max-width: 100% !important;
    height: auto !important;
  }

  /* 2) tekst/linki łamią się zamiast poszerzać stronę */
  a, p, li, h1, h2, h3, h4, h5, h6{
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* 3) NAPIS "eradiestezja.pl" w headerze ma zostać */
  .header .logo{
    display: inline-flex !important;
    align-items: center;
  }

  /* 4) Strona główna: rezerwa miejsca, żeby wahadło/logo nie wchodziło na tekst */
  .hero-inner{
    position: relative !important;
    padding-top: 168px !important;
  }

  /* podniesienie tła wahadła na mobile (jeśli jest backgroundem hero) */
  .hero.hero--home-bg{
    background-position: center -40px !important;
  }

  /* 5) Logo z home.php (.hero-logo) — małe i przyklejone do lewej w HERO */
  .hero-logo{
    position: absolute !important;
    left: 14px !important;
    top: 14px !important;
    transform: none !important;
    width: 54px !important;
    z-index: 5 !important;
    pointer-events: none !important;
  }

  .hero-logo img{
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

} /* <-- DOMKNIĘCIE @media (max-width: 900px) */


/* =========================================================
   HOME (MOBILE): usuń biały pas na dole + kontrola logo HERO
   ========================================================= */
@media (max-width: 900px){

  /* 1) Tło na CAŁY ekran/stronę (iPhone lubi zostawiać "pasek" przy 100vh) */
  body.is-home{
    background-image: url("../images/hero-bg.png") !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
    background-size: cover !important;

    /* ważne: kolor pod tłem, żeby nie było białego paska */
    background-color: #f8f1ec !important;

    /* reset potencjalnych min-height z wcześniejszych reguł */
    min-height: auto !important;
  }

  /* 2) Wyłącz tło na .hero na mobile (żeby nie dublować i nie rozciągać) */
  body.is-home .hero{
    background-image: none !important;
    background-color: transparent !important;
  }

  /* 3) Hero ma zajmować stabilną wysokość bez rozjeżdżania na iOS */
  body.is-home .hero{
    min-height: 100svh !important; /* nowoczesne mobile */
  }

  /* 4) Jeżeli iOS doda "bezpieczny obszar" na dole, ma być w kolorze tła */
  body.is-home{
    padding-bottom: env(safe-area-inset-bottom) !important;
  }

  /* 5) LOGO w HERO – trochę większe (ustalasz tu docelowy rozmiar) */
  .hero-logo{
    width: 74px !important;   /* było 54px, tu masz większe */
    left: 14px !important;
    top: 14px !important;
  }
}
@media (max-width: 900px){
  body.is-home .hero{
    height: calc(100vh - var(--header-height));
    min-height: 0;
  }
}
/* =========================================================
   HARD RESET: MOBILE — cofnięcie WSZYSTKICH rozciągnięć tła
   (DESKTOP bez zmian, NIC NIE USUWAMY)
   ========================================================= */

@media (max-width: 900px){

  /* 1) BODY: żadnego tła, żadnego vh, żadnych kombinacji */
  body.is-home{
    background-image: none !important;
    background-color: #ffffff !important;
    min-height: auto !important;
    height: auto !important;
  }

  /* 2) HERO: przywrócenie JEDYNEGO źródła tła */
  body.is-home .hero{
    background-image: url("../images/hero-bg.png") !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
    background-size: cover !important;
    background-attachment: scroll !important;

    /* cofnięcie wszystkich vh / svh / calc */
    height: auto !important;
    min-height: 82vh !important;
  }

  /* 3) Wrapper i main — zero ingerencji w wysokość */
  body.is-home .site-wrapper,
  body.is-home .site-wrapper > main{
    min-height: auto !important;
    height: auto !important;
    flex: initial !important;
  }

}
/* =========================================================
   MOBILE ONLY — obniżenie TREŚCI HERO (bez ruszania tła)
   ========================================================= */

@media (max-width: 900px){

  /* przesuwamy WYŁĄCZNIE kontener z treścią */
  body.is-home .hero-inner{
    padding-top: calc(var(--hero-offset) + 6vh) !important;
  }

}

/* Kontakt – wyróżnienie e-mail w treści */
.contact-email{
  font-weight: 700;
  color: var(--accent, currentColor);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent, currentColor);
  white-space: nowrap;
}

/* Kontakt – wyróżnienie e-mail w treści */
.contact-email{
  font-weight: 650;
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--green);
  white-space: nowrap;
}

/* Przyciski kontaktowe */
.contact-btn{
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-left: 10px;
  padding: 8px 14px;

  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;

  border-radius: 999px;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);

  cursor: pointer;
  user-select: none;
}

.contact-btn:hover{
  background: var(--green);
  color: #fff;
}

.contact-btn:focus{
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* --- USTAWIENIA DLA PODSTRON (BEZ STRONY GŁÓWNEJ) --- */

/* 1. Odstęp od góry (pod menu) na podstronach */
main:not(:has(.hero)) {
    padding-top: 60px !important;
    padding-bottom: 80px !important; /* Odstęp od stopki */
}

/* 2. Odstęp pod formularzem na podstronach */
main:not(:has(.hero)) form {
    margin-bottom: 80px !important;
}

/* --- BLOKADA DLA STRONY GŁÓWNEJ (ZERO ZMIAN) --- */

/* Gwarantujemy, że sekcja hero i main na głównej nie dostaną żadnych marginesów */
main:has(.hero), 
section.hero, 
.hero {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}