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

/* Zmienne globalne */
:root {
    --primary-color: #0056b3;
    --secondary-color: #f8f9fa;
    --accent-color: #ffc107;
    --text-color: #333;
    --text-light: #6c757d;
    --text-white: #fff;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Podstawowe style */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: #004085;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    padding: 0 15px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: #004085;
    color: var(--text-white);
}

.btn.secondary {
    background-color: var(--text-white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn.secondary:hover {
    background-color: #f0f0f0;
}

section {
    padding: 60px 0;
}

/* Nagłówek */
header {
    background-color: var(--text-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo img {
    width: 40px;
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

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

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero section */
.hero {
    background-color: var(--secondary-color);
    padding: 80px 0;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    max-height: 400px;
}

/* Sekcja usług */
.services {
    background-color: #fff;
}

.services h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Sekcja O nas */
.about {
    background-color: var(--secondary-color);
}

.about .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 2rem;
}

.stat {
    flex: 1;
    text-align: center;
}

.stat h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    max-height: 400px;
}

/* Sekcja referencji */
.testimonials {
    background-color: #fff;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
}

.testimonial {
    display: none;
}

.testimonial.active {
    display: block;
}

.testimonial-content {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}

.quote-icon {
    width: 40px;
    margin: 0 auto 20px;
}

.client-info {
    margin-top: 20px;
}

.client-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--primary-color);
}

/* Sekcja bloga */
.blog-section {
    background-color: var(--secondary-color);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--text-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.blog-image {
    height: 180px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    height: 60px;
    overflow: hidden;
}

.blog-content p {
    margin-bottom: 15px;
    height: 75px;
    overflow: hidden;
}

.read-more {
    font-weight: 500;
    color: var(--primary-color);
}

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

/* Sekcja kontaktu */
.contact {
    background-color: #fff;
}

.contact .container {
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 4px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: #004085;
    transform: translateY(-2px);
}

.subscription-form {
    flex: 1;
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.subscription-form h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

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

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
    margin-top: 4px;
}

/* Footer */
footer {
    background-color: #1f2937;
    color: var(--text-white);
    padding: 60px 0 30px;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-white);
}

.footer-column p {
    margin-bottom: 20px;
    opacity: 0.8;
}

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

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    opacity: 0.6;
}

/* Strona podziękowań */
.thanks-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    background-color: var(--secondary-color);
    text-align: center;
}

.thanks-content {
    max-width: 700px;
    padding: 40px;
    background-color: var(--text-white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.thanks-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.thanks-content h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.thanks-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Strony prawne */
.legal-section {
    background-color: var(--secondary-color);
    padding: 60px 0;
}

.legal-content {
    background-color: var(--text-white);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.legal-content h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.last-updated {
    color: var(--text-light);
    margin-bottom: 30px;
}

.legal-section-content {
    margin-bottom: 30px;
}

.legal-section-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.legal-section-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.legal-section-content ul, .legal-section-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-section-content li {
    margin-bottom: 10px;
}

.cookie-management {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    text-align: center;
}

.cookie-management p {
    margin-bottom: 20px;
}

/* Blog styly */
.blog-header {
    background-color: var(--primary-color);
    color: var(--text-white);
    text-align: center;
    padding: 60px 0;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-white);
}

.blog-articles {
    padding: 60px 0;
}

.blog-layout {
    display: flex;
    gap: 40px;
}

.blog-main {
    flex: 2;
}

.blog-post {
    background-color: var(--text-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.blog-post-image {
    height: 300px;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-content {
    padding: 30px;
}

.blog-post-content h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.blog-post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.blog-post-meta i {
    margin-right: 5px;
}

.blog-sidebar {
    flex: 1;
}

.sidebar-widget {
    background-color: var(--text-white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.search-form {
    display: flex;
}

.search-form input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.search-form button {
    padding: 10px;
    background-color: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    cursor: pointer;
}

.categories {
    list-style: none;
}

.categories li {
    margin-bottom: 10px;
}

.categories li a {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color);
}

.popular-posts {
    list-style: none;
}

.popular-posts li {
    margin-bottom: 15px;
}

.popular-posts li a {
    display: block;
}

.post-title {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

.post-date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
}

.sidebar-subscription-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Single artykuł */
.article-section {
    padding: 60px 0;
}

.article-header {
    margin-bottom: 30px;
}

.back-to-blog {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--text-light);
}

.article-header h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-meta i {
    margin-right: 5px;
}

.article-featured-image {
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 30px;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content h2 {
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.article-content h3 {
    font-size: 1.4rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

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

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

.article-tags {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.article-tags span {
    color: var(--text-light);
}

.article-tags a {
    background-color: var(--secondary-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.article-share {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-share span {
    color: var(--text-light);
}

.article-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    transition: var(--transition);
}

.article-share a:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.article-author {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 20px;
}

.article-author img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.author-info h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.related-posts {
    margin-top: 40px;
}

.related-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.related-post {
    background-color: var(--text-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.related-post img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post h4 {
    padding: 15px;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.related-post a {
    display: block;
    padding: 0 15px 15px;
    font-weight: 500;
}

/* Responsywność */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero .container, 
    .about .container,
    .contact .container {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .blog-layout {
        flex-direction: column;
    }
    
    .hero-image, 
    .about-image {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100%;
        background-color: var(--text-white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        padding: 80px 20px 20px;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .menu-toggle.active i:before {
        content: "\f00d";
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .thanks-buttons {
        flex-direction: column;
        gap: 10px;
    }
}
