﻿*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", Arial, sans-serif;
    line-height: 1.6;
    color: #4b5563;
    background: #f9fafb;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* typografia */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #111827;
    outline-offset: 3px;
    border-radius: 6px;
}

.fa,
.fas,
.fab {
    line-height: 1;
}

.rotate-phone {
    transform: rotate(120deg);
}

.logo-link {
    display: inline-block;
    transition: filter 0.3s ease;
    text-decoration: none;
}

.logo-link:hover,
.logo-link:focus-visible {
    filter: brightness(1.08);
}

.logo-img {
    display: block;
    margin: 1.5rem auto;
    width: 7rem;
    max-width: 100%;
    height: auto;
}

/* skip link */
.skip-link {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 20000;
    background: #111827;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
}

/* header / nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar {
    background: linear-gradient(to right, #007cf0, #00b8c4);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.navbar a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

.navbar a:hover,
.navbar a:focus-visible {
    color: #e6fbff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.navbar button {
    background: transparent;
    border: 0;
    color: #ffffff;
    cursor: pointer;
}

.contact span,
.contact a,
.contact p,
.contact i {
    color: #ffffff;
}

[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* mobile menu */
#mobile-menu {
    display: none;
}

@media (max-width: 767px) {
    #mobile-menu {
        width: 100%;
        background: linear-gradient(to right, #007cf0, #00b8c4);
        color: #ffffff;
        padding: 0.5rem 1rem 1rem;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    }

    #mobile-menu:not(.hidden) {
        display: block;
    }

    #mobile-menu a {
        display: block;
        padding: 0.85rem 0.25rem;
        color: #ffffff;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
        font-weight: 600;
    }

    #mobile-menu a:last-child {
        border-bottom: none;
    }

    #mobile-menu a:hover,
    #mobile-menu a:focus-visible {
        color: #e6fbff;
        text-decoration: underline;
        text-underline-offset: 3px;
    }
}

@media (min-width: 768px) {
    #mobile-menu {
        display: none !important;
    }
}

.bg-hero {
    background: linear-gradient(to right, #2f9df4, #00cfe2);
}

section {
    padding: 70px 24px;
}

.custom-title {
    font-size: clamp(2rem, 5vw, 4.2rem);
    font-weight: 700;
}

/* buttons */
.btn-orange {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0.85rem 1.5rem;
    border-radius: 9999px;
    background-color: #c95d0c;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transition: background-color 0.25s ease, transform 0.2s ease;
    cursor: pointer;
}

.btn-orange:hover,
.btn-orange:focus-visible {
    background-color: #a94d09;
    text-decoration: none;
}

.shadow-lg-hover {
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.shadow-lg-hover:hover,
.shadow-lg-hover:focus-within {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
}

/* footer */
footer {
    color: #ffffff;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
    color: #e6fbff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* form */
form label {
    color: #1f2937;
}

input,
textarea,
select {
    font: inherit;
    color: #111827;
    background: #ffffff;
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.85rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:hover,
textarea:hover {
    border-color: #9ca3af;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
    outline: none;
}

/* scroll top */
#scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10005;
    width: 52px;
    height: 52px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #bfdbfe;
    background: #ffffff;
    color: #1d4ed8;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    transition: background-color 0.25s ease, transform 0.2s ease;
}

#scroll-top:hover,
#scroll-top:focus-visible {
    background: #dbeafe;
}

/* projekty */
.section-carousel {
    padding: 0 !important;
    min-height: calc(100vh - 80px);
    display: block !important;
    text-align: initial !important;
}

#projects-carousel {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
    transform: translateX(0);
    will-change: transform;
}

.project-tile {
    flex: 0 0 100%;
    width: 100%;
    min-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 2rem 1rem;
    background-color: #ffffff;
    color: #1f2937;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.project-tile p,
.project-tile ul,
.project-tile details {
    max-width: 48rem;
}

.project-tile img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.project-tile details {
    text-align: left;
}

.project-tile summary {
    list-style: none;
}

.project-tile summary::-webkit-details-marker {
    display: none;
}

/* LOGOTYPY PROJEKTÓW */
.project-logos-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    justify-content: center;
}

.project-logos-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    flex-wrap: nowrap;
}

.project-logos-main {
    display: block;
    max-width: 100%;
    width: min(950px, 78vw);
    height: auto;
    object-fit: contain;
}

.project-logos-divider {
    width: 1px;
    height: 70px;
    background: #9ca3af;
    flex: 0 0 auto;
}

.project-logos-side {
    display: block;
    width: min(120px, 10vw);
    min-width: 70px;
    height: auto;
    object-fit: contain;
}

.project-logos-mobile {
    display: none;
}

.project-logos-mobile-item {
    display: block;
    max-width: 180px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.project-logos-mobile-item-small {
    max-width: 150px;
}


#prev-slide,
#next-slide {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 9999px;
    border: none;
    background: #2563eb;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    transition: background-color 0.25s ease, transform 0.2s ease;
}

#prev-slide:hover,
#next-slide:hover,
#prev-slide:focus-visible,
#next-slide:focus-visible {
    background: #1d4ed8;
}

.doc-tile {
    background: #e5e7eb;
    width: 9rem;
    height: 9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    text-align: center;
    text-decoration: none;
    border-radius: 0.75rem;
    border: 1px solid #d1d5db;
    padding: 0.75rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.doc-tile:hover,
.doc-tile:focus-visible {
    background: #d1d5db;
    text-decoration: none;
}

/* quotes */
blockquote {
    margin: 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid #60a5fa;
    background: #f8fafc;
    border-radius: 0.5rem;
    color: #374151;
}

blockquote footer {
    margin-top: 0.75rem;
    color: #4b5563;
    background: transparent;
    padding: 0;
}

/* WCAG widget */
#wcag-toggle {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #4a7ed1;
    color: #ffffff;
    border: 4px solid #ffffff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 10001;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* desktop */
#wcag-panel {
    position: fixed;
    top: 0;
    right: -440px;
    width: min(92vw, 420px);
    height: 100vh;
    overflow-y: auto;
    background: #ffffff;
    color: #111827;
    border-radius: 14px 0 0 14px;
    box-shadow: -8px 0 30px rgba(0,0,0,0.25);
    z-index: 10002;
    transition: right 0.3s ease;
}

#wcag-panel.hidden {
    display: none;
}

#wcag-panel.active {
    display: block;
    right: 0;
}

.wcag-header {
    background: #2f68ba;
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    border-radius: 14px 0 0 0;
    position: sticky;
    top: 0;
    z-index: 2;
}

.wcag-subtitle {
    font-size: 0.85rem;
    opacity: 0.92;
}

#wcag-close {
    background: #ffffff;
    color: #2f68ba;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    flex: 0 0 auto;
}

.wcag-content {
    padding: 16px;
}

.wcag-declaration {
    display: block;
    background: #4a7ed1;
    color: #ffffff !important;
    text-align: center;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 16px;
}

.wcag-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wcag-grid button {
    min-height: 86px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #f1f5f9;
    color: #111827;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
}

.wcag-grid button:hover,
.wcag-grid button:focus-visible {
    background: #e5edf8;
}

/* Accessibility classes */
body.acc-contrast {
    background: #000000 !important;
    color: #ffff00 !important;
}

body.acc-contrast * {
    background-color: transparent !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}

body.acc-contrast a {
    color: #00ffff !important;
    text-decoration: underline !important;
}

body.acc-readable-font {
    font-family: Arial, Helvetica, sans-serif !important;
}

body.acc-font-inc {
    font-size: 112%;
}

body.acc-line-height {
    line-height: 1.9 !important;
}

body.acc-line-height p,
body.acc-line-height li,
body.acc-line-height a,
body.acc-line-height span {
    line-height: 1.9 !important;
}

body.acc-letter-spacing {
    letter-spacing: 0.06em;
}

body.acc-content-scale main {
    transform: scale(1.03);
    transform-origin: top center;
}

body.acc-underline-links a {
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

@media (max-width: 1024px) {
    .project-logos-desktop {
        gap: 16px;
    }

    .project-logos-main {
        width: min(820px, 76vw);
    }

    .project-logos-side {
        width: min(95px, 10vw);
    }

    .project-logos-divider {
        height: 56px;
    }
}

@media (max-width: 767px) {
    .project-logos-desktop {
        display: none;
    }

    .project-logos-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: 100%;
        background: #ffffff;
        padding: 1rem;
        border-radius: 12px;
    }
}


/* responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 14px 16px;
        flex-direction: row;
        align-items: center;
    }

    .navbar .hidden.md\:flex {
        display: none !important;
    }

    section {
        padding: 56px 20px;
    }

    .project-tile {
        justify-content: flex-start;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    #wcag-toggle {
        left: 14px;
        bottom: 14px;
        width: 58px;
        height: 58px;
    }

    #wcag-panel {
        top: 70px;
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        height: auto;
        max-height: none;
        overflow-y: auto;
        border-radius: 14px;
        box-shadow: 0 18px 40px rgba(0,0,0,0.25);
    }

    #wcag-panel.active {
        display: block;
        right: 10px;
    }

    .wcag-header {
        border-radius: 14px 14px 0 0;
    }

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

    #scroll-top {
        right: 14px;
        bottom: 20px;
        width: 48px;
        height: 48px;
    }
}
@media (max-width: 768px) and (orientation: portrait) {

    /* STRZAŁKA / PRZEWIJANIE */
    .scroll-hint,
    .scroll-next,
    .kreator-scroll-next {
        right: 12px;
        bottom: 12px;
        width: 36px;
        height: 36px;
        font-size: 16px;

        background: rgba(255,255,255,0.95);
        border: 1px solid #e5e7eb;
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    }

    /* żeby nie nachodziła na tekst */
    .about-card,
    .o-nas-box,
    .box-o-nas {
        padding-bottom: 50px;
    }

    /* IKONA DOSTĘPNOŚCI */
    .accessibility-btn,
    .a11y-btn,
    #accessibility-toggle {
        left: 12px;
        bottom: 12px;

        width: 54px;
        height: 54px;
        font-size: 24px;

        border: 3px solid #fff;
        box-shadow: 0 10px 24px rgba(37, 99, 235, 0.4);
    }

    /* lekka poprawa klikalności */
    .accessibility-btn:active,
    .a11y-btn:active,
    #accessibility-toggle:active {
        transform: scale(0.95);
    }
}

/* Pełny pasek logotypów dla projektu Lubelskiego */

/* Tylko projekt Krasnostawski DDP */
.project-krasnostaw {
  justify-content: flex-start !important;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
  overflow-y: auto;
}

.project-krasnostaw .project-logos-full-wrap {
  margin-bottom: 0.75rem;
}

.project-krasnostaw .project-tasks {
  margin-top: 0.75rem;
}

.project-krasnostaw .project-tasks section {
  margin-top: 0.45rem;
  margin-bottom: 0.45rem;
}

.project-krasnostaw .project-tasks h3 {
  margin-top: 0;
  margin-bottom: 0.15rem;
  line-height: 1.15;
  font-size: 1rem;
}

.project-krasnostaw .project-tasks p {
  margin-top: 0.1rem;
  margin-bottom: 0.15rem;
  line-height: 1.35;
}

.project-krasnostaw .project-tasks ul {
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
}

.project-logos-full-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 1rem auto;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-logos-full {
  display: block;
  width: 100%;
  max-width: 1050px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 640px) {
  .project-krasnostaw {
    padding-top: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .project-krasnostaw h2 {
    font-size: 1.25rem;
  }

  .project-krasnostaw .project-tasks h3 {
    font-size: 0.95rem;
  }

  .project-krasnostaw .project-tasks p,
  .project-krasnostaw li,
  .project-krasnostaw p {
    font-size: 0.85rem;
    line-height: 1.35;
  }

  .project-logos-full-wrap {
    max-width: 100%;
    padding: 0.5rem;
    overflow-x: auto;
  }

  .project-logos-full {
    width: 850px;
    max-width: none;
    height: auto;
  }
}

/* Bardzo zwarte odstępy tylko dla projektu Krasnostawski DDP */
.project-krasnostaw {
  justify-content: flex-start !important;
  padding-top: 0.75rem !important;
  padding-bottom: 1rem !important;
  overflow-y: auto;
}

.project-krasnostaw .project-logos-full-wrap {
  margin-bottom: 0.35rem !important;
  padding: 0.35rem 0.6rem !important;
}

.project-krasnostaw h2 {
  margin-top: 0 !important;
  margin-bottom: 0.25rem !important;
  line-height: 1.1 !important;
}

.project-krasnostaw > p {
  margin-top: 0.15rem !important;
  margin-bottom: 0.25rem !important;
  line-height: 1.3 !important;
}

.project-krasnostaw > ul {
  margin-top: 0.35rem !important;
  margin-bottom: 0.35rem !important;
  line-height: 1.3 !important;
}

.project-krasnostaw .project-tasks {
  margin-top: 0.35rem !important;
}

.project-krasnostaw .project-tasks section {
  margin-top: 0.25rem !important;
  margin-bottom: 0.25rem !important;
}

.project-krasnostaw .project-tasks h3 {
  margin-top: 0 !important;
  margin-bottom: 0.05rem !important;
  line-height: 1.08 !important;
  font-size: 0.95rem !important;
}

.project-krasnostaw .project-tasks p {
  margin-top: 0 !important;
  margin-bottom: 0.08rem !important;
  line-height: 1.25 !important;
  max-width: none !important;
}

.project-krasnostaw .project-tasks ul {
  margin-top: 0.05rem !important;
  margin-bottom: 0.05rem !important;
  line-height: 1.25 !important;
}

.project-krasnostaw .project-tasks li {
  margin-top: 0 !important;
  margin-bottom: 0.05rem !important;
  line-height: 1.25 !important;
}

.project-krasnostaw .bg-gray-100 {
  margin-top: 0.5rem !important;
  padding: 0.6rem !important;
}

.project-krasnostaw .bg-gray-100 h3 {
  margin-bottom: 0.15rem !important;
}

.project-krasnostaw .bg-gray-100 p {
  margin-top: 0 !important;
  margin-bottom: 0.05rem !important;
  line-height: 1.25 !important;
}

.project-krasnostaw > p:last-child {
  margin-top: 0.4rem !important;
}

/* POPRAWKA KARUZELI PROJEKTÓW — układ slajdów i przyciski */

/* Sekcja karuzeli bez globalnych paddingów z section */
.section-carousel {
  padding: 0 !important;
  min-height: calc(100vh - 80px);
  display: block !important;
  overflow: hidden;
  position: relative;
}

/* Kontener slajdów */
#projects-carousel {
  display: flex;
  align-items: stretch;
  transition: transform 0.5s ease-in-out;
  transform: translateX(0);
}

/* Każdy slajd/kafelek */
.project-tile {
  flex-shrink: 0;
  width: 100vw;
  min-height: calc(100vh - 80px);
  height: auto;
  overflow-y: auto;

  display: flex;
  flex-direction: column;
  justify-content: flex-start !important;
  align-items: center;

  padding-top: 1.25rem !important;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 2rem;

  background: #ffffff;
  color: #1a202c;
  text-align: center;
  box-sizing: border-box;
}

/* Logotypy bliżej góry */
.project-logos-wrap {
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
}

/* Pełny pasek logotypów */
.project-logos-full-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 1rem auto !important;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-logos-full {
  display: block;
  width: 100%;
  max-width: 1050px;
  height: auto;
  object-fit: contain;
}

/* Tylko projekt Krasnostawski DDP */
.project-krasnostaw {
  justify-content: flex-start !important;
  padding-top: 0.75rem !important;
  padding-bottom: 1rem !important;
  overflow-y: auto;
}

.project-krasnostaw .project-logos-full-wrap {
  margin-bottom: 0.35rem !important;
  padding: 0.35rem 0.6rem !important;
}

.project-krasnostaw h2 {
  margin-top: 0 !important;
  margin-bottom: 0.25rem !important;
  line-height: 1.1 !important;
}

.project-krasnostaw > p {
  margin-top: 0.15rem !important;
  margin-bottom: 0.25rem !important;
  line-height: 1.3 !important;
}

.project-krasnostaw > ul {
  margin-top: 0.35rem !important;
  margin-bottom: 0.35rem !important;
  line-height: 1.3 !important;
}

.project-krasnostaw .project-tasks {
  margin-top: 0.35rem !important;
}

.project-krasnostaw .project-tasks section {
  margin-top: 0.25rem !important;
  margin-bottom: 0.25rem !important;
}

.project-krasnostaw .project-tasks h3 {
  margin-top: 0 !important;
  margin-bottom: 0.05rem !important;
  line-height: 1.08 !important;
  font-size: 0.95rem !important;
}

.project-krasnostaw .project-tasks p {
  margin-top: 0 !important;
  margin-bottom: 0.08rem !important;
  line-height: 1.25 !important;
  max-width: none !important;
}

.project-krasnostaw .project-tasks ul {
  margin-top: 0.05rem !important;
  margin-bottom: 0.05rem !important;
  line-height: 1.25 !important;
}

.project-krasnostaw .project-tasks li {
  margin-top: 0 !important;
  margin-bottom: 0.05rem !important;
  line-height: 1.25 !important;
}

.project-krasnostaw .bg-gray-100 {
  margin-top: 0.5rem !important;
  padding: 0.6rem !important;
}

.project-krasnostaw .bg-gray-100 h3 {
  margin-bottom: 0.15rem !important;
}

.project-krasnostaw .bg-gray-100 p {
  margin-top: 0 !important;
  margin-bottom: 0.05rem !important;
  line-height: 1.25 !important;
}

.project-krasnostaw > p:last-child {
  margin-top: 0.4rem !important;
}

/* Przyciski przewijania slajdów */
.section-carousel > .absolute.inset-y-0.left-0,
.section-carousel > .absolute.inset-y-0.right-0 {
  top: 38%;
  bottom: auto;
  transform: translateY(-50%);
  height: auto;
}

/* Same przyciski */
#prev-slide,
#next-slide {
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

#prev-slide {
  margin-left: 0.75rem;
}

#next-slide {
  margin-right: 0.75rem;
}

#prev-slide:hover,
#next-slide:hover {
  background: #1e40af;
}

/* Mobile */
@media (max-width: 640px) {
  .section-carousel {
    min-height: calc(100vh - 70px);
  }

  .project-tile {
    min-height: calc(100vh - 70px);
    padding-top: 1rem !important;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 1.5rem;
  }

  .project-krasnostaw {
    padding-top: 0.75rem !important;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .project-krasnostaw h2 {
    font-size: 1.25rem !important;
  }

  .project-krasnostaw .project-tasks h3 {
    font-size: 0.95rem !important;
  }

  .project-krasnostaw .project-tasks p,
  .project-krasnostaw li,
  .project-krasnostaw p {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
  }

  .project-logos-full-wrap {
    max-width: 100%;
    padding: 0.5rem;
    overflow-x: auto;
  }

  .project-logos-full {
    width: 850px;
    max-width: none;
    height: auto;
  }

  .section-carousel > .absolute.inset-y-0.left-0,
  .section-carousel > .absolute.inset-y-0.right-0 {
    top: 42%;
  }

  #prev-slide,
  #next-slide {
    width: 38px;
    height: 38px;
  }
}

/* Naprawa dużych odstępów między zadaniami tylko w projekcie Krasnostaw */
.project-krasnostaw .project-tasks section {
  padding: 0 !important;
  min-height: auto !important;
  height: auto !important;
  display: block !important;
  flex-direction: initial !important;
  align-items: initial !important;
  justify-content: initial !important;
  text-align: left !important;
  margin: 0 0 0.45rem 0 !important;
}

.project-krasnostaw .project-tasks section h3 {
  margin: 0 0 0.1rem 0 !important;
  padding: 0 !important;
  line-height: 1.15 !important;
}

.project-krasnostaw .project-tasks section p {
  margin: 0 0 0.15rem 0 !important;
  padding: 0 !important;
  max-width: none !important;
  line-height: 1.3 !important;
}

.project-krasnostaw .project-tasks section ul {
  margin: 0.15rem 0 0.2rem 0 !important;
  padding-left: 1.2rem !important;
}

.project-krasnostaw .project-tasks section li {
  margin: 0 0 0.1rem 0 !important;
  line-height: 1.3 !important;
}

/* Młode Wilki – wyrównanie i układ jak projekt Krasnostawski */
.project-mlode-wilki {
  justify-content: flex-start !important;
  padding-top: 0.75rem !important;
  padding-bottom: 1.5rem !important;
  overflow-y: auto !important;
}

/* logotypy w Młodych Wilkach */
.project-mlode-wilki .project-logos-wrap {
  margin-top: 0 !important;
  margin-bottom: 0.6rem !important;
}

/* tytuł */
.project-mlode-wilki h2 {
  text-align: center !important;
  margin-top: 0 !important;
  margin-bottom: 0.45rem !important;
  line-height: 1.1 !important;
}

/* główny kontener treści */
.project-mlode-wilki .project-content-wrap {
  width: 100% !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: left !important;
  color: #374151 !important;
}

/* główny opis pod tytułem */
.project-mlode-wilki .project-lead {
  max-width: none !important;
  margin: 0 0 0.55rem 0 !important;
  padding: 0 !important;
  font-size: 0.95rem !important;
  line-height: 1.35 !important;
  text-align: left !important;
  color: #374151 !important;
}

/* bloki informacyjne */
.project-mlode-wilki .project-info-box {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 0.55rem 0 !important;
  padding: 0 !important;
  text-align: left !important;
  color: #374151 !important;
}

/* nagłówki w blokach */
.project-mlode-wilki .project-info-box h3 {
  color: #1d4ed8 !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  margin: 0 0 0.15rem 0 !important;
  padding: 0 !important;
  line-height: 1.15 !important;
  text-align: left !important;
}

/* akapity */
.project-mlode-wilki .project-info-box p {
  max-width: none !important;
  margin: 0 0 0.12rem 0 !important;
  padding: 0 !important;
  font-size: 0.95rem !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

/* listy */
.project-mlode-wilki .project-list {
  max-width: none !important;
  margin: 0.2rem 0 0.25rem 0 !important;
  padding-left: 1.3rem !important;
  text-align: left !important;
  list-style-position: outside !important;
}

/* elementy list */
.project-mlode-wilki .project-list li {
  margin: 0 0 0.1rem 0 !important;
  padding-left: 0.15rem !important;
  font-size: 0.95rem !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

/* lista numerowana */
.project-mlode-wilki .project-list-numbered {
  list-style-type: decimal !important;
}

/* biuro projektu */
.project-mlode-wilki .project-office-box {
  background: #f3f4f6 !important;
  border-radius: 10px !important;
  padding: 0.75rem 0.9rem !important;
  margin-top: 0.7rem !important;
  margin-bottom: 0.55rem !important;
}

/* tagi */
.project-mlode-wilki .project-tags {
  max-width: none !important;
  text-align: center !important;
  color: #1d4ed8 !important;
  font-weight: 600 !important;
  margin: 0.55rem 0 0 0 !important;
}

/* przyciski dokumentów niżej, ale bez dużych przerw */
.project-mlode-wilki .doc-tile {
  margin-top: 0 !important;
}

/* zabezpieczenie przed globalnym stylem section */
.project-mlode-wilki section {
  padding: 0 !important;
  min-height: auto !important;
  height: auto !important;
  display: block !important;
  flex-direction: initial !important;
  align-items: initial !important;
  justify-content: initial !important;
  text-align: left !important;
}

/* żeby zwykłe p z globalnego stylu nie centrowały tekstu */
.project-mlode-wilki p {
  max-width: none !important;
}

/* mobile */
@media (max-width: 640px) {
  .project-mlode-wilki {
    padding-top: 0.75rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .project-mlode-wilki h2 {
    font-size: 1.35rem !important;
    margin-bottom: 0.35rem !important;
  }

  .project-mlode-wilki .project-lead,
  .project-mlode-wilki .project-info-box p,
  .project-mlode-wilki .project-list li {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
  }

  .project-mlode-wilki .project-info-box h3 {
    font-size: 0.95rem !important;
  }

  .project-mlode-wilki .project-office-box {
    padding: 0.7rem !important;
  }
}

/* Wspólny układ treści dla projektów UE */
.project-mlode-wilki,
.project-krasnostaw {
  justify-content: flex-start !important;
  padding-top: 0.75rem !important;
  padding-bottom: 1.5rem !important;
  overflow-y: auto !important;
}

/* Tytuły projektów */
.project-mlode-wilki h2,
.project-krasnostaw h2 {
  text-align: center !important;
  margin-top: 0 !important;
  margin-bottom: 0.45rem !important;
  line-height: 1.1 !important;
  font-size: 1.875rem !important;
}

/* Główna treść */
.project-mlode-wilki .project-content-wrap,
.project-krasnostaw .project-content-wrap,
.project-krasnostaw .project-tasks {
  width: 100% !important;
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: left !important;
  color: #374151 !important;
}

/* Akapity główne */
.project-mlode-wilki p,
.project-krasnostaw p {
  max-width: none !important;
  text-align: left !important;
  font-size: 0.95rem !important;
  line-height: 1.35 !important;
  margin-top: 0 !important;
  margin-bottom: 0.18rem !important;
}

/* Listy */
.project-mlode-wilki ul,
.project-mlode-wilki ol,
.project-krasnostaw ul,
.project-krasnostaw ol {
  max-width: none !important;
  text-align: left !important;
  margin-top: 0.2rem !important;
  margin-bottom: 0.3rem !important;
  padding-left: 1.3rem !important;
  list-style-position: outside !important;
}

/* Elementy list */
.project-mlode-wilki li,
.project-krasnostaw li {
  font-size: 0.95rem !important;
  line-height: 1.35 !important;
  margin-bottom: 0.12rem !important;
  text-align: left !important;
}

/* Nagłówki wewnętrzne */
.project-mlode-wilki h3,
.project-krasnostaw h3 {
  color: #1d4ed8 !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  line-height: 1.15 !important;
  text-align: left !important;
  margin-top: 0 !important;
  margin-bottom: 0.15rem !important;
}

/* Sekcje w drugim projekcie */
.project-krasnostaw .project-tasks section {
  padding: 0 !important;
  min-height: auto !important;
  height: auto !important;
  display: block !important;
  text-align: left !important;
  margin: 0 0 0.55rem 0 !important;
}

/* Górna lista danych w drugim projekcie */
.project-krasnostaw > ul {
  width: 100% !important;
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Pierwszy opis w drugim projekcie */
.project-krasnostaw > p {
  width: 100% !important;
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Biuro projektu w obu projektach */
.project-mlode-wilki .project-office-box,
.project-krasnostaw .bg-gray-100 {
  width: 100% !important;
  max-width: 980px !important;
  margin: 0.75rem auto 0.55rem auto !important;
  padding: 0.75rem 0.9rem !important;
  background: #f3f4f6 !important;
  border-radius: 10px !important;
  text-align: left !important;
}

/* Hashtagi */
.project-mlode-wilki .project-tags,
.project-krasnostaw > p:last-child {
  text-align: center !important;
  color: #1d4ed8 !important;
  font-weight: 600 !important;
  margin-top: 0.55rem !important;
}

/* Mobile */
@media (max-width: 640px) {
  .project-mlode-wilki h2,
  .project-krasnostaw h2 {
    font-size: 1.35rem !important;
  }

  .project-mlode-wilki p,
  .project-krasnostaw p,
  .project-mlode-wilki li,
  .project-krasnostaw li {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
  }

  .project-mlode-wilki h3,
  .project-krasnostaw h3 {
    font-size: 0.95rem !important;
  }
}
.project-mlode-wilki .doc-tile {
  width: 6.8rem !important;
  height: 6.8rem !important;
  padding: 0.45rem !important;
  font-size: 0.75rem !important;
  line-height: 1.1 !important;
}

.project-mlode-wilki .doc-tile i {
  font-size: 1.55rem !important;
  margin-bottom: 0.35rem !important;
}

.project-mlode-wilki .project-tags {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin: 0.75rem auto 0 auto !important;
  max-width: none !important;
}

.project-mlode-wilki .doc-tile {
  width: 6.8rem !important;
  height: 6.8rem !important;
  padding: 0.45rem !important;
  font-size: 0.75rem !important;
  line-height: 1.1 !important;
}

.project-mlode-wilki .doc-tile i {
  font-size: 1.55rem !important;
  margin-bottom: 0.35rem !important;
}
