/*
    Theme Name: Arch
    Theme URI: https://arch.pl
    Author: arch
    Description: Motyw jednostronicowy dla firmy geodezyjno-architektonicznej A Arch. Skanowanie laserowe 3D, projekty architektoniczne, inspekcje dronowe, wizualizacje i wirtualne spacery.
    Version: 1.0.0
    Requires at least: 6.0
    Requires PHP: 7.4
    Text Domain: Arch
    */

            
    :root {
        --black: #000000;
        --white: #ffffff;
        --red: #F43236;
        --gray-light: #f8f9fa;
        --gray-dark: #343a40;
        --gray-medium: #6c757d;
        --spacing: .25rem; 
        --primary: oklch(62.9% 0.228 26.0);
        --tracking-tighter: -.05em;
        --font-weight-black: 900;
        --ink: oklch(10% .02 250);
        --radius: .5rem;
    }
    @property --tw-translate-x {
        syntax: "*";
        inherits: false;
        initial-value: 0;
    }
    @property --tw-translate-y {
        syntax: "*";
        inherits: false;
        initial-value: 0;
    }
    body {
        background-color: var(--black);
        color: var(--white);
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        line-height: 1.6;
        overflow-x: hidden;
    }
    html {
        scroll-behavior: smooth;
    }
    .scroll-top {
        position: fixed;
        bottom: 1.75rem;
        right: 1.75rem;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background-color: #F43236;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
        box-shadow: 0 4px 14px rgba(0,0,0,0.35);
        z-index: 999;
        transition: background-color 0.2s ease, transform 0.15s ease;
    }
    .scroll-top:hover {
        background-color: #14141a;
        color: #fff;
        transform: translateY(-3px);
    }
    @media (max-width: 576px) {
        .scroll-top {
            bottom: 1.25rem;
            right: 1.25rem;
            width: 42px;
            height: 42px;
            font-size: 1.15rem;
        }
    }
    .container-x {
        max-width: 48rem;
        margin-inline: auto;
        padding-inline: 1rem;
    }
    h1, h2, h3, h4, h5, h6 {
        color: var(--white);
        margin-top: 0;
        margin-bottom: 1rem;
        font-weight: 600;
    }
    p {
        color: var(--white);
        opacity: 0.9;
        margin-bottom: 1rem;
		text-align: justify;
    }
	b {
		color:#F43236;	
	}
    a {
        color: var(--white);
        text-decoration: none;
    }
    a:hover {
        color: #F43236;
    }
    .text-primary{
        color: var(--primary) !important;
    }
    .btn-red {
        background-color: #F43236;
        border-color: #F43236;
        color: var(--white);
        padding: 0.75rem 1.5rem;
        font-weight: 500;
        border-radius: 0;
        transition: all 0.2s ease;
    }
    .btn-red:hover {
        background-color: #e60000;
        border-color: #e60000;
        color: var(--white);
        transform: translateY(-2px);
    }
    .btn-outline-red {
        border: 2px solid #F43236;
        color: var(--white);
        background: transparent;
        padding: 0.75rem 1.5rem;
        font-weight: 500;
        border-radius: 0;
        transition: all 0.2s ease;
    }
    .btn-outline-red:hover {
        background-color: #F43236;
        border-color: #F43236;
        color: var(--white);
    }
    .btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active{
        color: #fff;
        background-color:var(--black);
    }
    .absolute{
        position:absolute;
    }
    .relative{
        position:relative;
    }
    .navbar {
        background-color: var(--black);
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .navbar-brand {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: bold;
        font-size: 1.5rem;
    }
    .navbar-brand img {
        max-height: 40px;
    }
    .navbar-nav .nav-link {
        color: var(--white);
        margin-right: 1rem;
        font-weight: 500;
        position: relative;
        padding: 0.5rem 0;
    }
    .navbar-nav .nav-link:hover {
        color: #F43236;
    }
    .navbar-nav .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #F43236;
    }
    /* =========================================
    HERO SECTION
    ========================================= */

    .hero-section {
        background-color: var(--black);
        padding: 0;
        margin: 0;

        position: relative;
        width: 100%;
        min-height: 100vh;

        display: flex;
        align-items: center;
        justify-content: center;

        overflow: hidden;
    }

    /* =========================================
    HERO VIDEO BACKGROUND
    ========================================= */

    .hero-section .hero-video {
        position: absolute;
        top: 0;
        left: 0;

        width: 100%;
        height: 100%;

        overflow: hidden;
        z-index: 0;
    }

    .hero-section .hero-video iframe {
        position: absolute;

        top: 50%;
        left: 50%;

        /*
        * 16:9 video cover
        */
        width: 177.78vh;
        height: 100vh;

        min-width: 100%;
        min-height: 56.25vw;

        transform: translate(-50%, -50%);

        border: 0;
        margin: 0;
        padding: 0;

        pointer-events: none;
    }

    /* =========================================
    DARK VIDEO OVERLAY
    ========================================= */

    .hero-section::after {
        content: '';

        position: absolute;
        inset: 0;

        width: 100%;
        height: 100%;

        background: rgba(0, 0, 0, 0.35);

        pointer-events: none;
        z-index: 1;
    }

    .hero-section {
        position: relative;
        width: 100%;
        height: 100vh;
        min-height: 600px;

        padding: 0;
        margin: 0;

        overflow: hidden;

        background: #000;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* VIDEO */
    .hero-video {
        position: absolute;
        inset: 0;

        width: 100%;
        height: 100%;

        overflow: hidden;

        z-index: 0;
    }

    .hero-video iframe {
        position: absolute;

        top: 50%;
        left: 50%;

        /*
        * 16:9 YouTube video
        * Cover entire hero
        */
        width: 100vw;
        height: 56.25vw;

        min-width: 177.78vh;
        min-height: 100vh;

        transform: translate(-50%, -50%);

        border: 0;
        display: block;

        pointer-events: none;
    }

    /* DARK OVERLAY */
    .hero-overlay {
        position: absolute;
        inset: 0;

        background: rgba(0, 0, 0, 0.30);

        z-index: 1;

        pointer-events: none;
    }

    /* RED LIGHT EFFECT */
    .hero-section::before {
        content: '';

        position: absolute;
        inset: 0;

        background: radial-gradient(
            circle at center,
            rgba(244, 50, 54, 0.10) 0%,
            transparent 70%
        );

        z-index: 2;

        pointer-events: none;
    }
    .hero-image {
        width: 750px;
        margin: auto;
        border-bottom: 1px solid;
    }
    /* CONTENT */
    .hero-content {
        position: relative;

        z-index: 3;

        width: 100%;
        max-width: 1200px;

        text-align: center;

        color: var(--white);
    }

    .hero-section h1 {
        font-size: 3rem;
        font-weight: 700;

        margin: 0 0 1.5rem;

        color: var(--white);
    }

    .hero-section p.lead {
        font-size: 1.3rem;

        max-width: 700px;

        margin: 0 auto 2.5rem;

        color: var(--white);

        opacity: 0.9;
    }

    /* MOBILE */
    @media (max-width: 767px) {

        .hero-section {
            height: 100svh;
            min-height: 500px;
        }

        .hero-section h1 {
            font-size: 2.3rem;
        }

        .hero-section p.lead {
            font-size: 1rem;
            padding: 0 15px;
        }

        .hero-video iframe {
            /*
            * Keep video covering mobile screen
            */
            min-width: 177.78vh;
            min-height: 100vh;

            width: 100vw;
            height: 56.25vw;
        }
    }
    .services-section {
        padding: 4rem 0;
        background-image: repeating-linear-gradient(45deg, oklch(100% 0 0 / .03) 0 2px, #0000 2px 14px);
        overflow: hidden;
    }
        .services-section h2 {
        text-align: center;
        color: var(--white);
        font-size: 2.5rem;
        font-weight: 600;
        position: relative;
    }
    :where(.space-y-3 > :not(:last-child)) {
        --tw-space-y-reverse: 0;
        margin-block-start: calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));
        margin-block-end: calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));
    }
    .card-light{
            border-radius: var(--radius);
        background: #fff;
        border: 1px solid oklch(0% 0 0 / .08);
        transition: transform .3s, box-shadow .3s, border-color .3s;
    }
    .accordion-item {
        background-color: #ffffff;
        border: 1px solid #e6e6ea;
        margin-bottom: 1rem;
        border-radius: 4px;
        overflow: hidden;
        transition: border-color 0.15s ease;
    }
    .accordion-item:hover {
        border-color: rgba(244, 50, 54, 0.4);
    }
    .accordion-item:not(:first-of-type){
        border-top: 1px solid #e6e6ea;
    }
    .accordion-item:not(:first-of-type):hover {
    border-color: rgba(244, 50, 54, 0.4);
    }
    .accordion-button {
        background-color: #ffffff;
        color: #14141a;
        border: none;
        font-size: 1.05rem;
        font-weight: 600;
        text-align: left;
        padding: 1.4rem 1.6rem;
        box-shadow: none;
    }
    .accordion-button:not(.collapsed) {
        background-color: #ffffff;
        color: #14141a;
        box-shadow: none;
    }
    .accordion-button:not(.collapsed) i {
        color: #F43236;
    }
    .accordion-button::after {
        background-image: none !important;
        content: "+";
        color: #F43236;
        font-weight: 700;
        font-size: 1.4rem;
        width: auto;
        height: auto;
        line-height: 1;
    }
    .accordion-button[aria-expanded="true"]::after {
        content: "\2212";
    }
    .accordion-body{
        background-color: #ffffff;
        
        padding: 0 1.6rem 1.5rem;
        border-top: none;
        font-size: 0.98rem;
        line-height: 1.6;
    }
    .accordion-body p {
        color: #3a3a3a;
    }
    .service-icon {
        font-size: 2rem;
        color: #F43236;
        display: block;
        margin: 0 1rem 0 1rem;
    }
    .service-icon:hover {
        color: #fff;
    }
    .service-title{
        min-height: 57px;
    }
    .svc-eyebrow {
        display: block;
        text-align: center;
        color: #F43236;
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        margin-bottom: 1rem;
    }
    .svc-wrap { position: relative; }
    .svc-grid {
        max-width: 1200px;
        margin: 3rem auto 0;
        display: grid;
        gap: 28px;
        align-items: start;
        grid-template-columns: 1fr minmax(280px, 420px) 1fr;
        grid-template-areas: "c1 stage c2";
    }
    #svc-c1 { grid-area: c1; }
    #svc-c2 { grid-area: c2;}


    .svc-row2 {
        max-width: 1200px;
        margin: 0 auto 0;
        display: grid;
        gap: 28px;
        grid-template-columns: repeat(3, 1fr);
    }
    .svc-row2 .svc-card { position: relative; }


    .svc-card {
        background-color: var(--gray-dark);
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 4px;
        padding: 1.9rem 1.6rem;
        display: flex;
        flex-direction: column;
        gap: 0.9rem;
        min-height: 260px;
        transition: background-color 0.2s ease, border-color 0.2s ease;
        z-index: 2;
    }
    .svc-num { color: #F43236; font-size: 0.85rem; font-family: monospace; }
    .svc-card h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.35; color: var(--white); }
    .svc-card p { font-size: 0.92rem; line-height: 1.6; color: var(--white); opacity: 0.72; }
    .svc-btn {
        margin-top: auto;
        align-self: flex-start;
        border: 1px solid #F43236;
        border-radius: 4px;
        padding: 0.65rem 1rem;
        font-size: 0.75rem;
        letter-spacing: 0.03em;
        color: var(--white);
        text-decoration: none;
        transition: background-color 0.2s ease, color 0.2s ease;
    }
    .svc-card:hover, .svc-card:focus-within {
        background-color: rgba(244, 50, 54, 0.1);
        border-color: rgba(244, 50, 54, 0.5);
    }
    .svc-card:hover .svc-btn, .svc-card:focus-within .svc-btn {
        background-color: #F43236;
        color: #fff;
    }

    .svc-stage { grid-area: stage; position: relative; min-height: 400px; }
    .svc-beam {
        position: absolute; left: 50%; top: 150px; height: 2px; width: 150vw;
        background-color: #F43236;
        box-shadow: 0 0 7px rgba(244, 50, 54, 0.7);
        transform-origin: left center;
        z-index: 1; opacity: 0.55;
    }
    .svc-beam-l { transform: rotate(198deg); }
    .svc-beam-r { transform: rotate(-18deg); }
    .svc-beam-d { width: 250px; transform: rotate(90deg); }
    .svc-beam-br { transform: rotate(35deg); }
    .svc-beam-bl { transform: rotate(145deg); }
    .svc-scanner { position: relative; z-index: 2; display: block; width: 190px; margin: 50px auto 0; }
    .svc-scanner * { fill: none; stroke: rgba(255,255,255,0.55); stroke-width: 2; }
    .svc-scanner .svc-fill { fill: #F43236; stroke: none; opacity: 0.85; }
    .svc-scanner .svc-ring { stroke: #F43236; stroke-dasharray: 3 6; opacity: 0.75; }
    .svc-scanner .svc-dim { opacity: 0.35; }

    .svc-shot {
        position: absolute; z-index: 3; top: 40px; left: 50%;
        width: 280px; height: 320px; border-radius: 4px;
        opacity: 0; transform: translateX(-50%) scale(.96);
        transition: opacity 0.3s ease, transform 0.3s ease;
        pointer-events: none;
        overflow: hidden;
    }
    .svc-shot video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .video-cover {
        width: 280px;
        height: 320px;
        overflow: hidden;
        position: relative;
    }

    .video-cover iframe {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 570px;
        height: 320px;
        transform: translate(-50%, -50%);
        border: 0;
    }

    .svc-shot1 { background: linear-gradient(160deg,#3a3a3a,#5a5a5a 45%,#1e1e1e); }
    .svc-shot2 { background: linear-gradient(160deg,#7a2224,#F43236 55%,#4a1214); }
    .svc-shot3 { background: linear-gradient(160deg,#4a4a52,#6c6c76 55%,#2a2a30); }
    .svc-shot4 { background: linear-gradient(160deg,#1c4f6a,#3aa8c8 55%,#123340); }
    .svc-shot5 { background: linear-gradient(160deg,#2a2a2a,#F43236 60%,#1a1a1a); }

    .svc-wrap:has(#svc-c1:hover) .svc-shot1, .svc-wrap:has(#svc-c1:focus-within) .svc-shot1,
    .svc-wrap:has(#svc-c2:hover) .svc-shot2, .svc-wrap:has(#svc-c2:focus-within) .svc-shot2,
    .svc-wrap:has(#svc-c3:hover) .svc-shot3, .svc-wrap:has(#svc-c3:focus-within) .svc-shot3,
    .svc-wrap:has(#svc-c4:hover) .svc-shot4, .svc-wrap:has(#svc-c4:focus-within) .svc-shot4,
    .svc-wrap:has(#svc-c5:hover) .svc-shot5, .svc-wrap:has(#svc-c5:focus-within) .svc-shot5 {
        opacity: 1; transform: translateX(-50%) scale(1);
    }

    .svc-card-preview {
        display: none;
        width: 100%;
        aspect-ratio: 16 / 10;
        border-radius: 4px;
        margin-bottom: 0.75rem;
    }

    @media (max-width: 960px) {
        .svc-grid { grid-template-columns: 1fr; grid-template-areas: "stage" "c1" "c2"; }
        .svc-row2 { grid-template-columns: 1fr; }
        #svc-c2 { margin-top: 0; }
        .svc-stage { min-height: 460px; }
    }
    /* Touch devices (mobile & iPad) can't hover, so each card gets its own
        static preview image displayed above it instead of relying on hover */
    @media (hover: none) {
        .svc-shot { display: none; }
        .svc-card-preview { display: block; }
    }
    .benefits-section {
        padding: 6rem 0;
        background-color: var(--white);
    }
    .benefits-section h2 {
        margin-bottom: 3rem;
        text-align: center;
        color: var(--black);
        font-size: 2.5rem;
        font-weight: 600;
        position: relative;
    }
    .benefits-icon{
        width: calc(var(--spacing) * 72); height: calc(var(--spacing) * 72);right: calc(var(--spacing) * 6);top: calc(var(--spacing) * -10);
    }
    @supports (color: color-mix(in lab, red, red)) {
        .benefits-icon {
            color:color-mix(in oklab, var(--primary) 7.0%, transparent);
        }
    }
    .benefits-section h2::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 55%;
        height: 4px;
        background-color: #F43236;
    }
    .benefit-card {
        background-color: var(--black);
        border: 1px solid var(--gray-light);
        border-radius: 8px;
        padding: 2rem;
        height: 100%;
        transition: all 0.3s ease;
    }
    .benefit-card:hover {
        transform: translateY(-5px);
        border-color: #F43236;
        background: radial-gradient(circle at 50% 30%, rgb(160 10 5), rgb(90 0 2));
    }
    .benefit-card:hover .benefit-icon {
        color: #000;
    }
    .benefit-icon {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        color: #F43236;
        display: block;
    }
    .benefit-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: var(--white);
    }
    .benefit-text {
        opacity: 0.9;
    }
    .portfolio-section {
        padding: 7rem 0;
        background: var(--white);

        position: relative;
        overflow: hidden;
    }

    .portfolio-section .container {
        position: relative;
        z-index: 1;
    }
    .portfolio-section h2 {
        margin-bottom: 3rem;
        text-align: center;
        color: var(--black);
        font-size: 2.5rem;
        font-weight: 600;
        position: relative;
    }
    .portfolio-section h2::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 35%;
        height: 4px;
        background-color: #F43236;
    }
    .portfolio-item {
        background-color: #000000;
        border-radius: 0;
        margin-bottom: 1.5rem;
        overflow: hidden;
        position: relative;
        box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
        transition: box-shadow 0.35s ease, transform 0.35s ease;
        border-radius:8px;
    }
    .portfolio-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px -12px rgba(0,0,0,0.6), 0 0 0 1px #F43236;
    }
    .portfolio-img {
        height: 260px;
        background-color: var(--black);
        overflow: hidden;
        position: relative;
    }
    .portfolio-img::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
        opacity: 0;
        transition: opacity 0.4s ease;
    }
    .portfolio-item:hover .portfolio-img::after {
        opacity: 1;
    }
    .portfolio-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transform: scale(1);
        transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.6s ease;
        filter: saturate(0.95);
    }
    .portfolio-item:hover .portfolio-img img {
        transform: scale(1.12) rotate(0.3deg);
        filter: saturate(1.1);
    }
    .portfolio-content {
        padding: 1.75rem 1.5rem 2rem;
        background-color: #000000;
        position: relative;
    }
    .portfolio-title {
        display: inline-block;
        color: #fff;
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        margin-bottom: 0.6rem;
        opacity: 1;
        transform: translateY(6px);
        transition: opacity 0.35s ease 0.05s, transform 0.35s ease 0.05s;
    }
    .portfolio-item:hover .portfolio-title {
        opacity: 1;
        transform: translateY(0);
        color: #F43236;
    }

    .portfolio-date {
        font-size: 0.9rem;
        color: var(--gray-medium);
        margin-bottom: 1rem;
        display: block;
    }
    .portfolio-description {
        opacity: 0.75;
        margin-bottom: 1.25rem;
        font-size: 0.97rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .portfolio-content .btn-outline-red {
        padding: 0.5rem 1.1rem;
        font-size: 0.9rem;
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s;
    }
    .portfolio-item:hover .portfolio-content .btn-outline-red {
        opacity: 1;
        transform: translateY(0);
    }
    .references-section {
        padding: 6rem 0;
		/*background: linear-gradient(160deg, #0a0a0c 0%, #000000 45%, #1a0708 100%); */
		background: linear-gradient(45deg, #F43236 10%, #000000 65%, #F43236 100%);
		
    }
    .references-section h2 {
        margin-bottom: 3rem;
        text-align: center;
        color: var(--white);
        font-size: 2.5rem;
        font-weight: 600;
        position: relative;
    }
    .references-section h2::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 40%;
        height: 4px;
        background-color: #F43236;
    }
    .references-section .row > [class*="col-"] {
        display: flex;
        margin-bottom: 30px;
    }
    .reference-item {
        background-color: var(--black);
        border: 1px solid var(--gray-light);
        border-radius: 8px;
        margin-bottom: 1.5rem;
		height: -webkit-fill-available;
    }
    .reference-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1rem;
        opacity: 0.7;
        transition: opacity 0.3s ease;
    }
    .reference-item:hover .reference-logo {
        opacity: 1;
    }
    .reference-item:hover {
        border-color: #F43236;
    }

    .reference-item:hover h4.reference-name {
        color:#F43236;
    }
    .reference-logo img {
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
        border-radius: 8px 8px 0px 0px;
    }
    .reference-name {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        color: var(--white);
    }
    .reference-name p {
        font-size: .9rem;
        margin-top: 1rem;
        text-align: left;
        padding: .5rem;
    }
    .reference-description {
        opacity: 0.9;
    }
    .reference-single-image {
        display: block;
        align-items: center;
        justify-content: center;
        min-height: 260px;
        float: left;
        margin: 0 1rem 1rem 0;
    }
    .reference-single-image img {
        max-width: 500px;
        height: auto;
        object-fit: contain;
        float: left;
        margin-right: 1rem;
		margin-bottom: 1rem;
    }
    .reference-single-image-sticky {
        position: sticky;
        top: 6.5rem;
    }
    @media (max-width: 767px) {
        .reference-single-image-sticky {
            position: static;
        }
    }

    /* Prevent the two-column reference layout from breaking: without this,
       an inline image or long unbroken string inside the content column
       can force that column wider than its share, making the Bootstrap
       row wrap and dump the remaining content onto a new full-width line. */
    .reference-single .row > [class*="col-"] {
        min-width: 0;
    }
    .uslugi-item-content {
        overflow-wrap: break-word;
        word-break: break-word;
    }
    .uslugi-item-content img {
        max-width: 100%;
        height: auto;
    }
    .uslugi-item-content table {
        max-width: 100%;
        display: block;
        overflow-x: auto;
    }

    span.absolute.references-design {
        right: 0;
        bottom: calc(var(--spacing) * -20);
        font-size: 16rem; 
        color: color-mix(in oklab, var(--white) 5%, transparent);
        --tw-tracking: var(--tracking-tighter);
        letter-spacing: var(--tracking-tighter);
        --tw-font-weight: var(--font-weight-black);
        font-weight: var(--font-weight-black);
    }
    .contact-section {
        padding: 6rem 0;
        background-color: #f7f7f8;
    }
    .contact-eyebrow {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        color: #F43236;
        font-weight: 700;
        font-size: 0.8rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        margin-bottom: 1rem;
    }
    .contact-eyebrow .dash {
        width: 40px;
        height: 1px;
        background-color: #F43236;
        display: inline-block;
    }
    .contact-eyebrow i {
        font-size: 1rem;
    }
    .contact-section h2 {
        text-align: left;
        color: #14141a;
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 2rem;
    }
    .contact-section h2::after {
        display: none;
    }
    .contact-card {
        background-color: #ffffff;
        border: 1px solid #e6e6ea;
        border-radius: 6px;
        padding: 1.5rem;
        margin-bottom: 1rem;
        display: flex;
        align-items: flex-start;
        gap: 1rem;
    }
    .contact-card-icon {
        width: 44px;
        height: 44px;
        border-radius: 8px;
        background-color: rgba(244, 50, 54, 0.1);
        color: #F43236;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        flex: none;
    }
    .contact-card-body h4 {
        color: #F43236;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        margin: 0 0 0.4rem 0;
    }
    .contact-card-body p {
        color: #14141a;
        margin: 0;
        font-size: 0.95rem;
        line-height: 1.55;
    }
    .contact-form-card {
        background-color: #ffffff;
        border: 1px solid #e6e6ea;
        border-radius: 8px;
        padding: 2.5rem;
    }
    .contact-form-card .form-label {
        display: block;
        color: #14141a;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        margin-bottom: 0.6rem;

    }
    .contact-form-card .mb-3:first-of-type .form-label,
    .contact-form-card > form > .form-label:first-child {
        margin-top: 0;
    }
    .contact-form-card .label-row {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-top: 1.4rem;
        margin-bottom: 0.6rem;
    }
    .contact-form-card .label-row .form-label {
        margin: 0;
    }
    .contact-form-card .label-optional {
        color: #9a9aa2;
        font-size: 0.72rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }
    .contact-form-card .form-control,
    .contact-form-card select.form-control {
        background-color: #f7f7f8;
        border: 1px solid #e6e6ea;
        color: #14141a;
        border-radius: 4px;
        /* padding: 0.8rem 1rem; */
    }
    .contact-form-card .form-control:focus {
        background-color: #ffffff;
        border-color: #F43236;
        color: #14141a;
        box-shadow:none;
    }
    .contact-form-card ::placeholder {
        color: #9a9aa2;
        opacity: 1;
    }
    #contact h1, #contact h2, #contact h3, #contact h4, #contact h5, #contact h6,#contact p {
    color: #14141a;
    }
    #contact p {
        font-size: 0.9rem;
    }
    .btn-send {
        background-color: #F43236;
        color: #ffffff;
        border: none;
        padding: 0.9rem 1.7rem;
        font-weight: 700;
        font-size: 0.85rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        border-radius: 4px;
        transition: background-color 0.15s ease;
    }
    .btn-send:hover {
        background-color: #d92a2e;
        color: #ffffff;
    }
    .contact-form-actions {
        display: flex;
        align-items: center;
        margin-top: 1.8rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .contact-form-footnote {
        color: #6b6b76;
        font-size: 0.88rem;
        margin: 0;
    }
    .aa-nip{ color:inherit; }
    .aa-buildings-icon{
        width:44px; height:auto; flex-shrink:0;
        color:var(--aa-red, #F43236);   /* icon gets the brand red */
        }
    .aa-nip-number{
        color:#fff;
        font-size:1.5rem;
        font-weight:400;
        letter-spacing:.03em;
    }
    .faq-section {
        padding: 6rem 0;
        background-color: #f7f7f8;
        
    
    }
    .faq-section::before {
        content: "?";
        position: absolute;
        top: -6rem;
        right: -1.5rem;
        font-size: 26rem;
        font-weight: 700;
        line-height: 1;
        color: rgba(244, 50, 54, 0.3);
        font-family: inherit;
        pointer-events: none;
        z-index: 0;
        user-select: none;
    }
    .faq-section .container {
        position: relative;
        z-index: 1;
    }
    .faq-corner-mark {
        position: absolute;
        bottom: 3.6rem;
        left: -1.2rem;
        width: 130px;
        height: 130px;
        border-radius: 50%;
        border: 3px solid rgb(255 0 0 / 20%);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2.2rem;
        font-weight: 700;
        color: rgb(255 0 0 / 20%);
        pointer-events: none;
        z-index: 0;
    }
    .faq-eyebrow {
        color: #F43236;
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        margin-bottom: 0.75rem;
    }
    .faq-section h2 {
        text-align: left;
        color:var(--black);
        font-size: 2.5rem;
        font-weight: 700;
        position: relative;
    }
    .faq-subtitle {
        color: var(--gray-dark);
        font-size: 1.05rem;
        margin-top: 0.75rem;
        margin-bottom: 3rem;
    }
    .footer-section {
        background-color: var(--black);
        padding: 4.5rem 0 0;
        text-align: left;
        color: var(--white);
    }
    .footer-logo {
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        margin-bottom: 1rem;
        color: var(--white);
    }
    .footer-logo .dot {
        color: #F43236;
    }
    .footer-section > .container > .row > div > p.footer-tagline {
        font-size: 0.95rem;
        opacity: 0.7;
        margin-bottom: 0;
        max-width: 30ch;
    }
    .footer-section h3 {
        margin-bottom: 1.5rem;
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #F43236;
    }
    .footer-section p {
        margin-bottom: 0.75rem;
        font-size: 1rem;
        opacity: 0.9;
    }
    .footer-contact p i {
        width: 1.3rem;
        display: inline-block;
        text-align: center;
    }
    .footer-section .social-links {
        margin: 1.75rem 0 0;
    }
    .footer-section a {
        color: var(--white);
        transition: color 0.2s, background-color 0.2s;
    }
    .footer-section a:hover {
        color: #F43236;
    }

    .footer-contact i {
        color: var(--primary);
    }
    .social-links a {
        margin: 0 0.6rem 0 0;
        font-size: 1.1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: rgba(255,255,255,0.08);
    }
    .social-links a:hover {
        color: var(--white);
        background-color: #F43236;
    }
    .footer-bottom {
        margin-top: 3rem;
        padding: 1.5rem 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        font-size: 0.85rem;
        opacity: 0.6;
    }
    .footer-bottom .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .footer-bottom p {
        margin: 0;
    }
    .footer-links a {
        display: block;
        width: 100%;
        height: auto;
        border-radius: unset;
        background: none;
        font-weight: 500;
        font-size: 1rem;
        opacity: 0.85;
    }
    .footer-links .menu-item {
        list-style: none;
    }
	.footer-tagline {
    	text-align: center;
	}
    @media (max-width: 768px) {
        .hero-section h1 {
            font-size: 2.8rem;
        }
        .hero-section p.lead {
            font-size: 1.2rem;
        }
        .services-section-new h2,
        .services-section h2,
        .benefits-section h2,
        .portfolio-section h2,
        .references-section h2,
        .contact-section h2,
        .faq-section h2 {
            font-size: 2rem;
        }
        .contact-item {
            flex-direction: column;
            align-items: flex-start;
        }
        .contact-icon {
            margin-bottom: 0.5rem;
            margin-right: 0;
        }
    }
    /* Fast animations - override Bootstrap's slow transitions */
    .accordion-button, .accordion-collapse,
    .faq-question, .faq-answer {
        transition: none !important;
    }
    .accordion-button::after,
    .faq-question::after {
        transition: none;
    }
    .accordion-button[aria-expanded="true"]::after,
    .faq-question[aria-expanded="true"]::after {
        color: #F43236;
    }
 .secondary-section {
      /* background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/bg.png');    */
    padding: 6rem 0;
    background-color: #000000;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(oklch(100% 0 0 / .04) 1px, #0000 1px), linear-gradient(90deg, oklch(100% 0 0 / .04) 1px, #0000 1px);
    background-size: 40px 40px, 40px 40px;
}
.secondary-section h2 {
    margin-bottom: 1rem;
    text-align: center;
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 600;
    position: relative;
}
.secondary-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 65%;
    height: 4px;
    background-color: #F43236;
}
.secondary-section .lead-text {
    max-width: 640px;
    margin: 2rem auto 3rem;
    text-align: center;
    color: var(--white);
    opacity: 0.75;
    font-size: 1.05rem;
}
.sec-card {
    background-color: var(--gray-dark);
    border: 1px solid rgba(255,255,255,0.12);
    border-left: 3px solid #F43236;
    border-radius: 4px;
    padding: 2.25rem;
    height: 100%;
    display: flex;
    gap: 1.25rem;
}
.sec-card .sec-icon {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background-color: rgba(244, 50, 54, 0.12);
    color: #F43236;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.sec-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.7rem;
}
.sec-card p {
    color: var(--white);
    opacity: 0.75;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}
.reference-bottom-item {
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.reference-bottom-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin-bottom: 1.5rem; */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.reference-bottom-item:hover .reference-logo {
opacity: 1;        
}
.reference-bottom-item:hover{
    border: 1px solid #F43236;
    background-color: rgba(244, 50, 54, 0.1);
}
.reference-bottom-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.reference-bottom-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}
.reference-bottom-item:hover .reference-bottom-name, .reference-bottom-item:hover .reference-bottom-description p {
    color: #fff;
}
.reference-bottom-description P{
    opacity: 0.9;
    color: var(--black);
    text-align: justify;
}

    .services-section-new {
    padding: 4rem 0;
    background-image: repeating-linear-gradient(45deg, oklch(100% 0 0 / .03) 0 2px, #0000 2px 14px);
    overflow-x: hidden;
    position: relative;
}
.svc2-corner {
    position: absolute;
    width: 320px;
    height: 320px;
    pointer-events: none;
    z-index: 0;
}
.svc2-corner-tl { top: 0; left: 0; }
.svc2-corner-br { bottom: 0; right: 0; transform: rotate(180deg); }

    .services-section-new h2 {
    text-align: center;
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 600;
    position: relative;
}

/* --- Services grid (svc2-) --- */
.svc2-wrap { position: relative; z-index: 1; }
.svc2-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #F43236;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.svc2-eyebrow::before, .svc2-eyebrow::after {
    content: "";
    width: 40px;
    height: 1px;
    background-color: rgba(244, 50, 54, 0.5);
}
.svc2-subtitle {
    max-width: 640px;
    margin: 1rem auto 3rem;
    text-align: center;
    color: var(--white);
    opacity: 0.7;
    font-size: 1rem;
    line-height: 1.6;
}
.svc2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 992px) {
    .svc2-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .svc2-grid { grid-template-columns: 1fr; }
}
.svc2-card {
    background-color: rgb(0 0 0 / 90%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, transform 0.15s ease, background-color 0.2s ease;
}
.svc2-card:hover {
    border-color: rgba(244, 50, 54, 0.5);
    /* background-color: rgba(244, 50, 54, 0.05); */
    /* background: linear-gradient(90deg, rgb(131 0 3) 0%, rgb(180 20 10 / 57%) 100%); */
    background: linear-gradient(135deg, rgb(90 0 2), rgb(131 0 3));
    transform: translateY(-3px);
}
.svc2-card:hover .svc2-icon {
    color: var(--white);
    border: 1px solid var(--white);
}
.svc2-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(244, 50, 54, 0.12);
    border: 1px solid rgba(244, 50, 54, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F43236;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}
.svc2-icon svg {
    width: 30px;
    height: 30px;
}
.svc2-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.6rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid #F43236;
    display: inline-block;
    width: fit-content;
}
.svc2-card p {
    color: var(--white);
    opacity: 0.72;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.svc2-btn {
    align-self: flex-start;
    border: 1px solid #F43236;
    border-radius: 4px;
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.svc2-btn:hover {
    background-color: #F43236;
    color: #fff;
}

/* --- Stats bar below the grid --- */
.svc2-stats {
    margin-top: 2rem;
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1.75rem 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
@media (max-width: 860px) {
    .svc2-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .svc2-stats { grid-template-columns: 1fr; }
	.hero-image,.hero-image img{
		width:100%;
	}
	
}
.svc2-stat {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.svc2-stat-icon {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(244, 50, 54, 0.12);
    color: #F43236;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.svc2-stat h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 0.2rem;
}
.svc2-stat p {
    font-size: 0.82rem;
    color: var(--white);
    opacity: 0.65;
    margin: 0;
    line-height: 1.4;
}
h1.uslugi-item-title {
    display: flex;
}
.single-main_service .page-title {
    margin-left: 1rem;
}
.page-title {
    margin-top:.5rem;
}
.page-title p{
    font-size: 1rem;
}
a.contact_phone,a.contact_email {
    color: var(--ink);
}
a.contact_phone:hover,a.contact_email:hover {
    color: var(--primary);
}
.wpcf7-response-output {
    color: black;
}
/* Sticky Navbar */
.navbar {
    position: sticky;
    top: 0%;
    z-index: 1050;
}

/* Keep anchor sections visible below navbar */
html {
    scroll-padding-top: 100px;
}

section[id] {
    scroll-margin-top: 100px;
}

/* Mobile navbar */
@media (max-width: 991.98px) {
    .navbar {
        padding: 1.75rem 0;
    }

    .navbar-collapse {
        background-color: #000000;
        padding: 1rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }
}

.benefits-section .benefits-icon {
    display: none !important;
}
