/*
Theme Name: Janusz Boruch – Pośrednictwo Ubezpieczeniowe V3
Theme URI: https://januszboruch.pl/
Author: Janusz Boruch
Description: Profesjonalna strona internetowa biura pośrednictwa ubezpieczeniowego.
Version: 2.1
*/
:root{--navy:#082d55;--navy2:#0d4b7e;--gold:#ddb04b;--gold2:#f2c967;--ink:#102b48;--muted:#65788d;--light:#f4f8fb;--line:#e3ebf2;--white:#fff}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:#fff;line-height:1.5}a{text-decoration:none;color:inherit}.container{width:min(1180px,92%);margin:auto}.site-header{background:#fff;border-bottom:1px solid #e6ebef;position:sticky;top:0;z-index:50}.header-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:22px}.brand{display:flex;align-items:center;gap:12px}.brand img{width:54px;height:54px;object-fit:contain;border-radius:10px}.brand-text strong{display:block;font-size:19px;letter-spacing:.035em}.brand-text span{display:block;font-size:10px;color:#718196;font-weight:800;letter-spacing:.075em;text-transform:uppercase}.nav{display:flex;align-items:center;gap:24px;font-size:13px;font-weight:800}.nav a:hover{color:var(--gold)}.header-phone{background:var(--gold);padding:12px 20px;border-radius:10px;font-weight:900;white-space:nowrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 20px;border-radius:9px;font-weight:900;border:1px solid transparent;transition:.2s}.btn-gold{background:var(--gold);color:#14263a}.btn-gold:hover{background:var(--gold2)}.btn-outline{border-color:#fff;color:#fff;background:transparent}.btn-outline:hover{background:#fff;color:var(--navy)}
.hero{background:linear-gradient(110deg,#082a4e 0%,#0c3965 48%,#0e4b7e 100%);color:#fff;padding:0;overflow:hidden}.hero-grid{display:grid;grid-template-columns:1.02fr .98fr;min-height:440px}.hero-copy{padding:65px 35px 55px 0;display:flex;flex-direction:column;justify-content:center}.eyebrow{color:var(--gold2);font-size:11px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.hero h1{font-size:clamp(40px,5vw,62px);line-height:1.03;margin:12px 0 18px;letter-spacing:-.035em}.hero h1 span{color:var(--gold2)}.hero p{font-size:17px;max-width:600px;color:#e7eff6;margin:0 0 24px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap}.hero-benefits{display:flex;gap:25px;margin-top:25px;flex-wrap:wrap}.hero-benefits>div{display:flex;gap:8px;align-items:center;font-size:11px;color:#e7eff6}.mini-icon{width:28px;height:28px;border:1px solid rgba(242,201,103,.8);border-radius:50%;display:grid;place-items:center;color:var(--gold2);font-size:17px}.hero-art{min-height:440px;background-image:url('assets/family-photo.jpg');background-size:cover;background-position:center;position:relative}.hero-art:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,42,78,.55),transparent 34%)}
.section{padding:58px 0}.offer{padding-bottom:28px}.section-head{text-align:center;max-width:760px;margin:0 auto 28px}.section-head .eyebrow{color:#b48627}.section-head h2{font-size:32px;margin:7px 0 4px;line-height:1.15}.section-head p{color:var(--muted);margin:0;font-size:14px}.cards{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}.card{background:#f5f8fb;border:1px solid #edf2f6;border-radius:12px;padding:20px 12px 18px;text-align:center;min-height:190px;transition:.2s}.card:hover{transform:translateY(-3px);box-shadow:0 10px 28px rgba(13,55,88,.1);background:#fff}.line-icon{height:48px;display:grid;place-items:center;margin-bottom:8px}.line-icon svg,.stat-icon svg,.step-icon svg{width:34px;height:34px;fill:none;stroke:#075184;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.card h3{font-size:14px;line-height:1.18;margin:5px 0 9px}.card p{font-size:10px;line-height:1.35;color:var(--muted);min-height:34px;margin:0 0 13px}.card a{font-size:11px;font-weight:900;color:#b1811e}.card a b{font-size:14px}
.stats{background:#f0f5f9;border-top:1px solid #e7edf2;border-bottom:1px solid #e7edf2}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr)}.stat{display:flex;align-items:center;gap:12px;padding:21px 18px;border-right:1px solid #dfe7ed}.stat:last-child{border:0}.stat-icon svg{width:36px;height:36px}.stat strong{display:block;font-size:23px;line-height:1.1}.stat span{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.about{padding-top:44px;padding-bottom:58px}.about-grid{display:grid;grid-template-columns:280px 1fr 320px;grid-template-rows:auto auto;gap:0 34px;align-items:center}.about-photo{height:315px;border-radius:18px;overflow:hidden;background:#e8eef3}.about-photo img{width:100%;height:100%;object-fit:cover;object-position:center top}.about-copy{padding:0 5px}.about-copy h2{font-size:31px;line-height:1.08;margin:7px 0 14px}.about-copy p{color:var(--muted);font-size:14px;max-width:560px}.about-copy ul{list-style:none;padding:0;margin:18px 0}.about-copy li{font-size:13px;font-weight:700;margin:8px 0}.about-copy li:before{content:"✓";color:#b1811e;font-weight:900;margin-right:9px}.quote-sign{grid-column:2;align-self:start;margin-top:-32px;margin-left:150px;font-family:cursive;color:#a27b2d;font-size:17px;transform:rotate(-4deg)}.quote-mark{grid-column:2;align-self:start;margin-left:175px;color:#9c7b39;font-size:10px;letter-spacing:.15em}.quote-box{grid-column:3;grid-row:1 / span 2;background:#073766;color:#fff;border-radius:16px;padding:24px;box-shadow:0 16px 35px rgba(5,35,65,.18)}.quote-head{font-size:23px;font-weight:900;margin-bottom:4px}.quote-box p{font-size:12px;color:#d9e7f2;margin:0 0 14px}.form-field{display:flex;justify-content:space-between;align-items:center;background:#fff;color:#7b8794;border-radius:6px;padding:10px 11px;font-size:11px;margin:7px 0}.form-submit{display:block;text-align:center;background:var(--gold);color:#15283d;border-radius:7px;padding:11px;font-weight:900;font-size:11px;margin-top:9px}
.how{padding-top:48px}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.step{position:relative;padding:4px 25px 8px 50px;min-height:140px}.step>span{position:absolute;left:0;top:0;width:31px;height:31px;border-radius:50%;background:var(--gold);display:grid;place-items:center;font-weight:900}.step-icon{margin-bottom:8px}.step-icon svg{width:28px;height:28px}.step h3{font-size:14px;line-height:1.2;margin:0 0 7px}.step p{font-size:11px;color:var(--muted);margin:0}.reviews{background:#f5f8fb;padding-top:45px;padding-bottom:38px}.review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.review-grid article{background:#fff;border:1px solid #e7edf2;border-radius:12px;padding:18px 20px;box-shadow:0 4px 15px rgba(10,42,70,.04)}.stars{color:#d9a43a;letter-spacing:2px;font-size:13px}.review-grid p{font-size:12px;line-height:1.45;min-height:58px}.review-grid strong{font-size:11px}.partners{text-align:center;margin-top:28px}.partners>span{display:block;color:var(--muted);font-size:10px;margin-bottom:12px}.partners>div{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;color:#49657e;font-size:15px}.partners b:nth-child(4){color:#bd2e38}.partners b:nth-child(5){color:#a63a3a}.partners b:nth-child(7){color:#6330a0}
.contact-strip{background:linear-gradient(110deg,#061f3a,#0b3965);color:#fff}.contact-strip-inner{min-height:112px;display:grid;grid-template-columns:1.3fr .7fr 1fr auto;gap:28px;align-items:center}.contact-strip h2{font-size:21px;margin:0}.contact-strip p{margin:3px 0 0;color:#d2e1ee;font-size:12px}.contact-data a{font-weight:900;font-size:14px}.contact-data small{display:block;color:#c7d8e7;font-size:10px;margin-top:3px}
.site-footer{background:#fff;color:#65788d;padding:25px 0}.footer-inner{display:flex;justify-content:space-between;gap:20px;align-items:center;font-size:11px}.footer-brand{display:flex;align-items:center;gap:10px}.footer-brand img{width:42px;height:42px}.footer-nav{display:flex;gap:18px}.footer-nav a:hover{color:var(--gold)}
@media(max-width:1100px){.cards{grid-template-columns:repeat(4,1fr)}.about-grid{grid-template-columns:260px 1fr 300px}.hero-grid{grid-template-columns:1fr 1fr}.nav{gap:14px}}
@media(max-width:900px){.header-phone{display:none}.nav{display:none}.hero-grid{grid-template-columns:1fr}.hero-copy{padding:55px 0}.hero-art{min-height:330px}.cards{grid-template-columns:repeat(2,1fr)}.stats-grid{grid-template-columns:repeat(2,1fr)}.stat:nth-child(2){border-right:0}.about-grid{grid-template-columns:1fr 1fr}.quote-box{grid-column:1 / span 2;grid-row:auto}.quote-sign,.quote-mark{display:none}.steps{grid-template-columns:repeat(2,1fr)}.contact-strip-inner{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.cards,.stats-grid,.steps,.review-grid{grid-template-columns:1fr}.hero-art{min-height:270px}.hero-benefits{gap:14px}.about-grid{grid-template-columns:1fr}.about-photo{height:300px}.quote-box{grid-column:1}.contact-strip-inner{grid-template-columns:1fr;padding:25px 0}.footer-inner{flex-direction:column;text-align:center}.footer-nav{flex-wrap:wrap;justify-content:center}}


/* Aktualności: dynamiczne wpisy WordPressa */
.news{background:#f4f8fb;padding-top:76px;padding-bottom:82px}
.news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch}
.news-card{background:#fff;border:1px solid #e3ebf2;border-radius:16px;overflow:hidden;box-shadow:0 8px 28px rgba(8,45,85,.06);display:flex;flex-direction:column;min-width:0;transition:transform .2s,box-shadow .2s}
.news-card:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(8,45,85,.12)}
.news-image{height:190px;background:#e8eff5;display:flex;align-items:center;justify-content:center;overflow:hidden}
.news-image img{display:block;width:100%;height:100%;object-fit:cover}
.news-image-placeholder{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--navy)}
.news-image-placeholder svg{width:54px;height:54px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.news-card-body{padding:22px 23px 24px;display:flex;flex-direction:column;flex:1}
.news-card-body time{font-size:12px;color:var(--muted);font-weight:700;margin-bottom:8px}
.news-card-body h3{font-size:20px;line-height:1.3;margin:0 0 10px;color:var(--navy)}
.news-card-body h3 a:hover{color:#a97919}
.news-card-body p{font-size:14px;color:var(--muted);line-height:1.7;margin:0 0 18px}
.news-read{margin-top:auto;color:#a97919;font-weight:900;font-size:14px}
.news-read b{margin-left:5px}
.news-empty{grid-column:1/-1;border:1px dashed #c8d5e1;border-radius:16px;padding:34px;text-align:center;background:#fff}
.news-empty-icon{margin:0 auto 12px;width:48px;height:48px;color:var(--gold)}
.news-empty-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.news-empty h3{margin:0 0 8px;color:var(--navy);font-size:20px}
.news-empty p{max-width:620px;margin:0 auto;color:var(--muted);font-size:14px;line-height:1.7}
.news-all{text-align:center;margin-top:28px}
.btn-outline-dark{border-color:#c8d5e1;color:var(--navy);background:#fff}
.btn-outline-dark:hover{border-color:var(--gold);background:#fffaf0}
@media(max-width:850px){.news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.news-grid{grid-template-columns:1fr}.news-image{height:205px}.news{padding-top:56px;padding-bottom:60px}.news-empty{padding:26px 18px}}

/* Real Contact Form 7 fields in the quote panel */
.quote-form .wpcf7 form{margin:0}
.quote-form .wpcf7 p{margin:7px 0}
.quote-form .wpcf7 input[type="text"],.quote-form .wpcf7 input[type="email"],.quote-form .wpcf7 input[type="tel"],.quote-form .wpcf7 select,.quote-form .wpcf7 textarea{display:block;width:100%;box-sizing:border-box;background:#fff;color:#26394b;border:1px solid #e1e6eb;border-radius:7px;padding:12px;font:inherit;font-size:12px;min-height:44px;margin:0}
.quote-form .wpcf7 textarea{min-height:86px;resize:vertical}
.quote-form .wpcf7 input[type="submit"]{display:block;width:100%;box-sizing:border-box;background:var(--gold);color:#15283d;border:0;border-radius:7px;padding:13px 10px;font-weight:900;font-size:12px;cursor:pointer;margin-top:9px}
.quote-form .wpcf7 input[type="submit"]:hover{filter:brightness(1.04)}
.quote-form .wpcf7 .wpcf7-spinner{display:block;margin:8px auto}
.quote-form .wpcf7 .wpcf7-response-output{margin:12px 0 0;padding:10px;border-radius:6px;font-size:12px;color:#fff}
.quote-form .wpcf7 .wpcf7-not-valid-tip{font-size:11px;color:#ffd889}
.quote-form .wpcf7 label{font-size:12px;color:#fff}
.quote-form .wpcf7 .wpcf7-list-item{margin:0}
/* Dokumenty do pobrania */
body.page .entry-content a[href*=".pdf"],
body.page .entry-content a[href*="dokument"] {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    margin: 12px 0;
    background: #10243a;
    color: #ffffff !important;
    border: 1px solid #b99a5b;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    transition: background 0.2s ease;
}

body.page .entry-content a[href*=".pdf"]:hover,
body.page .entry-content a[href*="dokument"]:hover {
    background: #1c3854;
    color: #ffffff !important;
}
/* Przyciski kontaktu w sekcji hero */
.contact-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

#contact-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

#contact-options[hidden] {
  display: none;
}

#contact-options a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid #ddb64f;
  border-radius: 8px;
  background: #102b48;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: background .2s ease, color .2s ease;
}

#contact-options a:hover {
  background: #ddb64f;
  color: #102b48 !important;
}
.contact-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}

.contact-choice > button {
  display: inline-flex;
  flex: 0 0 auto;
  width: auto;
  margin: 0;
}

#contact-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  width: auto;
}

#contact-options[hidden] {
  display: none !important;
}
/* Stabilny układ przycisku kontaktowego */
.hero-actions {
  align-items: flex-start;
}

.contact-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  flex: 0 0 auto;
}

.contact-choice > button {
  flex: 0 0 auto;
  margin: 0;
}

#contact-options {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
}

#contact-options[hidden] {
  display: none !important;
}

 /* Przyciski kontaktu */
#contact-options[hidden] {
  display: none !important;
}

/* Menu mobilne */
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #c9a45c;
  font-size: 30px;
  cursor: pointer;
  padding: 5px 10px;
  line-height: 1;
}

@media (max-width: 900px) {
  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    flex-shrink: 0;
  }

  .header-inner .nav {
    display: none !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex: 0 0 100%;
    width: 100%;
    padding: 10px 0;
    margin: 0;
    background: #fff;
    order: 3;
  }

  .header-inner .nav.nav-open {
    display: flex !important;
  }

  .header-inner .nav a {
    display: block;
    padding: 12px 15px;
    color: #082d55;
  }

  .header-inner .nav a:hover {
    background: #f4f8fb;
  }
}
.cards .card {
  display: flex;
  flex-direction: column;
}

.cards .card a {
  margin-top: auto;
  align-self: flex-start;
}
/* ==========================================
   LOGOTYPY TOWARZYSTW UBEZPIECZENIOWYCH
   Wspólne pola, wyśrodkowanie i proporcje
   ========================================== */

.jb-logo-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 170px !important;
    width: 170px !important;
    min-width: 170px !important;
    height: 100px !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

/* Wszystkie logotypy mają wspólne pole */
.jb-logo-item img {
    display: block !important;
    width: 145px !important;
    height: 65px !important;
    max-width: 100% !important;
    max-height: 65px !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 auto !important;
    transform: none !important;
}

/* Tekst zastępczy, gdy grafika się nie załaduje */
.jb-logo-item .jb-brand-name {
    max-width: 145px !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    text-align: center !important;
}



/* Mniejsze ekrany */
@media (max-width: 600px) {
    .jb-logo-item {
        flex-basis: 145px !important;
        width: 145px !important;
        min-width: 145px !important;
        height: 85px !important;
        padding: 8px !important;
    }

    .jb-logo-item img {
        width: 125px !important;
        height: 55px !important;
        max-width: 100% !important;
        max-height: 55px !important;
    }
}
/* OPTYCZNE WYRÓWNANIE LOGOTYPÓW */

.jb-logo-item img {
    width: 145px !important;
    height: 60px !important;
    max-width: 145px !important;
    max-height: 60px !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
}

/* Zmniejszamy dominujące logotypy */
.jb-logo-item img[src*="hdi"],
.jb-logo-item img[src*="tuz"] {
    width: 115px !important;
    height: 50px !important;
}

/* Powiększamy optycznie Wiener */
.jb-logo-item img[src*="wiener"] {
    width: 170px !important;
    height: 70px !important;
    max-width: 170px !important;
    max-height: 70px !important;
}

/* Generali – czytelne, ale bez dominowania */
.jb-logo-item img[src*="generali"] {
    width: 150px !important;
    height: 60px !important;
    max-width: 150px !important;
    max-height: 60px !important;
}
/* Indywidualne dopasowanie wielkości logotypów */

/* Wiener – mocniejsze powiększenie */
.jb-logo-item img[src*="wiener.png"] {
    width: 200px !important;
    height: 80px !important;
    max-width: 200px !important;
    max-height: 80px !important;
    object-fit: contain !important;
}

/* Link4 – delikatne powiększenie */
.jb-logo-item img[src*="link4"] {
    width: 155px !important;
    height: 65px !important;
    max-width: 155px !important;
    max-height: 65px !important;
    object-fit: contain !important;
}

/* Balcia – zmniejszenie */
.jb-logo-item img[src*="balcia"] {
    width: 120px !important;
    height: 50px !important;
    max-width: 120px !important;
    max-height: 50px !important;
    object-fit: contain !important;
}

/* PRU – zmniejszenie */
.jb-logo-item img[src*="pru"] {
    width: 115px !important;
    height: 48px !important;
    max-width: 115px !important;
    max-height: 48px !important;
    object-fit: contain !important;
}

/* HDI – zmniejszenie */
.jb-logo-item img[src*="hdi"] {
    width: 100px !important;
    height: 45px !important;
    max-width: 100px !important;
    max-height: 45px !important;
    object-fit: contain !important;
}
/* Dalsze dopasowanie wielkości logotypów */

/* Wiener – mocniejsze powiększenie */
.jb-logo-item img[src*="wiener"] {
    width: 230px !important;
    height: 90px !important;
    max-width: 230px !important;
    max-height: 90px !important;
    object-fit: contain !important;
}

/* HDI – jeszcze trochę mniejsze */
.jb-logo-item img[src*="hdi"] {
    width: 90px !important;
    height: 40px !important;
    max-width: 90px !important;
    max-height: 40px !important;
    object-fit: contain !important;
}

/* Defend – powiększenie */
.jb-logo-item img[src*="defend"] {
    width: 155px !important;
    height: 65px !important;
    max-width: 155px !important;
    max-height: 65px !important;
    object-fit: contain !important;
}

/* TUZ – pomniejszenie */
.jb-logo-item img[src*="tuz"] {
    width: 100px !important;
    height: 42px !important;
    max-width: 100px !important;
    max-height: 42px !important;
    object-fit: contain !important;
}

/* Trasti – pomniejszenie */
.jb-logo-item img[src*="trasti"] {
    width: 110px !important;
    height: 45px !important;
    max-width: 110px !important;
    max-height: 45px !important;
    object-fit: contain !important;
}
/* Wiener – jeszcze większe logo */
.jb-logo-item img[src*="wiener"] {
    width: 260px !important;
    height: 95px !important;
    max-width: 260px !important;
    max-height: 95px !important;
    object-fit: contain !important;
}
/* Wiener – większe logo */
.jb-logo-item img[src*="wiener"] {
    width: 290px !important;
    height: 100px !important;
    max-width: 290px !important;
    max-height: 100px !important;
    object-fit: contain !important;
}
/* InterRisk – mniejsze logo */
.jb-logo-item img[src*="interrisk"] {
    width: 120px !important;
    height: 50px !important;
    max-width: 120px !important;
    max-height: 50px !important;
    object-fit: contain !important;
}
/* Aktualności — ukrycie zdjęć */
.news-grid img,
.news-item img,
.news-card img,
.news-image,
.post-thumbnail,
.wp-post-image,
.entry-thumbnail {
display: none !important;
}