/* =====================================================
   GLOBAL FIX – box model
===================================================== */

.ptpl,
.ptpl *{
  box-sizing:border-box;
}

/* =====================================================
   BASE
===================================================== */
.ptpl{
  width:100%;
  margin:50px auto !important;
  font-family: 'Montserrat', sans-serif;
  color: #0d2344;
}

.ptpl__grid{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:26px;
  align-items:start;
}

/* =====================================================
   NAV
===================================================== */

.ptpl__nav{
  position:sticky;
  top:120px;
}

.ptpl__navlist{
  list-style:none;
  margin:0;
  padding:0;
  border-top:1px solid rgba(13,35,68,.1);
}

.ptpl__navitem{
  border-bottom:1px solid rgba(13,35,68,.1);
}

/* TAB (klikany w całości) */
.ptpl__navlink{
  position:relative;
  display:block;
  padding:16px 56px 16px 18px; /* miejsce na + / − */
  margin:10px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration:none;
  color: #0d2344;
  border-radius: 8px;
  transition: all .2s ease;
}

.ptpl__navlink:hover {
  background: rgba(13,35,68,.04);
  color: #0d2344;
}

/* =====================================================
   INFO BOX (Pod menu cennika)
===================================================== */
.ptpl__info-box {
  background: #f4f6f8;
  border: 1px solid rgba(13,35,68,.08);
  border-radius: 14px;
  padding: 24px 20px;
  margin-top: 24px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0,0,0,.02);
}

.ptpl__info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.ptpl__info-icon {
  width: 36px;
  height: 36px;
  background: #0d2344;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
}

.ptpl__info-title {
  font-family: 'Lora', serif;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  color: #0d2344;
  margin: 0;
  letter-spacing: -0.01em;
}

.ptpl__info-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(13,35,68,.75);
  margin: 0 0 10px 0;
  font-weight: 400;
}

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

/* =====================================================
   HELP BOX (Masz problem z wyborem?)
===================================================== */
.ptpl__help-box {
  background: #f4f6f8;
  border: 1px solid rgba(13,35,68,.08);
  border-radius: 14px;
  padding: 24px 20px;
  margin-top: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.02);
}

.ptpl__help-icon {
  width: 44px;
  height: 44px;
  background: #0d2344;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.ptpl__help-title {
  font-family: 'Lora', serif;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  color: #0d2344;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.ptpl__help-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(13,35,68,.75);
  margin: 0 0 16px 0;
  font-weight: 400;
}

.ptpl__help-phone {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0d2344;
  text-decoration: none;
  transition: opacity .2s ease;
}

.ptpl__help-phone:hover {
  opacity: 0.75;
  text-decoration: underline;
}

/* =====================================================
   PANEL / TABS
===================================================== */

.ptpl__tab{
  display:none;
}

.ptpl__tab.is-active{
  display:block;
}

.ptpl__section{
  margin-bottom:22px;
}

/* =====================================================
   CONTENT
===================================================== */

.ptpl__catdesc{
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  font-weight: 400;
  background:#f4f6f8;
  color: #0d2344;
  padding:16px 20px;
  border-radius:12px;
  margin-bottom:18px;
  border-left: 4px solid #0d2344;
}

.ptpl__card{
  background:#fff;
  border:1px solid rgba(13,35,68,.08);
  border-radius:14px;
  padding:20px;
  box-shadow:0 10px 30px rgba(0,0,0,.03);
  margin-bottom:16px;
}

.ptpl__rows{
  display:flex;
  flex-direction:column;
  gap:0;
}

.ptpl__row{
  padding:18px 12px;
  display:grid;
  grid-template-columns: 1fr auto;
  gap:20px;
  align-items:center;
  border-bottom:1px solid rgba(13,35,68,.06);
  transition: background .15s ease;
}

.ptpl__row:last-child {
  border-bottom: none;
}

.ptpl__row:hover{
  background:#f4f6f8;
}

.ptpl__item-title{
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: #0d2344;
  margin:0;
}

.ptpl__desc{
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0em;
  font-weight: 400;
  color: rgba(13,35,68,.7);
  margin-top: 6px;
}

.ptpl__price{
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: #0d2344;
  white-space:nowrap;
}

.ptpl__item-cta{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:6px;
  margin-left:0;
  font-size:13px;
  font-weight: 500;
  text-decoration:none;
  color:#0d2344;
  transition: opacity .15s ease;
}

.ptpl__item-cta:hover{
  opacity: 0.7;
  text-decoration:underline;
}

.icon-shortright:before{
  content:"\42";
}
.icon-shortright{
  margin-right:10px;
}

.ptpl__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 24px;
  border-radius:999px;
  font-weight:600;
  font-size: 15px;
  text-decoration:none;
  background:#0d2344;
  color:#fff;
  transition: background .2s ease, transform .2s ease;
}

.ptpl__btn:hover {
  background: #1b2d42;
}

.ptpl__children{
  padding-left:14px;
  border-left:2px solid rgba(13,35,68,.08);
  margin-top: 10px;
}

/* =====================================================
   SEARCH ACTIVE STATE (Ukrywanie zakładek podczas szukania)
===================================================== */
.ptpl.is-searching .ptpl__tab {
  display: none !important;
}

.ptpl.is-searching .ptpl__search-results {
  display: block !important;
}

/* =====================================================
   SEARCH
===================================================== */
.ptpl__section-title {
  text-align: center;
  font-family: 'Lora', serif;
  font-size: 32px;
  line-height: 1.3;
  color: #0d2344;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin-bottom: 24px;
}

.ptpl__search{
  margin-top:24px;
  position:relative;
}

.ptpl__search::before{
  content:"\4c";             /* IcoMoon search */
  font-family:"icomoon";       /* 🔴 MUSI być dokładnie ta nazwa */
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  font-size:16px;
  color:#888;
  pointer-events:none;            /* nie blokuje kliku */
}

.ptpl__search-input{
  width:100%;
  padding:14px 16px 14px 46px;
  border-radius:12px;
  border:1px solid rgba(13,35,68,.15);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: #0d2344;
  background: #fff;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.ptpl__search-input:focus {
  border-color: #0d2344;
  box-shadow: 0 0 0 3px rgba(13,35,68,.1);
}

.ptpl__search-results{
  width:100%;
}

.ptpl__search-loading,
.ptpl__empty{
  padding:20px 0;
  font-size:15px;
  text-align: center;
  color: rgba(13,35,68,.7);
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width:920px){

  .ptpl__grid{
    display: flex;
    flex-direction: column;
  }

  .ptpl__nav{
    position: relative;
    top: auto;
    order: 1; /* 1. Menu (wyszukiwarka + lista kategorii) */
    display: flex;
    flex-direction: column;
  }

  /* Rozdzielenie elementów wewnątrz aside, żeby bloki info poszły na sam dół */
  .ptpl__search {
    order: 1;
  }

  .ptpl__navlist {
    order: 2;
  }

  .ptpl__info-box,
  .ptpl__help-box {
    order: 3; /* Przenosi bloki informacyjne na sam dół aside (po menu) */
    margin-top: 24px;
    margin-bottom: 0;
  }

  .ptpl__panel {
    order: 2; /* 2. Pozycje cennika / Panel z wynikami */
    margin-top: 24px;
  }
}

/* =====================================================
   MOBILE (ACCORDION + TABS)
===================================================== */

@media (min-width:769px){
.ptpl__navlink.is-active{
  background: #0d2344;
  color: #fff;
  font-weight: 600;
}    
}
    
@media (max-width:768px){
.ptpl__row:hover {
background:none;    
}
.ptpl__row {
grid-template-columns: 1fr auto; 
gap: 12px;
}
.ptpl__navitem.is-open a.ptpl__navlink {
  background: #0d2344;
  color: #fff;
}    
.ptpl__price {
white-space: normal;    
font-size: 16px;
text-align: right;
}
.ptpl__section-title {
font-size: 24px;
text-align: center;
}
  /* --- TAB + / − (TYLKO WIZUALNE) --- */
.ptpl__section-head {
display:none;    
}
  .ptpl__navlink::after{
    content:"+";
    position:absolute;
    right:12px;
    top:50%;
    transform:translateY(-50%);
    width:32px;
    height:32px;
    border-radius:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    line-height:1;
    color:inherit;
    background: rgba(0,0,0,.04);
    pointer-events:none; /* 🔥 NIE PRZEJMUJE KLIKU */
  }

  .ptpl__navitem.is-open > .ptpl__navlink::after{
    content:"−";
  }

  /* --- MOBILE LAYOUT --- */

  .ptpl__panel{
    display:none;
  }

  .ptpl__navitem{
    position:relative;
    overflow:hidden;
    border-radius: 10px;
    margin-bottom: 8px;
  }

  .ptpl__mobile-content{
    display:none;
    margin:12px 0 20px;
    width:100%;
    max-width:100%;
    overflow:hidden;    
  }

  .ptpl__navitem.is-open .ptpl__mobile-content{
    display:block;
  }

  /* --- SEARCH MODE --- */

  .ptpl.is-searching .ptpl__navitem.is-open{
    display:none;
  }

  .ptpl.is-searching .ptpl__panel{
    display:block !important;
  }

  .ptpl.is-searching .ptpl__search-results{
    display:block;
  }
   /* 🔥 POKAŻ TREŚĆ TABÓW W MOBILE ACCORDION */
  .ptpl__mobile-content .ptpl__tab{
    display:block !important;
  }
 
}