:root {
    --primary-color: #007BFF;
    --secondary-color: #6C757D;
    --background-color: #F8F9FA;
    --text-color: #212529;
    --light-gray: #E9ECEF;
    --white: #FFFFFF;
}

/* Reset i podstawowe style */
html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.8;
    font-size: 18px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

h1, h2, h3, h4 {
    font-family: 'Rockwell', serif;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    margin-top: 1.5rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 2%;
    width: 96%;
    height: 3px;
    background-color: var(--primary-color);
}

/* Nagłówek strony */
header {
    background-color: var(--white);
    color: var(--text-color);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--light-gray);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

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

.logo {
    font-family: 'Rockwell', serif;
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
}

.logo-icon {
    margin-right: 0.5rem;
    width: 32px;
    height: 32px;
    fill: var(--primary-color);
}

.logo-link {
    text-decoration: none;
}

/* Jawne ustawienie kolejności elementów w nagłówku */





/* Media queries dla responsywności */
@media (min-width: 769px) {
    .main-nav {
        display: flex;
    }
    
    .hamburger {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.nav-active {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 0.3rem;
}

nav a.btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin-left: 1rem;
}

nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover:after {
    width: 100%;
}

/* Sekcja hero */
.hero {
    background-color: var(--warm-beige);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--paper-border);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    color: white;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(3px);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-cta {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.phone-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
}

.phone-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
    fill: var(--white);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background-color: var(--light-gray);
    color: var(--text-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-header {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.btn-header:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.benefit-icon {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
}

/* Services Section */
.services {
    padding: 110px 0;
    background: var(--background-color);
}

.section-title {
    font-family: 'Rockwell', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 10px;
    border: 1px solid var(--light-gray);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.service-card h3 {
    font-family: 'Rockwell', serif;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card p {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: 95px 0;
    background: var(--light-gray);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-top: 45px;
}

.price-table {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--light-gray);
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

.price-item:last-child {
    border-bottom: none;
}

.price-name {
    font-weight: 600;
    color: var(--text-color);
}

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

.packages {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.package-card {
    background: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
}

.package-card h4 {
    font-family: 'Rockwell', serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Reviews Section */
.testimonials {
    padding: 85px 0;
    background: var(--light-gray);
}

/* Karuzela opinii */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 40px auto 0;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    margin: 0 auto;
    max-width: 800px;
}

.stars {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
}

.review-author {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Przyciski karuzeli */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.carousel-btn-prev {
    left: 15px;
}

.carousel-btn-next {
    right: 15px;
}

.carousel-btn svg {
    fill: var(--primary-color);
}

/* Indikatory karuzeli */
.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cccccc; /* Darker gray for visibility */
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-indicator.active {
    background: var(--primary-color);
}

/* Responsywność karuzeli */
@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn-prev {
        left: 5px;
    }
    
    .carousel-btn-next {
        right: 5px;
    }
    
    .review-card {
        padding: 20px;
    }
    
    .carousel-slide {
        padding: 0 5px;
    }
}

/* Sekcja proces */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
}

.step-number-new {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.step .btn {
    margin-top: 1.5rem;
}

/* Sekcja o firmie */
.about {
    background-color: var(--light-gray);
    padding: 4rem 0;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.about-content {
    flex: 1;
}

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

/* Sekcja bloga - karuzela */
.expert-tips {
    padding: 85px 0;
    background: var(--background-color);
}

/* Karuzela artykułów */
.blog-carousel-container {
    position: relative;
    max-width: 100%;
    margin: 40px auto 0;
    overflow: hidden;
}

.blog-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.blog-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.blog-carousel-slide {
    min-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Mniejsze kafelki artykułów */
.blog-card-small {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row; /* Zmiana na układ poziomy */
    height: auto;
    max-width: 800px;
    margin: 0 auto;
}

.blog-card-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.blog-image-small {
    overflow: hidden;
    flex-shrink: 0;
    width: 40%; /* Zajmuje 40% szerokości */
}

.blog-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Zapewnia pełne wypełnienie */
    display: block;
}

.blog-content-small {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-title-small {
    font-family: 'Rockwell', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.read-more-small {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    margin-top: 1rem;
}

.read-more-small:hover {
    text-decoration: underline;
}

/* Przyciski karuzeli artykułów */
.blog-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.blog-carousel-btn:hover {
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.blog-carousel-btn-prev {
    left: 15px;
}

.blog-carousel-btn-next {
    right: 15px;
}

.blog-carousel-btn svg {
    fill: var(--primary-color);
}

/* Indikatory karuzeli artykułów */
.blog-carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.blog-carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-gray);
    cursor: pointer;
    transition: background 0.3s ease;
}

.blog-carousel-indicator.active {
    background: var(--primary-color);
}

/* Responsywność karuzeli artykułów */
@media (max-width: 768px) {
    .blog-carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .blog-carousel-btn-prev {
        left: 5px;
    }
    
    .blog-carousel-btn-next {
        right: 5px;
    }
    
    .blog-content-small {
        padding: 1rem;
    }
    
    .blog-carousel-slide {
        padding: 0 5px;
    }
    
    /* Dla urządzeń mobilnych zmień układ na pionowy */
    .blog-card-small {
        flex-direction: column;
    }
    
    .blog-image-small {
        width: 100%;
        height: 200px; /* Ustalona wysokość dla mobilnych */
    }
}

/* Contact Section */
.contact {
    padding: 90px 0;
    background: var(--secondary-color);
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info h3 {
    font-family: 'Rockwell', serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-item {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-form {
    background: var(--white);
    padding: 35px;
    border-radius: 10px;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    background: var(--background-color);
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
}

.contact-form .btn {
    width: 100%;
}

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

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--light-gray);
}

/* Nowa sekcja CTA dla desktopu */
.cta-section-desktop {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--background-color); /* Zmiana z var(--light-gray) */
    display: none; /* Domyślnie ukryty */
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: inline-block;
}

/* Małe przyciski CTA w usługach - domyślnie widoczne */
.service-cta-button {
    display: inline-block;
}

/* Na desktopie: ukryj małe przyciski i pokaż duży */
@media (min-width: 769px) {
    .service-cta-button {
        display: none;
    }
    
    .cta-section-desktop {
        display: block;
    }
}

/* Na mobilnych: ukryj duży przycisk CTA (jeśli istnieje z innych sekcji) */
@media (max-width: 768px) {
    .cta-section-desktop {
        display: none;
    }
}

/* Odstęp między sekcjami */
.section-spacer {
    height: 3rem;
}

/* Stopka */
footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 3rem 0;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.footer-logo {
    font-family: 'Rockwell', serif;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.8rem;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
}

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

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--secondary-color);
}

/* Mikrointerakcje */
.service-card, .testimonial, .step {
    transition: all 0.3s ease;
}

.service-card:hover, .testimonial:hover, .step:hover {
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
}

/* Responsywność */
/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--white);
        width: 100%;
        padding: 2rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .main-nav.nav-active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .hamburger {
        display: block;
    }

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

    .hamburger.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    nav ul {
        margin-top: 1.5rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .hero-bg {
        width: 70%;
        opacity: 0.2;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pricing-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .benefits {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Scroll-to-top button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-to-top svg {
    width: 30px;
    height: 30px;
    fill: var(--white);
}

/* Małe kafelki artykułów */
.blog-card-small {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row; /* Zmiana na układ poziomy */
    height: auto;
    max-width: 800px;
    margin: 0 auto;
}

.blog-card-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.blog-image-small {
    overflow: hidden;
    flex-shrink: 0;
    width: 40%; /* Zajmuje 40% szerokości */
}

.blog-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Zapewnia pełne wypełnienie */
    display: block;
}

.blog-content-small {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-title-small {
    font-family: 'Rockwell', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.read-more-small {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    margin-top: 1rem;
}

.read-more-small:hover {
    text-decoration: underline;
}

/* Responsywność karuzeli artykułów */
@media (max-width: 768px) {
    /* Dla urządzeń mobilnych zmień układ na pionowy */
    .blog-card-small {
        flex-direction: column;
    }
    
    .blog-image-small {
        width: 100%;
        height: 200px; /* Ustalona wysokość dla mobilnych */
    }
}