/* Zmienne CSS */
:root {
    --primary-color: #7e7edc;
    --secondary-color: #838eeb;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --dark-bg: #222;
    --nav-bg: rgba(30, 30, 60, 0.97);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Reset i podstawowe style */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: #fff;
    overflow-wrap: break-word;
    word-break: keep-all;
}

/* Dla wszystkich tekstowych elementów */
p,
li,
h1,
h2,
h3,
h4,
h5,
h6,
a,
span,
.text {
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: manual;
}

/* Kontenery i layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

section {
    padding: 4rem 0;
    border-bottom: 1px solid #ccc;
    min-height: auto;
}

/* Nawigacja */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 0;
    margin: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 70px;
}

nav li {
    margin: 0 30px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 25px;
    transition: var(--transition);
    letter-spacing: 1px;
    display: block;
}

nav a:hover,
nav a:focus {
    background: var(--primary-color);
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    outline: none;
}

/* Sekcja 1 */
#sekcja1 {
    background-image:
        linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.85) 50%, rgba(0, 0, 0, 0) 100%),
        url('images/kobieta.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #222;
    min-height: 120vh;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

#sekcja1::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 60%;
    height: 25%;
    background: transparent;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
    background-color: var(--primary-color);
    z-index: 2;
    pointer-events: none;
}

#sekcja1 h2 {
    font-size: 4.5em;
    margin-bottom: 20px;
    color: rgb(255, 0, 0);
    padding: 15px 25px;
    border-radius: 35px;
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 1000;
    text-align: center;
}

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

#sekcja1 p {
    font-size: 2.5em;
    margin: 20px 0;
    text-align: center;
    max-width: 700px;
    line-height: 1.5;
    color: #fff;
}

.logo1 {
    height: 150px;
}

/* Sekcja 2 */
#sekcja2 {
    background: linear-gradient(to top,
            var(--secondary-color) 60%,
            rgba(255, 255, 255, 0) 80%),
        url('images/kobieta.png') right center no-repeat;
    background-size: auto 100%, cover;
    min-height: 100vh;
    display: flex;
    padding: 40px;
    color: white;
    position: relative;
    align-items: flex-end;
}

.sekcja2-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    gap: 60px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.sekcja2-left {
    flex: 1;
    max-width: 800px;
    margin-top: 280px;
}

.sekcja2-right {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    align-content: center;
    padding-top: 20px;
    width: 100%;
}

#sekcja2 h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: black;
    background-color: rgb(255, 255, 255);
    padding: 15px 25px;
    border-radius: 35px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

#sekcja2 h3 {
    font-size: 4.5em;
    font-weight: 1000;
    margin: 20px 0;
    line-height: 1.1;
    font-family: Arial, Helvetica, sans-serif;
}

#sekcja2 h3 a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    padding: 0 15px;
    border-radius: 10px;
}

.sekcja2-description {
    font-size: 1.5em;
    margin-bottom: 50px;
    line-height: 1.5;
}

.sekcja2-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px;
    border-radius: 15px;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.sekcja2-feature:hover {
    transform: translateY(-5px) scale(1.02);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-hover);
}

.sekcja2-feature img {
    margin-bottom: 15px;
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
}

.sekcja2-feature p {
    font-size: 1.5em;
    margin: 0;
    max-width: 250px;
}

/* Sekcja 3 */
#sekcja3 {
    background-color: black;
    color: white;
    min-height: 60vh;
    padding-top: 40px;
    padding-bottom: 40px;
}

.row1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
}

.row_1 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    margin-bottom: 15px;
    padding: 10px 30px;
    width: 90%;
}

.row_1 p {
    font-size: 1.5em;
    color: #fff;
    margin: 20px;
    margin-left: 50px;
}

.row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: -5%;
}

#sekcja3 h2 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: rgb(255, 255, 255);
    padding: 15px 25px;
    border-radius: 35px;
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
}

#sekcja3 h2 a {
    color: red;
    text-decoration: none;
}

.custom-list {
    padding: 0;
    padding-bottom: 5%;
}

.custom-list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.dot {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    background: red;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.3em;
}

.text {
    color: #fff;
    font-size: 1.2em;
    line-height: 1.4;
    flex: 1;
}

.benefits-header {
    display: flex;
    flex-direction: column;
    padding-bottom: 2%;
}

.pa {
    font-size: 1.5em;
    color: #fff;
    font-weight: 600;
    border-radius: 35px;
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 50px;
}

.ra {
    font-size: 5.5em;
    margin-bottom: 20px;
    color: rgb(255, 255, 255);
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 1000;
}

.red {
    color: red;
    text-decoration: none;
}

/* Sekcja 4 */
#sekcja4 {
    background: var(--primary-color) url('images/tlo1.webp') center/cover no-repeat;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    /* Dodane, aby zapobiec wyciekom */
}

#sekcja4::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(126, 126, 220, 0.4), rgba(131, 142, 235, 0.4));
    z-index: 0;
}

#sekcja4>* {
    position: relative;
    z-index: 1;
}

.schemat-box {
    background: #111;
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.25);
    padding: 0 0 30px 0;
    max-width: 1200px;
    width: 95%;
    /* Zmiana z 100% na 95% dla lepszego dopasowania */
    margin: 0 auto;
    /* Centrowanie */
}

/* Lepsze zarządzanie pamięcią GPU */
#sekcja4,
#sekcja5 {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000;
    will-change: transform;
    /* Dodane dla lepszej wydajności */
}

.schemat-header {
    padding: 40px 0 0 40px;
    margin-bottom: 0;
    line-height: 1;
}

.schemat-title-bold {
    font-size: 3.5em;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
    display: block;
    line-height: 1;
}

.schemat-title {
    font-size: 3.5em;
    font-weight: 400;
    color: #fff;
    display: block;
    line-height: 1;
    margin-top: -10px;
}

.schemat-main-row {
    display: flex;
    flex-direction: row;
    gap: 0;
    margin: 0 0 0 0;
    padding: 0 40px 0 40px;
    align-items: flex-start;
    background: #111;
}

.schemat-main-left {
    flex: 1 1 55%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 320px;
    padding: 40px 0 0 0;
}

.schemat-main-img {
    height: 360px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
}

.schemat-main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin-left: 50px;
}

.schemat-main-right {
    flex: 1 1 45%;
    color: #fff;
    font-size: 1.1em;
    padding: 40px 0 0 40px;
    min-width: 260px;
}

.schemat-list-title {
    font-weight: bold;
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 18px;
    display: block;
    letter-spacing: 1px;
}

.schemat-main-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 2px solid var(--primary-color);
    padding-left: 18px;
}

.schemat-main-right li {
    margin-bottom: 10px;
    padding-left: 0;
    position: relative;
    font-size: 1.08em;
    letter-spacing: 0.5px;
}

.schemat-main-right li::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

.schemat-bottom-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 40px;
    background: #111;
    padding: 0 40px;
}

.schemat-bottom-text {
    text-align: center;
    color: white;
    font-size: 1.5em;
}

.schemat-bottom-text h3 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 400;
    line-height: 1.2;
    color: #fff;
}

.schemat-bottom-icon-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.schemat-bottom-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.schemat-bottom-icon img {
    border-radius: 50%;
    padding: 12px;
    width: 120px;
    height: 120px;
}

.schemat-bottom-icon-row .schemat-bottom-text {
    text-align: left;
}

.schemat-bottom-icon-row p {
    color: #fff;
    font-size: 1.3em;
    margin: 0;
    line-height: 1.3;
}

/* Sekcja 5 */
#sekcja5 {
    background: #000000 url('images/5at.webp') center/cover no-repeat;
    min-height: auto;
    padding: 60px 0;
    justify-content: center;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    position: relative;

}

#sekcja5::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
}

#sekcja5>* {
    position: relative;
    z-index: 1;
}

/* Lepsze zarządzanie pamięcią GPU */
#sekcja4,
#sekcja5 {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000;
}

/* Responsywność obrazków */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

.frendzle {
    display: flex;
    justify-content: left;
    width: 4%;
    padding-left: 0;
}

.logo {
    display: flex;
    justify-content: left;
    height: 120px;
    padding-left: 0;
    margin-top: 2%;
}

.boto {
    display: flex;
}

.sponsorzy {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 90%;
    margin-right: 0;
    padding: 0;
    margin-left: 0;
    gap: 3rem;
}

.sponsorzy img {
    max-height: 240px;
    width: auto;
    object-fit: contain;
}

.boto2 {
    color: #fff;
}

.motto {
    margin-left: 5%;
}

.motto h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: rgb(255, 255, 255);
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
}

.motto p {
    font-size: 1.8em;
    border-radius: 35px;
    margin-top: -2%;
    color: #ff0000;
}

/* Responsywność */

@media (max-width: 1600px) {
    .container {
        max-width: 1500px;
    }
}

@media (max-width: 1200px) {
    #sekcja1 h2 {
        font-size: 3em;
    }

    #sekcja1 p {
        font-size: 2em;
    }

    .ra {
        font-size: 4em;
    }

    #sekcja3 h2 {
        font-size: 3em;
    }

    .sekcja2-container {
        flex-direction: column;
    }

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

    .schemat-main-row {
        flex-direction: column;
    }

    .schemat-main-left,
    .schemat-main-right {
        width: 100%;
    }

    .schemat-main-img img {
        margin-left: 0;
    }

    .frendzle {
        width: 8%;
        padding-left: 0;
    }

    .logo1 {
        height: 80px;
    }
}

@media (max-width: 992px) {
    section {
        min-height: auto;
        padding: 30px 20px;
    }

    #sekcja1 {
        min-height: 70vh;
        background-size: cover;
    }

    #sekcja2 {
        background: linear-gradient(to top, var(--secondary-color) 60%, rgba(255, 255, 255, 0) 80%),
            url('images/kobieta.png') center center no-repeat;
        background-size: auto 100%, cover;
        align-items: center;
    }

    .sekcja2-left {
        margin-top: 100px;
        margin-bottom: 50px;
    }

    .row {
        flex-direction: column;
    }

    .row1 {
        width: 100%;
    }

    .boto {
        flex-direction: column;
        align-items: center;
    }

    .sponsorzy {
        width: 100%;
        justify-content: center;
        padding: 0;
    }

    .sponsorzy {
        margin-top: 0;
        gap: 5%;
    }
}

@media (max-width: 768px) {
    #sekcja1 {
        background-attachment: scroll;
    }

    #sekcja1 h2 {
        font-size: 3em;
        padding: 10px 20px;
    }

    #sekcja1 p {
        font-size: 1.5em;
    }

    #sekcja2 h2 {
        font-size: 2em;
    }

    #sekcja2 h3 {
        font-size: 3em;
    }

    .sekcja2-feature {
        padding: 15px;
    }

    .sekcja2-feature p {
        font-size: 1.2em;
    }

    .row_1 {
        height: auto;
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .row_1 p {
        margin-left: 0;
        margin-top: 10px;
    }

    .schemat-title-bold,
    .schemat-title {
        font-size: 2.5em;
    }

    .schemat-bottom-text h3 {
        font-size: 2em;
        line-height: 1.3;
    }

    .schemat-bottom-icon-row .schemat-bottom-text p {
        font-size: 1.1em;
        margin-top: 10px;
    }

    .schemat-bottom-icon-row {
        flex-direction: column;
    }

    .motto h2 {
        font-size: 2.5em;
    }

    .motto p {
        font-size: 1.8em;
    }

    .container,
    .schemat-box,
    .sekcja2-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .schemat-header {
        padding: 20px 0 0 20px;
    }

    .schemat-main-row,
    .schemat-bottom-row {
        padding: 0 15px;
    }

    #sekcja3 {
        background-color: black;
        color: white;
        min-height: auto;
        padding: 40px 20px;
    }

    #sekcja3 .container {
        max-width: 1200px;
        margin: 0 auto;
    }

    #sekcja3 h2 {
        font-size: 2.2em;
        margin-bottom: 25px;
        color: #fff;
        text-align: center;
        padding: 12px 20px;
        border-radius: 25px;
        background: rgba(255, 0, 0, 0.2);
        display: inline-block;
        font-family: Arial, Helvetica, sans-serif;
    }

    #sekcja3 h2 a {
        color: red;
        text-decoration: none;
    }

    .row {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    .row1 {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .row_1 {
        display: flex;
        align-items: center;
        background: rgba(50, 50, 50, 0.6);
        border-radius: 12px;
        padding: 15px;
        transition: all 0.3s ease;
    }

    .row_1:hover {
        background: rgba(70, 70, 70, 0.8);
        transform: translateY(-3px);
    }

    .row_1 img {
        width: 120px;
        /* ZMIANA: zwiększone z 60px */
        height: 120px;
        /* ZMIANA: zwiększone z 60px */
        object-fit: contain;
        margin-right: 15px;
        flex-shrink: 0;
    }

    .row_1 p {
        font-size: 1em;
        color: #fff;
        margin: 0;
        line-height: 1.4;
    }

    .benefits-header {
        text-align: center;
        margin: 40px 0 25px;
    }

    .pa {
        font-size: 1.4em;
        color: #fff;
        font-weight: 600;
        display: block;
        margin-bottom: 10px;
    }

    .ra {
        font-size: 2em;
        color: #fff;
        font-weight: 800;
        display: block;
    }

    .red {
        color: red;
    }

    .custom-list {
        padding: 0;
        margin: 0;
    }

    .custom-list-item {
        display: flex;
        align-items: flex-start;
        margin-bottom: 20px;
        gap: 15px;
    }

    .dot {
        display: inline-block;
        width: 14px;
        height: 14px;
        background: red;
        border-radius: 50%;
        flex-shrink: 0;
        margin-top: 5px;
    }

    .text {
        color: #fff;
        font-size: 1.1em;
        line-height: 1.5;
        flex: 1;
    }

    .text b {
        color: #ff6b6b;
    }
}

@media (max-width: 700px) {
    .menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        cursor: pointer;
        z-index: 1001;
    }

    nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        background: rgba(30, 30, 60, 0.98);
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        margin: 10px 0;
    }

    nav a {
        font-size: 1.5em;
    }
}

@media (max-width: 576px) {
    nav a {
        font-size: 1em;
        padding: 8px 16px;
    }

    #sekcja1 h2 {
        font-size: 3em;
    }

    #sekcja1 p {
        font-size: 1.2em;
    }

    .sekcja2-right {
        grid-template-columns: 1fr;
    }

    #sekcja2 h3 {
        font-size: 2.5em;
    }

    .sekcja2-description {
        font-size: 1.2em;
    }

    .custom-list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .dot {
        margin-bottom: 10px;
    }

    .ra {
        font-size: 3em;
    }

    .sponsorzy {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .sponsorzy img {
        height: auto;
        max-width: 100%;
    }

    .logo img {
        max-width: 80%;
        height: 100px;
    }

    .frendzle img {
        max-width: 100%;
        height: auto;
    }

    .motto h2 {
        font-size: 2em;
    }

    .motto p {
        font-size: 1.5em;
    }
}

/* Redukcja ruchu dla użytkowników preferujących mniej animacji */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Klasy pomocnicze */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

p,
li {
    word-wrap: break-word;
    hyphens: auto;
}

@media (min-width: 768px) {

    p,
    li {
        hyphens: auto;
    }
}

/* Dla małych ekranów - wyłącz dzielenie wyrazów */
@media (max-width: 767px) {

    p,
    li {
        hyphens: none;
    }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    position: absolute;
    top: 25px;
    right: 20px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 700px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        background: rgba(30, 30, 60, 0.98);
        z-index: 1000;
        padding: 80px 0;
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        margin: 15px 0;
        text-align: center;
    }

    nav a {
        font-size: 1.5em;
        padding: 15px;
    }
}

/* Animacja hamburgera */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Menu mobilne - lepsze tło */
nav ul.active {
    backdrop-filter: blur(8px);
    background: rgba(20, 20, 40, 0.95);
    transition: all 0.3s ease;
}

/* Poprawka font-size i paddings na mobile */
@media (max-width: 700px) {

    #sekcja1 h2,
    #sekcja2 h2,
    #sekcja2 h3,
    #sekcja3 h2,
    .schemat-title-bold,
    .motto h2 {
        font-size: 2em;
        padding: 8px;
        margin-bottom: 10px;
    }

    #sekcja1 p,
    .sekcja2-description,
    .schemat-bottom-text,
    .row_1 p,
    .motto p {
        font-size: 1.1em;
        margin: 10px 0;
    }

    .container,
    .sekcja2-container,
    .schemat-box {
        padding: 0 8px;
        max-width: 100vw;
    }

    section {
        padding: 2em 0.5em;
        min-height: unset;
    }

    nav ul {
        flex-direction: column;
        height: auto;
        padding: 0;
        margin: 0;
    }

    nav li {
        margin: 8px 0;
    }

    nav a {
        font-size: 1em;
        padding: 10px 10px;
    }

    /* Sekcje z gridem */
    .sekcja2-right {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-top: 10px;
    }

    /* Poprawka obrazków i logo */
    img,
    .logo1 {
        max-width: 100%;
        height: auto;
    }

    .logo1 {
        height: 100px;
    }

    /* Flexy i sekcje */
    .schemat-main-row,
    .row {
        flex-direction: column;
        gap: 12px;
    }

    .sponsorzy {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-left: 0;
        margin-right: 0;
        width: 98vw;
        padding: 0.5em;
    }

    .sponsorzy img {
        width: 90vw;
        max-height: 150px;
    }
}

@media (max-width: 400px) {

    #sekcja1 h2,
    #sekcja2 h2,
    #sekcja2 h3,
    #sekcja3 h2,
    .schemat-title-bold,
    .motto h2 {
        font-size: 1.4em;
    }

    #sekcja1 p,
    .sekcja2-description,
    .schemat-bottom-text,
    .row_1 p,
    .motto p {
        font-size: 1em;
    }
}

@media (max-width: 700px) {
    #sekcja5 {
        background: #000000 url('images/5at1.jpg') center/cover no-repeat;
    }

    .frendzle {
        width: 10%;
        padding-left: 0;
        margin-bottom: 20px;
    }

    #sekcja3 {
        padding-top: 20px;
        padding-bottom: 20px;
        min-height: unset;
    }

    #sekcja3 h2 {
        font-size: 2em;
        margin-bottom: 12px;
        padding: 10px 12px;
        border-radius: 25px;
        background: rgba(0, 0, 0, 0.5);
        text-align: center;
        color: #fff;

    }

    #sekcja3 img {
        height: 200px;
    }

    .row,
    .row1 {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 8px;
        padding: 0 3%;
    }

    .row_1 {
        display: flex;
        align-items: center;
        background: rgba(30, 30, 60, 0.4);
        margin-bottom: 12px;
        width: 100%;
        border-radius: 14px;
    }

    .row_1 p {
        font-size: 1em;
        margin: 8px 0 0 0;
        color: #fff;
        line-height: 1.3;
        margin-left: 0;
        text-align: left;
    }

    .custom-list-item {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        margin-bottom: 10px;
    }

    .dot {
        width: 1em;
        height: 1em;
        margin-bottom: 0;
    }

    .text {
        font-size: 1em;
        color: #fff;
        flex: 1;
        line-height: 1.3;
    }
}

/* Styles for Download Page */
.download-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.download-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--primary-color);
}

.download-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.file-info h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.4em;
}

.file-info p {
    margin: 0;
    color: #777;
    font-size: 1em;
}

.file-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: 150px;
}

.file-size {
    font-size: 0.85em;
    color: #999;
}

.download-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    text-align: center;
    display: inline-block;
}

.download-btn:hover {
    background: var(--secondary-color);
    color: #fff;
    box-shadow: 0 5px 10px rgba(126, 126, 220, 0.4);
}

@media (max-width: 768px) {
    .download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .file-action {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Styles for Preview Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 80%;
    height: 90%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 0px 25px;
    background: #f1f1f1;
    border-bottom: 1px solid #ddd;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close-modal {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
}

.modal-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-footer {
    padding: 5px 25px;
    background: #f1f1f1;
    border-top: 1px solid #ddd;
    border-radius: 0 0 12px 12px;
    text-align: right;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        height: 95%;
        margin: 2.5% auto;
    }
}