/* ============================================
   Społeczności Energetyczne - Gmina Nadarzyn
   Wspólny arkusz stylów
   ============================================ */

/* === RESET & VARIABLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #C01422;
    --primary-blue: #343579;
    --secondary-blue: #003399;
    --accent-yellow: #FFCC00;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gray-dark: #343a40;
    --dark-bg: #2a2e4a;
    --dark-card: #353a5f;
    --gradient-primary: linear-gradient(135deg, #C01422 0%, #343579 100%);
    --gradient-secondary: linear-gradient(135deg, #003399 0%, #343579 100%);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --max-width: 1400px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Lato', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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


/* ============================================
   SKIP LINK
   ============================================ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-blue);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1002;
    border-radius: 4px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
}

.skip-link:focus {
    top: 6px;
    opacity: 1;
    pointer-events: auto;
}


/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: linear-gradient(135deg, #1a3d2e 0%, #2B5A3E 25%, #4A9B8E 75%, #5fb3a3 100%);
    color: var(--white);
    padding: 0.75rem 0;
    font-size: 0.875rem;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar-container {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.top-bar .kpo-info {
    font-weight: 700;
    font-size: 0.9rem;
}

.top-bar .contact-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    white-space: nowrap;
}

.top-bar .contact-button {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.top-bar .contact-button:hover {
    background: var(--white);
    color: #2B5A3E;
    transform: translateY(-1px);
}


/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 25px rgba(52, 53, 121, 0.15);
    width: 100%;
    border-bottom: 1px solid rgba(52, 53, 121, 0.1);
}

.header-container {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    width: 100%;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-shrink: 0;
}

.main-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--gray-dark);
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: translateY(-1px);
}

.logo-icon-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--white);
    padding: 4px;
    border: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.main-logo:hover .logo-icon-img {
    border-color: var(--primary-red);
    transform: scale(1.05);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-red) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 900;
    box-shadow: 0 4px 15px rgba(52, 53, 121, 0.2);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary-blue);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.9rem;
    color: var(--primary-red);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--primary-blue);
    background: rgba(52, 53, 121, 0.05);
}

.cta-nav-button {
    background: var(--primary-blue) !important;
    color: var(--white) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(52, 53, 121, 0.25) !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.3px !important;
}

.cta-nav-button:hover,
.cta-nav-button:focus {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(52, 53, 121, 0.35) !important;
    background: var(--secondary-blue) !important;
    color: var(--white) !important;
}

.menu-toggle {
    display: none;
    background: var(--primary-blue);
    border: none;
    cursor: pointer;
    color: var(--white);
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .hamburger span:first-child {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger span:last-child {
    transform: rotate(-45deg) translate(6px, -6px);
}


/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(192, 20, 34, 0.75) 0%, rgba(52, 53, 121, 0.75) 100%),
                url('https://plz.coop/wp-content/uploads/2025/08/niebo-o-zachodzie-slonca-zasila-energie-wiatrowa-i-sloneczna-generowana-przez-sztuczna-inteligencje-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg,
        rgba(192, 20, 34, 0.15) 0%,
        transparent 30%,
        rgba(52, 53, 121, 0.15) 70%,
        transparent 100%);
    animation: gradientWave 12s ease-in-out infinite;
    z-index: 1;
}

@keyframes gradientWave {
    0%, 100% { transform: translateX(-20px); opacity: 0.5; }
    50% { transform: translateX(20px); opacity: 0.8; }
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); }
    to { text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.1); }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Hero CTA Button */
.hero .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--primary-blue);
    color: var(--white);
    padding: 1.4rem 3.5rem;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 12px 35px rgba(52, 53, 121, 0.25),
        0 6px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.6s both;
    backdrop-filter: blur(10px);
}

.cta-arrow {
    display: inline-block;
    width: 20px;
    height: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(1px);
}

.cta-arrow svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.hero .cta-button::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #4a4f9e 30%, var(--secondary-blue) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 58px;
    z-index: -2;
}

.hero .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.hero .cta-button:hover::before { left: 100%; }
.hero .cta-button:hover::after { opacity: 1; }

.hero .cta-button:hover,
.hero .cta-button:focus {
    transform: translateY(-6px) scale(1.03);
    box-shadow:
        0 25px 50px rgba(52, 53, 121, 0.35),
        0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero .cta-button:hover .cta-arrow {
    transform: translateY(4px) scale(1.1);
    animation: bounceArrow 0.6s ease infinite;
}

@keyframes bounceArrow {
    0%, 100% { transform: translateY(4px) scale(1.1); }
    50% { transform: translateY(6px) scale(1.15); }
}

.hero .cta-button:active {
    transform: translateY(-3px) scale(1.01);
    transition: all 0.1s ease;
}

.hero .cta-button:focus-visible {
    outline: 3px solid var(--accent-yellow);
    outline-offset: 4px;
}

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


/* ============================================
   SHARED SECTION STYLES (energy background elements)
   ============================================ */
.energy-section {
    padding: 8rem 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.energy-section::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: conic-gradient(from 0deg, var(--accent-yellow) 0deg, transparent 60deg, var(--primary-red) 120deg, transparent 180deg, var(--primary-blue) 240deg, transparent 300deg);
    border-radius: 50%;
    opacity: 0.1;
    animation: energyRotate 20s linear infinite;
    z-index: 1;
}

.energy-section::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 8%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(52, 53, 121, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.extra-circle {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

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

.section-container {
    max-width: none;
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}


/* ============================================
   SPLIT SECTION — "Lokalna energia"
   ============================================ */
.split-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 7rem;
    align-items: center;
}

.split-text h3 {
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    font-weight: 900;
    margin-bottom: 2.5rem;
    line-height: 1.1;
    color: var(--primary-blue);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.split-text h3 .highlight {
    color: var(--primary-red);
    position: relative;
    display: inline-block;
}

.split-text h3 .highlight::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    right: -4px;
    height: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 204, 0, 0.3), transparent);
    z-index: -1;
    animation: highlightGlow 3s ease-in-out infinite;
}

@keyframes highlightGlow {
    0%, 100% { opacity: 0.3; transform: scaleX(1); }
    50% { opacity: 0.6; transform: scaleX(1.05); }
}

.split-text p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 3.5rem;
    color: var(--gray-medium);
    font-weight: 400;
}

.split-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 2rem 2.2rem;
    background: var(--white);
    border-radius: 20px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.feature-item:hover {
    transform: translateX(12px) translateY(-4px);
    box-shadow: 0 12px 35px rgba(52, 53, 121, 0.15);
}

.feature-item:nth-child(1) { box-shadow: 0 4px 20px rgba(52, 53, 121, 0.08); }
.feature-item:nth-child(2) { box-shadow: 0 4px 20px rgba(192, 20, 34, 0.08); }
.feature-item:nth-child(3) { box-shadow: 0 4px 20px rgba(0, 51, 153, 0.08); }

.feature-item:nth-child(2):hover { box-shadow: 0 12px 35px rgba(192, 20, 34, 0.15); }
.feature-item:nth-child(3):hover { box-shadow: 0 12px 35px rgba(0, 51, 153, 0.15); }

.feature-icon {
    font-size: 1.6rem;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-blue), #4a4f9e);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white);
    box-shadow: 0 6px 16px rgba(52, 53, 121, 0.3);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-item:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, var(--primary-red), #d42949);
}

.feature-item:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, var(--secondary-blue), #1a4db8);
}

.split-image {
    position: relative;
}

.split-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(52, 53, 121, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 3;
}

.split-image img:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 30px 60px rgba(52, 53, 121, 0.25);
}

.split-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: conic-gradient(var(--accent-yellow), var(--primary-red), var(--accent-yellow));
    border-radius: 50%;
    animation: energyRotate 8s linear infinite;
    z-index: 1;
}


/* ============================================
   PROJECT SECTION — "O projekcie"
   ============================================ */
.project-content {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 6rem;
    align-items: start;
}

.kpo-info-box {
    position: sticky;
    top: 2rem;
}

.kpo-badge {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(52, 53, 121, 0.2);
}

.kpo-badge h3 {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.kpo-badge p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 500;
}

.project-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.highlight-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(52, 53, 121, 0.12);
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 204, 0, 0.015) 100%);
}

.highlight-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
    transition: color 0.2s ease;
}

.highlight-item:hover h4 {
    color: var(--primary-red);
}

.highlight-item p {
    color: var(--gray-medium);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

.project-main {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    position: relative;
}

.project-main::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-yellow), var(--primary-blue));
    border-radius: 24px 24px 0 0;
}

.project-main h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.project-main h2 .highlight {
    color: var(--primary-red);
}

.project-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-medium);
    margin-bottom: 2.5rem;
}

.project-text p {
    margin-bottom: 1.5rem;
}

.project-text strong {
    color: var(--gray-dark);
    font-weight: 700;
}

.vision-box {
    background: linear-gradient(135deg, rgba(52, 53, 121, 0.05), rgba(255, 204, 0, 0.05));
    padding: 2.5rem;
    border-radius: 20px;
    margin-top: 2rem;
    border: 2px solid rgba(52, 53, 121, 0.1);
    position: relative;
    overflow: hidden;
}

.vision-box::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-yellow), var(--primary-red));
    border-radius: 22px;
    z-index: -1;
}

.vision-box h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.vision-box p {
    color: var(--gray-dark);
    font-weight: 500;
    margin: 0;
    font-size: 1.05rem;
}


/* ============================================
   ILLUSTRATION / STATISTICS SECTION
   ============================================ */
.illustration-section {
    padding: 8rem 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.illustration-section::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.illustration-section::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 8%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(52, 53, 121, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.illustration-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 7rem;
    align-items: center;
}

.illustration-item {
    position: relative;
}

.illustration-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(52, 53, 121, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.illustration-item img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 50px rgba(52, 53, 121, 0.2);
}

.illustration-content h3 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.illustration-content p {
    font-size: 1.25rem;
    color: var(--gray-medium);
    line-height: 1.8;
    margin-bottom: 3rem;
    font-weight: 400;
}

.stats-container {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
    align-items: baseline;
}

.stat-item {
    flex: 1;
    min-width: 200px;
}

.stat-number {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-item:nth-child(1) .stat-number { color: var(--primary-red); }
.stat-item:nth-child(2) .stat-number { color: var(--primary-blue); }

.stat-description {
    color: var(--gray-medium);
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
}


/* ============================================
   ARTICLES SECTION (homepage)
   ============================================ */
.articles {
    padding: 8rem 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.articles::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.articles::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 8%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(52, 53, 121, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.articles-container {
    max-width: none;
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.title-word {
    display: inline-block;
    margin: 0 0.3rem;
}

.title-word:nth-child(1) { color: var(--primary-blue); }

.title-word:nth-child(2) {
    background: linear-gradient(45deg, var(--accent-yellow), #ffdb4d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-word:nth-child(3) {
    background: linear-gradient(45deg, var(--primary-red), #e63946);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-word:nth-child(4) {
    background: linear-gradient(45deg, var(--primary-blue), #4a4f9e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--gray-medium);
    margin-bottom: 6rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.article-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 204, 0, 0.02);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
    z-index: 1;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 204, 0, 0.2);
}

.article-card:hover::before { opacity: 1; }

.article-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 2.5rem;
    position: relative;
    z-index: 2;
}

.article-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--primary-blue);
    line-height: 1.4;
}

.article-excerpt {
    color: var(--gray-medium);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.article-link {
    color: var(--primary-blue);
    background: none;
    border: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.05rem;
    font-family: inherit;
    position: relative;
    padding: 0;
}

.article-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.article-link:hover::after,
.article-link:focus::after {
    width: 100%;
}


/* ============================================
   ARTICLES PAGE (standalone)
   ============================================ */
.articles-page {
    min-height: 100vh;
    padding: 4rem 0;
    background: var(--gray-light);
    position: relative;
    width: 100%;
}

.articles-page::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(52, 53, 121, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 204, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(192, 20, 34, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.articles-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--gray-medium);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.articles-page .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.articles-page .article-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    bottom: auto;
    background: none;
    opacity: 1;
}

.articles-page .article-card:nth-child(1)::before { background: var(--primary-blue); }
.articles-page .article-card:nth-child(2)::before { background: var(--accent-yellow); }
.articles-page .article-card:nth-child(3)::before { background: var(--primary-red); }
.articles-page .article-card:nth-child(4)::before { background: var(--secondary-blue); }

.articles-page .article-card:hover::before { transform: scaleX(1); }

.articles-page .article-card:focus-within {
    outline: 3px solid var(--accent-yellow);
    outline-offset: 2px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--gray-medium);
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.reading-time::before {
    content: '📖';
    font-size: 0.8rem;
}

.articles-page .article-link {
    border: 2px solid var(--primary-blue);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    overflow: hidden;
}

.articles-page .article-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-blue);
    transition: left 0.3s ease;
    z-index: -1;
}

.articles-page .article-link::after { display: none; }

.articles-page .article-link:hover::before { left: 0; }

.articles-page .article-link:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 53, 121, 0.3);
}

.articles-page .article-link:focus {
    outline: 2px solid var(--accent-yellow);
    outline-offset: 2px;
}


/* ============================================
   MODAL STYLES
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.1);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-yellow), var(--primary-red));
    border-radius: 20px 20px 0 0;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    padding: 2.5rem 2.5rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-header h2,
.modal-title {
    color: var(--primary-blue);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    padding-right: 2rem;
}

.modal-close {
    background: rgba(192, 20, 34, 0.1);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-red);
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: scale(1.1);
}

.modal-body {
    padding: 2.5rem;
    line-height: 1.8;
    color: var(--gray-dark);
}

.modal-body h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2.5rem 0 1.2rem;
}

.modal-body p {
    margin-bottom: 1.5rem;
    color: var(--gray-medium);
}

.modal-body ul {
    margin: 1rem 0 1.5rem 2rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    color: var(--gray-medium);
}

.modal-body strong { color: var(--gray-dark); }
.modal-body em { color: var(--gray-dark); }

.modal-footer {
    padding: 1.5rem 2.5rem 2.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.modal-footer p {
    margin-bottom: 0.5rem;
    color: var(--gray-medium);
    font-size: 0.9rem;
}


/* ============================================
   CONTACT FORM SECTION (homepage)
   ============================================ */
.contact {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    width: 100%;
}

.contact .diagonal-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('http://vijmdffcyq.cfolks.pl/staging/wp-content/uploads/2025/08/projekt-wiatraka-3d-scaled.jpg') center/cover no-repeat;
    transform: skewY(-3deg);
    transform-origin: top left;
    z-index: 1;
}

.contact .diagonal-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg,
        rgba(52, 53, 121, 0.9) 0%,
        rgba(192, 20, 34, 0.8) 50%,
        rgba(0, 51, 153, 0.9) 100%);
}

.contact .contact-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    align-items: center;
    padding: 2rem;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.contact .text-section {
    color: var(--white);
    padding: 2rem;
}

.contact .contact-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.contact .title-highlight {
    color: var(--accent-yellow);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact .contact-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact .contact-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact .feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact .feature .feature-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    color: var(--white);
}

.contact .form-section {
    background: var(--white);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    margin: 2rem 0;
}

.contact .modern-form h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.contact .input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.contact .modern-input {
    width: 100%;
    padding: 1.2rem 1rem 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    font-size: 1rem;
    background: var(--white);
    transition: all 0.3s ease;
    font-family: inherit;
    resize: vertical;
}

.contact textarea.modern-input {
    min-height: 120px;
    padding-top: 2rem;
}

.contact .modern-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(52, 53, 121, 0.1);
}

.contact .modern-input.error {
    border-color: #dc3545;
}

.contact .floating-label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    font-size: 0.9rem;
    color: var(--gray-medium);
    transition: all 0.3s ease;
    pointer-events: none;
    background: var(--white);
    padding: 0 0.5rem;
}

.contact textarea.modern-input + .floating-label {
    top: 1.2rem;
}

.contact .modern-input:focus + .floating-label,
.contact .modern-input:not(:placeholder-shown) + .floating-label,
.contact .modern-input.has-value + .floating-label {
    top: -0.5rem;
    font-size: 0.8rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.contact .error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.contact .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.contact .checkbox-group input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-blue);
    margin-top: 0.2rem;
}

.contact .checkbox-group label {
    font-size: 0.9rem;
    color: var(--gray-medium);
    line-height: 1.5;
}

.contact .form-cta-button {
    position: relative;
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    font-family: inherit;
}

.contact .button-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: 1;
}

.contact .form-cta-button span {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.contact .form-cta-button:hover .button-bg { left: 0; }
.contact .form-cta-button:hover span { color: var(--white); }

.contact .form-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(192, 20, 34, 0.3);
}

.contact .form-cta-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}


/* ============================================
   CONTACT PAGE (standalone)
   ============================================ */
.contact-section {
    padding: 8rem 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 90vh;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: conic-gradient(from 0deg, var(--accent-yellow) 0deg, transparent 60deg, var(--primary-red) 120deg, transparent 180deg, var(--primary-blue) 240deg, transparent 300deg);
    border-radius: 50%;
    opacity: 0.1;
    animation: energyRotate 20s linear infinite;
    z-index: 1;
}

.contact-section::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 8%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(52, 53, 121, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.contact-section .contact-container {
    max-width: none;
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-section .contact-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 7rem;
    align-items: center;
}

.contact-section .contact-text h1 {
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    font-weight: 900;
    margin-bottom: 2.5rem;
    line-height: 1.1;
    color: var(--primary-blue);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-section .contact-text h1 .highlight {
    color: var(--primary-red);
    position: relative;
    display: inline-block;
}

.contact-section .contact-text h1 .highlight::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    right: -4px;
    height: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 204, 0, 0.3), transparent);
    z-index: -1;
    animation: highlightGlow 3s ease-in-out infinite;
}

.contact-section .contact-text > p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 3.5rem;
    color: var(--gray-medium);
    font-weight: 400;
}

.contact-section .contact-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 2rem 2.2rem;
    background: var(--white);
    border-radius: 20px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.contact-item:hover {
    transform: translateX(12px) translateY(-4px);
    box-shadow: 0 12px 35px rgba(52, 53, 121, 0.15);
}

.contact-item:nth-child(1) { box-shadow: 0 4px 20px rgba(52, 53, 121, 0.08); }
.contact-item:nth-child(2) { box-shadow: 0 4px 20px rgba(192, 20, 34, 0.08); }
.contact-item:nth-child(3) { box-shadow: 0 4px 20px rgba(0, 51, 153, 0.08); }

.contact-item:nth-child(2):hover { box-shadow: 0 12px 35px rgba(192, 20, 34, 0.15); }
.contact-item:nth-child(3):hover { box-shadow: 0 12px 35px rgba(0, 51, 153, 0.15); }

.contact-details { flex: 1; }

.contact-details h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.contact-details p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.3rem;
    color: var(--gray-medium);
    font-weight: 400;
}

.contact-details a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

.contact-section .contact-image {
    position: relative;
}

.contact-section .contact-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(52, 53, 121, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 3;
}

.contact-section .contact-image img:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 30px 60px rgba(52, 53, 121, 0.25);
}

.contact-section .contact-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: conic-gradient(var(--accent-yellow), var(--primary-red), var(--accent-yellow));
    border-radius: 50%;
    animation: energyRotate 8s linear infinite;
    z-index: 1;
}


/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--white);
    border-top: 4px solid var(--primary-red);
    padding: 4rem 0 0;
    position: relative;
    clear: both;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-project-info {
    text-align: center;
    margin-bottom: 3rem;
}

.footer-project-details {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.footer-project-details p {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-dark);
}

.footer-project-details strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.logos-section {
    background: var(--gray-light);
    padding: 3rem 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 3rem;
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
    padding: 0 2rem;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    min-width: 200px;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    max-width: 280px;
}

.logo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.logo-image {
    max-height: 100px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.kpo-logo .logo-image { max-height: 85px; }
.ngeu-logo .logo-image { max-height: 85px; }
.rp-logo .logo-image { max-height: 110px; }

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #e9ecef;
}

.footer-links { margin-bottom: 1rem; }

.footer-link {
    color: var(--gray-medium);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-link:hover,
.footer-link:focus {
    color: var(--primary-blue);
    text-decoration: underline;
}

.footer-separator {
    margin: 0 1rem;
    color: var(--gray-medium);
}

.copyright {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-medium);
}

.compliance-notice {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1.5rem 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.compliance-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.compliance-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.95;
}

.compliance-text strong {
    color: var(--accent-yellow);
}


/* ============================================
   RESPONSIVE — 1200px
   ============================================ */
@media (max-width: 1200px) {
    .nav-menu { gap: 1.5rem; }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}


/* ============================================
   RESPONSIVE — 1024px
   ============================================ */
@media (max-width: 1024px) {
    .top-bar-container,
    .header-container {
        padding: 0 1.5rem;
    }

    .top-bar-container {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .top-bar-left,
    .top-bar-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .project-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .kpo-info-box {
        position: static;
        order: -1;
    }

    .project-highlights {
        flex-direction: row;
        gap: 1rem;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .highlight-item {
        min-width: 280px;
        flex-shrink: 0;
    }

    .contact .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact .text-section {
        text-align: center;
        padding: 1rem;
    }

    .contact .contact-features {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}


/* ============================================
   RESPONSIVE — 768px
   ============================================ */
@media (max-width: 768px) {
    .top-bar-container,
    .header-container {
        padding: 0 1rem;
    }

    .top-bar-container {
        gap: 1rem;
        padding: 1rem;
    }

    .top-bar-left {
        flex-direction: column;
        gap: 0.5rem;
    }

    .top-bar-right {
        flex-direction: column;
        gap: 0.75rem;
    }

    .logo-section { gap: 1rem; }

    .logo-icon-img,
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .logo-title { font-size: 1.2rem; }
    .logo-subtitle { font-size: 0.8rem; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        gap: 0;
        width: 100%;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-menu li:last-child {
        border-bottom: none;
        margin-top: 1rem;
    }

    .nav-menu a {
        width: 100%;
        padding: 1rem;
        text-align: center;
        font-size: 1.1rem;
        display: block;
    }

    .nav-menu .cta-nav-button {
        margin: 0 1rem;
        padding: 1rem 1.5rem !important;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Hero */
    .hero { background-attachment: scroll; }
    .hero-content { padding: 1rem; }
    .hero .cta-button {
        padding: 1.2rem 2.5rem;
        font-size: 1rem;
    }
    .cta-arrow { width: 18px; height: 18px; }

    /* Split */
    .split-content {
        grid-template-columns: 1fr;
        gap: 5rem;
        text-align: center;
    }

    .split-text h3 { font-size: 2.4rem; }
    .feature-item:hover { transform: translateY(-6px); }

    /* Project */
    .project-highlights { flex-direction: column; }
    .highlight-item { min-width: auto; }
    .project-main { padding: 2rem; }

    /* Illustration */
    .illustration-section { padding: 6rem 1rem; }
    .illustration-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    .illustration-item img { height: 280px; }
    .stats-container { gap: 2rem; justify-content: center; }
    .stat-item { min-width: 180px; }

    /* Articles */
    .articles { padding: 6rem 1rem; }
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .article-content { padding: 2rem; }

    /* Modal */
    .modal-content { margin: 10% auto; width: 95%; }
    .modal-header { padding: 2rem 2rem 1.2rem; }
    .modal-body { padding: 2rem; }
    .modal-header h2, .modal-title { font-size: 1.4rem; padding-right: 1rem; }

    /* Contact form */
    .contact .form-section { padding: 2rem; margin: 1rem 0; }
    .contact .contact-wrapper { padding: 1rem; }
    .contact .contact-features {
        flex-direction: column;
        align-items: center;
    }

    /* Contact page */
    .contact-section { padding: 6rem 1rem; }
    .contact-section .contact-content {
        grid-template-columns: 1fr;
        gap: 5rem;
        text-align: center;
    }
    .contact-section .contact-text h1 { font-size: 2.4rem; }
    .contact-item:hover { transform: translateY(-6px); }
    .contact-item { text-align: left; }

    /* Articles page */
    .articles-page { padding: 2rem 0; }
    .articles-page .container { padding: 0 1rem; }
    .page-header { margin-bottom: 3rem; }
    .articles-page .articles-grid { grid-template-columns: 1fr; gap: 2rem; }

    /* Footer */
    .site-footer { padding: 3rem 0 0; }
    .footer-container { padding: 0 1rem; }
    .logos-container {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
        padding: 0 1rem;
    }
    .logo-item {
        min-height: 100px;
        min-width: auto;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 1rem;
    }
    .logo-image { max-height: 70px; }
    .footer-project-details { text-align: center; }
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .footer-separator { display: none; }
}


/* ============================================
   RESPONSIVE — 480px
   ============================================ */
@media (max-width: 480px) {
    .top-bar { padding: 1rem 0; }
    .top-bar-container { padding: 0 0.75rem; }
    .header-container { padding: 0 0.75rem; }

    .top-bar .contact-button {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .main-logo {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .logo-icon-img, .logo-icon { width: 36px; height: 36px; }
    .logo-title { font-size: 1rem; }
    .logo-subtitle { font-size: 0.75rem; }

    .energy-section { padding: 4rem 0.5rem; }
    .illustration-section { padding: 4rem 0.5rem; }
    .articles { padding: 4rem 0.5rem; }

    .feature-item {
        padding: 1.5rem 1.8rem;
        font-size: 1.05rem;
    }

    .feature-icon { width: 48px; height: 48px; font-size: 1.4rem; }

    .kpo-badge { padding: 1.2rem 1.5rem; }
    .highlight-item { padding: 1.5rem; }
    .vision-box { padding: 2rem; }

    .stats-container { flex-direction: column; gap: 1.5rem; }
    .stat-item { min-width: auto; }
    .stat-number { font-size: 2.2rem; }

    .modal-header { padding: 1.5rem; }
    .modal-body { padding: 1.5rem; }
    .modal-footer { padding: 1.5rem; }

    .contact .form-section { padding: 1.5rem; }
    .contact-section { padding: 4rem 0.5rem; }

    .contact-item {
        padding: 1.5rem 1.8rem;
        font-size: 1.05rem;
    }

    .logo-item { min-height: 90px; padding: 0.75rem; }
    .logo-image { max-height: 60px; }
    .compliance-text { font-size: 0.85rem; }
}


/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero { background-attachment: scroll; }
}

@media (prefers-contrast: high) {
    .header { border-bottom: 2px solid var(--gray-dark); }
    .feature-item { border: 2px solid var(--gray-dark); }
    .split-image img { border: 3px solid var(--gray-dark); }
    .project-main { border: 2px solid var(--gray-dark); }
    .highlight-item { border: 1px solid var(--gray-medium); }
    .illustration-item img { border: 3px solid var(--gray-dark); }
    .article-card { border: 2px solid var(--gray-dark); }
    .contact-item { border: 2px solid var(--gray-dark); }
    .logo-item { border: 1px solid var(--gray-medium); }

    .contact .diagonal-bg::after { background: rgba(0, 0, 0, 0.8) !important; }
    .contact .form-section {
        background: var(--white) !important;
        border: 2px solid var(--gray-dark) !important;
    }
}

/* Focus indicators for contact form */
.contact input:focus,
.contact textarea:focus,
.contact button:focus {
    outline: 3px solid var(--accent-yellow);
    outline-offset: 2px;
}

.highlight-item:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.footer-link:focus {
    outline: 3px solid var(--accent-yellow);
    outline-offset: 2px;
}

/* Print */
@media print {
    .site-footer { background: var(--white) !important; }
    .compliance-notice {
        background: var(--white) !important;
        color: var(--gray-dark) !important;
        border: 1px solid var(--gray-dark);
    }
}
