:root {
    --color-primary: #00aaff;
    --color-primary-hover: #0088cc;
    --color-dark: #1e293b;
    --color-dark-text: #0f172a;
    --color-text: #334155;
    --color-light-text: #64748b;
    --color-bg: #ffffff;
    --color-bg-light: #f8fafc;
    --color-border: #e2e8f0;
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

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

.hidden {
    display: none;
}

/* Utility */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

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

.bg-dark {
    background-color: var(--color-dark);
}

.text-white {
    color: #ffffff;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.25rem;
    color: var(--color-dark-text);
    margin-bottom: 3rem;
    font-weight: 700;
}

.bg-dark .section-title {
    color: #ffffff;
}

.grid {
    display: grid;
    gap: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--color-primary-hover);
    color: #ffffff;
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 100;
    padding: 0;
    height: 72px;
    display: flex;
    align-items: center;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 100px;
    width: auto;
    display: block;
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav a {
    color: var(--color-text);
    font-weight: 500;
}

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

.nav-cta {
    background-color: var(--color-primary);
    color: #ffffff !important;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

.nav-cta:hover {
    background-color: var(--color-primary-hover);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-dark-text);
    margin-bottom: 5px;
    transition: var(--transition);
}

.mobile-menu-btn span:last-child {
    margin-bottom: 0;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 5rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 41, 59, 0.7);
}

.hero-content {
    color: #ffffff;
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* NOWE TEKSTY HERO */
.hero-main {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-sub {
    font-size: 1.125rem;
    color: #e2e8f0;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 4rem;
    }

    .hero-main {
        font-size: 2.25rem;
    }

    .hero-sub {
        font-size: 1.25rem;
    }
}

/* About */
.about-text {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-text);
}

/* Cards */
.card {
    background-color: var(--color-bg);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

/* Services */
.services-grid {
    grid-template-columns: 1fr;
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--color-dark-text);
    margin-bottom: 1rem;
}

/* Portfolio */
.portfolio-grid {
    grid-template-columns: 1fr;
}

.portfolio-item {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover img, .portfolio-item:focus-within img {
    transform: scale(1.05);
}

.portfolio-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 1rem;
    font-weight: 500;
    transform: translateY(100%);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-caption, .portfolio-item:focus-within .portfolio-caption {
    transform: translateY(0);
}

/* Pricing */
.pricing-grid {
    grid-template-columns: 1fr;
}

.pricing-card {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--color-dark-text);
    margin-bottom: 1rem;
}

.price-desc {
    color: var(--color-light-text);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.price-val {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.pricing-card.featured {
    border: 2px solid var(--color-primary);
    position: relative;
}

.pricing-card.featured::before {
    content: 'Polecane';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
    color: #cbd5e1;
}

.contact-details li {
    margin-bottom: 1rem;
}

.contact-details a {
    color: var(--color-primary);
}

.contact-form-wrapper {
    background-color: var(--color-bg);
    border-radius: 0.5rem;
    padding: 2rem;
    color: var(--color-text);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-dark-text);
}

.required {
    color: #ef4444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.2);
}

.btn-submit {
    width: 100%;
}

.form-success, .form-error {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.375rem;
    text-align: center;
    font-weight: 500;
}

.form-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 2rem 0;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-caption {
    color: #fff;
    margin-top: 1rem;
    font-size: 1.25rem;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 3rem;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--color-primary);
}

/* Media Queries */
@media (min-width: 768px) {
    .services-grid, .portfolio-grid, .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: var(--shadow);
        padding: 1rem 0;
        display: none;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-cta {
        display: block;
        text-align: center;
    }
}
/* HERO — poprawiona wersja premium, bez wpływu na resztę strony */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 5rem;
    overflow: hidden;
}

/* HERO — korekta zoomu tła */
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05); /* było 1.12 — zmniejszamy */
    transition: transform 10s ease;
}

/* Opcjonalnie: delikatny hover, ale bardzo subtelny */
.hero:hover .hero-bg img {
    transform: scale(1.08); /* było 1.18 — dużo mniej */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(15,23,42,0.75),
        rgba(15,23,42,0.85)
    );
}

.hero-content {
    color: #ffffff;
    max-width: 900px;
    animation: fadeInHero 1.2s ease forwards;
    opacity: 0;
}

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

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

.hero-main {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 1.4rem;
}

.hero-sub {
    font-size: 1.2rem;
    color: #dbeafe;
    max-width: 780px;
    margin: 0 auto 2.2rem auto;
    line-height: 1.55;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 4rem;
    }
    .hero-main {
        font-size: 2.2rem;
    }
    .hero-sub {
        font-size: 1.3rem;
    }
}


/* Slider fade */
.slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.slider .slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider .slides img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    animation: fade 12s infinite;
    object-fit: cover;
}

/* Każde zdjęcie startuje w innym momencie */
.slider .slides img:nth-child(1) {
    animation-delay: 0s;
}
.slider .slides img:nth-child(2) {
    animation-delay: 4s;
}
.slider .slides img:nth-child(3) {
    animation-delay: 8s;
}

@keyframes fade {
    0% { opacity: 0; }
    10% { opacity: 1; }
    30% { opacity: 1; }
    40% { opacity: 0; }
    100% { opacity: 0; }
}
/* Portfolio — ogólne */
.portfolio-grid {
    grid-template-columns: 1fr;
}

.portfolio-item {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.portfolio-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 1rem;
    font-weight: 500;
    transform: translateY(100%);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-caption,
.portfolio-item:focus-within .portfolio-caption {
    transform: translateY(0);
}

/* Slider fade */
.slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 250px;
}

.slider .slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider .slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: fade 12s infinite;
    object-fit: cover;
}

.slider .slides img:nth-child(1) { animation-delay: 0s; }
.slider .slides img:nth-child(2) { animation-delay: 4s; }
.slider .slides img:nth-child(3) { animation-delay: 8s; }

@keyframes fade {
    0% { opacity: 0; }
    10% { opacity: 1; }
    30% { opacity: 1; }
    40% { opacity: 0; }
    100% { opacity: 0; }
}

/* Desktop — 3 kolumny */
@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


.portfolio-video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0.5rem;
    display: block;
}

/* --- PRICING SECTION --- */

.pricing-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 2rem;
}

/* Karta jako prawdziwy „klocek” */
.pricing-card {
    background: #fff;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 260px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Wyróżniona karta (Standard) */
.pricing-card.featured {
    border: 2px solid var(--color-primary);
    background: #f8fbff;
}

/* Tytuł pakietu */
.pricing-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

/* Krótki opis */
.pricing-desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

/* Dodatkowe wyjaśnienie (mała czcionka) */
.pricing-small {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1.4rem;
    line-height: 1.4;
}

/* Cena — zawsze na dole */
.pricing-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: auto;
}
.pricing-card.addons-center {
    grid-column: 2 / 3; /* środkowa kolumna */
}

/* Portfolio — 3 kolumny jak w cenniku */
.portfolio-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
}

/* Wycentrowanie czwartego klocka */
.center-item {
    grid-column: 2 / 3;
}
