/* =================================
   PYTEK.NET.PL — MODERN TECH THEME
   Bootstrap 5 + Inter + Poppins
================================= */

:root{
  --pytek-navy:#071b35;
  --pytek-navy-2:#0d2d55;
  --pytek-blue:#087ed8;
  --pytek-blue-dark:#0667b5;
  --pytek-cyan:#16bce5;
  --pytek-bg:#f5f9fd;
  --pytek-surface:#ffffff;
  --pytek-border:#dceaf5;
  --pytek-text:#19324d;
  --pytek-muted:#6e8295;
  --pytek-shadow:0 12px 32px rgba(7,27,53,.08);
  --pytek-shadow-soft:0 6px 20px rgba(7,27,53,.06);

  --radius:12px;
  --radius-lg:18px;
}

/* =================================
   GLOBAL
================================= */

html{
  scroll-behavior:smooth;
}

body{
  min-height:100vh;
  font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color:var(--pytek-text);
  font-size:16px;
  line-height:1.65;
  background:
    radial-gradient(circle at 92% 4%, rgba(22,188,229,.10), transparent 25rem),
    linear-gradient(180deg,#fbfdff 0%,var(--pytek-bg) 100%);
}

::selection{
  background:rgba(8,126,216,.18);
  color:var(--pytek-navy);
}

.container{
  max-width:1100px;
}

.site-main{
  min-height:55vh;
}

h1,h2,h3,h4,h5,h6{
  font-family:'Poppins',sans-serif;
  color:var(--pytek-navy);
  font-weight:600;
  letter-spacing:-.015em;
}

h1{font-size:2.2rem;}
h2{font-size:1.6rem;}
h3{font-size:1.3rem;}

p{
  margin-bottom:1rem;
}

a{
  color:var(--pytek-blue);
  text-decoration-color:rgba(8,126,216,.35);
  text-underline-offset:3px;
  transition:color .2s ease,text-decoration-color .2s ease;
}

a:hover{
  color:var(--pytek-blue-dark);
  text-decoration-color:currentColor;
}

.text-muted{
  color:var(--pytek-muted) !important;
}

/* =================================
   NAVBAR
================================= */

.pytek-navbar{
  background:rgba(255,255,255,.94);
  border-bottom:1px solid rgba(220,234,245,.95);
  box-shadow:0 4px 24px rgba(7,27,53,.055);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.navbar-brand{
  font-family:'Poppins',sans-serif;
  font-weight:600;
}

.site-logo{
  display:block;
  height:62px;
  width:auto;
  max-width:310px;
  object-fit:contain;
}

.brand-fallback{
  font-size:1.65rem;
  font-weight:700;
  color:var(--pytek-navy);
  letter-spacing:-.04em;
}

.brand-fallback span{
  color:var(--pytek-blue);
}

.pytek-navbar .nav-link{
  position:relative;
  display:flex;
  align-items:center;
  gap:.45rem;
  margin:0 .1rem;
  padding:.72rem .85rem !important;
  border-radius:11px;
  color:var(--pytek-navy);
  font-size:.94rem;
  font-weight:500;
  text-decoration:none;
  transition:color .2s ease,background-color .2s ease,transform .2s ease;
}

.pytek-navbar .nav-link i{
  color:var(--pytek-blue);
  font-size:1rem;
  transition:transform .2s ease,color .2s ease;
}

.pytek-navbar .nav-link:hover,
.pytek-navbar .nav-link:focus{
  color:var(--pytek-blue-dark);
  background:rgba(8,126,216,.075);
  transform:translateY(-1px);
}

.pytek-navbar .nav-link:hover i,
.pytek-navbar .nav-link:focus i{
  color:var(--pytek-cyan);
  transform:translateY(-1px);
}

.pytek-navbar .nav-link::after{
  content:'';
  position:absolute;
  left:.85rem;
  right:.85rem;
  bottom:.35rem;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--pytek-blue),var(--pytek-cyan));
  transform:scaleX(0);
  transform-origin:center;
  transition:transform .2s ease;
}

.pytek-navbar .nav-link:hover::after,
.pytek-navbar .nav-link:focus::after{
  transform:scaleX(1);
}

.navbar-toggler{
  border:1px solid var(--pytek-border);
  border-radius:11px;
  padding:.45rem .6rem;
}

.navbar-toggler:focus{
  box-shadow:0 0 0 .2rem rgba(8,126,216,.12);
}

/* =================================
   CAROUSEL
================================= */

.carousel{
  overflow:hidden;
  border-radius:var(--radius-lg);
  box-shadow:var(--pytek-shadow-soft);
}

.carousel img{
  height:420px;
  object-fit:cover;
}

.carousel-caption{
  padding:1rem 1.25rem;
  border-radius:14px;
  background:rgba(7,27,53,.58);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

.carousel-caption h5,
.carousel-caption p{
  color:#fff;
}

/* =================================
   POST CARDS
================================= */

.card{
  height:100%;
  border:1px solid rgba(220,234,245,.95);
  border-radius:var(--radius-lg);
  background:rgba(255,255,255,.98);
  overflow:hidden;
  box-shadow:0 4px 16px rgba(7,27,53,.035);
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}

.card:hover{
  transform:translateY(-5px);
  border-color:rgba(8,126,216,.18);
  box-shadow:var(--pytek-shadow);
}

.card-img-top{
  height:220px;
  object-fit:cover;
}

.card-body{
  padding:1.35rem;
}

.card-title{
  font-size:1.1rem;
  line-height:1.4;
}

.card-title a{
  color:var(--pytek-navy);
  text-decoration:none;
}

.card-title a:hover{
  color:var(--pytek-blue);
}

.card-text{
  font-size:.95rem;
  color:var(--pytek-muted);
}

/* =================================
   ARTICLE LAYOUT + HEADER
================================= */

.article-layout{
  max-width:820px;
  margin-left:auto;
  margin-right:auto;
}

.article-header{
  margin-bottom:2rem;
}

.article-layout h1,
.article-header h1{
  font-size:clamp(2rem,5vw,2.65rem);
  line-height:1.15;
  letter-spacing:-.025em;
  margin-bottom:.8rem;
}

.article-layout .lead,
.article-lead{
  max-width:760px;
  margin-bottom:1.5rem;
  color:var(--pytek-muted) !important;
  font-size:1.32rem;
  line-height:1.65;
}

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

.article-content{
  color:#263b50;
  font-size:1.12rem;
  line-height:1.85;
}

.article-content p{
  margin-bottom:1.4rem;
}

.article-content h2{
  margin-top:2.6rem;
  margin-bottom:.85rem;
  font-size:1.75rem;
}

.article-content h3{
  margin-top:2rem;
  margin-bottom:.55rem;
  font-size:1.4rem;
}

.article-content ul,
.article-content ol{
  padding-left:1.55rem;
  margin-bottom:1.4rem;
}

.article-content li{
  margin-bottom:.48rem;
}

.article-content ul li::marker{
  color:var(--pytek-blue);
}

.article-content ol li::marker{
  color:var(--pytek-blue-dark);
  font-weight:700;
}

.article-content blockquote{
  position:relative;
  margin:2rem 0;
  padding:1rem 1.25rem 1rem 1.35rem;
  border-left:4px solid var(--pytek-blue);
  border-radius:0 12px 12px 0;
  background:linear-gradient(90deg,rgba(8,126,216,.075),rgba(22,188,229,.025));
  color:#42586e;
  font-style:italic;
}

.article-content img{
  max-width:100%;
  height:auto;
  margin:2rem 0;
  border-radius:14px;
  box-shadow:var(--pytek-shadow-soft);
}

.article-content figure{
  margin:1.7rem 0;
}

.article-content figcaption{
  margin-top:-1rem;
  color:var(--pytek-muted);
  font-size:.9rem;
  text-align:center;
}

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

.btn{
  border-radius:999px;
  font-weight:600;
  transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease,border-color .2s ease;
}

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

.btn-primary{
  border-color:var(--pytek-blue);
  background:linear-gradient(135deg,var(--pytek-blue),#086ac5);
  box-shadow:0 5px 15px rgba(8,126,216,.18);
}

.btn-primary:hover,
.btn-primary:focus{
  border-color:var(--pytek-blue-dark);
  background:linear-gradient(135deg,#0873c7,#0559a7);
  box-shadow:0 7px 18px rgba(8,126,216,.24);
}

.btn-outline-primary{
  padding:6px 14px;
  color:var(--pytek-blue);
  border-color:rgba(8,126,216,.5);
}

.btn-outline-primary:hover{
  border-color:var(--pytek-blue);
  background:var(--pytek-blue);
}

/* =================================
   FORMS
================================= */

.form-control,
.form-select{
  border-color:var(--pytek-border);
  border-radius:12px;
  background:#fff;
}

.form-control:focus,
.form-select:focus{
  border-color:var(--pytek-blue);
  box-shadow:0 0 0 .2rem rgba(8,126,216,.10);
}

.form-label{
  color:var(--pytek-navy);
  font-weight:600;
}

/* =================================
   BADGES
================================= */

.badge{
  padding:.45em .72em;
  border-radius:999px;
  font-weight:500;
}

.bg-primary,
.text-bg-primary{
  background-color:var(--pytek-blue) !important;
}

/* =================================
   TABLES / ALERTS
================================= */

.table{
  --bs-table-border-color:var(--pytek-border);
}

.alert{
  border-radius:14px;
  border-width:1px;
}

/* =================================
   FOOTER
================================= */

.pytek-footer{
  position:relative;
  color:var(--pytek-muted);
  font-size:.9rem;
  background:rgba(255,255,255,.94);
  border-top:1px solid var(--pytek-border);
}

.pytek-footer::before{
  content:'';
  position:absolute;
  top:-1px;
  left:0;
  right:0;
  height:2px;
  background:linear-gradient(90deg,transparent,var(--pytek-cyan),var(--pytek-blue),transparent);
  opacity:.5;
}

.pytek-footer strong{
  color:var(--pytek-navy);
}

.footer-copy,
.footer-powered{
  margin:0;
}

.footer-powered{
  display:flex;
  align-items:center;
  gap:.4rem;
}

.footer-powered i{
  color:var(--pytek-blue);
  font-size:1rem;
}

.footer-dot{
  margin:0 .35rem;
  color:#b8c8d7;
}

/* =================================
   COOKIE BANNER
================================= */

#cookieBanner{
  position:fixed;
  right:20px;
  bottom:20px;
  left:20px;
  z-index:9999;
  display:flex;
  justify-content:center;
  pointer-events:none;
}

.cookie-box{
  width:min(100%,560px);
  padding:18px 20px;
  border:1px solid var(--pytek-border);
  border-radius:16px;
  background:rgba(255,255,255,.97);
  box-shadow:0 16px 45px rgba(7,27,53,.16);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  display:flex;
  flex-direction:column;
  gap:12px;
  color:var(--pytek-text);
  font-size:14px;
  pointer-events:auto;
}

.cookie-text a{
  color:var(--pytek-blue);
  font-weight:600;
  text-decoration:none;
}

.cookie-text a:hover{
  text-decoration:underline;
}

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

.cookie-buttons button{
  border:none;
  padding:7px 15px;
  border-radius:999px;
  cursor:pointer;
  font-weight:600;
  transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease;
}

.cookie-buttons button:hover{
  transform:translateY(-1px);
}

#cookieAccept{
  color:#fff;
  background:linear-gradient(135deg,var(--pytek-blue),var(--pytek-blue-dark));
  box-shadow:0 5px 14px rgba(8,126,216,.20);
}

#cookieSettings{
  color:var(--pytek-navy);
  background:#edf4fa;
}

#cookieSettings:hover{
  background:#e3eef7;
}

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

@media (max-width:991.98px){
  .site-logo{
    height:50px;
    max-width:240px;
  }

  .pytek-navbar .navbar-collapse{
    padding-top:.75rem;
    padding-bottom:.35rem;
  }

  .pytek-navbar .nav-link{
    margin-bottom:.2rem;
    padding:.72rem .8rem !important;
  }

  .pytek-navbar .nav-link::after{
    display:none;
  }
}

@media (max-width:767.98px){
  body{
    font-size:15px;
  }

  .carousel img{
    height:300px;
  }

  .article-content{
    font-size:1.05rem;
    line-height:1.78;
  }

  .article-layout .lead,
  .article-lead{
    font-size:1.15rem;
  }

  .footer-dot{
    display:none;
  }
}

@media (max-width:575.98px){
  .site-logo{
    height:44px;
    max-width:205px;
  }

  .carousel img{
    height:240px;
  }

  #cookieBanner{
    right:12px;
    bottom:12px;
    left:12px;
  }

  .cookie-box{
    padding:16px;
  }

  .cookie-buttons{
    flex-direction:column;
  }

  .cookie-buttons button{
    width:100%;
  }
}
