:root {
    --page-bg: #2a3b4b;
    /* Ustaw `transparent`, aby wyłączyć tło strony. */
    --surface: #314657;
    --surface-strong: #354c5f;
    --border: #526876;
    --border-soft: #526876;
    --text: #ffffff;
    --text-muted: #ffffff;
    --accent: #758d9d;
    --accent-strong: #d7eef9;
    --focus: #8fd6ff;
    --danger: #ffb1b1;
    --success: #a7e0bd;
    --shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
    --radius: 4px;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: var(--page-bg);
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

body {
    background: url('https://www.rintal.pl/assets/bg-new.jpg') #171b1e;
    background-size: cover;
    background-position: center;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.side-navigation a, .auth-link {
    border: 3px solid rgba(62, 80, 92, 0.9) !important;
    border-radius: 15px !important;
    background: none !important;
    font-weight: 400 !important;
    font-size: 14px;
    padding: 0px 12px !important;
}

.side-navigation a:hover, .auth-link:hover {
    background: #3e4d57 !important;
}

.rich-content, .content-note {
    font-weight: 100 !important;
    font-size: 15px !important;  
    font-style: normal !important;
}

.file-card h3 {
    font-weight: 300;
}

.registration-panel, .login-panel {
    margin-right: 30px;
}

a {
    color: var(--accent-strong);
}

a:hover {
    color: #ffffff;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
select {
    touch-action: manipulation;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    color: #11171b;
    background: #ffffff;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header,
.page-shell,
.site-footer,
.mobile-navigation,
.flash {
    width: min(1440px, calc(100% - 48px));
    margin-inline: auto;
}

.site-header {
    display: flex;
    min-height: 96px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid rgba(156, 200, 223, 0.24);
}

.brand {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 14px;
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-transform: uppercase;
}

.brand-mark {
    width: 24px;
    height: 24px;
    border: 2px solid var(--accent);
    border-right-color: transparent;
    transform: rotate(45deg);
}

.session-user {
    color: var(--text-muted);
    font-size: 14px;
}

.page-shell {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
    padding-block: 15px 6px;
}
s
.page-content {s
    min-width: 0;
    padding-bottom: 30px;
}

.title-kicker {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 100;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 32px;
    font-size: clamp(24px, 2.65vw, 36px);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

h2 {
    margin: 0;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.rich-content {
    color: #e6eaed;
    font-size: 17px;
    padding-right: 20px;
}

.rich-content p:last-child,
.content-note p:last-child {
    margin-bottom: 0;
}

.content-note {
    position: relative;
    margin-block: 36px;
    padding: 24px 28px 24px 32px;
    border-left: 4px solid var(--accent);
    background: rgba(24, 33, 38, 0.82);
    box-shadow: var(--shadow);
    margin-right: 30px;
}

.content-note-label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.secondary-content {
    margin-top: 32px;
}

.download-section {
    margin-top: 64px;
    margin-right: 30px;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.section-description {
    margin-top: 28px;
}

.file-card {
    display: flex;
    min-height: 184px;
    background: rgba(20, 28, 33, 0.88);
    transition: border-color 180ms ease-out, background 180ms ease-out, transform 180ms ease-out;
}

.file-card:hover {
    border-color: var(--accent);
    background: var(--surface);
    transform: translateY(-2px);
}

.file-thumbnail {
    width: 132px;
    min-width: 132px;
    min-height: 100%;
    overflow: hidden;
    background: #0b1013;
}

.file-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 182px;
    object-fit: cover;
}

.file-card-body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
}

.file-card h3 {
    margin-bottom: 4px;
    font-size: 17px;
    line-height: 1.35;
}

.file-meta {
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 0.06em;
}

.file-description {
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.download-button,
.primary-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 10px 22px;
    border: 0;
    border-radius: 2px;
    color: var(--text);
    background: #c32728;
    cursor: pointer;
    font-size: 13px;
    font-weight: 100;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 180ms ease-out, background 180ms ease-out;
}

.download-button:hover,
.primary-button:hover {
    color: #ffffff;
    background: #c32728;
}

.file-card .download-button {
    min-height: 29px;
    padding: 6px 13px;
    font-size: 10px;
}

.side-navigation {
    align-self: start;
    position: sticky;
    top: 32px;
}

.side-navigation-title {
    font-size: 17px;
    font-weight: 100;
    margin-bottom: 10px;
}

.side-navigation nav {
    display: grid;
    gap: 8px;
}

.side-navigation a,
.side-navigation button.auth-link {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    background: rgba(16, 22, 26, 0.7);
    cursor: pointer;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    transition: border-color 180ms ease-out, background 180ms ease-out;
}

.side-navigation a:hover,
.side-navigation button.auth-link:hover,
.side-navigation a[aria-current="page"] {
    border-color: var(--accent);
    background: var(--surface-strong);
}

.side-navigation a[aria-current="page"] {
    color: var(--accent-strong);
}

.side-navigation form {
    margin: 0;
}

.side-navigation .auth-link {
    margin-top: 12px;
    border-color: var(--accent);
}

.site-footer {
    display: flex;
    min-height: 96px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-soft);
    color: var(--text-muted);
    font-size: 14px;
}

.mobile-navigation {
    display: none;
}

.flash {
    margin-top: 24px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.flash-success {
    border-color: var(--success);
}

.flash-error,
.form-error {
    border-color: var(--danger);
}

.login-panel,
.registration-panel,
.account-panel,
.not-found {
    max-width: 100%;
}

.login-panel > form,
.registration-panel > form {
    display: grid;
    gap: 22px;
    margin-top: 36px;
    padding: 32px;
    background: rgba(24, 33, 38, 0.76);
}

.registration-panel {
    max-width: 100%;
}

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

.form-field small {
    color: var(--text-muted);
    font-size: 12px;
}

.form-support {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.success-panel,
.danger-zone,
.activation-panel {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(49, 70, 87, 0.84);
}

.success-panel h2,
.danger-zone h2 {
    margin-bottom: 12px;
}

.success-panel .primary-button {
    margin-top: 12px;
}

.danger-zone {
    border-left: 4px solid #ffffff;
}

.danger-zone form {
    margin-top: 24px;
}

.standalone-shell {
    display: grid;
    width: min(100% - 32px, 720px);
    min-height: 100vh;
    min-height: 100dvh;
    margin-inline: auto;
    place-items: center;
    padding-block: 48px;
}

.activation-panel {
    width: 100%;
}

.activation-panel h1 {
    max-width: none;
}

.activation-panel .primary-button {
    margin-top: 16px;
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-field label {
    font-size: 14px;
    font-weight: 100;
}

.form-field input,
.form-field select,
.form-field textarea,
.mobile-navigation select {
    width: 100%;
    min-height: 50px;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--text);
    background: #10171b;
}

.form-error {
    margin-top: 24px;
    padding: 12px 14px;
    border: 1px solid var(--danger);
    color: #ffe8e8;
    background: rgba(116, 32, 32, 0.22);
}

.empty-state {
    margin-top: 24px;
    padding: 20px;
    border: 1px dashed var(--border);
    color: var(--text-muted);
}

@media (max-width: 1023px) {
    .side-navigation {
        display: none;
    }

    .mobile-navigation {
        display: grid;
        gap: 7px;
        margin-top: 24px;
    }

    .mobile-navigation label {
        font-size: 14px;
        font-weight: 700;
    }

    .mobile-navigation-row {
        display: block;
    }

    .page-shell {
        display: block;
        padding-top: 15px;
    }
}

@media (max-width: 767px) {
    .site-header,
    .page-shell,
    .site-footer,
    .mobile-navigation,
    .flash {
        width: min(100% - 32px, 720px);
    }

    .site-header {
        min-height: 80px;
    }

    .session-user {
        display: none;
    }

    .brand {
        font-size: 16px;
    }

    .page-shell {
        padding-block: 40px 64px;
    }

    h1 {
        margin-bottom: 24px;
    }

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

    .file-card {
        min-height: 164px;
    }

    .file-thumbnail {
        width: 112px;
        min-width: 112px;
    }

    .file-thumbnail img {
        min-height: 162px;
    }

    .file-card-body {
        padding: 18px;
    }

    .login-panel > form,
    .registration-panel > form {
        padding: 22px;
    }

    .public-form-grid {
        grid-template-columns: 1fr;
    }

        .content-note {
    margin-right: 0px !important;
}

.rich-content {
        padding-right: 0px !importants;
        margin-right: -15px;
}

.download-section {
    margin-right: 0px;
}

.registration-panel, .login-panel {
    margin-right: 0px;
}

}

@media (max-width: 430px) {
    .file-card {
        align-items: stretch;
    }

    .file-thumbnail {
        width: 96px;
        min-width: 96px;
    }

    .file-card-body {
        padding: 16px;
    }

    .file-description {
        font-size: 13px;
    }

}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
