/* ========================================
   CSS Variables based on design system
   ======================================== */
:root {
    /* Colors */
    --white: #FFFFFF;
    --orange: #FF6600;
    --orange-light: #FF8533;
    --orange-dark: #E55A00;
    --black: #000000;
    --charcoal: #2C2C2C;
    --dark-gray: #5A5A5A;
    /* Adjusted for better contrast (was #666666) */
    --medium-gray: #9E9E9E;
    /* Adjusted for better contrast (was #999999) */
    --light-gray: #E0E0E0;
    --off-white: #F8F8F8;

    /* Typography */
    --font-primary: 'Open Sans', Arial, sans-serif;
    --font-secondary: 'Roboto', Helvetica, sans-serif;

    /* Spacing */
    --container-max-width: 100%;
    --container-padding: 20px;
    --section-padding: 64px 20px;
    --component-spacing: 24px;

    /* Light Theme Palette */
    --background-primary: var(--white);
    --background-secondary: var(--off-white);
    --text-primary: var(--charcoal);
    --text-secondary: var(--dark-gray);
    --text-on-primary-bg: var(--white);
    --accent-primary: var(--orange);
    --accent-secondary: var(--orange-dark);
    --border-color: var(--light-gray);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --footer-background: var(--charcoal);
    --footer-text: var(--light-gray);
    --cta-background: var(--charcoal);
    --cta-text: var(--white);
}

html.dark-mode {
    --background-primary: #1a1c1e;
    --background-secondary: #242629;
    --text-primary: #e0e2e6;
    --text-secondary: #a8acb3;
    /* Adjusted for better contrast (was #a0a3a8) */
    --text-on-primary-bg: #FFFFFF;
    --accent-primary: #ff8533;
    /* Adjusted for better contrast (was #ff7c24) */
    --accent-secondary: #e56a1f;
    --border-color: #3d3f43;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --footer-background: #000000;
    --footer-text: #a0a3a8;
    --cta-background: #121212;
    --cta-text: #e0e2e6;
}

/* Logo Dark Mode */
.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

html.dark-mode .logo-light {
    display: none;
}

html.dark-mode .logo-dark {
    display: block;
}

/* ========================================
   Reset and Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--background-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Main content spacing */
.main-content {
    margin-top: 80px;
}

/* ========================================
   Desktop Header Styles
   ======================================== */
.header-desktop {
    background: var(--background-primary);
    border-bottom: 1px solid var(--border-color);
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 4px var(--shadow-color);
    display: block;
}

.header-desktop .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
    width: 100%;
    max-width: 100vw;
    flex-wrap: nowrap;
}

/* Desktop Logo */
.header-desktop .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
    min-width: fit-content;
    z-index: 1001;
}

.header-desktop .logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.header-desktop .logo:hover {
    opacity: 0.8;
}

.header-desktop .logo:hover img {
    transform: scale(1.05);
}

/* Desktop Navigation */
.header-desktop .nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.header-desktop .nav-list {
    display: flex;
    list-style: none;
    gap: clamp(16px, 3vw, 32px);
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.header-desktop .nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: clamp(14px, 2.5vw, 16px);
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
    position: relative;
}

.header-desktop .nav-link:hover {
    color: var(--accent-primary);
    background: var(--background-secondary);
}

.header-desktop .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header-desktop .nav-link:hover::after {
    width: 80%;
}

/* Desktop Header Contact */
.header-desktop .header-contact {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    min-width: fit-content;
}

.header-desktop .phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header-desktop .phone-number {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: clamp(12px, 2vw, 14px);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.header-desktop .phone-number:hover {
    color: var(--accent-secondary);
}

/* ========================================
   Mobile Header Styles
   ======================================== */
.header-mobile {
    background: var(--background-primary);
    border-bottom: 1px solid var(--border-color);
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100vw;
    box-shadow: 0 2px 4px var(--shadow-color);
    display: none;
}

.header-mobile .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
    width: 100vw;
    max-width: 100vw;
    flex-wrap: nowrap;
}

/* Mobile Logo */
.header-mobile .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
    min-width: fit-content;
    z-index: 1001;
}

.header-mobile .logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.header-mobile .logo:hover {
    opacity: 0.8;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 1001;
    min-width: fit-content;
}

.mobile-menu-toggle:hover {
    color: var(--accent-primary);
    background: var(--background-secondary);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--background-primary);
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 8px var(--shadow-color);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-content {
    padding: 24px 20px;
}

.mobile-nav {
    list-style: none;
    margin-bottom: 24px;
}

.mobile-nav li {
    margin-bottom: 16px;
}

.mobile-nav-link {
    display: block;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--accent-primary);
}

.mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-phone {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
}

.mobile-btn {
    display: block;
    text-align: center;
    margin: 0 auto;
    max-width: 200px;
    width: 100%;
}

/* ========================================
   Button Styles
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--text-on-primary-bg);
}

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

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    padding: 10px 22px;
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: var(--text-on-primary-bg);
}

.hamburger {
    display: inline-block;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 8px;
    z-index: 1001;
}

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

.hamburger.is-active .hamburger-inner {
    background-color: transparent;
}

.hamburger.is-active .hamburger-inner::before {
    top: 0;
    transform: rotate(45deg);
}

.hamburger.is-active .hamburger-inner::after {
    top: 0;
    transform: rotate(-45deg);
}

.hamburger .hamburger-inner::before,
.hamburger .hamburger-inner::after {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s ease-in-out;
}

.hamburger .hamburger-inner::before {
    top: -8px;
}

.hamburger .hamburger-inner::after {
    top: 8px;
}

/* ========================================
   Services CTA Section
   ======================================== */
.services-cta {
    padding: 80px 0;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.cta-buttons .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.phone-info {
    margin-top: 16px;
}

.phone-text {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-secondary);
    display: block;
}

.phone-btn {
    display: none;
    width: 100%;
    max-width: 300px;
    text-align: center;
}

/* Mobile - pokaż przycisk, ukryj tekst */
@media (max-width: 768px) {
    .phone-text {
        display: none;
    }

    .phone-btn {
        display: block;
    }
}

/* Services Grid - 4 kolumny na desktop */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

/* Tablet responsiveness */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .services-cta {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }

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

/* ========================================
   Privacy Policy Styles
   ======================================== */
.privacy-section {
    padding: 80px 0;
    background: var(--background-primary);
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.privacy-content h2 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-primary);
}

.privacy-content h2:first-child {
    margin-top: 0;
}

.privacy-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 16px;
}

.privacy-content ul {
    margin: 16px 0;
    padding-left: 20px;
}

.privacy-content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.privacy-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.privacy-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.privacy-footer p {
    color: var(--medium-gray);
    font-style: italic;
    margin: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .privacy-section {
        padding: 60px 0;
    }

    .privacy-content h2 {
        font-size: 20px;
    }

    .privacy-content p {
        font-size: 14px;
    }
}

/* ========================================
   Footer Styles
   ======================================== */
.footer {
    background: var(--footer-background);
    color: var(--footer-text);
    padding: 48px 0 24px;
    margin-top: 80px;
}

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

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

.footer-section h3 {
    color: var(--accent-primary);
    margin-bottom: 16px;
    font-size: 18px;
}

.footer-section p,
.footer-section a {
    color: var(--footer-text);
    text-decoration: none;
    margin-bottom: 8px;
    display: block;
}

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

/* ========================================
   Hero Section Styles
   ======================================== */
.hero {
    position: relative;
    padding: 140px 0;
    text-align: center;
    color: var(--white);
    background:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('../images/photos/immo-wegmann-2nsQWyPU6tw-unsplash.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Categories Section Styles
   ======================================== */
.categories-section {
    padding: var(--section-padding);
    background: var(--background-secondary);
}

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

.section-header h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.category-card {
    background: var(--background-primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-image {
    height: 200px;
    background: var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-content {
    padding: 24px;
}

.category-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.category-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.category-count {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 14px;
}

/* ========================================
   About Section Styles
   ======================================== */
.about-section {
    padding: var(--section-padding);
    background: var(--background-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.about-text p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.services-list {
    list-style: none;
    margin-top: 24px;
}

.services-list li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 24px;
}

.services-list li::before {
    content: "✓";
    color: var(--accent-primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.about-image {
    background: var(--border-color);
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px var(--shadow-color);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* ========================================
   Contact CTA Styles
   ======================================== */
.contact-cta {
    background: var(--cta-background);
    color: var(--cta-text);
    padding: var(--section-padding);
    text-align: center;
}

.contact-cta h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
}

.contact-cta p {
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

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

.contact-item h3 {
    color: var(--accent-primary);
    margin-bottom: 8px;
    font-size: 18px;
}

.contact-item p {
    color: var(--border-color);
}

/* ========================================
   Responsive Styles
   ======================================== */

/* Desktop styles - show desktop header, hide mobile header */
@media (min-width: 768px) {
    .header-desktop {
        display: block;
    }

    .header-mobile {
        display: none;
    }

    /* Container padding adjustments */
    .container {
        padding: 0 16px;
    }

    /* Button responsive */
    .btn {
        padding: 12px 24px;
        font-size: 16px;
    }

    /* Header contact responsive */
    .header-desktop .phone-numbers {
        gap: 2px;
    }

    .header-desktop .phone-number {
        font-size: clamp(11px, 1.8vw, 13px);
    }
}

/* Mobile styles - hide desktop header, show mobile header */
@media (max-width: 767px) {
    .header-desktop {
        display: none;
    }

    .header-mobile {
        display: block;
    }

    /* Container padding adjustment for mobile */
    .container {
        padding: 0;
    }

    /* Header mobile full width */
    .header-mobile .container {
        padding: 0 16px;
        width: 100vw;
        max-width: 100vw;
    }

    /* Button responsive */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Hero responsive */
    .hero {
        padding: 160px 0 60px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* About responsive */
    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Categories responsive - horizontal scroll on mobile */
    .categories-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding: 0 16px;
        margin-left: -16px;
        margin-right: -16px;
    }

    .category-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }

    /* Hide scrollbar but keep functionality */
    .categories-grid::-webkit-scrollbar {
        height: 8px;
    }

    .categories-grid::-webkit-scrollbar-track {
        background: transparent;
    }

    .categories-grid::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 4px;
    }

    .categories-grid::-webkit-scrollbar-thumb:hover {
        background: var(--text-secondary);
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 24px;
    }

    .header-desktop .container {
        gap: 16px;
    }

    .header-desktop .nav-list {
        gap: clamp(12px, 2vw, 24px);
    }

    /* Button tablet */
    .btn {
        padding: 11px 22px;
        font-size: 15px;
    }
}


/* ========================================
   Interactive Google Maps Section Styles
   ======================================== */
.interactive-map-section {
    padding: var(--section-padding);
    background: var(--background-primary);
}

.interactive-map-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.interactive-map-section .section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.map-container {
    background: var(--background-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px var(--shadow-color);
    margin-bottom: 3rem;
    height: 450px;
    position: relative;
    border: 1px solid var(--border-color);
}

#google-map {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    position: relative;
}

.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: var(--text-on-primary-bg);
    font-size: 1.2rem;
    font-weight: 500;
}

.loading-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    font-size: 1.5rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.reviews-section {
    background: var(--background-primary);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.reviews-title h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 600;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--background-secondary);
    padding: 15px 25px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
}

.rating-stars {
    color: #f39c12;
    font-size: 1.3rem;
}

.rating-text {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.add-review-btn {
    background: var(--accent-primary);
    color: var(--text-on-primary-bg);
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
}

.add-review-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow-color);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.review-card {
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-primary);
    border: 1px solid var(--border-color);
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px var(--shadow-color);
    border-color: var(--accent-primary);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-on-primary-bg);
    font-weight: bold;
    margin-right: 15px;
    font-size: 1.2rem;
    overflow: hidden;
    background: var(--accent-primary);
}

.reviewer-info h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
    font-weight: 600;
}

.review-rating {
    color: #f39c12;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.review-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.review-text {
    color: var(--text-primary);
    line-height: 1.6;
    font-style: italic;
}

/* ========================================
   CAPTCHA Protection Styles
   ======================================== */
.captcha-protection {
    background: var(--background-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 4px 16px var(--shadow-color);
}

.captcha-box h4 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.captcha-box p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.captcha-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.captcha-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-primary);
}

.captcha-checkbox label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
}

.captcha-info {
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.captcha-info small {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

#enableMapBtn {
    background: var(--accent-primary);
    color: var(--text-on-primary-bg);
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

#enableMapBtn:enabled {
    opacity: 1;
    background: var(--accent-primary);
}

#enableMapBtn:enabled:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-color);
}

#enableMapBtn:disabled {
    cursor: not-allowed;
    background: var(--border-color);
    color: var(--text-secondary);
}

/* Responsive adjustments for interactive map section */
@media (max-width: 768px) {
    .captcha-protection {
        padding: 2rem;
        margin-bottom: 2rem;
    }

    .captcha-box h4 {
        font-size: 1.3rem;
    }

    .captcha-box p {
        font-size: 1rem;
    }

    .captcha-checkbox {
        flex-direction: column;
        gap: 8px;
    }

    #enableMapBtn {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .reviews-header {
        flex-direction: column;
        align-items: stretch;
    }

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

    .rating-summary {
        justify-content: center;
    }

    .map-container {
        height: 350px;
    }

    .reviews-section {
        padding: 2rem;
    }

    .interactive-map-section .section-header h2 {
        font-size: 2rem;
    }
}

/* ========================================
   PARTNERS SECTION STYLES
   ======================================== */
.partners-section {
    padding: var(--section-padding);
    background: var(--background-primary);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 48px;
    align-items: center;
    justify-items: center;
    justify-content: center;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.partner-card {
    background: var(--background-primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    border: 1px solid var(--border-color);
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-color);
    border-color: var(--accent-primary);
}

.partner-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 24px;
    text-align: center;
}

.partner-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.partner-logo img {
    max-width: 180px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.partner-card:hover .partner-logo img {
    transform: scale(1.05);
    opacity: 0.9;
}

.partner-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

/* Placeholder logo styles */
.placeholder-logo {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: var(--text-on-primary-bg);
    font-weight: 700;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.partner-card:hover .placeholder-logo {
    transform: scale(1.05);
    box-shadow: 0 4px 16px var(--shadow-color);
}

/* Special logo backgrounds for better visibility */
.niczuk-logo {
    background-color: var(--background-primary);
    border-radius: 8px;
    padding: 8px;
}

.ottone-logo {
    background-color: var(--background-primary);
    border-radius: 8px;
    padding: 8px;
}

.almeva-logo {
    overflow: hidden;
    height: 100px;
}

.almeva-logo img {
    transform: scale(2.5);
    transition: transform 0.3s ease;
}

html.dark-mode .niczuk-logo,
html.dark-mode .ottone-logo,
html.dark-mode .almeva-logo {
    background-color: var(--background-primary);
}


/* Why Partners Section */
.why-partners-section {
    padding: var(--section-padding);
    background: var(--background-secondary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.benefit-card {
    background: var(--background-primary);
    padding: 32px 24px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.benefit-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

/* Responsive adjustments for partners */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

    .partner-card {
        box-shadow: none;
        border: none;
        max-width: none;
    }

    .partner-card:hover {
        transform: none;
        box-shadow: none;
    }

    .partner-link {
        padding: 8px;
    }

    .partner-logo {
        height: 50px;
        margin-bottom: 0;
    }

    .partner-logo img {
        max-width: 100%;
        max-height: 40px;
    }

    .partner-info {
        display: none;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefit-card {
        padding: 24px 20px;
    }
}

/* ========================================
   CONTACT PAGE STYLES
   ======================================== */
.contact-info-section {
    padding: var(--section-padding);
    background: var(--background-primary);
}

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

.contact-card {
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 16px var(--shadow-color);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px var(--shadow-color);
    border-color: var(--accent-primary);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.contact-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.contact-card a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--accent-secondary);
}

.phone-numbers p {
    margin-bottom: 12px;
}

.phone-numbers a {
    font-size: 18px;
    font-weight: 600;
}

.hours p {
    margin-bottom: 8px;
}

/* Services Section */
.services-section {
    padding: var(--section-padding);
    background: var(--background-secondary);
}


.service-card {
    background: var(--background-primary);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 16px var(--shadow-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px var(--shadow-color);
    border-color: var(--accent-primary);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.service-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.service-features li {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.service-features li::before {
    content: "•";
    color: var(--accent-primary);
    font-weight: bold;
    font-size: 16px;
}

/* Contact Form Section */
.contact-form-section {
    padding: var(--section-padding);
    background: var(--background-primary);
}

.form-container {
    max-width: 800px;
    margin: 48px auto 0;
}

.contact-form {
    background: var(--background-secondary);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 16px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    background: var(--background-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

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

.checkbox-group {
    margin-bottom: 16px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label a {
    color: var(--accent-primary);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    width: 100%;
}

/* Map Section */
.map-section {
    padding: var(--section-padding);
    background: var(--background-secondary);
}

.map-container {
    margin-top: 48px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px var(--shadow-color);
}

.map-placeholder {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-on-primary-bg);
}

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

.map-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.map-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.map-content p {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.9;
}

/* Responsive adjustments for contact page */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-card {
        padding: 24px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-form {
        padding: 24px 20px;
    }

    .map-placeholder {
        height: 300px;
    }

    .map-icon {
        font-size: 48px;
    }

    .map-content h3 {
        font-size: 20px;
    }
}

/* ========================================
   COOKIE BANNER STYLES
   ======================================== */

/* Cookie Banner - przypinany do dołu strony */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--background-primary);
    border-top: 2px solid var(--accent-primary);
    box-shadow: 0 -4px 20px var(--shadow-color);
    z-index: 9999;
    padding: 20px 0;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.cookie-text {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.cookie-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cookie-text p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.cookie-text a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Modal Styles */
.privacy-modal,
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--background-primary);
    border-radius: 12px;
    box-shadow: 0 20px 60px var(--shadow-color);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.4rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--medium-gray);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.modal-body {
    padding: 24px;
}

.modal-body h4 {
    color: var(--text-primary);
    margin: 20px 0 12px 0;
    font-size: 1.1rem;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body p,
.modal-body ul {
    margin: 0 0 16px 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-body ul {
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
}

.modal-body code {
    background: var(--background-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px 24px 24px;
    border-top: 1px solid var(--border-color);
}

/* Cookie Settings Styles */
.cookie-option {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--background-primary);
    transition: 0.3s;
    border-radius: 50%;
}

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

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

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

.cookie-info h4 {
    margin: 0 0 4px 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.cookie-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 16px 0;
    }

    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        text-align: center;
        padding: 0 16px;
    }

    .cookie-text {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .cookie-buttons .btn {
        flex: 1;
        min-width: 100px;
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 0;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-height: 90vh;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }

    .modal-header h3 {
        font-size: 1.2rem;
    }

    .cookie-option {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .modal-footer .btn {
        font-size: 0.9rem;
        padding: 10px 16px;
    }
}

/* Navigation */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    padding: 10px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    padding: 10px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
}

/* ========================================
   DARK MODE TOGGLE STYLES
   ======================================== */
.dark-mode-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.dark-mode-toggle:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.dark-mode-toggle .sun-icon {
    display: none;
}

.dark-mode-toggle .moon-icon {
    display: block;
}

html.dark-mode .dark-mode-toggle .sun-icon {
    display: block;
}

html.dark-mode .dark-mode-toggle .moon-icon {
    display: none;
}

.dark-mode-toggle i {
    font-size: 20px;
}

.header-actions-mobile .dark-mode-toggle {
    width: 36px;
    height: 36px;
}

.header-actions-mobile .dark-mode-toggle i {
    font-size: 18px;
}

/* Accessibility Improvements */
:focus-visible {
    outline: 3px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: 4px;
    transition: outline 0.2s ease;
}

/* Specificity for buttons to ensure visibility */
.btn:focus-visible,
.dark-mode-toggle:focus-visible,
.hamburger:focus-visible,
.close-btn:focus-visible,
.cookie-switch input:focus-visible+.slider {
    outline: 3px solid var(--accent-primary) !important;
    outline-offset: 2px;
}

/* Remove default outline for non-keyboard focus */
:focus:not(:focus-visible) {
    outline: none;
}