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

:root {
    --primary-color: #D32F2F;
    --primary-dark: #B71C1C;
    --secondary-color: #333333;
    --light-color: #F5F5F5;
    --gray-color: #EEEEEE;
    --dark-gray: #666666;
    --white: #FFFFFF;
    --black: #000000;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 4px;
    --container-width: 1200px;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--white);
}

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

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

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

ul {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 4.2rem;
}

h2 {
    font-size: 3.6rem;
    text-align: center;
    position: relative;
    margin-bottom: 4rem;
}

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

h3 {
    font-size: 2.4rem;
}

p {
    margin-bottom: 1.5rem;
}

section {
    padding: 8rem 0;
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1.6rem;
}

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

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

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

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

.btn-text {
    background-color: transparent;
    color: var(--secondary-color);
    padding: 1.2rem;
}

.btn-text:hover {
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.05);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 100;
    padding: 1.5rem 0;
}

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

.logo a {
    display: block;
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 2.5rem;
}

.main-nav ul li a {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding-top: 15rem;
    padding-bottom: 8rem;
    background-color: var(--light-color);
}

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

.hero-content {
    flex: 1;
    padding-right: 4rem;
}

.hero-image {
    flex: 1;
}

.hero h1 {
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.hero p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: var(--dark-gray);
}

/* About Section */
.about {
    background-color: var(--white);
}

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

.about-text {
    flex: 1;
    padding-right: 4rem;
}

.about-image {
    flex: 1;
}

.about-text p {
    margin-bottom: 2rem;
}

/* Services Section */
.services {
    background-color: var(--light-color);
}

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

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-icon {
    margin-bottom: 2rem;
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.service-card p {
    color: var(--dark-gray);
}

/* Reviews Section */
.reviews {
    background-color: var(--white);
    text-align: center;
}

.reviews-carousel {
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto 3rem;
    height: 250px;
}

.review-card {
    background-color: var(--light-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
}

.review-card.active {
    opacity: 1;
    transform: translateX(0);
}

.review-stars {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.review-text {
    font-style: italic;
    margin-bottom: 2rem;
}

.review-author {
    font-weight: 700;
    color: var(--primary-color);
}

.reviews-controls {
    display: flex;
    justify-content: center;
    align-items: center;
}

.review-prev,
.review-next {
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
}

.review-dots {
    display: flex;
    margin: 0 2rem;
}

.review-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--gray-color);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.review-dots span.active {
    background-color: var(--primary-color);
}

/* Newsletter Section */
.newsletter {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.newsletter h2 {
    color: var(--white);
}

.newsletter h2::after {
    background-color: var(--white);
}

.newsletter p {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    margin-bottom: 2rem;
}

.form-group input {
    flex: 1;
    padding: 1.2rem;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1.6rem;
}

.form-group button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-checkbox input {
    margin-top: 0.5rem;
    margin-right: 1rem;
}

.form-checkbox label {
    font-size: 1.4rem;
}

.form-checkbox a {
    color: var(--white);
    text-decoration: underline;
}

.form-checkbox a:hover {
    color: var(--light-color);
}

/* Contact Section */
.contact {
    background-color: var(--light-color);
}

.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
}

.contact-info {
    flex: 1;
}

.contact-map {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    margin-bottom: 3rem;
}

.contact-icon {
    margin-right: 2rem;
    display: flex;
    align-items: flex-start;
}

.contact-text h3 {
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: var(--dark-gray);
}

/* Footer */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 6rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-about p {
    margin-top: 2rem;
    color: #AAAAAA;
}

.footer-links h3,
.footer-legal h3,
.footer-social h3 {
    color: var(--white);
    position: relative;
    padding-bottom: 1.5rem;
}

.footer-links h3::after,
.footer-legal h3::after,
.footer-social h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: 0;
    left: 0;
}

.footer-links ul,
.footer-legal ul {
    margin-top: 2rem;
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 1rem;
}

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

.footer-links ul li a:hover,
.footer-legal ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    margin-top: 2rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 1rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

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

.footer-bottom p {
    color: #AAAAAA;
    font-size: 1.4rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    z-index: 999;
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
}

.cookie-content h3 {
    margin-bottom: 1rem;
}

.cookie-options {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.cookie-modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--gray-color);
}

.close-modal {
    background: none;
    border: none;
    cursor: pointer;
}

.cookie-modal-body {
    padding: 2rem;
}

.cookie-option {
    margin-bottom: 2rem;
}

.cookie-option:last-child {
    margin-bottom: 0;
}

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cookie-option-header h4 {
    margin-bottom: 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 2rem;
    border-top: 1px solid var(--gray-color);
    text-align: right;
}

.hidden {
    display: none;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    html {
        font-size: 60%;
    }

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

@media screen and (max-width: 768px) {
    html {
        font-size: 58%;
    }

    .hero .container,
    .about-content,
    .contact-content {
        flex-direction: column;
    }

    .hero-content,
    .about-text,
    .contact-info {
        padding-right: 0;
        margin-bottom: 4rem;
    }

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

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

    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        transition: var(--transition);
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 3rem 0;
    }

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

    .form-group {
        flex-direction: column;
    }

    .form-group input {
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
    }

    .form-group button {
        border-radius: var(--border-radius);
    }
}

@media screen and (max-width: 576px) {
    html {
        font-size: 55%;
    }

    h1 {
        font-size: 3.6rem;
    }

    h2 {
        font-size: 3rem;
    }

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

    .cookie-options {
        flex-direction: column;
    }

    .cookie-options button {
        width: 100%;
    }
}
