/* =============== RESET & PODSTAWOWE STYLE =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

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

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    position: relative;
    margin-bottom: 50px;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.primary-btn {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.primary-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

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

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

/* =============== HEADER =============== */
header {
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

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

.logo span {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

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

nav ul li a {
    color: var(--primary-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    position: absolute;
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* =============== HERO SECTION =============== */
.hero {
    background-color: var(--light-color);
    padding: 100px 0;
}

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

.hero-content {
    flex: 1;
    padding-right: 20px;
}

.hero-image {
    flex: 1;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: 2.8rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* =============== ABOUT SECTION =============== */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-text {
    flex: 1;
}

/* =============== SERVICES SECTION =============== */
.services {
    background-color: var(--light-color);
}

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

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

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

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

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

/* =============== SHOWROOM SECTION =============== */
.showroom-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.showroom-text {
    flex: 1;
}

.showroom-image {
    flex: 1;
}

.showroom-text .btn {
    margin-top: 20px;
}

/* =============== TEAM SECTION =============== */
.team {
    background-color: var(--light-color);
}

.team-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.team-image {
    flex: 1;
}

.team-text {
    flex: 1;
}

/* =============== TESTIMONIALS SECTION =============== */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    display: none;
    animation: fade 0.5s;
}

.testimonial.active {
    display: block;
}

@keyframes fade {
    from {opacity: 0.4}
    to {opacity: 1}
}

.testimonial-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50px;
    border-width: 15px 15px 0;
    border-style: solid;
    border-color: #fff transparent transparent;
}

.testimonial-author {
    padding-left: 50px;
    font-weight: 600;
    margin-top: 20px;
}

.testimonial-controls {
    text-align: center;
    margin-top: 30px;
}

.testimonial-controls button {
    background-color: var(--secondary-color);
    color: var(--light-text);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 5px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.testimonial-controls button:hover {
    background-color: var(--primary-color);
}

/* =============== BLOG PREVIEW SECTION =============== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

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

.blog-image {
    height: 200px;
}

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

.blog-content {
    padding: 20px;
}

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

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    color: var(--secondary-color);
}

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

/* =============== CONTACT SECTION =============== */
.contact {
    background-color: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info h3,
.subscription-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

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

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

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.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;
    font-size: 1rem;
}

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

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

.form-group.checkbox label {
    font-weight: normal;
}

/* =============== FOOTER =============== */
footer {
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 10px;
}

.footer-links h4,
.footer-legal h4,
.footer-contact h4 {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-legal ul li a {
    color: #bdc3c7;
    transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-legal ul li a:hover {
    color: var(--light-text);
}

.footer-contact p {
    margin-bottom: 10px;
    color: #bdc3c7;
}

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

/* =============== THANK YOU PAGE =============== */
.thank-you {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px 20px;
}

.thank-you-icon {
    margin: 0 auto 30px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eafaf1;
    border-radius: 50%;
    color: #27ae60;
}

.thank-you h1 {
    margin-bottom: 20px;
}

.thank-you p {
    margin-bottom: 30px;
}

/* =============== BLOG PAGE =============== */
.blog-header {
    background-color: var(--light-color);
    padding: 80px 0;
    text-align: center;
}

.blog-header h1 {
    margin-bottom: 20px;
}

.blog-posts {
    padding: 80px 0;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* =============== SINGLE BLOG POST =============== */
.blog-post {
    padding: 80px 0;
}

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

.blog-post-header h1 {
    margin-bottom: 10px;
}

.blog-post-meta {
    color: #7f8c8d;
    margin-bottom: 30px;
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.blog-post-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.blog-post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

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

.blog-post-content img {
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.blog-post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

/* =============== LEGAL PAGES =============== */
.legal-page {
    padding: 80px 0;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    text-align: center;
    margin-bottom: 40px;
}

.legal-content h2 {
    text-align: left;
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-content h2::after {
    left: 0;
    transform: none;
}

.legal-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
    list-style-type: disc;
}

.legal-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
    list-style-type: decimal;
}

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

/* =============== COOKIE BANNER & MODAL =============== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 15px 20px;
    z-index: 1000;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    margin-bottom: 0;
    flex: 1;
}

.cookie-content p a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-buttons button {
    padding: 8px 15px;
    border-radius: 4px;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

#accept-all-cookies {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

#accept-all-cookies:hover {
    background-color: #2980b9;
}

#accept-necessary-cookies {
    background-color: transparent;
    color: var(--light-text);
    border: 1px solid var(--light-text);
}

#accept-necessary-cookies:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#cookie-settings {
    background-color: transparent;
    color: var(--light-text);
    text-decoration: underline;
}

#cookie-settings:hover {
    color: var(--secondary-color);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 30px;
}

.cookie-options {
    margin-bottom: 30px;
}

.cookie-option {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option input {
    margin-right: 10px;
}

.cookie-option label {
    font-weight: 600;
}

.cookie-option p {
    margin-top: 5px;
    margin-left: 25px;
    font-size: 0.9rem;
    color: #666;
}

/* =============== RESPONSIVE STYLES =============== */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero .container,
    .about-content,
    .showroom-content,
    .team-content {
        flex-direction: column;
        gap: 40px;
    }

    .hero-content {
        padding-right: 0;
        text-align: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--light-color);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.active {
        max-height: 300px;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
    }

    nav ul li {
        margin: 0 0 15px 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .services-grid,
    .blog-grid,
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
