/**
 * RedroxCMS - Frontend Components Styles
 * Profesjonalne style dla wszystkich komponentów UI dostępnych w GridEditor
 *
 * UWAGA: Wartości breakpoints (576px, 992px, 1400px) są domyślne.
 * Każda website może mieć własne breakpoints ustawione w panelu administracyjnym.
 * Dynamicznie generowane style (sekcje, galerie, slidery) używają breakpoints z ustawień website.
 *
 * Version: 1.2
 * Date: 2025-11-12
 */

/* ==========================================================================
   HEADER TEMPLATE CLASSES
   ========================================================================== */

/* Container styles */
.header-full-width {
    width: 100%;
}

.header-container {
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.header-container-fluid {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Scroll behavior styles */
.scroll-behavior-hide {
    transition: transform 0.3s ease;
}

.scroll-behavior-hide.scrolled {
    transform: translateY(-100%);
}

.scroll-behavior-show-on-scroll-up {
    transition: transform 0.3s ease;
}

.scroll-behavior-show-on-scroll-up.scrolled {
    transform: translateY(0);
}

.scroll-behavior-shrink {
    transition: height 0.3s ease, padding 0.3s ease;
}

/* Shadow styles */
.shadow-sm {
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}

.shadow-md {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}

.shadow-lg {
    box-shadow: 0 10px 15px rgba(0,0,0,0.1) !important;
}

/* Shadow dla stanu scrolled */
.scrolled.shadow-sm {
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}

.scrolled.shadow-md {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}

.scrolled.shadow-lg {
    box-shadow: 0 10px 15px rgba(0,0,0,0.1) !important;
}

/* ==========================================================================
   PODSTAWOWE KOMPONENTY
   ========================================================================== */

/* Nagłówki (Heading) */


.page-section h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-section h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.page-section h3 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
.page-section h4 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
.page-section h5 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
.page-section h6 { font-size: clamp(1rem, 2vw, 1.25rem); }

/* Rich Editor Content */
.richeditor-content,
.richeditor-component {
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
}

.richeditor-content p,
.richeditor-component p {
    margin-bottom: 1rem;
}

.richeditor-content ul,
.richeditor-content ol,
.richeditor-component ul,
.richeditor-component ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.richeditor-content a,
.richeditor-component a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.2s ease;
}

.richeditor-content a:hover,
.richeditor-component a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.richeditor-content img,
.richeditor-component img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* HR - Linia pozioma */
.page-section hr {
    margin: 2rem 0;
    border: 0;
    border-top: 2px solid #e9ecef;
    opacity: 1;
}

/* Tabele */
.page-section .table-responsive {
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

.page-section table {
    margin-bottom: 0;
}

.page-section table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.page-section table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.page-section table tbody tr:hover {
    background-color: #f8f9fa;
}

/* ==========================================================================
   MEDIA KOMPONENTY
   ========================================================================== */

/* Media Asset - pojedynczy obraz */
.component.image-component img,
.page-section .img-fluid {
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.component.image-component img:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.15);
}

/* Piktogram */
.pictogram-component {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pictogram-component img,
.pictogram-component svg {
    transition: transform 0.3s ease;
}

.pictogram-component:hover img,
.pictogram-component:hover svg {
    transform: scale(1.1);
}

/* Video Embed */
.video-embed-component {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    margin: 1.5rem 0;
}

.video-embed-component iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   FORMULARZE
   ========================================================================== */

/* Zmienne CSS - mogą być nadpisane przez motywy */
.redrox-form-container {
    --form-bg: #ffffff;
    --form-padding: 2rem;
    --form-radius: 1rem;
    --form-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1);
    --form-title-color: #2c3e50;
    --form-text-color: #6c757d;
    --form-label-color: #495057;
    --form-border-color: #e9ecef;
    --form-border-focus: #0d6efd;
    --form-btn-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --form-btn-shadow: 0 0.25rem 0.75rem rgba(102, 126, 234, 0.4);
}

/* Form Builder & Contact Form - Profesjonalny wygląd */
.form-container,
.contact-form {
    background: var(--form-bg, #ffffff);

    border-radius: var(--form-radius, 1rem);

    margin: 2rem 0;
}

.form-title,
.redrox-form-container h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--form-title-color, #2c3e50);
    margin-bottom: 0.5rem;
}

.form-description,
.redrox-form-container p {
    font-size: 1rem;
    color: var(--form-text-color, #6c757d);
    margin-bottom: 1.5rem;
}

.form-container .form-label,
.redrox-form-container .form-label,
.contact-form .form-label {
    font-weight: 600;
    color: var(--form-label-color, #495057);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    display: inline-block;
}

.form-container .form-control,
.redrox-form-container .form-control,
.contact-form .form-control,
.form-container .form-select,
.redrox-form-container .form-select,
.contact-form .form-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--form-border-color, #e9ecef);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    width: 100%;
}

.form-container .form-control:focus,
.redrox-form-container .form-control:focus,
.contact-form .form-control:focus,
.form-container .form-select:focus,
.redrox-form-container .form-select:focus,
.contact-form .form-select:focus {
    border-color: var(--form-border-focus, #0d6efd);
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.15);
    outline: 0;
}

.form-container textarea.form-control,
.redrox-form-container textarea.form-control,
.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Checkbox & Radio w formularzach */
.form-container .form-check,

.contact-form .form-check {
    gap: 0.5rem;
    display: flex;
    align-items: flex-start;
    padding-left: 0;
    margin-bottom: 1rem;
}

.form-container .form-check-input,

.contact-form .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    border: 2px solid #dee2e6;
    transition: all 0.2s ease;
}

.form-container .form-check-input:checked,
.redrox-form-container .form-check-input:checked,
.contact-form .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-container .form-check-input:focus,
.redrox-form-container .form-check-input:focus,
.contact-form .form-check-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.15);
}

.form-container .form-check-label,
.redrox-form-container .form-check-label,
.contact-form .form-check-label {
    color: #495057;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.form-container .form-check-label a,
.redrox-form-container .form-check-label a,
.contact-form .form-check-label a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.form-container .form-check-label a:hover,
.redrox-form-container .form-check-label a:hover,
.contact-form .form-check-label a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Submit Button */
.form-container .btn-primary,
.redrox-form-container .btn-primary,
.contact-form .btn-primary {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    background: var(--form-btn-bg, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    box-shadow: var(--form-btn-shadow, 0 0.25rem 0.75rem rgba(102, 126, 234, 0.4));
    transition: all 0.3s ease;
    color: #fff;
    cursor: pointer;
}

.form-container .btn-primary:hover,
.redrox-form-container .btn-primary:hover,
.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.5rem rgba(102, 126, 234, 0.5);
    opacity: 0.95;
}

.form-container .btn-primary:active,
.redrox-form-container .btn-primary:active,
.contact-form .btn-primary:active {
    transform: translateY(0);
}

.form-container .btn-primary:disabled,
.redrox-form-container .btn-primary:disabled,
.contact-form .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* reCAPTCHA styling */
.form-container .g-recaptcha,
.redrox-form-container .g-recaptcha,
.contact-form .g-recaptcha {
    margin-bottom: 1rem;
}

/* Form Messages */
.form-message,
.form-messages {
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.form-success {
    background-color: #d1e7dd;
    border-left: 4px solid #0f5132;
    color: #0f5132;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Walidacja formularzy */
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback {
    display: block;
}

.alert {
    border-radius: 0.5rem;
    border-left: 4px solid;
    padding: 1rem 1.25rem;
}

.alert-success {
    background-color: #d1e7dd;
    border-left-color: #0f5132;
    color: #0f5132;
}

.alert-danger,
.alert-error {
    background-color: #f8d7da;
    border-left-color: #842029;
    color: #842029;
}

.alert-info {
    background-color: #cff4fc;
    border-left-color: #055160;
    color: #055160;
}

.alert-warning {
    background-color: #fff3cd;
    border-left-color: #664d03;
    color: #664d03;
}

/* ==========================================================================
   PRZYCISKI & LINKI (Link-Button Component)
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 0.25rem 0.75rem rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #64398d 100%);
    color: #fff;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c92c3a 100%);
    color: #fff;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffca2c 100%);
    color: #212529;
}

.btn-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #3dd5f3 100%);
    color: #000;
}

.btn-light {
    background-color: #f8f9fa;
    color: #212529;
    border-color: #dee2e6;
}

.btn-dark {
    background-color: #212529;
    color: #fff;
}

.btn-outline-primary {
    background: transparent;
    color: #667eea;
    border-color: #667eea;
}

.btn-outline-primary:hover {
    background: #667eea;
    color: #fff;
}

.btn i {
    margin-right: 0.5rem;
}

/* Links */
.link-primary {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.link-primary:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* ==========================================================================
   COUNTER - Animowany licznik
   ========================================================================== */

.counter-component {
    padding: 2rem;
    text-align: center;
}

.counter-value {
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.counter-label {
    font-size: 1.125rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 767px) {
    .counter-value {
        font-size: 2rem;
    }

    .counter-label {
        font-size: 1rem;
    }
}

/* ==========================================================================
   PROGRESS BAR - Pasek postępu
   ========================================================================== */

.progress-bar-component {
    margin: 1.5rem 0;
}

.progress {
    height: 1.5rem;
    border-radius: 0.75rem;
    background-color: #e9ecef;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.75rem;
    box-shadow: 0 3px 3px rgba(102, 126, 234, 0.3);
    transition: width 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
}

.progress-bar-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* ==========================================================================
   ACCORDION - Rozwijane sekcje
   ========================================================================== */

.accordion {
    --bs-accordion-border-radius: 0.5rem;
    --bs-accordion-inner-border-radius: calc(0.5rem - 1px);
    margin: 1.5rem 0;
}

.accordion-item {
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.125);
    margin-bottom: 0.5rem;
    border-radius: 0.5rem !important;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

.accordion-button {
    font-weight: 600;
    font-size: 1.0625rem;
    color: #2c3e50;
    background-color: #f8f9fa;
    padding: 1.25rem 1.5rem;
    transition: all 0.2s ease;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
    border-color: transparent;
}

.accordion-button::after {
    background-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
}

.accordion-body {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
}

/* ==========================================================================
   POSTS LIST - Lista wpisów
   ========================================================================== */

/* Ogólne style dla wszystkich layoutów */
.posts-list {
    margin: 2rem 0;
}

.post-card {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.15);
}

.post-image {
    overflow: hidden;
    background-color: #f8f9fa;
}

.post-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

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

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.post-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
}

.post-description p {
    margin-bottom: 1rem;
}

.post-description p:last-child {
    margin-bottom: 0;
}

/* Cards Layout */
.posts-list-cards .post-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.posts-list-cards .post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* List Layout */
.posts-list-list .row {
    gap: 1.5rem 0;
}

.posts-list-list .post-card {
    display: flex;
    flex-direction: row;
}

.posts-list-list .post-image {
    flex: 0 0 250px;
    max-width: 250px;
}

.posts-list-list .post-content {
    flex: 1;
}

@media (max-width: 767px) {
    .posts-list-list .post-card {
        flex-direction: column;
    }

    .posts-list-list .post-image {
        flex: 0 0 auto;
        max-width: 100%;
    }
}

/* ==========================================================================
   TESTIMONIALS - Opinie klientów
   ========================================================================== */

.testimonials {
    margin: 2rem 0;
}

.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.15);
}

.testimonial-rating {
    color: #ffc107;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-content {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #495057;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: #e9ecef;
    position: absolute;
    top: -1rem;
    left: -0.5rem;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1rem;
}

.testimonial-location,
.testimonial-source {
    font-size: 0.875rem;
    color: #6c757d;
}

/* ==========================================================================
   ICON BOX - Ikona z tekstem
   ========================================================================== */

.icon-box-component {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

.icon-box-component:hover {
    transform: translateY(-6px);
    box-shadow: 0 0.75rem 1.5rem rgba(0,0,0,0.12);
    border-color: #667eea;
}

.icon-box-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
    box-shadow: 0 0.5rem 1rem rgba(102, 126, 234, 0.3);
}

.icon-box-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.icon-box-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #6c757d;
}

/* ==========================================================================
   ALERT BOX - Komunikaty
   ========================================================================== */

.alert-box-component {
    margin: 1.5rem 0;
}

/* ==========================================================================
   DIVIDER - Separator z tekstem
   ========================================================================== */

.divider-component {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
}

.divider-component::before,
.divider-component::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid #dee2e6;
}

.divider-component:not(:empty)::before {
    margin-right: 1rem;
}

.divider-component:not(:empty)::after {
    margin-left: 1rem;
}

.divider-component span {
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

/* ==========================================================================
   SPACER - Responsywna przestrzeń
   ========================================================================== */

.spacer-component {
    display: block;
}

/* ==========================================================================
   GOOGLE MAP
   ========================================================================== */

.google-map-component {
    margin: 2rem 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1);
}

.google-map-component iframe {
    width: 100%;
    display: block;
}

/* ==========================================================================
   SLIDER / CAROUSEL
   ========================================================================== */

.slider-component {
    margin: 0;
}
.slider-component .slide-content{
  position: absolute;
}

.slider-component.slider-type-standard .swiper {
    position: relative;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    padding-bottom: 4.5rem;
}

.slider-component.slider-type-standard .swiper-slide {
    background-color: transparent;
    display: block;
    min-height: 0;
    padding: 0;
}

.slider-component.slider-type-standard .slide-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.slider-component.slider-type-standard .slide-content {
    color: inherit;
    text-shadow: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.slider-component.slider-type-standard .slide-content * {
    color: inherit;
}

.slider-component.slider-type-standard .slide-media {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.slider-component.slider-type-standard .slide-media .slide-image-wrapper {
    width: 100%;
    height: 100%;
    display: block;
}

.slider-component.slider-type-standard .slide-media .swiper-slide-img {
    width: 100%;
    height: auto;
    display: block;
}

.slider-component.slider-type-standard .swiper-button-prev,
.slider-component.slider-type-standard .swiper-button-next {
    background: rgba(15, 23, 42, 0.12);
    color: #1e293b;
    top: auto;
    bottom: 3.5rem;
    transform: none;
    z-index: 5;
}

.slider-component.slider-type-standard .swiper-button-prev:hover,
.slider-component.slider-type-standard .swiper-button-next:hover {
    background: rgba(15, 23, 42, 0.2);
}

.slider-component.slider-type-standard .swiper-button-prev {
    left: 1.5rem;
}

.slider-component.slider-type-standard .swiper-button-next {
    right: 1.5rem;
}

.slider-component.slider-type-standard .swiper-pagination {
    bottom: 1.2rem;
}

.slider-component.slider-type-standard .swiper-pagination-bullet {
    background: rgba(15, 23, 42, 0.4);
}

.slider-component.slider-type-standard .swiper-pagination-bullet-active {
    background: #2563eb;
}

.slider-component .slider-description {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: inherit;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;

    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    z-index: 999;
}

.slider-component .slider-description p:last-child {
    margin-bottom: 0;
}

.slider-component .swiper {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.15);
}

.slider-component .swiper-slide {
    position: relative;
    background-color: #0d101a;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-component .slide-content {
    z-index: 10;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
}

.slider-component .slide-content h2,
.slider-component .slide-content h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.slider-component .slide-content p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.slider-component .slide-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-component .swiper-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-component .swiper-button-next,
.slider-component .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.slider-component .swiper-button-next:hover,
.slider-component .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

.slider-component .swiper-button-next::after,
.slider-component .swiper-button-prev::after {
    font-size: 1.25rem;
}

.slider-component .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.slider-component .swiper-pagination-bullet-active {
    opacity: 1;
    background: #667eea;
    width: 32px;
    border-radius: 6px;
}

@media (max-width: 767px) {
    .slider-component .swiper-slide {
        min-height: 300px;
    }

    .slider-component.slider-type-standard .swiper {
        padding-bottom: 4rem;
    }

    .slider-component.slider-type-standard .slide-inner {
        gap: 1rem;
    }

    .slider-component.slider-type-standard .swiper-button-prev,
    .slider-component.slider-type-standard .swiper-button-next {
        bottom: 3rem;
        width: 40px;
        height: 40px;
    }

    .slider-component.slider-type-standard .swiper-button-prev::after,
    .slider-component.slider-type-standard .swiper-button-next::after {
        font-size: 1rem;
    }

    .slider-component .swiper-button-next,
    .slider-component .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .slider-component .swiper-button-next::after,
    .slider-component .swiper-button-prev::after {
        font-size: 1rem;
    }
}

/* ==========================================================================
   PAGE GROUP - Grupa stron
   ========================================================================== */

.page-group-grid,
.page-group-slider,
.page-group-list {
    margin: 2rem 0;
}

.page-group-item {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.page-group-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 0.75rem 1.5rem rgba(0,0,0,0.15);
    color: inherit;
    text-decoration: none;
}

.page-group-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f8f9fa;
}

.page-group-item-content {
    padding: 1.5rem;
}

.page-group-item-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.page-group-item-excerpt {
    font-size: 0.9375rem;
    color: #6c757d;
    line-height: 1.6;
}

/* ==========================================================================
   GALLERY - Galeria zdjęć
   ========================================================================== */

.gallery-component {
    margin: 2rem 0;
}

/* Grid Gallery */
.gallery-grid {
    display: grid;
    gap: 1rem;
}

.gallery-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

@media (max-width: 767px) {
    .gallery-grid-2,
    .gallery-grid-3,
    .gallery-grid-4 {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Tablet range (może być zmienione w ustawieniach website) */
@media (min-width: 768px) and (max-width: 1023px) {
    .gallery-grid-3,
    .gallery-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   RESPONSYWNOŚĆ GLOBALNA (Desktop: 1400px, Tablet: 992px, Mobile: 576px)
   ========================================================================== */

/* Tablet (domyślnie 992px - 1399px, może być zmienione w ustawieniach website) */
@media (min-width: 992px) and (max-width: 1399px) {
    .form-container,
    .redrox-form-container {
        padding: 1.75rem;
    }

    .post-card {
        margin-bottom: 1.25rem;
    }
}

/* Small Tablet / Large Mobile (576px - 991px) */
@media (min-width: 576px) and (max-width: 991px) {
    .form-container,
    .redrox-form-container {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .form-title,
    .redrox-form-container h3 {
        font-size: 1.5rem;
    }

    .form-container .btn-primary,
    .redrox-form-container .btn-primary,
    .contact-form .btn-primary {
        width: 100%;
    }

    .form-container .form-control,
    .redrox-form-container .form-control,
    .contact-form .form-control {
        font-size: 0.9375rem;
    }
}

/* Mobile (poniżej 576px) */
@media (max-width: 575px) {
    .page-section {
        padding: 2rem 0;
    }

    .form-container,
    .redrox-form-container {
        padding: 1.25rem;
        margin: 1.25rem 0;
        border-radius: 0.75rem;
    }

    .form-title,
    .redrox-form-container h3 {
        font-size: 1.375rem;
        margin-bottom: 0.75rem;
    }

    .form-description,
    .redrox-form-container p {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
    }

    .form-container .form-label,
    .redrox-form-container .form-label,
    .contact-form .form-label {
        font-size: 0.875rem;
    }

    .form-container .form-control,
    .redrox-form-container .form-control,
    .contact-form .form-control,
    .form-container .form-select,
    .redrox-form-container .form-select,
    .contact-form .form-select {
        font-size: 0.9375rem;
        padding: 0.625rem 0.875rem;
    }

    .form-container textarea.form-control,
    .redrox-form-container textarea.form-control,
    .contact-form textarea.form-control {
        min-height: 100px;
    }

    .form-container .btn-primary,
    .redrox-form-container .btn-primary,
    .contact-form .btn-primary {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }

    .form-check-label {
        font-size: 0.8125rem;
    }

    .form-container .form-check-input,
    .redrox-form-container .form-check-input,
    .contact-form .form-check-input {
        width: 1.125rem;
        height: 1.125rem;
    }

    .post-card {
        margin-bottom: 1.5rem;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.175) !important;
}

.rounded {
    border-radius: 0.5rem !important;
}

.rounded-lg {
    border-radius: 1rem !important;
}

/* ==========================================================================
   ANIMACJE
   ========================================================================== */

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

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

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

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

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animacje dla komponentów przy scroll */
.animate-on-scroll {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.animate-on-scroll.slide-up {
    animation: slideUp 0.8s ease forwards;
}

.animate-on-scroll.scale-in {
    animation: scaleIn 0.6s ease forwards;
}

/* ==========================================================================
   GALERIE
   ========================================================================== */

/* Gallery Component Container */
.gallery-component {
    width: 100%;
    margin: 2rem 0;
}

/* Gallery Item - podstawowy styl dla każdego elementu */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.gallery-item p {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

/* Gallery Grid - specyficzne style dla typu grid */
.gallery-grid .gallery-item {
    height: 100%;
}

/* Gallery Slider - specyficzne style dla typu slider */
.gallery-slider .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    overflow: hidden;
}

.gallery-slider .slide-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slider .swiper-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-slider .swiper-slide-active img {
    animation: slideZoom 0.6s ease-out;
}

@keyframes slideZoom {
    from {
        transform: scale(1.1);
        opacity: 0.8;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gallery-slider .slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    padding: 2rem 1rem 1rem;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.gallery-slider .slide-caption h5 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gallery-slider .slide-caption p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Swiper Navigation */
.gallery-slider .swiper-button-prev,
.gallery-slider .swiper-button-next {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.gallery-slider .swiper-button-prev:hover,
.gallery-slider .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.gallery-slider .swiper-button-prev::after,
.gallery-slider .swiper-button-next::after {
    font-size: 20px;
    font-weight: bold;
}

/* Swiper Pagination */
.gallery-slider .swiper-pagination {
    bottom: 20px;
}

.gallery-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.gallery-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: #007bff;
    width: 32px;
    border-radius: 6px;
}

/* Gallery Slider Swiper - dodatkowe style */
.gallery-slider-swiper {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Parallax effect support */
.gallery-slider-swiper[data-swiper-parallax] .slide-image-wrapper,
.gallery-slider-swiper[data-swiper-parallax] .slide-caption {
    transition: transform 0.3s ease;
}

/* Gallery Masonry - specyficzne style dla typu masonry */
.gallery-masonry .masonry-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.gallery-masonry .masonry-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-masonry .masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-masonry .masonry-item h5,
.gallery-masonry .masonry-item p {
    padding: 0 1rem;
}

/* Responsywność dla galerii */
@media (max-width: 768px) {
    .gallery-component {
        margin: 1rem 0;
    }

    .gallery-slider .swiper-slide img {
        max-height: 400px;
    }

    .gallery-slider .swiper-button-prev,
    .gallery-slider .swiper-button-next {
        width: 36px;
        height: 36px;
    }

    .gallery-slider .swiper-button-prev::after,
    .gallery-slider .swiper-button-next::after {
        font-size: 16px;
    }

    .gallery-slider .slide-caption {
        padding: 1rem 0.75rem 0.75rem;
    }

    .gallery-slider .slide-caption h5 {
        font-size: 1rem;
    }

    .gallery-slider .slide-caption p {
        font-size: 0.875rem;
    }

    .gallery-slider .swiper-pagination {
        bottom: 10px;
    }
}

/* Gallery Slider - hero type */
.gallery-slider.gallery-hero .swiper-slide {
    min-height: 600px;
}

.gallery-slider.gallery-hero .swiper-slide img {
    max-height: 800px;
    object-fit: cover;
}

.gallery-slider.gallery-hero .slide-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3));
    padding: 3rem 2rem 2rem;
}

.gallery-slider.gallery-hero .slide-caption h5 {
    font-size: 2.5rem;
    font-weight: 700;
}

.gallery-slider.gallery-hero .slide-caption p {
    font-size: 1.125rem;
}

/* Gallery Slider - fullscreen type */
.gallery-slider.gallery-fullscreen {
    height: 100vh !important;
}

.gallery-slider.gallery-fullscreen .swiper-slide {
    height: 100vh;
}

.gallery-slider.gallery-fullscreen .swiper-slide img {
    max-height: 100vh;
    object-fit: cover;
}

@media (max-width: 768px) {
    .gallery-slider.gallery-hero .swiper-slide {
        min-height: 400px;
    }

    .gallery-slider.gallery-hero .slide-caption h5 {
        font-size: 1.75rem;
    }

    .gallery-slider.gallery-hero .slide-caption p {
        font-size: 1rem;
    }
}

/* ==========================================================================
   SLIDER COMPONENT (dedykowany komponent slider, nie galeria)
   ========================================================================== */

.slider-hero,
.slider-fullscreen {
    border-radius: 0;
}

.slider-hero .swiper-slide {
    min-height: 600px;
}

.slider-fullscreen {
    height: 100vh !important;
    border-radius: 0;
}

.slider-fullscreen .swiper-slide {
    height: 100vh;
}

/* Slider Navigation & Pagination - ujednolicone style */
.swiper-button-prev,
.swiper-button-next {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.swiper-pagination {
    bottom: 20px;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #007bff;
}

.swiper-pagination-bullet.swiper-pagination-bullet-active {
    width: 32px;
    border-radius: 6px;
}

/* Slide Content */
.slide-content {
    position: relative;
    z-index: 10;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.slide-content h1,
.slide-content h2,
.slide-content h3,
.slide-content h4,
.slide-content h5,
.slide-content h6 {
    color: #fff;
    margin-bottom: 1rem;
}

.slide-content p {
    color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 768px) {
    .slider-hero .swiper-slide {
        min-height: 400px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 36px;
        height: 36px;
    }

    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 16px;
    }
}

.swiper .slide-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PODSTAWOWE STYLE DLA WIELOPOZIOMOWEGO MENU .navigation */

/* Lista główna */
.navigation {
    margin: 0;
    padding: 0;
    list-style: none;

    display: flex;          /* poziome menu główne */
    gap: 1.5rem;
  }

  /* Wszystkie elementy li w nawigacji */
  .navigation li {
    position: relative;
  }

  /* Wszystkie linki */
  .navigation a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #222;
    white-space: nowrap;
  }

  /* Linki pierwszego poziomu – minimalnie mocniejsze */
  .navigation > li > a {
    font-weight: 500;
  }

  /* Hover / focus na dowolnym linku */
  .navigation li > a:hover,
  .navigation li > a:focus {
    background: #f5f5f5;
  }

  /* WSPÓLNE DOMYŚLNE STYLE DLA WSZYSTKICH PODMENU (poziom 2+) */
  .navigation ul {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;

    min-width: 180px;
    margin: 0;
    padding: 0.5rem 0;

    list-style: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;

    display: none;   /* domyślnie ukryte */
  }

  /* Linki w podmenu – trochę mniejsze */
  .navigation ul a {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }

  /* Pokazanie *bez względu na poziom* – po najechaniu na element rodzica */
  .navigation li:hover > ul,
  .navigation li:focus-within > ul {
    display: block;
  }

  /* PODMENU GŁĘBSZYCH POZIOMÓW (flyout w bok) */
  .navigation ul ul {
    top: 0;
    left: 100%;
    margin-left: 0.15rem;
    border-radius: 4px;
  }


 /* KONTENER PRZEŁĄCZNIKA JĘZYKÓW */
.language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-family: inherit;
  }

  /* GŁÓWNY PRZYCISK (aktualny język) */
  .language-switcher > span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.12);

    background: rgba(255,255,255,0.95);
    color: #222;
    cursor: pointer;

    text-transform: uppercase;
    letter-spacing: 0.04em;

    transition:
      background 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.2s ease,
      color 0.2s ease;
  }

  /* Ikonka globusa (Bootstrap Icons) */
  .language-switcher > span .bi {
    font-size: 1rem;
    opacity: 0.8;
  }

  /* Efekt hover/focus na „przycisku” */
  .language-switcher:hover > span,
  .language-switcher:focus-within > span {
    background: #f5f5f5;
    border-color: rgba(0,0,0,0.18);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  }

  /* DODATKOWA STRZAŁKA (opcjonalna) */
  .language-switcher > span::after {
    content: "";
    display: inline-block;
    margin-left: 0.15rem;
    border-width: 4px 4px 0 4px;
    border-style: solid;
    border-color: currentColor transparent transparent transparent;
    transform-origin: center;
    transition: transform 0.2s ease;
  }

  .language-switcher:hover > span::after,
  .language-switcher:focus-within > span::after {
    transform: rotate(180deg);
  }

  /* LISTA ROZWIJANA */
  .language-switcher > ul {
    position: absolute;
top:50px;
    right: 0;
    z-index: 1000;

    margin: 0.25rem 0 0;
    padding: 0.35rem 0;

    min-width: 180px;
    list-style: none;

    background: #fff;
    border-radius: 0.5rem;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow:
      0 8px 20px rgba(0,0,0,0.08),
      0 0 0 1px rgba(255,255,255,0.9);

    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition:
      opacity 0.18s ease,
      transform 0.18s ease;
  }

  /* Pokazanie listy – bez JS */
  .language-switcher:hover > ul,
  .language-switcher:focus-within > ul {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Elementy listy */
  .language-switcher li {
    margin: 0;
  }

  /* Linki w dropdownie */
  .language-switcher .dropdown-item {
    display: block;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    text-decoration: none;
    color: #222;
    white-space: nowrap;

    transition:
      background 0.15s ease,
      color 0.15s ease;
  }

  /* Hover na pozycjach */
  .language-switcher .dropdown-item:hover,
  .language-switcher .dropdown-item:focus {
    background: #f3f4f6;
    color: #111;
  }

  /* Aktywny język w liście */
  .language-switcher .dropdown-item.active {

    background: #e5f0ff;
    color: var(--color-1); /* możesz podmienić na swój kolor brandu */
  }

  /* Drobny separator między pozycjami (opcjonalnie) */
  .language-switcher li + li .dropdown-item {
    border-top: 1px solid rgba(0,0,0,0.04);
  }

  /* Lightbox Styles */
  [data-lightbox] {
    cursor: pointer;
    transition: opacity 0.2s ease;
  }

  [data-lightbox]:hover {
    opacity: 0.9;
  }

  /* Lightbox Modal Overlay */
  #mediaAssetLightbox {
    z-index: 99999 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  #mediaAssetLightbox.show {
    display: block !important;
    opacity: 1;
    visibility: visible;
  }

  /* Backdrop dla modala - Bootstrap automatycznie tworzy backdrop */
  .modal-backdrop.show {
    z-index: 99998 !important;
    background-color: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .modal-backdrop.showing {
    opacity: 1;
  }

  /* Upewnij się, że backdrop dla mediaAssetLightbox ma odpowiedni z-index */
  body.modal-open #mediaAssetLightbox + .modal-backdrop,
  body.modal-open .modal-backdrop:has(+ #mediaAssetLightbox) {
    z-index: 9998 !important;
    background-color: rgba(0, 0, 0, 0.85) !important;
  }

  #mediaAssetLightbox .modal-dialog {
    position: relative;
    z-index: 10000;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  #mediaAssetLightbox.show .modal-dialog {
    opacity: 1;
    transform: scale(1);
  }

  #mediaAssetLightbox .modal-content {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    position: relative;
    z-index: 10000;
    pointer-events: auto;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    max-height: 100%;
  }

  #mediaAssetLightbox .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 1.5rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  #mediaAssetLightbox .modal-title {
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
  }

  /* Duży przycisk zamykania w prawym górnym rogu */
  #mediaAssetLightbox .lightbox-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  #mediaAssetLightbox .lightbox-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
  }

  #mediaAssetLightbox .lightbox-close-btn:active {
    transform: scale(0.95);
  }

  #mediaAssetLightbox .lightbox-close-btn svg {
    width: 32px;
    height: 32px;
    stroke: #fff;
    pointer-events: none;
  }

  #mediaAssetLightbox .lightbox-close-btn:hover svg {
    stroke: #fff;
  }

  /* Stary przycisk Bootstrap - ukryj */
  #mediaAssetLightbox .btn-close-white {
    display: none;
  }

  #mediaAssetLightbox .modal-body {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  #mediaAssetLightbox .lightbox-image {
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
  }

  #mediaAssetLightbox.show .lightbox-image {
    opacity: 1;
    transform: scale(1);
  }

  #mediaAssetLightbox .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  #mediaAssetLightbox .lightbox-description {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin: 0;
    font-size: 0.95rem;
  }

  /* Loading spinner dla lightboxa */
  .lightbox-loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  /* ==========================================================================
   PRICE LIST COMPONENT - Pseudo-tabela używająca CSS Grid
   ========================================================================== */

.price-list-component {
    margin: 2rem 0;
}

.price-list-category {
    margin-bottom: 3rem;
}

.price-list-category:last-child {
    margin-bottom: 0;
}

.price-list-category-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;

}

/* Kontener tabeli - CSS Grid */
.price-list-table {

    border-radius: 0.75rem;
    overflow: hidden;

    border: 1px solid #e9ecef;
}

/* Nagłówek (thead) */
.price-list-header {
    display: grid;
    grid-template-columns: repeat(var(--column-count, 3), 1fr);
     font-weight: 600;
    color: #fff;
    border-bottom: 2px solid #5568d3;
}

.price-list-th {
    padding: 1rem 1.25rem;
    text-align: right;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.price-list-th:last-child {
    border-right: none;
}

/* Ciało tabeli (tbody) */
.price-list-body {
    background: #fff;
}

/* Wiersz (tr) */
.price-list-row {
    display: grid;
    grid-template-columns: repeat(var(--column-count, 3), 1fr);
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.price-list-row:last-child {
    border-bottom: none;
}

.price-list-row:hover {
    background-color: #f8f9fa;
}

/* Komórka (td) */
.price-list-td {
    padding: 1rem 1.25rem;
    border-right: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1rem;
    color: #495057;
}

.price-list-td:last-child {
    border-right: none;
}

/* Nazwa produktu/usługi */
.price-list-item-name {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.0625rem;
}

.price-list-item-name strong {
    color: #2c3e50;
}

/* Opis produktu */
.price-list-item-description {
    font-size: 0.875rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Cena */
.price-list-price {
    font-weight: 700;
    color: #667eea;
    font-size: 1.125rem;
    text-align: right;
    justify-content: center;
}

/* Empty state */
.price-list-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    color: #6c757d;
}

/* Responsywność - na mobile przekształć w karty */
@media (max-width: 767px) {
    .price-list-category-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Na mobile ukryj nagłówek */
    .price-list-header {
        display: none;
    }

    /* Wiersze stają się kartami */
    .price-list-row {
        display: block;
        border: 1px solid #e9ecef;
        border-radius: 0.5rem;
        margin-bottom: 1rem;
        padding: 0;
        box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    }

    .price-list-row:hover {
        background-color: #fff;
        box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
    }

    /* Komórki jako bloki */
    .price-list-td {
        padding: 0.875rem 1rem;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .price-list-td:last-child {
        border-bottom: none;
    }

    /* Dodaj etykiety przed wartościami na mobile */
    .price-list-td:not(:first-child)::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        color: #6c757d;
        font-size: 0.8125rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 0.25rem;
    }

    .price-list-price {
        text-align: left;
        font-size: 1.25rem;
    }

    .price-list-item-name {
        font-size: 1.125rem;
    }
}

/* Tablet - zachowaj tabelę ale dostosuj rozmiary */
@media (min-width: 768px) and (max-width: 991px) {
    .price-list-th,
    .price-list-td {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }

    .price-list-item-name {
        font-size: 1rem;
    }

    .price-list-price {
        font-size: 1.0625rem;
    }
}
