/* =========================================================
   PROFIT PORT / RWD
   Desktop first. Każdy blok to górna granica przedziału:
     1381-1690 -> 1690 | 1201-1380 -> 1380 | 992-1200 -> 1200
     0-991 -> 991 (baza) | 577-768 -> 768 | 341-576 -> 576 | 0-340 -> 340
   ========================================================= */

/* ================= 1381-1690 ================= */
@media (max-width:1690px) {
  .container{padding-inline:40px}

  .header-inner{gap:28px}
  .logo img{max-width:220px}
  .main-nav{gap:26px;margin-left:12px}
  .main-nav ul{gap:26px}
  .main-nav a{font-size:15px}

  .header-contact{gap:18px}
  .contact-item{font-size:14px}
  .contact-icon{width:36px;height:36px}
  .header-fb{width:38px;height:38px}
  .header-contact .btn-green{padding:13px 22px;font-size:14.5px}

  .hero-inner{padding:150px 0 80px}
  .hero h1{font-size:46px}

  .service,.portfolio,.reco,.cta{padding:96px 0}
  .service-head h2{font-size:46px}
  .portfolio-head h2{font-size:44px}
  .reco-head h2,.reco-google .big{font-size:40px}
  .cta-info h2{font-size:38px}

  .portfolio-grid{grid-template-columns:repeat(4,1fr)}

  .page-title{padding:150px 0 62px}
  .page-title h1{font-size:42px}
}

/* ================= 1201-1380 ================= */
@media (max-width:1380px) {
  .container{padding-inline:32px}

  .header-inner{gap:22px;height:92px}
  .main-nav{gap:22px;margin-left:8px}
  .main-nav ul{gap:22px}
  .main-nav a{font-size:15px;white-space:nowrap}
  .logo img{max-width:200px}

  .header-contact{gap:14px}
  /* font-size:0 chowa sam tekst linku, ikona dostaje rozmiar z powrotem */
  .header-contact .contact-item{gap:0;font-size:0}
  .header-contact .contact-item .contact-icon{font-size:15px}
  .contact-icon{width:36px;height:36px}
  .header-fb{width:36px;height:36px}
  .header-contact .btn-green{padding:12px 20px;font-size:14px;white-space:nowrap}

  .hero-inner{padding:140px 0 72px}
  .hero h1{font-size:42px}
  .hero p{font-size:18px;margin-bottom:32px}

  .service,.portfolio,.reco,.cta{padding:84px 0}
  .service-head{margin-bottom:48px}
  .service-head h2{font-size:42px}
  .portfolio-head{margin-bottom:48px}
  .portfolio-head h2{font-size:40px}
  .reco-head h2,.reco-google .big{font-size:36px}
  .cta-box{padding:52px}
  .cta-info h2{font-size:34px}

  .page-title{padding:140px 0 56px}
  .page-title h1{font-size:38px}
  .page-wrapper{padding:64px 0 84px}
  .entry-content h2{font-size:30px}
  .entry-content h3{font-size:24px}
}

/* ================= 992-1200 ================= */
@media (max-width:1200px) {
  .header-inner{gap:14px;height:86px}
  .logo{height:38px}
  .logo img{max-width:180px}

  .main-nav{gap:16px;margin-left:0}
  .main-nav ul{gap:16px}
  .main-nav a{font-size:14px}

  .header-contact{gap:10px}
  .contact-icon{width:34px;height:34px}
  .header-fb{width:34px;height:34px}
  .header-contact .btn-green{padding:10px 16px;font-size:13.5px}

  .btn{padding:14px 24px;font-size:15px}

  .hero-inner{padding:130px 0 64px}
  .hero h1{font-size:38px}

  .service,.portfolio,.reco,.cta{padding:72px 0}
  .service-grid{grid-template-columns:repeat(2,1fr)}
  .service-head{grid-template-columns:1fr;margin-bottom:40px}
  .service-head .head-cta{justify-self:start}
  .portfolio-grid{grid-template-columns:repeat(3,1fr)}
  .search-grid{grid-template-columns:repeat(2,1fr)}
  .cta-box{grid-template-columns:1fr;gap:36px;padding:44px}
  .reco-grid{grid-template-columns:repeat(2,1fr)}
  .reco-google{grid-column:1 / -1}
  .partners-row{grid-template-columns:repeat(4,1fr)}
  .footer-main{grid-template-columns:1.5fr 1.3fr 1fr 1fr;gap:28px}
  .footer-social{grid-column:1 / -1;flex-direction:row;justify-content:center;gap:20px;padding-top:8px}
  .footer-contact{grid-template-columns:1fr}

  .page-title{padding:128px 0 50px}
  .page-title h1{font-size:34px}
  .page-wrapper{padding:56px 0 72px}

  .entry-content .wp-block-gallery,
  .entry-content .wp-block-gallery.has-nested-images,
  .entry-content .wp-block-gallery.columns-3,
  .entry-content .wp-block-gallery.columns-4,
  .entry-content .wp-block-gallery.columns-5,
  .entry-content .wp-block-gallery.columns-6{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ================= 0-991 (baza mobilna) ================= */
@media (max-width:991px) {
  .container{padding-inline:24px}

  .header-inner{height:74px;gap:16px}
  .logo{height:38px}
  .logo img{max-width:170px}
  .main-nav,.header-contact{display:none}
  .nav-toggle{display:grid;width:44px;height:44px}

  .btn{padding:13px 22px;font-size:15px}
  .eyebrow{font-size:13px;letter-spacing:2px;margin-bottom:14px}

  .hero-inner{padding:112px 0 56px}
  .hero h1{font-size:34px;letter-spacing:-.5px;margin-bottom:18px}
  .hero p{font-size:17px;margin-bottom:28px}
  .hero-cta{flex-wrap:wrap;gap:12px}
  .hero-scroll{display:none}

  .service,.portfolio,.reco,.cta{padding:60px 0}
  .partners{padding:48px 0}

  .service-head{margin-bottom:32px;gap:20px}
  .service-head h2{font-size:32px}
  .service-head p{font-size:16px;margin-top:16px}
  .service-card{padding:28px 24px 24px}
  .sc-icon{font-size:40px}

  .portfolio-head{margin-bottom:32px}
  .portfolio-head h2{font-size:30px}
  .portfolio-grid{grid-template-columns:repeat(2,1fr);gap:16px}
  .search-grid{grid-template-columns:repeat(2,1fr);gap:18px}

  .cta-box{padding:32px 24px;gap:28px}
  .cta-info h2{font-size:28px}
  .cta-form{padding:24px}
  .form-row,.form-row-3{grid-template-columns:1fr}

  .reco-head h2,.reco-google .big{font-size:30px}
  .reco-grid{grid-template-columns:repeat(2,1fr)}
  .reco-google{padding:26px 22px}
  .reco-card{padding:22px 20px}
  .google-badge{flex-wrap:wrap;gap:16px;padding:14px 18px;margin-bottom:24px}

  .partners-row{grid-template-columns:repeat(3,1fr)}

  .google-badge .g-logo{width:34px;height:34px}
  .gb-score b{font-size:19px}
  .gb-sep{height:34px}

  .footer-social{flex-direction:row;justify-content:center;gap:22px}
  .footer-social svg{width:26px;height:26px}

  .mn-links a{font-size:17px;padding:13px 0}

  .footer{padding:52px 0 0}
  .footer-main{grid-template-columns:1fr;padding:36px 0}
  .footer-bottom{flex-direction:column;text-align:center;gap:12px;padding:20px 0}

  .page-title{padding:104px 0 40px}
  .page-title h1{font-size:30px}
  .page-title>.container{flex-direction:column;align-items:flex-start;gap:12px}
  .page-wrapper{padding:44px 0 60px}

  .entry-content{font-size:16px}
  .entry-content h2{font-size:26px}
  .entry-content h3{font-size:21px}

  .archive-item{grid-template-columns:1fr;gap:14px;padding:16px}
  .archive-item-thumb img{aspect-ratio:16/9}
  .archive-item-title{font-size:20px}
  .search-card-body{padding:20px}
  .search-card-title{font-size:18px}
}

/* ================= 577-768 ================= */
@media (max-width:768px) {
  .container{padding-inline:20px}

  .btn{padding:12px 20px;font-size:14px;gap:8px}

  .hero-inner{padding:100px 0 48px}
  .hero h1{font-size:30px}
  .hero p{font-size:16px;margin-bottom:24px}

  .service,.portfolio,.reco,.cta{padding:52px 0}
  .service-grid{grid-template-columns:1fr}
  .service-head h2{font-size:27px}
  .portfolio-head h2{font-size:27px}
  .portfolio-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .search-grid{grid-template-columns:1fr}

  .cta-info h2{font-size:24px}
  .reco-head h2,.reco-google .big{font-size:26px}
  .reco-grid{grid-template-columns:1fr}
  .partners-row{grid-template-columns:repeat(2,1fr)}

  .page-title{padding:96px 0 34px}
  .page-title h1{font-size:26px}
  .page-wrapper{padding:38px 0 52px}
  .entry-content h2{font-size:24px}
  .entry-content h3{font-size:19px}
}

/* ================= 341-576 ================= */
@media (max-width:576px) {
  .container{padding-inline:16px}

  .header-inner{height:66px}
  .logo{height:34px}
  .logo img{max-width:150px}

  .hero-inner{padding:88px 0 40px}
  .hero h1{font-size:26px}
  .hero p{font-size:15px}
  .hero-cta{flex-direction:column;align-items:stretch}
  .hero-cta .btn{width:100%;justify-content:center}

  .google-badge{display:flex;flex-wrap:wrap;gap:10px 14px;padding:12px 14px;margin-bottom:20px;width:100%}
  .google-badge .g-logo{width:30px;height:30px}
  .gb-rate .label{font-size:12px}
  .gb-score b{font-size:17px}
  .stars{font-size:13px}
  .gb-sep{display:none}
  .gb-meta{font-size:12px;line-height:1.35;flex-basis:100%}

  .footer-social{gap:18px}

  .service,.portfolio,.reco,.cta{padding:44px 0}
  .service-head h2,.portfolio-head h2{font-size:24px}
  .service-card{padding:24px 20px 20px}
  .portfolio-grid,.search-grid{grid-template-columns:1fr}

  .cta-box{padding:24px 18px}
  .cta-form{padding:18px}
  .cta-info h2{font-size:22px}

  .reco-head h2,.reco-google .big{font-size:23px}

  .page-title{padding:88px 0 28px}
  .page-title h1{font-size:23px}
  .page-wrapper{padding:32px 0 44px}

  .entry-content{font-size:15px}
  .entry-content h2{font-size:21px}
  .entry-content h3{font-size:18px}

  .archive-item{padding:14px}
  .single-foot{margin-top:32px;padding-top:20px}

  .entry-content .wp-block-gallery,
  .entry-content .wp-block-gallery.has-nested-images,
  .entry-content .wp-block-gallery.columns-2,
  .entry-content .wp-block-gallery.columns-3,
  .entry-content .wp-block-gallery.columns-4,
  .entry-content .wp-block-gallery.columns-5,
  .entry-content .wp-block-gallery.columns-6{grid-template-columns:minmax(0,1fr)}

  .pp-lightbox{padding:16px}
  .pp-lb-prev,.pp-lb-next{width:44px;height:44px}
  .pp-lb-prev{left:10px}
  .pp-lb-next{right:10px}
}

/* ================= 0-340 ================= */
@media (max-width:340px) {
  .container{padding-inline:12px}

  .header-inner{height:60px}
  .logo{height:30px}
  .logo img{max-width:130px}
  .nav-toggle{width:40px;height:40px}

  .btn{padding:11px 16px;font-size:13px;width:100%;justify-content:center}

  .hero-inner{padding:78px 0 34px}
  .hero h1{font-size:22px}
  .hero p{font-size:14px}

  .service,.portfolio,.reco,.cta{padding:36px 0}
  .service-head h2,.portfolio-head h2{font-size:21px}
  .reco-head h2,.reco-google .big{font-size:20px}

  .page-title{padding:78px 0 24px}
  .page-title h1{font-size:20px}

  .entry-content h2{font-size:19px}
  .entry-content h3{font-size:17px}

  .google-badge{gap:8px 12px;padding:10px 12px}
  .google-badge .g-logo{width:26px;height:26px}
  .gb-score b{font-size:16px}
  .stars{font-size:12px}
  .gb-meta{font-size:11.5px}

  .mobile-nav{padding:18px 16px 28px}
  .mn-links a{font-size:16px;padding:11px 0}
  .mn-contact-item{font-size:14px}
}

/* ================= panel mobilny (0-991) ================= */
.mobile-nav{
  position:fixed;inset:0;width:100%;height:100%;z-index:120;
  background:linear-gradient(160deg,#0d152b 0%,var(--navy-600) 100%);
  padding:22px 24px 32px;
  transform:translateX(100%);
  transition:transform .32s ease;
  display:flex;flex-direction:column;
  overflow-y:auto;
  overscroll-behavior:contain;
}
.mobile-nav.open{transform:translateX(0)}

.mn-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px}
.mn-head .logo{height:40px}
.mn-head .logo img{max-width:180px;max-height:40px;object-fit:contain}

.mobile-nav-close{
  position:static;width:44px;height:44px;flex:none;border-radius:12px;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);
  cursor:pointer;display:grid;place-items:center;font-size:18px;color:#e7ecf5;
}

.mn-links{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;width:100%}
.mn-links li{width:100%;list-style:none;margin:0;padding:0}
.mn-links li::before,.mn-links li::marker{content:none}
.mn-links a{
  display:block;width:100%;color:#e7ecf5;font-weight:600;font-size:19px;
  padding:15px 0;border-bottom:1px solid rgba(255,255,255,.1);
}
.mn-links a:hover,.mn-links .current-menu-item>a{color:var(--green-lime)}

.mn-foot{margin-top:auto;padding-top:28px;display:flex;flex-direction:column;gap:14px}
.mn-contact-item{display:flex;align-items:center;gap:12px;color:#e7ecf5;font-weight:600;font-size:16px}
.mn-contact-item:hover{color:var(--green-lime)}
.mn-contact-item .contact-icon{width:40px;height:40px}
.mn-cta{justify-content:center;margin-top:6px}

.nav-backdrop{position:fixed;inset:0;background:rgba(6,10,22,.6);z-index:110;opacity:0;visibility:hidden;transition:opacity .3s ease}
.nav-backdrop.open{opacity:1;visibility:visible}
body.nav-lock{overflow:hidden}

@media (min-width:992px){
  .mobile-nav,.nav-backdrop{display:none}
}
