
/* ========== CSS VARIABLES ========== */
:root {
    /* Colors */
    --accent-1: #d6005a;
    --accent-2: #ff2d8f;
    --accent-gradient: linear-gradient(135deg, #d6005a, #ff2d8f);
    --bg-top: #2a001d;
    --bg-bottom: #0b0006;
    --card-bg: rgba(21, 0, 15, 0.92);
    --online: #00ff88;
    --safe-area-bottom: env(safe-area-inset-bottom, 20px);
    --safe-area-right: env(safe-area-inset-right, 20px);
    
    /* Spacing System */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 30px rgba(214, 0, 90, 0.2);
    --shadow-strong: 0 20px 40px rgba(214, 0, 90, 0.3);
    --shadow-glow: 0 0 40px rgba(214, 0, 90, 0.25);
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== OPTYMALIZACJA PERFORMANCE ========== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-overflow-scrolling: touch;
}

body {
    background: radial-gradient(circle at top, var(--bg-top), var(--bg-bottom) 70%) fixed;
    background-attachment: fixed;
    color: #fff;
    /* System font stack (bez zewnętrznych fontów = krótsza ścieżka krytyczna) */
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: 
        radial-gradient(circle at 20% 30%, rgba(214, 0, 90, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 45, 143, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* FIX dla iOS Safari - BEZ transform3d wszędzie */
@supports (-webkit-touch-callout: none) {
    body {
        background-attachment: scroll;
    }
    
    body::before {
        background: 
            radial-gradient(circle at 20% 30%, rgba(214, 0, 90, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(255, 45, 143, 0.05) 0%, transparent 50%);
    }
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
    margin: 0 0 var(--space-md) 0;
    line-height: 1.2;
    font-weight: 700;
}

p {
    margin: 0 0 var(--space-md) 0;
    color: rgba(255, 255, 255, 0.85);
}

.small-muted {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    opacity: 0.9;
}

/* ========== LAYOUT ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
    width: 100%;
    box-sizing: border-box;
}

/* ========== HEADER ========== */
header {
    background: rgba(10, 0, 6, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(90deg, #fff 0%, #ffb6d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* Trust Badges in Header */
.trust-badges {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    font-size: 0.85rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== BREADCRUMBS ========== */
.breadcrumb {
    background: rgba(10, 0, 6, 0.3);
    padding: var(--space-sm) 0;
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: var(--space-sm);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--accent-2);
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: var(--space-sm);
    color: rgba(255, 255, 255, 0.4);
}

/* ========== HERO SECTION ========== */
.hero-section {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    background: linear-gradient(90deg, #ffffff 0%, #ffb6d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.6;
    padding: 0 var(--space-lg);
    box-sizing: border-box;
}

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: var(--space-lg) var(--space-2xl);
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    text-decoration: none;
    min-width: 220px;
    min-height: 56px;
    box-sizing: border-box;
}

/* Secondary / ghost button (used e.g. for "Wróć na stronę główną") */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    min-height: 44px;
    box-sizing: border-box;
    transition: var(--transition-normal);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.btn-secondary:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 3px;
}

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

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

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-strong);
}

.btn-large {
    padding: 22px 60px;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 700;
    min-height: 64px;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 15px 40px rgba(214, 0, 90, 0.4); }
    50% { box-shadow: 0 20px 50px rgba(214, 0, 90, 0.6); }
}

/* ========== PROFILE CARDS ========== */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 var(--space-lg);
    box-sizing: border-box;
}

.profile-card {
    background: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    
    /* Gradient Border */
    background: 
        linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
        linear-gradient(135deg, var(--accent-1), var(--accent-2)) border-box;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.profile-card:nth-child(1) { animation-delay: 0.1s; }
.profile-card:nth-child(2) { animation-delay: 0.2s; }
.profile-card:nth-child(3) { animation-delay: 0.3s; }
.profile-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
    }
}

.profile-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

.profile-image-container {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: linear-gradient(90deg, #2a001d 25%, #3a002d 50%, #2a001d 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}

.profile-card:hover .profile-image {
    transform: scale(1.08);
}

.profile-image.loaded {
    opacity: 1;
    animation: none;
    background: none;
}

.online-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--online);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
    animation: pulse 2s infinite;
    z-index: 2;
}

.online-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
    display: inline-block;
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 4px 30px rgba(0, 255, 136, 0.6);
        transform: scale(1.05);
    }
}

.profile-content {
    padding: var(--space-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: white;
}

.profile-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: var(--space-lg);
    flex-grow: 1;
    min-height: 44px;
}

/* ========== LOCKED CARD ========== */
.locked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
    padding: var(--space-lg);
    text-align: center;
    box-sizing: border-box;
}

/* ========== BENEFITS SECTION ========== */
.benefits-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, transparent, rgba(214, 0, 90, 0.05) 50%, transparent);
    box-sizing: border-box;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-2xl);
    background: linear-gradient(90deg, #ffffff 0%, #ffb6d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 var(--space-lg);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    box-sizing: border-box;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: var(--space-xl);
    text-align: center;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(214, 0, 90, 0.3);
    transform: translateY(-8px);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
    display: inline-block;
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: white;
}

/* ========== CTA SECTION ========== */
.cta-section {
    padding: var(--space-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(214, 0, 90, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    background: linear-gradient(90deg, #ffffff 0%, #ffb6d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 var(--space-lg);
}

.cta-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.6;
    padding: 0 var(--space-lg);
    box-sizing: border-box;
}

/* ========== ONLINE COUNTER ========== */
.online-counter {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: var(--online);
    padding: var(--space-lg) var(--space-xl);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: var(--space-xl);
    transition: var(--transition-normal);
    box-sizing: border-box;
    min-height: 120px;
}

.online-counter:hover {
    background: rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

.counter-value {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.1rem;
    font-weight: 600;
}

.online-dot {
    width: 10px;
    height: 10px;
    background: var(--online);
    border-radius: 50%;
    display: inline-block;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.counter-info {
    font-size: 0.85rem;
    color: rgba(0, 255, 136, 0.7);
    text-align: center;
    line-height: 1.4;
}

/* ========== COUNTDOWN TIMER ========== */
.countdown-timer {
    background: rgba(214, 0, 90, 0.1);
    border: 1px solid rgba(214, 0, 90, 0.2);
    border-radius: 16px;
    padding: var(--space-lg);
    margin: var(--space-xl) auto;
    max-width: 400px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-sizing: border-box;
    min-height: 140px;
}

.countdown-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
    text-align: center;
}

.timer {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--accent-2);
}

.timer-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.timer-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--space-xs);
}

/* ========== NOTIFICATION - FIXED ========== */
.notification {
    position: fixed;
    bottom: var(--safe-area-bottom);
    right: var(--safe-area-right);
    background: var(--accent-gradient);
    color: white;
    padding: var(--space-md) var(--space-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-width: 300px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 60px;
    will-change: transform, opacity;
    left: auto;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* ========== EXIT INTENT MODAL - FIXED ========== */
.exit-modal.show {
    opacity: 1;
    visibility: visible;
}

.exit-modal.show .modal-content {
    transform: scale(1);
}

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

:focus-visible {
    outline: 2px solid var(--accent-1);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 0, 6, 0.5);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gradient);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff2d8f, #d6005a);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .profiles-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
    
    .header-container {
        padding: 0 var(--space-md);
    }
    
    .container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
        height: 70px;
    }
    
    .trust-badges {
        display: none;
    }
    
    .hero-section {
        padding: 100px 16px 60px;
    }
    
    .hero-title {
        font-size: 2rem;
        padding: 0 16px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 16px;
    }
    
    .btn-primary {
        width: 100%;
        max-width: 300px;
        padding: 16px 24px;
        font-size: 0.9rem;
        min-height: 50px;
    }
    
    .section-title {
        font-size: 1.75rem;
        padding: 0 16px;
    }
    
    .cta-title {
        font-size: 1.75rem;
        padding: 0 16px;
    }
    
    .cta-subtitle {
        font-size: 1rem;
        padding: 0 16px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .timer {
        font-size: 1.5rem;
    }
    
    .benefit-card {
        padding: var(--space-lg);
    }
    
    .profile-image-container {
        height: 320px;
    }
    
    .btn-large {
        padding: 18px 40px;
        font-size: 1.1rem;
        min-height: 60px;
    }
    
    .online-counter {
        padding: var(--space-md) var(--space-lg);
        margin: var(--space-lg) auto;
        min-height: 110px;
    }
    
    .countdown-timer {
        margin: var(--space-lg) auto;
        padding: var(--space-md);
        min-height: 120px;
    }
    
    .notification {
        max-width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
        bottom: max(20px, env(safe-area-inset-bottom, 20px));
    }
    
    /* Touch device optimizations */
    .profile-card,
    .benefit-card {
        transition: transform 0.2s ease;
    }
    
    .profile-card:active {
        transform: scale(0.98);
    }
    
    .modal-content {
        padding: 24px;
        margin: 0 16px;
        min-height: 280px;
    }
}

@media (max-width: 640px) {
    .profiles-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: var(--space-md);
        padding: 0 16px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        padding: 0 16px;
    }
    
    .footer-links {
        gap: var(--space-md);
        justify-content: center;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .profile-name {
        font-size: 1.25rem;
    }
    
    .profile-description {
        font-size: 0.9rem;
    }
    
    .benefit-title {
        font-size: 1.1rem;
    }
    
    .benefit-icon {
        font-size: 2rem;
    }
    
    .notification {
        max-width: calc(100vw - 32px);
        right: 16px;
        left: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .btn-primary {
        padding: 14px 20px;
        font-size: 0.85rem;
        min-width: auto;
        min-height: 48px;
    }
    
    .btn-large {
        padding: 16px 32px;
        font-size: 1rem;
        min-height: 56px;
    }
    
    .timer {
        font-size: 1.25rem;
        gap: var(--space-sm);
    }
    
    .timer-segment {
        min-width: 50px;
    }
    
    .online-counter {
        padding: 12px 16px;
        width: calc(100% - 32px);
        margin-left: 16px;
        margin-right: 16px;
        min-height: 100px;
    }
    
    .counter-value {
        font-size: 1rem;
    }
    
    .counter-info {
        font-size: 0.8rem;
    }
    
    .countdown-timer {
        min-height: 110px;
    }
}

@media (max-width: 360px) {
    .header-container {
        padding: 0 12px;
    }
    
    .hero-section {
        padding: 90px 12px 40px;
    }
    
    .hero-title {
        font-size: 1.25rem;
    }
    
    .btn-primary {
        padding: 12px 16px;
        font-size: 0.8rem;
        min-height: 44px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
    }
    
    svg {
        width: 16px;
        height: 16px;
    }
}

/* Touch device specific styles */
@media (hover: none) and (pointer: coarse) {
    .btn-primary:hover {
        transform: none;
    }
    
    .btn-primary:hover::before {
        left: -100%;
    }
    
    .profile-card:hover {
        transform: none;
    }
    
    .benefit-card:hover {
        transform: none;
    }
    
    .online-counter:hover {
        transform: none;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 80px 24px 40px;
    }
    
    .profile-image-container {
        height: 250px;
    }
    
    .hero-title {
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        margin-bottom: 32px;
    }
    
    .modal-content {
        min-height: 240px;
        padding: 16px;
    }
}



/* (intencjonalnie) Brak zewnętrznego ładowania fontów – poprawia PageSpeed */
    

/* ========== OFFCANVAS LINKS (Podstrony) ========== */
.rn-offcanvas-menu{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.rn-offcanvas-links{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.rn-offcanvas-link{
  width:100%;
  text-align:left;
}
.rn-offcanvas-link.btn-secondary{
  padding:12px 14px;
  border-radius:14px;
  text-decoration:none;
}
.rn-offcanvas-link.btn-secondary:hover{
  background:rgba(255,255,255,0.12);
}

/* Read more button on blog cards */
.rn-readmore{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
}
.rn-readmore.btn-primary{
  padding:12px 16px;
  border-radius:14px;
}


/* Blog safety: prevent long strings from breaking layout */
.blog-single, .blog-single .container, .blog-single article, .blog-single .content, .blog-archive article, .blog-archive p {
  overflow-wrap: break-word;
  word-break: break-word;
}


/* Blog cards: show only a snippet (like your other site) */
.rn-blog-excerpt{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  overflow-wrap:anywhere;
  word-break:break-word;
}
