/* ================================================================
   FINLEAN — Magdalena Michnar · Zewnętrzny Dyrektor Finansowy
   Pixel-perfect stylesheet · Poppins only · Design System v3
   ================================================================ */


/* ---------------------------------------------------------------
   0. CSS VARIABLES (Design Tokens)
   --------------------------------------------------------------- */

:root {
    /* Palette — from design system */
    --gold: #B28F5A;
    --gold-hover: #9a7a4a;
    --gold-10: rgba(178, 143, 90, 0.10);
    --gold-15: rgba(178, 143, 90, 0.15);
    --gold-30: rgba(178, 143, 90, 0.30);
    --gold-dark: #8a6d3b;
    --graphite: #1E1E1E;
    --gray: #8A8580;
    --beige: #F3EFE9;
    --bg-light: #FFFFFF;
    /* Glassmorphism tokens */
    --glass-white: rgba(255, 255, 255, 0.55);
    --glass-white-strong: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-border-hover: rgba(178, 143, 90, 0.25);
    --glass-blur: 16px;
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.10);
    --white: #ffffff;
    /* Semantic */
    --green: #2e7d32;
    --green-bg: #edf7ee;
    --red: #c62828;
    --red-bg: #fce8e8;
    --red-icon-bg: rgba(198, 40, 40, 0.08);
    /* Typography — Poppins ONLY */
    --ff: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* Layout */
    --max-w: 1140px;
    --gutter: 24px;
    --section-py: 100px;
    --radius: 12px;
    --radius-sm: 6px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.18s ease;
}


/* ---------------------------------------------------------------
   1. RESET & BASE
   --------------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ff);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--gray);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--ff);
    color: var(--graphite);
    line-height: 1.15;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter);
}


/* ---------------------------------------------------------------
   2. SCROLL REVEAL ANIMATIONS
   --------------------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.reveal--right {
    transform: translateX(40px);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0) translateX(0);
}


/* Stagger children */

.pillars-grid .pillar-card.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.pillars-grid .pillar-card.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.pillars-grid .pillar-card.reveal:nth-child(4) {
    transition-delay: 0.3s;
}

.pain-grid .pain-card:nth-child(2) {
    animation-delay: 0.08s;
}

.pain-grid .pain-card:nth-child(3) {
    animation-delay: 0.16s;
}

.pain-grid .pain-card:nth-child(4) {
    animation-delay: 0.24s;
}

.pain-grid .pain-card:nth-child(5) {
    animation-delay: 0.32s;
}


/* ---------------------------------------------------------------
   3. UTILITY CLASSES
   --------------------------------------------------------------- */

.text-gold {
    color: var(--gold) !important;
}

.text-center {
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-family: var(--ff);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 20px;
}


/* ---------------------------------------------------------------
   4. BUTTONS
   --------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 34px;
    font-family: var(--ff);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}


/* Shimmer hover effect on primary buttons */

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
    box-shadow: 0 6px 24px var(--gold-15);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold-10);
    box-shadow: 0 4px 16px rgba(178, 143, 90, 0.08);
}

.btn-white {
    background: var(--white);
    color: var(--gold);
    border-color: var(--white);
    font-weight: 600;
}

.btn-white:hover {
    background: var(--beige);
    border-color: var(--beige);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.btn-rounded {
    border-radius: 60px;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}


/* Nav CTA — glassmorphic pill button */

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 26px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--gold);
    background: rgba(178, 143, 90, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(178, 143, 90, 0.25);
    border-radius: 60px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-family: var(--ff);
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(178, 143, 90, 0.12) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-cta:hover {
    color: var(--white);
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(178, 143, 90, 0.3);
    transform: translateY(-1px);
}

.nav-cta:hover::before {
    opacity: 1;
}


/* ---------------------------------------------------------------
   5. SECTIONS (generic)
   --------------------------------------------------------------- */

.section {
    padding: var(--section-py) 0;
}

.section--white {
    background: var(--bg-light);
}

.section--beige {
    background: var(--beige);
}

.section--cta {
    background: var(--graphite);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}


/* Subtle pattern overlay */

.section--cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('brand-pattern-cropped.svg') repeat left top;
    background-size: 300px auto;
    opacity: 0.03;
    pointer-events: none;
}

.section--cta h2 {
    font-family: var(--ff);
    color: var(--white);
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.15;
}

.section--cta .cta-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 17px;
    margin-bottom: 50px;
    font-weight: 400;
}


/* --- CTA Grid: two columns --- */

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: start;
    position: relative;
    z-index: 1;
}


/* --- Left: Copy column --- */

.cta-copy {
    padding-top: 20px;
}

.eyebrow--light {
    color: var(--gold) !important;
}

.cta-lead {
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 40px;
}

.cta-trust {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 40px;
}

.cta-trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-weight: 500;
}

.cta-trust-item i {
    font-size: 22px;
    color: var(--gold);
    flex-shrink: 0;
}

.cta-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5) !important;
    font-style: italic;
    border-left: 2px solid var(--gold-30);
    padding-left: 16px;
}


/* --- Right: Form column --- */

.cta-form-wrap {
    background: var(--white);
    border-radius: 20px;
    padding: 44px 40px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--graphite);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group .required {
    color: var(--gold);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e0dcd7;
    border-radius: 10px;
    font-family: var(--ff);
    font-size: 15px;
    color: var(--graphite);
    background: var(--white);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b5b0a9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-10);
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.cta-submit-btn {
    width: 100%;
    padding: 16px 28px !important;
    font-size: 16px !important;
    font-weight: 600;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-privacy {
    font-size: 12px;
    color: var(--gray) !important;
    text-align: center;
    line-height: 1.5;
    margin-top: -4px;
}


/* --- Calendly Section --- */

.calendly-section {
    padding: 80px 0 100px;
}

.calendly-header {
    margin-bottom: 48px;
}

.calendly-header h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 14px;
}

.calendly-header p {
    color: var(--gray);
    font-size: 17px;
}


/* Cal.com embed container */

.calendly-embed-placeholder {
    max-width: 960px;
    margin: 0 auto;
    min-height: 700px;
    border-radius: 16px;
    overflow: hidden;
}

.calendly-embed-placeholder #my-cal-inline-30min-rozmowa {
    min-height: 700px;
}

@media (max-width: 768px) {
    .calendly-embed-placeholder {
        min-height: 500px;
    }
    .calendly-embed-placeholder #my-cal-inline-30min-rozmowa {
        min-height: 500px;
    }
}


/* ---- Responsive: CTA Form ---- */

@media (max-width: 900px) {
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .cta-form-wrap {
        padding: 32px 24px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .section--cta h2 {
        font-size: 30px;
    }
    .calendly-header h2 {
        font-size: 28px;
    }
    .calendly-placeholder-box {
        padding: 48px 24px;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--graphite);
}

.section-header p {
    color: var(--gray);
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}


/* ---------------------------------------------------------------
   6. NAVBAR
   --------------------------------------------------------------- */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(253, 252, 251, 0.65);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--glass-border);
    padding: 14px 0;
    transition: padding var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.navbar--scrolled {
    padding: 8px 0;
    background: rgba(253, 252, 251, 0.82);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 34px;
    width: auto;
    transition: height var(--transition);
}

.navbar--scrolled .nav-logo {
    height: 28px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    transition: color var(--transition), background var(--transition);
    position: relative;
    padding: 6px 14px;
    border-radius: 8px;
}


/* Underline hover animation on nav links */

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--graphite);
    background: rgba(178, 143, 90, 0.06);
}

.nav-links a:hover::after {
    width: 60%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--graphite);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-cta {
        display: none !important;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(24px) saturate(1.6);
        -webkit-backdrop-filter: blur(24px) saturate(1.6);
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    }
    .nav-links a::after {
        display: none;
    }
    .nav-links.open {
        display: flex;
    }
}


/* ---------------------------------------------------------------
   7. HERO — Matching reference screenshot precisely
   --------------------------------------------------------------- */

.hero {
    padding: 80px 0 0;
    background: linear-gradient(to bottom, var(--white) 0%, var(--white) 70%, var(--beige) 100%);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    height: 100%;
    background: url('brand-pattern-cropped.svg') repeat-y left top;
    background-size: 320px auto;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}


/* Subtle gold gradient accent on the right side */

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(178, 143, 90, 0.03) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    display: flex;
    align-items: stretch;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 540px;
    padding-bottom: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--graphite);
    line-height: 1.08;
}

.hero-sub {
    font-size: 17px;
    color: var(--gray);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}


/* Video play button */

.hero-video-link {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}

.video-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--beige);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--gold);
    font-size: 18px;
    position: relative;
}


/* Pulse ring animation on video button */

.video-play-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--gold-10);
    animation: pulse-ring 2.5s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.video-play-btn:hover {
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 4px 16px var(--gold-15);
}

.hero-video-link span {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    transition: color var(--transition);
}

.hero-video-link:hover span {
    color: var(--graphite);
}


/* Hero image — contained rounded card, light & airy */

.hero-visual {
    flex: 1;
    max-width: 520px;
    position: relative;
    min-height: 580px;
}


/* Bottom gradient mask to hide photographer watermark */

.hero-visual::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20%;
    background: linear-gradient(to bottom, transparent 0%, var(--beige) 80%);
    z-index: 4;
    pointer-events: none;
    border-radius: 0;
}


/* Beige card background — contained behind image */

.hero-img-bg {
    position: absolute;
    top: 10px;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--beige);
    border-radius: var(--radius) var(--radius) 0 0;
    z-index: 1;
}


/* ---- Subtle decorative elements (matching reference) ---- */

.hero-decor {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}


/* Large arc at bottom-right — signature reference element */

.hero-decor-ring {
    position: absolute;
    border-radius: 50%;
}

.hero-decor-ring--1 {
    width: 260px;
    height: 260px;
    bottom: -80px;
    right: -60px;
    border: 1.5px solid rgba(178, 143, 90, 0.12);
    animation: hero-arc-breathe 10s ease-in-out infinite;
}

.hero-decor-ring--2 {
    width: 180px;
    height: 180px;
    bottom: -40px;
    right: -20px;
    border: 1px solid rgba(178, 143, 90, 0.07);
    animation: hero-arc-breathe 10s ease-in-out infinite;
    animation-delay: -3s;
}

.hero-decor-ring--3 {
    width: 60px;
    height: 60px;
    top: 20px;
    right: 15px;
    border: 1px solid rgba(178, 143, 90, 0.1);
    animation: hero-arc-breathe 8s ease-in-out infinite;
    animation-delay: -5s;
}

@keyframes hero-arc-breathe {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.04);
        opacity: 0.7;
    }
}


/* Subtle floating dots — fine particles */

.hero-decor-dot {
    position: absolute;
    border-radius: 50%;
    background: var(--gold);
    animation: hero-dot-float 6s ease-in-out infinite;
}

.hero-decor-dot--1 {
    width: 5px;
    height: 5px;
    top: 15%;
    right: 12%;
    opacity: 0.2;
}

.hero-decor-dot--2 {
    width: 3px;
    height: 3px;
    top: 55%;
    right: 6%;
    opacity: 0.15;
    animation-delay: -2s;
}

.hero-decor-dot--3 {
    width: 4px;
    height: 4px;
    bottom: 28%;
    left: 8%;
    opacity: 0.12;
    animation-delay: -4s;
}

.hero-decor-dot--4 {
    width: 3px;
    height: 3px;
    top: 35%;
    left: 5%;
    opacity: 0.1;
    animation-delay: -1s;
    animation-duration: 5s;
}

@keyframes hero-dot-float {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-8px);
        opacity: 0.3;
    }
}


/* Small cross/plus accents */

.hero-decor-plus {
    position: absolute;
    width: 12px;
    height: 12px;
    animation: hero-plus-rotate 25s linear infinite;
}

.hero-decor-plus::before,
.hero-decor-plus::after {
    content: '';
    position: absolute;
    background: rgba(178, 143, 90, 0.2);
    border-radius: 1px;
}

.hero-decor-plus::before {
    width: 100%;
    height: 1.5px;
    top: 50%;
    transform: translateY(-50%);
}

.hero-decor-plus::after {
    width: 1.5px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.hero-decor-plus--1 {
    top: 8%;
    right: 22%;
    opacity: 0.5;
}

.hero-decor-plus--2 {
    bottom: 18%;
    right: 10%;
    opacity: 0.3;
    width: 10px;
    height: 10px;
    animation-direction: reverse;
    animation-duration: 18s;
}

@keyframes hero-plus-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/* Vertical gold accent line — subtle divider feel */

.hero-decor-line {
    position: absolute;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(178, 143, 90, 0.15), transparent);
}

.hero-decor-line--1 {
    height: 100px;
    bottom: 10px;
    left: 50%;
    opacity: 0.6;
    animation: hero-line-pulse 5s ease-in-out infinite;
}

.hero-decor-line--2 {
    height: 60px;
    top: 10%;
    right: 30%;
    opacity: 0.3;
    animation: hero-line-pulse 5s ease-in-out infinite;
    animation-delay: -2.5s;
}

@keyframes hero-line-pulse {
    0%,
    100% {
        opacity: 0.2;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.5;
        transform: scaleY(1.15);
    }
}

.hero-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
    object-fit: cover;
    /* Crop to hide photographer watermark at bottom-right */
    object-position: center 10%;
}


/* Floating credential badges on hero image */

.hero-badge {
    position: absolute;
    z-index: 3;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 10px;
    padding: 12px 18px;
    border: 1px solid rgba(178, 143, 90, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.hero-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.hero-badge--top {
    top: 40px;
    left: -30px;
}

.hero-badge--bottom {
    bottom: 140px;
    right: -20px;
}

.hero-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--gold-10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 16px;
    flex-shrink: 0;
}

.hero-badge-text {
    display: flex;
    flex-direction: column;
}

.hero-badge-text strong {
    font-family: var(--ff);
    font-size: 14px;
    font-weight: 600;
    color: var(--graphite);
    line-height: 1.2;
}

.hero-badge-text span {
    font-family: var(--ff);
    font-size: 11px;
    font-weight: 400;
    color: var(--gray);
    line-height: 1.3;
}

@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
        padding-bottom: 40px;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-video-link {
        justify-content: center;
    }
    .hero h1 {
        font-size: 38px;
    }
    .hero-visual {
        max-width: 100%;
        min-height: 400px;
    }
    .hero-img-bg {
        top: 0;
        border-radius: var(--radius);
    }
    .hero-badge--top {
        left: 10px;
        top: 20px;
    }
    .hero-badge--bottom {
        right: 30px;
        bottom: 80px;
    }
    .hero::before {
        width: 200px;
        opacity: 0.04;
    }
    .hero-decor {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0 0;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .hero-visual {
        min-height: 320px;
    }
}


/* ---------------------------------------------------------------
   8. PAIN POINTS — 5 cards, 3+2 grid, red icons, italic quotes
   --------------------------------------------------------------- */

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}


/* Last 2 cards: center them */

.pain-card:nth-child(4) {
    grid-column: 1 / 2;
}

.pain-card:nth-child(5) {
    grid-column: 2 / 3;
}

.pain-card {
    background: var(--glass-white-strong);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 32px 26px;
    border-radius: var(--radius);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    transition: all var(--transition);
    cursor: default;
}

.pain-card:hover {
    box-shadow: var(--glass-shadow-hover);
    transform: translateY(-4px);
    border-color: var(--glass-border-hover);
    background: rgba(255, 255, 255, 0.85);
}

.pain-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--red-icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-size: 20px;
}

.pain-quote {
    font-size: 15px;
    line-height: 1.6;
    color: var(--graphite);
    font-style: italic;
    font-weight: 400;
}

@media (max-width: 768px) {
    .pain-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pain-card:nth-child(4) {
        grid-column: auto;
    }
    .pain-card:nth-child(5) {
        grid-column: auto;
    }
}

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


/* ---------------------------------------------------------------
   9. COMPARISON — Księgowość vs Strategiczny CFO
   --------------------------------------------------------------- */

.comparison-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    max-width: 860px;
    margin: 0 auto;
}

.comparison-col {
    flex: 1;
    background: rgba(243, 239, 233, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 50px 40px;
    text-align: center;
    border-radius: var(--radius);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.comparison-col:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.comparison-col--left {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.comparison-col--right {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border: 1px solid var(--gold-15);
    box-shadow: 0 4px 24px rgba(178, 143, 90, 0.08);
}

.comparison-vs {
    font-size: 18px;
    font-weight: 400;
    color: var(--gray);
    padding: 0 24px;
    flex-shrink: 0;
    font-style: italic;
}

.comparison-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 24px;
    transition: transform var(--transition);
}

.comparison-col:hover .comparison-icon {
    transform: scale(1.08);
}

.comparison-icon--gray {
    background: #e0e0e0;
    color: var(--gray);
}

.comparison-icon--gold {
    background: var(--gold);
    color: var(--white);
}

.comparison-col h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--graphite);
}

.comparison-subtitle {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gray);
    margin-bottom: 24px;
}

.comparison-subtitle--gold {
    color: var(--gold);
}

.comparison-list li {
    font-size: 15px;
    color: var(--graphite);
    margin-bottom: 12px;
    font-weight: 400;
    line-height: 1.7;
}

.comparison-list li:last-child {
    margin-bottom: 0;
}

.comparison-footer {
    text-align: center;
    max-width: 700px;
    margin: 56px auto 0;
    font-size: 17px;
    color: var(--gray);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .comparison-grid {
        flex-direction: column;
    }
    .comparison-col {
        border-radius: var(--radius);
    }
    .comparison-col--left {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    .comparison-col--right {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    .comparison-vs {
        padding: 16px 0;
    }
}


/* ---------------------------------------------------------------
   10. ABOUT — Image left, text right
   --------------------------------------------------------------- */

.about-layout {
    display: flex;
    align-items: flex-start;
    gap: 70px;
}

.about-visual {
    flex: 0 0 420px;
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    aspect-ratio: 3/4;
    box-shadow: 20px 20px 60px var(--gold-15);
    transition: box-shadow 0.5s ease;
}

.about-img:hover {
    box-shadow: 24px 24px 70px rgba(178, 143, 90, 0.2);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.15;
    color: var(--graphite);
}

.about-intro {
    color: var(--gray);
    font-size: 17px;
    margin-bottom: 40px;
    font-weight: 400;
}

.about-points {
    margin-bottom: 36px;
}

.about-point {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    transition: transform var(--transition);
}

.about-point:hover {
    transform: translateX(4px);
}

.about-point:last-child {
    margin-bottom: 0;
}

.about-point-num {
    font-family: var(--ff);
    font-size: 32px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    flex-shrink: 0;
    padding-top: 2px;
    opacity: 0.6;
}

.about-point h4 {
    font-family: var(--ff);
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 8px;
    color: var(--graphite);
}

.about-point p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
}

.about-quote {
    background: var(--white);
    border-left: 3px solid var(--gold);
    padding: 24px 28px;
    font-size: 15px;
    font-style: italic;
    color: var(--graphite);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    line-height: 1.7;
    margin-top: 36px;
}

@media (max-width: 992px) {
    .about-layout {
        flex-direction: column;
    }
    .about-visual {
        flex: 0 0 auto;
        max-width: 420px;
        width: 100%;
    }
    .about-text h2 {
        font-size: 32px;
    }
}


/* ---------------------------------------------------------------
   11. PILLARS — 4 Filary Spokoju (icon cards, hover lift)
   --------------------------------------------------------------- */

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.pillar-card {
    background: var(--glass-white-strong);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 40px 24px 36px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--glass-border);
    cursor: default;
    position: relative;
    overflow: hidden;
}


/* Subtle sheen effect on hover */

.pillar-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(178, 143, 90, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

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

.pillar-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.10), 0 0 0 1px var(--glass-border-hover);
    transform: translateY(-8px) scale(1.01);
    border-color: var(--glass-border-hover);
    background: rgba(255, 255, 255, 0.88);
}

.pillar-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: var(--gold);
    transition: all var(--transition);
}

.pillar-card:hover .pillar-icon {
    background: var(--gold);
    color: var(--white);
    transform: scale(1.06);
}

.pillar-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    background: var(--gold-10);
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.pillar-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--graphite);
    line-height: 1.3;
}

.pillar-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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


/* ---------------------------------------------------------------
   12. PRICING — "Jak możemy współpracować?" (2 cards)
   --------------------------------------------------------------- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
    padding: 44px 38px;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}

.pricing-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
    transform: translateY(-4px);
}

.pricing-card--highlight {
    border-color: var(--gold);
    border-width: 2px;
}

.pricing-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray);
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 22px;
    align-self: flex-start;
}

.pricing-tag--gold {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.pricing-name {
    font-family: var(--ff);
    font-size: 28px;
    font-weight: 700;
    color: var(--graphite);
    margin-bottom: 12px;
}

.pricing-desc {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
    flex: 1;
}

.pricing-features li {
    font-size: 15px;
    color: var(--graphite);
    font-weight: 500;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li:last-child {
    margin-bottom: 0;
}

.pricing-features li i {
    color: var(--green);
    font-size: 16px;
    flex-shrink: 0;
}

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


/* ---------------------------------------------------------------
   12b. PROCESS — "Jak wygląda współpraca krok po kroku?" (dark)
   --------------------------------------------------------------- */

.section--dark {
    background: #333333;
    padding: 90px 0;
}

.section-header--light h2 {
    color: var(--white);
    font-size: 38px;
    font-weight: 700;
}

.section-header--light p {
    color: rgba(255, 255, 255, 0.65);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.process-num {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff);
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 20px;
    transition: all var(--transition);
}

.process-step:hover .process-num {
    background: var(--gold);
    color: var(--white);
    transform: scale(1.08);
}

.process-step h4 {
    font-family: var(--ff);
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.process-step p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 24px;
    }
    .section-header--light h2 {
        font-size: 30px;
    }
}

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


/* ---------------------------------------------------------------
   13. TARGET AUDIENCE — green / red boxes
   --------------------------------------------------------------- */

.target-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 880px;
    margin: 0 auto;
}

.target-box {
    padding: 40px 36px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.target-box:hover {
    transform: translateY(-3px);
}

.target-box--yes {
    background: var(--green-bg);
    border: 1px solid rgba(46, 125, 50, 0.12);
}

.target-box--yes:hover {
    box-shadow: 0 8px 30px rgba(46, 125, 50, 0.1);
}

.target-box--best {
    background: linear-gradient(135deg, rgba(178, 143, 90, 0.06), rgba(178, 143, 90, 0.12));
    border: 1px solid rgba(178, 143, 90, 0.18);
}

.target-box--best:hover {
    box-shadow: 0 8px 30px rgba(178, 143, 90, 0.12);
}

.target-box h3 {
    font-family: var(--ff);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.target-box--yes h3 {
    color: var(--green);
}

.target-box--best h3 {
    color: var(--gold-dark);
}

.target-box ul li {
    font-size: 15px;
    color: var(--graphite);
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 400;
    line-height: 1.7;
}

.target-box ul li:last-child {
    margin-bottom: 0;
}

.target-box--yes ul li i {
    color: var(--green);
    margin-top: 4px;
    flex-shrink: 0;
    font-size: 18px;
}

.target-box--best ul li i {
    color: var(--gold);
    margin-top: 4px;
    flex-shrink: 0;
    font-size: 18px;
}

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


/* ---------------------------------------------------------------
   14. FAQ — smooth open animation
   --------------------------------------------------------------- */

.faq-list {
    max-width: 780px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass-white-strong);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.faq-item:hover {
    box-shadow: var(--glass-shadow-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    cursor: pointer;
    list-style: none;
    transition: background var(--transition);
}

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

.faq-item summary:hover {
    background: rgba(0, 0, 0, 0.015);
}

.faq-item summary span {
    font-family: var(--ff);
    font-weight: 600;
    font-size: 15px;
    color: var(--graphite);
}

.faq-item summary i {
    color: var(--gold);
    font-size: 18px;
    transition: transform var(--transition);
    flex-shrink: 0;
}

.faq-item[open] summary i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 28px 24px;
}

.faq-answer p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
}


/* ---------------------------------------------------------------
   15. FOOTER
   --------------------------------------------------------------- */

.footer {
    padding: 36px 0;
    background: var(--bg-light);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-logo {
    height: 26px;
    width: auto;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.footer-logo:hover {
    opacity: 1;
}

.footer-copy {
    font-size: 13px;
    color: var(--gray);
}

@media (max-width: 576px) {
    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}


/* ---------------------------------------------------------------
   16. GLOBAL RESPONSIVE
   --------------------------------------------------------------- */

@media (max-width: 768px) {
     :root {
        --section-py: 64px;
    }
    .section-header h2 {
        font-size: 30px;
    }
    .section--cta h2 {
        font-size: 30px;
    }
    .about-text h2 {
        font-size: 28px;
    }
    .case-stat-num {
        font-size: 56px;
    }
}

@media (max-width: 480px) {
     :root {
        --section-py: 48px;
        --gutter: 18px;
    }
    .section-header h2 {
        font-size: 26px;
    }
    .pain-card {
        padding: 22px 18px;
    }
    .case-step {
        flex-direction: column;
        gap: 12px;
    }
    .about-point-num {
        font-size: 26px;
    }
    .target-box {
        padding: 28px 24px;
    }
}


/* ---------------------------------------------------------------
   17. SELECTION & SCROLLBAR — Premium touches
   --------------------------------------------------------------- */

::selection {
    background: var(--gold);
    color: var(--white);
}

::-moz-selection {
    background: var(--gold);
    color: var(--white);
}


/* Custom scrollbar (webkit) */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--beige);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-hover);
}


/* ---------------------------------------------------------------
   CASE STUDY — "+14% marży" (premium card-based timeline)
   --------------------------------------------------------------- */

.casestudy {
    padding: 100px 0;
    position: relative;
}

.casestudy-header {
    text-align: center;
    margin-bottom: 56px;
}

.casestudy-header .eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gold);
    margin-bottom: 16px;
}

.casestudy-header h2 {
    font-family: var(--ff);
    font-size: 40px;
    font-weight: 700;
    color: var(--graphite);
    line-height: 1.15;
    margin-bottom: 8px;
}

.casestudy-stat {
    text-align: center;
    margin-bottom: 48px;
}

.casestudy-stat-num {
    font-family: var(--ff);
    font-size: 80px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    letter-spacing: -2px;
}

.casestudy-stat-label {
    display: block;
    font-size: 15px;
    color: var(--gray);
    margin-top: 8px;
    font-weight: 500;
}


/* Timeline cards */

.casestudy-timeline {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}


/* Vertical accent line behind cards */

.casestudy-timeline::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold-10) 0%, var(--gold-15) 50%, var(--gold-10) 100%);
    border-radius: 2px;
}

.casestudy-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius);
    padding: 32px 32px 32px 80px;
    position: relative;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    transition: all var(--transition);
}

.casestudy-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: var(--gold-10);
}

.casestudy-card-icon {
    position: absolute;
    left: 16px;
    top: 28px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.casestudy-card-icon--search {
    background: var(--gold-10);
    color: var(--gold);
}

.casestudy-card-icon--diagnose {
    background: rgba(255, 152, 0, 0.1);
    color: #f57c00;
}

.casestudy-card-icon--action {
    background: rgba(46, 125, 50, 0.1);
    color: var(--green);
}

.casestudy-card h4 {
    font-family: var(--ff);
    font-size: 18px;
    font-weight: 700;
    color: var(--graphite);
    margin-bottom: 10px;
}

.casestudy-card p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
}

.casestudy-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.casestudy-card ul li {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
    padding-left: 22px;
    position: relative;
    margin-bottom: 6px;
}

.casestudy-card ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 600;
}


/* Result highlight bar */

.casestudy-result {
    max-width: 720px;
    margin: 28px auto 0;
    background: linear-gradient(135deg, var(--gold) 0%, #c9a56c 100%);
    border-radius: var(--radius);
    padding: 28px 36px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(178, 143, 90, 0.25);
}

.casestudy-result p {
    font-size: 17px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.5;
}

.casestudy-result strong {
    font-weight: 800;
}

@media (max-width: 768px) {
    .casestudy-header h2 {
        font-size: 30px;
    }
    .casestudy-stat-num {
        font-size: 56px;
    }
    .casestudy-timeline::before {
        left: 22px;
    }
    .casestudy-card {
        padding: 28px 24px 28px 64px;
    }
    .casestudy-card-icon {
        left: 8px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .casestudy {
        padding: 70px 0;
    }
    .casestudy-timeline::before {
        display: none;
    }
    .casestudy-card {
        padding: 28px 24px;
    }
    .casestudy-card-icon {
        position: static;
        margin-bottom: 14px;
    }
    .casestudy-result {
        padding: 22px 24px;
    }
    .casestudy-result p {
        font-size: 15px;
    }
}


/* ---------------------------------------------------------------
   TESTIMONIALS — Client quotes section
   --------------------------------------------------------------- */

.testimonials {
    padding: 100px 0;
    position: relative;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 56px;
}

.testimonials-header .eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gold);
    margin-bottom: 16px;
}

.testimonials-header h2 {
    font-family: var(--ff);
    font-size: 38px;
    font-weight: 700;
    color: var(--graphite);
    line-height: 1.15;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1060px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius);
    padding: 40px 32px 36px;
    position: relative;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: var(--gold-10);
}


/* Large quotation mark */

.testimonial-quote-mark {
    font-family: var(--ff);
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    color: var(--gold);
    opacity: 0.18;
    position: absolute;
    top: 16px;
    left: 28px;
    pointer-events: none;
    user-select: none;
}

.testimonial-text {
    font-size: 15px;
    color: var(--graphite);
    line-height: 1.75;
    font-style: italic;
    flex: 1;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.testimonial-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold-10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 18px;
    flex-shrink: 0;
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
}

.testimonial-author-name {
    font-family: var(--ff);
    font-size: 14px;
    font-weight: 700;
    color: var(--graphite);
    line-height: 1.3;
}

.testimonial-author-role {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.3;
    margin-top: 2px;
}

@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 640px;
    }
}

@media (max-width: 768px) {
    .testimonials-header h2 {
        font-size: 30px;
    }
    .testimonials {
        padding: 70px 0;
    }
}


/* ---------------------------------------------------------------
   VIDEO POPUP MODAL
   --------------------------------------------------------------- */

.video-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.video-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.video-modal {
    position: relative;
    width: 90%;
    max-width: 900px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal-overlay.active .video-modal {
    transform: scale(1) translateY(0);
}

.video-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.video-modal-player {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-modal-player wistia-player {
    width: 100%;
    height: 100%;
    display: block;
}


/* Make hero-video-link clickable */

.hero-video-link {
    cursor: pointer;
}


/* ---------------------------------------------------------------
   FORM SUCCESS POPUP
   --------------------------------------------------------------- */

.form-success-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(30, 30, 30, 0.58);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-success-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.form-success-popup {
    position: relative;
    width: min(92vw, 460px);
    padding: 32px 28px 26px;
    border-radius: 18px;
    border: 1px solid rgba(178, 143, 90, 0.24);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.45) inset;
    text-align: center;
    transform: translateY(16px) scale(0.96);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-success-popup-overlay.active .form-success-popup {
    transform: translateY(0) scale(1);
}

.form-success-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(178, 143, 90, 0.12);
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.form-success-popup-close:hover {
    background: rgba(178, 143, 90, 0.2);
    transform: rotate(90deg);
}

.form-success-popup-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(178, 143, 90, 0.24), rgba(178, 143, 90, 0.1));
    color: var(--gold-dark);
    font-size: 30px;
}

.form-success-popup-text {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--graphite);
}

@media (max-width: 480px) {
    .form-success-popup {
        padding: 30px 20px 22px;
    }
    .form-success-popup-text {
        font-size: 16px;
    }
}


/* ============================================
   GDPR Cookie Consent Banner
   ============================================ */

.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 0 20px 20px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner--visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(178, 143, 90, 0.15);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.cookie-banner-text>i {
    font-size: 28px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--graphite);
    margin-bottom: 4px;
}

.cookie-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--gray);
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 60px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.cookie-btn--reject {
    background: transparent;
    border: 1.5px solid rgba(178, 143, 90, 0.25);
    color: var(--graphite);
}

.cookie-btn--reject:hover {
    background: rgba(178, 143, 90, 0.1);
    border-color: rgba(178, 143, 90, 0.4);
    color: var(--gold-dark);
}

.cookie-btn--accept {
    background: var(--gold);
    border: 1.5px solid var(--gold);
    color: #fff;
}

.cookie-btn--accept:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    box-shadow: 0 4px 16px rgba(178, 143, 90, 0.3);
}


/* Small floating button to revisit cookie settings */

.cookie-settings-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(178, 143, 90, 0.2);
    color: var(--gold);
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

.cookie-settings-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(178, 143, 90, 0.4);
    transform: scale(1.08);
}


/* Responsive */

@media (max-width: 640px) {
    .cookie-banner-inner {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }
    .cookie-banner-text {
        flex-direction: column;
        gap: 8px;
    }
    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
    }
    .cookie-btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
}


/* ============================================
   VIDEO CTA — Hero (matches btn-outline style)
   ============================================ */

.hero-video-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 34px 11px 11px;
    font-family: var(--ff);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    color: var(--gold);
    background: transparent;
    border: 2px solid var(--gold);
    border-radius: 60px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.hero-video-cta:hover {
    background: var(--gold-10);
    box-shadow: 0 6px 24px rgba(178, 143, 90, 0.12);
}

.hero-video-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 12px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.hero-video-cta:hover .hero-video-btn {
    transform: scale(1.1);
}

.hero-video-cta span {
    color: var(--gold);
    font-weight: 600;
    font-size: 14px;
}


/* ============================================
   MINI STEPPER — 3 kroki
   ============================================ */

.mini-stepper {
    background: linear-gradient(to bottom, var(--beige) 0%, var(--beige) 60%, #f5f1ec 100%);
    padding: 48px 0 56px;
    position: relative;
    margin-top: -1px;
}

.stepper-track {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    overflow: hidden;
}

.stepper-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    border-right: 1px solid rgba(178, 143, 90, 0.1);
    transition: all var(--transition);
    position: relative;
}

.stepper-step:last-child {
    border-right: none;
}

.stepper-step:hover {
    background: rgba(255, 255, 255, 0.9);
}

.stepper-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--gold-10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 22px;
    flex-shrink: 0;
    position: relative;
}

.stepper-icon::before {
    content: attr(data-step);
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff);
}

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

.stepper-text strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--graphite);
    letter-spacing: -0.01em;
}

.stepper-text span {
    font-size: 12px;
    color: var(--gray);
    font-weight: 400;
    line-height: 1.4;
}

.stepper-arrow {
    display: none;
}

@media (max-width: 768px) {
    .stepper-track {
        flex-direction: column;
        gap: 10px;
        box-shadow: none;
        border-radius: 0;
    }
    .stepper-step {
        border-radius: 16px;
        border-right: none;
        border: 1px solid rgba(178, 143, 90, 0.1);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    }
    .stepper-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--gold);
        font-size: 16px;
        transform: rotate(90deg);
    }
}


/* ============================================
   PAIN CARDS — Interactive Flip
   ============================================ */

.pain-card {
    position: relative;
    cursor: pointer;
    perspective: 600px;
}

.pain-front,
.pain-back {
    transition: all 0.5s ease;
    backface-visibility: hidden;
    padding: 32px 28px;
    border-radius: var(--radius);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pain-front {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border);
}

.pain-back {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(178, 143, 90, 0.08), rgba(178, 143, 90, 0.15));
    border: 1.5px solid var(--gold-15);
    opacity: 0;
    transform: rotateY(180deg);
}

.pain-card.flipped .pain-front {
    opacity: 0;
    transform: rotateY(-180deg);
}

.pain-card.flipped .pain-back {
    opacity: 1;
    transform: rotateY(0deg);
}

.pain-hint {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gold);
    opacity: 0.7;
    transition: opacity var(--transition);
}

.pain-card:hover .pain-hint {
    opacity: 1;
}

.pain-icon--gold {
    color: var(--gold) !important;
}

.pain-icon--gold i {
    color: var(--gold);
}

.pain-answer {
    font-size: 15px;
    line-height: 1.7;
    color: var(--graphite);
    font-weight: 500;
}


/* ============================================
   MID-PAGE CTA — After Testimonials
   ============================================ */

.mid-cta {
    background: linear-gradient(135deg, var(--beige) 0%, rgba(178, 143, 90, 0.12) 100%);
    padding: 72px 0;
    text-align: center;
}

.mid-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.mid-cta-content h2 {
    font-family: var(--ff);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    color: var(--graphite);
    margin-bottom: 16px;
    line-height: 1.2;
}

.mid-cta-content p {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 32px;
}

.mid-cta-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}