/* ===== CSS VARIABLES ===== */
html {
    overflow-x: visible;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: clip;
    width: 100%;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #e02b20;
    --primary-dark: #c52319;
    --secondary-color: #0b1926;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f7f9fa;
    --border-color: #eaeaea;
    --white: #ffffff;

    --font-heading: 'Libre Franklin', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.16);

    --transition: all 0.3s ease;
    --radius: 8px;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

section[id] {
    scroll-margin-top: 90px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== LAYOUT & UTILITIES ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.pt-0 {
    padding-top: 0 !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.bg-light {
    background-color: var(--bg-light);
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.grid-layout-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-layout-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.grid-layout-1-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-layout-dominant-image {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.align-center {
    align-items: center;
}

.align-start {
    align-items: flex-start;
}

/* ===== TYPOGRAPHY ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.text-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.text-content h3,
.text-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.text-content ul,
.text-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-light);
}

.text-content li {
    margin-bottom: 0.5rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
    will-change: transform;
}

@media (hover: hover) {
    .btn:hover {
        transform: translateY(-3px) scale(1.03);
    }
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
    outline: none;
    transition: transform 0.1s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(224, 43, 32, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(224, 43, 32, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ===== HEADER ===== */
.main-header {
    background-color: #ffffff !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 10000 !important;
    box-shadow: 0 2px 15px rgba(16, 24, 32, 0.08) !important;
    transition: all 0.3s ease;
}

.subpage .main-header,
.home-page .main-header {
    background-color: #ffffff !important;
}

.top-bar {
    display: none;
}

.contact-info {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.contact-info .label {
    font-weight: 600;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 60px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.subpage .logo img,
.home-page .logo img,
.main-header.scrolled .logo img {
    filter: none !important; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a { color: var(--white); font-weight: 600; font-size: 0.95rem; position: relative; text-shadow: 0 1px 2px rgba(0,0,0,0.2); transition: color 0.3s ease; } .subpage .nav-links a, .main-header.scrolled .nav-links a { color: var(--secondary-color) !important; text-shadow: none; }

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--white);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content h1 {
    color: var(--white);
    font-size: 4rem;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* ===== QUICK LINKS ===== */
.quick-links {
    transform: translateY(-50%);
    position: relative;
    z-index: 10;
}

.links-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===== EU PROJECT (KPO) ===== */
.eu-project {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.financials {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    margin: 30px 0;
}

.financials p {
    margin-bottom: 10px !important;
    font-size: 1.2rem !important;
    color: var(--secondary-color) !important;
}

.financials p:last-child {
    margin-bottom: 0 !important;
}

.tags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tags span {
    background-color: rgba(224, 43, 32, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===== EU LOGOS ===== */
.eu-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.eu-logo-main {
    max-width: 600px;
}

.eu-logo-secondary {
    max-width: 300px;
}

/* ===== AWARDS ===== */
.award-img-main {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin: 0 auto 50px;
}

.gryf-award {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.gryf-logo {
    max-width: 180px;
    margin: 0 auto;
}

.gryf-nominacja {
    max-width: 120px;
    margin: 20px auto 0;
}

/* ===== INFO BLOCKS ===== */
.card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (hover: hover) {
    .card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }
}

.card h3 {
    margin-bottom: 20px;
}

.folder-link {
    display: block;
    transition: var(--transition);
}

@media (hover: hover) {
    .folder-link:hover {
        transform: scale(1.05);
    }
}

.folder-link img {
    max-width: 150px;
    margin: 0 auto;
}

/* ===== HOME PAGE / POLONEZ-INSPIRED LANDING ===== */
.home-page,
.subpage {
    --home-ink: #101820;
    --home-muted: #62717f;
    --home-line: #dfe7ec;
    --home-green: #7aa928;
    --home-yellow: #f0c03a;
    --home-red: #e02b20;
    color: var(--home-ink);
    background: #ffffff;
}

.home-page .main-header,
.subpage .main-header {
    box-shadow: 0 10px 35px rgba(16, 24, 32, 0.08);
}

.home-page .top-bar,
.subpage .top-bar {
    background: #101820;
    color: #ffffff;
    padding: 10px 0;
}

.home-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-top a {
    color: #ffffff;
}

.home-page .nav-container,
.subpage .nav-container {
    padding-top: 18px;
    padding-bottom: 18px;
}

.home-page .logo img,
.subpage .logo img {
    height: 54px;
}

.home-page .nav-links,
.subpage .nav-links {
    gap: 28px;
}

.home-page .nav-links a,
.subpage .nav-links a {
    color: var(--home-ink);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-page .nav-links a::after,
.subpage .nav-links a::after {
    background: var(--home-green);
}

.home-page .btn,
.subpage .btn {
    border-radius: 999px;
    letter-spacing: 0.08em;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

@media (hover: hover) {
    .home-page .btn:hover, .subpage .btn:hover {
        transform: translateY(-5px) scale(1.05);
    }
}

.home-page .btn:active, .subpage .btn:active {
    transform: translateY(-2px) scale(0.96);
    transition: transform 0.1s ease;
}

.home-page .btn-primary,
.subpage .btn-primary {
    background: var(--home-green);
    border-color: var(--home-green);
    box-shadow: 0 14px 30px rgba(122, 169, 40, 0.25);
}

.home-page .btn-primary:hover,
.subpage .btn-primary:hover {
    background: #648f1f;
    border-color: #648f1f;
    box-shadow: 0 18px 35px rgba(122, 169, 40, 0.3);
}

.home-page .btn-secondary,
.subpage .btn-secondary {
    color: var(--home-ink);
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.88);
}

.home-page .btn-secondary:hover,
.subpage .btn-secondary:hover {
    background: #ffffff;
    color: var(--home-ink);
}

.mobile-menu-toggle {
    display: none !important;
}

.home-hero {
    position: relative;
    min-height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.hero-media {
    position: absolute;
    inset: 0;
    background-image: url('assets/images/1.webp');
    background-size: cover;
    background-position: center 58%;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(16, 24, 32, 0.06) 0%, rgba(16, 24, 32, 0.16) 34%, rgba(16, 24, 32, 0.86) 72%, rgba(16, 24, 32, 0.94) 100%),
        linear-gradient(0deg, rgba(16, 24, 32, 0.38), rgba(16, 24, 32, 0.02));
}

.hero-inner {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 122px);
    padding-top: 90px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-index {
    display: grid;
    gap: 18px;
    align-self: center;
}

.hero-index a {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    padding-left: 28px;
}

.hero-index a::before {
    content: '';
    width: 16px;
    height: 2px;
    background: var(--home-yellow);
    position: absolute;
    left: 0;
    top: 50%;
}

.hero-copy {
    color: #ffffff;
    padding: 80px 0;
    text-align: right;
    margin-left: auto;
}

.eyebrow {
    color: var(--home-green);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 18px !important;
}

.hero-copy .eyebrow {
    color: var(--home-yellow);
}

.hero-copy h1 {
    color: #ffffff;
    font-size: clamp(3rem, 5.8vw, 6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    max-width: 820px;
    margin-left: auto;
    margin-top: 18px !important;
    margin-bottom: 28px;
}

.lead {
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    color: rgba(255, 255, 255, 0.82);
    max-width: 680px;
    margin-left: auto;
    margin-bottom: 34px;
}

.subpage .lead, .lead-text {
    color: var(--home-ink) !important;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.5;
    max-width: 900px;
    margin-left: 0;
    margin-bottom: 2rem;
}

.intro-text p {
    margin-bottom: 1.2rem;
    max-width: 850px;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hero-actions .btn {
    padding: 12px 28px !important;
    font-size: 0.9rem !important;
    border-radius: 50px !important;
    width: auto !important;
    min-width: 160px;
    text-align: center;
}

.home-section {
    padding: 100px 0;
}

.intro-grid,
.section-split,
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 70px;
    align-items: center;
}

.home-section h2 {
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: 1.02;
    letter-spacing: 0;
    margin: 0;
}

.intro-text p,
.section-split p,
.service-grid p,
.contact-grid p {
    color: var(--home-muted);
    font-size: 1.1rem;
}

.text-link {
    color: var(--home-ink);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 2px solid var(--home-green);
    padding-bottom: 5px;
}

.value-row {
    margin-top: 70px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--home-line);
    border-bottom: 1px solid var(--home-line);
}

.value-item {
    padding: 34px 28px;
    border-right: 1px solid var(--home-line);
}

.value-item:last-child {
    border-right: none;
}

.value-item strong {
    display: block;
    color: var(--home-red);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    margin-bottom: 10px;
}

.value-item span {
    color: var(--home-muted);
    font-weight: 700;
}

.product-section {
    background: #f5f8fa;
}

.product-grid {
    margin-top: 54px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-tile {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    isolation: isolate;
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(16, 24, 32, 0.12);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.product-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.5s ease;
    border-radius: 0;
}

.product-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 24, 32, 0.05) 0%, rgba(16, 24, 32, 0.86) 100%);
    z-index: -1;
}

@media (hover: hover) {
    .product-tile:hover img {
        transform: scale(1.07);
    }
}

.product-tile span {
    color: var(--home-yellow);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.product-tile h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.45rem;
}

.service-band {
    background: #101820;
    color: #ffffff;
}

.service-band h2,
.service-band p {
    color: #ffffff;
}

.service-band p {
    color: rgba(255, 255, 255, 0.72);
}

.service-list {
    display: grid;
    gap: 12px;
}

.service-list a {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--home-green);
    padding: 20px 24px;
    border-radius: 6px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    display: block;
}

@media (hover: hover) {
    .service-list a:hover {
        border-color: var(--home-green);
        transform: translateX(8px);
    }
}

.proof-section {
    background: #ffffff;
}

.logo-marquee {
    width: 100%;
    margin-top: 56px;
    overflow: hidden;
    background: #ffffff;
    border-top: 1px solid var(--home-line);
    border-bottom: 1px solid var(--home-line);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.proof-section {
    overflow: hidden;
}

.proof-section:has(.logo-track img:hover) {
    overflow: visible;
}

.logo-marquee:has(.logo-track img:hover) {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
    position: relative;
    z-index: 20;
}

.logo-track {
    display: flex;
    width: max-content;
    gap: 50px;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logo-marquee:hover .logo-track,
.logo-marquee.is-paused .logo-track {
    animation-play-state: paused;
}

.logo-track img {
    width: 260px;
    height: 160px;
    object-fit: contain;
    padding: 24px 30px;
    background: #ffffff;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(16, 24, 32, 0.08);
    flex: 0 0 auto;
    cursor: zoom-in;
    position: relative;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease, border-color 0.5s ease !important;
    will-change: transform;
    transform-origin: center;
}

@media (hover: hover) {
    .logo-marquee .logo-track img:hover {
        transform: scale(5.0) !important;
        z-index: 9999 !important;
        border-color: var(--home-green) !important;
        box-shadow: 0 50px 120px rgba(16, 24, 32, 0.5) !important;
        position: relative;
    }
}

/* Mobile specific active/focused state for logos */
.logo-track img.is-active {
    transform: scale(2.0) !important;
    z-index: 9999 !important;
    border-color: var(--home-green) !important;
    box-shadow: 0 20px 50px rgba(16, 24, 32, 0.4) !important;
}

@keyframes logo-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 12px));
    }
}

.cta-panel {
    margin-top: 70px;
    background: #f5f8fa;
    border-left: 8px solid var(--home-green);
    padding: 54px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cta-panel h2 {
    max-width: 760px;
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.cta-panel .btn-secondary {
    border-color: var(--home-green);
    background: #ffffff;
}

.contact-section {
    background: #f5f8fa;
}

.contact-panel {
    background: #ffffff;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    padding: 42px;
    box-shadow: 0 18px 45px rgba(16, 24, 32, 0.08);
}

.contact-panel > a:not(.btn) {
    display: block;
    color: var(--home-ink);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.contact-panel p {
    margin: 10px 0 20px;
    font-size: 0.95rem;
}

.contact-panel .btn-primary {
    border-radius: 50px !important;
    padding: 10px 24px !important;
    font-size: 0.85rem !important;
    background: #7aa928 !important;
    border-color: #7aa928 !important;
    width: auto !important;
    display: inline-block !important;
}

/* ===== SUBPAGES ===== */
.subpage-hero {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.subpage-hero-media {
    position: absolute;
    inset: 0;
    background-image: url('assets/images/1.webp');
    background-size: cover;
    background-position: center 58%;
    transform: scale(1.02);
}

.subpage-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(16, 24, 32, 0.94) 0%, rgba(16, 24, 32, 0.78) 48%, rgba(16, 24, 32, 0.26) 100%),
        linear-gradient(0deg, rgba(16, 24, 32, 0.44), rgba(16, 24, 32, 0.08));
}

.subpage-hero-content {
    position: relative;
    z-index: 1;
    padding: 92px 20px 74px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    margin-bottom: 34px;
}

.back-link::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--home-yellow);
}

.subpage-hero-content .eyebrow {
    color: var(--home-yellow);
}

.subpage-hero-content h1 {
    color: #ffffff;
    font-size: clamp(2.6rem, 6vw, 5.8rem);
    line-height: 0.98;
    max-width: 980px;
    margin: 0;
}

.subpage-content-section {
    background: #f5f8fa;
    padding: 86px 0 100px;
}

.subpage-content {
    background: #ffffff;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(16, 24, 32, 0.08);
    padding: clamp(28px, 5vw, 64px);
}

.subpage-content>.mt-4 {
    display: inline-flex;
    margin: 0 10px 14px 0 !important;
}

.subpage-content>.mt-4 .btn {
    padding: 11px 22px;
    font-size: 0.78rem;
}

.subpage-content,
.subpage-content p,
.subpage-content li,
.subpage-content span,
.subpage-content .check-list li {
    color: var(--home-ink) !important;
    font-size: 1.05rem;
    line-height: 1.6;
}

.subpage-content h2,
.subpage-content h3,
.subpage-content h4 {
    color: var(--home-ink) !important;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.subpage-content h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-top: 42px;
}

.subpage-content h3 {
    font-size: clamp(1.45rem, 2.6vw, 2.2rem);
    margin-top: 34px;
}

.subpage-content h4 {
    font-size: 1.25rem;
}

.subpage-content a:not(.btn) {
    color: var(--home-ink);
    font-weight: 700;
    border-bottom: 2px solid rgba(122, 169, 40, 0.35);
}

.subpage-content a:not(.btn):hover {
    color: var(--home-green);
    border-bottom-color: var(--home-green);
}

.bg-gradient-soft {
    background: linear-gradient(135deg, #f7f9fa 0%, #ffffff 100%);
    padding: 60px 0;
    margin: 40px 0;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .bg-gradient-soft {
        padding: 30px 15px;
        margin: 20px 0;
    }
}

.subpage-content p>img {
    display: block;
    margin: 34px auto;
}

.subpage-content img {
    max-height: none !important;
    width: auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(16, 24, 32, 0.1);
}

.subpage-content table {
    box-shadow: none;
    border: 1px solid var(--home-line);
}

.subpage-content td,
.subpage-content th {
    border-color: var(--home-line);
}

.reference-lead {
    max-width: 860px;
    font-size: 1.18rem !important;
    margin-bottom: 44px !important;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.reference-card {
    display: flex;
    flex-direction: column;
    min-height: 160px;
    overflow: hidden;
    border: 1px solid var(--home-line) !important;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(16, 24, 32, 0.08);
}

.reference-card img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    padding: 10px;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff;
}

.reference-card span {
    margin-top: auto;
    display: block;
    padding: 18px 20px;
    background: #f5f8fa;
    color: var(--home-ink);
    font-weight: 800;
    text-align: center;
    border-top: 1px solid var(--home-line);
}

@media (hover: hover) {
    .reference-card:hover {
        transform: translateY(-6px);
        border-color: var(--home-green) !important;
        box-shadow: 0 18px 45px rgba(16, 24, 32, 0.14);
    }
}

/* ===== FOOTER ===== */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-widgets {
    margin-bottom: 50px;
}

.widget {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.widget-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.widget h4 {
    color: var(--white);
    margin-bottom: 15px;
}

.widget p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.widget a {
    color: rgba(255, 255, 255, 0.7);
}

.widget a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .nav-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding: 10px 15px !important;
        box-sizing: border-box !important;
    }

    .logo {
        flex: 0 0 auto;
    }

    .logo img {
        height: 35px !important;
        width: auto !important;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 75px;
        right: 15px;
        width: calc(100% - 30px);
        max-width: 280px;
        height: auto;
        background-color: #ffffff;
        border: 1px solid var(--home-line);
        border-radius: 20px;
        box-shadow: 0 15px 40px rgba(16, 24, 32, 0.15);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 30px 20px;
        z-index: 2000;
        gap: 12px;
        margin: 0;
        transform: translateY(-10px);
        opacity: 0;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
        pointer-events: none;
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f0f3f5;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links li a {
        color: var(--home-ink) !important;
        font-size: 1.1rem !important;
        font-weight: 600;
        display: block;
        padding: 12px 10px;
        border-radius: 10px;
    }

    .nav-links li a:hover {
        background-color: #f5f8fa;
        color: var(--home-green) !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px !important;
        height: 44px !important;
        background-color: transparent !important;
        border: none;
        cursor: pointer;
        position: relative !important;
        z-index: 9999 !important;
        padding: 5px !important;
        margin: 0 !important;
        gap: 6px;
    }

    .mobile-menu-toggle span {
        display: block !important;
        width: 30px !important;
        height: 3px !important;
        background-color: #7aa928 !important; /* Green */
        margin: 0 !important; /* Reset inherited margin to prevent flexbox overflow */
        flex-shrink: 0 !important; /* Prevent flexbox from squishing the height to 0 */
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .mobile-menu-toggle.active span {
        background-color: #101820 !important; /* Dark X */
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .eu-project {
        padding: 20px;
    }

    .eu-logos {
        gap: 20px;
    }

    .info-banner {
        flex-direction: column !important;
        text-align: center !important;
        padding: 40px 24px !important;
        gap: 30px !important;
    }

    .info-banner .banner-text {
        text-align: center !important;
    }

    .info-banner h2 {
        font-size: 2rem !important;
    }

    .info-banner .btn {
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
    }
}

/* ===== DROPDOWN MENU ===== */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 240px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    list-style: none;
    border-top: 3px solid var(--primary-color);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
}

/* Fix z-index for sections under the menu */
.hero-section {
    z-index: 1;
}

/* Mobile dropdown basic support */
@media (max-width: 992px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 15px;
        background-color: transparent;
        display: none;
    }

    .has-dropdown:hover .dropdown-menu {
        display: block;
    }
}

@media (max-width: 1100px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-index {
        display: none;
    }

    .intro-grid,
    .section-split,
    .service-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .product-grid,
    .value-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-track img {
        width: 220px;
        height: 140px;
    }

    .cta-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 992px) {

    .home-page .nav-links,
    .subpage .nav-links {
        max-height: calc(100vh - 110px);
        overflow: auto;
    }

    .home-page .btn-primary,
    .subpage .btn-primary {
        width: auto;
    }


    .home-hero {
        height: 85vh;
        min-height: 500px;
        width: 100vw;
        max-width: 100%;
    }

    .hero-inner {
        width: 100%;
        padding: 85px 20px 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-media {
        background-position: center top;
        height: 100%;
        width: 100%;
        transform: scale(1);
    }

    .hero-shade {
        background: linear-gradient(180deg, rgba(16, 24, 32, 0.4) 0%, rgba(16, 24, 32, 0.6) 40%, rgba(16, 24, 32, 0.95) 100%) !important;
        z-index: 1;
    }

    .home-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .home-top .contact-info {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .home-hero,
    .hero-inner {
        min-height: 500px;
    }

    .hero-copy {
        grid-column: 1;
        padding: 70px 0;
        max-width: 640px;
        margin-left: 0;
        
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-page .btn,
    .subpage .btn {
        width: 100%;
    }

    .home-section {
        padding: 70px 0;
    }

    .product-grid,
    .value-row,
    .logo-track {
        gap: 14px;
        padding: 22px 14px;
        animation-duration: 22s;
    }

    .logo-track img {
        width: 190px;
        height: 122px;
        padding: 18px 22px;
    }

/* Removed conflicting logo hover scale */

    .value-item {
        border-right: none;
        border-bottom: 1px solid var(--home-line);
    }

    .value-item:last-child {
        border-bottom: none;
    }

    .product-tile {
        min-height: 340px;
    }

    .cta-panel,
    .contact-panel {
        padding: 28px;
    }

    .subpage-hero {
        min-height: 360px;
    }

    .subpage-hero-media {
        background-position: 34% center;
    }

    .subpage-hero-shade {
        background: linear-gradient(180deg, rgba(16, 24, 32, 0.24) 0%, rgba(16, 24, 32, 0.88) 100%);
    }

    .subpage-hero-content {
        padding-top: 95px;
        padding-bottom: 58px;
    }

    .subpage-content-section {
        padding: 44px 0 70px;
    }

    .subpage-content>.mt-4 {
        display: block;
        margin-right: 0 !important;
    }
}
}

/* ===== SERVICE STEPS (v48 Style) ===== */
.service-step {
    display: flex;
    align-items: center;
    gap: 60px;
    background: #ffffff;
    border-radius: 24px;
    padding: 50px;
    margin-bottom: 50px;
    box-shadow: 0 15px 45px rgba(16, 24, 32, 0.06);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none !important;
}

.service-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(16, 24, 32, 0.1);
}

.service-step.step-reverse {
    flex-direction: row-reverse;
}

.service-step .step-image {
    flex: 1;
    max-width: 48%;
}

.service-step .step-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.service-step .step-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.service-step .step-number {
    font-size: 8rem !important;
    font-weight: 800 !important;
    color: rgba(16, 24, 32, 0.03) !important;
    -webkit-text-fill-color: rgba(16, 24, 32, 0.03) !important;
    position: absolute;
    top: -30px;
    left: -20px;
    line-height: 1;
    font-family: var(--font-heading);
    z-index: -1;
}

.service-step.step-reverse .step-number {
    left: auto;
    right: -20px;
}

.service-step h3 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    color: var(--secondary-color);
    position: relative;
}

.service-step p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* ===== CONTENT IMAGES ===== */
.content-image {
    margin: 2rem 0;
    text-align: center;
    display: flex;
    justify-content: center;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    /* Rounded corners */
    box-shadow: var(--shadow-md);
    /* Nice shadow */
    transition: var(--transition);
}

@media (hover: hover) {
    .img-fluid:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-3px);
    }
}

/* ===== TABLES (Mobile Fix) ===== */
table {
    width: 100% !important;
    max-width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius);
    overflow: hidden;
}

td,
th {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
}

.t_head,
.t_head p {
    background-color: var(--secondary-color) !important;
    color: var(--white) !important;
    font-weight: 700;
    text-align: center;
}

.jasny {
    background-color: var(--white);
}

.szary {
    background-color: var(--bg-light);
}

@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        /* Prevent text wrapping in mobile tables */
    }


.hero-media {
    animation: kenBurns 20s ease infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1.02) translate(0, 0);
    }
    100% {
        transform: scale(1.12) translate(-1%, -1%);
    }
}

.subpage-hero-media {
    animation: kenBurnsSubpage 30s ease infinite alternate;
}

@keyframes kenBurnsSubpage {
    0% {
        transform: scale(1.0) translate(0, 0);
    }
    100% {
        transform: scale(1.08) translate(1%, 0);
    }
}
/* Removed redundant main-header block */

.info-banner {
    background: #101820 !important; /* Premium Dark Background */
    border-radius: 24px !important;
    padding: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 40px !important;
    border: none !important;
    margin-top: 60px !important;
    color: #ffffff !important;
    box-shadow: 0 20px 50px rgba(16, 24, 32, 0.2) !important;
}

.info-banner .banner-text, 
.info-banner > div:first-child {
    flex: 1 !important;
}

.info-banner h2 {
    color: #ffffff !important;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
}

.info-banner p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.1rem !important;
    margin: 0 !important;
}

.nav-links {
    /* Updated for mobile glassmorphism later in media queries */
}

@media (max-width: 992px) {
    .nav-links {
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

.product-tile::after {
    background: linear-gradient(180deg, rgba(16, 24, 32, 0.05) 0%, rgba(16, 24, 32, 0.4) 60%, rgba(16, 24, 32, 0.9) 100%) !important;
}

.product-tile:hover::after {
    background: linear-gradient(180deg, rgba(122, 169, 40, 0.1) 0%, rgba(16, 24, 32, 0.4) 60%, rgba(16, 24, 32, 0.9) 100%) !important;
}
.bg-light, 
.subpage-content-section,
.product-section {
    position: relative;
    background-color: #f8fafc;
}

.home-section, .subpage-content {
    position: relative;
    overflow: hidden;
}

.container {
    position: relative;
    z-index: 1;
}

.hero-shade {
    background: 
        linear-gradient(90deg, rgba(16, 24, 32, 0.06) 0%, rgba(16, 24, 32, 0.16) 34%, rgba(16, 24, 32, 0.86) 72%, rgba(16, 24, 32, 0.94) 100%),
        linear-gradient(0deg, rgba(16, 24, 32, 0.38), rgba(16, 24, 32, 0.02));
    background-blend-mode: normal;
}
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active .stagger-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for children */
.reveal.active .stagger-reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal.active .stagger-reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal.active .stagger-reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal.active .stagger-reveal:nth-child(4) { transition-delay: 0.4s; }

/* Enhanced Hover Effects */
.product-tile {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease !important;
}

@media (hover: hover) {
    .product-tile:hover {
        transform: translateY(-10px) scale(1.02) !important;
        box-shadow: 0 25px 50px rgba(16, 24, 32, 0.25) !important;
    }
}

.service-list a {
    transition: all 0.3s ease !important;
}

.service-list a:hover {
    background: rgba(122, 169, 40, 0.1) !important;
    border-color: var(--home-green) !important;
    padding-left: 30px !important;
}

.btn {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

@media (hover: hover) {
    .btn:hover {
        transform: translateY(-3px) scale(1.03);
        box-shadow: var(--shadow-lg);
    }
}

.service-step {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) {
    .service-step:hover {
        transform: translateX(10px);
        box-shadow: var(--shadow-md);
    }
}

.step-image img {
    transition: transform 0.6s ease;
}

@media (hover: hover) {
    .service-step:hover .step-image img {
        transform: scale(1.05);
    }
}

    .text-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .text-content ul,
    .text-content ol {
        padding-left: 1rem;
    }

    .content-image {
        margin: 1.5rem 0;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}


/* ===== ALL MAIN CONTENT IMAGES ===== */
main img {
    border-radius: 12px;
}


/* ===== IMAGE FLOATING (Desktop only) ===== */
@media (min-width: 769px) {
    .content-image {
        float: right;
        width: 240px;
        /* Even smaller width */
        margin: 0 0 1.5rem 2rem;
        clear: right;
    }

    .content-image img {
        width: 100%;
    }

    .subpage-content::after {
        content: "";
        display: table;
        clear: both;
    }
}
/* ===== SERVICE PAGE SPECIALS ===== */
.service-step {
    display: grid;
    grid-template-columns: auto 1fr 350px;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary-color);
    align-items: start;
}

/* Force dark text on light cards even in Dark Mode */
.service-step, 
.service-step h3, 
.service-step p, 
.service-step li, 
.service-step strong {
    color: #101820 !important;
}

.service-step.reverse {
    grid-template-columns: 350px auto 1fr;
    border-left: none;
    border-right: 5px solid var(--primary-color);
}

.service-step.reverse .step-image {
    grid-column: 1;
    grid-row: 1;
}

.service-step.reverse .step-number {
    grid-column: 2;
}

.service-step.reverse .step-content {
    grid-column: 3;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(224, 43, 32, 0.1);
    line-height: 1;
    font-family: 'Libre Franklin', sans-serif;
}

.step-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.step-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 992px) {
    .service-step, .service-step.reverse {
        grid-template-columns: auto 1fr;
        gap: 30px;
    }
    .step-image {
        /* Keep image side-by-side on larger mobile/tablets if possible, or stack gracefully */
        grid-column: 1 / -1;
        width: 100%;
    }
    .step-image img {
        height: auto;
        max-height: 400px;
    }
}

@media (max-width: 576px) {
    .service-step {
        padding: 20px;
        gap: 15px;
    }
    .step-number {
        font-size: 1.8rem;
    }
}

/* .info-banner removed - consolidated at line 1902 */


.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.check-list li::before {
    content: " \2713";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ===== MOBILE RESPONSIVENESS ===== */
.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 992px) {
    /* Mobile nav overrides moved to main 992px query */


    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta-panel {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px !important;
    }

    .value-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .widget-icon {
        margin: 0 auto 15px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr !important;
    }

    .value-row {
        grid-template-columns: 1fr;
    }

    .value-item {
        border-right: none;
        border-bottom: 1px solid var(--home-line);
    }

    .hero-actions {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        width: 100%;
    }

    .hero-actions .btn {
        width: auto;
        min-width: 180px;
    }

    .subpage-hero-content h1 {
        font-size: 2.5rem;
    }
}

/* ===== DARK MODE (SOFT TECH LOOK) — sterowany atrybutem html[data-theme="dark"] ===== */

    :where(html[data-theme="dark"]), :where(html[data-theme="dark"]) .home-page, :where(html[data-theme="dark"]) .subpage {
        --bg-color: #1a1f26; /* Softer dark */
        --bg-light: #242b35;
        --text-color: #e1e7ed;
        --text-light: #a1b0bd;
        --secondary-color: #0b1926; /* Keep secondary dark even in dark mode */
        --border-color: #3d4652;
        --white: #ffffff;
        --home-ink: #f0f6fc !important;
        --home-muted: #b0bac5 !important;
        --home-line: #3d4652 !important;
    }

    :where(html[data-theme="dark"]) body {
        background-color: #1a1f26 !important;
        color: #e1e7ed !important;
    }

    /* Force WHITE Header in Dark Mode - already handled globally */

    /* Links on WHITE Header must be DARK - increased specificity */
    :where(html[data-theme="dark"]) .nav-links a, :where(html[data-theme="dark"]) .home-page .nav-links a, :where(html[data-theme="dark"]) .subpage .nav-links a {
        color: #101820 !important;
    }

    :where(html[data-theme="dark"]) .home-page, :where(html[data-theme="dark"]) .subpage, :where(html[data-theme="dark"]) .home-section, :where(html[data-theme="dark"]) .subpage-content-section {
        background-color: #1a1f26 !important;
    }

    :where(html[data-theme="dark"]) .bg-light, :where(html[data-theme="dark"]) .product-section, :where(html[data-theme="dark"]) .stats-section, :where(html[data-theme="dark"]) .cta-panel {
        background-color: #242b35 !important;
    }

    :where(html[data-theme="dark"]) .subpage-content, :where(html[data-theme="dark"]) .contact-panel, :where(html[data-theme="dark"]) .gryf-award, :where(html[data-theme="dark"]) .card {
        background: #242b35 !important;
        border-color: #3d4652 !important;
    }

    :where(html[data-theme="dark"]) .service-list a {
        background: rgba(255, 255, 255, 0.05) !important;
        border-color: #3d4652 !important;
        color: #f0f6fc !important;
    }

    :where(html[data-theme="dark"]) .logo-marquee, :where(html[data-theme="dark"]) .logo-track img {
        background: #ffffff !important; /* Keep logos on white */
        border-color: #3d4652 !important;
    }

    :where(html[data-theme="dark"]) .bg-gradient-soft {
        background: #242b35 !important;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    :where(html[data-theme="dark"]) .main-footer {
        background: #0d1117 !important;
        border-top: 1px solid #3d4652 !important;
    }

/* .info-banner override removed - consolidated at line 1902 */


    /* Mobile Nav Fix for Dark Mode */
    @media (max-width: 992px) {
        :where(html[data-theme="dark"]) .nav-links, :where(html[data-theme="dark"]) .home-page .nav-links, :where(html[data-theme="dark"]) .subpage .nav-links {
            background: #ffffff !important; /* White mobile menu to match header */
            border-left: 1px solid #eaeaea !important;
        }
        
        :where(html[data-theme="dark"]) .nav-links a, :where(html[data-theme="dark"]) .home-page .nav-links a, :where(html[data-theme="dark"]) .subpage .nav-links a {
            color: #101820 !important; /* Dark links on white background */
            border-bottom-color: #f0f0f0 !important;
        }

        :where(html[data-theme="dark"]) .mobile-menu-toggle span {
            background-color: #7aa928 !important;
        }

        :where(html[data-theme="dark"]) .mobile-menu-toggle.active span {
            background-color: #101820 !important; /* Dark X on white header */
        }
    }

    :where(html[data-theme="dark"]) h1, :where(html[data-theme="dark"]) h2, :where(html[data-theme="dark"]) h3, :where(html[data-theme="dark"]) h4, :where(html[data-theme="dark"]) h5, :where(html[data-theme="dark"]) h6, :where(html[data-theme="dark"]) .subpage-content, :where(html[data-theme="dark"]) .subpage-content p, :where(html[data-theme="dark"]) .subpage-content li, :where(html[data-theme="dark"]) .subpage-content span, :where(html[data-theme="dark"]) .subpage-content strong, :where(html[data-theme="dark"]) .subpage-content .check-list li, :where(html[data-theme="dark"]) .subpage-content h2, :where(html[data-theme="dark"]) .subpage-content h3, :where(html[data-theme="dark"]) .subpage-content h4 {
        color: #ffffff !important;
    }

    :where(html[data-theme="dark"]) .btn-primary {
        color: #ffffff !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }

    :where(html[data-theme="dark"]) .btn-secondary {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
        border-color: rgba(255, 255, 255, 0.4) !important;
        backdrop-filter: blur(4px);
    }

    @media (hover: hover) {
        :where(html[data-theme="dark"]) .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.2) !important;
            color: #ffffff !important;
            transform: translateY(-2px) scale(1.02);
        }
    }

    :where(html[data-theme="dark"]) .hero-shade {
        background: 
            linear-gradient(90deg, rgba(26, 31, 38, 0.06) 0%, rgba(26, 31, 38, 0.16) 34%, rgba(26, 31, 38, 0.86) 72%, rgba(26, 31, 38, 0.94) 100%),
            linear-gradient(0deg, rgba(26, 31, 38, 0.38), rgba(26, 31, 38, 0.02));
    }

    :where(html[data-theme="dark"]) .subpage-hero-shade {
        background:
            linear-gradient(90deg, rgba(26, 31, 38, 0.94) 0%, rgba(26, 31, 38, 0.78) 48%, rgba(26, 31, 38, 0.26) 100%),
            linear-gradient(0deg, rgba(26, 31, 38, 0.44), rgba(26, 31, 38, 0.08));
    }

    /* Support for Service Steps in Dark Mode */
    :where(html[data-theme="dark"]) .service-step {
        background: #1a1f26 !important;
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3) !important;
    }
    
    :where(html[data-theme="dark"]) .service-step p, 
    :where(html[data-theme="dark"]) .service-step li, 
    :where(html[data-theme="dark"]) .service-step .check-list li {
        color: #ffffff !important;
    }

    :where(html[data-theme="dark"]) .service-step .step-number {
        color: rgba(255, 255, 255, 0.05) !important;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.05) !important;
    }




/* ===== SERVICE STEPS (v48 Style) ===== */
.service-step {
    display: flex !important;
    align-items: center !important;
    gap: 60px !important;
    background: var(--white) !important;
    border-radius: 24px !important;
    padding: 50px !important;
    margin-bottom: 50px !important;
    box-shadow: 0 15px 45px rgba(16, 24, 32, 0.06) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    border: none !important;
    flex-direction: row !important;
}

.service-step.step-reverse {
    flex-direction: row-reverse !important;
}

.service-step:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 60px rgba(16, 24, 32, 0.1) !important;
}

.service-step .step-image {
    flex: 1 !important;
    max-width: 48% !important;
}

.service-step .step-image img {
    width: 100% !important;
    height: 400px !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    display: block !important;
}

.service-step .step-content {
    flex: 1 !important;
    position: relative !important;
    z-index: 2 !important;
}

.service-step .step-number {
    font-size: 8rem !important;
    font-weight: 800 !important;
    color: rgba(16, 24, 32, 0.03) !important;
    -webkit-text-fill-color: rgba(16, 24, 32, 0.03) !important;
    position: absolute !important;
    top: -30px !important;
    left: -20px !important;
    line-height: 1 !important;
    font-family: var(--font-heading) !important;
    z-index: -1 !important;
}

.service-step.step-reverse .step-number {
    left: auto !important;
    right: -20px !important;
}

.service-step h3 {
    font-size: 2.2rem !important;
    margin-bottom: 1.2rem !important;
    color: var(--secondary-color) !important;
    position: relative !important;
}

.service-step p, .service-step li {
    color: var(--secondary-color) !important;
    margin-bottom: 1rem !important;
    font-size: 1.1rem !important;
}

.service-step .check-list li {
    padding-left: 28px !important;
    background-position: left center !important;
    background-size: 18px !important;
}

/* FINAL MOBILE LAYOUT FIX */
@media (max-width: 992px) {
    .service-step { 
        flex-direction: column !important; 
        padding: 30px 20px !important; 
        gap: 30px !important;
    }
    .service-step.step-reverse {
        flex-direction: column !important;
    }
    .service-step .step-image { 
        max-width: 100% !important; 
    }
    .service-step .step-image img {
        height: 250px !important;
    }
    .service-step .step-number {
        font-size: 5rem !important;
        top: -10px !important;
        left: 10px !important;
    }
}

/* RESTORING PRODUCT HOVER ZOOM v47 */
@media (hover: hover) {
    .product-tile:hover, .product-card:hover { 
        transform: scale(1.05) !important; 
        transition: transform 0.3s ease !important; 
        z-index: 5 !important;
    }
}

/* DELICATE MOBILE TOUCH ZOOM v48 */
@media (hover: none) {
    .product-tile:active, .product-card:active { 
        transform: scale(1.03) !important; 
        transition: transform 0.2s ease !important; 
    }
}

/* FINAL OVERRIDE FOR SERVICE CARDS - MATCHING HEADING COLOR */
.service-step p, .service-step li { 
    color: #0b1926 !important; 
}

    :where(html[data-theme="dark"]) .service-step { background: #ffffff !important; }
    :where(html[data-theme="dark"]) .subpage-content .service-step li, 
    :where(html[data-theme="dark"]) .subpage-content .service-step p, 
    :where(html[data-theme="dark"]) .subpage-content .service-step h3 { 
        color: #0b1926 !important; 
    }



/* Cookies & Privacy Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(11, 25, 38, 0.95);
    color: white;
    padding: 20px 30px;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}

.cookie-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-actions {
    margin-left: 30px;
    flex-shrink: 0;
}

.cookie-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn:hover {
    background: #0077cc;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 20px;
    }
    .cookie-actions {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }
    .cookie-btn {
        width: 100%;
    }
}

.privacy-footer-link {
    display: inline-block;
    margin-left: 10px;
    color: inherit;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}


.privacy-footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* RESPONSIVE GRID UPDATES */
@media (max-width: 992px) {
    .grid-layout-2-1, .grid-layout-1-1, .grid-layout-dominant-image {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}


/* ===== EU PROJECTS SECTION ===== */
.eu-projects-section {
    padding: 100px 0;
    background-color: #f8fafb;
    border-top: 1px solid var(--home-line);
    border-bottom: 1px solid var(--home-line);
    margin: 80px 0;
}

.eu-projects-section h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 3rem;
}

.eu-project-card {
    background: #ffffff;
    border: 1px solid var(--home-line);
    border-radius: 16px;
    padding: 48px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(16, 24, 32, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.eu-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(16, 24, 32, 0.1);
}

.eu-logo-container {
    width: 100%;
    height: 110px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eu-logo-container img {
    width: 100%;
    height: 200%; /* Since the image has two rows of logos */
    object-fit: contain;
}

.logo-kpo img {
    object-position: top center;
}

.logo-rpo img {
    object-position: bottom center;
}

.eu-project-card h3 {
    font-size: 1.6rem;
    color: var(--home-ink);
    margin-bottom: 24px;
    line-height: 1.25;
    font-weight: 800;
}

.eu-project-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: var(--home-muted) !important;
}

.finance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid var(--home-line);
}

.finance-item span {
    display: block;
    font-size: 0.75rem;
    color: var(--home-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 6px;
}

.finance-item strong {
    font-size: 1.2rem;
    color: var(--home-ink);
    white-space: nowrap;
}

.hashtags {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hashtag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--home-green);
}
