/* Czcionka, reset i podstawy */
:root {
    --black: #000;
    --white: #fff;
    --muted: #6c757d;
}

html, body {
    height: 100%;
    max-width: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--black);
    background: #fff;
    overflow-x: hidden;
}

a {
    color: var(--black);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 1055;
    overflow: hidden;
}

.preloader .preloader-inner {
    text-align: center;
}

.brand-logo {
    display: inline-block;
}


.preloader-logo {
    height: 80px;
    width: auto;
}

.loading {
    width: 380px;
    height: 6px;
    background: #e9ecef;
    border-radius: 999px;
    overflow: hidden;
}

.loading-bar {
    width: 0;
    height: 100%;
    background: #000;
    animation: loadbar 1s linear forwards;
}

@keyframes loadbar {
    to {
        width: 100%;
    }
}

/* Efekt przewinięcia preloadera do góry */
.preloader.slide-up {
    animation: slideUp .6s ease forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(-100%);
    }
}

/* Nawigacja */
.navbar .navbar-brand {
    text-decoration: none !important;
}

.navbar-logo {
    height: 55px;
    width: auto;
}

.navbar .nav-link {
    color: #000;
    font-weight: 600;
    position: relative;
}

.navbar .nav-link.active, .navbar .nav-link:focus, .navbar .nav-link:hover {
    color: #000;
    text-decoration: underline;
}

.navbar .nav-link.active {
    text-decoration-thickness: 2px;
}

/* Sekcje */
.section-title {
    font-weight: 700;
    letter-spacing: .02em;
}

.section {
    scroll-margin-top: 80px;
}

/* Sekcja "Co nas wyróżnia" - zwiększona czcionka */
.section .row.g-4 p {
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .section .row.g-4 p {
        font-size: 1.2rem;
    }
}

/* Cytat */
.blockquote .quote-text {
    font-size: 1.5rem;
    font-weight: 400;
}

@media (min-width: 768px) {
    .blockquote .quote-text {
        font-size: 2rem;
    }
}

/* Większy margin między tekstem a cytatem w sekcji "Co nas wyróżnia" */
.section hr {
    margin: 3rem 0;
}

/* Sekcja "Sztuka skutecznej komunikacji" - powiększona czcionka */
.animate-slide-right p {
    font-size: 1.1rem;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .animate-slide-right p {
        font-size: 1.25rem;
    }
}

/* Hero */
.section-hero {
    color: #000;
}

.section-hero .hero-bg {
    position: absolute;
    inset: 0;
    background: url('../img/main.jpg') center/cover no-repeat;
}

.section-hero .hero-text {
    background: rgba(255, 255, 255, .9);
    max-width: 820px;
    border-left: 2px solid #000;
}

/* Zdjęcia w sekcji oferty - identyczne wymiary */
.row.g-3 img {
    object-fit: cover;
    object-position: center;
}

/* Oferta */
.offer-list .offer-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    background: #fff;
    height: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.offer-list .offer-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #bbb;
}

.offer-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.offer-title::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #000;
    transition: width 0.4s ease;
}

.offer-item:hover .offer-title::after {
    width: 100%;
}

.image-overlay-text {
    position: relative;
}

.image-overlay-text img {
    display: block;
}

.image-overlay-text .overlay-text {
    position: absolute;
    inset: auto 0 0 0;
    background: rgba(255, 255, 255, .92);
    color: #000;
    padding: 16px;
    border-top: 2px solid #000;
}

/* Publikacje */
.carousel .carousel-inner {
    height: 800px;
}

.carousel .carousel-item {
    height: 800px;
    position: relative;
    background-color: #f8f9fa;
}

.publication-container {
    position: relative;
    height: 100%;
}

.carousel .carousel-item img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    height: auto;
    width: auto;
}

.publication-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .92);
    color: #000;
    padding: 16px;
    text-align: center;
    font-size: 0.9rem;
}

.carousel .carousel-control-prev,
.carousel .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .9);
    border: 1px solid #000;
    border-radius: 50%;
    opacity: 1;
}

.carousel .carousel-control-prev {
    left: 1rem;
}

.carousel .carousel-control-next {
    right: 1rem;
}

.carousel .carousel-control-prev-icon,
.carousel .carousel-control-next-icon {
    filter: invert(1) grayscale(100%);
    width: 24px;
    height: 24px;
}

/* FAQ - minimalistyczny design z lepszym kontrastem */
.accordion {
    border: none;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.accordion-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #fff;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.accordion-item:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.accordion-button {
    background: #fff;
    border: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 1.5rem;
    color: #000;
    border-radius: 8px;
    position: relative;
    text-align: left;
    box-shadow: none;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.accordion-button:not(.collapsed) {
    background: #f8f9fa;
    color: #000;
    box-shadow: none;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    width: 3rem;
    height: 1rem;
    transition: transform 0.2s ease;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.accordion-button:not(.collapsed)::after {
    transform: translateY(-50%) rotate(180deg);
}

.accordion-body {
    padding: 1.5rem;
    background: #fff;
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    border: none;
    border-radius: 0 0 8px 8px;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Kontakt */
.contact-box {
    background: #fff;
    border: 1px solid #000;
}

/* Stopka */
footer {
    background: #fff;
    color: #000;
}

.contact-item {
    padding: 1rem;
}

.contact-icon {
    font-size: 2rem;
    color: #000;
    margin-bottom: 0.5rem;
    display: block;
}

.contact-item a {
    color: #000;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Animacje wjeżdżania */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s ease;
}

.animate-slide-left {
    transform: translateX(-60px);
}

.animate-slide-right {
    transform: translateX(60px);
}

.animate-slide-up {
    transform: translateY(40px);
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateX(10px) translateY(0);
}

/* Responsywność drobna */
@media (max-width: 576px) {
    /* Zapobieganie poziomego przewijania */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .preloader-logo {
        height: 60px;
    }

    .navbar-logo {
        height: 32px;
    }

    .section-hero .hero-text {
        padding: 1rem !important;
    }

    /* Ukryj drugie zdjęcie w sekcji oferty na mobile */
    .row.g-3 .col-md-6:nth-child(2) {
        display: none;
    }

    /* FAQ - responsywność na mobile */
    .accordion {
        max-width: 100%;
        margin: 0;
        padding: 0 10px;
    }

    .accordion-item {
        margin-bottom: 0.75rem;
        border-radius: 6px;
    }

    .accordion-button {
        padding: 1rem 3rem 1rem 1rem;
        font-size: 1rem;
        line-height: 1.4;
    }

    .accordion-button::after {
        width: 1.5rem;
        height: 1rem;
        right: 1rem;
    }

    .accordion-body {
        padding: 1rem;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Zmniejsz animacje na mobile */
    .animate-slide-left {
        transform: translateX(-30px);
    }

    .animate-slide-right {
        transform: translateX(30px);
    }

    .animate-slide-up {
        transform: translateY(20px);
    }

    /* Zmniejsz wysokość karuzeli na mobile */
    .carousel .carousel-inner {
        height: 500px;
    }

    .carousel .carousel-item {
        height: 500px;
    }
}


