/* Navigation */
.site-nav {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.nav-inner > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    font-family: 'Space Grotesk';
    color: var(--text-heading);
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.85;
}

.logo-accent {
    color: var(--primary);
}

.nav-link {
    display: inline-block;
    padding: 10px 16px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: #eff6ff;
}

.nav-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
    background: #eff6ff;
}

/* Section Headings */
.section-title {
    margin-bottom: 40px;
}

.section-kicker {
    font-weight: 600;
}

.section-heading {
    margin-top: 12px;
}

.section-subtitle {
    color: #64748b;
    max-width: 600px;
    margin: 12px auto;
}

/* Logo strip – pancerne fundamenty (sztywne wymiary, żeby loga nie rosły na serwerze) */
.logo-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem 3rem;
    margin-top: 1.5rem;
    padding: 2rem 0;
}

.logo-strip .logo-img,
.container .logo-strip .logo-img {
    display: block;
    height: 40px !important;
    width: auto !important;
    max-width: 120px !important;
    min-width: 0;
    flex: 0 0 auto;
    object-fit: contain;
    filter: grayscale(1) opacity(0.75);
    transition: filter 0.2s ease;
}

.logo-strip .logo-img:hover,
.container .logo-strip .logo-img:hover {
    filter: grayscale(0) opacity(1);
}

/* Hero */
.hero {
    padding: 80px 0 48px;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 24px;
    border: 1px solid #dbeafe;
}

.hero h1 {
    font-size: clamp(2rem, 7vw, 3rem);
    margin-bottom: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1.case-study-hero-title {
    font-size: 2rem;
}

body.case-study-page .card ul,
body.case-study-page .card ol {
    margin: 0 0 20px 0;
    padding-left: 1.5rem;
}

body.case-study-page .card li {
    margin-bottom: 8px;
}

body.case-study-page .card h3.case-study-subheading {
    padding: 6px 0;
}

body.case-study-page .video-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 20px;
    padding-top: 12px;
}

body.case-study-page .video-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
}

.hero p {
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 24px;
    color: #64748b;
}

.hero-guarantee {
    margin-top: 24px;
    font-size: 0.9rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    text-align: center;
}

.hero-cta {
    margin-top: 24px;
}

/* Text Helpers */
.card-text {
    margin-top: 12px;
    color: #64748b;
}

.agitation-text {
    margin-top: 20px;
}

.step-text {
    color: #64748b;
    margin-top: 12px;
}

/* Agitation */
.agitation {
    background: var(--text-heading);
    color: white;
}

.agitation h2 { color: white; margin-bottom: 16px; }
.agitation p { color: #94a3b8; font-size: 1.2rem; max-width: 700px; margin: 0 auto; }

/* How it works */
.step {
    position: relative;
    padding-left: 24px;
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: #f1f5f9;
    position: absolute;
    top: -20px;
    left: 0;
    z-index: -1;
    font-family: 'Space Grotesk';
}

/* Case Study */
.grid-align-center {
    align-items: center;
}

.case-kicker {
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.case-title {
    font-size: 1.8rem;
    margin: 12px 0;
}

.case-desc {
    color: #64748b;
    margin-bottom: 20px;
}

.case-metrics {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.case-metric-value {
    font-size: 1.5rem;
    display: block;
    color: var(--text-heading);
}

.case-metric-label {
    font-size: 0.85rem;
    color: #64748b;
}

.case-panel {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 8px;
}

.case-row {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.case-label-danger {
    color: var(--danger);
}

.case-label-success {
    color: var(--success);
}

.case-bar {
    height: 8px;
    background: #cbd5e1;
    border-radius: 4px;
}

.case-bar--spaced {
    margin-bottom: 24px;
}

.case-bar-fill {
    height: 100%;
    border-radius: 4px;
}

.case-bar-fill--danger {
    width: 85%;
    background: var(--danger);
}

.case-bar-fill--success {
    width: 2%;
    background: var(--success);
}

/* ROI */
.roi-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 40px;
    display: block;
    overflow-x: auto;
}

.roi-table th, .roi-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.roi-table th { background: #f8fafc; font-weight: 600; }
.roi-table tr:last-child td { border-bottom: none; }

.roi-title {
    margin-bottom: 40px;
}

.roi-highlight-row {
    background: #eff6ff;
}

.roi-packages {
    margin-top: 48px;
}

.package-title {
    margin-bottom: 24px;
}

/* Lists */
.list-unstyled {
    list-style: none;
    margin-top: 16px;
}

.list-item {
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
}

/* Pricing */
.pricing-card {
    background: white;
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1);
}

.badge-save {
    position: absolute;
    top: -16px;
    right: 24px;
    background: var(--success);
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
}

.price {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text-heading);
    font-family: 'Space Grotesk';
}

.price-old {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 1.25rem;
}

.pricing-features {
    margin: 32px 0;
    list-style: none;
}

.pricing-features li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-title {
    margin-bottom: 8px;
}

.pricing-price-wrap {
    margin: 24px 0;
}

.pricing-subtext {
    color: #64748b;
    display: block;
    font-size: 0.9rem;
}

.pricing-description {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 24px;
}

.pricing-divider {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.pricing-guarantee {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.pricing-note {
    font-size: 0.8rem;
    color: #64748b;
}

.pricing-caption {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Bio */
.bio-box {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-direction: column;
}

.bio-avatar {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #cbd5e1;
    position: relative;
    overflow: hidden;
}

.bio-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bio-avatar span {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 2rem;
}

.bio-text {
    margin: 16px 0;
    color: #64748b;
}

.bio-quote {
    color: var(--text-heading);
    font-weight: 500;
}

/* FAQ */
details {
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

summary {
    padding: 16px;
    cursor: pointer;
    font-weight: 500;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker { display: none; }

summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
}

details[open] summary::after { content: '−'; }

.faq-content {
    padding: 20px 16px 16px;
    color: #64748b;
    border-top: 1px solid var(--border);
}

.faq-container {
    max-width: 800px;
}

.faq-title {
    margin-bottom: 40px;
}


/* Blog */
.blog-list {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.card-horizontal {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

@media (min-width: 768px) {
    .card-horizontal {
        flex-direction: row;
    }
}

.card-img-placeholder {
    flex-shrink: 0;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-secondary);
    --img-x: 85%;
    --img-y: 50%;
}

@media (min-width: 768px) {
    .card-img-placeholder {
        width: 280px;
        aspect-ratio: auto;
    }
}

.card-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--img-x) var(--img-y);
    display: block;
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 768px) {
    .card-body {
        padding: 32px;
    }
}

.card-kicker {
    display: inline-block;
    padding: 4px 12px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    width: fit-content;
}

.card-title {
    font-size: 1.25rem;
    margin: 0;
}

.card-title a {
    color: var(--text-heading);
    transition: color 0.2s;
}

.card-title a:hover {
    color: var(--primary);
}

.card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto;
}

.card-link:hover {
    text-decoration: underline;
}

/* Article */
.article-container {
    padding: 48px 0 64px;
}

@media (min-width: 768px) {
    .article-container {
        padding: 64px 0 80px;
    }
}

.article-header {
    padding-bottom: 32px;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumbs-sep {
    color: #94a3b8;
    font-weight: 300;
}

.breadcrumbs-current {
    color: var(--text-main);
    font-weight: 500;
}

.article-header h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-bottom: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-subtitle {
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 16px;
    color: #64748b;
}

.article-meta {
    font-size: 0.9rem;
    color: #94a3b8;
}

.article-image {
    margin-bottom: 32px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    max-width: 720px;
    margin: 0 auto;
}

.article-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 16px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
}

.article-content a:hover {
    color: var(--primary-dark);
}

.article-content a.btn {
    color: white;
    text-decoration: none;
}

.article-content a.btn:hover {
    color: white;
}

.article-content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-main);
}

.article-content pre {
    margin: 20px 0;
    padding: 16px;
    background: #1e293b;
    color: #e2e8f0;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 0.9rem;
}

.article-content code {
    font-family: monospace;
}

.cta-block {
    margin-top: 48px;
    padding: 32px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.cta-block h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.cta-block p {
    margin-bottom: 20px;
}

/* Newsletter CTA: second paragraph is the "note" under the form */
.cta-block p + p {
    margin-top: 12px;
    font-size: 0.9rem;
    opacity: 0.85;
}

.cta-block .btn {
    margin-top: 8px;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    color: #64748b;
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 16px;
}
