/* ==========================================================================
   Design System & Zmienne CSS
   ========================================================================== */
:root {
    /* Kolory główne */
    --primary: #0066ff;
    --primary-hover: #0052cc;
    --primary-light: rgba(0, 102, 255, 0.08);
    --secondary: #00d4ff;
    --secondary-hover: #00b3d7;
    --secondary-light: rgba(0, 212, 255, 0.1);
    
    /* Kolory tła */
    --bg-light: #f4f7fc;
    --bg-dark: #0a1128;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: #ffffff;
    --bg-navbar: rgba(255, 255, 255, 0.8);
    
    /* Kolory tekstu */
    --text-main: #1c2d42;
    --text-muted: #5a6e85;
    --text-light: #ffffff;
    
    /* Kolory akcentów i statusów */
    --accent-orange: #ff9f1c;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --border-color: rgba(0, 102, 255, 0.1);
    --border-hover: rgba(0, 102, 255, 0.25);
    
    /* Typografia i układy */
    --font-sans: 'Outfit', sans-serif;
    --shadow-sm: 0 4px 6px -1px rgba(0, 102, 255, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 102, 255, 0.08), 0 4px 6px -2px rgba(0, 102, 255, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 102, 255, 0.1), 0 10px 10px -5px rgba(0, 102, 255, 0.04);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    --shadow-glow-primary: 0 0 20px rgba(0, 102, 255, 0.25);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Przejścia */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Style Globalne i Reset
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

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

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

button, input, select, textarea {
    font-family: inherit;
    outline: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* ==========================================================================
   Tło Dekoracyjne (Ambient Glow)
   ========================================================================== */
.ambient-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: var(--radius-full);
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}
.glow-1 {
    top: 10%;
    right: -100px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 80%);
}
.glow-2 {
    bottom: 20%;
    left: -200px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 80%);
}

/* ==========================================================================
   Nagłówek i Nawigacja (Header)
   ========================================================================== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-navbar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    box-shadow: var(--shadow-glow-primary);
}

.logo-icon i {
    width: 24px;
    height: 24px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.logo-text .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 15px;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    color: var(--text-main);
}

/* ==========================================================================
   Przyciski (Buttons)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-primary);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

.btn-outline:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--text-light);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-light:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
}

/* ==========================================================================
   Widok: Strona Główna (Home)
   ========================================================================== */

/* Hero Section */
.hero-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    position: relative;
    padding: 100px 0 140px 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(0, 212, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-content h1 .gradient-text {
    background: linear-gradient(135deg, var(--secondary), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 40px;
    max-width: 600px;
}

/* Wyszukiwarka w Hero */
.hero-search-bar {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    padding-left: 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.search-input-group:last-of-type {
    border-right: none;
}

.search-input-group i {
    color: var(--secondary);
    width: 20px;
    height: 20px;
}

.search-input-group input, .search-input-group select {
    background: transparent;
    border: none;
    color: var(--text-light);
    width: 100%;
    font-size: 15px;
    padding: 10px 0;
}

.search-input-group select option {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.hero-search-bar .btn {
    padding: 14px 28px;
}

/* Statystyki */
.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

/* Hero Ilustracja / Image */
.hero-illustration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    border: 1px solid rgba(0, 212, 255, 0.2);
    width: 100%;
    aspect-ratio: 4/3;
    background: #111b36;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--secondary);
    gap: 16px;
    text-align: center;
}

.hero-image-placeholder i {
    width: 64px;
    height: 64px;
    animation: rotateWind 10s linear infinite;
}

@keyframes rotateWind {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-image-placeholder p {
    color: #94a3b8;
    font-size: 14px;
}

/* Sekcja: Dlaczego My? */
.section-features {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.section-title-wrapper {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px auto;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-main);
}

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

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    background-color: var(--bg-card-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon-wrapper i {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Wyróżnieni Instalatorzy na Stronie Głównej */
.section-featured-installers {
    padding: 80px 0;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.featured-installers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.featured-footer-action {
    text-align: center;
}

/* Sekcja Kreatora Wyceny na Home (Mini-Banner) */
.home-quote-banner {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--bg-dark), #0f1d40);
    color: var(--text-light);
    border-radius: var(--radius-lg);
    margin: 40px auto;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.home-quote-banner::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--secondary-light) 0%, transparent 70%);
    pointer-events: none;
}

.banner-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 0 40px;
}

.banner-text h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.banner-text p {
    color: #94a3b8;
    max-width: 600px;
}

/* ==========================================================================
   Widok: Wyszukiwarka Instalatorów (Directory)
   ========================================================================== */
.directory-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    padding: 40px 0 80px 0;
}

/* Panel Filtrów */
.filter-panel {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-sm);
}

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

.filter-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.btn-clear-filters {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

.btn-clear-filters:hover {
    text-decoration: underline;
}

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

.filter-group h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.filter-select, .filter-input {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    font-size: 14px;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.filter-select:focus, .filter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

/* Checkboxy z usługami */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-label:hover {
    color: var(--text-main);
}

/* Lista Instalatorów */
.installers-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.installers-count {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
}

.sort-select-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select-wrapper span {
    font-size: 14px;
    color: var(--text-muted);
}

.installers-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Karta Instalatora */
.installer-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.installer-card:hover {
    background-color: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

/* Logo firmy */
.installer-logo-circle {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
}

/* Info */
.installer-info-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.installer-name-flex {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.installer-name-flex h3 {
    font-size: 20px;
    font-weight: 700;
}

.location-badge {
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.location-badge i {
    width: 12px;
    height: 12px;
}

.rating-flex {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.rating-stars {
    color: var(--accent-orange);
    display: flex;
}

.rating-stars i {
    width: 16px;
    height: 16px;
    fill: var(--accent-orange);
}

.rating-value {
    font-weight: 700;
    font-size: 14px;
}

.rating-count {
    color: var(--text-muted);
    font-size: 13px;
}

.service-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tag {
    background-color: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

/* Karta Prawa Strona: Akcje i Kontakt */
.installer-card-actions {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    border-left: 1px solid var(--border-color);
    padding-left: 24px;
}

.installer-quick-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    margin-bottom: 16px;
}

.contact-item-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
}

.contact-item-link:hover {
    color: var(--primary);
}

.contact-item-link i {
    width: 16px;
    height: 16px;
}

.installer-btn-group {
    display: flex;
    gap: 12px;
}

/* Pusty stan wyszukiwania */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.empty-state i {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
}

/* ==========================================================================
   Widok: Poradnik (Guides)
   ========================================================================== */
.guides-container {
    padding: 40px 0 80px 0;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.guide-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.guide-card:hover {
    background-color: var(--bg-card-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.guide-card:hover .guide-image-placeholder img {
    transform: scale(1.08);
}

.guide-image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-dark), #1e293b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    position: relative;
}

.guide-image-placeholder i {
    width: 48px;
    height: 48px;
    opacity: 0.8;
}

.guide-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background-color: var(--primary);
    color: var(--text-light);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.guide-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.guide-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.guide-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.guide-meta-item i {
    width: 12px;
    height: 12px;
}

.guide-card h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-main);
}

.guide-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    flex: 1;
}

.guide-read-more {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

.guide-read-more i {
    width: 16px;
    height: 16px;
    transition: var(--transition-fast);
}

.guide-card:hover .guide-read-more i {
    transform: translateX(4px);
}

/* Szczegóły Artykułu */
.guide-article-view {
    padding: 40px 0 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
}

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

.article-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 12px;
    margin-bottom: 16px;
}

.article-body {
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body h3 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.article-body ul, .article-body ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

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

.article-body .alert-box {
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin: 32px 0;
    color: var(--text-main);
}

/* ==========================================================================
   Widok: Dla Instalatorów (Register/Join)
   ========================================================================== */
.join-section {
    padding: 40px 0 80px 0;
}

.join-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: flex-start;
}

.join-info h2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.join-info p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 32px;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    gap: 16px;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon i {
    width: 24px;
    height: 24px;
}

.benefit-text h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.benefit-text p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Formularz Rejestracji */
.join-form-wrapper {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

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

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

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: #f8fafc;
    font-size: 15px;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

/* ==========================================================================
   Widok: Kreator Wyceń (Wizard - Get Quote)
   ========================================================================== */
.wizard-section {
    padding: 60px 0 100px 0;
    max-width: 700px;
    margin: 0 auto;
}

.wizard-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-lg);
}

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

.wizard-header h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

/* Pasek Postępu */
.wizard-progress-bar-wrapper {
    background-color: #e2e8f0;
    height: 6px;
    border-radius: var(--radius-full);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.wizard-progress-fill {
    height: 100%;
    width: 25%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
}

/* Krok */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wizard-step h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

/* Karta Opcji do klikania w Kroku 1 */
.option-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.option-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.option-card i {
    width: 36px;
    height: 36px;
    color: var(--primary);
    margin-bottom: 16px;
}

.option-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 0;
}

.option-card:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.option-card.selected {
    border-color: var(--primary);
    background-color: var(--primary-light);
    box-shadow: var(--shadow-glow-primary);
}

/* Suwaki i Specjalne Kontrolki */
.range-wrapper {
    padding: 20px 0;
    text-align: center;
}

.range-value-display {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.wizard-range-slider {
    width: 100%;
    height: 8px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Przycisk akcji w kreatorze */
.wizard-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

/* Sukces */
.wizard-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.success-icon i {
    width: 42px;
    height: 42px;
}

.wizard-success h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.wizard-success p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ==========================================================================
   Szczegóły Instalatora (Modal)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 17, 40, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 32px;
    background: linear-gradient(135deg, var(--bg-dark), #0f1d40);
    color: var(--text-light);
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #94a3b8;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.2);
}

.modal-header-logo {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.modal-header-info h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

/* Zakładki w Modalu */
.modal-tabs {
    display: flex;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 0 32px;
}

.modal-tab-btn {
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
}

.modal-tab-btn:hover {
    color: var(--primary);
}

.modal-tab-btn.active {
    color: var(--primary);
    border-color: var(--primary);
}

/* Zawartość Modalu */
.modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Tab: O firmie */
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 32px;
}

.about-text h3, .realizations-list h3, .reviews-section h3, .write-message-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.about-text p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
}

.about-sidebar {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.sidebar-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-row {
    display: flex;
    gap: 12px;
    font-size: 14px;
}

.contact-row i {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-row strong {
    display: block;
    color: var(--text-main);
}

.contact-row span {
    color: var(--text-muted);
}

/* Tab: Realizacje */
.realizations-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.realization-item {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.realization-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.realization-year {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background-color: var(--primary-light);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

/* Tab: Opinie */
.reviews-summary {
    background-color: var(--primary-light);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 32px;
}

.summary-score {
    text-align: center;
}

.summary-score-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.summary-score-stars {
    color: var(--accent-orange);
    margin: 8px 0;
    display: flex;
    justify-content: center;
}

.summary-score-stars i {
    width: 20px;
    height: 20px;
    fill: var(--accent-orange);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

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

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.reviewer-name {
    font-weight: 700;
    font-size: 15px;
}

.review-date {
    font-size: 12px;
    color: var(--text-muted);
}

.review-text {
    font-size: 14px;
    color: var(--text-muted);
}

/* Tab: Kontakt (Direct Form) */
.direct-contact-form .form-row {
    margin-bottom: 16px;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    min-width: 300px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid var(--primary);
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success {
    border-left-color: var(--accent-green);
}

.toast.error {
    border-left-color: var(--accent-red);
}

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
}

.toast-close {
    margin-left: auto;
    cursor: pointer;
    color: #94a3b8;
}

.toast-close:hover {
    color: var(--text-light);
}

/* ==========================================================================
   Responsywność i Układ Mobilny
   ========================================================================== */
@media (max-width: 1024px) {
    .directory-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        width: 100% !important;
        overflow: hidden !important;
        padding: 20px 0 40px 0 !important;
    }
    
    .filter-panel {
        position: static !important;
        margin-bottom: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .results-section {
        width: 100% !important;
        overflow: hidden !important;
    }

    .installers-grid {
        width: 100% !important;
        overflow: hidden !important;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-illustration {
        order: -1;
    }
    
    .hero-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }

    .mobile-toggle {
        display: block;
        font-size: 24px;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        display: none;
    }

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

    .nav-link {
        width: 100%;
        text-align: center;
    }

    .nav-btn {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-search-bar {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 16px;
    }

    .search-input-group {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        padding-left: 0;
        padding-bottom: 8px;
    }

    .hero-search-bar .btn {
        width: 100%;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
        justify-content: center;
    }

    .installer-card {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-rows: auto auto !important;
        gap: 16px !important;
        padding: 16px !important;
        align-items: start !important;
        text-align: left !important;
        overflow: hidden !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .installer-logo-circle {
        grid-column: 2 !important;
        grid-row: 1 !important;
        margin: 0 !important;
        width: 60px !important;
        height: 60px !important;
        font-size: 20px !important;
    }

    .installer-info-main {
        grid-column: 1 !important;
        grid-row: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .installer-name-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .rating-flex {
        justify-content: flex-start;
    }

    .service-badges {
        justify-content: flex-start;
    }

    .installer-card-actions {
        grid-column: 1 / span 2 !important;
        grid-row: 2 !important;
        border-left: none !important;
        border-top: 1px solid var(--border-color) !important;
        padding-left: 0 !important;
        padding-top: 16px !important;
        width: 100% !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .installer-btn-group {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .installer-btn-group .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .installer-quick-contact {
        align-items: center !important;
        width: 100% !important;
    }

    .join-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .join-form-wrapper {
        padding: 24px;
    }

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

    .option-cards-grid {
        grid-template-columns: 1fr;
    }

    .wizard-card {
        padding: 24px;
    }

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

    .banner-flex {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }
}

/* ==========================================================================
   Stopka (Footer)
   ========================================================================== */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 0 0 0;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-footer .logo-text {
    color: #ffffff;
}

.footer-desc {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: var(--transition-fast);
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-2px);
}

.social-link i {
    width: 18px;
    height: 18px;
}

.footer-links-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-light);
    position: relative;
}

.footer-links-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.foot-link {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.foot-link:hover {
    color: var(--secondary);
    padding-left: 4px;
}

.footer-contact-info {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-info li {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: #94a3b8;
    align-items: flex-start;
}

.footer-contact-info i {
    color: var(--secondary);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #64748b;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: #64748b;
    transition: var(--transition-fast);
}

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

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 40px;
    }
    
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
    }
}

/* Autocomplete Suggestions */
.search-input-group, .form-group, .filter-group {
    position: relative;
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-top: 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
}

.autocomplete-suggestion {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.autocomplete-suggestion:last-child {
    border-bottom: none;
}

.autocomplete-suggestion:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* Dostosowanie dla trybu ciemnego i jasnego */
:root {
    --card-bg: rgba(255, 255, 255, 0.03);
}
