/* DESIGN SYSTEM - POTRZEBA ARCHITEKCI (SAGE GREEN & TECH) */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #ffffff;
  --secondary: #F4F6F4;
  --accent: #5D6E5E;
  --accent-dark: #3F4F40;
  --text-main: #3A453B;
  --text-light: #ffffff;
  --border-color: #5D6E5E;
  --font-main: 'Montserrat', sans-serif;
  --radius: 0px;
  --shadow: 0 2px 10px rgba(0,0,0,0.05);
  --shadow-lifted: 0 30px 60px rgba(0,0,0,0.12);
  --header-height: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    background: var(--primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 0.9rem;
}
img, picture, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-weight: 700; text-transform: uppercase; color: var(--accent); letter-spacing: 2px; }
h1 { font-size: 3rem; line-height: 1.1; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 40px; position: relative; display: inline-block; }
h2::after { content: ''; display: block; width: 40px; height: 3px; background: var(--accent); margin-top: 10px; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.section { padding: 100px 0; border-bottom: 1px solid rgba(93, 110, 94, 0.2); }

.model-section { background: var(--primary); }

.model-wrapper {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, var(--secondary) 100%);
  border: 1px solid rgba(93, 110, 94, 0.2);
  border-radius: 32px;
  box-shadow: var(--shadow-lifted);
}

.model-wrapper model-viewer {
  display: block;
  width: 100%;
  border-radius: inherit;
  background: #ffffff;
}

.model-wrapper .model-hint {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.8);
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.model-load-btn {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: none;
  z-index: 2;
}

.model-load-btn.is-visible {
  display: inline-flex;
}

[data-model-wrapper].model-loading::after {
  content: 'Ladowanie modelu 3D...';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 14px 24px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

[data-model-wrapper].model-ready .model-load-btn {
  display: none;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 18px 40px; background: var(--accent); color: #fff;
  font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  text-decoration: none; border: 1px solid var(--accent); transition: all 0.3s; cursor: pointer;
}
.btn:hover { background: #fff; color: var(--accent); }
.btn-ghost {
  padding: 12px 28px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.75rem;
  transition: opacity 0.3s;
}
.btn-ghost:hover { opacity: 0.85; }

/* HEADER */
header { position: fixed; top: 0; width: 100%; background: rgba(255,255,255,0.9); z-index: 1000; box-shadow: var(--shadow); }
nav { height: 80px; display: flex; justify-content: space-between; align-items: center; padding: 0 40px; max-width: 1600px; margin: 0 auto; }
.logo { display: flex; flex-direction: column; color: var(--accent); text-decoration: none; font-weight: 900; font-size: 1.3rem; line-height: 0.9; width: 160px; gap: 5px; }
.logo span { display: flex; justify-content: space-between; width: 100%; }
.logo i { font-style: normal; }

.nav-links { display: flex; gap: 40px; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-main); text-transform: uppercase; font-weight: 600; font-size: 0.8rem; letter-spacing: 1px; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent); }

.nav-cta {
    padding: 10px 24px !important;
    background: var(--accent) !important;
    color: #fff !important;
    border: 1px solid var(--accent);
    text-transform: uppercase; font-size: 0.8rem; font-weight: 700; letter-spacing: 1px;
    transition: all 0.3s ease; display: inline-block;
}
.nav-cta:hover { background: transparent !important; color: var(--accent) !important; }

/* DROPDOWN */
.dropdown { position: relative; }
.dropdown-content { display: none; position: absolute; top: 100%; left: 0; background-color: #fff; min-width: 220px; border: 1px solid var(--accent); z-index: 1001; padding: 10px 0; }
.dropdown-content a { color: var(--text-main); padding: 12px 20px; display: block; border-bottom: 1px solid rgba(93, 110, 94, 0.1); text-transform: none; }
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background-color: var(--secondary); color: var(--accent); }
.dropdown:hover .dropdown-content { display: block; }


/* HERO */
.hero { position: relative; height: 100dvh; width: 100%; display: flex; align-items: center; overflow: hidden; }
.hero.hero--portfolio {
  height: auto !important;
  min-height: 50vh;
  padding: 100px 0 60px;
}
.hero-video-bg { position: absolute; inset: 0; z-index: -1; }
.hero-video-bg video { width: 100%; height: 100%; object-fit: cover; }
.hero-mask {
  width: clamp(420px, 45vw, 640px);
  max-width: 640px;
  height: 100%;
  background: rgba(26, 26, 26, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 60px;
  position: relative;
  color: #fff;
}

.hero-mask.hero-mask--full {
  width: 100%;
  max-width: none;
  min-width: 0;
}
.hero-mask h1, .hero-mask h4, .hero-mask p { color: #fff !important; }

.hero.service-hero { height: auto; min-height: 70vh; padding: 160px 0 80px; background: var(--secondary); }
.hero.service-hero .hero-mask { width: 100%; max-width: 1200px; height: auto; margin: 0 auto; border-right: none; border-left: 5px solid var(--accent); padding: 60px; background: rgba(255, 255, 255, 0.95); align-items: flex-start; color: var(--text-main); }
.hero.service-hero .hero-mask h1, 
.hero.service-hero .hero-mask h4 { color: var(--accent) !important; }
.hero.service-hero .hero-mask p { color: #555 !important; }
.hero.service-hero .hero-mask > *:not(:last-child) { margin-bottom: 20px; }

.hero-socials { display: flex; gap: 12px; margin-top: 40px; }
.social-icon { width: 42px; height: 42px; border: 1px solid var(--accent); border-radius: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); transition: all 0.3s ease; background: transparent; text-decoration: none; }
.hero-mask .social-icon { border-color: rgba(255,255,255,0.3); color: #fff; }
.hero-mask .social-icon:hover { background: #fff; color: var(--accent); border-color: #fff; }
.social-icon svg { width: 20px; height: 20px; }
.social-icon:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }



/* SPECIALIZATION LIST (Single Column) */
.services-list { display: flex; flex-direction: column; margin-top: 60px; }
.service-row { display: grid; grid-template-columns: 0.5fr 1.5fr 2fr; gap: 40px; padding: 50px 0; border-top: 1px solid rgba(93, 110, 94, 0.4); align-items: baseline; transition: background 0.3s; }
.service-row:last-child { border-bottom: 1px solid rgba(93, 110, 94, 0.4); }
.service-row:hover { background: rgba(93, 110, 94, 0.05); }
.service-num { font-size: 1rem; font-weight: 700; color: var(--accent); letter-spacing: 2px; }
.service-title { font-size: 1.5rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--text-main); margin: 0; }
.service-desc { font-size: 0.95rem; color: #555; line-height: 1.7; }
.service-tag { display: inline-block; padding: 5px 10px; border: 1px solid var(--accent); color: var(--accent); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 1px; margin-right: 5px; margin-bottom: 5px; }

/* PROJECT GALLERY - FILMSTRIP MODE */
.project-gallery-section { 
    background: #fff; 
    padding: 40px 0; 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
    overflow: hidden;
}

.project-gallery-wrapper {
    position: relative;
    width: 100%;
    height: 70vh; /* Fixed height for consistency */
    display: flex;
    align-items: center;
}

.project-gallery-track {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 20px; /* Space between images */
    overflow-x: auto; /* Enable scrolling */
    scroll-snap-type: x mandatory;
    padding: 0 4vw; /* Side padding */
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none; /* Hide scrollbar IE */
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
}
.project-gallery-track::-webkit-scrollbar { display: none; } /* Hide scrollbar Chrome */

.project-gallery-track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.project-slide {
    height: 100%;
    width: auto; /* Natural width based on image ratio */
    flex: 0 0 auto; /* Don't shrink */
    position: relative;
    scroll-snap-align: center;
    transition: opacity 0.3s;
}

.project-slide img {
    height: 100%;
    width: auto; /* Maintain aspect ratio */
    max-width: 100%;
    object-fit: contain; /* Ensure full visibility */
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Professional shadow */
}

/* Remove old Ken Burns for this clean layout */
.slider-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.slider-arrow {
    pointer-events: auto;
    width: 10vw; /* Large hover area on sides */
    height: 100%;
    background: transparent;
    border: none;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: background 0.3s ease;
    opacity: 1; /* Always visible */
}

.slider-arrow--hidden {
    visibility: hidden;
    pointer-events: none;
}

.slider-arrow:hover {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}

.slider-arrow.left { justify-content: flex-start; padding-left: 30px; }
.slider-arrow.right { justify-content: flex-end; padding-right: 30px; }

.project-hero {
    height: 80vh;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    color: #fff;
    background-size: cover;
    background-position: center;
}
.project-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.project-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}
.project-tags { margin-bottom: 20px; }
.project-intro { margin-bottom: 40px; }
.project-meta-tag {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-right: 10px;
    text-transform: uppercase;
    color: var(--accent);
}
.project-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-main);
}
.project-meta-list li { margin-bottom: 16px; line-height: 1.5; }
.project-description p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #444;
    line-height: 1.6;
}

@media (min-width: 901px) {
    body { font-size: 1rem; }
    .project-description p { font-size: 1rem; }
    .project-meta-list { font-size: 0.9rem; }
}

.tech-drawings-slider {
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    background: var(--secondary);
    padding: 40px 0;
}
.drawing-track {
    display: flex;
    transition: transform 0.5s ease;
}
.drawing-item {
    min-width: 100%;
    display: flex;
    justify-content: center;
}
.drawing-item img {
    max-height: 600px;
    max-width: 90%;
    object-fit: contain;
    border: 1px solid rgba(0,0,0,0.1);
    background: #fff;
    padding: 20px;
}
.tech-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid var(--accent);
    color: var(--accent);
    cursor: pointer;
    z-index: 5;
}
.tech-arrow.left { left: 20px; }
.tech-arrow.right { right: 20px; }

@media (max-width: 768px) {
    .project-gallery-wrapper { height: 50vh; }
    .project-gallery-track { padding-left: 5vw; }
    .project-slide { min-width: 90vw; margin: 0 5px; }
    .slider-arrow { opacity: 1; width: 15vw; background: rgba(255,255,255,0.2); }
}

/* PORTFOLIO SLIDER (Main Page) */
.slider-container { position: relative; overflow: hidden; margin-top: 40px; }
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    background: rgba(255,255,255,0.95);
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    z-index: 5;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }
.slider-btn:hover { background: var(--accent); color: #fff; box-shadow: 0 15px 30px rgba(93,110,94,0.35); }
.slider-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(93,110,94,0.25); }
.slider-track { 
    display: flex; 
    gap: 20px; 
    transition: transform 0.5s ease-in-out;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    transform: none !important;
    width: 100%;
}
.slider-track::-webkit-scrollbar { display: none; }

.slide { 
    min-width: 600px !important; 
    height: 400px !important; 
    position: relative; 
    background: #000; 
    border: 1px solid var(--border); 
    flex-shrink: 0; 
    scroll-snap-align: center;
}
.slide img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.slide-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: rgba(93, 110, 94, 0.9); color: #fff; }
.slide-info h3, .slide-info p { color: #fff; margin: 0; }
.slide-info h3 { font-size: 1.1rem; margin-bottom: 5px; }

/* Dostosowanie mobilne slidera */
@media (max-width: 768px) {
    .slide {
        min-width: 85vw !important;
        height: 250px !important;
    }
    .slider-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    .slider-btn.prev { left: 15px; }
    .slider-btn.next { right: 15px; }
}

/* ABOUT SECTION */
.about-container { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; align-items: center; }
.about-photo-wrapper { position: relative; max-width: 500px; margin: 0 auto; }
.about-photo { width: 100%; height: auto; filter: none; }
.architect-stamp {
  position: absolute; bottom: 20px; right: -20px; width: 180px; height: 180px;
  background: rgba(255,255,255,0.95); border: 3px solid var(--accent); border-radius: 50%;
  color: var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; font-weight: 700; font-size: 0.85rem; line-height: 1.2; transform: rotate(-10deg); box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.stamp-inner { border: 1px solid var(--accent); width: 160px; height: 160px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* VIDEO WRAPPER */
.video-wrapper { width: 100%; height: 600px; position: relative; overflow: hidden; background: transparent; }
.video-wrapper video,
.video-wrapper iframe { width: 100%; height: 100%; object-fit: cover; border: none; }

.virtual-tour-frame {
    width: 100%;
    height: 700px;
    background: #000;
    border: 1px solid var(--accent);
}

@media (max-width: 768px) {
    .virtual-tour-frame {
        height: 250px;
    }
}

/* FOOTER */
footer { background: var(--secondary); padding: 80px 0 0; margin-top: auto; border-top: 1px solid var(--border); color: var(--text-main); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.footer-col h4 { font-size: 0.9rem; color: var(--accent); margin-bottom: 25px; letter-spacing: 2px; text-transform: uppercase; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: 12px; font-size: 0.9rem; }
.footer-links a { color: #666; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
.footer-contact-text li { margin-bottom: 14px; color: #555; line-height: 1.5; }
.footer-contact-text span { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: #8d8d8d; margin-bottom: 6px; }
.footer-contact-text p { margin: 0; font-size: 0.95rem; color: var(--text-main); font-weight: 500; }
.footer-contact-text a { color: inherit; text-decoration: none; }
.footer-contact-text a:hover { color: var(--accent); }
.footer-bottom { background: var(--accent); color: #fff; text-align: center; padding: 20px; font-size: 0.8rem; letter-spacing: 2px; }
footer .hero-socials { margin-top: 20px; justify-content: flex-start; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    nav { padding: 0 20px; } .nav-links { display: none; }
    .mobile-menu-icon { display: block !important; font-size: 1.5rem; cursor: pointer; color: var(--accent); }
    .hero-mask { width: 100%; padding: 40px; border-right: none; border-left: 5px solid var(--accent); }
    .hero.service-hero { padding: 120px 0 60px; }
    .hero.service-hero .hero-mask { padding: 40px; }
    .hero.service-hero { height: auto !important; min-height: 60vh !important; padding: 120px 0 60px !important; }
    .hero.service-hero .hero-mask { width: 100% !important; padding: 40px 20px !important; border-left: 5px solid var(--accent) !important; }
    
    /* Globalne wymuszenie jednej kolumny dla wszystkich układów grid i flex */
    .container div[style*="display: grid"],
    .container div[style*="display: flex"]:not(.hero-socials):not(.contact-item),
    .container [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    /* Wyjątki dla mniejszych elementów, które powinny zostać w rzędzie jeśli trzeba, 
       ale tutaj celujemy w 'całkowicie 1-kolumnowe' dla głównych sekcji */
    
    .footer-grid { grid-template-columns: 1fr !important; }
    .service-row { grid-template-columns: 1fr; gap: 15px; padding: 30px 0; }
    .project-gallery-slider { margin: 0 20px; aspect-ratio: 4/3; }
    .about-container { grid-template-columns: 1fr; }
    
    .hero-mask .btn { width: 100%; max-width: 300px; }
    
    /* Fix for Service Hero on Mobile (Light Background & Stacked Buttons) */
    .hero.service-hero .hero-mask {
        background: rgba(255, 255, 255, 0.98) !important;
        color: var(--text-main) !important;
        border-left: 5px solid var(--accent) !important;
    }
    .hero.service-hero .hero-mask h1,
    .hero.service-hero .hero-mask h4,
    .hero.service-hero .hero-mask p {
        color: var(--text-main) !important;
    }
    .hero.service-hero .hero-mask h1,
    .hero.service-hero .hero-mask h4 {
        color: var(--accent) !important;
    }
    .hero.service-hero .hero-mask div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
        align-items: center !important;
    }
    .hero.service-hero .hero-mask div[style*="display: flex"] .btn {
        margin: 0 !important;
    }

    /* Mobile-friendly typography + spacing */
    body { transition: none; }
    h1 { font-size: 2.2rem; letter-spacing: 1px; }
    h2 { font-size: 1.5rem; margin-bottom: 24px; }
    h3 { font-size: 1.05rem; letter-spacing: 1px; }
    .section { padding: 15px 0 40px !important; }
    .hero + .section {
        padding-top: 10px !important;
        margin-top: 0 !important;
    }
    .hero {
        min-height: auto;
        padding: 0 !important;
    }
    .hero.service-hero {
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }
    #lokalnie {
        margin-top: 0;
        padding-top: 15px !important;
    }
    .hero-socials {
        margin-top: -14px !important;
        align-self: center;
        justify-content: center;
        gap: 10px;
    }
    .hero-mask { 
        padding: calc(var(--header-height) + 40px) 25px 40px !important; 
        gap: 12px; 
        width: 100%;
        border-left: 5px solid var(--accent);
        box-sizing: border-box;
    }
    .hero-mask h1 { font-size: 2.2rem; }
    .hero-mask h4 { font-size: 0.9rem; letter-spacing: 2px; }
    .hero-mask p { font-size: 0.95rem; }
    .hero-socials { margin-top: 20px; }
    .hero.hero--portfolio {
        min-height: 0;
        height: auto !important;
        padding: calc(var(--header-height) + 6px) 0 8px;
        margin-top: 0;
    }
    .hero.hero--portfolio .hero-mask {
        height: auto;
        min-height: 0;
        padding: 10px 20px 12px;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    .btn { padding: 14px 28px; letter-spacing: 1px; font-size: 0.85rem; }

    /* Media heights and galleries */
    .hero-video-bg,
    .hero-video-bg video { width: 100%; height: 100%; object-fit: cover; }
    .video-wrapper { height: 320px; }
    .project-gallery-section { padding: 25px 0; }
    .project-gallery-wrapper { height: 320px; }
    .project-slide img { object-fit: cover; width: 100%; height: 100%; }

    /* Services / grids */
    .services-list { margin-top: 30px; }
    .service-row { padding: 25px 0; gap: 20px; }
    .service-title { font-size: 1.2rem; letter-spacing: 1px; }
    .service-desc { font-size: 0.9rem; }

    /* Footer rhythm */
    .footer-col h4 { font-size: 0.8rem; letter-spacing: 1px; }
    .footer-contact-text li { margin-bottom: 12px; }
    .footer-contact-text span { font-size: 0.65rem; }
    .footer-contact-text p { font-size: 0.9rem; }
    footer .hero-socials {
        margin-top: 30px !important;
        justify-content: flex-start !important;
    }
}
/* Ken Burns effect removed for grid layout */


/* --- POPRAWKA RZUTW (WIKSZE, JASNE TO) --- */
.tech-drawings-slider {
    background: #fff !important; /* Usuwamy szare to */
    padding: 40px 0 !important;
}
.drawing-item img {
    max-height: 85vh !important; /* Znacznie wiksze rzuty */
    max-width: 100% !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.drawing-track {
    align-items: center;
}


/* --- ELEGANCKA NAWIGACJA PROJEKTW --- */
.project-nav-bar {
    padding: 40px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin: 60px 0;
}
.project-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}
.nav-project-link {
    text-decoration: none;
    color: #999;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}
.nav-project-link:hover {
    color: var(--accent);
}
.nav-project-link.prev:hover { transform: translateX(-5px); }
.nav-project-link.next:hover { transform: translateX(5px); }

.portfolio-back-btn {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(93, 110, 94, 0.3); /* Subtelniejszy border */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--text-main); /* Usunięcie fioletu */
    text-decoration: none;
    background: #fff;
}
.portfolio-back-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(93, 110, 94, 0.2);
}


/* --- ELEGANCKIE LINKI 'ZOBACZ WICEJ' --- */
.btn-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-main);
    text-decoration: none;
    padding-bottom: 8px;
    border: none;
    transition: color 0.3s ease;
    margin-top: 20px;
}
.btn-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent); /* Kolor linii */
    transform: scaleX(0.2); /* Domylnie krtka linia */
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.btn-link:hover {
    color: var(--accent);
}
.btn-link:hover::before {
    transform: scaleX(1); /* Rozwija si na ca szeroko */
}


/* --- FORMULARZE W USŁUGACH --- */
.wizard-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 50px;
    align-items: start;
}
.wizard-container {
    background: #fff;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.wizard-container h2 {
    display: block;
    width: 100%;
    white-space: normal;
    letter-spacing: 1px;
    line-height: 1.2;
    word-break: break-word;
    text-wrap: balance;
}
.wizard-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.wizard-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wizard-form label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #777;
}
.wizard-form input,
.wizard-form textarea,
.wizard-form select {
    width: 100%;
    border: 1px solid #dcdcdc;
    padding: 14px 18px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    background: #fafafa;
    color: var(--text-main);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.wizard-form input:focus,
.wizard-form textarea:focus,
.wizard-form select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(93,110,94,0.12);
    background: #fff;
}
.wizard-form textarea { resize: vertical; min-height: 140px; }
.wizard-form .full-width { grid-column: span 2; }
.wizard-form .btn { margin-top: 20px; }

.contact-sidebar {
    position: sticky;
    top: 100px;
}
.contact-card-highlight {
    border: 1px solid var(--accent);
    padding: 30px;
    background: #fff;
    box-shadow: 0 20px 45px rgba(0,0,0,0.08);
}
.contact-card-highlight h3 { margin-bottom: 10px; }
.contact-card-highlight p { color: #666; margin-bottom: 20px; }
.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 20px;
}
.contact-details p { margin: 0 0 10px; }

@media (max-width: 992px) {
    .wizard-layout { grid-template-columns: 1fr; }
    .wizard-container { order: 2; }
    .contact-sidebar { order: 1; position: static; }
}

@media (max-width: 600px) {
    .wizard-form .form-grid { grid-template-columns: 1fr; }
    .wizard-form .full-width { grid-column: span 1; }
    .wizard-container { padding: 30px; }
    .contact-card-highlight { padding: 25px; }
    .wizard-container h2 {
        font-size: 1.6rem;
        letter-spacing: 0.5px;
    }
}

/* --- MAPA INWESTYCJI (TIMELINE) --- */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
    position: relative;
}
.process-timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(93, 110, 94, 0.2);
    z-index: 1;
}
.timeline-step {
    position: relative;
    z-index: 2;
}
.timeline-dot {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}
.timeline-step:hover .timeline-dot {
    transform: scale(1.1);
    background: var(--accent-dark);
}
.timeline-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--accent);
}
.timeline-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 900px) {
  .process-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .process-timeline {
    grid-template-columns: 1fr;
  }
  .process-timeline::before {
    display: none;
  }
  .timeline-step {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(93, 110, 94, 0.1);
    text-align: center;
  }
  .timeline-step:last-child {
    border-bottom: none;
  }
  .timeline-dot {
    margin: 0 auto 20px;
  }
}

/* --- LICZBY (STATS BAR) --- */
.stats-bar {
    background: var(--accent);
    padding: 80px 0;
    color: #fff;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}
.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    display: block;
    color: #fff;
    letter-spacing: -1px;
}
.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

/* --- WARUNKI WSPÓŁPRACY (FAQ) --- */
.faq-grid {
    max-width: 900px;
    margin: 60px auto 0;
}
.faq-item {
    border-bottom: 1px solid rgba(93, 110, 94, 0.2);
    margin-bottom: 10px;
}
.faq-question {
    width: 100%;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}
.faq-question:hover {
    color: var(--accent-dark);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer p {
    padding: 0 0 25px 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}
.faq-icon {
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg); /* Optional: changes if you want to rotate or change symbol */
}

/* --- PORTFOLIO GRID (zgodny z kopią) --- */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0 60px;
    flex-wrap: wrap;
}
.filter-btn {
    background: transparent;
    border: none;
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #aaa;
    cursor: pointer;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}
.filter-btn.active,
.filter-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    will-change: transform, opacity;
}
.portfolio-item {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
    backface-visibility: hidden;
    transform: translateZ(0); /* Force GPU */
}
.portfolio-item:hover {
    transform: translateY(-8px) translateZ(0);
}
.portfolio-item.hidden {
    display: none !important;
}

/* Smooth reveal when filtering */
.is-filtering .portfolio-item:not(.hidden) {
    animation: portfolioFadeIn 0.4s ease forwards;
}

@keyframes portfolioFadeIn {
    from { opacity: 0; transform: translateY(10px) translateZ(0); }
    to { opacity: 1; transform: translateY(0) translateZ(0); }
}

.portfolio-thumb {
    width: 100%;
    height: 280px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(93,110,94,0.2);
    background: var(--secondary); /* Placeholder color while loading */
}
.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portfolio-meta {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.portfolio-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}
.portfolio-item.hidden {
    display: none !important;
}

/* --- PRICING SECTION (uslugi-wizualizacje) --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.pricing-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
}
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--accent);
}
.pricing-card.highlight {
    border: 2px solid var(--accent);
    background: #fdfdfd;
}
.pricing-header h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}
.pricing-desc {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 30px;
    min-height: 60px;
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}
.pricing-features li {
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
    padding-left: 28px;
}
.pricing-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 4px;
}
.pricing-card .btn {
    width: 100%;
    text-align: center;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- FINAL MOBILE & UX PATCH --- */
header { z-index: 2000 !important; }
.mobile-menu-toggle { display: none; }

@media (max-width: 1024px) {
    nav { padding: 0 20px; position: relative; }
    .nav-links { 
        display: none; position: fixed !important; top: 80px !important; left: 0 !important; width: 100% !important; height: calc(100vh - 80px) !important;
        background: #fff !important; flex-direction: column !important; padding: 40px 20px !important; gap: 30px !important; z-index: 1999 !important; box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
        align-items: flex-start !important; text-align: left !important;
    }
    .nav-links.active { display: flex !important; }
    .dropdown { width: 100%; }
    .dropdown-content {
        position: static;
        border: none;
        padding: 0;
        margin-top: 10px;
        display: none;
        background: transparent;
        box-shadow: none;
    }
    .nav-links a { width: 100%; text-align: left; }
    .dropdown-content a {
        padding: 10px 0;
        border-bottom: 1px solid rgba(93,110,94,0.15);
    }
    .dropdown.open .dropdown-content { display: block !important; }
    .mobile-menu-toggle { 
        display: flex !important; 
        visibility: visible !important; 
        opacity: 1 !important;
        pointer-events: auto !important;
        align-items: center !important; 
        justify-content: center !important;
        width: 50px !important; height: 50px !important; 
        font-size: 2.2rem !important; cursor: pointer !important; 
        color: var(--accent) !important; 
        z-index: 2100 !important; background: none !important; 
        border: none !important; position: relative !important;
    }
    .hero { 
        height: 100dvh !important; 
        min-height: 100dvh !important; 
        display: flex !important; 
        align-items: center !important; 
        justify-content: center !important;
        padding-top: 0 !important;
        margin-top: var(--header-height) !important;
    }
    .hero-mask { 
        width: 100% !important; 
        min-width: 100% !important; 
        height: 100% !important;
        padding: 80px 25px 40px; 
        background: rgba(26, 26, 26, 0.92) !important; 
        border: none !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
    .hero-mask h1,
    .hero-mask h4,
    .hero-mask p {
        text-align: center !important;
    }
    .hero-mask .btn {
        align-self: center !important;
    }
    .hero.hero--portfolio {
        height: auto !important;
        min-height: 0 !important;
        margin-top: 0 !important;
        padding-top: calc(var(--header-height) + 6px) !important;
        padding-bottom: 8px !important;
        justify-content: flex-start !important;
    }
    .hero.hero--portfolio .hero-mask {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        padding: 10px 20px 12px !important;
        justify-content: flex-start !important;
        align-items: center !important;
        text-align: center !important;
    }
    .hero-mask h1 { font-size: 2.4rem !important; line-height: 1.1 !important; margin-bottom: 15px !important; color: #fff !important; }
    .hero-mask h4 { font-size: 0.7rem !important; letter-spacing: 3px !important; margin-bottom: 15px !important; color: rgba(255,255,255,0.8) !important; }
    .hero-mask p { font-size: 1rem !important; margin: 20px 0 30px !important; color: rgba(255,255,255,0.9) !important; max-width: 400px; }
    .hero-mask .btn { width: 100%; max-width: 300px; }
    .about-container { grid-template-columns: 1fr; gap: 40px; }
    .service-row { grid-template-columns: 1fr; gap: 15px; padding: 30px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    body { font-size: 0.95rem; }
    h1 { font-size: 2.2rem; letter-spacing: 1px; }
    h2 { font-size: 1.5rem; margin-bottom: 30px; }
    h3 { font-size: 1rem; }
    .section { padding: 80px 0; }
    .hero.service-hero {
        padding: calc(var(--header-height) - 52px) 0 6px !important;
        min-height: auto !important;
    }
    .hero.service-hero .hero-mask {
        margin-top: 0 !important;
        padding: 24px 20px 28px !important;
    }
    .hero.service-hero .hero-mask p { max-width: 100%; }
    .pricing-features li {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
        padding-left: 32px;
    }
    .pricing-features li > div:first-child {
        min-width: 0 !important;
        width: 100%;
    }
}

@media (max-width: 600px) {
    body { font-size: 0.9rem; }
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 0.95rem; }
    .section { padding: 60px 0 !important; }
    .container { padding: 0 20px !important; }
    .hero-mask { padding: 40px 20px !important; background: rgba(26, 26, 26, 0.92) !important; }
    .hero-mask h1 { font-size: 1.8rem !important; }
    .hero.service-hero { padding: calc(var(--header-height) - 56px) 0 4px !important; min-height: auto !important; }
    .hero.service-hero .hero-mask { padding: 20px !important; }
    .hero.service-hero .hero-mask h1 { font-size: 1.4rem !important; }
    .hero.service-hero .hero-mask p { font-size: 0.9rem !important; }
    .hero-video-bg video { width: 100%; height: 100%; object-fit: cover; }
    .wizard-layout { display: flex !important; flex-direction: column !important; gap: 30px !important; }
    .wizard-container, .contact-card-highlight { padding: 25px 15px !important; width: 100% !important; box-sizing: border-box !important; }
    .wizard-form .form-grid { grid-template-columns: 1fr !important; gap: 15px !important; }
    .wizard-form .full-width { grid-column: span 1 !important; }
    .contact-item span, .contact-item a { font-size: 0.95rem !important; }
    .stats-grid { grid-template-columns: 1fr !important; }
    .stat-number { font-size: 2.5rem !important; }
    .model-wrapper model-viewer { height: 420px !important; }
    .slide-info { display: none !important; }
}

/* Fix for modern contact card */
.contact-item { display: flex !important; align-items: flex-start !important; gap: 15px !important; margin-bottom: 25px !important; text-align: left !important; }
.contact-item svg { width: 20px !important; height: 20px !important; color: var(--accent) !important; flex-shrink: 0 !important; margin-top: 3px !important; }
.contact-item div { display: flex !important; flex-direction: column !important; }
.contact-item label { font-size: 0.65rem !important; text-transform: uppercase !important; letter-spacing: 1px !important; font-weight: 700 !important; color: #aaa !important; margin-bottom: 4px !important; display: block !important; }
.contact-item span, .contact-item a { font-weight: 700 !important; color: var(--text-main) !important; text-decoration: none !important; font-size: 1rem !important; }

/* --- ADAPTACJE & TABLES (Moved from inline) --- */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
}
.comparison-table th {
    background: var(--accent);
    color: #fff;
    text-align: left;
    padding: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.comparison-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    font-size: 0.9rem;
}
.comparison-table tr:hover {
    background: #fcfcfc;
}
.risk-tag {
    display: inline-block;
    padding: 4px 8px;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.risk-high { background: #ffebee; color: #c62828; }
.risk-low { background: #e8f5e9; color: #2e7d32; }

.pothole-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    margin-top: 50px;
}
.pothole-item {
    padding: 30px;
    border: 1px solid #eee;
    transition: border-color 0.3s;
}
.pothole-item:hover { border-color: var(--accent); }
.pothole-item h3 { font-size: 1rem; margin-bottom: 15px; color: var(--accent); }
.cost-impact { font-weight: 800; color: #333; margin-top: 15px; display: block; }

.inventory-call-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    margin-top: 40px;
}
.inventory-call-card {
    background: #fff;
    border: 1px solid rgba(58, 69, 59, 0.15);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}
.inventory-call-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(93, 110, 94, 0.15);
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.75rem;
}
.inventory-call-card h3 {
    margin-bottom: 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.inventory-call-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive Table (Card View) & Pothole Grid */
@media (max-width: 1024px) {
    .pothole-grid { 
        grid-template-columns: 1fr !important; 
    }
    .inventory-call-grid {
        grid-template-columns: 1fr;
    }
    .inventory-call-card {
        padding: 24px;
    }
    
    /* Transform table to cards */
    .comparison-table, .comparison-table tbody, .comparison-table tr, .comparison-table td {
        display: block;
        width: 100%;
    }
    .comparison-table thead {
        display: none; /* Hide standard headers */
    }
    .comparison-table tr {
        margin-bottom: 30px;
        border: 1px solid #eee;
        background: #fff;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }
    .comparison-table td {
        padding: 10px 0;
        border-bottom: none;
        position: relative;
    }
    /* First cell (Title) styling */
    .comparison-table td:first-child {
        font-size: 1.1rem;
        border-bottom: 1px solid var(--accent);
        margin-bottom: 15px;
        padding-bottom: 15px;
        color: var(--accent);
    }
    /* Add labels for context */
    .comparison-table td:nth-child(2)::before { content: "ZAKRES PRAC: "; font-weight: 700; font-size: 0.7rem; color: #999; display: block; margin-bottom: 5px; }
    .comparison-table td:nth-child(3)::before { content: "RYZYKO: "; font-weight: 700; font-size: 0.7rem; color: #999; display: block; margin-bottom: 5px; }
}


/* --- ROI BOX (Dark Section from Nadzor) --- */

.roi-box {

    background: #1a1a1a;

    color: #fff;

    padding: 40px;

    margin-top: 40px;

}

.roi-calc {

    display: flex;

    justify-content: space-between;

    align-items: center;

    border-top: 1px solid #444;

    padding-top: 20px;

    margin-top: 20px;

}

.roi-value {

    font-size: 2.5rem;

    color: var(--accent);

    font-weight: 800;

}

@media (max-width: 900px) {

    .roi-calc { flex-direction: column; align-items: flex-start; gap: 20px; }

}



@media (max-width: 600px) {
  .case-study-title { font-size: 1.1rem; line-height: 1.3; letter-spacing:0.4px; hyphens:auto; }
  .case-study-title span { white-space:normal; display:block; }
  .case-study-gallery figure { display:flex; justify-content:center; }
  .case-study-gallery img { display:block; margin:0 auto; max-width:100%; height:auto; }
  .project-gallery-track .project-slide { display:flex; justify-content:center; }
  .project-gallery-track .project-slide img { display:block; margin:0 auto; max-width:100%; height:auto; }
  .slide-info h3 { font-size: 0.9rem; line-height: 1.3; white-space: normal; word-break: break-word; }
  .project-hero + .section h1 { font-size: 1.4rem; line-height: 1.25; word-break: break-word; hyphens: auto; letter-spacing:0; }
}
