/*
Theme Name: DroneMap
Author: Klikon Media
Description: Profesjonalny motyw dla firmy geodezyjnej. PHP 8.4 + Vanilla CSS + ACF PRO.
Version: 1.0
Text Domain: dronemap
*/

/* --- CSS Variables (Klikon Media) --- */
:root {
    --primary: #1d39dc;
    --secondary: #1e293b;
    --text-dark: #111827;
    --text-light: #f3f4f6;
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- Page Loader (strona główna) – logo w 3D na białym tle --- */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader-inner {
    perspective: 800px;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-loader-logo {
    width: 140px;
    height: auto;
    max-height: 148px;
    object-fit: contain;
    transform-style: preserve-3d;
    backface-visibility: visible;
    animation: page-loader-spin3d 3.5s linear infinite;
    filter: drop-shadow(0 0 8px rgba(29, 57, 220, 0.3));
}

@keyframes page-loader-spin3d {
    0% {
        transform: rotateY(0deg) scale(1);
    }
    25% {
        transform: rotateY(90deg) scale(0.95);
    }
    50% {
        transform: rotateY(180deg) scale(1);
    }
    75% {
        transform: rotateY(270deg) scale(0.95);
    }
    100% {
        transform: rotateY(360deg) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-loader-logo {
        animation: none;
        opacity: 0.9;
    }
}

/* --- Main Header --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9998;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

body.admin-bar .main-header {
    top: 32px;
}

.main-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.main-header .site-branding a {
    display: block;
}

.main-header .site-branding img {
    height: 64px;
    width: auto;
    object-fit: contain;
    transition: filter 0.3s ease;
}

@media (min-width: 768px) {
    .main-header .site-branding img {
        height: 72px;
    }
}

.main-header .nav-menu,
.main-header .nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-header .nav-menu .menu-item {
    margin: 0;
    padding: 0;
}

.main-header .nav-container {
    display: flex;
    align-items: center;
}

.main-header .nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Dropdown (desktop): Usługi + podstrony */
.main-header .menu-item-has-children {
    position: relative;
}

.main-header .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #1d39dc;
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.main-header .menu-item-has-children:hover > .sub-menu {
    display: block;
}

.main-header .sub-menu .menu-item {
    border: none;
}

.main-header .sub-menu .nav-link {
    color: #fff;
    display: block;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.main-header .sub-menu .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hamburger: ikona 3 linie, na mobile zamienia się w X przy .is-open */
.main-header .hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    z-index: 10001;
    transition: color 0.2s ease;
}

.main-header .hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.main-header .hamburger.is-open .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.main-header .hamburger.is-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.main-header .hamburger.is-open .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.main-header.header-scrolled .hamburger {
    color: var(--text-dark);
}

.main-header .nav-menu .nav-link {
    color: var(--text-light);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.main-header .nav-link:hover {
    color: var(--primary);
}

.main-header.header-scrolled .nav-link {
    color: var(--text-dark);
}

.main-header.header-scrolled .nav-link:hover {
    color: var(--primary);
}

.main-header .header-cta {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    padding: 10px 20px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.main-header .header-cta:hover {
    opacity: 0.9;
}

.main-header.header-scrolled {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.main-header.header-scrolled .site-branding img {
    filter: brightness(0);
}

/* Na stronach pojedynczej realizacji – od razu ciemne logo i menu (białe tło strony) */
body.single-realizacje .main-header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
body.single-realizacje .main-header .site-branding img {
    filter: brightness(0);
}
body.single-realizacje .main-header .hamburger {
    color: var(--text-dark);
}
@media (min-width: 901px) {
    body.single-realizacje .main-header .nav-menu .nav-link {
        color: var(--text-dark);
    }
    body.single-realizacje .main-header .nav-link:hover {
        color: var(--primary);
    }
}

/* Mobile: na single realizacja pasek ma ciemne logo i hamburger; wysuwane menu zostaje ciemne tło + jasne linki */

/* Mobile: hamburger widoczny, menu wysuwane z prawej */
@media (max-width: 900px) {
    .main-header .hamburger {
        display: flex;
    }

    .main-header .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: #0f0f0f;
        padding: 80px 24px 24px;
        transition: right 0.3s ease;
        z-index: 10000;
        display: block;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }

    .main-header .nav-container.is-open {
        right: 0;
    }

    .main-header .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-header .nav-menu .menu-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-header .nav-menu .nav-link {
        display: block;
        padding: 1rem 0;
        color: #fff;
    }

    .main-header .sub-menu {
        position: static;
        display: none;
        background: rgba(29, 57, 220, 0.25);
        padding: 0.5rem 0 0.5rem 1rem;
        margin-bottom: 0.5rem;
        box-shadow: none;
    }

    .main-header .menu-item-has-children:hover > .sub-menu,
    .main-header .menu-item-has-children.is-open > .sub-menu {
        display: block;
    }

    .main-header .sub-menu .nav-link {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
}

body.no-scroll {
    overflow: hidden;
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-section .hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: -2;
}

.hero-section .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.75) 100%
    );
    z-index: -1;
}

.hero-section .hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-section h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.1;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    color: white;
}

@media (min-width: 768px) {
    .hero-section h1 {
        font-size: 6rem;
        line-height: 0.9;
    }
}

@media (min-width: 1024px) {
    .hero-section h1 {
        font-size: 7rem;
    }
}

.hero-section .hero-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(243, 244, 246, 0.9);
    max-width: min(36rem, 90vw);
    margin: 0 auto 2.5rem;
    padding: 0 0.5rem;
}

@media (min-width: 768px) {
    .hero-section .hero-subtitle {
        font-size: 1.25rem;
        max-width: 36rem;
        padding: 0;
    }
}

.hero-section .hero-cta {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    padding: 12px 32px;
    margin-bottom: 40px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

@media (min-width: 768px) {
    .hero-section .hero-cta {
        margin-bottom: 0;
    }
}

.hero-section .hero-cta:hover {
    opacity: 0.9;
}

/* --- Hero: scroll down (drone icon) --- */
.hero-section .hero-scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    cursor: pointer;
    padding-bottom: 0.5rem;
    transition: opacity 0.25s ease, color 0.25s ease;
}

.hero-section .hero-scroll-down:hover {
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.95);
}

.hero-section .hero-scroll-down .hero-scroll-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.hero-section .hero-scroll-down .hero-scroll-drone {
    width: 48px;
    height: 56px;
    display: block;
    animation: hero-drone-descend 3s ease-in-out infinite;
}

@keyframes hero-drone-descend {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.8;
    }
}

/* --- Scroll-triggered entrance animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(24px);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: none;
}

.animate-on-scroll.is-visible {
    animation: fadeInUp 0.7s ease-out forwards;
}

.animate-on-scroll.is-out {
    animation: fadeOutDown 0.5s ease-in forwards;
}

.features-grid .feature-card.animate-on-scroll:nth-child(1).is-visible { animation-delay: 0s; }
.features-grid .feature-card.animate-on-scroll:nth-child(2).is-visible { animation-delay: 0.1s; }
.features-grid .feature-card.animate-on-scroll:nth-child(3).is-visible { animation-delay: 0.2s; }
.features-grid .feature-card.animate-on-scroll:nth-child(4).is-visible { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .animate-on-scroll.is-visible,
    .animate-on-scroll.is-out {
        animation: none;
    }
}

/* --- About Section --- */
.about-section-wrapper {
    background: #f9fafb;
    padding: 100px 0;
    width: 100%;
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-section .about-content .about-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.about-section .about-content .about-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .about-section .about-content .about-heading {
        font-size: 3rem;
    }
}

.about-section .about-content .about-description {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.about-section .about-content .about-button {
    margin-bottom: 0;
}

.about-section .about-content .about-description p:last-child {
    margin-bottom: 0;
}

.about-section .about-content .about-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    padding: 12px 24px;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.about-section .about-content .about-button:hover {
    opacity: 0.9;
    transform: translateX(4px);
}

/* --- Features Grid (2x2) --- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature-card {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 200px;
    background: white;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 4px;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
    background: var(--primary);
    color: white;
}

.feature-card:hover .feature-title,
.feature-card:hover .feature-text {
    color: white;
}

.feature-card:hover .feature-text {
    opacity: 0.9;
}

/* Ikony SVG – kolor z currentColor, na hover biały */
.feature-card .feature-icon {
    margin-bottom: 1rem;
    color: var(--primary);
    transition: color 0.25s ease;
}

.feature-card .feature-icon svg {
    width: 48px;
    height: 48px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.feature-card:hover .feature-icon {
    color: white;
}

.feature-card .feature-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    transition: filter 0.25s ease;
}

/* Ikona z obrazka (np. SVG) – na hover biała */
.feature-card:hover .feature-icon img {
    filter: brightness(0) invert(1);
}

.feature-card .feature-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    transition: color 0.25s ease;
}

.feature-card .feature-text {
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-dark);
    opacity: 0.9;
    transition: color 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 900px) {
    .about-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .features-grid {
        order: -1;
    }
}

/* --- About Section Mobile: tekst pierwszy, kafelki pod spodem, jeden pod drugim --- */
@media (max-width: 768px) {
    .about-section-wrapper {
        padding: 60px 20px;
    }

    .about-section {
        display: flex;
        flex-direction: column;
        gap: 40px;
        padding: 0;
    }

    .about-section .about-content {
        order: 1;
        margin-bottom: 0;
        padding-bottom: 1rem;
    }

    .about-section .about-content .about-button {
        margin-bottom: 0;
        margin-top: 0.5rem;
    }

    .about-section .about-content .about-description {
        margin-bottom: 1.25rem;
    }

    .features-grid {
        order: 2;
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }

    .feature-card {
        width: 100%;
        padding: 1.5rem;
        min-height: 180px;
        aspect-ratio: auto;
    }
}

/* --- Ticker --- */
.ticker-wrap {
    overflow: hidden;
    width: 100%;
    background: var(--text-light);
    padding: 3rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
    .ticker-wrap {
        padding: 4.5rem 0;
    }
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    align-items: center;
    animation: marquee 20s linear infinite;
    will-change: transform;
}

@media (max-width: 768px) {
    .ticker-content {
        animation-duration: 10s;
    }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    padding-right: 2rem;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    letter-spacing: 0.05em;
    color: var(--text-dark);
}

@media (min-width: 768px) {
    .ticker-item {
        font-size: 4rem;
        gap: 3rem;
        padding-right: 3rem;
    }
}

.ticker-item .ticker-separator {
    color: var(--primary);
    font-size: 1.75rem;
}

@media (min-width: 768px) {
    .ticker-item .ticker-separator {
        font-size: 2.5rem;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* --- Services Section --- */
.services-section {
    padding: 100px 0;
    width: 100%;
    background: #fff;
}

.services-section .services-header {
    max-width: 1400px;
    margin: 0 auto 3rem;
    padding: 0 20px;
    text-align: center;
}

.services-section .services-label {
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto 0.75rem;
}

.services-section .services-subtitle {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.services-section .services-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-dark);
}

@media (min-width: 768px) {
    .services-section .services-heading {
        font-size: 3rem;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    padding: 40px;
    border: 1px solid #eee;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tło: stan początkowy – niewidoczne; hover – niebieski overlay + wyraźne zdjęcie (spójne z Realizacjami) */
.service-card .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    background-color: rgba(29, 57, 220, 0.85);
    transform: rotate(-8deg) scale(1.15);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.service-card .card-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: overlay;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .card-bg {
    opacity: 1;
    transform: rotate(0deg) scale(1.1);
}

.service-card:hover .card-bg img {
    opacity: 0.5;
}

/* Tekst nad tłem – czysta biel przy hoverze, maksymalny kontrast */
.service-card .card-content {
    position: relative;
    z-index: 2;
    transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1), text-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card .card-content .card-icon {
    margin-bottom: 1.25rem;
    color: var(--primary);
    transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card .card-content .card-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
    filter: brightness(0) saturate(100%) invert(28%) sepia(98%) saturate(2500%) hue-rotate(226deg) brightness(95%) contrast(92%);
    transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .card-content .card-icon img {
    filter: brightness(0) invert(1);
}

.service-card .card-content .card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card .card-content .card-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dark);
    opacity: 0.9;
    margin-bottom: 1rem;
    transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card .card-content .card-link {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card .card-content .card-link::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .card-content * {
    color: #fff !important;
}

.service-card:hover .card-content {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.service-card:hover .card-content .card-title {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 2px 10px rgba(0, 0, 0, 0.35);
}

.service-card:hover .card-content .card-desc {
    color: #fff;
    opacity: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.service-card:hover .card-content .card-link {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.service-card:hover .card-content .card-link::after {
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* --- Realizacje Section (Homepage Grid) --- */
.realizacje-section {
    padding: 100px 0;
    width: 100%;
    background: #f9fafb;
}

.realizacje-header {
    max-width: 1400px;
    margin: 0 auto 3rem;
    padding: 0 20px;
    text-align: center;
}

.realizacje-label {
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto 0.75rem;
}

.realizacje-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.realizacje-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    opacity: 0.85;
}

.realizacje-footer {
    text-align: center;
    margin-top: 2.5rem;
    padding: 0 20px;
}

.realizacje-link {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.realizacje-link:hover {
    opacity: 0.9;
}

/* --- Zaufali nam (logotypy firm) – strona główna --- */
.trusted-by-section {
    width: 100%;
    padding: 80px 0 100px;
    margin: 0;
    background: #fff;
}

.trusted-by-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.trusted-by-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.trusted-by-label {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin: 0 0 0.5rem;
}

.trusted-by-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-dark);
    margin: 0;
}

@media (min-width: 768px) {
    .trusted-by-heading {
        font-size: 2.5rem;
    }
}

.trusted-by-swiper-wrap {
    overflow: hidden;
    padding: 0 0 8px;
}

.trusted-by-swiper {
    overflow: hidden;
}

.trusted-by-swiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trusted-by-slide-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 80px;
    padding: 8px 0;
}

.trusted-by-logo {
    max-height: 80px;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: filter 0.25s ease, opacity 0.25s ease;
}

.trusted-by-swiper .swiper-slide:hover .trusted-by-logo {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 768px) {
    .trusted-by-section {
        padding: 56px 20px 72px;
    }
    .trusted-by-header {
        margin-bottom: 1.75rem;
    }
}

/* --- Realizacje Carousel (Swiper) --- */
.realizacje-carousel-section .realizacje-swiper-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 0 60px;
}

@media (max-width: 768px) {
    .realizacje-carousel-section .realizacje-swiper-wrap {
        padding: 0 20px 0 44px;
    }
}

.realizacje-swiper {
    overflow: visible;
    padding-bottom: 10px;
}

.realizacje-swiper .swiper-slide {
    height: auto;
}

.realizacje-slide-inner {
    position: relative;
    aspect-ratio: 4 / 3;
    min-height: 220px;
    border-radius: 6px;
    overflow: hidden;
}

.realizacje-slide-link {
    display: block;
    position: absolute;
    inset: 0;
    text-decoration: none;
    color: inherit;
}

.realizacje-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--secondary);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.realizacje-slide-link:hover .realizacje-slide-bg,
.realizacje-slide-inner:focus-within .realizacje-slide-bg {
    transform: scale(1.08);
}

.realizacje-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(29, 57, 220, 0);
    transition: background 0.4s ease;
}

.realizacje-slide-link:hover .realizacje-slide-overlay,
.realizacje-slide-inner:focus-within .realizacje-slide-overlay {
    background: rgba(29, 57, 220, 0.75);
}

.realizacje-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    transition: background 0.3s ease;
}

.realizacje-slide-link:hover .realizacje-slide-content,
.realizacje-slide-inner:focus-within .realizacje-slide-content {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
}

.realizacje-slide-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    transition: color 0.2s ease;
}

.realizacje-slide-link:hover .realizacje-slide-title,
.realizacje-slide-inner:focus-within .realizacje-slide-title {
    color: #fff;
}

.realizacje-slide-hidden {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Swiper navigation – minimalistyczne chevrony bez okrągłego tła */
.realizacje-swiper .swiper-button-prev::after,
.realizacje-swiper .swiper-button-next::after {
    display: none;
    content: none;
}

/* Strzałki niemal niewidoczne domyślnie – widoczne po najechaniu na karuzelę */
.realizacje-swiper-prev,
.realizacje-swiper-next {
    width: 50px;
    height: 50px;
    margin-top: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 4px;
    color: var(--primary);
    opacity: 0.2;
    transition: opacity 0.3s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.realizacje-carousel-section:hover .realizacje-swiper-prev,
.realizacje-carousel-section:hover .realizacje-swiper-next,
.realizacje-swiper-prev:hover,
.realizacje-swiper-next:hover {
    opacity: 1;
}

.realizacje-swiper-prev:hover,
.realizacje-swiper-next:hover {
    background: rgba(29, 57, 220, 0.15);
    color: #152dbb;
}

.realizacje-swiper-prev:hover {
    transform: translateY(-50%) translateX(-4px);
}

.realizacje-swiper-next:hover {
    transform: translateY(-50%) translateX(4px);
}

.realizacje-swiper-arrow {
    width: 28px;
    height: 28px;
    display: block;
    flex-shrink: 0;
}

.realizacje-swiper-prev {
    left: 12px;
}

.realizacje-swiper-next {
    right: 12px;
}

@media (max-width: 768px) {
    .realizacje-swiper-prev,
    .realizacje-swiper-next {
        display: none;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

.project-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    min-height: 200px;
    text-decoration: none;
    border-radius: 4px;
}

.project-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--secondary);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 57, 220, 0);
    transition: background 0.4s ease;
    z-index: 1;
}

.project-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.5rem;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    transition: background 0.3s ease;
}

.project-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
    margin: 0;
    transition: color 0.3s ease;
}

.project-card:hover .project-card-bg {
    transform: scale(1.1);
}

.project-card:hover .project-card-overlay {
    background: rgba(29, 57, 220, 0.6);
}

/* --- Single Project (single-realizacje.php) – zwykła strona z galerią, bez wrażenia overlay --- */
.site-main--single-realizacja {
    padding: 0;
    max-width: none;
    width: 100%;
    background: #fff;
}

.single-project {
    padding: 80px 0 100px;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.single-project-header {
    margin-bottom: 2.5rem;
}

.single-project-header-inner {
    max-width: 800px;
}

.single-project-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .single-project-title {
        font-size: 3.5rem;
    }
}

.single-project-meta {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    opacity: 0.85;
}

.single-project-location::after {
    content: ' · ';
}

.single-project-content {
    margin-bottom: 3rem;
}

.single-project-content-inner {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-dark);
}

.single-project-content-inner p:last-child {
    margin-bottom: 0;
}

/* --- Project Gallery (single) --- */
.project-gallery-wrap {
    margin: 3rem 0;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
}

@media (min-width: 640px) {
    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .project-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.project-gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4 / 3;
    background: var(--text-light);
}

.project-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

/* --- Other Projects (single page) --- */
.other-projects {
    padding: 100px 0 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.other-projects-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.other-projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .other-projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.other-projects-grid .project-card {
    aspect-ratio: 4 / 3;
}

/* --- Lightbox (widoczny tylko po kliknięciu w zdjęcie w galerii) --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    visibility: hidden;
}

.lightbox.is-open {
    display: flex;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* --- Site content (spacing below fixed header) --- */
.site-content {
    position: relative;
}

.site-main {
    padding: 2rem 20px;
}

/* --- FAQ Section (Pytania i Odpowiedzi) --- */
.faq-section {
    background: #0f0f0f;
    padding: 80px 0;
    width: 100%;
}

.faq-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.faq-col-intro .faq-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.faq-col-intro .faq-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
    margin: 0 0 1.25rem 0;
}

@media (min-width: 768px) {
    .faq-col-intro .faq-title {
        font-size: 2.75rem;
    }
}

.faq-description {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}

.faq-description p:last-child {
    margin-bottom: 0;
}

.faq-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1d39dc;
    color: #fff;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 28px;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.faq-button:hover {
    opacity: 0.9;
    transform: translateX(4px);
}

.faq-button-arrow {
    display: inline-block;
}

/* Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: border-color 0.2s ease;
}

.faq-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.faq-item.is-active .faq-question {
    color: var(--primary);
}

.faq-item.is-active .faq-icon {
    color: var(--primary);
    transform: rotate(180deg);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 0;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #fff;
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: rgba(255, 255, 255, 0.9);
}

.faq-item.is-active .faq-question:hover {
    color: var(--primary);
}

.faq-question-text {
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease, color 0.2s ease;
}

.faq-answer-wrap {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
}

.faq-answer-wrap.is-open {
    max-height: 500px;
    opacity: 1;
}

.faq-answer {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    padding: 0 0 1.25rem 0;
    padding-right: 2rem;
}

@media (max-width: 900px) {
    .faq-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .faq-col-intro {
        order: 1;
    }

    .faq-col-accordion {
        order: 2;
    }
}

/* --- Site Footer: Mapa (czysta) → Grid 4 kolumny → Sub-footer --- */
.site-footer {
    color: #fff;
}

/* Mapa na górze – tylko iframe, bez tekstów/overlay */
.footer-map-top {
    position: relative;
    width: 100%;
    height: 400px;
    line-height: 0;
    overflow: hidden;
}

/* Gradientowy overlay – płynne przejście mapy w czarne tło stopki */
.footer-map-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, #0f0f0f);
    pointer-events: none;
    z-index: 2;
}

.footer-map-top iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 400px;
    border: none !important;
    display: block;
    filter: grayscale(1) invert(0.9) brightness(0.8);
}

/* Grid 4 kolumny: Logo | BIURO | LINKI | SOCIAL MEDIA */
.footer-main-content {
    background: #0f0f0f;
    padding: 60px 0;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
}

.footer-col {
    font-family: var(--font-body);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin: 0 0 1rem 0;
    display: block;
}

.footer-dronemap-logo-link {
    display: inline-block;
}

.footer-dronemap-logo-link img,
.footer-col-logo .custom-logo-link img {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    vertical-align: middle;
}

.footer-address-text,
.footer-phone,
.footer-email {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-nav .footer-link {
    font-size: 0.95rem;
}

.footer-yt-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-yt-link:hover {
    color: var(--primary);
}

.footer-yt-icon {
    flex-shrink: 0;
}

/* Sub-footer: Copyright + Polityka prywatności (lewa) | Klikon Media (prawa) */
.sub-footer-bar {
    background: #000;
    padding: 20px 0;
    border-top: 1px solid #222;
    color: #888;
    font-size: 13px;
}

.sub-footer-bar-inner {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.sub-footer-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0;
}

.sub-footer-copy {
    font-family: var(--font-body);
    color: #888;
}

.sub-footer-sep {
    color: #666;
}

.sub-footer-privacy {
    font-family: var(--font-body);
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sub-footer-privacy:hover {
    color: var(--primary);
}

.sub-footer-credit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sub-footer-credit-text {
    font-family: var(--font-body);
    color: #888;
}

.sub-footer-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.sub-footer-klikon-logo {
    height: 25px;
    max-height: 25px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.sub-footer-logo-link:hover .sub-footer-klikon-logo {
    opacity: 1;
}

/* Responsywność: tablet 2 kolumny, mobile 1 kolumna */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .footer-map-top {
        height: 300px;
    }

    .footer-map-top iframe {
        min-height: 300px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-col-logo .footer-dronemap-logo-link,
    .footer-col-logo .custom-logo-link {
        display: flex;
        justify-content: center;
    }

    .footer-nav {
        align-items: center;
    }

    .footer-col-social {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .sub-footer-bar-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Mobile First (max-width: 768px) --- */
@media (max-width: 768px) {
    .main-header {
        height: 60px;
        padding: 0 12px;
    }

    .main-header .site-branding img {
        height: 52px;
    }

    .main-header .header-cta {
        font-size: 0.8rem;
        padding: 8px 14px;
        white-space: nowrap;
    }
}

/* Hero scroll indicator: ukryty na bardzo małych ekranach (< 400px) dla lepszego UX */
@media (max-width: 400px) {
    .hero-section .hero-scroll-down {
        display: none;
    }
}

/* ========== Realizacje – karuzela Swiper (layout poziomy + slide-bg + nawigacja) ========== */
.realizacje-swiper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.realizacje-swiper .swiper-wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    transition-property: transform;
}

.realizacje-swiper .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: auto;
}

@media (min-width: 640px) {
    .realizacje-swiper .swiper-slide {
        width: 50%;
    }
}

@media (min-width: 1024px) {
    .realizacje-swiper .swiper-slide {
        width: 33.333%;
    }
}

.realizacje-slide-inner {
    aspect-ratio: 4 / 3;
}

.realizacje-slide-bg {
    background-size: cover;
    background-position: center;
}

.realizacje-swiper-prev,
.realizacje-swiper-next {
    position: absolute;
    z-index: 10;
    cursor: pointer;
    opacity: 0.85;
}

.realizacje-carousel-section:hover .realizacje-swiper-prev,
.realizacje-carousel-section:hover .realizacje-swiper-next {
    opacity: 1;
}

/* ========== Strona O nas – modułowe części (.about-page-*) ========== */
/* Strona O nas – brak białego obramowania: content i main na pełną szerokość, bez paddingu */
.page-template-page-about .site-content,
.site-main--about {
    padding: 0;
    max-width: none;
    width: 100%;
}

/* Hero O nas – wyższy pas (ok. 60vh), żeby przy cover nie uciąć drona ani busa;
   wgraj zdjęcie poziome ok. 2:1 (np. 2400×1200 px), dron i bus w kadrze. */
.about-page-hero,
.site-main--about .about-page-hero {
    position: relative;
    width: 100%;
    min-height: 55vh;
    height: 55vh;
    max-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@media (min-width: 1200px) {
    .about-page-hero,
    .site-main--about .about-page-hero {
        min-height: 60vh;
        height: 60vh;
        max-height: 720px;
    }
}

.about-page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center; /* Kadr wyśrodkowany w pionie i poziomie */
    background-repeat: no-repeat;
    background-color: #1a1a2e;
    background-attachment: fixed; /* tło przypięte – efekt parallax przy przewijaniu */
}

/* Na mobile wyłącz fixed (słaba obsługa / wydajność) */
@media (max-width: 767px) {
    .about-page-hero-bg {
        background-attachment: scroll;
    }
}

/* Nakładka lekka – grafika ma być okładką, ciemnienie głównie od dołu pod tekst */
.about-page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.25) 40%,
        rgba(0,0,0,0.5) 100%
    );
}

.about-page-hero-inner {
    position: relative;
    z-index: 1;
    padding: 24px 20px;
}

.about-page-hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.4rem;
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 0 40px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
    .about-page-hero-title {
        font-size: 6rem;
        line-height: 0.9;
    }
}

@media (min-width: 1024px) {
    .about-page-hero-title {
        font-size: 7rem;
    }
}

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

.about-page-hero-breadcrumb {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.about-page-hero-breadcrumb a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
}

.about-page-breadcrumb-sep {
    margin: 0 0.35em;
}

/* Sekcja pod hero (O nas) – rozszerzony kontener, większe paddingi */
.about-page-content {
    padding: 120px 0 140px;
    background: #fff;
}

.about-page-content-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 56px;
}

.about-page-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: start;
}

.about-page-content-grid.about-page-content-grid--has-image {
    grid-template-columns: 1fr 1fr;
    gap: 88px;
}

.about-page-content-col-text {
    min-width: 0;
}

.about-page-content-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    margin: 0 0 0.75rem;
}

.about-page-content-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #0f172a;
    margin: 0 0 1.5rem;
}

@media (min-width: 768px) {
    .about-page-content-heading {
        font-size: 3rem;
    }
}

.about-page-content-description {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-dark);
    margin: 0 0 2rem;
}

.about-page-content-description p {
    margin: 0 0 1em;
}

.about-page-content-description p:last-child {
    margin-bottom: 0;
}

.about-page-content-img-wrap {
    margin-top: 3.5rem;
    margin-bottom: 1rem;
    padding: 0;
    min-width: 0;
}

.about-page-content-img-below {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.about-page-content-col-image {
    min-width: 0;
}

.about-page-content-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.about-page-content-placeholder {
    width: 100%;
    min-height: 200px;
    aspect-ratio: 4 / 3;
    background: #e5e7eb;
    display: block;
}

.about-page-content-placeholder-below {
    aspect-ratio: 16 / 10;
    min-height: 180px;
    background: #e5e7eb;
}

.about-page-content-below-image {
    margin-top: 1.75rem;
    padding: 0;
}

.about-page-content-below-image-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #0f172a;
    margin: 0 0 0.75rem;
}

@media (min-width: 768px) {
    .about-page-content-below-image-heading {
        font-size: 1.75rem;
    }
}

.about-page-content-below-image-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
}

.about-page-content-below-image-text p {
    margin: 0 0 0.5em;
}

.about-page-content-below-image-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-page-content {
        padding: 64px 0 88px;
    }
    .about-page-content-inner {
        padding: 0 24px;
    }
    .about-page-content-grid,
    .about-page-content-grid.about-page-content-grid--has-image {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-page-content-heading {
        margin-bottom: 1.25rem;
    }
    .about-page-content-description {
        margin-bottom: 1.5rem;
    }
    .about-page-content-img-wrap {
        margin-top: 3rem;
        margin-bottom: 0.75rem;
    }
    .about-page-content-img-below {
        aspect-ratio: 16 / 9;
    }
}

/* Sekcja ciemna (Co robimy) – treść lewo, grafika prawo */
.about-page-dark {
    width: 100%;
    padding: 64px 0 72px;
    margin: 0;
    background: #0f0f12;
    color: #fff;
}

.about-page-dark-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.about-page-dark-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

.about-page-dark-grid.about-page-dark-grid--has-image {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
}

.about-page-dark-content {
    min-width: 0;
}

.about-page-dark-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin: 0 0 0.75rem;
}

.about-page-dark-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
    margin: 0 0 1.5rem;
}

.about-page-dark-text {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}

.about-page-dark-text p {
    margin: 0 0 0.75em;
}

.about-page-dark-text p:last-child {
    margin-bottom: 0;
}

.about-page-dark-col-image {
    min-width: 0;
}

.about-page-dark-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.about-page-dark-placeholder {
    width: 100%;
    min-height: 280px;
    aspect-ratio: 4 / 3;
    background: rgba(255, 255, 255, 0.06);
    display: block;
}

@media (max-width: 768px) {
    .about-page-dark {
        padding: 48px 0 56px;
    }
    .about-page-dark-inner {
        padding: 0 20px;
    }
    .about-page-dark-grid,
    .about-page-dark-grid.about-page-dark-grid--has-image {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Benefity – ciemne tło (jak na projekcie), placeholder ikony do podmiany */
.about-page-features {
    padding: 100px 0 120px;
    margin: 0;
    background: #0f0f12;
    width: 100%;
}

.about-page-features-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 56px;
}

.about-page-features-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin: 0 0 0.5rem;
    text-align: center;
}

.about-page-features-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
    margin: 0 0 1.75rem;
    text-align: center;
}

@media (min-width: 768px) {
    .about-page-features-heading {
        font-size: 3rem;
    }
}

.about-page-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .about-page-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .about-page-features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.about-page-feature-card {
    text-align: center;
    padding: 1.75rem 1rem;
    border-radius: 4px;
    transition: background-color 0.25s ease, color 0.2s ease;
    cursor: default;
}

.about-page-feature-card:hover {
    background-color: var(--primary);
}

.about-page-feature-card:hover .about-page-feature-text {
    color: #fff;
}

.about-page-feature-card:hover .about-page-icon-placeholder {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.about-page-feature-card:hover .about-page-icon-img {
    filter: brightness(0) invert(1);
}

.about-page-icon-wrap {
    width: 80px;
    height: 80px;
    max-width: 80px;
    max-height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-page-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    /* Niebieski domyślnie (kolor primary) – przed hover */
    filter: brightness(0) saturate(100%) invert(27%) sepia(89%) saturate(2000%) hue-rotate(221deg) brightness(95%) contrast(97%);
}

.about-page-icon-placeholder {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    background: rgba(29, 57, 220, 0.2);
    border: 2px dashed var(--primary);
    display: block;
}

.about-page-feature-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
    margin: 0 0 0.35rem;
}

.about-page-feature-text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

@media (max-width: 768px) {
    .about-page-features {
        padding: 48px 20px 56px;
    }
    .about-page-features-grid {
        grid-template-columns: 1fr;
    }
}

/* Sekcja: zdjęcie (greyscale) | FAQ + statystyki (jak w projekcie) */
.about-page-qa-section {
    width: 100%;
    padding: 80px 0 0;
    margin: 0;
    background: #fff;
}

.about-page-qa-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.about-page-qa-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}

@media (min-width: 900px) {
    .about-page-qa-grid {
        grid-template-columns: 1fr 1fr;
        gap: 56px;
    }
}

.about-page-qa-col-image {
    min-width: 0;
}

.about-page-qa-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
}

.about-page-qa-placeholder {
    width: 100%;
    aspect-ratio: 1;
    min-height: 280px;
    background: #e5e7eb;
    display: block;
}

.about-page-qa-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin: 0 0 0.5rem;
}

.about-page-qa-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #0f172a;
    margin: 0 0 1.5rem;
}

@media (min-width: 768px) {
    .about-page-qa-heading {
        font-size: 2.5rem;
    }
}

.about-page-qa-accordion {
    margin: 0;
    padding: 0;
}

.about-page-qa-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: border-color 0.2s ease;
}

.about-page-qa-item:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.about-page-qa-item.is-active .about-page-qa-question {
    color: var(--primary);
}

.about-page-qa-item.is-active .about-page-qa-icon {
    color: var(--primary);
    transform: rotate(180deg);
}

.about-page-qa-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 0;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #0f172a;
    cursor: pointer;
    transition: color 0.2s ease;
}

.about-page-qa-question:hover {
    color: var(--primary);
}

.about-page-qa-question-text {
    flex: 1;
    padding-right: 1rem;
}

.about-page-qa-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: transform 0.3s ease, color 0.2s ease;
}

.about-page-qa-answer-wrap {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
}

.about-page-qa-answer-wrap.is-open {
    max-height: 500px;
    opacity: 1;
}

.about-page-qa-answer {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    padding: 0 0 1.25rem 0;
    padding-right: 2rem;
}

/* Rząd statystyk */
.about-page-qa-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
    margin-top: 56px;
    padding: 48px 0 64px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

@media (min-width: 640px) {
    .about-page-qa-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

.about-page-qa-stat {
    text-align: center;
}

.about-page-qa-stat-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.about-page-qa-stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 700;
    color: #0f172a;
}

@media (min-width: 768px) {
    .about-page-qa-stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .about-page-qa-section {
        padding: 56px 0 0;
    }
    .about-page-qa-inner {
        padding: 0 20px;
    }
    .about-page-qa-stats {
        margin-top: 40px;
        padding: 40px 0 48px;
    }
}

/* --- Strona Kontakt: Hero (breadcrumbs) --- */
.site-main--contact {
    padding: 0;
    max-width: none;
}

.contact-page-hero,
.site-main--contact .contact-page-hero {
    position: relative;
    width: 100%;
    min-height: 50vh;
    height: 50vh;
    max-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.contact-page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #1a1a2e;
}

.contact-page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.65));
}

.contact-page-hero-inner {
    position: relative;
    z-index: 1;
    padding: 24px 20px;
}

.contact-page-hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.4rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .contact-page-hero-title {
        font-size: 6rem;
        line-height: 0.9;
    }
}

@media (min-width: 1024px) {
    .contact-page-hero-title {
        font-size: 7rem;
    }
}

.contact-page-hero-breadcrumb {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}

.contact-page-hero-breadcrumb a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
}

.contact-page-breadcrumb-sep {
    margin: 0 0.35em;
}

/* --- Strona Kontakt: Sekcja dane + formularz --- */
.contact-page-section {
    width: 100%;
    padding: 80px 0 100px;
    margin: 0;
    background: #fff;
}

.contact-page-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}

@media (min-width: 900px) {
    .contact-page-grid {
        grid-template-columns: 1fr 1fr;
        gap: 56px;
    }
}

.contact-page-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
    margin: 0 0 0.5rem;
}

.contact-page-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #0f172a;
    margin: 0 0 1rem;
}

@media (min-width: 768px) {
    .contact-page-heading {
        font-size: 2.5rem;
    }
}

.contact-page-description {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0 0 1.5rem;
}

.contact-page-description p {
    margin: 0 0 0.75em;
}

.contact-page-description p:last-child {
    margin-bottom: 0;
}

.contact-page-details {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-page-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-page-detail:last-child {
    margin-bottom: 0;
}

.contact-page-detail-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.contact-page-detail-text {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    color: #0f172a;
}

.contact-page-detail-link {
    color: var(--primary);
    text-decoration: none;
}

.contact-page-detail-link:hover {
    text-decoration: underline;
}

/* --- Mapa Polski (strona główna – sekcja kontakt) --- */
.pol-map-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 280px;
    aspect-ratio: 497 / 463;
    max-height: 420px;
}

.contact-page-heading--map {
    margin-bottom: 1rem;
}

.pol-map-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Pin Olsztyn – overlay (pozycja: left/top w inline style) */
.pol-map-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(29, 57, 220, 0.35);
    pointer-events: none;
    animation: pol-map-pulse 1.5s ease-in-out infinite;
}

.pol-map-pin::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

@keyframes pol-map-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 4px rgba(29, 57, 220, 0.35); }
    50% { transform: translate(-50%, -50%) scale(1.2); box-shadow: 0 0 0 8px rgba(29, 57, 220, 0.2); }
}

/* Formularz */
.contact-page-form {
    margin: 0;
}

.contact-page-alert {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0.85rem 1rem;
    border-radius: 4px;
    margin: 0 0 1rem 0;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #f8fafc;
    color: #0f172a;
}

.contact-page-alert--success {
    border-color: rgba(22, 163, 74, 0.35);
    background: rgba(22, 163, 74, 0.08);
}

.contact-page-alert--info {
    border-color: rgba(37, 99, 235, 0.25);
    background: rgba(37, 99, 235, 0.06);
}

.contact-page-alert--error {
    border-color: rgba(220, 38, 38, 0.35);
    background: rgba(220, 38, 38, 0.06);
}

.contact-page-form-row {
    margin-bottom: 1.25rem;
}

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

.contact-page-field-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-page-form-row--double .contact-page-field-wrap {
    min-width: 0;
}

.contact-page-field-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin: 0;
}

.contact-page-field-icon {
    position: absolute;
    left: 0;
    bottom: 0.65rem;
    top: auto;
    display: flex;
    align-items: center;
    color: #94a3b8;
    pointer-events: none;
}

.contact-page-field-icon--top {
    top: 2.5rem;
    bottom: auto;
}

.contact-page-input {
    width: 100%;
    padding: 0.75rem 0 0.75rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    color: #0f172a;
    background: transparent;
    border: none;
    border-bottom: 1px solid #cbd5e1;
    border-radius: 0;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.contact-page-input:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

.contact-page-input::placeholder {
    color: #94a3b8;
}

.contact-page-textarea {
    min-height: 120px;
    resize: vertical;
    padding-top: 0.5rem;
}

.contact-page-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-page-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.contact-page-submit:hover {
    background: #1529b8;
}

.contact-page-consent {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.5;
    color: #64748b;
    cursor: pointer;
}

.contact-page-consent input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-page-consent a {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-page-section {
        padding: 56px 0 72px;
    }
    .contact-page-section-inner {
        padding: 0 20px;
    }
    .contact-page-form-row--double {
        grid-template-columns: 1fr;
    }
}

/* --- Strona Usługi: Hero (breadcrumbs – taki sam jak O nas / Kontakt) --- */
.site-main--services {
    padding: 0;
    max-width: none;
}

/* Hero Usługi – bez parallax, niższy pas, breadcrumb nie rozciąga się */
.services-page-hero,
.site-main--services .services-page-hero {
    position: relative;
    width: 100%;
    min-height: 50vh;
    height: 50vh;
    max-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.services-page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #1a1a2e;
}

.services-page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.25) 40%,
        rgba(0,0,0,0.5) 100%
    );
}

.services-page-hero-inner {
    position: relative;
    z-index: 1;
    padding: 24px 20px;
    max-width: 900px;
}

.services-page-hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.4rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .services-page-hero-title {
        font-size: 6rem;
        line-height: 0.9;
    }
}

@media (min-width: 1024px) {
    .services-page-hero-title {
        font-size: 7rem;
    }
}

.services-page-hero-breadcrumb {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}

.services-page-hero-breadcrumb a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
}

.services-page-breadcrumb-sep {
    margin: 0 0.35em;
}

/* --- Strona Usługi: Siatka kart (białe karty, obraz grayscale, tytuł, opis, strzałka) --- */
.services-page-section {
    width: 100%;
    padding: 80px 0 100px;
    margin: 0;
    background: #f1f5f9;
}

.services-page-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.services-page-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .services-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .services-page-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }
}

.services-page-card {
    margin: 0;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s ease;
}

.services-page-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.services-page-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.services-page-card-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e5e7eb;
    position: relative;
    z-index: 0;
}

.services-page-card-img-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 1;
}

.services-page-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: none;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 0;
}

.services-page-card:hover .services-page-card-img {
    transform: scale(1.03);
}

.services-page-card:hover .services-page-card-img-wrap::after {
    opacity: 0.78;
}

.services-page-card-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #e5e7eb;
    display: block;
}

.services-page-card-content {
    padding: 1.25rem 1.25rem 1.5rem;
}

.services-page-card-icon {
    margin-bottom: 0.75rem;
    width: 56px;
    height: 56px;
}

.services-page-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.services-page-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.services-page-card-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.5;
    color: #64748b;
    margin: 0 0 1rem;
}

.services-page-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.services-page-card:hover .services-page-card-arrow {
    transform: translateX(4px);
}

.services-page-empty,
.services-page-section .services-page-empty {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #64748b;
    text-align: center;
    margin: 0;
    padding: 2rem;
}

@media (max-width: 768px) {
    .services-page-section {
        padding: 56px 0 72px;
    }
    .services-page-inner {
        padding: 0 20px;
    }
}

/* --- Strona Usługi: Pytania i odpowiedzi (nad formularzem) – ciemna sekcja --- */
.services-page-qa-section {
    width: 100%;
    padding: 80px 0 100px;
    margin: 0;
    background: #0f0f12;
}

.services-page-qa-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.services-page-qa-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin: 0 0 0.5rem;
}

.services-page-qa-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
    margin: 0 0 1.5rem;
}

@media (min-width: 768px) {
    .services-page-qa-heading {
        font-size: 2.5rem;
    }
}

/* Accordion wewnątrz ciemnej sekcji FAQ – jasny tekst i obramowania */
.services-page-qa-section .about-page-qa-item {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}
.services-page-qa-section .about-page-qa-item:first-child {
    border-top-color: rgba(255, 255, 255, 0.15);
}
.services-page-qa-section .about-page-qa-question {
    color: rgba(255, 255, 255, 0.95);
}
.services-page-qa-section .about-page-qa-question:hover {
    color: #fff;
}
.services-page-qa-section .about-page-qa-item.is-active .about-page-qa-question {
    color: var(--primary);
}
.services-page-qa-section .about-page-qa-icon {
    color: rgba(255, 255, 255, 0.6);
}
.services-page-qa-section .about-page-qa-item.is-active .about-page-qa-icon {
    color: var(--primary);
}
.services-page-qa-section .about-page-qa-answer {
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
    .services-page-qa-section {
        padding: 56px 20px 72px;
    }
}

/* --- Single Usługa (CPT uslugi) --- */
.site-main--single-usluga {
    padding: 0;
    max-width: none;
}

.single-usluga {
    background: #fff;
}

/* Hero – ciemny, spójny z pozostałymi podstronami */
.single-usluga-hero {
    position: relative;
    width: 100%;
    min-height: 50vh;
    height: 50vh;
    max-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: #0b1020;
}

.single-usluga-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(0.2) saturate(0.9);
    transform: scale(1.03);
}

.single-usluga-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.72));
}

.single-usluga-hero-inner {
    position: relative;
    z-index: 1;
    padding: 24px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.single-usluga-hero-breadcrumb {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.6rem;
}

.single-usluga-hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
}

.single-usluga-hero-breadcrumb a:hover {
    text-decoration: underline;
}

.single-usluga-hero-breadcrumb-sep {
    margin: 0 0.35em;
}

.single-usluga-hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .single-usluga-hero-title {
        font-size: 6rem;
        line-height: 0.9;
    }
}

@media (min-width: 1024px) {
    .single-usluga-hero-title {
        font-size: 7rem;
    }
}

/* Układ 2 kolumny */
.single-usluga-section {
    width: 100%;
    padding: 80px 0 60px;
    background: #fff;
}

.single-usluga-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.single-usluga-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

@media (min-width: 960px) {
    .single-usluga-grid {
        grid-template-columns: 1fr 360px;
        gap: 56px;
    }
}

.single-usluga-main {
    min-width: 0;
}

.single-usluga-main-img-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    background: #e5e7eb;
    aspect-ratio: 16 / 9;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    margin-bottom: 28px;
}

.single-usluga-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-usluga-main-content {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: #0f172a;
}

.single-usluga-main-content p {
    margin: 0 0 1em;
}

.single-usluga-main-content h2,
.single-usluga-main-content h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 1.5rem 0 0.75rem;
}

.single-usluga-main-content h2 {
    font-size: 2rem;
}

.single-usluga-main-content h3 {
    font-size: 1.5rem;
}

.single-usluga-sidebar {
    min-width: 0;
}

@media (min-width: 960px) {
    .single-usluga-sidebar {
        position: sticky;
        top: 110px; /* fixed header + oddech */
    }
}

.single-usluga-sidebar-box {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 6px;
    padding: 22px 18px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.single-usluga-sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 12px;
    color: #0f172a;
}

.single-usluga-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.single-usluga-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #0f172a;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.single-usluga-nav-text {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.35;
}

.single-usluga-nav-arrow {
    flex-shrink: 0;
    color: var(--primary);
    transition: transform 0.2s ease, color 0.2s ease;
}

.single-usluga-nav-link:hover {
    background: rgba(29, 57, 220, 0.08);
    color: #0b1020;
    transform: translateX(2px);
}

.single-usluga-nav-link:hover .single-usluga-nav-arrow {
    transform: translateX(4px);
    color: #1529b8;
}

.single-usluga-nav-empty {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

@media (max-width: 768px) {
    .single-usluga-section {
        padding: 56px 0 40px;
    }
    .single-usluga-section-inner {
        padding: 0 20px;
    }
    .single-usluga-main-img-wrap {
        aspect-ratio: 4 / 3;
    }
}

/* --- Strona Realizacje: Hero (breadcrumbs – taki sam jak inne podstrony) --- */
.site-main--realizacje {
    padding: 0;
    max-width: none;
}

.realizacje-page-hero,
.site-main--realizacje .realizacje-page-hero {
    position: relative;
    width: 100%;
    min-height: 50vh;
    height: 50vh;
    max-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.realizacje-page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #1a1a2e;
}

.realizacje-page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.65));
}

.realizacje-page-hero-inner {
    position: relative;
    z-index: 1;
    padding: 24px 20px;
}

.realizacje-page-hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.4rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .realizacje-page-hero-title {
        font-size: 6rem;
        line-height: 0.9;
    }
}

@media (min-width: 1024px) {
    .realizacje-page-hero-title {
        font-size: 7rem;
    }
}

.realizacje-page-hero-breadcrumb {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}

.realizacje-page-hero-breadcrumb a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
}

.realizacje-page-breadcrumb-sep {
    margin: 0 0.35em;
}

/* --- Strona Realizacje: Siatka projektów (grayscale, overlay tytuł + meta) --- */
.realizacje-page-section {
    width: 100%;
    padding: 80px 0 100px;
    margin: 0;
    background: #fff;
}

.realizacje-page-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.realizacje-page-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .realizacje-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .realizacje-page-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

.realizacje-page-card {
    margin: 0;
    overflow: hidden;
    border-radius: 4px;
}

.realizacje-page-card-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.realizacje-page-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 1;
}

.realizacje-page-card-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e5e7eb;
}

.realizacje-page-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: none;
    transition: transform 0.3s ease;
}

.realizacje-page-card:hover .realizacje-page-card-img {
    transform: scale(1.03);
}

.realizacje-page-card:hover .realizacje-page-card-link::after {
    opacity: 0.78;
}

.realizacje-page-card-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #e5e7eb;
    display: block;
}

.realizacje-page-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
    color: #fff;
    z-index: 2;
    transition: background 0.25s ease;
}

.realizacje-page-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
    margin: 0 0 0.25rem;
}

.realizacje-page-card-meta {
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.realizacje-page-empty {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #64748b;
    text-align: center;
    margin: 0;
    padding: 2rem;
}

@media (max-width: 768px) {
    .realizacje-page-section {
        padding: 56px 0 72px;
    }
    .realizacje-page-inner {
        padding: 0 20px;
    }
}
