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

:root {
    --primary-blue: #3B7BBF;
    --primary-blue-light: #5A9FD4;
    --primary-blue-dark: #2C5282;
    --accent-blue: #D4E4F7;
    --neutral-light: #EBF4FC;
    --neutral-medium: #D4E4F7;
    --neutral-dark: #5A9FD4;
    --text-dark: #1F2937;
    --text-medium: #4B5563;
    --text-light: #6B7280;
    --white: #FFFFFF;
    --background: #F9FAFB;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-strong: rgba(0, 0, 0, 0.25);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--background);
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 80px 0 100px;
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
    overflow: hidden;
    margin-bottom: 60px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-graphic {
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Main Content */
.main-content {
    padding-bottom: 60px;
}

.intro-section {
    background: var(--white);
    padding: 60px 0;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}

/* Two Column Layout */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.two-column-layout.reverse {
    direction: rtl;
}

.two-column-layout.reverse > * {
    direction: ltr;
}

.text-column {
    position: relative;
    z-index: 1;
}

.image-column {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow-medium);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
    box-shadow: 0 30px 80px var(--shadow-strong);
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 123, 191, 0.1) 0%, rgba(90, 159, 212, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.image-wrapper:hover::before {
    opacity: 1;
}

.section-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 400px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 123, 191, 0.05) 0%, rgba(90, 159, 212, 0.05) 100%);
    pointer-events: none;
}

/* Mini Gallery */
.mini-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.mini-gallery .image-wrapper.secondary-image {
    transform: perspective(1000px) rotateY(5deg);
}

.mini-gallery .image-wrapper.secondary-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

.mini-gallery .secondary-image .section-image {
    min-height: 250px;
}

@media (max-width: 968px) {
    .mini-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mini-gallery .secondary-image .section-image {
        min-height: 200px;
    }
}

.intro-section p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-medium);
    position: relative;
    z-index: 1;
}

.intro-section p:last-child {
    margin-bottom: 0;
}

/* Content Sections */
.content-section {
    background: transparent;
    padding: 80px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: visible;
}

.content-section:nth-child(even) {
    background: rgba(232, 238, 241, 0.3);
    padding: 80px 0;
    border-radius: 0;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--neutral-medium);
    position: relative;
    z-index: 1;
}

.section-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    flex: 1;
    transition: all 0.3s ease;
}

.section-header:hover h2 {
    letter-spacing: 0.5px;
}

.content-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, var(--neutral-light) 0%, var(--neutral-medium) 100%);
    padding: 35px;
    border-radius: 15px;
    margin: 30px 0;
    border-left: 5px solid var(--primary-blue);
    box-shadow: 0 8px 25px var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
}

.highlight-box:hover {
    transform: translateX(5px);
    box-shadow: 0 12px 35px var(--shadow-medium);
    border-left-width: 8px;
}

.highlight-box h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.5;
}

.summary-highlight {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--primary-blue-light) 100%);
    border-left-color: var(--primary-blue);
}

.final-highlight {
    background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--accent-blue) 100%);
    border-left-color: var(--primary-blue-dark);
    margin-top: 30px;
}

.final-highlight p {
    margin: 0;
    font-size: 1.15rem;
}

/* Summary Section */
.summary-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--neutral-light) 100%);
    border: 2px solid var(--neutral-medium);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
    padding: 30px 0;
    text-align: center;
    color: var(--white);
    margin-top: 60px;
}

.footer p {
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer a {
    color: var(--white);
    text-decoration: underline;
    transition: opacity 0.3s;
}

.footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Additional Responsive Design */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .container-wide {
        padding: 0 15px;
    }
    
    .two-column-layout {
        gap: 30px;
    }
    
    .section-image {
        min-height: 250px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--accent-blue);
    color: var(--white);
}

/* Content Links */
.content-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-blue);
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.content-link:hover {
    color: var(--primary-blue-dark);
    border-bottom-color: var(--primary-blue);
    transform: translateY(-2px);
}

.content-link::after {
    content: ' →';
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-link:hover::after {
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatDelay {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes floatDelay2 {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-25px);
    }
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(50px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

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

.fade-in {
    animation: fadeIn 1s ease-in;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.content-section:nth-child(2) .fade-in-up {
    animation-delay: 0.1s;
}

.content-section:nth-child(3) .fade-in-up {
    animation-delay: 0.2s;
}

.content-section:nth-child(4) .fade-in-up {
    animation-delay: 0.3s;
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-animation-delay {
    animation: floatDelay 5s ease-in-out infinite;
    animation-delay: 1s;
}

.float-animation-delay-2 {
    animation: floatDelay2 7s ease-in-out infinite;
    animation-delay: 2s;
}

.wave-animation {
    animation: wave 20s linear infinite;
}

.wave-animation-delay {
    animation: wave 25s linear infinite;
    animation-direction: reverse;
}

.animated-icon {
    animation: pulse 3s ease-in-out infinite;
}

/* Decorative Elements */
.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.decorative-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--primary-blue-light) 100%);
    opacity: 0.2;
    animation: float 8s ease-in-out infinite;
}

.circle-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--neutral-light) 100%);
}

.circle-3 {
    width: 120px;
    height: 120px;
    top: 50%;
    left: 5%;
    animation-delay: 4s;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
}

.intro-decoration {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}


.section-decoration {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary-blue-light) 0%, transparent 70%);
    opacity: 0.15;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}

.content-section {
    position: relative;
}

/* Enhanced Hero */
.hero h1.fade-in {
    animation: fadeInUp 1s ease-out;
}

/* Enhanced Highlight Boxes */
.highlight-box {
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

.highlight-box > * {
    position: relative;
    z-index: 1;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--neutral-light) 50%, var(--white) 100%);
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(90, 159, 212, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 123, 191, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.gallery-section .container-wide {
    position: relative;
    z-index: 1;
}

.gallery-section h2 {
    text-align: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 50%, var(--primary-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 25px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.gallery-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-light) 50%, var(--primary-blue) 100%);
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(59, 123, 191, 0.3);
}

.gallery-section h2::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 5px;
    background: var(--accent-blue);
    border-radius: 3px;
    opacity: 0.5;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    aspect-ratio: 4/3;
    cursor: zoom-in;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px var(--shadow-strong);
    z-index: 10;
}

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

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(44, 82, 130, 0.95) 0%, rgba(59, 123, 191, 0.7) 50%, transparent 100%);
    padding: 25px 20px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 123, 191, 0.2) 0%, rgba(90, 159, 212, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

@media (max-width: 1200px) {
    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .gallery-masonry {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 50px;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 4px solid var(--primary-blue);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-blue) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px var(--shadow-strong);
}

.stat-card:hover::before {
    opacity: 0.1;
}

.stat-card > * {
    position: relative;
    z-index: 1;
}

.stat-card:nth-child(2) {
    border-top-color: var(--accent-blue);
}

.stat-card:nth-child(3) {
    border-top-color: var(--primary-blue-light);
}

.stat-card:nth-child(4) {
    border-top-color: var(--primary-blue-dark);
}

.stat-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: block;
    transition: transform 0.3s ease;
}

.stat-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(59, 123, 191, 0.2));
}

.stat-card:hover .stat-icon {
    transform: scale(1.15) rotate(5deg);
}

.stat-card:hover .stat-icon svg {
    filter: drop-shadow(0 6px 12px rgba(59, 123, 191, 0.4));
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-medium);
    font-weight: 500;
}

/* Responsive adjustments for animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive Design Updates */
@media (max-width: 1200px) {
    .container-wide {
        max-width: 100%;
        padding: 0 30px;
    }
    
    .two-column-layout {
        gap: 40px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .two-column-layout.reverse {
        direction: ltr;
    }
    
    .image-wrapper {
        transform: none;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .image-wrapper:hover {
        transform: scale(1.02);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .container-wide {
        padding: 0 20px;
    }
    
    .intro-section {
        padding: 40px 0;
    }
    
    .content-section {
        padding: 50px 0;
    }
    
    .stats-section {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .stat-card {
        padding: 30px 20px;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-image {
        min-height: 300px;
    }
}

/* ===== STYLE DLA POPUPÓW - GOTOWE DO WKLEJENIA ===== */

/* POPUP #2 - Exit Intent Modal (backdrop) */
.lead-pop__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100050;
}

.lead-pop__modal {
  width: min(92vw, 560px);
  background: #fff;
  color: #111;
  border-radius: 14px;
  border: 1px solid #dcdcdc;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
  overflow: hidden;
  font: 16px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  position: relative;
}

.lead-pop__head {
  padding: 14px 16px;
  background: #3B7BBF;
  color: #fff;
  font-weight: 700;
}

.lead-pop__body {
  padding: 0;
}

.lead-pop__close {
  position: absolute;
  right: 10px;
  top: 8px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* Dark mode dla exit intent modal */
@media (prefers-color-scheme: dark) {
  .lead-pop__modal {
    background: #161b22;
    color: #e6edf3;
    border-color: #2d333b;
  }
  .lead-pop__head {
    background: #3B7BBF;
  }
  .lead-pop__close {
    color: #fff;
  }
}

/* POPUP #1 - Fly-in (dół/prawo) - Formularz kontaktowy */
.lead-flyin {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(92vw, 520px);
  z-index: 100060;
  display: none;
  font: 16px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.lead-flyin__box {
  background: #fff;
  color: #111;
  border-radius: 14px;
  border: 1px solid #dcdcdc;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
  overflow: hidden;
  transform: translateY(12px) scale(.98);
  opacity: 0;
  transition: transform .22s, opacity .22s, box-shadow .2s;
}

.lead-flyin--visible .lead-flyin__box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.lead-flyin__head {
  padding: 14px 16px;
  background: #3B7BBF;
  color: #fff;
  font-weight: 700;
  position: relative;
}

.lead-flyin__close {
  position: absolute;
  right: 10px;
  top: 8px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.lead-flyin__body {
  padding: 0;
  background: #fff;
}

.lead-flyin__iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

/* Dark mode dla fly-in */
@media (prefers-color-scheme: dark) {
  .lead-flyin__box {
    background: #161b22;
    color: #e6edf3;
    border-color: #2d333b;
  }
}

/* Responsywność dla większych ekranów */
@media (min-width: 1280px) {
  .lead-flyin {
    right: 28px;
    bottom: 28px;
  }
}

/* Site navigation */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100000;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 12px 20px;
  background: var(--primary-blue-dark);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--accent-blue);
  box-shadow: 0 2px 12px var(--shadow-light);
  backdrop-filter: blur(8px);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.site-nav__brand {
  color: var(--primary-blue-dark);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__brand:hover {
  color: var(--primary-blue);
  text-decoration: none;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-block;
  padding: 10px 16px;
  color: var(--text-medium);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--primary-blue);
  background: var(--neutral-light);
  text-decoration: none;
}

.nav-link.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 1px solid var(--accent-blue);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--primary-blue-dark);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--accent-blue);
    box-shadow: 0 8px 24px var(--shadow-light);
    padding: 12px 20px 16px;
  }

  .site-nav__links.is-open {
    display: flex;
  }

  .site-nav__inner {
    position: relative;
    flex-wrap: wrap;
  }

  .nav-link {
    width: 100%;
  }
}

/* Publisher Blog — bez podkreśleń na kartach */
.publisher-blog__card,
.publisher-blog__btn,
.nav-link,
.site-nav__brand {
  text-decoration: none;
}

.publisher-blog__card:hover,
.publisher-blog__btn:hover,
.publisher-blog__card:focus-visible,
.publisher-blog__btn:focus-visible,
.nav-link:hover,
.site-nav__brand:hover {
  text-decoration: none;
}
