/* === CSS RESET & NORMALIZE === */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}
html {
    height: 100%;
    box-sizing: border-box;
    font-size: 16px;
    scroll-behavior: smooth;
}
*, *:before, *:after { box-sizing: inherit; }
body {
    min-height: 100vh;
    background: #F7F9FB;
    color: #161924;
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.7;
    font-size: 1rem;
}
a {
    color: #003366;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover, a:focus {
    color: #F8C200;
    outline: none;
}
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
:focus { outline: 2px solid #F8C200; outline-offset: 2px; }

/* === VARIABLES (with fallbacks) === */
:root {
    --primary: #003366;
    --secondary: #6593A6;
    --accent: #F8C200;
    --white: #fff;
    --text: #161924;
    --muted: #7b8b9e;
    --card-bg: #fff;
    --danger: #E53935;
    --success: #43A047;
    --shadow: 0 4px 32px 0 rgba(34,54,124,0.07), 0 1.5px 3px 0 rgba(34,54,124,0.04);
    --radius: 18px;
    --font-display: 'Montserrat', Arial, sans-serif;
    --font-body: 'Roboto', Arial, sans-serif;
    --cta-grad: linear-gradient(90deg, #F8C200 0%, #FE5F55 100%);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display), sans-serif;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 20px; }
h2 { font-size: 2rem;   margin-bottom: 18px; }
h3 { font-size: 1.3rem; margin-bottom: 14px; }
h4 { font-size: 1.1rem; }
p, li, ul, ol { font-size: 1rem; color: var(--text); }
strong, b { font-weight: 700; }
.cta, .cta-primary { font-family: var(--font-display), sans-serif; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.05rem; }
}

/* === LAYOUT STRUCTURE === */
.container {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
}
.content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .section {
        margin-bottom: 36px;
        padding: 26px 6px;
    }
}

/* === HEADER & NAVIGATION === */
header {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(101,147,166,0.06);
    position: relative;
    z-index: 50;
}
header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 70px;
}
.logo, header img[alt="FlickerCRM"] { height: 40px; max-width:170px; }
nav {
    display: flex;
    gap: 28px;
    align-items: center;
}
nav a {
    font-family: var(--font-display), sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    letter-spacing: 0.01em;
    padding: 6px 6px;
    transition: color 0.18s;
}
nav a.cta-primary {
    background: var(--accent);
    color: var(--primary);
    border-radius: 32px;
    font-weight: 900;
    padding: 8px 24px;
    font-size: 1.1rem;
    text-transform: uppercase;
    border: none;
    box-shadow: 0 2px 8px rgba(248,194,0,0.10);
    transition: background 0.14s, box-shadow 0.18s, color 0.18s;
}
nav a.cta-primary:hover, nav a.cta-primary:focus {
    background: var(--primary);
    color: var(--accent);
    box-shadow: 0 4px 16px rgba(0,51,102,0.18);
}
nav a:hover, nav a:focus {
    color: var(--accent);
}

/* === MOBILE NAVIGATION === */
.mobile-menu-toggle {
    display: none;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 101;
    border: none;
    box-shadow: 0 3px 16px 0 rgba(101,147,166,.11);
    transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
    background: var(--primary);
    color: var(--accent);
}
.mobile-menu {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,37,95,0.98);
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(.68,-0.55,.27,1.55);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 64px;
}
.mobile-menu.open {
    transform: translateX(0%);
}
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 26px;
    font-size: 2.1rem;
    color: var(--accent);
    background: none;
    border: none;
    z-index: 1110;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
    background: var(--accent);
    color: var(--primary);
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
    padding: 36px 30px 0 30px;
}
.mobile-nav a {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    padding: 18px 0 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: color 0.15s;
}
.mobile-nav a.cta-primary {
    background: var(--accent);
    color: var(--primary);
    border-radius: 32px;
    padding: 10px 30px;
    margin: 16px 0 0 0;
    border: none;
    font-size: 1.2rem;
    align-self: flex-start;
}
.mobile-nav a.cta-primary:hover, .mobile-nav a.cta-primary:focus {
    background: var(--primary);
    color: var(--accent);
}

@media (max-width: 1020px) {
    nav { display: none; }
    .mobile-menu-toggle {
        display: flex;
    }
}
@media (min-width: 1021px) {
    .mobile-menu { display: none !important; }
    .mobile-menu-toggle { display: none !important; }
}

/* === HERO === */
.hero {
    background: linear-gradient(120deg, #F8C200 0%, #FEE655 100%);
    padding: 52px 0 48px 0;
    margin-bottom: 60px;
}
.hero .container {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 32px;
}
.hero h1 {
    color: var(--primary);
    font-weight: 900;
    font-size: 2.7rem;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}
.hero p {
    font-size: 1.22rem;
    color: var(--primary);
    margin-bottom: 20px;
    max-width: 600px;
}
.hero .cta-primary {
    box-shadow: 0 2px 18px rgba(0,51,102,0.18);
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .03em;
}

@media (max-width: 900px) {
    .hero .container { flex-direction: column; gap: 20px; }
    .hero h1 { font-size: 2.1rem; }
    .hero p { font-size: 1.06rem; }
    .hero { padding: 30px 0 24px 0; }
}

/* === CTA SECTION === */
.cta {
    background: linear-gradient(90deg, #003366 0%, #6593A6 100%);
    color: var(--accent);
    margin-bottom: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.cta .content-wrapper {
    align-items: center;
    text-align: center;
}
.cta h2 {
    color: var(--accent);
    font-weight: 900;
}
.cta p { color: var(--white); }
.cta .cta-primary {
    margin-top: 14px;
    font-size: 1.15rem;
    background: var(--accent);
    color: var(--primary);
}
.cta .cta-primary:hover, .cta .cta-primary:focus {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 24px 0 rgba(248,194,0,0.18);
}

/* === FLEXBOX PATTERNS === */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    margin-bottom: 20px;
    position: relative;
    flex: 1 1 270px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 22px;
    min-width: 260px;
    transition: box-shadow .2s, transform .13s;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.card:hover {
    box-shadow: 0 10px 32px 0 rgba(0,51,102,0.14), 0 2px 4px rgba(248,194,0,0.08);
    transform: translateY(-2px) scale(1.03);
}
.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.text-image-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 22px;
    box-shadow: 0 3px 20px 0 rgba(101,147,166,0.10);
    margin-bottom: 20px;
    max-width: 370px;
    transition: box-shadow .22s, transform .14s;
}
.testimonial-card:hover {
    box-shadow: 0 12px 32px rgba(101,147,166,0.22);
    transform: scale(1.03);
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 0;
}

/* === RESPONSIVE FLEX === */
@media (max-width: 900px) {
    .card-container, .content-grid {
        gap: 14px;
    }
    .card {
        min-width: 180px;
        padding: 16px 8px;
    }
    .testimonial-card { max-width: 100%; }
}
@media (max-width: 768px) {
    .content-grid, .card-container {
        flex-direction: column;
        gap: 18px;
        align-items: stretch;
    }
    .testimonial-card { margin-bottom: 18px; }
    .text-image-section { flex-direction: column; gap: 18px; }
}

/* === FEATURE GRID (INDEX PAGE) === */
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 12px;
}
.feature-grid > div {
    flex: 1 1 245px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 30px 16px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow .16s, transform .11s;
    gap: 12px;
}
.feature-grid > div:hover {
    box-shadow: 0 9px 28px 0 rgba(248,194,0,0.18);
    transform: translateY(-2px) scale(1.04);
}
.feature-grid img { width: 42px; height: 42px; margin-bottom: 6px; }

@media (max-width: 768px) {
    .feature-grid {
        flex-direction: column;
    }
}

/* === TESTIMONIALS === */
.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: stretch;
    margin-top: 10px;
}
.testimonial-card p {
    color: #23292f;
    font-size: 1.06rem;
    line-height: 1.6;
    font-weight: 500;
}
.testimonial-card span {
    color: var(--muted);
    font-size: 0.97rem;
    font-style: italic;
    font-weight: 600;
}
.client-logos {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    align-items: center;
    justify-content: center;
}
@media (max-width: 768px) {
    .testimonial-slider { gap: 10px; }
    .client-logos { gap: 16px; }
}

/* === PRICING TABLE (CENNIK) === */
.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: var(--shadow);
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 28px;
    overflow: hidden;
}
.pricing-table th, .pricing-table td {
    padding: 18px 12px;
    text-align: left;
}
.pricing-table th {
    background: var(--secondary);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: .01em;
}
.pricing-table tr:nth-child(even){ background: #f4f8fb; }
.pricing-table tr:nth-child(odd) { background: #fff; }
.pricing-table td {
    border-bottom: 1px solid #e7ebf0;
    font-size: 1rem;
}
.pricing-table tr:last-child td { border-bottom: none; }

@media (max-width:700px) {
    .pricing-table, .pricing-table thead, .pricing-table tbody, .pricing-table tr, .pricing-table th, .pricing-table td {
        display: block;
    }
    .pricing-table tr { margin-bottom: 18px; }
    .pricing-table th { background: var(--secondary); color: var(--white); }
    .pricing-table td { border-bottom: none; padding: 15px 10px; }
}

/* === FOOTER === */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 30px 0 18px 0;
}
footer .container {
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 8px;
}
footer nav a {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: .01em;
    font-size: 1rem;
    transition: color .18s;
}
footer nav a:hover,footer nav a:focus { color: var(--white); }
.footer-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 0.99rem;
    color: #f7f9fb;
}
.footer-info img {
    height: 28px;
    width: 28px;
}

/* === SECTION SPECIFIC === */
.industry-list, .feature-overview-list, .package-features, .knowledge-base-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 18px 0;
    padding: 0;
}
.industry-list li, .feature-overview-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 1.5px 7px rgba(101,147,166,0.08);
    padding: 15px 12px;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}
.industry-list img, .feature-overview-list img {
    width: 38px; height: 38px;
}
.industry-case-studies {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 13px;
    align-items: stretch;
}
.industry-case-studies > div {
    flex: 1 1 230px;
    background: var(--white);
    border-radius: 13px;
    padding: 18px 13px;
    box-shadow: 0 2px 10px rgba(101,147,166,0.09);
}
.faq-list {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
.faq-list > div {
    background: var(--white);
    padding: 18px 14px;
    border-radius: 14px;
    box-shadow: 0 2px 9px rgba(101,147,166,0.07);
    flex: 1 1 200px;
}
.company-info, .location-map {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}
.company-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.01rem;
    color: var(--primary);
}
.location-map img { border-radius: 9px; box-shadow: 0 1.5px 7px rgba(101,147,166,0.11); }
.knowledge-base-links a {
    color: var(--primary);
    font-weight: bold;
    transition: color .15s;
}
.knowledge-base-links a:hover,.knowledge-base-links a:focus {
    color: var(--accent);
}

/* === BUTTONS === */
.cta-primary, .cta-secondary, .cookie-btn {
    font-family: var(--font-display),sans-serif;
    font-weight: 900;
    font-size: 1.09rem;
    padding: 11px 32px;
    border-radius: 32px;
    border: none;
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 2px 12px rgba(248,194,0,0.10);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background .18s, color .13s, box-shadow .18s, transform .12s;
    margin-right: 10px;
}
.cta-primary:hover, .cookie-btn:hover, .cta-primary:focus, .cookie-btn:focus {
    background: var(--primary);
    color: var(--accent);
    box-shadow: 0 6px 20px rgba(0,51,102,0.18);
    transform: scale(1.04);
}
.cta-secondary {
    background: var(--secondary);
    color: var(--white);
}
.cta-secondary:hover,.cta-secondary:focus {
    background: var(--primary);
    color: var(--accent);
}

/* === FORMS (if future contact forms added) === */
input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #cad7e8;
    padding: 10px 12px;
    background: #f4f8fb;
    color: #202a33;
    margin-bottom: 12px;
    transition: border-color .15s, box-shadow .13s;
}
input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--accent);
    border-color: var(--accent);
}
label { font-weight: 700; font-size: 1rem; }

/* === COOKIE CONSENT BANNER & MODAL === */
.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 1500;
    background: #002861;
    color: var(--white);
    border-radius: 19px;
    box-shadow: 0 3px 20px 2px rgba(248,194,0,0.17);
    padding: 30px 24px 22px 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    font-size: 1rem;
    opacity: 1;
    transform: translateY(0); 
    transition: opacity .25s, transform .4s cubic-bezier(.68,-0.6,0.32,1.6);
}
.cookie-banner.hide {
    opacity: 0;
    pointer-events: none;
    transform: translateY(50px);
}
.cookie-banner .cookie-desc {
    flex: 1 1 350px;
    color: var(--white);
    font-weight: 500;
    font-size: 1.09rem;
}
.cookie-banner .cookie-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.cookie-btn {
    padding: 10px 22px;
    border-radius: 28px;
    background: var(--accent);
    color: var(--primary);
    font-weight: 800;
    font-family: var(--font-display);
    border: none;
    font-size: 1rem;
    margin-right: 4px;
}
.cookie-btn.danger {
    background: var(--danger);
    color: #fff;
}
.cookie-btn.settings {
    background: var(--secondary);
    color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 2px 8px 0 rgba(248,194,0,0.13);
}
.cookie-btn.danger:hover,.cookie-btn.danger:focus {
    background: var(--danger);
    color: #fff;
    opacity: .89;
}
.cookie-btn.settings:hover,.cookie-btn.settings:focus {
    background: var(--primary);
    color: var(--accent);
}
@media (max-width: 760px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 19px 14px;
        gap: 18px;
    }
}

.cookie-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2000;
    background: rgba(0,0,0,.45);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    pointer-events: auto;
    transition: opacity .25s;
}
.cookie-modal.hide {
    opacity: 0;
    pointer-events: none;
}
.cookie-modal-content {
    background: var(--white);
    color: var(--primary);
    border-radius: 18px;
    box-shadow: 0 4px 36px 0 rgba(0,39,71,0.24);
    padding: 32px 28px 22px 28px;
    max-width: 420px;
    width: 92vw;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}
.cookie-modal-content h2 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 900;
}
.cookie-modal-content label {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.cookie-category {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.cookie-category input[type=checkbox],.cookie-category input[type=radio] {
    accent-color: var(--accent);
    width: 21px; height: 21px;
}
.cookie-modal-close {
    position: absolute;
    top: 19px; right: 17px;
    font-size: 1.6rem;
    color: var(--muted);
    border: none;
    background: none;
    cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
    color: var(--primary);
    background: var(--accent);
    border-radius: 50%;
}
.cookie-modal-actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    justify-content: flex-end;
}
@media (max-width: 530px) {
    .cookie-modal-content {
        padding: 15px 6px 15px 8px;
    }
}

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* === ANIMATIONS & MICRO-INTERACTIONS === */
.cta-primary, .cta-secondary, .cookie-btn, .card, .feature-grid > div, .testimonial-card {
    transition: box-shadow .2s, background .2s, color .16s, transform .13s;
}
@media (hover: hover) {
    .card:hover, .feature-grid > div:hover, .testimonial-card:hover {
        box-shadow: 0 10px 32px rgba(0,51,102,0.17), 0 4px 8px rgba(248,194,0,0.12);
        transform: translateY(-3px) scale(1.03);
    }
}

/* === VISUAL HIERARCHY === */
section:not(.hero):not(.cta) h2 {
    color: var(--accent);
    font-weight: 800;
}
hr {
    border: none;
    border-bottom: 1.5px dashed #e5eaf4;
    margin: 38px 0 34px 0;
}

/* === SPACING RULES === */
section, .section {
    margin-bottom: 60px;
    padding: 40px 20px;
}
.card, .feature-grid > div, .testimonial-card, .faq-list > div {
    margin-bottom: 20px;
}
.card-container, .content-grid, .industry-case-studies, .faq-list, .feature-grid, .testimonial-slider {
    gap: 20px;
}
.text-image-section, .testimonial-card {
    gap: 20px;
}
.feature-item {
    gap: 15px;
}

/* Prevent accidental overlap */
* { min-width: 0; min-height: 0; }

/* End of CSS */
