/* ============================================================
   polskastrefainwestycji.pl – Arkusz stylów
   Design spójny z ulga-psi.pl (InvestPoland Sp. z o.o.)
   ============================================================ */

/* ---------- ZMIENNE ---------- */
:root {
    --navy-dark:        #23272e;
    --navy-hover:       #3a3f48;
    --gray-light:       #f5f5f5;
    --white:            #ffffff;
    --accent-red:       #df3f3f;
    --accent-red-hover: #c23535;
    --text-main:        #2c2c2c;
    --text-secondary:   #666666;
    --border-light:     #e0e0e0;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; scroll-behavior: smooth; }
body  {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-main);
    background: var(--gray-light);
    overflow-x: hidden;
}
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- CONTAINER ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--border-light);
    transition: box-shadow .3s ease;
}
header.scrolled { box-shadow: 0 2px 10px rgba(0,0,0,.1); }

.header-top {
    background: var(--white);
    padding: 10px 0;
    font-size: .875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid #f0f0f0;
}
.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-contacts {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.header-contacts a {
    color: var(--navy-dark);
    font-weight: 500;
    transition: color .2s;
}
.header-contacts a:hover { color: var(--accent-red); }
.header-contacts .icon { margin-right: 4px; font-style: normal; }

.header-badge {
    font-weight: 600;
    font-size: .875rem;
    color: var(--navy-dark);
    white-space: nowrap;
}

nav { padding: 15px 0; background: var(--white); }
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-text-main {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-dark);
    line-height: 1.2;
}
.logo-text-sub {
    font-size: .75rem;
    color: var(--text-secondary);
    display: block;
}

.nav-cta {
    display: inline-block;
    background: var(--accent-red);
    color: var(--white) !important;
    padding: .5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: .9375rem;
    transition: background .3s, transform .2s;
    white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-red-hover); transform: translateY(-1px); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy-dark);
    border-radius: 2px;
    transition: all .3s;
}

/* Mobile nav – hidden by default on all screen sizes */
.nav-mobile { display: none; }
.nav-overlay { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background:
        linear-gradient(135deg, rgba(26,35,50,.90) 0%, rgba(44,57,71,.82) 55%, rgba(26,35,50,.90) 100%),
        url('../images/hero-bg.jpg') center/cover no-repeat;
    background-color: var(--navy-dark);
    color: var(--white);
    padding: 90px 0 80px;
    text-align: center;
    border-bottom: 3px solid var(--navy-dark);
}
.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: var(--white);
}
.hero h1 em {
    color: #ff8a8a;
    font-style: normal;
}
.hero p.hero-lead {
    font-size: 1.15rem;
    color: #f0f0f0;
    max-width: 780px;
    margin: 0 auto 2rem;
    line-height: 1.65;
}
.hero-pills {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.hero-pill {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.3);
    color: var(--white);
    padding: .45rem 1.1rem;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 500;
}
.hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-primary-hero {
    display: inline-block;
    background: var(--accent-red);
    color: var(--white);
    padding: .85rem 2rem;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    transition: background .3s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(223,63,63,.4);
}
.btn-primary-hero:hover {
    background: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(223,63,63,.5);
}
.btn-outline-hero {
    display: inline-block;
    background: transparent;
    color: var(--white);
    padding: .85rem 2rem;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,.7);
    transition: background .3s, border-color .3s;
}
.btn-outline-hero:hover {
    background: rgba(255,255,255,.1);
    border-color: var(--white);
}

/* STATS BAR */
.stats-bar {
    background: var(--navy-dark);
    padding: 20px 0;
    border-bottom: 3px solid var(--accent-red);
}
.stats-bar .container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--white);
    display: block;
}
.stat-label {
    font-size: .82rem;
    color: #adb5bd;
    margin-top: 2px;
}

/* ============================================================
   SEKCJE OGÓLNE
   ============================================================ */
.section { padding: 70px 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--navy-dark); color: var(--white); }

h2.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 1rem;
    line-height: 1.25;
}
.section-dark h2.section-title { color: var(--white); }

p.section-lead {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 780px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}
.section-dark p.section-lead { color: #adb5bd; }
.centered { text-align: center; }
.centered .section-lead { margin-left: auto; margin-right: auto; }

/* ============================================================
   CO TO PSI (dwie kolumny)
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 20px;
}
.about-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: .8rem;
    margin-top: 1.8rem;
}
.about-content h3:first-child { margin-top: 0; }
.about-content p {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 1rem;
}
.about-highlight {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    border-left: 4px solid var(--accent-red);
}
.about-highlight h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.about-fact {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}
.about-fact:last-child { margin-bottom: 0; }
.fact-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-red);
    color: var(--white);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.fact-text strong {
    display: block;
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 3px;
    font-size: .95rem;
}
.fact-text span {
    font-size: .875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================================
   KTO MOŻE SKORZYSTAĆ – karty 2×2
   ============================================================ */
.eligible-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.eligible-card {
    background: var(--white);
    border-radius: 10px;
    padding: 28px 26px;
    box-shadow: 0 3px 12px rgba(0,0,0,.07);
    border-top: 3px solid var(--navy-dark);
    transition: transform .25s, box-shadow .25s;
}
.eligible-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(35,39,46,.14);
}
.eligible-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}
.eligible-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 10px;
}
.eligible-card p {
    font-size: .925rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 14px;
}
.eligible-card ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    font-size: .9rem;
    color: var(--text-main);
    line-height: 1.5;
}
.eligible-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-weight: 700;
}

/* ============================================================
   TABELA INTENSYWNOŚCI
   ============================================================ */
.intensity-table-wrap {
    overflow-x: auto;
    margin-top: 36px;
    border-radius: 10px;
    box-shadow: 0 3px 14px rgba(0,0,0,.08);
}
table.intensity-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: .935rem;
}
table.intensity-table thead th {
    background: var(--navy-dark);
    color: var(--white);
    padding: 14px 18px;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}
table.intensity-table thead th:first-child { border-radius: 10px 0 0 0; }
table.intensity-table thead th:last-child  { border-radius: 0 10px 0 0; }
table.intensity-table tbody tr:nth-child(even) { background: #f9f9f9; }
table.intensity-table tbody td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-main);
    line-height: 1.5;
}
table.intensity-table tbody tr:last-child td { border-bottom: none; }
table.intensity-table tbody tr:hover { background: #f0f4ff; transition: background .15s; }
.intensity-badge {
    display: inline-block;
    padding: .2rem .7rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .85rem;
    background: #e8f5e9;
    color: #2e7d32;
}
.intensity-badge.high   { background: #fff3e0; color: #e65100; }
.intensity-badge.medium { background: #e3f2fd; color: #1565c0; }
.intensity-badge.low    { background: #e8f5e9; color: #2e7d32; }
.intensity-badge.none   { background: #f0f0f0; color: #999999; }

.table-note {
    font-size: .82rem;
    color: var(--text-secondary);
    margin-top: 12px;
    font-style: italic;
}

/* ============================================================
   KRYTERIA (dwie kolumny)
   ============================================================ */
.criteria-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 40px;
}
.criteria-box {
    background: var(--white);
    border-radius: 10px;
    padding: 32px 28px;
    box-shadow: 0 3px 12px rgba(0,0,0,.07);
}
.criteria-box.qualitative { border-top: 3px solid var(--accent-red); }
.criteria-box.quantitative { border-top: 3px solid var(--navy-dark); }
.criteria-box h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 8px;
}
.criteria-box .criteria-sub {
    font-size: .875rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.55;
}
.criteria-list li {
    position: relative;
    padding: 9px 0 9px 28px;
    border-bottom: 1px solid #f2f2f2;
    font-size: .925rem;
    color: var(--text-main);
    line-height: 1.5;
}
.criteria-list li:last-child { border-bottom: none; }
.criteria-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-weight: 700;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { margin-top: 36px; }
.faq-item {
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    overflow: hidden;
    border-left: 3px solid transparent;
    transition: border-color .2s;
}
.faq-item.open { border-left-color: var(--accent-red); }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy-dark);
    text-align: left;
    gap: 12px;
    transition: background .2s;
}
.faq-question:hover { background: var(--gray-light); }
.faq-arrow {
    font-size: 1.1rem;
    font-weight: 400;
    transition: transform .3s;
    color: var(--accent-red);
    flex-shrink: 0;
    line-height: 1;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    padding: 0 22px;
}
.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 4px 22px 20px;
}
.faq-answer p {
    font-size: .95rem;
    color: var(--text-secondary);
    line-height: 1.75;
}
.faq-answer p + p { margin-top: 10px; }
.faq-answer ul { padding-left: 18px; list-style: disc; margin-top: 8px; }
.faq-answer ul li { color: var(--text-secondary); font-size: .925rem; margin-bottom: 6px; }

/* ============================================================
   CTA – doradca
   ============================================================ */
.cta-advisor {
    background: linear-gradient(135deg, var(--navy-dark) 0%, #2e3540 100%);
    border-radius: 14px;
    padding: 60px 40px;
    text-align: center;
    margin: 60px 0 0;
    position: relative;
    overflow: hidden;
}
.cta-advisor::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(223,63,63,.12);
    pointer-events: none;
}
.cta-advisor h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: .9rem;
}
.cta-advisor p {
    font-size: 1.05rem;
    color: #bdc3cb;
    max-width: 680px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}
.cta-advisor-partner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    padding: 12px 22px;
    margin-bottom: 24px;
    font-size: .875rem;
    color: #adb5bd;
}
.cta-advisor-partner strong {
    color: var(--white);
    font-size: 1rem;
}
.btn-cta-advisor {
    display: inline-block;
    background: var(--accent-red);
    color: var(--white);
    padding: .95rem 2.5rem;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 8px 8px;
    transition: background .3s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(223,63,63,.4);
}
.btn-cta-advisor:hover {
    background: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(223,63,63,.5);
}
.btn-cta-outline {
    display: inline-block;
    background: transparent;
    color: var(--white);
    padding: .95rem 2.5rem;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    border: 2px solid rgba(255,255,255,.5);
    margin: 0 8px 8px;
    transition: background .3s, border-color .3s;
}
.btn-cta-outline:hover {
    background: rgba(255,255,255,.08);
    border-color: var(--white);
}
.cta-disclaimer {
    font-size: .8rem;
    color: #6c757d;
    margin-top: 18px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--navy-dark);
    color: #b0b8c1;
    padding: 50px 0 0;
    margin-top: 70px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo-text-main { color: var(--white); }
.footer-brand .logo-text-sub  { color: #6c757d; }
.footer-brand p {
    font-size: .875rem;
    line-height: 1.7;
    color: #7e8a96;
    margin-top: 14px;
}
.footer-section h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.footer-section ul li {
    margin-bottom: 10px;
}
.footer-section ul li a {
    font-size: .875rem;
    color: #7e8a96;
    transition: color .2s;
}
.footer-section ul li a:hover { color: var(--white); }
.footer-section ul li span {
    font-size: .875rem;
    color: #7e8a96;
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-copyright {
    font-size: .8rem;
    color: #5a6673;
    line-height: 1.6;
}
.footer-copyright a { color: #7e8a96; text-decoration: underline; }
.footer-legal {
    font-size: .78rem;
    color: #4a5460;
    max-width: 550px;
    line-height: 1.6;
    text-align: right;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    color: var(--white);
    padding: 18px 20px;
    box-shadow: 0 -3px 12px rgba(0,0,0,.35);
    z-index: 9999;
    display: none;
    animation: slideUp .4s ease;
}
.cookie-banner.show { display: block; }
@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 260px; }
.cookie-text p { font-size: .875rem; color: #b0b8c1; line-height: 1.55; }
.cookie-text a { color: #fff; text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-cookie {
    padding: .55rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: .875rem;
    font-family: 'Montserrat', 'Inter', sans-serif;
    transition: all .2s;
}
.btn-cookie-accept { background: var(--accent-red); color: var(--white); }
.btn-cookie-accept:hover { background: var(--accent-red-hover); }
.btn-cookie-reject { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.4); }
.btn-cookie-reject:hover { border-color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-grid  { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-cta   { display: none; }
    .header-contacts { gap: 10px; font-size: .82rem; }

    .hero { padding: 60px 0 50px; }
    .hero h1 { font-size: 1.9rem; }
    .hero p.hero-lead { font-size: 1rem; }

    .stats-bar .container { gap: 24px; }
    .stat-number { font-size: 1.5rem; }

    .section { padding: 50px 0; }
    h2.section-title { font-size: 1.65rem; }

    .eligible-grid  { grid-template-columns: 1fr; }
    .criteria-grid  { grid-template-columns: 1fr; }

    .cta-advisor { padding: 40px 20px; }
    .cta-advisor h2 { font-size: 1.5rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; }
    .footer-legal { text-align: left; }

    /* Mobile menu */
    .nav-mobile {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 80%; max-width: 320px;
        height: 100vh;
        background: var(--white);
        box-shadow: 2px 0 12px rgba(0,0,0,.2);
        padding: 60px 0 0;
        overflow-y: auto;
        z-index: 999;
        animation: slideInLeft .3s ease;
        flex-direction: column;
    }
    @keyframes slideInLeft {
        from { transform: translateX(-100%); }
        to   { transform: translateX(0); }
    }
    .nav-mobile.open { display: flex; }
    .nav-mobile a {
        display: block;
        padding: 14px 24px;
        color: var(--navy-dark);
        font-weight: 500;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1rem;
    }
    .nav-mobile a.mobile-cta {
        background: var(--accent-red);
        color: var(--white);
        text-align: center;
        margin: 16px 20px;
        border-radius: 8px;
        border: none;
        font-weight: 700;
    }
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 998;
    }
    .nav-overlay.open { display: block; }
    .close-nav {
        position: absolute;
        top: 14px; right: 14px;
        background: none;
        border: none;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--navy-dark);
        line-height: 1;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .hero h1  { font-size: 1.6rem; }
    table.intensity-table thead th,
    table.intensity-table tbody td { padding: 10px 12px; font-size: .83rem; }
}

/* ---------- UTILS ---------- */
.mt-0  { margin-top: 0 !important; }
.mb-32 { margin-bottom: 32px; }
.text-red { color: var(--accent-red); }
