/* 01media.pl — global design system */

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --red: #d60909;
  --gray: #b0b0b0;
  --dark-gray: #1a1a1a;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body:not(.intro-playing):not(.intro-done) {
  padding-top: 80px;
}

body.intro-done {
  padding-top: 0;
}

/* Plasma / particle-style background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(214, 9, 9, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(214, 9, 9, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(214, 9, 9, 0.06) 0%, transparent 50%);
  animation: plasmaMove 15s ease-in-out infinite alternate;
}

@keyframes plasmaMove {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.1) translate(-2%, 3%);
  }
  100% {
    transform: scale(1) translate(2%, -2%);
  }
}

a {
  color: var(--white);
}

img {
  max-width: 100%;
  height: auto;
}

.highlight {
  color: var(--red);
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.9rem 4rem;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

nav.scrolled {
  padding: 0.6rem 4rem;
  background: rgba(10, 10, 10, 0.95);
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  text-decoration: none;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.logo span {
  color: var(--red);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--white);
}

/* Primary CTA = czerwony przycisk w menu */
.cta-button,
.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border-radius: 30px;
  border: 2px solid var(--red);
  transition: all 0.3s;
  cursor: pointer;
  text-transform: uppercase;
  font-family: inherit;
  flex-shrink: 0;
}

.cta-button:hover,
.btn-primary:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 2px solid var(--white);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border-radius: 30px;
  transition: all 0.3s;
  text-transform: uppercase;
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  left: auto;
  width: 80%;
  max-width: 350px;
  height: 100vh;
  background: rgba(10, 10, 10, 0.98);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  transition: right 0.4s ease;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
}

.mobile-menu ul li {
  margin-bottom: 1.5rem;
}

.mobile-menu ul li a {
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  transition: color 0.3s;
}

.mobile-menu ul li a:hover {
  color: var(--red);
}

.mobile-cta {
  margin-top: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: 4rem 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo-link img {
  width: 100px;
  height: auto;
  display: block;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.footer-social {
  display: flex;
  gap: 1.2rem;
}

.footer-social a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

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

.footer-social-soon {
  color: #d0d0d0;
  opacity: 0.7;
  cursor: default;
  pointer-events: none;
}

.footer-col-header {
  margin-bottom: 1rem;
}

.footer-col-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--white);
  text-transform: uppercase;
}

.footer-chevron {
  display: none;
}

.footer-col-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col-body a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

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

.footer-hours {
  color: var(--gray);
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-updated {
  font-size: 0.78rem;
  color: #d0d0d0;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 100;
  border: none;
  padding: 0;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

/* ============================================
   FADE-IN ON SCROLL
   ============================================ */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Legal pages */
.legal-heading {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.legal-heading:first-child {
  margin-top: 0;
}

.legal-text {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-text a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.3s;
}

.legal-text a:hover {
  color: var(--white);
}

.legal-text strong {
  color: var(--white);
  font-weight: 600;
}

/* Uslugi hub */
.uslugi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.uslugi-grid--cross {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 2rem auto 0;
}

.usluga-card {
  background: var(--dark-gray);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  transition: border-color 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}

.usluga-card:hover {
  border-color: rgba(214, 9, 9, 0.3);
  transform: translateY(-4px);
}

.usluga-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
}

.usluga-icon svg {
  width: 48px;
  height: 48px;
  stroke: var(--red);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.usluga-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.usluga-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

.usluga-cta {
  color: var(--red);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.3s;
}

.usluga-cta:hover {
  color: var(--white);
}

.uslugi-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.7;
}

/* Portfolio — realizacje (portfolio.php) */
.portfolio-card {
  display: flex;
  flex-direction: column;
}

.portfolio-card p {
  flex: 1;
}

.portfolio-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: var(--dark-gray);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.03);
}

.portfolio-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.portfolio-card > .portfolio-tag {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.portfolio-card > h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--white);
  padding: 0 1.5rem;
}

.portfolio-card > p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  padding: 0 1.5rem;
}

.portfolio-card > .usluga-cta {
  display: inline-block;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Section spacing utility */
.section-pad {
  padding: 6rem 4rem;
}

/* ============================================
   STRONY PRODUKTOWE / MAXAMETER
   ============================================ */
.mx-hero {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.mx-hero-content {
  max-width: 960px;
  position: relative;
  z-index: 1;
}

.mx-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(40px);
  animation: pageHeroIn 0.8s ease 0.3s forwards;
}

.mx-hero-sub {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--gray);
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(30px);
  animation: pageHeroIn 0.8s ease 0.6s forwards;
}

.mx-hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: pageHeroIn 0.8s ease 0.9s forwards;
}

.mx-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(214, 9, 9, 0.1);
  border: 1px solid rgba(214, 9, 9, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: pageHeroIn 0.8s ease 0.15s forwards;
}

.mx-hero .scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  animation: pageHeroInCentered 0.8s ease 1.3s forwards;
}

.mx-hero .scroll-indicator p {
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  color: var(--gray);
}

.arrow {
  width: 2px;
  height: 35px;
  background: var(--red);
  margin: 0 auto;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(10px);
  }
  60% {
    transform: translateY(5px);
  }
}

.mx-usp-bar {
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(26, 26, 26, 0.3);
}

.mx-usp-bar .mx-container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.mx-usp-item {
  text-align: center;
  min-width: 140px;
}

.mx-usp-item .usp-icon {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.mx-usp-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.mx-usp-item p {
  font-size: 0.8rem;
  color: var(--gray);
}

.mx-logo-section {
  padding: 5rem 2rem;
  display: flex;
  justify-content: center;
}

.mx-logo-section img {
  width: 280px;
  max-width: 80%;
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.8s;
  filter: drop-shadow(0 10px 40px rgba(214, 9, 9, 0.15));
}

.mx-logo-section img.visible {
  opacity: 1;
  transform: scale(1);
}

.mx-section {
  padding: 6rem 4rem;
  position: relative;
}

.mx-section-alt {
  background: rgba(26, 26, 26, 0.4);
}

.mx-container {
  max-width: 1200px;
  margin: 0 auto;
}

.mx-section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
}

.mx-section-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 3rem;
}

.mx-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.mx-about-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.mx-about-text p {
  color: var(--gray);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.mx-feature-tag {
  display: inline-block;
  background: rgba(214, 9, 9, 0.12);
  color: var(--red);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.mx-media-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--dark-gray);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.3s;
}

.mx-media-placeholder:hover {
  border-color: rgba(214, 9, 9, 0.4);
}

.mx-media-placeholder img,
.mx-media-placeholder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.placeholder-label {
  color: var(--gray);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-align: center;
}

.placeholder-icon {
  width: 60px;
  height: 60px;
  border: 2px solid rgba(214, 9, 9, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s;
}

.mx-media-placeholder:hover .placeholder-icon {
  background: rgba(214, 9, 9, 0.15);
  transform: scale(1.05);
}

.placeholder-icon svg {
  fill: var(--red);
  width: 24px;
  height: 24px;
}

.mx-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.mx-gallery-item {
  aspect-ratio: 16 / 10;
  background: var(--dark-gray);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  cursor: pointer;
}

.mx-gallery-item:hover {
  border-color: rgba(214, 9, 9, 0.4);
  transform: scale(1.02);
}

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

.mx-perspectives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.mx-perspective-card {
  background: var(--dark-gray);
  padding: 2.5rem 2rem;
  border: 1px solid transparent;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.mx-perspective-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--red);
  transition: width 0.4s;
}

.mx-perspective-card:hover {
  border-color: var(--red);
  transform: translateY(-5px);
}

.mx-perspective-card:hover::before {
  width: 100%;
}

.mx-perspective-card .card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.mx-perspective-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.mx-perspective-card ul {
  list-style: none;
  padding: 0;
}

.mx-perspective-card ul li {
  color: var(--gray);
  line-height: 1.7;
  font-size: 0.95rem;
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.mx-perspective-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
}

.mx-feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.mx-feature-split.reverse {
  direction: rtl;
}

.mx-feature-split.reverse > * {
  direction: ltr;
}

.mx-feature-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.mx-feature-text p {
  color: var(--gray);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.mx-feature-list {
  list-style: none;
  padding: 0;
}

.mx-feature-list li {
  color: var(--gray);
  line-height: 1.7;
  font-size: 0.95rem;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.6rem;
}

.mx-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.mx-industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mx-industry-card {
  background: var(--dark-gray);
  padding: 2rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.mx-industry-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.mx-industry-card:hover {
  border-color: rgba(214, 9, 9, 0.3);
  transform: translateY(-3px);
}

.mx-industry-card:hover::after {
  transform: scaleX(1);
}

.mx-industry-card .industry-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.mx-industry-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.mx-industry-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.mx-why-section {
  text-align: center;
}

.mx-why-section h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}

.mx-why-section .mx-container > p {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.mx-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.mx-stat h3 {
  font-size: 3rem;
  color: var(--red);
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.mx-stat p {
  color: var(--gray);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mx-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  text-align: left;
  margin-top: 3rem;
}

.mx-why-card {
  background: var(--dark-gray);
  padding: 2rem 1.5rem;
  border-left: 3px solid var(--red);
}

.mx-why-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.mx-why-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.mx-process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.mx-process-step {
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 1rem;
}

.mx-process-step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.mx-process-step p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.mx-pilot-banner {
  background: linear-gradient(135deg, rgba(214, 9, 9, 0.08), rgba(214, 9, 9, 0.02));
  border: 1px solid rgba(214, 9, 9, 0.2);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  margin-top: 3rem;
}

.mx-pilot-banner h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.mx-pilot-banner p {
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.mx-faq h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 2.5rem;
}

.mx-faq-item {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.5rem;
}

.mx-faq-item:last-child {
  border-bottom: none;
}

.mx-faq-item h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.mx-faq-item p {
  color: var(--gray);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.mx-contact-section {
  padding: 6rem 4rem;
}

.contact-hero {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.contact-photo-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.mx-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.mx-contact-info h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.mx-contact-info p {
  color: var(--gray);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.mx-contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--gray);
  font-size: 0.95rem;
}

.mx-contact-detail svg {
  width: 18px;
  height: 18px;
  fill: var(--red);
  flex-shrink: 0;
}

.mx-contact-detail a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* ============================================
   FORMS
   ============================================ */
.mx-form {
  background: var(--dark-gray);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.mx-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mx-form-group {
  margin-bottom: 1.25rem;
}

.mx-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
  color: var(--gray);
  text-transform: uppercase;
}

.mx-form-group label .optional {
  font-weight: 400;
  text-transform: none;
  opacity: 0.6;
}

.mx-form-group input,
.mx-form-group select,
.mx-form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s;
  outline: none;
  box-sizing: border-box;
}

.mx-form-group input:focus,
.mx-form-group select:focus,
.mx-form-group textarea:focus {
  border-color: var(--red);
}

.mx-form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23b0b0b0'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.mx-form-group select option {
  background: #1a1a1a;
  color: #fff;
}

.mx-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.mx-form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.mx-form-message {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: none;
}

.mx-form-message.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  display: block;
}

.mx-form-message.error {
  background: rgba(214, 9, 9, 0.1);
  border: 1px solid rgba(214, 9, 9, 0.3);
  color: var(--red);
  display: block;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--red);
  cursor: pointer;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.mx-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mx-lightbox.active {
  display: flex;
}

.mx-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  cursor: default;
}

.mx-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 2001;
  padding: 0;
  font: inherit;
  color: inherit;
}

.mx-lightbox-close:hover {
  background: var(--red);
  border-color: var(--red);
}

.mx-lightbox-close svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

/* ============================================
   STRONA GŁÓWNA — AUDYT + PROBLEM
   ============================================ */
.home-audit-section {
  background: #1a1a1a;
  padding: 6rem 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.home-audit-section .mx-section-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.home-audit-section .mx-section-subtitle {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.home-problem-section {
  background: #f5f5f5;
  color: #1a1a1a;
  padding: 6rem 4rem;
}

.home-problem-section .mx-section-title {
  color: #0a0a0a;
  text-align: center;
}

.home-problem-section .mx-section-subtitle {
  color: #444;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.home-problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.home-problem-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transition: border-color 0.3s, transform 0.3s;
}

.home-problem-card:hover {
  border-color: rgba(214, 9, 9, 0.35);
  transform: translateY(-4px);
}

.home-problem-card .problem-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.home-problem-card p {
  color: #333;
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ============================================
   PAGE HERO (podstrony)
   ============================================ */
.page-hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(40px);
  animation: pageHeroIn 0.8s ease 0.2s forwards;
}

.page-hero .page-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--gray);
  max-width: 700px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: pageHeroIn 0.8s ease 0.5s forwards;
}

.page-hero .page-hero-cta {
  opacity: 0;
  transform: translateY(20px);
  animation: pageHeroIn 0.8s ease 0.8s forwards;
}

@keyframes pageHeroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageHeroInCentered {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ============================================
   COOKIE BANNER
   ============================================ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.98);
  border-top: 1px solid rgba(214, 9, 9, 0.3);
  padding: 1.5rem 2rem;
  z-index: 9000;
  backdrop-filter: blur(10px);
}

.cookie-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-content p {
  flex: 1;
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0;
  min-width: 250px;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-buttons .btn-primary,
.cookie-buttons .btn-secondary {
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
}

.cookie-buttons .btn-secondary {
  border-color: var(--white);
  color: var(--white) !important;
  background: transparent;
}

.cookie-buttons .btn-secondary:hover {
  background: var(--white);
  color: var(--black) !important;
}

/* ============================================
   BREAKPOINTS
   ============================================ */
@media (max-width: 1125px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  nav .cta-button {
    display: none;
  }
}

@media (max-width: 1024px) {
  .mx-perspectives-grid {
    grid-template-columns: 1fr;
  }

  .mx-process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .uslugi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 0;
  }

  body:not(.intro-playing):not(.intro-done) {
    padding-top: 70px;
  }

  body.intro-done {
    padding-top: 0;
  }

  .mx-hero {
    min-height: calc(100vh - 70px);
  }

  nav {
    padding: 0.75rem 1.5rem;
  }

  nav.scrolled {
    padding: 0.75rem 1.5rem;
  }

  .mx-section,
  .section-pad {
    padding: 4rem 1.5rem;
  }

  .home-audit-section,
  .home-problem-section {
    padding: 4rem 1.5rem;
  }

  .mx-about-grid,
  .mx-feature-split,
  .mx-feature-split.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr;
  }

  .mx-contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .mx-contact-section {
    padding: 4rem 1.5rem;
  }

  .mx-form-row {
    grid-template-columns: 1fr;
  }

  .mx-industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mx-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .mx-stats {
    gap: 2rem;
  }

  .mx-pilot-banner {
    padding: 2rem 1.5rem;
  }

  .mx-process-steps {
    grid-template-columns: 1fr;
  }

  .uslugi-grid {
    grid-template-columns: 1fr;
  }

  .uslugi-grid--inline2-mobilefix {
    grid-template-columns: 1fr !important;
  }

  footer {
    padding: 2.5rem 1.5rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .footer-logo-link img {
    width: 80px;
  }

  .footer-social {
    justify-content: center;
    gap: 1.5rem;
  }

  .footer-col {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .footer-col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
    min-height: 48px;
    margin-bottom: 0;
  }

  .footer-chevron {
    display: inline-block;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    transition: transform 0.3s;
  }

  .footer-col-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    gap: 0;
  }

  .footer-col-body a,
  .footer-col-body .footer-hours {
    padding: 0.65rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
  }

  .footer-col.open .footer-col-body {
    max-height: 400px;
    padding-bottom: 0.5rem;
  }

  .footer-col.open .footer-chevron {
    transform: rotate(180deg);
  }

  .footer-bottom {
    flex-direction: column-reverse;
    gap: 0.8rem;
    text-align: center;
    padding: 1.2rem 0 1.5rem;
    margin-top: 0.5rem;
  }

  .footer-updated {
    order: -1;
  }

  .footer-legal {
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-legal a {
    padding: 0.3rem 0.5rem;
  }

  .page-hero {
    min-height: 50vh;
    padding: 7rem 1.5rem 3rem;
  }

  #cookie-banner {
    padding: 1.5rem;
  }

  .cookie-content {
    flex-direction: column;
    gap: 1rem;
  }

  .cookie-buttons {
    width: 100%;
  }

  .cookie-buttons button {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .mx-hero h1 {
    font-size: 1.8rem;
    letter-spacing: -1px;
  }

  .mx-industry-grid {
    grid-template-columns: 1fr;
  }

  .mx-gallery {
    grid-template-columns: 1fr;
  }

  .mx-form {
    padding: 1.5rem;
  }

  .mx-hero-cta {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 1024px) and (orientation: landscape) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  nav .cta-button {
    display: none;
  }

  .page-hero {
    min-height: auto;
    padding: 6rem 2rem 3rem;
  }
}

/* Guides hub & shared red CTA band */
.cta-section-red {
  background: var(--red);
  color: var(--white);
  padding: 6rem 4rem;
  text-align: center;
  margin-top: 0;
}

.cta-section-red h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.cta-section-red p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .cta-section-red {
    padding: 4rem 1.5rem;
  }
}
