/*

Elegance Template

https://templatemo.com/tm-528-elegance

==================================================
CSS SITEMAP >>>>

  01. GENERAL CSS
  02. HEADER CSS
  03. SOCIAL ICONS CSS
  04. WELCOME BLOCK CSS
  05. ABOUT BLOCK CSS
  06. SERVICES BLOCK CSS
  07. WORK BLOCK CSS
  08. CONTACT BLOCK CSS
  09. TESTIMONOALS BLOCK CSS
  10. SKILLS BLOCK CSS
  11. BLOCK ZMIAN UZYTKOWNIKA (CZATUŚ + VIRUA) W CSS

==================================================*/

/*==============================================
01. GENERAL CSS
================================================*/

html,
body {
  -webkit-font-smoothing: antialiased;
  -moz-font-smoothing: antialiased;
  -ms-font-smoothing: antialiased;
  /*font-smoothing: antialiased; */
  -webkit-font-smoothing: antialiased;   /* WebKit/Blink */
  -moz-osx-font-smoothing: grayscale;    /* macOS/Firefox */
  text-rendering: optimizeLegibility;    /* hint do kerningu/ligatur */
  -webkit-text-size-adjust: 100%;
}
body {
  font: 16px/1.6 'Raleway', Arial, Helvetica, sans-serif;
  color: #fff;
  text-align:center;
  background: #222;
}
img {
  border: 0;
  max-width: 100%;
}
html {
  -ms-overflow-style: scrollbar;
}
.alltrans,
.social-icons li a,
.owl-nav > button,
.owl-nav > button:after,
.counter-box,
.about-img:after,
.gallery-img img,
.form-control,
.owl-dot,
.subscribe-row,
.close-btn,
.close-btn:before,
.close-btn:after,
.tag-btn,
.btn {
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
}
a {
  color: #fff;
  text-decoration: none;
}
a:hover,
a:focus {
  color: #fff;
  outline: none;
  text-decoration: underline;
}
@media screen and (-ms-high-contrast:active), (-ms-high-contrast:none) {
  a:active {
    background-color: transparent;
  }
}
p {
  margin: 0 0 20px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  margin: 0 0 20px;
  font-weight: 600;
  text-transform: normal; /* Moja edycja wielkości fonta w nagłówkach */
}
h1,
h2 {
  font-size: 32px;
}
h3 {
  font-size: 30px;
  font-weight: 600;
}
h4 {
  font-size: 22px;
  font-weight: 600;
}
h5 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}
h6 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}
#main {
  padding: 0;
  background: #fff;
}
.no-margin {
  margin: 0 !important;
}
figure {
  margin:0;
}
.opacity-no {
  opacity: 1 !important;
}

video {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%; 
  min-height: 100%;
}
#video:after {
  content: '';
  opacity: 0.75;
  background: #080485; /* Old browsers */
  background: -moz-linear-gradient(top, #080485 0%, #39ced6 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top, #080485 0%,#39ced6 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom, #080485 0%,#39ced6 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#080485', endColorstr='#39ced6',GradientType=0 ); /* IE6-9 */
  position:fixed;
  left:0;
  top:0;
  right:0;
  bottom: 0;
}
.wrapper-background-dark:after {
  background: #222;
  opacity:0.95;
}
.section-inner {
  padding:20px 30px 0;
}
.fp-scrollable {
  height:calc(100vh - 200px) !important;
}
#fp-nav ul li a span {
 display: none;
}

.btn {
  background: #fff;
  color: #222;
  text-align:center;
  line-height:52px;
  padding:0 35px;
  border-radius: 0px;
  text-transform:uppercase;
  font-weight:600;
  border:2px solid transparent;
  border-radius: 10px;
}
.btn:hover, .btn:focus {
  color:#fff;
  border-color:#fff;
  background:none;
}
.btn:focus {
  box-shadow:none;
  outline:none;
}
.btn.btn-xs {
  line-height:34px;
  font-size:12px;
  padding:0 20px;
  font-weight: 500;
}
.btn.btn-outline {
  background:none;
  border-color:#fff;
  color:#fff;
  border-width:1px;
}
.btn.btn-outline:hover, .btn.btn-outline:focus {
  background:#fff;
  color:#222;
}
.btn.btn-dark {
  color: #222;
  border-color: #222;
}
.btn.btn-dark:hover, .btn.btn-dark:focus {
  background: #222;
  color: #fff;
}
.owl-carousel .owl-stage {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}
.owl-carousel .owl-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  flex: 1 0 auto;
}
.preloader {
  background: -moz-linear-gradient(top, #080485 0%, #39ced6 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top, #080485 0%,#39ced6 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom, #080485 0%,#39ced6 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#080485', endColorstr='#39ced6',GradientType=0 ); /* IE6-9 */
  height: 100%;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 9999;
  text-align: center;
}
.preloader-bounce {
  left: 0;
  right: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  position: absolute;
}
.preloader-bounce > span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0.3em;
  display: inline-block;
  vertical-align: middle;
  -webkit-animation: bounce 0.6s infinite alternate;
  animation: bounce 0.6s infinite alternate;
  background: #fff;
}
.preloader-bounce > span:nth-child(2){
  -webkit-animation-delay: 0.2s;
  animation-delay: 0.2s;
  background: #fff;
}
.preloader-bounce > span:nth-child(3){
  -webkit-animation-delay: 0.3s;
  animation-delay: 0.3s;
  background: #fff;
}

@-webkit-keyframes bounce {
  from {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  to {
    -webkit-transform: translateY(-1.2em);
    transform: translateY(-1.2em);
  }
}

@keyframes bounce {
  from {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  to {
    -webkit-transform: translateY(-1.2em);
    transform: translateY(-1.2em);
  }
}

#fullpage {
  z-index: 99;
}


/*==============================================
02. HEADER CSS
================================================*/
#header {
  padding:20px 0;
  position: fixed;
  left:0;
  right:0;
  top:0;
  z-index:999;
}
.container-fluid {
  padding:0 20px;
}
a#logo {
  text-decoration: none;
  font-size: 32px;
  text-transform: uppercase;
  font-weight: 700;
}
.navbar {
  padding: 0;
}
.navbar-toggle {
  display:none;
}
.navbar-nav {
  -ms-flex-direction: row;
  -webkit-flex-direction: row;
  flex-direction: row;
}
.navbar-nav li {
  margin-left: 30px;
}
.navbar-nav li a {
  color:#fff;
  font-size: 15px;
  text-decoration:none;
  display:block;
  font-weight: 500;
  opacity: 0.9;
}
.navbar-nav li a:after {
  content:'';
  display:block;
  height: 2px;
  background:#fff;
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
  -webkit-transform:scale(0);
  transform:scale(0);
  margin-top: 4px;
}
.navbar-nav li a:hover:after, .navbar-nav li.active a:after{
  -webkit-transform:scale(1);
  transform:scale(1);
}
.navbar-nav li a:hover {
  opacity: 1;
}
.navbar-nav li.active a {
  opacity: 1;
}
.collapse:not(.show) {
  display:block;
}

/*==============================================
03. SOCIAL ICONS CSS
================================================*/
#social-icons {
  padding:0;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  right:0;
  z-index: 1001;
}
.social-icons {
  margin:0;
  padding:0;
  list-style:none;
}
.social-icons li {
  display: block;
  margin: 1px 0px;
}
.social-icons li a {
  width:50px;
  height:50px;
  display:inline-block;
  line-height:50px;
  text-align:center;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255,255,255,1);
  font-size:18px;
}
.social-icons li a:hover {
  color:#1e1e1e;
  background-color: #fff;
}
/*==============================================
04. WELCOME BLOCK CSS
================================================*/
.welcome-box {
  font-size:20px;
  line-height:1.8;
}
.welcome-first{
  font-size: 32px;
  display: block;
  text-transform: uppercase;
  font-weight: 300;
  line-height: 2.6;
  letter-spacing: 0.02em;
}
.welcome-box p {
  max-width: 620px;
  width:100%;
  margin:0 auto 30px;
  color: #fff;
}
.welcome-title {
  font-weight: 500;
  font-size: 30px;
  margin-bottom: 20px;
  letter-spacing:0.02em;
}
.welcome-title span {
  font-size:36px;
  display:block;
  font-weight:300;
  line-height:1.2;
}
.welcome-box .btn {
  margin-top: 10px;
}
.next-section {
  display: inline-block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
  cursor: pointer;
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
}
.next-section span {
  margin-top: 15px;
  display: block;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 500;
}
.next-section i:hover {
  opacity: 1;
}
.scroll-down {
    display: block;
	text-align:center;
	position: absolute; /* Pozycjonowanie absolutne */
    left: 50%; /* Ustawienie na środku poziomym */
    bottom: 30px; /* Odstęp od dolnej krawędzi kontenera */
    transform: translateX(-50%); /* Wyśrodkowanie elementu */
    cursor: pointer;
	-webkit-transition: all 0.5s ease;
	transition: all 0.5s ease;
}
/*==============================================
05. ABOUT ME
================================================*/
.about-img {
  margin: 0 auto 40px;
  position:relative;
}
.about-img img {
  border-radius: 10px;
  -webkit-box-shadow: 0 0 40px rgba(0,0,0,.3);
  box-shadow: 0 0 40px rgba(0,0,0,.3);
}
.about-contentbox {
  margin-top: 80px;
  text-align:left;
  line-height:1.8;
}
.about-contentbox span {
  font-size: 24px;
  text-transform: uppercase;
  font-weight: 300;
}
.about-contentbox h2 {
  font-size: 32px;
  text-transform: uppercase;
  font-weight: 700;
}
.facts-list {
  margin-top: 30px;
}
.facts-list .item {
  overflow: hidden;
  text-align:center;
  border-radius: 10px;
  width: 100%;
  display: inline-block;
  text-transform:capitalize;
  font-size:14px;
  padding: 30px 0px;
  background: rgba(0,0,0,0.25);
}
.counter-box span {
  font-size: 26px;
  font-weight: 700;
}
.counter-icon {
  font-size: 30px;
  margin-bottom: 10px;
  opacity: 0.75;
}
.facts-list .item:hover {
  background:#fff;
  color:#1e1e1e;
}
.facts-list .owl-dots {
  margin-bottom: 30px;
}
.count-number, .counted {
  display:block;
  font-size:36px;
  font-weight:700;
  line-height:1;
  margin-bottom:10px;
}

/*==============================================
06. SERVICES BLOCK CSS
================================================*/
.title-block {
  margin-bottom: 40px;
}
.title-block span {
  font-size: 24px;
  text-transform: uppercase;
  font-weight: 300;
}
.services-list .item {
  background-color: rgba(250,250,250,0.25);
  border-radius: 10px;
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
}
.service-icon {
  display:block;
  margin: 0 auto 0;
  font-size: 64px;
}
/* === Uniwersalny kontener na obrazkową ikonę === */
.services-list .item .service-icon {
  display: block;
  margin: 0 auto;
  /* domyślnie 20% szerokości kontenera, ale nie więcej niż 64px */
  width: var(--icon-width, 50%);
  max-width: var(--icon-max-width, 64px);
  /* zawsze kwadrat */
  aspect-ratio: 1 / 1;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}
.service-box {
  font-size:15px;
  padding:40px 20px;
  height:100%;
}
.services-list .item:hover {
  background-color: #fff;
  color: #1e1e1e;
}
.service-box h3 {
  font-size:22px;
  font-weight:700;
  text-transform: capitalize;
  margin-bottom: 10px;
  padding: 10px;
}
.service-box p:last-child {
  margin:0;
}
.owl-carousel .owl-dots .owl-dot {
  border-radius: 3px;
}
.owl-dots {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    margin-top: 50px
}

.owl-carousel .owl-dots .owl-dot {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: rgba(255, 255, 255, .2)
}

.owl-carousel .owl-dots .owl-dot:focus {
    outline: none
}

.owl-carousel .owl-dots .owl-dot.active {
    background: #fff
}

/*==============================================
07. WORK BLOCK CSS
================================================*/
.gallery-section {
  text-align: center;
}
.portfolio-item img {
  max-width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 9;
  border-radius: 10px;
}
.portfolio-item .thumb-inner {
  position: absolute;
  z-index: 99;
  bottom: 0;
  text-align: center;
  padding: 20px;
  background-color: rgba(11, 17, 53, 0.75);
  width: 100%;
  height: 70px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
}
.portfolio-item .blog-inner {
  position: absolute;
  z-index: 99;
  bottom: 0;
  text-align: center;
  padding: 20px;
  background-color: rgba(11, 17, 53, 0.75);
  width: 100%;
  height: 110px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
}
.portfolio-item .thumb-inner h4 {
  margin-bottom: 0;
  font-size: 19px;
  margin-top: 0px;
  color: #ffffff;
  font-weight:700;
}
.portfolio-item .blog-inner h4 {
  margin-bottom: 0;
  font-size: 17px;
  margin-top: 0px;
  color: #ffffff;
  font-weight:700;
}
.portfolio-item .blog-inner b4 {
  margin-bottom: 0;
  font-size: 15px;
  margin-top: 0px;
  color: #e0ddec;
  font-weight:400;
}
.portfolio-item .thumb-inner p {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  margin-bottom: 0px;
}
.portfolio-item:hover .thumb-inner p {
  position: relative;
  opacity: 1;
  visibility: visible;
  color: #4a4a4a;
}
.portfolio-item:hover .thumb-inner {
  border-radius: 10px;
  height: 100%;
  background-color: rgba(250,250,250,0.9)
}
.portfolio-item:hover .thumb-inner h4 {
   margin-top: 30%;
  color: #1e1e1e;
  margin-bottom: 20px;
}
.portfolio-item:hover .blog-inner p {
  position: relative;
  opacity: 1;
  visibility: visible;
  color: #ffffff;
}
.portfolio-item:hover .blog-inner {
  border-radius: 10px;
  height: 100%;
  background-color: rgba(11, 17, 53, 0.75);
}
.portfolio-item:hover .blog-inner h4 {
   margin-top: 20%;
  color: #ffffff;
  margin-bottom: 20px;
}

/*==============================================
08. CONTACT BLOCK CSS
================================================*/
::-webkit-input-placeholder {
  color:#fff !important;
  opacity:1;
}
::-moz-placeholder {
  color:#fff !important;
  opacity:1;
}
:-ms-input-placeholder {
  color:#fff !important;
  opacity:1;
}
:-moz-placeholder {
  color:#fff !important;
  opacity:1;
}
.input-field {
  margin-bottom:15px;
}
.form-control {
  height: 50px;
  color:#fff;
  border: none;
  background:rgba(250,250,250,0.05);
  border: 1px solid rgba(250,250,250,0.5);
  border-radius: 10px;
  padding:4px 22px;
  font-size:14px;
  margin-bottom: 20px;
}
.form-control-read-only {
  height: 50px;
  color:#fff;
  border: none;
  background:rgba(250,250,250,0.05);
  border: 1px solid rgba(250,250,250,0.5);
  border-radius: 10px;
  padding:4px 20px;
  font-size:14px;
  margin-bottom: 20px;
}
.form-control:focus {
  box-shadow:none;
  outline:none;
  background:rgba(0,0,0,0.05);
  border: 1px solid rgba(250,250,250,1);
  color:#fff;
}
.form-control-read-only:focus {
  box-shadow:none;
  outline:none;
  background:rgba(0,0,0,0.05);
  border: 1px solid rgba(250,250,250,1);
  color:#fff;
}
.index .form-control.form-control-dark {
  background: rgba(250,250,250, 0.75);
  color: #fff;
}
.index .form-control.form-control-dark:focus {
  background: rgba(54, 40, 158, 0.85);
  color: #fff;
}
.index .form-control.form-control-dark::-webkit-input-placeholder {
  color: #fff !important;
}
.index .form-control.form-control-dark::-moz-placeholder {
  color:#fff !important;
}
.index .form-control.form-control-dark:-ms-input-placeholder {
  color:#fff !important;
}
.index .form-control.form-control-dark:-moz-placeholder {
  color:#fff !important;
}
.form-control.form-control-dark:focus {
  background: rgba(0, 0, 0, 0.2);
}
.form-control.form-control-dark {
  background: rgba(0, 0, 0, 0.1);
  color: #222;
  border: none;
}
.form-control.form-control-dark::-webkit-input-placeholder {
  color:#222 !important;
  opacity:0.7;
}
.form-control.form-control-dark::-moz-placeholder {
  color:#222 !important;
  opacity:0.7;
}
.form-control.form-control-dark:-ms-input-placeholder {
  color:#222 !important;
  opacity:0.7;
}
.form-control.form-control-dark:-moz-placeholder {
  color:#222 !important;
  opacity:0.7;
}
textarea.form-control {
  height:135px;
  padding-top:15px;
}
.contact-section .btn {
  width:100%;
}
.contact-box {
  text-align:left;
}
.contact-box h4 {
  font-size:24px;
}
.contact-box h4:after {
  content:'';
  display:block;
  width:50px;
  height:2px;
  background:#fff;
  margin:12px 0;
}
.contact-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: 20px;
  background: rgba(250,250,250,0.25);
  border-radius: 10px;
  padding: 20px;
  font-weight: 700;
}
.contact-row i {
  width:55px;
  font-size: 30px;
  display:block;
}
.contact-row i.fa-envelope {
  font-size: 25px;
}
.contact-row-low {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: 20px;
  background: rgba(250,250,250,0.25);
  border-radius: 10px;
  padding: 30px;
  font-weight: 300;
}
/*==============================================
09. TESTIMONOALS BLOCK CSS
================================================*/
.testimonials-section .item {
  background-color: rgba(250,250,250,0.25);
  padding: 40px;
  border-radius: 10px;
  width: 100%
}
.testimonials-section .item img {
  width: 140px;
  height: 140px;
  margin: 0 auto;
}
.testimonials-section .item h4 {
  margin-top: 40px;
  font-size: 22px;
  text-transform: capitalize;
  font-weight: 700;
}
.testimonials-section .item p {
  font-size: 17px;
  font-style: italic;
}

/*==============================================
10. SKILLS BLOCK CSS
================================================*/
.skills-row {
  margin-top: 80px;
}
.skill-item {
  border-bottom: 1px solid rgba(250,250,250,0.1);
  margin-bottom: 50px;
  padding-bottom: 50px;
}
.last-skill {
  border-bottom: none;
}
.skills-row span {
  display: inline-block;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  background-color: #fff;
  color: #1e1e1e;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  left: 0;
  top: -21px;
  position: absolute;
  z-index: 999;
}
.skills-row h6 {
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  text-align: right;
  margin-bottom: -10px;
}
.skills-row h5 {
  font-size: 14px;
  text-transform: lowercase;
  font-weight: 300;
  color: #fff;
  text-align: right;
  margin-bottom: -10px;
}

.skill-bar {
  width: 60%;
  height: 6px;
  border-radius: 3px;
  background-color: rgba(250,250,250,0.25);
  position: relative;
}
.filled-bar {
  position: absolute;
  z-index: 99;
  width: 99%;
  height: 6px;
  background-color: #fff;
  border-radius: 3px;
}
.filled-bar-1 {
  position: absolute;
  z-index: 99;
  width: 20%;
  height: 6px;
  background-color: #fff;
  border-radius: 3px;
}
.filled-bar-2 {
  position: absolute;
  z-index: 99;
  width: 90%;
  height: 6px;
  background-color: #fff;
  border-radius: 3px;
}
.filled-bar-3 {
  position: absolute;
  z-index: 99;
  width: 97%;
  height: 6px;
  background-color: #fff;
  border-radius: 3px;
}

/*==============================================
11. BLOCK ZMIAN UŻYTKOWNIKA (CZATUŚ + VIRUA) – FINAL
   – CTA: Zadzwoń + Dodaj opinię
   – Grafiki w artykule
   – Responsywne nagłówki
   – Footer strip + scroller (spójny z JS: #cfTrack)
   – Grid, sitemap, formularz
================================================*/

/* === CTA ZADZWOŃ PLUGIN STYLES ============================= */
#cta-box {
  display: none;
  position: fixed;
  top: 50px;
  left: 50px;
  z-index: 9999;
  width: 300px;
  padding: 20px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-300px);
  transition: transform 0.6s ease-out, opacity 0.6s;
  opacity: 0;
  color: #333;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
#cta-box label {
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 13px;
  color: #333;
}
#cta-box input::placeholder { font-style: italic; }
#cta-box input::placeholder,
#cta-box input::-webkit-input-placeholder,
#cta-box input::-moz-placeholder,
#cta-box input:-ms-input-placeholder,
#cta-box input:-moz-placeholder { color: #555 !important; }
#cta-box h3 { margin-top: 0; font-size: 18px; font-weight: bold; }
#cta-box p { margin-bottom: 10px; }
#cta-box .cta-subheading {
  font-size: 15px; font-weight: 600; text-transform: none;
  margin: 5px 0 10px; color: #333; letter-spacing: 0.3px;
}
#cta-box input[type="text"],
#cta-box input[type="email"],
#cta-box input[type="tel"]{
  width: 100%; padding: 8px; margin: 5px 0;
  border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box;
}
#cta-box button{
  width: 100%; padding: 10px; margin-top: 10px;
  background: #1E90FF; color: #fff; border: none; border-radius: 10px;
  cursor: pointer; font-weight: bold;
}
#cta-box button:hover{ background: #187bcd; }
#cta-close{ cursor: pointer; font-weight: bold; font-size: 18px; color: #999; }
#cta-message{ margin-top: 10px; font-weight: bold; color: green; display: none; }

/* === CTA DODAJ OPINIĘ PLUGIN STYLES ========================= */
#cta-opinie-box{
  display: block; opacity: 0; transform: translateY(100px);
  position: fixed; bottom: 50px; left: 50px; z-index: 9999;
  width: 300px; background: #def0ff; padding: 20px; border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0,0,0,.2);
  font-family: Segoe UI, sans-serif; transition: opacity .6s ease, transform .6s ease;
}
#cta-opinie-box.visible{ opacity: 1; transform: translateY(0); }
#cta-opinie-box .cta-opinie-close{ text-align: right; cursor: pointer; font-weight: bold; font-size: 18px; color: #999; }
#cta-opinie-box .cta-opinie-title{ margin-top: 0; font-size: 16px; font-weight: 600; color: #222; }
#cta-opinie-box .cta-opinie-text{ font-size: 14px; margin: 10px 0; color: #444; }
#cta-opinie-box .cta-opinie-button{
  display: inline-block; margin-top: 10px; padding: 10px 15px;
  background: #1E90FF; color:#fff; text-decoration: none; border-radius: 8px; font-weight: bold;
  transition: background .3s ease;
}
#cta-opinie-box .cta-opinie-button:hover{ background:#1c7cd5; }

/* === Skalowanie grafik w sekcji artykułów =================== */
.content-box img.art-png{
  display:block; width:100%; max-width:800px; height:auto;
  margin:20px auto; border-radius:8px;
}

/* ================================
   Responsywne nagłówki i grafiki
   ================================ */
.welcome-title{ font-size: 22px !important; line-height: 1.25; }
.content-box img.art-png{ max-width:100%; margin:15px 0; }

@media (min-width: 768px) and (max-width:1199px){
  .welcome-title{ font-size: 26px !important; line-height: 1.3; }
  .content-box img.art-png{ max-width:90%; margin:20px auto; }
}
@media (min-width:1200px){
  .welcome-title{ font-size:32px !important; line-height:1.4; }
  .content-box img.art-png{ max-width:800px; margin:20px auto; }
}

/* === FOOTER – zmienne i bazowe kolory ====================== */
:root{
  --cf-bg: rgba(0,0,0,.25);
  --cf-border: rgba(255,255,255,.15);
  --cf-text: #eaf1ff;
  --cf-dim: #b9c5da;
  --cf-accent: #5cc1ff;
  --cf-radius: 16px;
  --cf-logo-radius: 5px;
}
.contact-footer{ margin-top:15px; color: var(--cf-text); }

/* Domyślnie – bez wewnętrznego scrolla */
.article-scroll.cf-scroll{
  overflow: visible;
}

/* Tylko gdy JS dopnie klasę .needs-inner-scroll */
.article-scroll.cf-scroll.needs-inner-scroll{
  max-height: calc(100dvh - 60px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.article-scroll.cf-scroll.needs-inner-scroll::-webkit-scrollbar{
  width:0;
  height:0;
}

/* ===== FOOTER: pasek logotypów (clean) ===== */

/* Pasek logotypów */
.cf-strip{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius);
  background: var(--cf-bg);
  padding: 8px 0;
  backdrop-filter: blur(6px);
}

/* Tor przewijania – UŻYWAMY TYLKO id="cfTrack" */
/* Tor przewijania – UŻYWAMY TYLKO id="cfTrack" */
#cfTrack{
  --cf-duration: 18s;           /* fallback, JS policzy docelową wartość */
  --cf-distance: 0px;          /* JS ustawi dystans 1 pętli w px */
  --cf-speed: 75;              /* szybkość scrolla logotypów px/s (desktop). Nadpisywane w media queries */
  display: flex;
  align-items: center;
  gap: 24px;                   /* odstęp między logotypami */
  width: max-content;          /* klucz: szerokość wg zawartości */
  will-change: transform;
  transform: translate3d(0,0,0);
  animation: cfMarquee var(--cf-duration) linear infinite;
}
#cfTrack:hover{ animation-play-state: paused; }
#cfTrack:hover{ animation-play-state: paused; }

/* Prefer-reduced-motion: bez animacji */
@media (prefers-reduced-motion: reduce){
  #cfTrack{ animation: none; }
}

/* Kafelek logo – docelowa wysokość 60px (desktop) */
.cf-logo{
  flex: 0 0 auto;            /* nie zawijać wiersza */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 6px;
  margin: 0 2px;
  opacity: .95;
  transition: opacity .2s ease, transform .2s ease;
  border-radius: var(--cf-logo-radius);
  overflow: hidden;
}
.cf-logo:hover{ opacity: 1; transform: translateY(-1px); }

/* Sam obraz – dopasowanie po wysokości, proporcje zachowane */
.cf-logo img{
  display: block;
  height: 100% !important;   /* najważniejsze: obraz pod wysokość kafelka */
  width: auto !important;    /* proporcje */
  max-height: 60px;          /* bezpiecznik */
  max-width: 180px;          /* bezpiecznik */
  object-fit: contain;
  border-radius: inherit;
  filter: saturate(.9) contrast(1.05);
}

/* Kluczowa animacja – zostawiamy TYLKO tę nazwę */
/* Kluczowa animacja – pixel-perfect loop (dystans w px podaje JS) */
@keyframes cfMarquee{
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(calc(-1 * var(--cf-distance)),0,0); }
}

/* Mobile (≤600px): mniejsze logo + szybsza animacja */
@media (max-width: 600px){
  .contact-footer .cf-strip{ padding: 6px 0; }
  #cfTrack{ gap: 14px; --cf-speed: 70; }  /* szybkość mobile */
  .cf-logo{ height: clamp(22px, 6vw, 26px); padding: 0 4px; margin: 0 1px; }
  .cf-logo img{ max-height: clamp(22px, 6vw, 26px); max-width: 180px; }
}

/* === 3-box grid – 40/20/40 ================================ */
.cf-grid{
  margin-top:8px; display:grid; gap:8px; grid-template-columns: repeat(12,1fr);
}
.cf-card{
  padding:8px 10px; border:1px solid var(--cf-border); border-radius: var(--cf-radius);
  background: var(--cf-bg); backdrop-filter: blur(6px);
}
.cf-card:nth-child(1){ grid-column: span 5; }
.cf-card:nth-child(2){ grid-column: span 2; }
.cf-card:nth-child(3){ grid-column: span 5; }

.cf-micro{
  margin:2px 0; color: var(--cf-dim); font-size:.85rem; line-height:1.45; text-align:left;
  line-clamp: 3;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient: vertical; overflow:hidden;
}
.cf-card a{ color: var(--cf-text); border-bottom:1px dashed transparent; text-decoration:none; }
.cf-card a:hover{ color: var(--cf-accent); border-bottom-color: var(--cf-accent); }

/* sitemap: 3 kolumny desktop, 2 tablet, 1 mobile */
.cf-sitemap{ list-style:none; margin:0; padding:0; columns:3; column-gap:12px; }
.cf-sitemap li{ break-inside: avoid; margin:2px 0; font-size:.85rem; }

/* Dociśnij stopkę i disclaimer */
.contact-section{ margin-bottom:10px; }
.contact-row-low{
  display:block; width:100%; margin-top:8px; font-size:.92rem; line-height:1.5;
}

/* Środkowy box – centrowanie + bez clamp */
.cf-grid .cf-card:nth-child(2){
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
}
.cf-grid .cf-card:nth-child(2) .cf-micro{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  line-clamp: 3;
  -webkit-line-clamp: initial; -webkit-box-orient: initial; overflow: visible; margin:0; font-size:.82rem;
}
.cf-grid .cf-card:nth-child(2) strong{
  display:block; margin-top:2px; font-size:.9rem; font-weight:600; letter-spacing:.2px;
}

/* === Mobile responsy dla stopki ============================ */
@media (max-width: 900px){ .cf-card{ grid-column: span 12; } }

@media (max-width:600px){
  /* full-bleed strip */
  .contact-footer .cf-strip{
    padding:6px 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-left:0; border-right:0; border-radius:0;
  }
  #cfTrack{ gap:14px; --cf-speed: 70; } /* szybszy loop na mobile */
  .cf-logo{ height: clamp(22px, 6vw, 26px); padding:0 4px; margin:0 1px; }

  /* sitemap + środkowy box */
  .cf-sitemap{ columns:1; column-gap:10px; }
  .cf-sitemap li{ font-size:.82rem; }

  /* opcjonalnie ukrycie środkowego boxu */
  .cf-grid .cf-card:nth-child(2){ display:none; }
  .cf-grid{
    grid-template-columns: repeat(12,1fr);
    gap:10px; /* ciut większy odstęp dla 2-kolumnowego układu */
  }
  .cf-grid .cf-card:nth-child(1),
  .cf-grid .cf-card:nth-child(3){ grid-column: span 6; }
}

/* === Drobne dopieszczenia pól formularza =================== */
#ajax-contact .form-control{ padding-top:10px; padding-bottom:10px; 
}
/* ===== Modal kalkulatora – stabilny ponad fullPage/CTA/Cookie ===== */
body.modal-open{ overflow:hidden; position:fixed; width:100%; }

/* tło */
.modal-overlay{
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,.65);
  justify-content:center; align-items:center;
  z-index:2147483000; /* bardzo wysoko */
}
.modal-overlay.active{ display:flex; }

/* pudełko z kalkulatorem */
.modal-content{
  position:relative;
  background:#fff; border-radius:12px;
  width:min(98vw, 1200px);
  height:min(95vh, 900px);
  box-shadow:0 18px 60px rgba(0,0,0,.35);
  overflow:hidden;
  pointer-events:auto;
}

/* X */
.modal-close{
  position:absolute; top:8px; right:10px;
  width:40px; height:40px; border:0; background:transparent;
  color:#333; font-size:30px; line-height:1; cursor:pointer;
  z-index:1;
}

/* iframe zawsze na cały box */
.modal-content iframe{
  display:block; width:100%; height:100%;
  border:0; background:#fff;
}

/* na wszelki – ogranicz animacje dla 'prefers-reduced-motion' */
@media (prefers-reduced-motion: reduce){
  .modal-overlay{ transition:none; }
}

/* ==================================================== */