/* Końcowa warstwa mobile. Nie zmienia widoku desktopowego. */
@media (max-width:767px) {
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  body{font-size:15px}
  #main-container,.site-main,.elementor,.elementor-section-wrap{max-width:100%;overflow:visible}
  .elementor-page:not(.home) .elementor{margin:0!important;transform:none!important}
  .elementor-page:not(.home) .elementor>.e-con:first-child>.e-con-inner>:nth-child(2){transform:none!important}
  .l360-wrap,.l360-page-content{box-sizing:border-box;width:calc(100% - 32px)!important;max-width:100%;margin-inline:auto!important}
  .l360-page-mark{display:none!important}
  h1,.l360-hero h1,.l360-offer-page h1,.l360-business-page h1,.l360-consumer-page h1,.l360-faq-page h1,.l360-compare-page h1,.l360-content-archive h1,.l360-content-single h1{font-size:34px!important;line-height:39px!important;letter-spacing:-.7px!important}
  h2,.l360-section h2{font-size:28px!important;line-height:34px!important;letter-spacing:-.4px!important}
  p,.l360-lead,.l360-audience-lead{max-width:100%;font-size:15px;line-height:23px}
  .l360-button,.elementor-button,button.l360-submit{max-width:100%;min-height:44px;padding:10px 18px;white-space:normal;text-align:center}

  /* Nagłówek i stopka */
  #header [data-row="middle"]{--height:64px!important}
  #header .site-logo-container img{max-width:172px!important;max-height:48px!important}
  #header .site-title,#header [class*="site-title"]{display:none!important}
  .l360-footer,.home .l360-footer,body.elementor-page:not(.home) .l360-footer,body:is(.page-id-84,.page-id-88,.page-id-119,.page-id-74,.page-id-121,.page-id-58).elementor-page:not(.home) .l360-footer{box-sizing:border-box;width:100%!important;height:auto!important;min-height:0!important;margin-top:64px!important;padding:48px 16px 24px!important;transform:none!important;overflow:visible!important}
  .l360-footer__grid,.home .l360-footer__grid{width:100%!important;grid-template-columns:1fr!important;gap:30px!important}
  .l360-footer__bottom,.home .l360-footer__bottom{height:auto!important;margin-top:32px;padding:20px 0}
  .l360-footer__bottom>.l360-wrap,.home .l360-footer__bottom>.l360-wrap{width:100%!important;height:auto!important;align-items:flex-start!important;flex-direction:column!important;gap:8px!important}
  .l360-footer__logo{max-width:140px}

  /* Strona główna — kasowanie historycznych sztywnych wymiarów. */
  .home .elementor>.e-con:first-child>.e-con-inner>:nth-child(n){box-sizing:border-box;width:100%!important;margin-left:0!important;transform:none!important}
  .home .l360-section,.home .l360-partner-section,.home .l360-finance-section,.home .l360-audience-section,.home .l360-opinions-section,.home .l360-cases-section,.home .l360-calculator-section,.home .l360-home-faq{box-sizing:border-box;width:100%!important;height:auto!important;min-height:0!important;padding:56px 16px!important;overflow:visible!important}
  .home .l360-hero{padding:40px 0 52px}
  .home .l360-hero__grid,.home .l360-grid--2,.home .l360-finance-grid,.home .l360-audience-copy,.home .l360-why-grid{grid-template-columns:1fr!important;gap:28px!important;height:auto!important;overflow:visible!important}
  .home .l360-media{order:2}
  .home .l360-partner-inner,.home .l360-audience-section>.l360-wrap,.home .l360-cases-section>.l360-wrap,.home .l360-home-faq__inner{box-sizing:border-box;width:100%!important;max-width:100%!important}
  .home .l360-partner-lead,.home .l360-partner-note,.home .l360-institution-marquee,.home .l360-partner-actions{width:100%!important}
  .home .l360-institution-marquee{height:78px;overflow:hidden}
  .home .l360-partner-actions,.home .l360-finance-actions,.home .l360-audience-actions,.home .l360-founder-actions,.home .l360-home-faq__actions{display:grid!important;grid-template-columns:1fr!important;gap:12px!important}
  .home .l360-partner-actions .l360-button,.home .l360-finance-actions .l360-button,.home .l360-audience-actions .l360-button,.home .l360-home-faq__actions .l360-button{width:100%!important}
  .home .l360-finance-cards,.home .l360-audience-grid,.home .l360-opinions-grid,.home .l360-cases-grid{height:auto!important;grid-template-columns:1fr!important;grid-template-rows:none!important;gap:16px!important}
  .home .l360-finance-cards article,.home .l360-cases-grid article{height:auto!important;min-height:190px}
  .home .l360-audience-copy{align-content:initial}
  .home .l360-audience-image{width:100%;height:auto!important;max-height:360px;object-fit:cover;border-radius:18px}
  .home .l360-compare-proto{height:auto!important;overflow-x:auto!important;border-radius:16px}
  .home .l360-compare-head,.home .l360-compare-row{min-width:620px}
  .home .l360-founder-section{box-sizing:border-box;width:100%!important;height:auto!important;min-height:690px;margin:0!important;border-radius:0;overflow:hidden}
  .home .l360-founder-copy{position:relative!important;left:auto!important;top:auto!important;box-sizing:border-box;width:100%!important;padding:48px 24px 320px!important}
  .home .l360-founder-copy h2{width:auto!important;font-size:30px!important;line-height:37px!important}
  .home .l360-founder-section>img{right:50%!important;bottom:0!important;width:auto!important;max-width:340px!important;height:320px!important;transform:translateX(50%);object-fit:contain}
  .home .l360-offer-cta{box-sizing:border-box;width:100%!important;height:auto!important;padding:40px 16px!important}
  .home .l360-offer-cta__box{width:100%;height:auto!important;min-height:0;align-items:stretch;flex-direction:column;padding:28px 22px}
  .home .l360-offer-cta .l360-button{width:100%;min-width:0}
  .home .l360-home-faq .l360-faq details,.home .l360-home-faq .l360-faq summary{height:auto!important;min-height:54px;overflow:visible!important}
  .home .l360-home-faq .l360-faq summary{padding:15px 0}
  .home .l360-form{box-sizing:border-box;width:100%!important;height:auto!important;min-height:0!important;padding:24px 20px 30px!important;overflow:hidden}

  /* Formularze na wszystkich stronach */
  .l360-form-grid,.page-id-66 .l360-form-grid,.page-id-70 .l360-form-grid{grid-template-columns:1fr!important;gap:14px!important}
  .l360-form-grid .l360-full,.page-id-66 .l360-form-grid .l360-full,.page-id-70 .l360-form-grid .l360-full{grid-column:auto!important}
  .l360-form .l360-consent{grid-template-columns:18px minmax(0,1fr)!important}
  .l360-form .l360-consent>span{font-size:12px;line-height:17px}
  .l360-form .l360-consent a{white-space:normal}

  /* Oferta, dla firm i konsumentów */
  .l360-offer-page,.l360-business-page,.l360-consumer-page,.l360-reference-form,.l360-reference-form--consumer{box-sizing:border-box;width:100%!important;height:auto!important;min-height:0!important;padding:48px 0!important;overflow:visible!important}
  .l360-offer-page>.l360-wrap{width:calc(100% - 32px)!important}
  .l360-offer-tabs{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important}
  .l360-offer-tabs a,.l360-offer-tabs button{position:static!important;width:100%;height:auto!important;min-height:42px;padding:8px 10px!important;text-align:center}
  .l360-offer-tabs a:last-child{grid-column:1/-1}
  .l360-offer-layout,.l360-offer-first,.l360-offer-rest,.l360-business-cards,.l360-consumer-cards{width:100%!important;height:auto!important;grid-template-columns:1fr!important;grid-template-rows:none!important;gap:14px!important}
  .l360-offer-layout>img{width:100%!important;height:auto!important;max-height:320px;object-fit:contain}
  .l360-offer-service,.l360-business-cards article,.l360-consumer-cards article{height:auto!important;min-height:155px!important;padding:22px!important}
  .l360-business-note,.l360-consumer-cta{height:auto!important;align-items:flex-start;flex-direction:column}
  .l360-reference-form>div,.l360-reference-form .l360-form,.l360-reference-form--consumer .l360-form{box-sizing:border-box;width:calc(100% - 32px)!important;height:auto!important;min-height:0!important}

  /* Flota360 i promocje */
  .l360-pills{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}
  .l360-pill{flex:none;white-space:nowrap}
  .l360-vehicle-grid,.l360-promo-grid{grid-template-columns:1fr!important;gap:18px!important}
  .l360-vehicle-card{padding:18px!important}
  .l360-vehicle-card__visual{aspect-ratio:16/10;margin:12px 0}
  .l360-promo-more{grid-column:auto!important;padding:28px 20px!important}

  /* Szczegóły samochodu */
  .single-l360_vehicle .l360-offer-detail{height:auto!important;min-height:0!important;padding:28px 0 64px!important;overflow:visible!important}
  .single-l360_vehicle .l360-offer-detail>.l360-wrap{width:calc(100% - 32px)!important;transform:none!important}
  .single-l360_vehicle .l360-offer-detail__grid{grid-template-columns:1fr!important;gap:28px!important;margin-top:18px}
  .single-l360_vehicle .l360-offer-gallery__main{box-sizing:border-box;width:100%!important;height:auto!important;min-height:260px!important;padding:16px}
  .single-l360_vehicle .l360-offer-gallery__main img{width:100%;height:auto!important;max-height:300px!important;transform:none!important}
  .single-l360_vehicle .l360-offer-summary{width:100%!important;transform:none!important}
  .single-l360_vehicle .l360-offer-title{align-items:flex-start;flex-direction:column;gap:8px}
  .single-l360_vehicle .l360-offer-summary h1{font-size:34px!important;line-height:40px!important}
  .single-l360_vehicle .l360-offer-actions{display:grid;grid-template-columns:1fr;gap:10px;margin-bottom:24px}
  .single-l360_vehicle .l360-offer-actions .l360-button,.single-l360_vehicle .l360-phone-link{box-sizing:border-box;width:100%;min-width:0}
  .single-l360_vehicle .l360-offer-params{grid-template-columns:minmax(0,1fr) auto;font-size:13px}
  .single-l360_vehicle .l360-offer-params dt,.single-l360_vehicle .l360-offer-params dd{padding:10px 0}
  .single-l360_vehicle .l360-offer-cta,.single-l360_vehicle .l360-offer-cta>div{align-items:stretch!important;flex-direction:column!important}
  .single-l360_vehicle .l360-offer-cta{margin-top:40px;padding:24px 20px}
  .single-l360_vehicle .l360-offer-cta .l360-button{width:100%}
  .single-l360_vehicle .l360-footer{margin-top:0!important}

  /* Wiedza, blog i FAQ */
  .l360-knowledge-page,.l360-faq-page,.l360-content-archive,.l360-content-single{box-sizing:border-box;width:100%!important;height:auto!important;min-height:0!important;padding:48px 0 64px!important;overflow:visible!important}
  .l360-knowledge-cards,.l360-content-grid{grid-template-columns:1fr!important;gap:16px!important}
  .l360-knowledge-cards>a{height:auto!important;min-height:135px}
  .l360-content-thumb{height:210px}
  .l360-content-archive h1,.l360-content-single h1{margin-top:12px}
  .l360-single-hero{max-height:360px;margin:22px 0;border-radius:14px}
  .l360-entry-content{margin-top:28px;font-size:16px;line-height:1.7}
  .l360-faq-page nav{display:flex;gap:8px;overflow-x:auto;padding-bottom:10px;flex-wrap:nowrap}
  .l360-faq-page nav a{flex:none}
  .l360-faq-group{scroll-margin-top:82px}
  .l360-faq-group h2{font-size:23px!important;line-height:30px!important}
  .l360-faq-group summary{box-sizing:border-box;height:auto!important;min-height:64px!important;padding:16px 0;font-size:15px!important;line-height:22px!important}

  /* O nas i Kontakt */
  .l360-about-page,.l360-about-form,.l360-contact-page,.l360-contact-grid,.l360-contact-left{box-sizing:border-box;width:100%!important;height:auto!important;min-height:0!important;overflow:visible!important}
  .l360-about-page,.l360-contact-page{padding:40px 0 56px!important}
  .l360-about-founder{height:auto!important;align-items:center;flex-direction:column;padding:24px!important;text-align:left}
  .l360-about-founder>img{width:160px;height:auto!important}
  .l360-about-form{padding:40px 0!important}
  .l360-about-form>div,.l360-about-form .l360-form{box-sizing:border-box;width:calc(100% - 32px)!important;height:auto!important;min-height:0!important}
  .l360-contact-grid{grid-template-columns:1fr!important;gap:24px!important;margin-top:32px!important}
  .l360-contact-data{height:auto!important;min-height:160px;padding:22px 150px 22px 20px!important}
  .l360-contact-data::after{right:18px;top:30px;width:110px;height:84px}
  .l360-contact-founder{display:grid!important;grid-template-columns:120px minmax(0,1fr)!important;height:auto!important;min-height:390px;overflow:hidden!important}
  .l360-contact-founder>img{position:static!important;width:120px!important;height:100%!important;min-height:390px;object-fit:cover}
  .l360-contact-person{position:static!important;padding:20px!important}
  .l360-contact-person>div{position:static!important;width:auto!important}
  .l360-contact-grid>.l360-form{box-sizing:border-box;width:100%!important;height:auto!important;min-height:0!important;padding:24px 20px 32px!important}

  /* Porównywarka */
  .l360-compare-page{box-sizing:border-box;width:100%!important;height:auto!important;min-height:0!important;padding:48px 0 72px!important;overflow:visible!important;background:#fff!important}
  .l360-compare-hero{grid-template-columns:1fr!important;gap:28px!important;min-height:0!important}
  .l360-compare-quick{padding:22px 18px}
  .l360-compare-actions{display:grid;grid-template-columns:1fr;gap:10px}
  .l360-compare-actions .l360-button{width:100%}
  .l360-compare-benefits,.l360-compare-cards,.l360-compare-steps,.l360-compare-checklist,.l360-compare-offer-types,.l360-compare-opinions{grid-template-columns:1fr!important;gap:14px!important}
  .l360-compare-benefits{margin:36px 0 56px}
  .l360-compare-page h2{margin-top:56px!important;font-size:28px!important;line-height:34px!important}
  .l360-compare-form{box-sizing:border-box;width:100%!important;margin-top:56px!important;padding:20px 0!important;background:none!important}
  .l360-detailed-form{box-sizing:border-box;width:100%!important;padding:22px 16px!important}
  .l360-detailed-form fieldset{grid-template-columns:1fr!important;padding:16px!important}
  .l360-detailed-form .l360-check{display:grid;grid-template-columns:18px minmax(0,1fr);gap:8px}
  .l360-detailed-form>button{width:100%!important}
  .l360-compare-broker,.l360-compare-final{margin-top:56px!important;padding:24px 20px!important}

  /* Kalkulatory */
  .l360-calc-intro{display:block!important;box-sizing:border-box;width:calc(100% - 32px);padding:40px 0 56px!important}
  .l360-calc-intro h1{font-size:34px!important;line-height:40px!important}
  .l360-calc-cards{grid-template-columns:1fr!important;gap:14px}
  .l360-calc-cards button{min-height:155px}
  .l360-calc-panels{padding:8px!important;align-items:flex-start!important}
  .l360-calc-panel{box-sizing:border-box;width:100%!important;max-height:none!important;margin:8px 0;padding:24px 16px!important;border-radius:18px!important}
  .l360-calc-fields,.l360-result-grid,.l360-calc-lead-fields{grid-template-columns:1fr!important}
  .l360-calc-lead.is-visible{grid-template-columns:1fr!important;gap:20px;padding:18px}
  .l360-tax-table{min-width:640px}

  /* Dokumenty prawne */
  .l360-legal-page{box-sizing:border-box;width:100%!important;padding:44px 0 64px!important}
  .l360-legal-page .l360-page-content{width:calc(100% - 32px)!important}
  .l360-legal-page h1{font-size:34px!important;line-height:40px!important}
  .l360-legal-page h2{margin-top:32px!important;font-size:21px!important;line-height:28px!important}
  .l360-legal-page p,.l360-legal-page li{font-size:15px!important;line-height:1.65!important}

  /* Usługi */
  .single-l360_service .l360-service-reference{box-sizing:border-box;width:calc(100% - 32px)!important;height:auto!important;min-height:0!important;padding:40px 0 64px!important;overflow:visible!important}
  .l360-service-reference h1{font-size:34px!important;line-height:40px!important}
  .l360-service-reference nav,.l360-service-actions{display:flex;gap:10px;flex-wrap:wrap}
  .l360-service-reference img{max-width:100%;height:auto!important}
}
