/* Główny plik CSS – wersja zoptymalizowana */

/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #ffffff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Nagłówki */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

p {
    margin-bottom: 1.5rem;
    color: #666666;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.section-subtitle {
    color: #666666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.section-footer {
    text-align: center;
    margin-top: 60px;
}

/* Przyciski */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background-color: #1a1a1a;
    color: #ffffff;
    border: 2px solid #1a1a1a;
}

.btn-primary:hover {
    background-color: #333333;
    border-color: #333333;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.btn-secondary {
    background-color: transparent;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
}

.btn-secondary:hover {
    background-color: #1a1a1a;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Karty realizacji (używane na stronie głównej i w all-projects) */
.realization-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.realization-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: #8b8b8b;
}

.realization-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.realization-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.realization-card:hover .realization-image img {
    transform: scale(1.05);
}

.realization-content {
    padding: 25px;
}

.realization-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.realization-desc {
    color: #666666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.realization-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.realization-card:hover .realization-overlay {
    opacity: 1;
}

.realization-view {
    color: #ffffff;
    background-color: #1a1a1a;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #1a1a1a;
}

.realization-view:hover {
    background-color: transparent;
    color: #1a1a1a;
    transform: translateY(-3px);
}

.realization-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.realization-category {
    background-color: #f5f5f5;
    color: #1a1a1a;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #e0e0e0;
}

.realization-date {
    color: #666666;
    font-size: 0.9rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #1a1a1a;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0.95;
}

.header.scrolled {
    background-color: #1a1a1a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    z-index: 1001;
}

.logo img {
    height: 50px;
    width: auto;
    max-height: 60px;
}

.nav-menu-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-left: 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    white-space: nowrap;
    color: #ffffff;
    opacity: 0.9;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    opacity: 1;
}

.nav-actions {
    display: flex;
    gap: 15px;
    margin: 0 20px;
}

.nav-actions .btn-primary {
    background-color: #ffffff;
    color: #1a1a1a;
    border: 2px solid #ffffff;
}

.nav-actions .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
}

.nav-actions .btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.nav-actions .btn-secondary:hover {
    background-color: #ffffff;
    color: #1a1a1a;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Hero sekcja */
.hero {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/backgroundv3.svg') center/cover no-repeat;
    display: flex;
    align-items: end;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 700px;
    margin-left: 4%;
    margin-bottom: 5%;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.3) 30%, transparent);
    z-index: 1;
}

/* Realizacje (sekcja na stronie głównej) */
.realizations {
    padding: 100px 0;
    background-color: #f5f5f5;
}

.realizations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Kontakt */
.contact-section {
    padding: 100px 0;
    background-color: #f5f5f5;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.contact-form-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.contact-form-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #1a1a1a;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
    color: #1a1a1a;
}

.form-control:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.form-control::placeholder {
    color: #666666;
}

textarea.form-control {
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-details {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.contact-info-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #1a1a1a;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #1a1a1a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #1a1a1a;
}

.contact-text p {
    margin-bottom: 5px;
    color: #666666;
}

/* Komunikaty */
.alert {
    padding: 15px;
    margin: 20px;
    border-radius: 8px;
    text-align: center;
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1001;
    min-width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===== ULEPSZONY FORMULARZ ===== */
.form-header {
    margin-bottom: 30px;
}

.form-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-top: -10px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95rem;
}

.form-label.required::after {
    content: " *";
    color: #e74c3c;
}

.form-hint {
    font-size: 0.85rem;
    color: #777;
    margin-top: 5px;
    min-height: 18px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group-half {
    flex: 1;
}

.form-control.valid {
    border-color: #27ae60;
}

.form-control.invalid {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-control.invalid + .error-message {
    display: block;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.char-counter {
    font-size: 0.8rem;
    color: #777;
}

.char-counter.warning {
    color: #f39c12;
}

.char-counter.error {
    color: #e74c3c;
}

.form-actions {
    margin-top: 15px;
    margin-bottom: 20px;
}

.btn-text, .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.form-note {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #777;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border-left: 3px solid #333;
}

.form-note i {
    margin-right: 5px;
}

.form-success-message {
    background: #f8fff9;
    border: 1px solid #d4edda;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    font-size: 3rem;
    color: #27ae60;
    margin-bottom: 20px;
}

.success-content h4 {
    color: #155724;
    margin-bottom: 10px;
}

.success-content p {
    color: #666;
    margin-bottom: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.3s ease;
}

/* ===== STYLE DLA ALL-PROJECTS.PHP ===== */
.all-projects-page {
    padding: 120px 0;
    min-height: 100vh;
    background: #f8f9fa;
}

.all-projects-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.all-projects-header {
    text-align: center;
    margin-bottom: 30px;
}

.all-projects-header h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.all-projects-header p {
    color: #666;
    font-size: 1.1rem;
}

.filters-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.filters-header h3 {
    margin-bottom: 8px;
    color: #333;
    font-size: 1.2rem;
}

.filters-header p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

.filters-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.category-select {
    position: relative;
    min-width: 250px;
}

.category-select select {
    width: 100%;
    padding: 12px 20px;
    padding-right: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    appearance: none;
    font-family: 'Montserrat', sans-serif;
}

.category-select i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.clear-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.clear-filter-btn:hover {
    background: #e9ecef;
    border-color: #8b8b8b;
}

.filter-results {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1a1a1a;
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: #8b8b8b;
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.featured-badge i {
    font-size: 0.7rem;
}

.project-meta-compact {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.project-meta-compact span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.project-location {
    color: #666666;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.no-projects-container {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.no-projects-icon {
    font-size: 60px;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.no-projects-container h3 {
    color: #666;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.no-projects-container p {
    color: #999;
    margin-bottom: 25px;
}

.pagination {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
}

.load-more-btn {
    padding: 12px 30px;
    font-size: 1rem;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.load-more-btn:hover {
    background: #333;
    transform: translateY(-3px);
}

/* ===== STYLE DLA PROJECT-DETAILS.PHP ===== */
.project-details-page {
    padding-top: 95px;
    background: #f8f9fa;
    min-height: 100vh;
}

.project-details-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.project-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.gallery-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

.gallery-container h2 {
    margin-bottom: 15px;
    color: #1a1a1a;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-gallery {
    position: relative;
    margin-bottom: 15px;
}

#mainImageContainer {
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
    height: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#mainImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.gallery-nav-btn {
    pointer-events: all;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.gallery-nav-btn:hover {
    background: rgba(0,0,0,0.9);
    transform: scale(1.1);
}

.image-counter {
    text-align: center;
    margin: 10px 0;
    color: #666;
    font-size: 0.85rem;
}

.thumbnails-container {
    margin-top: 15px;
}

.thumbnails-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
}

.thumbnails-scroll::-webkit-scrollbar {
    height: 4px;
}

.thumbnails-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.thumbnail-item {
    flex: 0 0 auto;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.thumbnail-item:hover {
    transform: translateY(-2px);
}

.thumbnail-item.active {
    border-color: #3498db;
}

.thumbnail-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
}

.main-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    background: #3498db;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

.gallery-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: white;
    color: #555;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

.action-btn:hover {
    background: #f8f9fa;
    border-color: #3498db;
    color: #3498db;
}

.project-info {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    height: fit-content;
}

.project-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.project-header h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1;
    font-weight: 600;
}

.project-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.meta-content {
    flex: 1;
}

.meta-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 2px;
}

.meta-value {
    font-weight: 500;
    font-size: 0.9rem;
}

.project-description {
    margin-bottom: 20px;
}

.project-description h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-description-content {
    color: #555;
    line-height: 1.5;
    font-size: 0.9rem;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
}

.contact-form-mini {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.contact-form-mini h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-form-mini p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.contact-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.contact-btn-primary {
    background: #3498db;
    color: white;
    border: 2px solid #3498db;
}

.contact-btn-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
}

.contact-btn-secondary {
    background: white;
    color: #3498db;
    border: 2px solid #3498db;
}

.contact-btn-secondary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.similar-projects {
    margin-top: 40px;
    margin-bottom: 40px;
}

.similar-projects h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #1a1a1a;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.similar-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.similar-card:hover {
    transform: translateY(-5px);
}

.similar-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.similar-card-content {
    padding: 15px;
}

.similar-card-content h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #333;
}

.similar-card-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.8rem;
}

.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.fullscreen-modal.active {
    display: flex;
}

.fullscreen-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10000;
}

.fullscreen-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

#fullscreenImage {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.fullscreen-nav {
    position: fixed;
    top: 50%;
    left: 20px;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10000;
}

.fullscreen-nav-btn {
    pointer-events: all;
    background: rgba(255,255,255,0.3);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.fullscreen-nav-btn:hover {
    background: rgba(255,255,255,0.5);
    transform: scale(1.1);
}

.fullscreen-counter {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 1.2rem;
    z-index: 10000;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    margin-bottom: 20px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
}

.back-button:hover {
    background: #f0f0f0;
    color: #333;
}

.back-button i {
    font-size: 14px;
}

/* Lazy loading placeholder */
img[loading="lazy"] {
    background-color: #f5f5f5;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Spójne style dla formularzy */
.category-select select.form-control {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease;
}

.category-select select.form-control:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

/* === BREADCRUMBS === */
.breadcrumbs {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.breadcrumbs .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb-link:hover {
    color: #1a1a1a;
}

.breadcrumb-link i {
    font-size: 0.8rem;
}

.breadcrumb-item.active .breadcrumb-text {
    color: #1a1a1a;
    font-weight: 600;
}

.breadcrumb-separator {
    color: #8b8b8b;
    margin: 0 8px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
}

.breadcrumb-text {
    white-space: nowrap;
}

/* Responsywność breadcrumbs */
@media screen and (max-width: 768px) {
    .breadcrumbs {
        padding: 12px 0;
        margin-bottom: 20px;
    }
    
    .breadcrumb-item {
        font-size: 0.85rem;
    }
    
    .breadcrumb-separator {
        margin: 0 6px;
    }
}

@media screen and (max-width: 576px) {
    .breadcrumbs {
        padding: 10px 0;
    }
    
    .breadcrumb-link i {
        display: none;
    }
    
    .breadcrumb-item:not(.active) .breadcrumb-text {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* === SCROLL TO TOP BUTTON === */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: #333333;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
}

/* Responsywność przycisku */
@media screen and (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .scroll-to-top i {
        font-size: 1rem;
    }
}

@media screen and (max-width: 576px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Poprawki dla karuzeli - zachowując oryginalny wygląd */

.categories {
    padding: 0 0 80px 0;
    background-color: #fff;
}

.categories-carousel {
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 60px;
}

.carousel-container {
    overflow: hidden;
    border-radius: 8px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    gap: 30px;
    width: 100%;
    justify-content: center;
    
}

.category-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 0 0 auto;  /* tymczasowo, właściwe rozmiary ustawiają media queries */
    width: 100%;
    max-width: 300px; /* opcjonalne ograniczenie */
    margin: 0 auto;
    justify-content: center;
}

.category-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    padding: 20px 15px 25px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #ddd;
}

.category-card .category-image {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
}

.category-card .category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    background-color: #ffffff;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-card .category-content {
    padding: 0;
    width: 100%;
}

.category-card .category-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.category-card .category-link {
    color: #1a1a1a;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    transition: gap 0.3s ease, border-bottom-color 0.3s ease;
}

.category-card:hover .category-link {
    gap: 10px;
    border-bottom-color: #1a1a1a;
}

/* Przyciski karuzeli */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.carousel-btn:hover {
    background-color: #333333;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.carousel-btn:disabled:hover {
    background-color: #1a1a1a;
    transform: translateY(-50%);
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

.carousel-btn i {
    font-size: 1.5rem;
}



@media screen and (min-width: 1200px) {
    .category-card-link {
        flex: 0 0 calc((100% - 90px) / 4) !important;  /* 3 odstępy po 30px */
        min-width: calc((100% - 90px) / 4) !important;
        max-width: none;
    }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
    .categories-carousel {
        padding: 0 50px;
    }
    .category-card-link {
        flex: 0 0 calc((100% - 60px) / 3) !important;  /* 2 odstępy po 30px */
        min-width: calc((100% - 60px) / 3) !important;
        max-width: none;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .categories-carousel {
        padding: 0 40px;
    }
    .category-card-link {
        flex: 0 0 calc((100% - 30px) / 2) !important;  /* 1 odstęp 30px */
        min-width: calc((100% - 30px) / 2) !important;
        max-width: none;
    }
}

@media screen and (max-width: 767px) {
    .categories-carousel {
        padding: 0 30px;
    }
    .carousel-track {
        gap: 0;  /* na telefonie brak odstępu – tylko jeden element */
    }
    .category-card-link {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: none;
        margin: 0;
    }
}


/* ===== NOWE STYLE (INSPIRACJA KATSERVICE.PL) ===== */

/* Sekcja Dlaczego my (features) */
.why-us {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-item .feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: #1a1a1a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.feature-item .feature-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.feature-item .feature-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
}

/* Sekcja CTA (Gotowy na projekt?) */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/backgroundv3.svg') center/cover fixed no-repeat;
    color: #fff;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.cta-section .btn-primary {
    background-color: #fff;
    color: #1a1a1a;
    border-color: #fff;
}

.cta-section .btn-primary:hover {
    background-color: transparent;
    color: #fff;
}

/* Nowa stopka */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about .logo {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-about .logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-about .logo span {
    color: #fff;
    font-weight: 700;
}

.footer-text {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #fff;
    color: #1a1a1a;
}

.footer-title {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.contact-links li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.contact-links i {
    width: 20px;
    color: #fff;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    margin: 0;
}

.rodo-info {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

.rodo-info i {
    margin-right: 5px;
    color: rgba(255,255,255,0.3);
}

/* ===== FAQ - STYLE AKORDEONU ===== */
.faq-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.faq-accordion {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question i {
    font-size: 1rem;
    color: #666;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 25px;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background-color: #fff;
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 25px 20px;
    border-top-color: #e0e0e0;
}

.faq-answer p {
    margin: 15px 0 0;
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsywność FAQ */
@media (max-width: 768px) {
    .faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .faq-answer p {
        font-size: 0.9rem;
    }
}

/* Responsywność nowych elementów */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}