
/* =========================================================
   SecureHaveNET - Global Stylesheet
   Author: Andrzej Dudek
   Purpose:
   Main stylesheet used across the entire website including:
   - homepage
   - article pages
   - project pages

   Any new article should include:
   <link rel="stylesheet" href="../css/style.css">

   This guarantees visual consistency across the platform.
========================================================= */

/* =========================================================
    CSS ARCHITECTURE MAP
    1) LAYOUT: global structure and section scaffolding
    2) COMPONENTS: reusable UI blocks and page-specific modules
    3) UTILITIES: helpers, animations, and responsive overrides
========================================================= */

/* =========================================================
    TOKEN NAMING CONVENTION
    Base tokens:
    - --color-<group>-<role>
    - --space-<scale>
    - --radius-<size>
    Module aliases:
    - --<module>-<role>[-state]
    Typical state suffixes:
    - -hover, -active, -focus
========================================================= */

/* =========================================================
    COMMENTING CONVENTION
    - Use section blocks for architecture levels and major modules.
    - Use short inline comments only for non-obvious intent.
    - Keep labels in Title Case and avoid duplicate explanations.
    }
========================================================= */

/* =========================================================
    LAYOUT
========================================================= */


*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

:root{
    --color-bg-base:#0f172a;
    --color-bg-surface:#1e293b;
    --color-bg-surface-hover:#273449;
    --color-bg-section:#111827;
    --color-bg-section-alt:#0b1220;

    --color-text-primary:#e2e8f0;
    --color-text-secondary:#cbd5e1;
    --color-text-muted:#94a3b8;
    --color-text-subtle:#64748b;
    --color-text-heading:#ffffff;
    --color-text-heading-soft:#f1f5f9;
    --color-white:#ffffff;
        width: 100%;

    --color-accent:#38bdf8;
    --color-accent-hover:#22d3ee;
    --color-accent-strong:#2563eb;
    --color-accent-strong-dark:#1e40af;
    --color-accent-strong-hover:#60a5fa;
    --color-accent-strong-press:#1d4ed8;

    --color-text-secondary-soft:#cbd5f5;

    --color-border:#334155;
    --color-border-soft:#1e293b;

    --overlay-header:rgba(15,23,42,0.9);
    --overlay-header-border:rgba(255,255,255,0.05);
    --overlay-dark-strong:rgba(0,0,0,0.75);
    --overlay-dark-soft:rgba(0,0,0,0.55);
    --overlay-tag:rgba(15,23,42,0.75);
    --overlay-tag-border:rgba(255,255,255,0.08);
    --cert-modal-overlay-alpha:0.68;
    --cert-modal-overlay-alpha-mobile:0.62;

    --glow-accent-strong:rgba(56,189,248,0.6);
    --glow-accent-soft:rgba(56,189,248,0.35);
    --focus-ring-accent:rgba(37,99,235,0.2);

    --space-1:4px;
    --space-2:6px;
    --space-3:8px;
    --space-4:10px;
    --space-5:12px;
    --space-6:14px;
    --space-7:15px;
    --space-8:18px;
    --space-9:20px;
    --space-10:25px;
    --space-11:30px;
    --space-12:40px;
    --space-13:60px;

    --radius-sm:4px;
    --radius-md:8px;
    --radius-lg:12px;
    --radius-xl:16px;
    --radius-pill:20px;

    /* Module aliases: HERO */
    --hero-overlay-from:var(--overlay-dark-strong);
    --hero-overlay-to:var(--overlay-dark-soft);
    --hero-title-color:var(--color-text-heading);

.form-field {
    display: flex;
    flex-direction: column;
}
    --hero-subtitle-color:var(--color-text-secondary-soft);
    --hero-text-color:var(--color-text-muted);
    --hero-cta-bg-hover:var(--color-bg-surface);
    --hero-cta-border:var(--color-text-muted);
    --hero-cta-border-hover:var(--color-text-secondary-soft);
    --hero-cta-text:var(--color-text-primary);

    /* Module aliases: ARTICLES */
    --articles-card-bg:var(--color-bg-surface);
    --articles-card-bg-hover:var(--color-bg-surface-hover);
    --articles-card-title:var(--color-text-heading-soft);
    --articles-card-text:var(--color-text-muted);
    --articles-tag-bg:var(--overlay-tag);
    --articles-tag-border:var(--overlay-tag-border);
    --articles-summary-bg:var(--color-bg-section);
    --articles-summary-accent:var(--color-accent);
    --articles-tag-lang-pl:#16a34a;
    --articles-tag-lang-en:#93aee8;
    --articles-tag-lang-pl-en:#33c2ea;

    /* Module aliases: GRC HOTSPOT */
    --grc-accent:#22d3ee;
    --grc-accent-hover:#38bdf8;
    --grc-hotspot-gradient:radial-gradient(circle at 30% 30%, rgba(34,211,238,0.6), rgba(34,211,238,0.2));
    --grc-hotspot-gradient-hover:radial-gradient(circle at 30% 30%, rgba(34,211,238,0.8), rgba(34,211,238,0.3));
    --grc-hotspot-shadow:0 0 15px rgba(34,211,238,0.4), inset 0 0 10px rgba(34,211,238,0.2);
    --grc-hotspot-shadow-hover:0 0 25px rgba(34,211,238,0.7), inset 0 0 15px rgba(34,211,238,0.3);
    --grc-pulse-start:rgba(34,211,238,0.7);
    --grc-pulse-end:rgba(34,211,238,0);
    --grc-definition-bg:rgba(15,23,42,0.5);
    --grc-definition-border:rgba(34,211,238,0.3);
    --grc-definition-title:var(--grc-accent);

    /* Module aliases: NAV */
    --nav-link-color:var(--color-text-secondary);
    --nav-link-hover-color:#22d3ee;
    --nav-link-hover-glow:0 0 8px rgba(34,211,238,0.55);

    /* Module aliases: FAQ */
    --faq-item-bg:var(--color-bg-surface);
    --faq-item-border:var(--color-border);
    --faq-question-color:var(--color-text-primary);
    --faq-answer-color:var(--color-text-secondary);

    /* Module aliases: LANGUAGE SWITCH */
            --lang-switch-bg:transparent;
            --lang-switch-border:transparent;
            --lang-switch-shadow:none;
            --lang-btn-bg:transparent;
            --lang-btn-border:rgba(148,163,184,0.24);
            --lang-btn-text:var(--color-text-secondary);
            --lang-btn-hover-bg:rgba(56,189,248,0.1);
            --lang-btn-hover-text:var(--color-text-primary);
            --lang-btn-hover-border:rgba(56,189,248,0.4);
            --lang-btn-active-bg:rgba(56,189,248,0.2);
            --lang-btn-active-text:var(--color-text-primary);
            --lang-btn-active-border:rgba(56,189,248,0.62);
            --lang-btn-active-hover-bg:rgba(34,211,238,0.24);
            --lang-btn-active-shadow:0 0 0 1px rgba(56,189,248,0.35), 0 0 12px rgba(56,189,248,0.2);
            --lang-btn-active-hover-shadow:0 0 0 1px rgba(34,211,238,0.38), 0 0 14px rgba(34,211,238,0.2);

    /* Ujednolicony styl przełącznika języka (lang-switch) */
    .lang-switch {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0;
        margin-bottom: 18px;
    }
    .lang-btn {
        display: inline-block;
        padding: 8px 28px;
        font-size: 1rem;
        font-weight: 600;
        color: var(--lang-btn-text);
        background: var(--lang-btn-bg);
        border: 1.5px solid var(--lang-btn-border);
        border-radius: var(--radius-pill) 0 0 var(--radius-pill);
        margin: 0;
        cursor: pointer;
        transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s;
        outline: none;
        text-decoration: none;
        box-shadow: var(--lang-switch-shadow);
    }
    .lang-btn:last-child {
        border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
        border-left: none;
    }
    .lang-btn.active,
    .lang-btn[aria-pressed="true"] {
        background: var(--lang-btn-active-bg);
        color: var(--lang-btn-active-text);
        border-color: var(--lang-btn-active-border);
        box-shadow: var(--lang-btn-active-shadow);
        z-index: 1;
    }
    .lang-btn:hover:not(.active):not([aria-pressed="true"]) {
        background: var(--lang-btn-hover-bg);
        color: var(--lang-btn-hover-text);
        border-color: var(--lang-btn-hover-border);
        z-index: 2;
    }

    /* Module aliases: CONTACT */
    --contact-text-muted:var(--color-text-muted);
    --contact-field-bg:var(--color-bg-base);
    --contact-field-border:var(--color-border-soft);
    --contact-field-text:var(--color-text-heading-soft);
    --contact-focus-border:var(--color-accent-strong);
    --contact-focus-ring:var(--focus-ring-accent);
    --contact-button-gradient-from:var(--color-accent-strong);
    --contact-button-gradient-to:var(--color-accent-strong-dark);
    --contact-button-text:var(--color-white);
    --contact-note-text:var(--color-text-subtle);
    --contact-status-bg:rgba(15,23,42,0.45);
    --contact-status-border:rgba(56,189,248,0.35);
    --contact-status-text:var(--color-text-secondary);
    --contact-status-success:var(--color-accent-hover);
    --contact-status-error:#fda4af;
    --contact-map-border:var(--color-border-soft);
    --contact-map-heading:var(--color-text-heading);
    --contact-map-text:var(--color-text-muted);

    /* Module aliases: PRIVACY */
    --privacy-text:var(--color-text-secondary);
    --privacy-heading:var(--color-text-heading);
    --privacy-subheading:var(--color-accent);
    --privacy-link:var(--color-accent);
    --privacy-link-hover:var(--color-accent-hover);

    /* Module aliases: FEEDBACK */
    --feedback-text:var(--color-white);
    --feedback-text-muted:var(--color-text-muted);
    --feedback-widget-bg:transparent;
    --feedback-widget-border:transparent;
    --feedback-widget-shadow:none;
    --feedback-widget-blur:0px;
    --feedback-button-bg:transparent;
    --feedback-button-text:var(--lang-btn-text);
    --feedback-button-hover:var(--lang-btn-hover-bg);
    --feedback-button-hover-text:var(--lang-btn-hover-text);
    --feedback-button-border:var(--lang-btn-border);
    --feedback-button-hover-border:var(--lang-btn-hover-border);
    --feedback-button-shadow:none;
    --feedback-button-focus-shadow:0 0 0 3px var(--focus-ring-accent);

    /* Module aliases: FOOTER */
    --footer-bg:var(--color-bg-base);
    --footer-text:var(--color-text-muted);
    --footer-border:var(--color-border-soft);
    --footer-link:var(--color-accent-strong);
    --footer-link-hover:var(--color-accent-strong-hover);
    --footer-disclaimer-text:var(--color-text-subtle);
}

body{
    font-family:'Segoe UI',Arial,sans-serif;
    background:var(--color-bg-base);
    color:var(--color-text-primary);
    line-height:1.6;
}

img{
    border-radius:var(--radius-md);
}

.skip-link {
    position: absolute;
    top: -44px;
    left: var(--space-9);
    z-index: 10000;
    padding: var(--space-4) var(--space-6);
    border: 1px solid var(--hero-cta-border);
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.92);
    color: var(--hero-cta-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    transition: top 0.2s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.skip-link:focus {
    top: var(--space-4);
    background: var(--hero-cta-bg-hover);
    border-color: var(--hero-cta-border-hover);
    transform: translateY(0);
}

#main-content {
    position: relative;
    outline: none;
}

#main-content:focus::before {
    content: "Main content";
    display: block;
    width: fit-content;
    margin: calc(70px + var(--space-6)) auto 0;
    padding: var(--space-4) 22px;
    border: 1px solid var(--hero-cta-border-hover);
    border-radius: var(--radius-sm);
    background: var(--hero-cta-bg-hover);
    color: var(--hero-cta-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    opacity: 0;
    animation: fadeIn 0.35s ease forwards;
    transition: all 0.3s ease;
}


/* =========================================================
   2. GLOBAL LAYOUT CONTAINER
   Central width control used by all sections
========================================================= */

.container{
    width:90%;
    max-width:1200px;
    margin:0 auto;
}

/* =========================================================
   3. HEADER / MAIN NAVIGATION
   Fixed navigation visible on every page
========================================================= */

header{
    position:fixed;
    top:0;
    width:100%;
    z-index:1000;

    background:var(--overlay-header);
    backdrop-filter:blur(8px);

    border-bottom:1px solid var(--overlay-header-border);

    display:flex;
    align-items:center;
    padding:var(--space-4) var(--space-9);
}

/* Nav Container: logo + menu + icons */

.nav-container{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap: var(--space-10);
    width:100%;
}



.logo{
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:var(--color-text-heading);
    font-weight:600;
}

.logo img{
    width: 50px;
    height:50px;
    margin-right:0;
    border-radius:var(--radius-lg);
}


/* =========================================================
     COMPONENTS
========================================================= */

/* Search */

#searchInput {
    width: 100%;
    max-width: 600px;
    padding: var(--space-5);
.field-label {
    display: block;
    margin-bottom: var(--space-3);
    color: var(--color-text-secondary);
}
    margin: var(--space-12) auto;
    display: block;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-bg-base);
    color: var(--color-white);
}

.result h3 {
    color: var(--color-accent);
    margin-bottom: 5px;
}

.result p {
    color: var(--color-text-secondary);
}

/* =========================================================
   4. MAIN MENU
========================================================= */

.nav-menu{
    justify-self:center;
    text-align:center;
}

.nav-menu ul{
    list-style:none;
    display:inline-flex;
    gap: var(--space-10);
}

.nav-menu a{
    display:inline-block;
    padding: var(--space-2) 0;
    text-decoration:none;
    color:var(--nav-link-color);
    font-size:1rem;
    font-weight:500;
    letter-spacing:0.01em;
    white-space:nowrap;
    transition:color 0.3s, text-shadow 0.3s;
}

.nav-menu a:hover{
    color:var(--nav-link-hover-color);
    text-shadow:var(--nav-link-hover-glow);
}

/* =========================================================
   5. ICONS (Search +LinkedIn + Email)
========================================================= */

.menu-icons{
    display:flex;
    align-items: center;
    gap: var(--space-8);
    flex-shrink: 0;
}

.menu-icons--left {
    justify-self: start;
}

.menu-icons--right {
    justify-self: end;
}

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

.menu-icons .logo img {
    width: 42px;
    height: 42px;
    margin-right: 0;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.menu-icons .logo:hover img,
.menu-icons .logo:focus-visible img {
    transform: translateY(-1px) scale(1.04);
    filter: drop-shadow(0 0 10px var(--grc-accent)) drop-shadow(0 0 16px var(--grc-accent-hover));
}

.menu-icons .logo:focus-visible {
    outline: none;
}

/* =========================================================
   6. MOBILE MENU (HAMBURGER)
   Menu hidden on mobile and opened via JS
========================================================= */

.hamburger{
    display:none;
    font-size:26px;
    cursor:pointer;
    background:none;
    border:none;
    color:inherit;
    padding:0;
    line-height:1;
}

/* =========================================================
   7. HERO SECTION (landing banner)
========================================================= */

.hero{

    height:100vh;

    background-size:cover;
    background-position:center;

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

    text-align:center;
    padding-top:70px;

    position:relative;
    overflow: hidden;
}

.hero-home {
    background-image: url("../images/hero_office.webp");
}

/* Hero Overlay For Readability */

.hero::before{

    content:"";
    position:absolute;
    inset:0;
    z-index: 1;

    background:linear-gradient(
        to bottom right,
        var(--hero-overlay-from),
        var(--hero-overlay-to)
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    padding: 0 24px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.7s;
}

.hero h1{
    font-size: clamp(2.4rem, 7vw, 4.2rem);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    text-transform: none;
}

.hero h1::after{
    display: none;
}

.hero h2{
    border-left: none;
    padding-left: 0;
}

.hero h2:not(.hero-motto){
    font-size: clamp(1.15rem, 3.8vw, 1.65rem);
    font-weight: 400;
    color: var(--hero-subtitle-color);
    margin-bottom: var(--space-10);
    text-align: center;
}

.hero-kula {
    width: 0.55em;
    height: 0.55em;
    vertical-align: middle;
    display: inline-block;
    animation: kula-glow 2.6s ease-in-out infinite;
}

/* Timeline vertical animation: narastające zapalanie kulek */
.timeline-v-dot .hero-kula {
    animation: timeline-dot-grow 10.5s linear infinite;
    opacity: 0.5;
}
.hero-kula--1 { animation-delay: 0s !important; }
.hero-kula--2 { animation-delay: 1s !important; }
.hero-kula--3 { animation-delay: 2s !important; }
.hero-kula--4 { animation-delay: 3s !important; }
.hero-kula--5 { animation-delay: 4s !important; }
.hero-kula--6 { animation-delay: 5s !important; }
.hero-kula--7 { animation-delay: 6s !important; }
.hero-kula--8 { animation-delay: 7s !important; }
.hero-kula--9 { animation-delay: 8s !important; }

@keyframes timeline-dot-grow {
    0% { opacity: 0.5; filter: none; }
    8.5% { opacity: 0.5; filter: none; }
    9.5% { opacity: 1; filter: drop-shadow(0 0 10px var(--color-accent)) drop-shadow(0 0 20px var(--color-accent)); }
    85.7% { opacity: 1; filter: drop-shadow(0 0 10px var(--color-accent)) drop-shadow(0 0 20px var(--color-accent)); }
    99% { opacity: 0.5; filter: none; }
    100% { opacity: 0.5; filter: none; }
}



@keyframes kula-glow {
    0%, 100% { filter: drop-shadow(0 0 0px rgba(34,211,238,0)); opacity: 0.5; }
    50% { filter: drop-shadow(0 0 10px var(--grc-accent)) drop-shadow(0 0 20px var(--grc-accent)) drop-shadow(0 0 30px var(--grc-accent-hover)); opacity: 1; }
}

.hero p{
    color:var(--hero-text-color);
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    line-height: 1.7;
}


.hero-btn {
    display: inline-block;
    margin-top: var(--space-10);
    padding: 12px 28px;
    border: 1px solid var(--hero-cta-border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--hero-cta-text);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.hero .hero-btn {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 2.2s;
}

.hero-btn:hover{
    background:var(--hero-cta-bg-hover);
    border-color: var(--hero-cta-border-hover);
}

.hero-btn--centered {
    display: block;
    text-align: center;
    margin-top: 20px;
}

.articles-search-btn {
    display: flex;
    justify-content: center;
    margin-top: 2em;
}

.articles-search-btn .hero-btn {
    margin-top: 0;
}

/* Hero Animation */

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px); /* delikatne przesunięcie od dołu */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   8. SECTIONS
========================================================= */

section{
    padding:100px 0;
    margin-bottom:var(--space-13);
}

section h1{
    font-size:2.2rem;
    color:var(--color-text-heading);
    margin-bottom:var(--space-8);
    text-align:center;
    text-transform:uppercase;
    letter-spacing:0.06em;
    font-weight:700
}

section h1::after{
    content:'';
    display:block;
    width:60px;
    height:3px;
    background:var(--color-accent);
    margin:var(--space-4) auto 0;
    border-radius:2px
}

section h2{
    font-size:1.4rem;
    color:var(--color-accent);
    margin-bottom:var(--space-4);
    text-align:left;
    font-weight:600;
    border-left:3px solid var(--color-accent);
    padding-left:var(--space-5)
}

section h3{
    font-size:1.15rem;
    color:var(--color-text-heading-soft);
    margin-bottom:var(--space-4);
    text-align:left;
    font-weight:600
}

section p{
    color:var(--color-text-muted);
    font-size:1.05rem;
    margin-bottom: var(--space-9);  /* Dodane dla spójności */
}

.copy-relaxed {
    line-height: 2;
}

/* =========================================================
   9. SPLIT GRID (image + text)
========================================================= */

.split-grid{

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:var(--space-13);

    align-items:center;
}

.split-grid img{
    width:100%;
    border-radius:var(--radius-lg);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-13);
}


.section-title h1 {
    font-size: 2.2rem;
    margin-bottom: var(--space-4);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.section-title h2 {
    font-size: 1.5rem;
    color: var(--color-text-heading);
    margin-bottom: var(--space-4);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-left: none;
    padding-left: 0;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--color-accent);
    margin: var(--space-3) auto 0;
    border-radius: 2px;
}


.section-title p {
    color: var(--color-text-muted);
}


/* =========================================================
    COMPONENTS (continued)
========================================================= */


/* =========================================================
   12. COLOR EXPERIENCE
========================================================= */

.experience-counter {
    text-align: center;
    font-family: "Segoe UI", Roboto, sans-serif;
    margin-top: var(--space-9);
}
.experience-counter h3 {
    font-size: 20px;
    color: var(--color-text-heading);
    margin-bottom: 5px;
}
.experience-counter p {
    font-size: 32px;
    font-weight: 600;
    color: var(--color-text-heading);
}
#experience {
    display: inline-block;
    min-width: 30px;
}

/* =========================================================
   13. FEATURES (klikanie)
========================================================= */


.features {
    background: var(--color-bg-section-alt);
}


.competence-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}


.competence-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.competence-item {
    padding: var(--space-7);
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: 0.3s;
    background: rgba(255,255,255,0.03);
}


.competence-item:hover,
.competence-item.active {
    border-left: 3px solid var(--color-accent);
    background: rgba(56,189,248,0.1);
}


.competence-display img {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-9);
}


.competence-display h3 {
    margin-bottom: var(--space-4);
}


/* =========================================================
   14. SPLIT SECTION
========================================================= */

.split-section {
    background: var(--color-bg-section);
}



/* =========================================================
     15. ARTICLES GRID
     Cards used on homepage
========================================================= */

/* SVG BADGES (no inline style, CSP safe) */
.badge-article {
    margin-right: 5px;
    color: #007bff;
}
.badge-project {
    margin-right: 5px;
    color: #fe7f00;
}

.articles-grid {
    display: grid;
    /* 260px avoids horizontal overflow in 320px viewports with current container width. */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-9);
    margin-top: var(--space-9);
}

.article-card{

    background:var(--articles-card-bg);
    padding:var(--space-10);
    border-radius:var(--radius-lg);

    transition:0.3s;
}

.article-card:hover{

    transform:translateY(-6px);
    background:var(--articles-card-bg-hover);
}

.article-card h3{
    margin-bottom:var(--space-4);
    color:var(--articles-card-title);
}

.article-card p{
    color:var(--articles-card-text);
}

.article-card-link{
    text-decoration:none;
    color:inherit;
    display: flex;
    flex-direction: column;
}

.article-card{
    flex:1;
    display:flex;
    flex-direction:column;
}

.article-card p:last-of-type{
    margin-top:auto;
}



/* =========================================================
   16. ARTICLE THUMBNAIL + TAG
========================================================= */

.thumb-wrapper{
    position:relative;
    margin-bottom:var(--space-7);
    border-radius:var(--radius-md);
    overflow:hidden;
}


.thumb-wrapper img{
    width:100%;
    aspect-ratio:16/9;
    object-fit:cover;
}


.tags-container {

    position:absolute;
    top:var(--space-4);
    left:var(--space-4);

    display:flex;
    flex-wrap:wrap;

    gap:var(--space-3);
    max-width:80%;
}

.article-tag{

    font-size:11px;
    font-weight:600;
    letter-spacing:0.4px;
    padding:5px var(--space-5);
    border-radius:var(--radius-pill);
    color:var(--color-white);
    background:var(--articles-tag-bg);
    border:1px solid var(--articles-tag-border);
    backdrop-filter:blur(6px);
    transition:all 0.25s ease;

}

.article-tag:hover{

    transform:translateY(-1px);
    box-shadow:0 4px 10px rgba(0,0,0,0.35);

}

/* Article Language Tags */

.article-tag.lang-pl{
    background:var(--articles-tag-lang-pl);
}

.article-tag.lang-en{
    background:var(--articles-tag-lang-en);
}

.article-tag.lang-pl-en{
    background:var(--articles-tag-lang-pl-en);
}


/* =========================================================
   17. ARTICLE PAGE STYLE
========================================================= */

.article-page {
    margin-top: 100px;  /* zmniejszony odstęp od góry */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ================= META ================= */

.article-meta {
    display: flex;
    justify-content: center;   /* wyśrodkowanie */
    align-items: center;
    flex-wrap: wrap;           /* zawijanie na małych ekranach */
    
    margin-top: 2px;
    margin-bottom: 8px;
    
    gap: clamp(12px, 3vw, 40px);  /* responsywny odstęp */
    font-size: 1rem;
    text-align: center;
}

.article-meta span {
    font-weight: 500;
}

/* ================= FULL ARTICLE HEADINGS ================= */

.article-full h2 {
    margin-top: var(--space-13);
    margin-bottom: var(--space-4);
    color: var(--color-accent);
    font-size: 1.4rem;
    text-align: left;
    font-weight: 600;
    border-left: 3px solid var(--color-accent);
    padding-left: var(--space-5);
}
.article-full h3 {
    margin-top: var(--space-9);
    margin-bottom: var(--space-4);
    color: var(--color-text-heading-soft);
    font-size: 1.15rem;
    text-align: left;
    font-weight: 600;
}

.article-full p {
    margin-top: 0;  /* Zmniejszone z 25px – domyślnie po h3 */
    margin-bottom: var(--space-9);  /* Zwiększone z 10px dla spójności */
    color: var(--color-text-secondary);
}

/* ================= LEAD / INTRO ================= */
.article-lead {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-11); /* wcześniej 40px */
}


/* ================= SPLIT SECTION IMAGE + TEXT ================= */


.split-section {
    display: flex;
    flex-wrap: wrap;           /* tylko raz */
    justify-content: center;   
    align-items: center;
    gap: var(--space-9);
    margin-bottom: var(--space-6); 
}

.split-image,
.split-text {
    flex: 1 1 300px;
    max-width: 100%;           /* dodatkowe zabezpieczenie */
}

.split-title {
    font-size: 1.4rem;
    color: var(--color-accent);
    margin-bottom: var(--space-4);
    text-align: left;
    font-weight: 600;
    border-left: 3px solid var(--color-accent);
    padding-left: var(--space-5);
}

.article-page > h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--color-text-heading);
    margin-top: var(--space-2);
    margin-bottom: 0;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.article-page > h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: var(--space-4) auto 0;
    border-radius: 2px;
}

.split-image img {
    display: block;            /* usuwa mikro-odstęp pod obrazkiem */
    width: 100%;
    height: auto;              /* zachowuje proporcje */
    border-radius: 8px;
}

/* ================= SIEM ARTICLE TABLE + IMAGES ================= */

.org-table-wrap {
    overflow-x: auto;
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    padding: 0.5rem;
    margin: 1rem 0 1.5rem;
}

.org-compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 420px;
}

.org-compare-table th,
.org-compare-table td {
    padding: 0.75rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.org-compare-table thead th {
    background: rgba(56, 189, 248, 0.12);
    color: var(--color-text-heading-soft);
    font-weight: 600;
}

.org-compare-table tbody tr:nth-child(even) {
    background: rgba(148, 163, 184, 0.05);
}

.org-compare-table tbody tr:last-child td {
    border-bottom: none;
}

.org-compare-table td {
    color: var(--color-text-secondary);
}

.article-image {
    margin: 1rem 0 1.5rem;
}

.article-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #d9e5f5;
    background: #ffffff;
}

.image-caption {
    margin: 0.55rem 0 0;
    font-size: 0.92rem;
    color: #2a3a4a;
}


/* ================= SUMMARY / QUOTE BOX ================= */

.article-summary {
    margin-top: var(--space-12);      /* wcześniej 60px */
    padding: var(--space-10);         /* nieco mniejszy padding */
    background: var(--articles-summary-bg);
    border-left: 4px solid var(--articles-summary-accent);
    border-radius: var(--radius-lg);
}

/* ================= FAQ SECTION ================= */

.faq-section {
    margin-top: var(--space-13);
}

.faq-section h2 {
    text-align: center;
    border-left: none;
    padding-left: 0;
    color: var(--color-text-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-10);
}

.faq-section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--color-accent);
    margin: var(--space-3) auto 0;
    border-radius: 2px;
}

/* FAQ Item */

.faq-item {
    border: 1px solid var(--faq-item-border);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    background: var(--faq-item-bg);
    overflow: hidden;
}

/* FAQ Question Header */

.faq-item summary {
    cursor: pointer;
    padding: var(--space-6) var(--space-8);
    font-size: 1rem;
    font-weight: 500;
    color: var(--faq-question-color);
    list-style: none;
}

/* FAQ: Remove Default Marker */

.faq-item summary::-webkit-details-marker {
    display: none;
}

/* FAQ: Custom Marker */

.faq-item summary::after {
    content: "+";
    float: right;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

/* FAQ: Open State */

.faq-item[open] summary::after {
    content: "−";
}

/* FAQ: Answer Content */

.faq-item p {
    padding: 0 var(--space-8) var(--space-7) var(--space-8);
    margin: 0;
    color: var(--faq-answer-color);
    line-height: 1.6;
}

.faq-section ul {
    list-style-position: outside;
    margin-left: var(--space-9);
}

/* ================= LINKI W ARTYKULE ================= */
.article-full a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}
.article-full a:hover {
    color: var(--color-accent-hover);
}
.article-full a:visited {
    color: var(--color-accent-strong-hover);
}

/* ================= LISTY ================= */
.article-full ul {
    margin-bottom: var(--space-9);
    padding-left: var(--space-9);
    list-style-position: outside;
}

/* ================= SWITCH LANGUAGE ================= */ 

.lang-switch{
    display:flex;
    gap:var(--space-2);
    margin-left:var(--space-9);
    padding:var(--space-1);
    border:1px solid var(--lang-switch-border);
    border-radius:999px;
    background:var(--lang-switch-bg);
    backdrop-filter:blur(4px);
    box-shadow:var(--lang-switch-shadow);
}

.lang-btn{
    padding:var(--space-1) var(--space-4);
    border-radius:var(--radius-md);
    font-size:12px;
    font-weight:500;
    letter-spacing:0.2px;
    text-decoration:none;
    border:1px solid var(--lang-btn-border);

    background:var(--lang-btn-bg);
    color:var(--lang-btn-text);

    transition:all 0.25s ease;
}

/* Language Button Hover */
.lang-btn:hover{
    background:var(--lang-btn-hover-bg);
    color:var(--lang-btn-hover-text);
    border-color:var(--lang-btn-hover-border);
}

/* Language Button Active */
.lang-btn.active{
    background:var(--lang-btn-active-bg);
    color:var(--lang-btn-active-text);
    border-color:var(--lang-btn-active-border);
    font-weight:600;

    box-shadow:var(--lang-btn-active-shadow);
}


/* Language Button Active Hover */
.lang-btn.active:hover{
    background:var(--lang-btn-active-hover-bg);
    box-shadow:var(--lang-btn-active-hover-shadow);
}

.lang-btn:focus-visible{
    outline:none;
    box-shadow:0 0 0 3px var(--focus-ring-accent);
}

/* =========================================================
   18. CONTACT SECTION
========================================================= */

.contact {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    color: var(--contact-text-muted);
    margin-bottom: var(--space-12);
    font-size: 1rem;
    line-height: 1.6;
}


.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-9);
}

.form-field {
    display: flex;
    flex-direction: column;
}


.form-row {
    display: flex;
    gap: var(--space-9);
}

.form-row .form-field {
    flex: 1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background-color: var(--contact-field-bg);
    border: 1px solid var(--contact-field-border);
    color: var(--contact-field-text);
    padding: var(--space-6) 16px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--contact-focus-border);
    box-shadow: 0 0 0 3px var(--contact-focus-ring);
}

.btn-primary {
    background: linear-gradient(135deg, var(--contact-button-gradient-from), var(--contact-button-gradient-to));
    border: none;
    padding: var(--space-6) var(--space-11);
    color: var(--contact-button-text);
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

.contact-note {
    margin-top: var(--space-10);
    font-size: 0.85rem;
    color: var(--contact-note-text);
}

.contact-status {
    min-height: 24px;
    margin-top: var(--space-3);
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: transparent;
    color: var(--contact-status-text);
    font-size: 0.9rem;
    line-height: 1.4;
}

.contact-status.is-visible {
    background: var(--contact-status-bg);
    border-color: var(--contact-status-border);
}

.contact-status.is-success {
    color: var(--contact-status-success);
}

.contact-status.is-error {
    color: var(--contact-status-error);
}

.contact-form .btn-primary:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-honeypot {
    display: none;
}


/* Contact Map Container */
.contact-map {
    max-width: 800px;
    text-align: center;
    margin-top: var(--space-12); /* Odstęp od formularza */
    border: 1px solid var(--contact-map-border); /* Takie samo obramowanie jak w inputach */
    border-radius: var(--radius-lg); /* Spójne zaokrąglenie */
    overflow: hidden; /* Żeby mapa nie wystawała poza zaokrąglone rogi */
    line-height: 0; /* Usuwa dziwną przerwę na dole ramki */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Lekki cień dla głębi */
    padding: var(--space-9); /* Dodany padding dla odstępu wewnętrznego, spójny z sekcjami */
}

/* Contact Map Heading */
.contact-map h3 {
    margin-bottom: var(--space-4); /* Odstęp jak w .section-title h2 */
    color: var(--contact-map-heading); /* Spójny kolor z innymi h2 */
    font-size: 1.8em; /* Jak w innych sekcjach */
}

/* Contact Map Description */
.contact-map p {
    margin-bottom: var(--space-9); /* Odstęp jak w .section-title p */
    color: var(--contact-map-text); /* Spójny kolor z innymi p */
    font-size: 1.05rem; /* Jak w sekcjach */
}

/* Contact Map Frame */
.contact-map iframe {
    width: 100%;
    height: clamp(260px, 55vw, 400px);
    filter: grayscale(0.8) invert(0.9) contrast(1.2);
    border: 0;
    border-radius: var(--radius-md);
}

/* Contact Map Hover Effect */
.contact-map:hover iframe {
    filter: grayscale(0.2) invert(0) contrast(1);
    transition: all 0.5s ease;
}

/* =========================================================
   GRC HOTSPOT INTERACTIVE DIAGRAM
========================================================= */

.grc-hotspot-container {
        position: relative;
        display: inline-block;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
}

.grc-hotspot-container img {
        width: 100%;
        height: auto;
        display: block;
}

.hotspot {
        position: absolute;
        width: 50px;
        height: 50px;
    background: var(--grc-hotspot-gradient);
    border: 2px solid var(--grc-accent);
        border-radius: 50%;
        cursor: pointer;
        transform: translate(-50%, -50%);
        transition: all 0.3s ease;
    box-shadow: var(--grc-hotspot-shadow);
}

.hotspot:hover {
        width: 65px;
        height: 65px;
    background: var(--grc-hotspot-gradient-hover);
    border-color: var(--grc-accent-hover);
    box-shadow: var(--grc-hotspot-shadow-hover);
}

.hotspot::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
    border: 2px solid var(--grc-accent);
        border-radius: 50%;
        animation: pulse-ring 2s infinite;
}

.hotspot:hover::after {
        animation: none;
}

.hotspot[data-point="grc"] {
    left: 50%;
    top: 50%;
}

.hotspot[data-point="ot"] {
    left: 50%;
    top: 20%;
}

.hotspot[data-point="iso"] {
    left: 50%;
    top: 80%;
}

.hotspot[data-point="tisax"] {
    left: 17.8%;
    top: 47%;
}

.hotspot[data-point="iatf"] {
    left: 82.5%;
    top: 47.6%;
}

@keyframes pulse-ring {
  0% {
        box-shadow: 0 0 0 0 var(--grc-pulse-start);
  }
  70% {
        box-shadow: 0 0 0 15px var(--grc-pulse-end);
  }
  100% {
        box-shadow: 0 0 0 0 var(--grc-pulse-end);
  }
}

.approach-definition {
        padding: 30px;
                background: var(--grc-definition-bg);
                border: 1px solid var(--grc-definition-border);
        border-radius: 12px;
        transition: all 0.3s ease;
}

.approach-definition h3 {
                color: var(--grc-definition-title);
        font-size: 1.5rem;
        margin-bottom: 15px;
        font-weight: 600;
}

.approach-definition p {
                color: var(--color-text-primary);
        line-height: 1.8;
}



.approach-note {
    margin-top: 15px;
    color: #94a3b8;
    font-size: 0.95rem;
}
/* =========================================================
   19. PRIVACY POLICY SECTION
========================================================= */

#privacy-policy {
    max-width: 900px;
    margin: 0 auto;
    color: var(--privacy-text);
    line-height: 1.7;
    /* Spójne z .article-page */
}

#privacy-policy h1 {
    font-size: 2.2rem;
    color: var(--privacy-heading);
    margin-bottom: var(--space-8);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

#privacy-policy h2 {
    margin-top: var(--space-9);
    margin-bottom: var(--space-4);
    color: var(--privacy-subheading);
    font-size: 1.4rem;
    text-align: left;
    font-weight: 600;
    border-left: 3px solid var(--color-accent);
    padding-left: var(--space-5);
}

#privacy-policy p {
    color: var(--privacy-text);  /* Zmienione z #ffffff – za jasny */
    margin-bottom: 20px;  /* Dodane dla spójności */
    margin-top: 0;
}

#privacy-policy ul {
    list-style-position: outside;
    margin-left: 20px;
    margin-bottom: 20px;  /* Dodane dla spójności */
    color: var(--privacy-text);  /* Spójne z paragrafami */
}

#privacy-policy ul li {
    margin-bottom: 8px;  /* Odstęp między elementami listy */
    color: var(--privacy-text);
}

#privacy-policy a {
    color: var(--privacy-link);  /* Linki w akcentowym kolorze */
    text-decoration: none;
    transition: 0.3s;
}

#privacy-policy a:hover {
    color: var(--privacy-link-hover);
    text-decoration: underline;
}


/* =========================================================
   20. GOOGLE ANALYTICS
========================================================= */


.looker-wrapper{
        width: 100%;
        max-width: 900px;
        margin: auto;
}

.looker-header{
        text-align: center;
        margin-bottom: 20px; /* odstęp między tekstem a iframe */
}

.looker-header h2 {
    color: var(--color-text-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-left: none;
    padding-left: 0;
    text-align: center;
    margin-bottom: var(--space-4);
}

.looker-header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--color-accent);
    margin: var(--space-3) auto 0;
    border-radius: 2px;
}

.looker-wrapper iframe{
        width: 100%;
        height: 600px;
        border: 0;
}

/* =========================================================
   21. FEEDBACK
========================================================= */

#feedback-widget{
    position:fixed;
    bottom:20px;
    right:20px;
    max-width:300px;
    background:var(--feedback-widget-bg);
    border:1px solid var(--feedback-widget-border);
    backdrop-filter:blur(var(--feedback-widget-blur));
    padding:15px 18px;
    border-radius:var(--radius-xl);
    box-shadow:var(--feedback-widget-shadow);
    color:var(--feedback-text);
    font-size:14px;
    z-index:9999;
    text-align:center;

}

#feedback-widget p{
    margin-bottom:10px;
    color:var(--feedback-text-muted);
}

.feedback-actions{
    display:flex;
    justify-content:center;
    gap:10px;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
}
.field-label {
    display: block;
    margin-bottom: var(--space-3);
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

.search-form #searchInput {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 16px;
    background: var(--color-bg-base);
    color: var(--color-white);
    max-width: none;
    margin: 0;
}

.search-results {
    margin-top: 40px;
}

/* Keep search cards visually aligned despite mixed title/description lengths. */
.search-results .article-card-link {
    display: flex;
    height: 100%;
}

.search-results .article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.search-results .article-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.2em;
}

.search-results .article-card p:first-of-type {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.8em;
}

.search-results .article-card p:last-of-type {
    margin-top: auto;
}

/* =========================================================
   TYPE SWITCH BUTTONS (Search page)
========================================================= */

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

.type-switch {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    margin-top: var(--space-4);
    flex-wrap: wrap;
}

.type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border: none;
    background: transparent;
    color: var(--lang-btn-text);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.type-btn img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.type-btn:hover img,
.type-btn:focus-visible img {
    transform: translateY(-1px) scale(1.04);
    filter: drop-shadow(0 0 10px var(--grc-accent)) drop-shadow(0 0 16px var(--grc-accent-hover));
}

.type-btn.active img {
    filter: drop-shadow(0 0 8px var(--grc-accent));
}

.type-btn.active span {
    color: var(--lang-btn-active-text);
    font-weight: 600;
}

.type-btn.active:hover img {
    transform: translateY(-1px) scale(1.04);
    filter: drop-shadow(0 0 10px var(--grc-accent)) drop-shadow(0 0 16px var(--grc-accent-hover));
}

.type-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--focus-ring-accent);
    border-radius: var(--radius-md);
}

.feedback-actions button{
    border:none;
    background:var(--feedback-button-bg);
    color:var(--feedback-button-text);
    border:1px solid var(--feedback-button-border);
    padding:8px 12px;
    border-radius:var(--radius-md);
    min-width:44px;
    cursor:pointer;
    font-size:16px;
    font-weight:600;

    box-shadow:var(--feedback-button-shadow);

}

.feedback-actions button:hover{
    background:var(--feedback-button-hover);
    color:var(--feedback-button-hover-text);
    border-color:var(--feedback-button-hover-border);
}

.feedback-actions button:focus-visible{
    outline:none;
    box-shadow:var(--feedback-button-focus-shadow);
}


/* =========================================================
   22. FOOTER
========================================================= */


footer {
    background-color: var(--footer-bg); /* Spójne z tłem formularza */
    color: var(--footer-text); /* Delikatny szary, nie czysty biały */
    padding: var(--space-12) var(--space-9);
    border-top: 1px solid var(--footer-border); /* Cienka linia oddzielająca */
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-links {
    margin: 15px 0;
}

.footer-links a {
    color: var(--footer-link); /* Twój kolor akcentowy blue */
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--footer-link-hover);
    text-decoration: underline;
}

.footer-disclaimer {
    margin-top: var(--space-9);
    font-size: 0.8rem;
    color: var(--footer-disclaimer-text); /* Jeszcze delikatniejszy szary dla tekstu prawnego */
    font-style: italic;
    border-top: 1px solid var(--footer-border);
    padding-top: var(--space-9);
}


/* =========================================================
    UTILITIES
========================================================= */

/* =========================================================
   23. SCROLL REVEAL ANIMATION
========================================================= */


.js .reveal{
    opacity:0;
    transform:translateY(40px);
    transition:0.8s ease;
}

.reveal.active,
.js .reveal:target{
    opacity:1;
    transform:translateY(0);
}


/* =========================================================
   24. PICTURE
========================================================= */

img{
    width:100%;
    height:auto;
}

/* =========================================================
   25. RESPONSIVE DESIGN
========================================================= */

@media (max-width: 900px){

.nav-container{
    grid-template-columns:auto 1fr auto;
    gap: var(--space-6);
}

.menu-icons{
    gap: var(--space-4);
}

.menu-icons .logo img {
    width: 36px;
    height: 36px;
}

.nav-menu ul{

    position:absolute;
    top:60px;
    right:0;

    flex-direction:column;

    width:260px;
    padding:var(--space-9);

    background:var(--color-bg-base);
    border-radius:var(--radius-lg);

    display:none;
}

.nav-menu ul.active{
    display:flex;
}

.hamburger{
    display:block;
}

.split-grid{
    grid-template-columns:1fr;
}

.form-row{
    flex-direction:column;
}

}

@media (max-width: 768px) {
.nav-menu a {
    font-size: 0.96rem;
}

/* Keep fixed feedback widget visible and unobtrusive on phones. */
#feedback-widget{
    left:12px;
    right:12px;
    bottom:12px;
    max-width:none;
    padding:var(--space-5) var(--space-6);
    font-size:13px;
}


@media (prefers-color-scheme: light) {
    :root {
        --color-bg-base:#f8fafc;
        --color-bg-surface:#ffffff;
        --color-bg-surface-hover:#f1f5f9;
        --color-bg-section:#eef2f7;
        --color-bg-section-alt:#e8edf5;

        --color-text-primary:#0f172a;
        --color-text-secondary:#1e293b;
        --color-text-muted:#334155;
        --color-text-subtle:#475569;
        --color-text-heading:#020617;
        --color-text-heading-soft:#0f172a;

        --color-border:#cbd5e1;
        --color-border-soft:#dbe4ef;

        --overlay-header:rgba(248,250,252,0.92);
        --overlay-header-border:rgba(15,23,42,0.1);
        --overlay-dark-strong:rgba(15,23,42,0.35);
        --overlay-dark-soft:rgba(15,23,42,0.2);
        --overlay-tag:rgba(248,250,252,0.82);
        --overlay-tag-border:rgba(15,23,42,0.1);
    }
}
.feedback-actions button{
    padding:var(--space-3) var(--space-4);
    font-size:15px;
}

.grc-hotspot-container {
    max-width: 100%;
}

.hotspot {
    width: 40px;
    height: 40px;
}

.hotspot:hover {
    width: 50px;
    height: 50px;
}
}

@media (max-width: 480px) {
.articles-grid {
    grid-template-columns: 1fr;
}

.contact-map iframe {
    height: 260px;
}
}

/* =========================================================
   MOTTO – Lighthouse Cyan Glow (shared animation)
========================================================= */

@keyframes motto-lighthouse {
    0%, 100% {
        color: var(--color-accent);
        text-shadow:
            0 0 14px rgba(56, 189, 248, 0.45),
            0 0 40px rgba(56, 189, 248, 0.2),
            0 1px 2px rgba(0, 0, 0, 0.5);
    }
    50% {
        color: rgba(56, 189, 248, 0.55);
        text-shadow:
            0 0 6px rgba(56, 189, 248, 0.15),
            0 0 16px rgba(56, 189, 248, 0.06),
            0 1px 2px rgba(0, 0, 0, 0.5);
    }
}

/* =========================================================
   MOTTO – Hero Signature (small, at bottom of hero)
========================================================= */

.hero-motto {
    position: absolute;
    z-index: 2;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px;

    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.05rem, 2.8vw, 1.45rem);
    letter-spacing: 0.01em;
    line-height: 1.4;
    text-align: center;
    margin: 0;

    color: var(--color-accent);
    text-shadow:
        0 0 14px rgba(56, 189, 248, 0.45),
        0 0 40px rgba(56, 189, 248, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.5);

    animation: motto-lighthouse 5s ease-in-out 1s infinite;
}

/* Small motto fades in after overlay is gone */
@keyframes motto-final-in {
    0%   { opacity: 0; transform: translateX(-50%) translateY(6px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 600px) {
    .hero-motto {
        width: 95%;
        bottom: 4%;
    }
    .hero-content {
        max-width: 100% !important;
        width: 100%;
        padding: 0 8px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero h2:not(.hero-motto) {
        font-size: 1.05rem;
        word-break: break-word;
        text-align: center;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
        box-sizing: border-box;
    }
}

/* =========================================================
   MOTTO – Footer (small, subtle)
========================================================= */

.footer-motto {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 0.94rem;
    color: var(--color-text-subtle);
    letter-spacing: 0.03em;
    margin-top: 12px;
    margin-bottom: 24px;
    opacity: 0.6;
}

/* =========================================================
   MOTTO – About page
========================================================= */
.about-motto {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.05rem, 2.8vw, 1.45rem);
    color: var(--color-accent);
    letter-spacing: 0.02em;
    margin-bottom: var(--space-12);
    text-align: center;
    text-shadow:
        0 0 12px rgba(56, 189, 248, 0.35),
        0 0 30px rgba(56, 189, 248, 0.16),
        0 1px 2px rgba(0, 0, 0, 0.45);
    animation: motto-lighthouse 5s ease-in-out 1s infinite;
}
/* ===== Certificates Grid 3xN ===== */
.cert-grid.cert-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
  margin-top: 2em;
}
@media (max-width: 900px) {
  .cert-grid.cert-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .cert-grid.cert-grid-3 { grid-template-columns: 1fr; }
}

/* ===== MINI CERTIFICATE GRID ===== */
.cert-grid.cert-grid-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2em;
  margin-top: 2em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.cert-tile-mini {
    background: var(--color-bg-surface);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(44,62,80,0.07);
    padding: var(--space-8) var(--space-6) var(--space-9) var(--space-6);
    text-align: center;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    outline: none;
    min-width: 0;
    max-width: 210px;
    margin: var(--space-5) auto;
    font-family: inherit;
    color: var(--color-text-primary);
    font-size: 1em;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.cert-tile-mini:focus, .cert-tile-mini:hover {
  box-shadow: 0 4px 16px #6fc3df33; transform: translateY(-2px) scale(1.04);
}
.cert-thumb {
  width: 90px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 0.5em;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 6px #b9e7f9;
}
.cert-meta-mini {
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    font-size: 1em;
    color: var(--color-text-secondary);
    align-items: center;
    font-family: inherit;
}
.cert-title {
    font-weight: 600;
    color: var(--color-text-heading);
    font-size: 1.08em;
    font-family: inherit;
    margin-bottom: 0.1em;
}
.cert-year, .cert-org {
    color: var(--color-accent);
    font-size: 0.97em;
    font-family: inherit;
    letter-spacing: 0.01em;
}
@media (max-width: 900px) {
  .cert-grid.cert-grid-mini { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .cert-grid.cert-grid-mini { grid-template-columns: 1fr; }
}


/* ================= CERTIFICATE MODAL ================= */
.cert-modal {
        position: fixed;
        inset: 0;
        width: 100%;
        max-width: 100vw;
        min-height: 100vh;
        height: 100dvh;
    background: rgba(15, 23, 42, var(--cert-modal-overlay-alpha));
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        z-index: 20000;
        transition: opacity 0.3s;
        overflow: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}
@media (max-width: 700px) {
    .cert-modal {
    background: rgba(15, 23, 42, var(--cert-modal-overlay-alpha-mobile));
        align-items: flex-start;
        padding-top: 6vw;
        padding-bottom: 6vw;
        min-height: 100dvh;
        height: auto;
        overflow-y: auto;
    }
}

.cert-modal-content {
        background: var(--color-bg-surface, #1e293b);
        border-radius: 18px;
        box-shadow: 0 8px 40px rgba(0,0,0,0.45);
        padding: 32px 32px 24px 32px;
        width: auto;
        max-width: 800px;
        max-height: 98vh;
        align-items: center;
        justify-content: center;
        position: relative;
    font-family: inherit;
    color: var(--color-text-primary);
    background: var(--color-bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 32px #38bdf855;
    padding: var(--space-12) var(--space-10);
    max-width: 95vw;
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.cert-modal-content img {
    width: auto;
    height: auto;
    max-width: min(78vw, 960px);
    max-height: min(62vh, 700px);
    object-fit: contain;
    padding: 18px 14px 12px 14px;
    margin-bottom: 14px;
    box-shadow: 0 2px 18px rgba(0,0,0,0.18);
    transform-origin: center center;
    transition: transform 0.15s ease;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
    cursor: zoom-in;
}

.cert-modal-content img.is-dragging {
    transition: none;
    cursor: grabbing;
}

.cert-modal-close {
        position: absolute;
        top: 18px;
        right: 24px;
        font-size: 2.2rem;
        color: var(--color-accent, #38bdf8);
        cursor: pointer;
        z-index: 2;
        background: none;
        border: none;
        line-height: 1;
        transition: color 0.2s;
}
.cert-modal-close:hover {
        color: var(--color-accent-hover, #22d3ee);
}

.cert-modal #cert-modal-meta {
        color: var(--color-text-primary, #e2e8f0);
        text-align: center;
    font-size: 1rem;
    line-height: 1.45;
        margin-top: 0;
    max-width: 86ch;
}

.cert-modal-toolbar {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
    padding-right: 44px;
}

.cert-zoom-reset {
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: rgba(15, 23, 42, 0.55);
    color: var(--color-text-primary);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.84rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cert-zoom-reset:hover,
.cert-zoom-reset:focus-visible {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.8);
    outline: none;
}

.cert-modal-zoom-hint {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 12px;
}

@media (max-width: 700px) {
    .cert-modal-content {
        padding: 10px 2vw 10px 2vw;
        max-width: 98vw;
    }
    .cert-modal-content img {
        width: auto;
        height: auto;
        max-width: 98vw;
        max-height: 72vh;
        object-fit: contain;
    }
    .cert-modal-toolbar {
        justify-content: center;
        padding-right: 0;
    }
    .cert-zoom-reset {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    .cert-modal-zoom-hint {
        font-size: 0.78rem;
    }
    .cert-modal-close {
        top: 8px;
        right: 12px;
        font-size: 1.6rem;
    }
}
/* Poprawa czytelności napisów na osi czasu */
.timeline-label {
    writing-mode: horizontal-tb !important;
    word-break: normal !important;
    white-space: normal !important;
    width: auto;
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    display: block;
    margin: 0 auto 22px auto;
    border-radius: 14px;
    box-shadow: 0 2px 18px rgba(0,0,0,0.18);
    object-fit: contain;
    background: #fff;
    padding: 8px;
    border-radius: 22px;
    font-size: 0.95em;
    line-height: 1.4;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 16px rgba(0,0,0,0.28);
    margin-bottom: 22px;
    margin-left: 8px;
}