/* style.css */
:root {
    --bg-color: #ffffff;
    --text-main: #000000;
    --text-muted: #555555;
    --border-color: #e5e5e5;
    --hover-bg: #f9f9f9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: 0; 
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

img,
video,
iframe,
embed,
object,
svg {
    max-width: 100%;
    height: auto;
}

* {
    box-sizing: border-box;
}

a:focus-visible, button:focus-visible {
    outline: 3px dashed var(--text-main);
    outline-offset: 4px;
}

/* Nawigacja */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    z-index: 1000;
}

.nav-logo img {
    height: 60px;
    width: auto;
    display: block;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-main);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    padding: 8px 2px;
}

.nav-links a:hover {
    color: var(--text-muted);
}

body.menu-open {
    overflow: hidden;
}

.main {
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    display: block;
    width: 100%;
    margin: 0;
    max-width: none;
    overflow: visible;
    padding-top: 80px;
}

.main-full {
    min-height: auto;
}

.main-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.main-content p.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.main-meta {
    font-size: 1rem;
    font-weight: 500;
    border-left: 2px solid var(--text-main);
    padding-left: 20px;
    margin-bottom: 30px;
}

.btn-outline {
    display: inline-block;
    padding: 12px 35px;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--bg-color);
}

.main-image {
    display: block;
    width: 100%;
    height: auto;
    line-height: 0;
    overflow: visible;
}

.main-image-full {
    min-height: auto;
}

.main-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    margin: 0;
    object-fit: contain;
}

/* Sekcje na podstronach */
section {
    padding: 30px 5%;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid var(--border-color);
    min-height: auto;
}

.program-table-wrap {
    overflow-x: auto;
    margin-top: 20px;
}

.program-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.program-table th,
.program-table td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.program-table th {
    background-color: var(--hover-bg);
    font-weight: 700;
}

.program-table tbody tr:nth-child(even) {
    background-color: #fbfbfb;
}

.program-table td ul,
.program-table td ul.program-red-list {
    margin: 8px 0 0 20px;
    padding-left: 18px;
}

.program-table td ul li {
    margin: 4px 0;
    font-size: 0.95rem;
}

.program-table td ul.program-red-list li {
    color: #c00;
    list-style-type: disc;
}

.program-table td strong {
    display: block;
    margin-bottom: 8px;
}

.section-header {
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
}

.text-block p {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

/* Tematyka - Lista */
.topics-list {
    display: block;
    list-style: disc inside;
    padding-left: 20px;
    margin-top: 15px;
}

.topics-list li {
    padding: 1px 0;
    font-size: 1rem;
    font-weight: 400;
    border: none;
    border-radius: 0;
    background-color: transparent;
    transition: none;
    cursor: default;
}

.topics-list li::before {
    display: list-item;
}

.topics-list li:hover {
    border-color: transparent;
    background-color: transparent;
}

/* Listy informacyjne */
.info-list {
    list-style: none;
    margin-top: 10px;
}

.info-list li {
    padding: 5px 0;
    border-bottom: 1px dotted var(--border-color);
    font-size: 1.05rem;
}

.info-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-list strong {
    font-weight: 600;
    display: inline;
}

.info-list-bullets {
    list-style-type: disc;
    list-style-position: inside;
    margin-top: 10px;
    padding-left: 20px;
}

.info-list-bullets li {
    list-style-type: disc;
    list-style-position: inside;
    border-bottom: none;
    padding: 2px 0 2px 0;
    margin-left: 0;
}
/* Tabela opłat */
.fees-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    margin-top: 15px;
}

.fees-table th,
.fees-table td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.fees-table th {
    background-color: var(--hover-bg);
    font-weight: 700;
}

.fees-table tbody tr:nth-child(even) {
    background-color: #fbfbfb;
}
/* Sekcja Partner�w */
.partners-group {
    margin-top: 30px;
}

.partners-group h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-align: center;
}

.logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.logos-grid img {
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.logos-grid img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* Stopka */
footer {
    padding: 40px 5%;
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    min-width: 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
    min-width: 0;
}

.footer-left {
    flex: 1 1 100%;
    text-align: center;
    min-width: 0;
}

.footer-right {
    flex: 0 0 auto;
    text-align: right;
    min-width: 0;
}

.footer-right a {
    color: var(--text-main);
    font-weight: 600;
    text-decoration: underline;
    white-space: normal;
    display: inline-block;
}

/* Responsywno�� */
@media (max-width: 992px) {
    .main-full {
        min-height: auto;
    }

    .main-image-full {
        min-height: auto;
    }
    .topics-list {
        justify-content: center; 
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        min-width: 0;
        width: auto;
        padding: 10px 4%;
        margin: 0;
        background-color: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
        max-width: 100vw;
        overflow-wrap: break-word;
        word-break: break-word;
        box-sizing: border-box;
    }

    .nav-links a {
        width: 100%;
        box-sizing: border-box;
        padding: 12px 6px;
        font-size: 0.95rem;
        white-space: normal;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 12px 6px;
        font-size: 0.95rem;
    }
}

/* POPRAWKA NA SMARTFONY (Naprawa szeroko�ci ekranu) */
@media (max-width: 576px) {
    body {
        padding-top: 0;
        width: 100%;
        max-width: 100%;
    }

    nav {
        padding: 10px 4%;
        width: 100%;
        max-width: 100%;
    }
    
    .nav-logo img {
        height: 30px;
    }

    .main {
        padding-top: 70px;
        width: 100%;
        max-width: 100%;
    }

    .main-image img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 40px 5%;
    }

    .btn-outline {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .info-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Stylizacja specyficzna dla strony Dla autorów - dopasowana do strony głównej */
#dlaautorow {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
}

#dlaautorow .section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
}

#dlaautorow .text-block p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

#dlaautorow .text-block h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 8px;
    margin-bottom: 8px;
}

#dlaautorow .info-list, #dlaautorow .info-list-bullets {
    margin-top: 8px;
}

#dlaautorow .info-list li {
    border-bottom: none;
    padding: 6px 0;
    font-size: 1.05rem;
}

#dlaautorow table {
    width: 100%;
    border-collapse: collapse;
    font-family: inherit;
    font-size: 0.95rem;
    margin: 10px 0;
}

#dlaautorow table th, #dlaautorow table td {
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    text-align: left;
}

#dlaautorow .figure img {
    max-width: 360px;
    height: auto;
    display: block;
}

#dlaautorow .figure {
    margin: 8px 0 16px 0;
}

#dlaautorow .caption {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 6px;
}

@media (max-width: 576px) {
    #dlaautorow .figure img {
        max-width: 100%;
    }
}

/* Underlined headings and bibliography listing style for Dla autorow */
.underlined {
    margin: 12px 0 8px 0;
    display: block;
    font-weight: 700;
}

.bib-entry {
    margin: 8px 0 8px 18px;
    text-indent: -18px; /* hanging indent */
    font-size: 0.98rem;
}

.bib-entry em {
    font-style: italic;
}

.citation-list {
    margin-left: 18px;
}

/* Numerowana lista dla Dla autorow */
#dlaautorow ol.numbered {
    margin-left: 20px;
    padding-left: 24px;
    list-style-type: decimal;
    list-style-position: outside;
}

#dlaautorow ol.numbered > li {
    display: list-item;
    margin-bottom: 12px;
}

#dlaautorow ol.numbered > li p {
    display: inline;
    margin: 0;
}

#dlaautorow .topics-list {
    list-style-type: disc;
    list-style-position: inside;
    padding-left: 20px;
    margin-top: 8px;
}

#dlaautorow .topics-list li {
    padding: 2px 0;
    margin-left: 0;
}

/* Styles for registration form */
.form-page {
    padding-top: 120px;
    padding-bottom: 60px;
    background-color: var(--hover-bg);
}

.registration-form {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-group label {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--text-main);
}

.agreement-group {
    background: var(--hover-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 30px;
}

.clause-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.clause-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: justify;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--text-main);
    flex-shrink: 0;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background-color: var(--text-main);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 30px;
}

.submit-btn:hover {
    background-color: #333;
}

.submit-btn:active {
    transform: scale(0.98);
}

.nav-cta {
    background-color: var(--text-main);
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 8px;
    transition: background-color 0.2s !important;
}

.nav-cta:hover {
    background-color: #333 !important;
}

.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}