/*
Theme Name: AroDigital Custom
Author: AroDigital
Version: 4.2 (Fixed Cookie Buttons, Generalized Button Selectors & WCAG AA)
*/

html { scroll-behavior: smooth; }

:root {
    --dark-bg: #000b21;
    --accent-teal: #00f2c3;
    --accent-blue: #007bff;
    --text-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--dark-bg);
    color: var(--text-white);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding-top: 0;
}

/* Poprawka pod pasek admina WordPressa */
body.admin-bar header { top: 32px; }

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

/* --- ANIMACJE KLUCZOWE --- */
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes floating-fractal {
    0% { opacity: 0; transform: translate(0, 0) scale(1); }
    50% { opacity: 0.6; transform: translate(40px, -50px) scale(1.4); } 
    100% { opacity: 0; transform: translate(-20px, 20px) scale(1); }
}

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

/* --- HEADER & LOGO --- */
header {
    position: fixed; 
    top: 0; left: 0; width: 100%; z-index: 9999;
    background: rgba(0, 11, 33, 0.8); 
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0; 
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img, .footer-logo {
    display: block;
    height: auto;
    max-height: 45px;
    filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
    transition: filter 0.4s ease-out;
    will-change: filter;
}

body header .logo a:hover img {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
}

body header .nav-links ul {
    list-style: none; 
    margin: 0; 
    padding: 0;
    display: flex; 
    align-items: center;
    gap: 30px;
}

header .nav-links li { margin: 0; }

header .nav-links li a {
    color: white; text-decoration: none;
    font-size: 14px; font-weight: 500;
    text-transform: uppercase; transition: color 0.3s ease;
}

header .nav-links li a:hover { color: var(--accent-teal); }

body header .nav-links li.nav-cta-item {
    margin-left: 10px;
}

/* --- POPRAWKA: Przycisk w menu "DARMOWA WYCENA" (Rozwiązuje problem z białym fontem i wymusza pogrubienie) --- */
body header .nav-links li .btn-cta {
    color: var(--dark-bg); /* Twarde nadpisanie koloru linku menu na ciemny */
    font-weight: 700; /* Wymuszenie grubszej czcionki */
}

body header .nav-links li .btn-cta:hover {
    color: var(--dark-bg); /* Na hover musi zostać ciemny */
}

/* --- PRZYCISKI --- */
body .btn-cta, 
body .btn-primary, 
body button#services-toggle-btn,
body .hero-btns .btn,
body section#contact .contact-form-col .wpcf7 form.wpcf7-form input[type="submit"] {
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
    box-sizing: border-box;
}

body header .nav-links .btn-cta {
    padding: 12px 25px;
    font-size: 13px;
}

body .btn-primary, 
body button#services-toggle-btn,
body .btn-cta,
body section#contact .contact-form-col .wpcf7 form.wpcf7-form input[type="submit"] {
    background: var(--accent-teal);
    color: var(--dark-bg);
    border: 1px solid var(--accent-teal);
}

body .btn-outline {
    background: transparent;
    color: white;
    border: 1px solid white;
}

body .btn-primary:hover, 
body button#services-toggle-btn:hover,
body .btn-cta:hover,
body section#contact .contact-form-col .wpcf7 form.wpcf7-form input[type="submit"]:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 242, 195, 0.3);
    background: #00e0b5;
    border-color: #00e0b5;
}

body .btn-outline:hover {
    background: white;
    color: var(--dark-bg);
    transform: translateY(-2px);
}

body .btn-animated {
    position: relative;
    overflow: hidden;
    background: var(--accent-teal);
    z-index: 1;
    border: none;
}

.btn-animated span {
    position: absolute;
    display: block;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, #ffffff, var(--accent-teal), transparent 80%);
    top: -50%;
    left: -50%;
    animation: rotate-border 3s linear infinite;
    z-index: -2;
}

.btn-animated::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--accent-teal);
    border-radius: 4px;
    z-index: -1;
    transition: 0.3s;
}

/* --- HERO SECTION & FRAKTALE --- */
.hero {
    padding: 140px 0 150px 0; 
    background: 
        linear-gradient(to bottom, transparent 60%, var(--dark-bg) 100%),
        linear-gradient(to top, transparent 85%, var(--dark-bg) 100%),
        radial-gradient(circle at top right, #002b5e 0%, var(--dark-bg) 65%);
    position: relative;
    overflow: hidden;
}

.hero-wrapper { display: flex; align-items: center; gap: 30px; }
.hero-content { flex: 1; position: relative; z-index: 10; }

.hero-image { 
    flex: 1; 
    text-align: right; 
    position: relative; 
    z-index: 5; 
}

.hero-image img { 
    position: relative; 
    z-index: 10; 
    max-width: 100%; 
    height: auto; 
}

.fractal-particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}

.fractal-particles div {
    position: absolute;
    background: radial-gradient(circle, rgba(0, 242, 195, 0.4) 0%, rgba(0, 242, 195, 0) 70%);
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0;
    animation: floating-fractal 12s infinite ease-in-out;
}

.fractal-1 { width: 400px; height: 400px; top: -10%; right: -5%; animation-delay: 0s; }
.fractal-2 { width: 350px; height: 350px; bottom: -5%; right: 20%; animation-delay: 3s; }
.fractal-3 { width: 450px; height: 450px; top: 20%; right: -15%; animation-delay: 6s; }
.fractal-4 { width: 300px; height: 300px; bottom: 10%; right: 40%; animation-delay: 9s; }

.hero h1 { font-size: 52px; line-height: 1.1; margin: 20px 0; font-weight: 700; }
.highlight { color: var(--accent-teal); }
.hero-btns { margin-top: 30px; display: flex; gap: 15px; }

.hero-badge {
    display: inline-block;
    background: rgba(0, 242, 195, 0.1);
    color: var(--accent-teal);
    padding: 8px 18px; border-radius: 50px;
    font-size: 11px; font-weight: 600;
    letter-spacing: 1.5px; margin-bottom: 10px;
    border: 1px solid rgba(0, 242, 195, 0.3);
    text-transform: uppercase;
}

/* --- ANIMACJA ZMIENNEGO TEKSTU --- */
.sliding-text-wrapper {
    display: inline-block;
    position: relative;
    vertical-align: top;
    overflow: hidden;
    height: 1.2em;
}

.ghost-text {
    display: block;
    visibility: hidden;
    padding-right: 10px;
    white-space: nowrap;
}

.sliding-text {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(40px);
    animation: rotateText 12s infinite;
    white-space: nowrap;
    color: var(--accent-teal);
}

.sliding-text:nth-child(2) { animation-delay: 0s; }
.sliding-text:nth-child(3) { animation-delay: 3s; }
.sliding-text:nth-child(4) { animation-delay: 6s; }
.sliding-text:nth-child(5) { animation-delay: 9s; }

@keyframes rotateText {
    0% { opacity: 0; transform: translateY(40px); }
    5% { opacity: 1; transform: translateY(0); }
    25% { opacity: 1; transform: translateY(0); }
    30% { opacity: 0; transform: translateY(-40px); }
    100% { opacity: 0; }
}

/* --- SERVICES --- */
@keyframes flowBoxGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.services-box {
    background: linear-gradient(-45deg, rgba(0,11,33,0.9), rgba(0,123,255,0.15), rgba(0,242,195,0.15), rgba(0,11,33,0.9));
    background-size: 400% 400%;
    animation: flowBoxGradient 12s ease infinite;
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 50px 40px;
    margin-top: -80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 242, 195, 0.05);
    position: relative;
    z-index: 10;
}

.services-header { 
    grid-column: 1 / -1; 
    margin-bottom: 10px; 
}

body section.services .services-header h2 { 
    font-size: 32px; 
    color: var(--accent-teal);
    letter-spacing: 3px; 
    font-weight: 800; 
    text-transform: uppercase;
    margin: 0; 
}

.service-item {
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: floating 5s ease-in-out infinite;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 15px;
}

.service-item:hover { 
    transform: translateY(-15px) scale(1.05); 
    animation-play-state: paused;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(0, 242, 195, 0.3);
    box-shadow: 0 15px 35px rgba(0, 242, 195, 0.15);
}

.service-item img { 
    max-width: 65px; 
    margin-bottom: 25px; 
    transition: transform 0.3s ease, filter 0.3s ease; 
}

.service-item:hover img { 
    transform: rotate(-5deg) scale(1.1); 
    filter: drop-shadow(0 0 10px var(--accent-teal)); 
}
.service-item h3 { font-size: 17px; font-weight: 600; line-height: 1.3; margin: 0; }

body section.services .service-item.is-selected {
    background: rgba(0, 242, 195, 0.1);
    border-color: var(--accent-teal);
    transform: scale(1.05);
    animation-play-state: paused;
}

/* --- KONTENER GŁÓWNY (ROZWIJANY) --- */
.services-extended {
    grid-column: 1 / -1;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.8s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.5s ease;
}

body .services-box.expanded .services-extended {
    max-height: 2500px;
    opacity: 1;
    margin-top: 40px;
    border-top: none;
}

/* --- POZIOM 1: Detale konkretnej usługi (z kafelków) --- */
.service-detail {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-bottom: 30px;
}

.service-detail.is-active {
    display: grid;
    opacity: 1;
    transform: translateY(0);
}

/* --- POPRAWKA POZIOM 2: Oferta ogólna (z guzika) --- */
#general-extended-content {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

body section.services #general-extended-content.is-visible {
    display: grid !important;
    animation: fadeIn 0.6s ease forwards;
}

/* --- LOGIKA DYNAMICZNYCH LINII --- */
body section.services .service-detail.is-active + #general-extended-content {
    border-top: none;
    padding-top: 0;
}

.services-box.expanded #general-extended-content.is-visible {
    margin-top: 20px;
}

.service-detail.is-active ~ #general-extended-content {
    margin-top: 0;
}

.ext-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(0, 242, 195, 0.1);
    transition: all 0.3s ease;
}

.ext-card h4 { color: var(--accent-teal); margin-bottom: 12px; font-size: 18px; }
.ext-card p { font-size: 14px; color: rgba(255, 255, 255, 0.7); line-height: 1.6; margin: 0; }

.ext-card:hover {
    background: rgba(0, 242, 195, 0.05);
    transform: translateY(-5px);
    border-color: var(--accent-teal);
    box-shadow: 0 10px 25px rgba(0, 242, 195, 0.15); 
}

.ext-card:hover h4 {
    text-shadow: 0 0 10px rgba(0, 242, 195, 0.5);
    transition: text-shadow 0.3s ease;
}

body section.services .services-toggle-container {
    grid-column: 1 / -1;
    margin-top: 5px; 
    display: flex;
    justify-content: center;
}

/* --- PORTFOLIO --- */
.portfolio-section { padding: 120px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 40px; text-transform: uppercase; font-weight: 700; }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.portfolio-item {
    position: relative; border-radius: 15px; overflow: hidden;
    height: 350px; display: block;
}

.portfolio-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 11, 33, 0.85);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-overlay h4 { color: var(--accent-teal); margin-bottom: 15px; font-size: 20px; }

.view-project {
    color: var(--accent-teal); font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    border: 1px solid var(--accent-teal); padding: 8px 18px;
    border-radius: 4px; transition: all 0.3s ease;
}

.portfolio-item:hover .view-project { background: var(--accent-teal); color: var(--dark-bg); }

/* --- CONTACT SECTION & CF7 --- */
.contact-section { padding: 100px 0; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }

body section#contact .contact-content ul, 
body section#contact .contact-content ul li,
body .site-footer ul, 
body .site-footer ul li,
body .footer-links ul, 
body .footer-contact ul { 
    list-style: none; 
    list-style-type: none; 
    padding: 0; 
    margin: 0; 
}

body section#contact .contact-content ul li::before, 
body .site-footer ul li::before { content: none; }
.contact-content ul li { margin-bottom: 10px; }

.contact-cta-card {
    margin-top: 35px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 242, 195, 0.2);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}
.contact-cta-card h4 { color: var(--accent-teal); margin: 0 0 10px 0; font-size: 19px; }
.contact-cta-card p { font-size: 13px; color: rgba(255, 255, 255, 0.6); line-height: 1.5; margin-bottom: 15px; }

.contact-highlight {
    color: #00f2c3;
    font-weight: bold; 
}

a:hover .contact-highlight {
    text-shadow: 0 0 8px #00f2c3;
    transition: 0.3s;
}

/* Wymagane !important do zablokowania wbudowanego w JS z CF7 wyświeltania powiadomień na dole formualarza */
.wpcf7-response-output { display: none !important; }

/* --- NOWY TOAST NOTIFICATION --- */
body #custom-aro-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    width: 320px;
    max-width: 90vw;
    box-sizing: border-box; 
    background: rgba(0, 11, 33, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid var(--accent-teal);
    border-radius: 12px;
    padding: 20px 45px 20px 20px;
    color: #ffffff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    font-size: 14px;
    line-height: 1.4;
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body #custom-aro-toast.show-toast {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

body #custom-aro-toast .close-notification {
    position: absolute;
    top: 8px;
    right: 12px;
    cursor: pointer;
    font-size: 24px;
    color: var(--accent-teal);
}

@media (max-width: 768px) {
    body #custom-aro-toast {
        width: auto; 
        max-width: none;
        left: 15px;  
        right: 15px; 
        bottom: 20px;
        padding: 15px 40px 15px 15px;
    }
}

/* --- HAMBURGER --- */
.menu-toggle {
    display: none; flex-direction: column; justify-content: space-between;
    width: 30px; height: 21px; cursor: pointer; z-index: 10000;
}
.menu-toggle span { display: block; height: 3px; width: 100%; background: var(--accent-teal); border-radius: 3px; transition: 0.3s; }

/* --- FOOTER --- */
.site-footer {
    background: linear-gradient(to bottom, var(--dark-bg), #00081a);
    padding: 80px 0 40px; border-top: 1px solid rgba(255, 255, 255, 0.05); margin-top: 100px;
}

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; align-items: start; }
.footer-col h4 {
    color: var(--accent-teal); font-size: 16px; font-weight: 700;
    margin-bottom: 25px; letter-spacing: 1px; text-transform: uppercase;
}
.footer-col p { color: rgba(255, 255, 255, 0.6); line-height: 1.6; font-size: 14px; }

.footer-links li { margin-bottom: 12px; }
.footer-links li a {
    color: rgba(255, 255, 255, 0.7); text-decoration: none;
    transition: all 0.3s ease; font-size: 14px; display: inline-block;
}
.footer-links li a:hover { color: var(--accent-teal); transform: translateX(5px); }

/* --- FOOTER BOTTOM UKŁAD --- */
.footer-bottom {
    margin-top: 60px; padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p { 
    font-size: 12px; 
    color: rgba(255, 255, 255, 0.3); 
    letter-spacing: 0.5px; 
    margin: 0;
}

.brand-owner { text-transform: uppercase; }
.brand-owner strong { color: var(--accent-teal); font-weight: 600; }

/* --- REVEAL ANIMATIONS --- */
.reveal-hidden { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
body .reveal-active { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    body section.pricing-section .pricing-grid { grid-template-columns: 1fr; }
    body section.pricing-section .pricing-card.featured { transform: scale(1); }
    body section.pricing-section .pricing-card.featured:hover { transform: translateY(-10px); }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    body .hero h1 { font-size: 38px; text-align: center; }
    body .hero-wrapper { flex-direction: column; text-align: center; }
    
    .sliding-text-wrapper {
        display: block;
        margin: 10px auto;
        width: fit-content;
    }

    body section.services .services-box { grid-template-columns: 1fr; margin-top: -40px; padding: 40px 20px; }
    .extended-content { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
        background: var(--dark-bg); 
        display: flex; 
        flex-direction: column; 
        justify-content: center; 
        transition: 0.4s; z-index: 999;
        border-left: 1px solid rgba(0, 242, 195, 0.2); 
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5); 
    }
    .nav-links.active { right: 0; }
    .nav-links ul { flex-direction: column; gap: 20px; }
}

@media (max-width: 768px) {
    .cookie-buttons {
        width: 100%;
        justify-content: center;
        flex-direction: column; 
        gap: 10px; 
    }
    
    body .cookie-buttons button {
        width: 100%; 
        margin: 0;
    }

    /* Poprawione łapanie wszystkich nagłówków H2 na telefonach */
    body section h2.section-title, 
    body section .section-title h2,
    body section.contact-section h2,
    body section#contact .contact-wrapper h2,
    body section#contact .contact-content h2 { 
        font-size: 28px; 
        line-height: 1.3;
        overflow-wrap: break-word; 
        word-wrap: break-word;
        hyphens: auto; 
    }

    body section.services .services-header h2 {
        font-size: 22px; 
        letter-spacing: 1px; 
    }

    /* --- POTĘŻNA OPTYMALIZACJA WYDAJNOŚCI NA TELEFONY --- */
    html body header,
    html body section.services .services-box,
    html body section#contact .contact-cta-card,
    html body .timeline-content,
    html body section.pricing-section .pricing-card, 
    html body #custom-aro-toast,
    html body .cookie-banner-wrapper,
    html body .privacy-box {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background-color: rgba(0, 11, 33, 0.98); 
    }

    html body header .logo img, 
    html body section.services .service-item img, 
    html body section.hero .hero-image img,
    html body header .promo-star-wrapper {
        filter: none;
        -webkit-filter: none;
    }

    html body section.hero .fractal-particles {
        display: none;
    }

    html body section.services .services-box {
        animation: none;
        background: var(--dark-bg); 
        border: 1px solid rgba(0, 242, 195, 0.2);
    }
    
    html body section.services .service-item {
        animation: none; 
        transform: none; 
    }
    
    html body section#contact .cta-gradient-bar {
        animation: none;
        background: var(--accent-teal);
        color: var(--dark-bg);
        max-width: 90%; 
        height: auto; 
        padding: 15px 10px; 
        font-size: 11px; 
        letter-spacing: 1px;
        line-height: 1.3; 
    }

    /* --- POPRAWIONY PROCES / TIMELINE NA MOBILE --- */
    body section.process-section .timeline-line {
        left: 30px; 
        transform: none;
    }
    
    body section.process-section .timeline-item,
    body section.process-section .timeline-item.item-reverse,
    body section.process-section .timeline-item:not(.item-reverse) {
        justify-content: flex-start;
        padding-left: 90px; 
        padding-right: 15px; 
        margin-bottom: 30px;
        box-sizing: border-box; 
        max-width: 100%; 
    }
    
    body section.process-section .timeline-dot {
        left: 30px; 
        top: 50px; 
        transform: translate(-50%, -50%); 
    }
    
    body section.process-section .timeline-item .timeline-content,
    body section.process-section .timeline-item.item-reverse .timeline-content,
    body section.process-section .timeline-item:not(.item-reverse) .timeline-content {
        width: 100%; 
        margin: 0;
        box-sizing: border-box; 
    }

    .contact-visual-list { gap: 20px; }
    .visual-value { font-size: 16px; }
    .contact-visual-icon { width: 42px; height: 42px; }
    .privacy-box { padding: 30px 20px; max-height: 85vh; }

    body section.hero h1 { font-size: 30px; }

    .portfolio-grid { grid-template-columns: 1fr; }
    
    body section.hero .hero-btns { 
        flex-direction: column; 
        gap: 10px; 
        align-items: center; 
    }
    body section.hero .hero-btns a.btn { 
        width: auto; 
        display: inline-block; 
    }
    
    .footer-bottom .container { flex-direction: column; text-align: center; }
    
    /* --- POPRAWKA: Powrót !important dla RWD, ze wględu na nadpisania --- */
    body section.services .service-detail.is-active,
    body section.services #general-extended-content.is-visible {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .contact-visual-item { gap: 15px; }
}

/* --- ZINTEGROWANA STYLIZACJA FORMULARZA CF7 --- */

.contact-form-col .custom-cf7-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form-col .input-group {
    display: flex;
    flex-direction: column;
    gap: 4px; 
    margin-bottom: 0;
}

.contact-form-col .field-label {
    font-size: 11px;
    color: rgba(0, 242, 195, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-left: 2px;
}

/* Pola tekstowe i Textarea */
body section#contact .contact-form-col .wpcf7 form.wpcf7-form input[type="text"],
body section#contact .contact-form-col .wpcf7 form.wpcf7-form input[type="email"],
body section#contact .contact-form-col .wpcf7 form.wpcf7-form textarea {
    width: 100%;
    max-width: 100%; 
    box-sizing: border-box; 
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    color: #ffffff;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

body section#contact .contact-form-col .wpcf7 form.wpcf7-form input:focus,
body section#contact .contact-form-col .wpcf7 form.wpcf7-form textarea:focus {
    background: rgba(0, 242, 195, 0.05);
    border-color: rgba(0, 242, 195, 0.4);
    box-shadow: 0 0 15px rgba(0, 242, 195, 0.15);
}

/* --- CUSTOMOWY CHECKBOX --- */
body section#contact .contact-form-col span.wpcf7-acceptance input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #00f2c3;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
    transition: all 0.2s ease;
}

body section#contact .contact-form-col span.wpcf7-acceptance input[type="checkbox"]:checked {
    background: #00f2c3;
}

body section#contact .contact-form-col span.wpcf7-acceptance input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #010816;
    font-size: 14px;
    font-weight: bold;
}

body section#contact .contact-form-col span.wpcf7-acceptance label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 0;
}

body section#contact .contact-form-col span.wpcf7-acceptance .wpcf7-list-item-label {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
}

/* --- PRZYCISK WYŚLIJ --- */
body section#contact .contact-form-col .wpcf7 form.wpcf7-form input.wpcf7-submit {
    margin-top: 5px;
    font-weight: 800;
    border-radius: 8px;
    letter-spacing: 1.5px;
    width: fit-content;
}

/* --- CLEANUP DLA CF7 / WP --- */
body section#contact .contact-form-col .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 0;
}

body section#contact .contact-form-col .wpcf7 form p {
    margin: 0;
    padding: 0;
}

.contact-form-col .acceptance-group {
    margin-top: -5px;
}

/* Response output CF7 - !important musi być bo wtyczka strzykuje go prosto w element z poziomu JS */
.wpcf7 form .wpcf7-response-output {
    border-radius: 8px !important;
    font-size: 14px !important;
    padding: 12px !important;
    margin: 15px 0 0 0 !important;
    border: 1px solid !important;
}


/* --- POPRAWKA DLA GRADIENTOWEJ RAMKI CTA --- */
.cta-gradient-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px; 
    min-height: 48px;
    padding: 0 15px;
    margin: 25px auto 0 auto;
    color: #000b21;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    z-index: 1;
    user-select: none;
    border-radius: 4px;
    text-align: center;
    white-space: normal; 
    overflow-wrap: break-word; 
    background: linear-gradient(90deg, 
        var(--accent-teal) 0%, 
        #ffffff 50%, 
        var(--accent-teal) 100%
    );
    background-size: 200% 100%;
    animation: flowBarGradient 4s linear infinite;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

@keyframes flowBarGradient {
    0% { background-position: 200% 0%; }
    100% { background-position: 0% 0%; }
}

/* --- PROCES SECTION --- */
.process-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 50px auto 0;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    display: flex;
    width: 100%;
    margin-bottom: 80px; 
    position: relative;
    align-items: center; 
}

.timeline-item:not(.item-reverse) { justify-content: flex-start; }
.timeline-item.item-reverse { justify-content: flex-end; }

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background: var(--accent-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000b21;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 0 20px var(--accent-teal);
}

.timeline-content {
    width: 42%; 
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-item:not(.item-reverse) .timeline-content { margin-right: 50px; }
.timeline-item.item-reverse .timeline-content { margin-left: 50px; }

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--accent-teal);
    background: rgba(255, 255, 255, 0.05);
}

.timeline-content h3 { color: var(--accent-teal); margin-bottom: 10px; font-size: 20px; }
.timeline-content p { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.8); margin: 0; }

/* --- CENNIK / PRICING SECTION --- */
.pricing-section {
    padding: 100px 0;
    position: relative;
    z-index: 5;
}

.pricing-section .section-title p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
    font-size: 16px;
}

.promo-badge-pulse {
    display: inline-block;
    background: rgba(0, 242, 195, 0.15);
    color: var(--accent-teal);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    border: 1px solid var(--accent-teal);
    margin-bottom: 20px;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 242, 195, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 242, 195, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 242, 195, 0); }
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    align-items: center; 
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 242, 195, 0.3);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured {
    background: linear-gradient(180deg, rgba(0, 242, 195, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--accent-teal);
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 242, 195, 0.15);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 242, 195, 0.25);
}

.featured-label {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-teal);
    color: var(--dark-bg);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 242, 195, 0.4);
}

.pricing-card h3 { font-size: 22px; letter-spacing: 1px; margin-bottom: 20px; }

.price { display: flex; flex-direction: column; margin-bottom: 20px; }

.old-price {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
    font-size: 16px;
    margin-bottom: 5px;
}

.new-price {
    font-size: 38px;
    font-weight: 700;
    color: var(--accent-teal);
    line-height: 1;
}

.new-price small { font-size: 14px; color: rgba(255, 255, 255, 0.6); font-weight: 400; }

.pricing-desc { font-size: 13px; color: rgba(255, 255, 255, 0.7); margin-bottom: 30px; min-height: 40px; }

body section#cennik .pricing-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 40px;
}

body section#cennik .pricing-features li {
    list-style-type: none;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: bold;
}

body .pricing-btn {
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none; 
    text-transform: uppercase;
    display: block;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-size: 14px;
    letter-spacing: 1px;
}

body .pricing-card .btn-outline {
    border: 2px solid var(--accent-teal); 
    color: var(--accent-teal); 
    background: transparent;
}

body .pricing-card .btn-outline:hover {
    background: var(--accent-teal);
    color: var(--dark-bg);
    box-shadow: 0 10px 20px rgba(0, 242, 195, 0.3);
    transform: translateY(-3px);
}

/* --- ANIMOWANA GWIAZDKA W MENU --- */
.pricing-link {
    position: relative;
    display: inline-block;
    isolation: isolate; 
}

body header .nav-links .nav-text {
    position: relative;
    z-index: 10; 
    background: transparent; 
}

body header .nav-links .promo-star-wrapper {
    position: absolute;
    top: -5px; 
    right: -20px; 
    width: 36px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: -1; 
    pointer-events: none; 
    filter: drop-shadow(0 0 6px rgba(0, 242, 195, 0.6)); 
}

.promo-star-shape {
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--accent-teal);
    animation: spinStar 8s linear infinite; 
}

.promo-star-shape::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-teal);
    transform: rotate(45deg);
}

.promo-star-text {
    position: relative;
    z-index: 2; 
    color: var(--dark-bg);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
}

@keyframes spinStar {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- WYSKAKUJĄCE OKNO POLITYKI PRYWATNOŚCI --- */
.privacy-modal-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.privacy-modal-wrapper.is-open {
    visibility: visible;
    opacity: 1;
}

.privacy-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 11, 33, 0.7);
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
}

.privacy-box {
    position: relative;
    background: rgba(0, 11, 33, 0.95);
    border: 1px solid rgba(0, 242, 195, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 242, 195, 0.1);
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh; 
    padding: 40px;
    transform: translateY(40px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.privacy-modal-wrapper.is-open .privacy-box {
    transform: translateY(0) scale(1);
}

.close-privacy {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 36px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    line-height: 1;
    transition: 0.3s;
}

.close-privacy:hover {
    color: var(--accent-teal);
    transform: rotate(90deg); 
}

.privacy-text {
    overflow-y: auto; 
    padding-right: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.7;
}

.privacy-text::-webkit-scrollbar { width: 6px; }
.privacy-text::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 10px; }
.privacy-text::-webkit-scrollbar-thumb { background: var(--accent-teal); border-radius: 10px; }

/* --- WŁASNY BANER COOKIES (Zabezpieczone kolory) --- */
.cookie-banner-wrapper {
    position: fixed;
    bottom: 0; 
    left: 0;
    width: 100%;
    background: rgba(0, 11, 33, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--accent-teal);
    z-index: 999998;
    transform: translateY(100%); 
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.cookie-banner-wrapper.show-banner {
    transform: translateY(0); 
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Wymuszenie bezpośrednich styli dla guzików z ciasteczkami */
body #aro-cookie-banner .cookie-buttons button {
    padding: 10px 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    border-radius: 4px; 
    background: var(--accent-teal);
    color: var(--dark-bg);
    border: 1px solid var(--accent-teal);
    cursor: pointer;
}

body #aro-cookie-banner .cookie-buttons button:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 242, 195, 0.3);
    background: #00e0b5;
    border-color: #00e0b5;
}

body #aro-cookie-banner .cookie-buttons button.btn-outline {
    background: transparent;
    border: 2px solid #ffffff; 
    color: #ffffff; 
}

body #aro-cookie-banner .cookie-buttons button.btn-outline:hover {
    background: #ffffff; 
    color: var(--dark-bg); 
    border-color: #ffffff; 
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.15); 
}

.cookie-buttons {
    display: flex;
    gap: 12px; 
    flex-shrink: 0;
    align-items: center; 
}


/* --- WYGLĄD BŁĘDÓW FORMULARZA (CF7) --- */
body section#contact .contact-form-col span.wpcf7-not-valid-tip {
    color: #ff5c5c; 
    font-size: 11px;
    font-weight: 500;
    margin-top: 6px; 
    margin-bottom: 5px; 
    letter-spacing: 0.5px;
    display: block;
}

body section#contact .contact-form-col .wpcf7 form .wpcf7-not-valid {
    border-color: #ff5c5c;
    background: rgba(255, 92, 92, 0.05); 
    box-shadow: 0 0 10px rgba(255, 92, 92, 0.1);
}

/* --- STYLIZACJA KONTAKTU Z IKONAMI --- */
.contact-visual-list {
    margin-top: 30px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px; 
    list-style: none;
    padding: 0;
}

.contact-visual-item {
    display: flex;
    align-items: center; 
    gap: 18px; 
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-visual-icon {
    width: 48px; 
    height: 48px;
    background: rgba(0, 242, 195, 0.05);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0, 242, 195, 0.15);
    box-shadow: 0 0 15px rgba(0, 242, 195, 0.05);
    color: #00f2c3;
    flex-shrink: 0; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-visual-icon svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 0 5px rgba(0, 242, 195, 0.4));
}

.contact-visual-details {
    display: flex;
    flex-direction: column;
    line-height: 1.2; 
}

.visual-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.visual-value {
    font-size: 18px;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.contact-visual-item:hover {
    transform: translateX(5px); 
}

.contact-visual-item:hover .contact-visual-icon {
    background: rgba(0, 242, 195, 0.12);
    border-color: rgba(0, 242, 195, 0.5);
    box-shadow: 0 0 25px rgba(0, 242, 195, 0.2);
    transform: scale(1.05);
}

.contact-visual-item:hover .visual-value {
    color: #00f2c3;
}

/* --- WCAG: WIDOCZNY FOCUS --- */
*:focus-visible {
    outline: 3px solid var(--accent-teal) !important;
    outline-offset: 4px !important;
    border-radius: 4px;
    transition: outline-offset 0.2s ease;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* --- WCAG: REDUKCJA RUCHU --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .fractal-particles {
        display: none !important;
    }
}