/* --- ZMIENNE --- */
:root {
   --red: #d60000;
   --red-dark: #a90000;
   --black: #111111;
   --dark: #191919;
   --gray: #6c6c6c;
   --light: #f5f5f5;
   --border: #e5e5e5;
}

/* --- GLOBALNE --- */
html,
body {
   width: 100%;
   max-width: 100%;
   overflow-x: hidden;
}

html {
   scroll-behavior: smooth;
   scroll-padding-top: 90px;
}

h1, h2, h3, h4, h5, h6 {
   font-family: "Barlow Condensed", sans-serif;
   font-weight: 700;
   text-transform: uppercase;
}

a {
   text-decoration: none;
}

/* --- PRZYCISKI --- */
.btn-red,
.btn-outline-light-custom {
   font-weight: 700;
   padding: 12px 22px;
   border-radius: 4px;
   border: 2px solid;
   transition: 0.2s;
   display: inline-block;
}

.btn-red {
   background: var(--red);
   border-color: var(--red);
   color: #fff;
}

.btn-red:hover {
   background: var(--red-dark);
   border-color: var(--red-dark);
   color: #fff;
   transform: translateY(-2px);
}

.btn-outline-light-custom {
   border-color: #fff;
   color: #fff;
}

.btn-outline-light-custom:hover {
   background: #fff;
   color: var(--black);
}

/* --- NAVBAR --- */
.navbar {
   background: rgba(17, 17, 17, 0.97);
   padding: 10px 0;
   border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand img {
   height: 58px;
   width: auto;
}

.navbar-nav .nav-link {
   color: #fff;
   font-size: 14px;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   padding: 10px 14px !important;
   transition: 0.2s;
}

.navbar-nav .nav-link:hover {
   color: var(--red);
}

.navbar-toggler {
   border: 1px solid rgba(255, 255, 255, 0.35);
   background: transparent;
}

.navbar-toggler-icon {
   background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
   box-shadow: 0 0 0 0.2rem rgba(214, 0, 0, 0.25);
}

.navbar-phones {
   display: flex;
   flex-direction: column;
   gap: 3px;
}

.navbar-phones a {
   color: #fff;
   font-size: 14px;
   font-weight: 700;
   white-space: nowrap;
   transition: 0.2s;
}

.navbar-phones a:hover {
   color: var(--red);
}

.navbar-phones span {
   color: var(--red);
   margin-right: 5px;
}

/* --- HERO --- */
.hero {
   min-height: 720px;
   position: relative;
   display: flex;
   align-items: center;
   overflow: hidden;
   background: #111;
}

.hero-video {
   position: absolute;
   inset: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   z-index: 0;
}

.hero-overlay {
   position: absolute;
   inset: 0;
   z-index: 1;
   background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.78) 40%, rgba(0, 0, 0, 0.35) 75%, rgba(0, 0, 0, 0.15) 100%);
}

.hero .container {
   position: relative;
   z-index: 2;
}

.hero-content {
   max-width: 760px;
   color: #fff;
   padding-bottom: 100px;
}

.hero-small,
.page-label {
   display: inline-flex;
   align-items: center;
   gap: 10px;
   color: #fff;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 2px;
   font-size: 14px;
   margin-bottom: 20px;
}

.hero-small::before,
.page-label::before {
   content: "";
   width: 42px;
   height: 3px;
   background: var(--red);
}

.hero h1 {
   font-size: clamp(58px, 8vw, 100px);
   line-height: 0.9;
   margin-bottom: 25px;
}

.hero h1 span,
.page-hero h1 span {
   color: var(--red);
}

.hero p {
   font-size: 19px;
   line-height: 1.7;
   max-width: 650px;
   color: rgba(255, 255, 255, 0.86);
   margin-bottom: 32px;
}

.hero-buttons {
   display: flex;
   flex-wrap: wrap;
   gap: 12px;
}

.hero-info {
   position: absolute;
   bottom: 0;
   left: 0;
   width: 100%;
   background: rgba(0, 0, 0, 0.7);
   border-top: 1px solid rgba(255, 255, 255, 0.12);
   z-index: 3;
}

.hero-info-item {
   color: #fff;
   padding: 20px 15px;
   display: flex;
   align-items: center;
   gap: 14px;
}

.hero-info-icon {
   width: 45px;
   min-width: 45px;
   height: 45px;
   background: var(--red);
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 4px;
   font-size: 20px;
}

.hero-info strong {
   display: block;
   font-size: 15px;
}

.hero-info span {
   font-size: 12px;
   color: #aaa;
}

/* --- PAGE HERO & BREADCRUMBS --- */
.page-hero {
   min-height: 360px;
   position: relative;
   display: flex;
   align-items: center;
   background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.55)), var(--hero-image) center / cover no-repeat;
   color: #fff;
}

.page-hero-content {
   max-width: 850px;
   padding: 70px 0;
}

.page-hero h1 {
   font-size: clamp(55px, 7vw, 90px);
   line-height: 0.9;
   margin: 0 0 22px;
}

.page-hero p {
   max-width: 700px;
   color: rgba(255, 255, 255, 0.82);
   font-size: 18px;
   line-height: 1.7;
   margin: 0;
}

.breadcrumb-bar {
   background: #111;
   border-top: 1px solid rgba(255, 255, 255, 0.08);
   border-bottom: 1px solid #292929;
   padding: 14px 0;
}

.breadcrumb {
   margin: 0;
   font-size: 13px;
}

.breadcrumb-item a {
   color: #aaa;
}

.breadcrumb-item a:hover {
   color: var(--red);
}

.breadcrumb-item.active {
   color: #fff;
}

.breadcrumb-item + .breadcrumb-item::before {
   color: #666;
}

/* --- SEKCJE OGÓLNE --- */
.section {
   padding: 100px 0;
}

.section-light {
   background: var(--light);
}

.section-dark {
   background: var(--dark);
   color: #fff;
}

.section-title {
   margin-bottom: 55px;
}

.section-label {
   color: var(--red);
   font-size: 13px;
   font-weight: 800;
   letter-spacing: 2px;
   text-transform: uppercase;
   margin-bottom: 10px;
}

.section-title h2 {
   font-size: clamp(42px, 5vw, 62px);
   line-height: 0.95;
   margin: 0;
}

.section-title p {
   color: var(--gray);
   max-width: 650px;
   margin: 18px auto 0;
   line-height: 1.7;
}

.section-dark .section-title p {
   color: #aaa;
}

/* --- O FIRMIE & CONTENT --- */
.about-image,
.page-image {
   position: relative;
   min-height: 520px;
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
}

.about-badge,
.page-image-badge {
   position: absolute;
   right: -25px;
   bottom: 25px;
   background: var(--red);
   color: #fff;
   padding: 25px;
   width: 190px;
   text-align: center;
}

.about-badge strong,
.page-image-badge strong {
   display: block;
   font-size: 52px;
   line-height: 0.9;
}

.about-badge span,
.page-image-badge span {
   font-size: 13px;
   text-transform: uppercase;
   font-weight: 700;
}

.about-content {
   padding-left: 40px;
}

.about-content h3,
.content h2 {
   font-size: 42px;
   line-height: 1;
   margin-bottom: 20px;
}

.content h3 {
   font-size: 32px;
   margin-top: 35px;
   margin-bottom: 15px;
}

.about-content p,
.content p {
   color: var(--gray);
   line-height: 1.8;
}

.content p {
   font-size: 16px;
   margin-bottom: 20px;
}

/* --- LISTY (CHECK) --- */
.about-list,
.check-list {
   list-style: none;
   padding: 0;
   margin: 30px 0;
}

.about-list li,
.check-list li {
   display: flex;
   gap: 12px;
   align-items: center;
   margin-bottom: 13px;
   font-weight: 600;
}

.about-list li::before,
.check-list li::before {
   content: "✓";
   width: 25px;
   min-width: 25px;
   height: 25px;
   display: flex;
   align-items: center;
   justify-content: center;
   background: var(--red);
   color: #fff;
   font-size: 13px;
   border-radius: 50%;
}

/* --- USŁUGI --- */
.service-card {
   height: 100%;
   background: #fff;
   border: 1px solid var(--border);
   padding: 35px 30px;
   position: relative;
   overflow: hidden;
   transition: 0.25s;
}

.service-card::after {
   content: "";
   position: absolute;
   left: 0;
   bottom: 0;
   width: 0;
   height: 4px;
   background: var(--red);
   transition: 0.25s;
}

.service-card:hover {
   transform: translateY(-6px);
   box-shadow: 0 15px 45px rgba(0, 0, 0, 0.09);
}

.service-card:hover::after {
   width: 100%;
}

.service-icon {
   width: 90px;
   height: 90px;
   display: flex;
   align-items: center;
   justify-content: center;
   margin-bottom: 25px;
   background: transparent;
}

.service-icon img {
   width: 85px;
   height: 85px;
   object-fit: contain;
   display: block;
   transition: transform 0.25s ease;
}

.service-card:hover .service-icon img {
   transform: scale(1.08);
}

.service-card h3 {
   font-size: 28px;
   margin-bottom: 12px;
}

.service-card p {
   color: var(--gray);
   line-height: 1.7;
   margin: 0;
}

/* --- STATYSTYKI --- */
.stat {
   text-align: center;
   padding: 20px;
}

.stat strong {
   font-size: 64px;
   color: var(--red);
   display: block;
   line-height: 1;
}

.stat span {
   color: #ccc;
   text-transform: uppercase;
   font-size: 13px;
   font-weight: 700;
   letter-spacing: 1px;
}

/* --- GALERIA --- */
.gallery-item {
   position: relative;
   overflow: hidden;
   height: 300px;
   background: #ddd;
}

.gallery-item img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: 0.5s;
}

.gallery-item::after {
   content: "";
   position: absolute;
   inset: 0;
   background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 60%);
}

.gallery-item:hover img {
   transform: scale(1.07);
}

.gallery-caption {
   position: absolute;
   z-index: 2;
   bottom: 20px;
   left: 25px;
   color: #fff;
}

.gallery-caption strong {
   font-size: 28px;
}

.gallery-caption span {
   display: block;
   color: #ddd;
   font-size: 13px;
}

/* --- CTA --- */
.cta {
   background: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.65)), url("assets/img/cta-dach.jpg") center / cover no-repeat;
   color: #fff;
   padding: 90px 0;
}

.cta h2 {
   font-size: clamp(45px, 6vw, 75px);
   line-height: 0.95;
}

.cta p {
   color: #ccc;
   font-size: 17px;
   max-width: 650px;
   line-height: 1.7;
}

/* --- KONTAKT --- */
.contact-box {
   background: #fff;
   border: 1px solid var(--border);
   padding: 35px;
}

.contact-item {
   display: flex;
   gap: 18px;
   margin-bottom: 25px;
}

.contact-icon {
   min-width: 48px;
   height: 48px;
   background: var(--red);
   color: #fff;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 4px;
}

.contact-item strong {
   display: block;
   font-size: 13px;
   color: #777;
   margin-bottom: 3px;
}

.contact-item a,
.contact-item span {
   color: var(--black);
   font-weight: 700;
   font-size: 18px;
}

.contact-item a:hover {
   color: var(--red);
}

/* --- STOPKA --- */
footer {
   background: #0d0d0d;
   color: #aaa;
   padding: 60px 0 25px;
}

.footer-logo {
   height: 65px;
   margin-bottom: 20px;
}

footer p {
   font-size: 14px;
   line-height: 1.7;
}

footer h5 {
   color: #fff;
   font-size: 22px;
   margin-bottom: 20px;
}

.footer-links {
   list-style: none;
   padding: 0;
}

.footer-links li {
   margin-bottom: 10px;
}

.footer-links a {
   color: #aaa;
   transition: 0.2s;
}

.footer-links a:hover {
   color: var(--red);
}

.footer-bottom {
   border-top: 1px solid #292929;
   margin-top: 40px;
   padding-top: 20px;
   font-size: 12px;
}

/* --- RWD: TABLETY --- */
@media (max-width: 991px) {
   .navbar-brand img {
      height: 48px;
   }
   .navbar-phones {
      margin-top: 15px;
      gap: 8px;
   }
   .navbar-phones a {
      display: block;
      background: var(--red);
      color: #fff;
      padding: 11px 16px;
      border-radius: 4px;
      text-align: center;
   }
   .navbar-phones a:hover {
      background: var(--red-dark);
      color: #fff;
   }
   .hero {
      min-height: 700px;
   }
   .hero-content {
      padding-bottom: 160px;
   }
   .hero-info {
      position: absolute;
   }
   .about-content {
      padding-left: 0;
      margin-top: 50px;
   }
   .about-badge {
      right: 15px;
   }
   .page-hero {
      min-height: 320px;
   }
   .page-hero-content {
      padding: 60px 0;
   }
   .page-image {
      min-height: 420px;
   }
}

/* --- RWD: TELEFONY --- */
@media (max-width: 767px) {
   .hero-info {
      display: none;
   }
   .hero-content {
      padding-bottom: 0;
   }
   .hero {
      min-height: 650px;
   }
   .page-hero {
      min-height: 300px;
   }
}

/* --- RWD: MAŁE TELEFONY --- */
@media (max-width: 575px) {
   .section {
      padding: 70px 0;
   }
   .hero {
      min-height: 680px;
   }
   .hero h1 {
      font-size: 62px;
   }
   .hero p {
      font-size: 16px;
   }
   .hero-buttons {
      flex-direction: column;
   }
   .hero-buttons a {
      width: 100%;
      text-align: center;
   }
   .page-hero h1 {
      font-size: 58px;
   }
   .page-hero p {
      font-size: 16px;
   }
   .content h2 {
      font-size: 42px;
   }
   .page-image {
      min-height: 350px;
   }
   .page-image-badge {
      right: 10px;
      bottom: 10px;
   }
   .gallery-item {
      height: 250px;
   }
}
