/*
Theme Name: ARP Energia
Template: hello-elementor
Description: Child theme for ARP Energia based on Hello Elementor + Elementor Pro
Author: Promuj To
Version: 2.2
Text Domain: arp-energia
*/

/* ===== Brand Colors ===== */
:root {
    --brand: #009EE3;
    --brand-hover: #0284C7;
    --brand-light: #F0F9FF;
    --brand-50: #E0F2FE;
    --dark: #0F172A;
    --dark-mid: #1E293B;
    --slate: #334155;
    --mid: #64748B;
    --soft: #94A3B8;
}

/* ===== Global ===== */
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Scroll reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.reveal.visible,
.elementor-widget.reveal.visible,
.elementor-element.reveal.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Safety fallback — if JS observer doesn't fire, reveal after 2s */
@keyframes revealFallback {
    to { opacity: 1; transform: translateY(0); }
}
.reveal:not(.visible) {
    animation: revealFallback 0.8s cubic-bezier(0.16, 1, 0.3, 1) 2s forwards;
}

/* ===== Hero ===== */
.hero-fade {
    opacity: 0; transform: translateY(30px);
    animation: heroIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-fade-delay-1 { animation-delay: 0.15s; }
.hero-fade-delay-2 { animation-delay: 0.3s; }
.hero-fade-delay-3 { animation-delay: 0.5s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

/* ===== Elementor full-width columns: stack widgets vertically + center ===== */
.elementor-col-100 > .elementor-widget-wrap {
    flex-direction: column !important;
    align-items: center !important;
}

/* Hero heading/text width constraints */
.elementor-element-3d4c4ff2 .elementor-widget-heading,
.elementor-element-764f619 .elementor-widget-heading {
    max-width: 860px;
    width: 100%;
    text-align: center;
}
.elementor-element-3d4c4ff2 .elementor-widget-text-editor,
.elementor-element-764f619 .elementor-widget-text-editor {
    max-width: 720px;
    width: 100%;
    text-align: center;
}
@media (max-width: 767px) {
    .elementor-element-3d4c4ff2 .elementor-heading-title,
    .elementor-element-764f619 .elementor-heading-title {
        font-size: 30px !important;
        line-height: 1.2 !important;
    }
}

/* ===== Service cards — equal height + centered (PL ae75b7bf + EN d6cd34c) ===== */
.elementor-element-ae75b7bf .elementor-container,
.elementor-element-d6cd34c .elementor-container {
    align-items: stretch;
}
.elementor-element-ae75b7bf .elementor-column,
.elementor-element-d6cd34c .elementor-column {
    display: flex;
}
.elementor-element-ae75b7bf .elementor-column > .elementor-widget-wrap,
.elementor-element-d6cd34c .elementor-column > .elementor-widget-wrap {
    width: 100%;
    height: 100%;
}
.elementor-element-ae75b7bf .elementor-widget-icon-box,
.elementor-element-d6cd34c .elementor-widget-icon-box {
    height: 100%;
}
.elementor-element-ae75b7bf .elementor-widget-icon-box .elementor-widget-container,
.elementor-element-d6cd34c .elementor-widget-icon-box .elementor-widget-container,
.elementor-element-ae75b7bf .elementor-icon-box-wrapper,
.elementor-element-d6cd34c .elementor-icon-box-wrapper {
    height: 100%;
}
/* Mobile: stack service cards full width */
@media (max-width: 767px) {
    .elementor-element-ae75b7bf .elementor-column,
    .elementor-element-d6cd34c .elementor-column {
        width: 100% !important;
    }
}

/* Global section padding — safe side margins like makieta px-6 */
.elementor-section-boxed > .elementor-container {
    max-width: 1152px;
    box-sizing: content-box;
    padding-left: 24px;
    padding-right: 24px;
}
/* Photo band — edge to edge, no padding, force height on empty columns */
.elementor-element-151bc6f9 > .elementor-container {
    padding-left: 0;
    padding-right: 0;
    min-height: 300px;
}
.elementor-element-151bc6f9 .elementor-column {
    min-height: 300px;
}
.elementor-element-151bc6f9 .elementor-widget-wrap {
    min-height: 300px;
}
@media (max-width: 767px) {
    .elementor-element-151bc6f9 > .elementor-container,
    .elementor-element-151bc6f9 .elementor-column,
    .elementor-element-151bc6f9 .elementor-widget-wrap {
        min-height: 180px;
    }
}

/* ===== Header ===== */
.arp-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
.arp-header.scrolled,
.arp-header--subpage {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-bottom-color: transparent;
}
.arp-header__inner {
    max-width: 1152px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.arp-header__logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
}
.arp-header__logo-img {
    height: 28px;
    width: auto;
    display: block;
    transition: opacity 0.25s ease;
}
.arp-header__logo-home {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.arp-header__logo-home svg {
    height: 26px;
    width: 26px;
    color: var(--brand);
}
.arp-header__logo:hover .arp-header__logo-img { opacity: 0; }
.arp-header__logo:hover .arp-header__logo-home { opacity: 1; }
.arp-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}
.arp-header__menu {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    gap: 0.25rem;
}
.arp-header__menu li a {
    color: var(--slate);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}
.arp-header__menu li a:hover,
.arp-header__menu li.current-menu-item a {
    color: var(--brand);
    background: var(--brand-light);
}
/* Mobile-menu call/email block (hidden on desktop, shown in the mobile drawer) */
.arp-header__mobile-cta {
    display: none;
}

/* Header actions group (lang + CTA) */
.arp-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.arp-header__lang {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--mid);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}
.arp-header__lang:hover {
    color: var(--brand);
    background: var(--brand-light);
    border-color: var(--brand);
}
.lang-flag {
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.arp-header__cta {
    background: var(--brand);
    color: #fff !important;
    padding: 0.55rem 1.4rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
}
.arp-header__cta:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
}

/* Dropdown arrow icon */
.dropdown-arrow {
    display: inline-block;
    margin-left: 4px;
    vertical-align: middle;
    transition: transform 0.2s;
}
.menu-item-has-children:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown submenu */
.arp-header__menu .menu-item-has-children {
    position: relative;
}
.arp-header__menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    box-shadow: 0 12px 40px -8px rgba(0,0,0,0.12);
}
.arp-header__menu .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.arp-header__menu .sub-menu li a {
    display: block;
    padding: 0.55rem 1.25rem !important;
    font-size: 0.85rem !important;
    color: var(--slate) !important;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s, padding-left 0.2s;
}
.arp-header__menu .sub-menu li a:hover {
    color: var(--brand) !important;
    background: var(--brand-light) !important;
    padding-left: 1.5rem !important;
}

/* Mega-dropdown (Usługi/Services) */
.sub-menu--wide {
    min-width: 280px !important;
    padding: 12px 0 !important;
}
.sub-menu__group-label {
    display: block;
    padding: 0.6rem 1.25rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
    pointer-events: none;
}
.sub-menu__group-label:first-child {
    padding-top: 0.25rem;
}
.sub-menu__divider {
    height: 1px;
    background: #e2e8f0;
    margin: 6px 1rem;
    list-style: none;
}

/* Burger menu button */
.arp-header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.arp-header__burger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.arp-header__burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.arp-header__burger.active span:nth-child(2) { opacity: 0; }
.arp-header__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile header */
@media (max-width: 900px) {
    .arp-header__nav {
        position: fixed;
        top: 72px; left: 0; right: 0; bottom: 0;
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        overflow-y: auto;
        transform: translateX(100%);
        opacity: 0;
        transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    }
    .arp-header__nav.open { transform: translateX(0); opacity: 1; }
    .arp-header__menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    .arp-header__menu > li {
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
    .arp-header__nav.open .arp-header__menu > li { opacity: 1; transform: translateY(0); }
    .arp-header__nav.open .arp-header__menu > li:nth-child(1) { transition-delay: .06s; }
    .arp-header__nav.open .arp-header__menu > li:nth-child(2) { transition-delay: .1s; }
    .arp-header__nav.open .arp-header__menu > li:nth-child(3) { transition-delay: .14s; }
    .arp-header__nav.open .arp-header__menu > li:nth-child(4) { transition-delay: .18s; }
    .arp-header__nav.open .arp-header__menu > li:nth-child(5) { transition-delay: .22s; }
    .arp-header__nav.open .arp-header__menu > li:nth-child(6) { transition-delay: .26s; }
    .arp-header__menu li a {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
    }
    .menu-item-has-children > a .dropdown-arrow {
        margin-left: 8px;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .menu-item-has-children.submenu-open > a .dropdown-arrow {
        transform: rotate(180deg);
    }
    .arp-header__menu .sub-menu {
        position: static;
        transform: none;
        opacity: 0;
        visibility: visible;
        background: var(--brand-light);
        border: none;
        border-radius: 8px;
        box-shadow: none;
        min-width: 0;
        padding: 0 0;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    }
    .menu-item-has-children.submenu-open > .sub-menu {
        opacity: 1;
        max-height: 320px;
        padding: 4px 0;
        margin-top: 4px;
    }
    .arp-header__menu .menu-item-has-children:hover > .sub-menu {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        opacity: 0;
        max-height: 0;
    }
    .menu-item-has-children.submenu-open:hover > .sub-menu {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        opacity: 1;
        max-height: 320px;
    }
    .arp-header__menu .sub-menu li a {
        padding: 0.5rem 1.5rem !important;
        font-size: 0.95rem !important;
    }
    .arp-header__mobile-cta {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: auto;
        padding-top: 24px;
        border-top: 1px solid #e2e8f0;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        transition-delay: .3s;
    }
    .arp-header__nav.open .arp-header__mobile-cta { opacity: 1; transform: translateY(0); }
    .arp-header__mobile-call {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: var(--brand);
        color: #fff;
        font-weight: 700;
        font-size: 1rem;
        padding: 14px;
        border-radius: 12px;
        text-decoration: none;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .arp-header__mobile-call:hover, .arp-header__mobile-call:active {
        transform: translateY(-1px);
        box-shadow: 0 8px 20px -6px rgba(0,158,227,0.5);
    }
    .arp-header__mobile-email {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: var(--slate);
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 600;
        padding: 6px;
    }
    .arp-header__mobile-email:hover { color: var(--brand); }
    .arp-header__actions { gap: 8px; margin-left: auto; }
    .arp-header__inner { gap: 0.75rem; }
    .arp-header__cta { display: none; }
    .arp-header__lang span { display: none; }
    .arp-header__lang { padding: 5px 8px; }
    .arp-header__burger { display: flex; }
}

/* Push page content below fixed header */
body.has-arp-header {
    padding-top: 0; /* hero goes under transparent header on homepage */
}
body.has-arp-header:not(.home) {
    padding-top: 72px; /* subpages need space since header is opaque */
}
/* Hide default hello-elementor header if it exists */
.site-header:not(.arp-header) { display: none !important; }

.site-header, .elementor-sticky--active {
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    background: rgba(255,255,255,0.82) !important;
}

/* ===== Service cards ===== */
.service-card {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.08);
}

/* ===== Hero overlay ===== */
.hero-overlay {
    background: linear-gradient(135deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.7) 60%, rgba(15,23,42,0.5) 100%);
}

/* ===== Buttons ===== */
.btn-primary, .elementor-button.elementor-button-link {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary:hover, .elementor-button.elementor-button-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.4);
}

/* ===== Forms ===== */
.form-input, .elementor-field-textual {
    font-size: 16px;
    color: #fff;
    background: #1E293B;
    border: 1px solid #374151;
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.form-input:focus, .elementor-field-textual:focus {
    outline: none;
    border-color: #009EE3;
    background: #1a2638;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ===== Photo sections ===== */
.photo-section { position: relative; overflow: hidden; }
.photo-section img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 8s cubic-bezier(0.16, 1, 0.3, 1);
}
.photo-section:hover img { transform: scale(1.04); }

/* ===== Testimonial cards ===== */
.testimonial-card {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(0,0,0,0.06);
}

/* ===== Range slider ===== */
input[type="range"] {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 6px;
    background: linear-gradient(to right, #009EE3 var(--progress, 13.3%), #E2E8F0 var(--progress, 13.3%));
    border-radius: 999px; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 22px; height: 22px;
    background: #009EE3; border-radius: 50%; cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* ===== Trust bar ===== */
.trust-item {
    opacity: 0; transform: translateY(10px);
    animation: trustIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.trust-item:nth-child(1) { animation-delay: 0.6s; }
.trust-item:nth-child(2) { animation-delay: 0.72s; }
.trust-item:nth-child(3) { animation-delay: 0.84s; }
.trust-item:nth-child(4) { animation-delay: 0.96s; }
@keyframes trustIn { to { opacity: 1; transform: translateY(0); } }

/* ===== Step circles ===== */
.step-circle {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.step-group:hover .step-circle {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.12);
}

/* ===== Elementor overrides ===== */
.elementor-page .elementor-section.elementor-section-full_width > .elementor-container {
    max-width: 100%;
}
.elementor-page .elementor-section-boxed > .elementor-container {
    max-width: 1152px;
}

/* ===== Responsive — Mobile First ===== */

/* --- Hero section --- */
@media (max-width: 767px) {
    /* Hero padding */
    .elementor-section[data-id] .elementor-widget-heading h1 {
        font-size: 1.75rem !important;
        line-height: 1.12 !important;
    }
    .elementor-section[data-id] .elementor-widget-heading h2 {
        font-size: 1.5rem !important;
    }
    .elementor-section[data-id] .elementor-widget-heading h3 {
        font-size: 1.25rem !important;
    }

    /* Trust bar — smaller gap on mobile */
    .elementor-icon-list-items {
        gap: 0.5rem !important;
    }
    .elementor-icon-list-item .elementor-icon-list-text {
        font-size: 13px !important;
    }

    /* Service cards — stack vertically, horizontal card layout */
    .elementor-widget-icon-box .elementor-icon-box-wrapper {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 1rem;
    }
    .elementor-widget-icon-box .elementor-icon-box-icon {
        margin-bottom: 0 !important;
        width: 44px !important;
        min-width: 44px;
    }
    .elementor-widget-icon-box .elementor-icon-box-content {
        text-align: left !important;
    }
    .elementor-widget-icon-box .elementor-icon-box-title {
        font-size: 1rem !important;
        margin-bottom: 0.25rem !important;
    }
    .elementor-widget-icon-box .elementor-icon-box-description {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
    }

    /* Photo band — shorter on mobile */
    .elementor-section .elementor-column .elementor-element-populated[style*="min-height"] {
        min-height: 120px !important;
    }

    /* Calculator — tighter padding */
    .calc-wrap {
        padding: 1.5rem !important;
    }
    .calc-wrap h2 {
        font-size: 1.5rem !important;
    }

    /* Process steps — 2 columns on small */
    .step-group {
        flex-direction: column;
    }

    /* Testimonial cards — stack */
    .testimonial-grid {
        grid-template-columns: 1fr !important;
    }

    /* Stats counters — smaller text */
    .elementor-counter-number-wrapper {
        font-size: 2rem !important;
    }

    /* CTA section */
    .elementor-section .elementor-widget-heading h2[style*="font-size"] {
        font-size: 1.5rem !important;
    }

    /* Lead form */
    .lead-form-grid {
        grid-template-columns: 1fr !important;
    }

    /* Elementor columns → stack on mobile */
    .elementor-row, .elementor-container {
        flex-wrap: wrap !important;
    }
    .elementor-column {
        width: 100% !important;
    }
    .elementor-column-wrap, .elementor-widget-wrap {
        padding: 0 !important;
    }

    /* Hero buttons — full width on mobile */
    .elementor-widget-button .elementor-button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* --- Tablet (768px – 1023px) --- */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Service cards: keep 3-col but smaller */
    .elementor-widget-icon-box .elementor-icon-box-title {
        font-size: 1.1rem !important;
    }
    /* Process steps: 2x2 grid (matches makieta sm:grid-cols-2) */
    .elementor-widget-html div[style*="repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* Testimonials: keep 3-col on tablet */
}

/* --- Photo band mobile fix --- */
@media (max-width: 767px) {
    .elementor-section .elementor-row > .elementor-column:not(:only-child) {
        /* Photo band: keep 3-col on mobile but shorter */
    }
    /* For 3-column photo band specifically */
    .elementor-section[data-id] > .elementor-container > .elementor-column {
        min-height: 120px;
    }
}

/* --- General responsive helpers --- */
@media (max-width: 767px) {
    /* Sections — reduced vertical padding on mobile (Elementor inline styles handle per-section) */
    .elementor-section > .elementor-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Ensure HTML widget content is responsive */
.elementor-widget-html {
    overflow-x: hidden;
    max-width: 100%;
}
.elementor-widget-html > .elementor-widget-container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Calculator responsive grid — inline style override */
@media (max-width: 639px) {
    #kalkulator div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    #kalkulator div[style*="padding:48px"],
    #kalkulator div[style*="padding: 48px"] {
        padding: 24px !important;
    }
    #calcSavings, #calcROI {
        font-size: 24px !important;
    }
}

/* Form responsive — inline style override */
@media (max-width: 639px) {
    #leadForm div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* Process steps responsive — inline style override */
@media (max-width: 767px) {
    .elementor-widget-html div[style*="repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }
}
@media (max-width: 480px) {
    .elementor-widget-html div[style*="repeat(4"] {
        grid-template-columns: 1fr !important;
    }
}

/* Stats counters — 2x2 on mobile */
@media (max-width: 767px) {
    .elementor-section[data-id="b2515e64"] > .elementor-container {
        flex-wrap: wrap !important;
    }
    .elementor-section[data-id="b2515e64"] .elementor-column {
        width: 50% !important;
        margin-bottom: 24px;
    }
}

/* Trust bar — wrap on mobile */
@media (max-width: 767px) {
    .elementor-section[data-id="24bd4550"] > .elementor-container {
        flex-wrap: wrap !important;
    }
    .elementor-section[data-id="24bd4550"] .elementor-column {
        width: 50% !important;
    }
}

/* Photo band — keep 3-col on mobile, don't stack */
@media (max-width: 767px) {
    .elementor-element-151bc6f9 > .elementor-container {
        flex-wrap: nowrap !important;
    }
    .elementor-element-151bc6f9 .elementor-column {
        width: 33.333% !important;
    }
}

/* ===== Footer ===== */
.arp-footer {
    background: #fff;
    color: var(--mid);
    padding: 56px 0;
    border-top: 1px solid #e2e8f0;
    font-family: 'Inter', system-ui, sans-serif;
}
.arp-footer__inner {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 24px;
}
.arp-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}
.arp-footer__logo {
    text-decoration: none;
    display: inline-block;
    margin-bottom: 16px;
}
.arp-footer__logo-img {
    height: 26px;
    width: auto;
    display: block;
}
.arp-footer__desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--mid);
}
.arp-footer__social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.arp-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.arp-footer__social-link:hover {
    background: var(--brand);
    color: #fff;
    transform: translateY(-2px);
}
.arp-footer__heading {
    color: var(--dark);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}
.arp-footer__text {
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--mid);
}
.arp-footer__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}
.arp-footer__contact-link svg { flex-shrink: 0; color: var(--brand); }
.arp-footer__contact-link:hover { color: var(--brand); }
.arp-footer__links {
    list-style: none;
    margin: 0; padding: 0;
}
.arp-footer__links li { margin-bottom: 8px; }
.arp-footer__links a {
    color: var(--mid);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.arp-footer__links a:hover { color: var(--brand); }
.arp-footer__bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 32px;
    text-align: center;
    font-size: 12px;
    color: var(--soft);
}
.arp-footer__bottom a {
    color: var(--mid);
    text-decoration: none;
    transition: color 0.2s;
}
.arp-footer__bottom a:hover { color: var(--brand); }

@media (max-width: 768px) {
    .arp-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px 24px;
    }
    .arp-footer__col--brand {
        grid-column: 1 / -1;
        text-align: center;
    }
    .arp-footer__col--brand .arp-footer__logo { margin-left: auto; margin-right: auto; }
    .arp-footer__col--brand .arp-footer__desc { max-width: 360px; margin: 0 auto; }
    .arp-footer__col--brand .arp-footer__social { justify-content: center; }
}
@media (max-width: 420px) {
    .arp-footer__grid { grid-template-columns: 1fr; text-align: center; }
    .arp-footer__contact-link { justify-content: center; }
    .arp-footer__links { display: flex; flex-direction: column; align-items: center; }
}

/* Hide hello-elementor default footer */
footer.site-footer:not(.arp-footer) { display: none !important; }

/* Hide default WordPress page title on Elementor pages */
.page .entry-header,
.page .page-header,
.page-template-elementor_header_footer .entry-header,
body:not(.home) .entry-title,
body:not(.home) .page-title,
.elementor-page .entry-header {
    display: none !important;
}

/* === Hover effects (replaces inline onmouseover/onmouseout removed for Elementor compat) === */
#kalkulator a[href="#formularz"]:hover { background: #0284C7 !important; }
#leadForm button[type="submit"]:hover { background: #0284C7 !important; }
#leadForm input:focus,
#leadForm select:focus { border-color: #009EE3 !important; }

/* ===== Page hero (subpages) ===== */
.arp-page-hero {
    padding: 5rem 1.5rem 3.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    text-align: center;
}
.arp-page-hero__inner {
    max-width: 720px;
    margin: 0 auto;
}
.arp-page-hero__label {
    color: var(--brand);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.75rem;
}
.arp-page-hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 1rem;
}
.arp-page-hero__desc {
    color: var(--mid);
    font-size: 1.1rem;
    line-height: 1.65;
    font-weight: 300;
}

/* Breadcrumbs */
.arp-breadcrumbs {
    font-size: 0.82rem;
    margin-bottom: 1.25rem;
}
.arp-breadcrumbs a {
    color: var(--mid);
    text-decoration: none;
    transition: color 0.2s;
}
.arp-breadcrumbs a:hover { color: var(--brand); }
.arp-breadcrumbs__sep { color: var(--soft); margin: 0 0.4rem; }
.arp-breadcrumbs__current { color: var(--brand); font-weight: 500; }

/* Page content (non-Elementor) */
.arp-page-content {
    padding: 3rem 1.5rem 5rem;
}
.arp-page-content__inner {
    max-width: 800px;
    margin: 0 auto;
}

/* Prose styling */
.arp-prose h2 { font-size: 1.5rem; font-weight: 700; color: var(--dark); margin: 2.5rem 0 0.75rem; }
.arp-prose h3 { font-size: 1.15rem; font-weight: 600; color: var(--dark-mid); margin: 1.75rem 0 0.5rem; }
.arp-prose p { color: var(--slate); line-height: 1.75; margin-bottom: 1rem; }
.arp-prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.arp-prose li { color: var(--slate); margin-bottom: 0.4rem; line-height: 1.7; }
.arp-prose a { color: var(--brand); text-decoration: underline; }
.arp-prose a:hover { color: var(--brand-hover); }

/* Placeholder for empty pages */
.arp-page-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--soft);
}
.arp-page-placeholder svg { margin: 0 auto 1.5rem; opacity: 0.4; }
.arp-page-placeholder p { font-size: 1.05rem; max-width: 400px; margin: 0 auto; }

/* ===== Przetargi (Tenders) ===== */
.arp-tenders { padding: 3rem 1.5rem 5rem; }
.arp-tenders__inner { max-width: 800px; margin: 0 auto; }

.arp-tender {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 24px -4px rgba(0,0,0,0.06);
}
.arp-tender__badges { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.arp-tender__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.75rem;
    border-radius: 99px;
}
.arp-tender__badge--active { background: #f0fdf4; color: #15803d; }
.arp-tender__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #22c55e; }
.arp-tender__badge--ref { background: #f1f5f9; color: var(--mid); }

.arp-tender__title {
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--dark);
}
.arp-tender__deadline {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--brand-light);
    border: 1px solid rgba(37,99,235,0.15);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}
.arp-tender__deadline svg { color: var(--brand); flex-shrink: 0; margin-top: 0.1rem; }
.arp-tender__deadline-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand);
    font-weight: 600;
    margin-bottom: 0.15rem;
}
.arp-tender__deadline-date {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
}
.arp-tender__body p {
    color: var(--slate);
    line-height: 1.7;
    margin-bottom: 0.9rem;
}
.arp-tender__warning {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    color: #92400e;
}
.arp-tender__warning svg { color: #d97706; flex-shrink: 0; margin-top: 0.15rem; }
.arp-tender__docs {
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
}
.arp-tender__docs-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}
.arp-tender__docs-title svg { color: var(--brand); }
.arp-tender__docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.arp-doc-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    text-decoration: none;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.arp-doc-card:hover {
    border-color: var(--brand);
    box-shadow: 0 10px 24px -10px rgba(37,99,235,0.25);
    transform: translateY(-2px);
}
.arp-doc-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.arp-doc-card__icon--pdf { background: #fef2f2; color: #dc2626; }
.arp-doc-card__icon--doc { background: #eff6ff; color: #2563eb; }
.arp-doc-card__name {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
}
.arp-doc-card__meta {
    display: block;
    font-size: 0.75rem;
    color: var(--mid);
    margin-top: 0.2rem;
}
.arp-tender__contact-note {
    font-size: 0.8rem;
    color: var(--mid);
    margin-top: 1rem;
}
.arp-tender__contact-note a { color: var(--brand); text-decoration: underline; }

.arp-tender__qa {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}
.arp-tender__qa-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
}
.arp-tender__qa-title svg { color: var(--brand); }
.arp-tender__qa-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.arp-qa-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}
.arp-qa-item__q {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.5;
}
.arp-qa-item__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}
.arp-qa-item__a {
    padding: 0 1.25rem 1rem 4rem;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.7;
}

/* Tender empty state */
.arp-tender-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--mid);
}
.arp-tender-empty svg {
    color: #cbd5e1;
    margin-bottom: 1rem;
}
.arp-tender-empty p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Past tenders history */
.arp-tenders__history {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 2px solid #e2e8f0;
}
.arp-tenders__history-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
}
.arp-tenders__history-title svg { color: var(--mid); }
.arp-tenders__history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.arp-tender-past {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.arp-tender-past__badge {
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    flex-shrink: 0;
}
.arp-tender-past__title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dark);
    flex: 1;
}
.arp-tender-past__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--mid);
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .arp-tender-past { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .arp-tender-past__meta { flex-direction: column; gap: 0.25rem; }
}

/* ===== Kontakt (Contact) ===== */
.arp-contact { padding: 3rem 1.5rem 5rem; }
.arp-contact__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 900px) {
    .arp-contact__inner { grid-template-columns: 1fr; }
}
.arp-contact__info-card {
    background: var(--dark);
    color: #fff;
    padding: 2rem;
    border-radius: 1rem;
}
.arp-contact__info-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
}
.arp-contact__info-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--soft);
    margin-bottom: 0.5rem;
}
.arp-contact__info-card strong { color: #fff; }
.arp-contact__phone,
.arp-contact__email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
.arp-contact__phone svg,
.arp-contact__email svg { color: var(--brand); flex-shrink: 0; }
.arp-contact__phone a,
.arp-contact__email a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.arp-contact__phone a:hover,
.arp-contact__email a:hover { color: var(--brand); }
.arp-contact__reg {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 1.5rem;
    padding-top: 1rem;
}
.arp-contact__reg p { font-size: 0.75rem; color: var(--mid); }

/* Contact tabs */
.arp-contact__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.5rem;
}
.arp-contact__tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border: none;
    background: none;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--mid);
    cursor: pointer;
    border-radius: 0.5rem;
    transition: color 0.2s, background 0.2s;
}
.arp-contact__tab:hover { color: var(--brand); background: var(--brand-light); }
.arp-contact__tab.active {
    color: var(--brand);
    background: var(--brand-light);
    font-weight: 600;
}
.arp-contact__panel { display: none; }
.arp-contact__panel.active { display: block; }
.arp-contact__panel h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.5rem;
}
.arp-contact__panel-desc {
    font-size: 0.88rem;
    color: var(--mid);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Form styles */
.arp-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
@media (max-width: 600px) { .arp-form__row { grid-template-columns: 1fr; } }
.arp-form__field { margin-bottom: 0.5rem; }
.arp-form__field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--slate);
    margin-bottom: 0.3rem;
}
.arp-form__field input,
.arp-form__field textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--dark);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.arp-form__field input:focus,
.arp-form__field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.arp-form__consent {
    margin: 1rem 0;
    font-size: 0.8rem;
    color: var(--mid);
}
.arp-form__consent label {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    cursor: pointer;
}
.arp-form__consent input[type="checkbox"] { margin-top: 0.15rem; flex-shrink: 0; }
.arp-form__consent a { color: var(--brand); text-decoration: underline; }
.arp-form__submit {
    display: inline-flex;
    padding: 0.75rem 2rem;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.arp-form__submit:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px -4px rgba(37,99,235,0.35);
}
.arp-form__submit:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
    box-shadow: none;
}
/* Honeypot - visually removed, still in the DOM for bots */
.arp-form__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.arp-form__error {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 0.5rem;
    color: #B91C1C;
    font-size: 0.88rem;
    line-height: 1.5;
}
.arp-form__success {
    text-align: center;
    padding: 3rem 2rem;
    flex-direction: column;
    align-items: center;
}
.arp-form__success svg { color: #22c55e; margin-bottom: 1rem; }
.arp-form__success h3 { font-size: 1.25rem; font-weight: 700; color: var(--dark); margin: 0 0 0.5rem; }
.arp-form__success p { color: var(--mid); }

/* ========================================
   CONVERSION COMPONENTS
   Enterprise selling page layouts
   ======================================== */

/* --- Enhanced Page Hero with CTA --- */
.arp-page-hero--cta { padding: 6rem 1.5rem 4.5rem; }
.arp-page-hero--cta .arp-page-hero__inner { max-width: 820px; }
.arp-page-hero--cta .arp-page-hero__title {
    font-size: clamp(2.2rem, 5.5vw, 3.4rem);
    margin-bottom: 1.25rem;
}
.arp-page-hero--cta .arp-page-hero__desc {
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto 2rem;
}
.arp-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.arp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 0.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s;
    border: 2px solid transparent;
}
.arp-btn--primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}
.arp-btn--primary:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px rgba(37,99,235,0.4);
}
.arp-btn--outline {
    background: transparent;
    color: var(--brand);
    border-color: var(--brand);
}
.arp-btn--outline:hover {
    background: var(--brand);
    color: #fff;
    transform: translateY(-2px);
}
.arp-btn--white {
    background: #fff;
    color: var(--brand);
    border-color: #fff;
}
.arp-btn--white:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px rgba(0,0,0,0.2);
}
.arp-btn--ghost {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}
.arp-btn--ghost:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}
.arp-btn svg { width: 18px; height: 18px; }

/* --- Full-width Section --- */
.arp-section {
    padding: 5rem 1.5rem;
}
.arp-section--gray { background: #f8fafc; }
.arp-section--dark { background: var(--dark); color: #fff; }
.arp-section--brand { background: var(--brand); color: #fff; }
.arp-section--gradient { background: linear-gradient(135deg, #1e3a5f 0%, var(--dark) 100%); color: #fff; }
.arp-section__inner {
    max-width: 1140px;
    margin: 0 auto;
}
.arp-section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}
.arp-section__label {
    color: var(--brand);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.75rem;
}
.arp-section--dark .arp-section__label,
.arp-section--brand .arp-section__label,
.arp-section--gradient .arp-section__label { color: rgba(255,255,255,0.6); }
.arp-section__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 1rem;
}
.arp-section--dark .arp-section__title { color: #fff; }
.arp-section__subtitle {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--mid);
}
.arp-section--dark .arp-section__subtitle { color: rgba(255,255,255,0.65); }

/* --- Feature Cards Grid --- */
.arp-features {
    display: grid;
    gap: 1.5rem;
}
.arp-features--2 { grid-template-columns: repeat(2, 1fr); }
.arp-features--3 { grid-template-columns: repeat(3, 1fr); }
.arp-features--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
    .arp-features--3, .arp-features--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .arp-features--2, .arp-features--3, .arp-features--4 { grid-template-columns: 1fr; }
}

.arp-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
}
.arp-card:hover {
    border-color: var(--brand);
    box-shadow: 0 12px 32px -8px rgba(37,99,235,0.15);
    transform: translateY(-4px);
}
.arp-section--dark .arp-card,
.arp-section--gradient .arp-card {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
}
.arp-section--dark .arp-card:hover,
.arp-section--gradient .arp-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 12px 32px -8px rgba(0,0,0,0.3);
}
.arp-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: var(--brand-light);
    color: var(--brand);
}
.arp-section--dark .arp-card__icon {
    background: rgba(37,99,235,0.2);
    color: #60a5fa;
}
.arp-card__icon svg { width: 22px; height: 22px; }
.arp-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.6rem;
    line-height: 1.3;
}
.arp-section--dark .arp-card__title { color: #fff; }
.arp-card__text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--mid);
    margin: 0 0 1rem;
}
.arp-section--dark .arp-card__text { color: rgba(255,255,255,0.55); }
.arp-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    transition: gap 0.2s;
}
.arp-card__link:hover { gap: 0.6rem; }
.arp-card__link svg { width: 16px; height: 16px; }

/* Card as link (whole card clickable) */
a.arp-card { text-decoration: none; }
a.arp-card:hover .arp-card__title { color: var(--brand); }

/* --- Stats Bar --- */
.arp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
@media (max-width: 768px) {
    .arp-stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 480px) {
    .arp-stats { grid-template-columns: 1fr; }
}
.arp-stat__number {
    display: block;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.35rem;
}
.arp-section--dark .arp-stat__number,
.arp-section--gradient .arp-stat__number { color: #fff; }
.arp-stat__label {
    font-size: 0.85rem;
    color: var(--mid);
    font-weight: 500;
}
.arp-section--dark .arp-stat__label { color: rgba(255,255,255,0.5); }

/* --- CTA Banner --- */
.arp-cta-banner {
    padding: 4rem 1.5rem;
    text-align: center;
    background: var(--brand);
    color: #fff;
}
.arp-cta-banner--dark {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}
.arp-cta-banner__inner {
    max-width: 720px;
    margin: 0 auto;
}
.arp-cta-banner__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}
.arp-cta-banner__text {
    font-size: 1.05rem;
    opacity: 0.85;
    margin: 0 0 2rem;
    line-height: 1.6;
}

/* --- Process / Steps --- */
.arp-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    counter-reset: step;
}
@media (max-width: 900px) {
    .arp-process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .arp-process { grid-template-columns: 1fr; }
}
.arp-step {
    position: relative;
    counter-increment: step;
}
.arp-step__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.arp-step__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.4rem;
}
.arp-step__text {
    font-size: 0.88rem;
    color: var(--mid);
    line-height: 1.55;
}

/* --- Two Column Layout --- */
.arp-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
@media (max-width: 768px) {
    .arp-two-col { grid-template-columns: 1fr; gap: 2rem; }
}
.arp-two-col--reverse .arp-two-col__visual { order: -1; }
@media (max-width: 768px) {
    .arp-two-col--reverse .arp-two-col__visual { order: 0; }
}
.arp-two-col__content h2,
.arp-two-col > div h2 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}
.arp-two-col__content p,
.arp-two-col > div > p {
    color: var(--mid);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.arp-two-col__visual {
    background: linear-gradient(135deg, var(--brand-light) 0%, #dbeafe 100%);
    border-radius: 1rem;
    padding: 3rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Checklist with icons --- */
.arp-checklist {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}
.arp-checklist li,
.arp-checklist__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: var(--slate);
    line-height: 1.5;
}
.arp-checklist li::before {
    content: "";
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.1rem;
    border-radius: 50%;
    background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2316a34a'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E") center / 60% no-repeat;
}
.arp-checklist__item > svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 0.15rem;
    color: #16a34a;
}

/* --- Highlight / Quote Box --- */
.arp-highlight {
    background: var(--brand-light);
    border-left: 4px solid var(--brand);
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}
.arp-highlight h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.75rem;
}
.arp-highlight p {
    margin: 0 0 1rem;
    color: var(--dark);
    font-size: 0.95rem;
    line-height: 1.6;
}
.arp-highlight p:last-child { margin-bottom: 0; }
.arp-highlight strong { color: var(--brand); }
.arp-highlight .arp-btn { margin-top: 0.5rem; }
.arp-highlight ul {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
    color: var(--mid);
    font-size: 0.9rem;
    line-height: 1.7;
}
.arp-highlight ul li { margin-bottom: 0.25rem; }

/* --- Inline Callback Form --- */
.arp-callback {
    background: var(--dark);
    border-radius: 1rem;
    padding: 2.5rem;
    color: #fff;
}
.arp-callback__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}
.arp-callback__text {
    font-size: 0.9rem;
    color: var(--soft);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}
.arp-callback__form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.arp-callback__form input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
}
.arp-callback__form input::placeholder { color: rgba(255,255,255,0.4); }
.arp-callback__form input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}
.arp-callback__form button {
    padding: 0.75rem 1.75rem;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.arp-callback__form button:hover { background: var(--brand-hover); }

/* --- Trust / Partners --- */
.arp-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: opacity 0.3s, filter 0.3s;
}
.arp-trust:hover { opacity: 0.8; filter: grayscale(50%); }

/* --- Badge / Tag --- */
.arp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.arp-badge--brand { background: var(--brand-light); color: var(--brand); }
.arp-badge--green { background: #f0fdf4; color: #15803d; }

/* --- Divider with icon --- */
.arp-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
}
.arp-divider::before, .arp-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.arp-divider svg { color: var(--soft); width: 20px; height: 20px; }

/* --- Wide prose (for conversion pages) --- */
.arp-page-content--wide .arp-page-content__inner {
    max-width: 1140px;
}

/* Content within wide pages uses full-width sections */
.arp-page-content--wide .arp-prose {
    max-width: 100%;
}
.arp-page-content--wide .arp-prose h2 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    text-align: center;
    margin: 3rem 0 1rem;
}
.arp-page-content--wide .arp-prose > p:first-of-type {
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   VISUAL POLISH v1.4 — depth, gradients & micro-interactions
   Shared components across subpage / o-nas / contact templates
   ============================================================ */

/* ── Subpage hero: atmospheric depth + engineering grid ── */
.arp-page-hero {
    position: relative;
    background:
        radial-gradient(50% 90% at 88% 0%, rgba(0,158,227,0.10) 0%, transparent 60%),
        radial-gradient(42% 80% at 6% 100%, rgba(45,212,191,0.08) 0%, transparent 60%),
        linear-gradient(135deg, #f4f9fd 0%, #eaf1fb 100%);
    overflow: hidden;
}
.arp-page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(12,45,72,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(12,45,72,0.04) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: radial-gradient(100% 85% at 82% 0%, #000 20%, transparent 72%);
            mask-image: radial-gradient(100% 85% at 82% 0%, #000 20%, transparent 72%);
    pointer-events: none;
}
.arp-page-hero__inner { position: relative; }
.arp-page-hero__label {
    display: inline-block;
    background: linear-gradient(90deg, #009EE3, #2dd4bf);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Gradient section labels everywhere ── */
.arp-section:not(.arp-section--dark):not(.arp-section--gradient):not(.arp-section--brand) .arp-section__label {
    display: inline-block;
    background: linear-gradient(90deg, #009EE3, #2dd4bf);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Light sections: soft gradient instead of flat gray ── */
.arp-section--gray {
    background:
        radial-gradient(55% 70% at 92% 8%, rgba(0,158,227,0.05) 0%, transparent 60%),
        linear-gradient(180deg, #f8fafc 0%, #eef5fb 100%);
}

/* ── Feature cards: top accent line + deeper lift ── */
.arp-card { overflow: hidden; transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s, border-color 0.35s; }
.arp-section:not(.arp-section--dark):not(.arp-section--gradient) .arp-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #009EE3, #2dd4bf);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.arp-section:not(.arp-section--dark):not(.arp-section--gradient) .arp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px -12px rgba(12,45,72,0.18);
    border-color: transparent;
}
.arp-section:not(.arp-section--dark):not(.arp-section--gradient) .arp-card:hover::before { transform: scaleX(1); }
.arp-card__icon { transition: transform 0.4s cubic-bezier(0.16,1,0.3,1); }
.arp-card:hover .arp-card__icon { transform: scale(1.08) rotate(-3deg); }

/* ── Header CTA: gradient + shine sweep ── */
.arp-header__cta {
    position: relative;
    background: linear-gradient(135deg, #00a8ef 0%, #0284c7 100%);
    overflow: hidden;
    box-shadow: 0 3px 12px -4px rgba(0,158,227,0.5);
}
.arp-header__cta::after {
    content: '';
    position: absolute; top: 0; left: -130%;
    width: 55%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-18deg);
    transition: left 0.6s cubic-bezier(0.16,1,0.3,1);
}
.arp-header__cta:hover { transform: translateY(-1px); }
.arp-header__cta:hover::after { left: 130%; }

/* ── Form submit button: gradient + shine (contact page) ── */
.arp-form__submit {
    position: relative;
    background: linear-gradient(135deg, #00a8ef 0%, #0284c7 100%);
    overflow: hidden;
    box-shadow: 0 4px 14px -4px rgba(0,158,227,0.45);
}
.arp-form__submit::after {
    content: '';
    position: absolute; top: 0; left: -130%;
    width: 55%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-18deg);
    transition: left 0.6s cubic-bezier(0.16,1,0.3,1);
}
.arp-form__submit:hover::after { left: 130%; }
.arp-form__submit:disabled::after { display: none; }

/* ── Stat numbers: gradient accent ── */
.arp-section:not(.arp-section--dark):not(.arp-section--gradient) .arp-stat__number {
    background: linear-gradient(135deg, #009EE3, #2dd4bf);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Global: nicer focus ring + reduced-motion safety ── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* ── Fix: hello-elementor reset.css declares `a:active, a:hover { color:#333366 }`
   (specificity 0,1,1) which beats our single-class button colours (0,1,0) and turns
   button text dark navy on hover. Re-assert button text colour on interaction. ── */
.fp-btn--primary:hover, .fp-btn--primary:focus, .fp-btn--primary:active,
.fp-btn--outline:hover, .fp-btn--outline:focus, .fp-btn--outline:active,
.us-cta__btn:hover, .us-cta__btn:focus, .us-cta__btn:active,
.nl-cta-btn:hover, .nl-cta-btn:focus, .nl-cta-btn:active {
    color: #fff;
}
.fp-btn--white:hover, .fp-btn--white:focus, .fp-btn--white:active {
    color: var(--dark);
}
.us-section__more:hover, .us-section__more:focus,
.fp-service-card__more:hover {
    color: var(--brand-hover);
}

/* ── RODO / legal accordions (native <details>) ── */
.arp-prose details.arp-rodo {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin: 0 0 1rem;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.arp-prose details.arp-rodo[open] {
    border-color: var(--brand-50);
    box-shadow: 0 8px 28px -16px rgba(12,45,72,0.25);
}
.arp-prose details.arp-rodo > summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 3rem 1.1rem 1.25rem;
    font-weight: 600;
    color: var(--dark);
    position: relative;
    line-height: 1.5;
    transition: color 0.2s, background 0.2s;
}
.arp-prose details.arp-rodo > summary::-webkit-details-marker { display: none; }
.arp-prose details.arp-rodo > summary:hover { color: var(--brand); background: #f8fafc; }
.arp-prose details.arp-rodo > summary::after {
    content: '';
    position: absolute;
    right: 1.25rem;
    top: 1.4rem;
    width: 9px; height: 9px;
    border-right: 2px solid var(--mid);
    border-bottom: 2px solid var(--mid);
    transform: rotate(45deg);
    transition: transform 0.25s;
}
.arp-prose details.arp-rodo[open] > summary::after { transform: rotate(-135deg); }
.arp-prose details.arp-rodo > p {
    padding: 0 1.25rem;
    font-size: 0.92rem;
    color: var(--slate);
}
.arp-prose details.arp-rodo > p:last-child { padding-bottom: 1.25rem; }

/* ── Accessibility (WCAG): content links distinguishable beyond colour ── */
.arp-footer__links a,
.arp-footer__text a,
.arp-prose a,
.arp-contact__info a[href^="mailto"],
.arp-contact__info a[href^="tel"] {
    text-decoration: underline;
    text-underline-offset: 2px;
}
