:root {
    --navy: #071a32;
    --navy2: #102747;
    --card: #0d2546;
    --blue: #008cff;
    --cyan: #3fc9ff;
    --pale: #c4ceda;
    --ink: #10243f;
    --muted: #aac7e8
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Segoe UI,Arial,sans-serif;
    color: var(--ink);
    background: var(--pale)
}

a {
    text-decoration: none;
    color: inherit
}

button, input, textarea {
    font: inherit
}

button, a {
    transition: background .2s,transform .2s,box-shadow .2s
}

    a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
        outline: 3px solid #54caff;
        outline-offset: 3px
    }

.container {
    width: min(1420px,calc(100% - 64px));
    margin: auto
}

.site-header {
    background: linear-gradient(180deg,#06152a,#08213e);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 2px 14px #07152b50
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    min-height: 82px
}

.brand {
    display: inline-flex;
    flex-direction: column;
    flex-shrink: 0;
    line-height: 1
}

.brand-name {
    font-size: 33px;
    letter-spacing: -1.5px;
    font-style: italic;
    font-weight: 850;
    color: white;
    text-shadow: 0 1px 3px #0008
}

    .brand-name strong {
        color: #009cff
    }

.brand-arrow {
    font-size: 20px;
    color: #19a9ff;
    vertical-align: top
}

.brand-sub {
    font-size: 10px;
    letter-spacing: .45px;
    font-weight: 700;
    color: #49c5ff;
    display: block;
    margin-top: 7px
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px
}

    .site-nav a {
        padding: 25px 12px;
        font-weight: 600;
        font-size: 14px;
        white-space: nowrap
    }

        .site-nav a:first-letter {
            color: var(--cyan)
        }

        .site-nav a:hover, .site-nav a.active {
            color: #fff;
            background: #123354;
            box-shadow: inset 0 -3px #00aeff
        }

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #168ff6;
    border-radius: 9px;
    padding: 13px 24px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    text-align: center
}

    .btn:hover {
        transform: translateY(-2px)
    }

.btn-primary {
    background: linear-gradient(180deg,#14b7ff 0%,#0877ed 46%,#0455d3 100%);
    box-shadow: inset 0 1px #9defff,0 0 0 1px #19baff,0 0 16px #008dff8a
}

    .btn-primary:hover {
        box-shadow: 0 0 25px #008dffba
    }

.btn-dark {
    background: linear-gradient(180deg,#112f53,#071b35);
    border-color: #3c729e;
    box-shadow: 0 4px 12px #071e3d44
}

.btn-large {
    min-height: 55px;
    padding: 14px 24px
}

.menu-toggle {
    display: none;
    border: 1px solid #2688d4;
    background: #0b3057;
    color: #fff;
    border-radius: 8px;
    font-size: 23px;
    padding: 6px 12px
}

.hero {
    background: linear-gradient(135deg,#cbd5e0,#b9c8d9 60%,#aebfd3);
    padding: 45px 0 42px
}

.hero-grid {
    display: grid;
    grid-template-columns: .85fr 1.3fr;
    gap: 45px;
    align-items: center
}

.eyebrow {
    display: inline-block;
    border: 1px solid #89a6c3;
    border-radius: 30px;
    padding: 7px 15px;
    font-size: 12px;
    letter-spacing: .4px;
    font-weight: 800;
    color: #1b3b62;
    background: #d6e0eb
}

.hero h1 {
    font-size: clamp(55px,5.3vw,91px);
    letter-spacing: -4px;
    line-height: 1.05;
    font-weight: 900;
    font-style: italic;
    margin: 15px 0 0;
    text-shadow: 1px 3px 1px #fff9
}

    .hero h1 span {
        color: #09274b
    }

    .hero h1 strong {
        color: #087ee9
    }

.hero-kicker {
    font-weight: 800;
    color: #0066cc;
    font-size: clamp(15px,1.4vw,22px);
    margin: 5px 0 24px
}

.hero-description {
    font-size: 19px;
    line-height: 1.52;
    max-width: 570px;
    margin: 0 0 26px
}

.hero-actions {
    display: flex;
    gap: 17px;
    flex-wrap: wrap
}

.hero-preview {
    min-width: 0
}

.preview-frame {
    background: #0a2545;
    border: 1px solid #157bc5;
    border-radius: 9px;
    padding: 5px;
    box-shadow: 0 15px 26px #10274450;
    overflow: hidden
}

    .preview-frame img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 4px
    }

.preview-caption {
    text-align: right;
    font-size: 12px;
    color: #486582;
    margin: 8px 3px 0
}

.features {
    background: #bdcbdc;
    padding: 10px 0 20px
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px
}

.feature-card {
    display: flex;
    gap: 15px;
    padding: 24px 18px;
    background: linear-gradient(145deg,#14345b,#0b2444);
    color: #fff;
    border-radius: 10px;
    min-height: 155px;
    box-shadow: inset 0 1px #3a6a9b
}

.feature-icon {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: grid;
    place-items: center;
    border: 1px solid #198af4;
    border-radius: 10px;
    background: linear-gradient(145deg,#1765ad,#082c5a);
    font-size: 35px;
    color: #a6eaff;
    text-shadow: 0 0 10px #1aaaff;
    box-shadow: inset 0 0 13px #008dff80
}

.feature-card h2 {
    font-size: 16px;
    margin: 4px 0 9px
}

.feature-card p {
    font-size: 13px;
    color: #d1e2f5;
    line-height: 1.5;
    margin: 0 0 8px
}

.feature-card a {
    display: inline-grid;
    place-items: center;
    border: 1px solid #13aeff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    color: #fff;
    background: #00529d
}

.about {
    padding: 45px 0;
    background: linear-gradient(180deg,#c7d4e2,#b7c9dc)
}

.about-grid {
    display: grid;
    grid-template-columns: 1.3fr .85fr .85fr;
    align-items: center;
    gap: 36px
}

.about-showcase {
    background: linear-gradient(145deg,#102e53,#061b35);
    border: 1px solid #2a649c;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 12px 24px #0d284044
}

.showcase-title {
    color: #9cdcff;
    font-weight: 800;
    font-size: 12px;
    margin-bottom: 10px;
    letter-spacing: 2px
}

.about-showcase img {
    display: block;
    width: 100%;
    border: 1px solid #3a729e;
    border-radius: 4px
}

.eyebrow-blue {
    background: #92c5fa;
    border-color: #4c99ed;
    color: #0059aa
}

.about-copy h2, .contact h2 {
    font-size: clamp(27px,2.5vw,38px);
    line-height: 1.15;
    margin: 14px 0
}

.about-copy p, .contact p {
    line-height: 1.6
}

.benefits {
    padding: 0 0 0 24px;
    margin: 0;
    border-left: 1px solid #849fba;
    list-style: none
}

    .benefits li {
        position: relative;
        padding: 9px 0 9px 34px;
        font-size: 14px
    }

        .benefits li:before {
            content: '✓';
            position: absolute;
            left: 0;
            top: 7px;
            border-radius: 50%;
            background: #0073d9;
            color: #fff;
            width: 22px;
            height: 22px;
            text-align: center;
            line-height: 22px;
            font-weight: 900
        }

.pricing {
    background: #0b2647;
    color: #fff;
    padding: 34px 0
}

.pricing-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px
}

.pricing h2 {
    margin: 12px 0
}

.pricing p {
    color: #c6dcf5;
    max-width: 760px;
    line-height: 1.5
}

.contact {
    padding: 58px 0;
    background: #c7d5e4
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px
}

.contact-note {
    font-size: 13px;
    color: #47627d
}

.contact-form {
    display: grid;
    gap: 14px;
    background: #0d2849;
    padding: 25px;
    border-radius: 12px;
    color: #e7f4ff;
    box-shadow: 0 10px 25px #09244025
}

    .contact-form label {
        display: grid;
        gap: 6px;
        font-size: 14px;
        font-weight: 600
    }

    .contact-form input, .contact-form textarea {
        width: 100%;
        padding: 12px 14px;
        border: 1px solid #477ba7;
        border-radius: 7px;
        background: #061a32;
        color: #fff;
        resize: vertical
    }

        .contact-form input::placeholder, .contact-form textarea::placeholder {
            color: #8da9c6
        }

    .contact-form button {
        justify-self: start
    }

    .contact-form #form-status {
        margin: 0;
        font-size: 13px
    }

.site-footer {
    background: linear-gradient(180deg,#082340,#04172c);
    color: #d0e1f5;
    padding: 35px 0 0
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr 1fr 1fr;
    gap: 50px
}

    .footer-grid h3 {
        color: #fff;
        font-size: 15px;
        margin: 0 0 14px
    }

    .footer-grid p {
        font-size: 13px;
        line-height: 1.5;
        color: #afc7df
    }

    .footer-grid > div > a:not(.brand) {
        display: block;
        font-size: 13px;
        margin: 8px 0
    }

    .footer-grid > div > a:hover {
        color: #4ac4ff
    }

    .footer-grid .brand-name {
        font-size: 29px
    }

.footer-cta {
    color: #4bbcff !important
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #244360;
    margin-top: 30px;
    padding: 17px 0;
    font-size: 12px;
    color: #9cb7d2
}

@media(max-width:1250px) {
    .header-inner {
        gap: 12px
    }

    .site-nav a {
        padding: 22px 7px;
        font-size: 12px
    }

    .hero-grid {
        gap: 25px
    }

    .feature-card {
        padding: 18px 12px;
        gap: 10px
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        font-size: 27px
    }

    .about-grid {
        gap: 20px
    }
}

@media(max-width:980px) {
    .container {
        width: min(100% - 36px,760px)
    }

    .menu-toggle {
        display: block;
        margin-left: auto
    }

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #081d37;
        padding: 10px 18px 20px;
        flex-direction: column;
        align-items: stretch;
        box-shadow: 0 15px 20px #0005
    }

        .site-nav.open {
            display: flex
        }

        .site-nav a {
            padding: 12px 15px;
            font-size: 15px
        }

    .login-btn {
        display: none
    }

    .hero-grid {
        grid-template-columns: 1fr
    }

    .hero h1 {
        font-size: 72px
    }

    .hero-preview {
        max-width: 760px
    }

    .feature-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .about-grid {
        grid-template-columns: 1fr 1fr
    }

    .about-showcase {
        grid-column: 1/-1
    }

    .footer-grid {
        grid-template-columns: repeat(2,1fr)
    }
}

@media(max-width:620px) {
    .container {
        width: calc(100% - 28px)
    }

    .header-inner {
        min-height: 70px
    }

    .brand-name {
        font-size: 28px
    }

    .brand-sub {
        font-size: 8px
    }

    .hero {
        padding: 35px 0
    }

        .hero h1 {
            font-size: clamp(47px,12vw,70px);
            letter-spacing: -3px
        }

    .hero-description {
        font-size: 16px
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch
    }

    .feature-grid, .about-grid, .contact-grid {
        grid-template-columns: 1fr
    }

    .about-showcase {
        grid-column: auto
    }

    .benefits {
        border-left: 0;
        padding-left: 0
    }

    .pricing-inner {
        align-items: flex-start;
        flex-direction: column
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px
    }

    .footer-bottom {
        flex-direction: column
    }

    .contact {
        padding: 40px 0
    }
}

/* Sekcja Salony */
.salons {
    background: linear-gradient(155deg,#b7c9dc,#d0dce9);
    padding: 64px 0 76px;
    scroll-margin-top: 90px
}

.salons-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 28px
}

    .salons-heading h2 {
        font-size: clamp(27px,3vw,40px);
        color: #0c2748;
        margin: 15px 0 10px
    }

    .salons-heading p {
        line-height: 1.6;
        max-width: 720px;
        margin: 0
    }

.salons-empty {
    border: 1px solid #427bad;
    border-radius: 14px;
    background: linear-gradient(140deg,#15385f,#09213f);
    color: #fff;
    text-align: center;
    padding: 50px 24px;
    box-shadow: 0 12px 28px #08254532
}

.salons-empty-icon {
    margin: auto auto 18px;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: linear-gradient(#198ee9,#064c9b);
    border: 1px solid #5bc9ff;
    color: #fff;
    font-size: 48px;
    box-shadow: 0 0 20px #008cff6b
}

.salons-empty h3 {
    font-size: 24px;
    margin: 0 0 12px
}

.salons-empty p {
    color: #c3d9ef;
    max-width: 660px;
    margin: 0 auto 23px;
    line-height: 1.65
}

@media(max-width:620px) {
    .salons {
        padding: 42px 0
    }

    .salons-heading {
        flex-direction: column;
        align-items: stretch
    }

    .salons-empty {
        padding: 35px 18px
    }
}

/* Prezentacja Altai w sekcji O produkcie */
.about-video-showcase {
    min-width: 0
}

.altaja-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: contain;
    background: #020b17;
    border: 1px solid #3a729e;
    border-radius: 7px
}

.video-caption {
    color: #b7d9f5;
    font-size: 12px;
    line-height: 1.5;
    margin: 11px 2px 1px
}

.about-copy p + p {
    margin-top: 13px
}

@media (max-width:980px) {
    .about-video-showcase {
        grid-column: 1/-1
    }
}

/* Mniejszy odtwarzacz prezentacji Altai, bez zmiany pozostałych grafik */
@media (min-width: 981px) {
    .about-grid {
        grid-template-columns: minmax(0, 390px) minmax(0, 1fr) minmax(0, 1fr);
        gap: 28px;
    }

    .about-video-showcase {
        width: 100%;
        max-width: 390px;
    }
}

@media (min-width: 621px) and (max-width: 980px) {
    .about-video-showcase {
        grid-column: 1 / -1;
        max-width: 440px;
        justify-self: center;
    }
}

@media (max-width: 620px) {
    .about-video-showcase {
        max-width: 100%;
    }
}

/* Poprawiony układ prezentacji Altai: kompaktowy film jak wcześniejszy obrazek */
.about .about-grid {
    display: grid;
    grid-template-columns: minmax(0, 390px) minmax(0, 1fr);
    grid-template-areas: "film opis" "film zalety";
    column-gap: clamp(24px, 4vw, 58px);
    row-gap: 10px;
    align-items: start;
}

.about .about-video-showcase {
    grid-area: film;
    width: 100%;
    max-width: 390px;
    min-width: 0;
    justify-self: start;
    padding: 12px;
}

.about .altaja-video {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1918 / 1032;
    height: auto;
    object-fit: contain;
    background: #020b17;
    cursor: pointer;
}

.about .about-copy {
    grid-area: opis;
    min-width: 0;
}

.about .benefits {
    grid-area: zalety;
    min-width: 0;
    margin-top: 0;
}

.video-error {
    color: #ffe4e4;
    background: #70202b;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
}

    .video-error a {
        color: #fff;
        text-decoration: underline;
    }

    .video-error[hidden] {
        display: none;
    }

@media(max-width:980px) {
    .about .about-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "film" "opis" "zalety";
        gap: 22px;
    }

    .about .about-video-showcase {
        grid-column: auto;
        max-width: 390px;
        justify-self: center;
    }

    .about .benefits {
        padding-left: 0;
        border-left: 0;
    }
}


/* Panel logowania / rejestracji DejvSystems */
.login-btn {
    white-space: nowrap
}

.mobile-auth {
    display: none
}

.auth-overlay[hidden], .auth-form[hidden] {
    display: none !important
}

.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(2,10,24,.78);
    backdrop-filter: blur(7px);
    overflow-y: auto
}

.auth-panel {
    position: relative;
    width: min(100%,460px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 34px;
    background: linear-gradient(150deg,#13365f,#071b34 76%);
    color: #edf7ff;
    border: 1px solid #287fbc;
    border-radius: 17px;
    box-shadow: 0 22px 65px #000a,0 0 30px #009dff30
}

.auth-close {
    position: absolute;
    right: 17px;
    top: 12px;
    color: #d3eaff;
    background: transparent;
    border: 0;
    font-size: 31px;
    cursor: pointer
}

.auth-brand {
    font-size: 37px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1.7px
}

    .auth-brand strong {
        color: #0ba5ff
    }

.auth-brand-caption {
    color: #69caff;
    font-size: 10px;
    letter-spacing: 1px;
    font-weight: 800;
    margin: 2px 0 25px
}

.auth-panel h2 {
    font-size: 27px;
    margin: 0 0 7px
}

.auth-intro {
    color: #b6d1eb;
    margin: 0 0 24px;
    font-size: 14px
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #06182e;
    border: 1px solid #285781;
    padding: 5px;
    border-radius: 11px;
    gap: 5px;
    margin-bottom: 23px
}

    .auth-tabs button {
        border: 0;
        border-radius: 8px;
        padding: 12px 8px;
        color: #b5d3ef;
        background: transparent;
        cursor: pointer;
        font-weight: 700
    }

        .auth-tabs button.selected {
            background: linear-gradient(180deg,#16b7ff,#0865cf);
            color: #fff;
            box-shadow: 0 0 14px #008dff60
        }

.auth-form {
    display: grid;
    gap: 16px
}

    .auth-form label {
        display: grid;
        gap: 7px;
        font-size: 13px;
        font-weight: 700;
        color: #d8ebff
    }

    .auth-form input {
        width: 100%;
        padding: 13px 14px;
        border-radius: 8px;
        border: 1px solid #4678a5;
        background: #05162c;
        color: white;
        outline: none
    }

        .auth-form input:focus {
            border-color: #39baff;
            box-shadow: 0 0 0 3px #168cff2e
        }

        .auth-form input::placeholder {
            color: #849fbb
        }

.auth-submit {
    width: 100%;
    margin-top: 6px
}

.auth-message {
    font-size: 13px;
    line-height: 1.5;
    color: #ffcf86;
    min-height: 0;
    margin: 15px 0 0
}

    .auth-message:empty {
        display: none
    }

.auth-footnote {
    font-size: 12px;
    color: #8caecf;
    line-height: 1.5;
    margin: 15px 0 0
}

body.auth-locked {
    overflow: hidden
}

@media(max-width:980px) {
    .mobile-auth {
        display: block;
        width: 100%;
        text-align: left;
        background: #103c68;
        border: 1px solid #2d88d4;
        border-radius: 8px;
        color: #fff;
        padding: 13px 15px;
        font-weight: 700;
        cursor: pointer
    }
}

@media(max-width:520px) {
    .auth-panel {
        padding: 27px 21px
    }

    .auth-brand {
        font-size: 32px
    }
}

/* Strona logowania i rejestracji: wyłącznie nagłówek, formularz i stopka */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

main {
    flex: 1
}

.auth-page {
    background: rgb(192, 201, 213);
    display: grid;
    place-items: center;
    padding: 65px 20px;
    min-height: calc(100vh - 290px);
}

.auth-page-card {
    width: min(100%,470px);
    padding: 36px;
    background: linear-gradient(155deg,#102f56,#071a34);
    border: 1px solid #3478af;
    border-radius: 16px;
    box-shadow: 0 20px 55px #0008;
    color: #e7f4ff
}

    .auth-page-card h1 {
        font-size: 27px;
        margin: 18px 0 8px;
        color: #fff
    }

    .auth-page-card .auth-brand {
        font-size: 35px;
        font-weight: 900;
        font-style: italic;
        color: #fff
    }

        .auth-page-card .auth-brand strong {
            color: #13a9ff
        }

    .auth-page-card .auth-brand-caption {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .8px;
        color: #6ed2ff;
        margin: 8px 0 20px
    }

    .auth-page-card .auth-intro {
        color: #bed7f0;
        line-height: 1.5;
        margin: 0 0 20px
    }

    .auth-page-card .auth-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 20px 0
    }

        .auth-page-card .auth-tabs a {
            display: block;
            text-align: center;
            padding: 12px;
            background: #09213f;
            border: 1px solid #37668e;
            border-radius: 8px;
            color: #d2e6f9;
            font-weight: 700
        }

            .auth-page-card .auth-tabs a.selected {
                background: #086cd3;
                border-color: #3dc2ff;
                color: white
            }

    .auth-page-card .auth-form {
        display: grid;
        gap: 16px
    }

        .auth-page-card .auth-form label {
            display: grid;
            gap: 7px;
            font-size: 14px;
            font-weight: 700
        }

        .auth-page-card .auth-form input {
            width: 100%;
            background: #04172d;
            border: 1px solid #457fae;
            border-radius: 8px;
            color: #fff;
            padding: 13px
        }

    .auth-page-card .auth-submit {
        width: 100%;
        margin-top: 6px
    }

    .auth-page-card .auth-message {
        border-radius: 8px;
        padding: 12px;
        font-size: 14px;
        line-height: 1.5
    }

        .auth-page-card .auth-message.error {
            background: #57212b;
            color: #ffe1e1
        }

        .auth-page-card .auth-message.ok {
            background: #154b40;
            color: #c9ffea
        }

    .auth-page-card .auth-footnote {
        font-size: 12px;
        color: #91b4d2;
        text-align: center;
        margin: 17px 0 0
    }

.header-account {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px
}

    .header-account form {
        margin: 0
    }

.mobile-auth {
    display: none
}

@media(max-width:980px) {
    .mobile-auth {
        display: block;
        color: #fff;
        padding: 12px 15px;
        font-weight: 700
    }

    .header-account {
        display: none
    }
}

@media(max-width:620px) {
    .auth-page {
        padding: 35px 12px
    }

    .auth-page-card {
        padding: 24px 18px
    }
}

/* ===== PANEL BMS — układ inspirowany WinForms ===== */
.bms-dashboard {
    background: linear-gradient(145deg,#c0cad7,#d0d8e2 50%,#b7c5d5);
    min-height: calc(100vh - 280px);
    padding: 28px 0 45px
}

.bms-workspace {
    min-height: 610px
}

.bms-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #162742;
    color: #fff;
    border-radius: 10px;
    padding: 14px 20px;
    box-shadow: 0 8px 18px #0b24402b
}

.bms-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0
}

.bms-heading-icon {
    display: grid;
    place-items: center;
    background: #0a2346;
    border: 1px solid #398bc7;
    border-radius: 9px;
    color: #8ad7ff;
    width: 48px;
    height: 48px;
    font-size: 28px;
    flex-shrink: 0
}

.bms-heading h1 {
    font-size: clamp(15px,1.65vw,23px);
    margin: 0;
    line-height: 1.3;
    color: #d8ecff
}

.bms-toolbar {
    display: flex;
    gap: 9px;
    align-items: center
}

    .bms-toolbar form {
        margin: 0
    }

.bms-tool {
    cursor: pointer;
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    background: #0b2a4e;
    color: #d3edff;
    border: 1px solid #4078a6;
    border-radius: 9px;
    font-size: 24px
}

    .bms-tool:hover {
        background: #0c5090;
        box-shadow: 0 0 16px #078efb66
    }

.bms-logout {
    color: #ffa765;
    border-color: #ab683f
}

.bms-layout {
    display: grid;
    grid-template-columns: 220px minmax(0,1fr);
    gap: 22px;
    margin-top: 24px
}

.bms-side {
    background: linear-gradient(165deg,#122d4f,#081d36);
    border: 1px solid #315b85;
    border-radius: 12px;
    min-height: 510px;
    padding: 24px 16px;
    color: #d8e9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px
}

.bms-side-emblem {
    width: 154px;
    height: 154px;
    border: 2px solid #188dec;
    border-radius: 20px;
    background: radial-gradient(circle at 35% 30%,#164b80,#051c36 75%);
    box-shadow: 0 0 22px #008dff66,inset 0 0 18px #008dff2b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    font-weight: 900;
    color: #e3f7ff
}

    .bms-side-emblem span {
        font-size: 12px;
        color: #3ebdff;
        font-style: italic
    }

.bms-side-divider {
    width: 100%;
    height: 1px;
    background: #325575;
    margin: 12px 0
}

.bms-side p {
    margin: 0;
    color: #93b6d6;
    font-size: 13px
}

.bms-side strong {
    overflow-wrap: anywhere
}

.bms-online {
    margin-top: 16px;
    font-size: 12px;
    color: #b4d4eb
}

    .bms-online i {
        display: inline-block;
        width: 9px;
        height: 9px;
        background: #3ddb9c;
        border-radius: 50%;
        margin-right: 5px
    }

.bms-content {
    min-width: 0
}

.bms-tiles {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px
}

.bms-tile {
    background: linear-gradient(160deg,#0e3059,#0a2346);
    border: 1px solid #2d6192;
    border-radius: 11px;
    min-height: 151px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 13px;
    color: #d6e7f7;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    padding: 16px 10px;
    box-shadow: 0 7px 16px #112b4b29,inset 0 1px #4385b74d;
    transition: transform .18s,border-color .18s,box-shadow .18s,background .18s
}

    .bms-tile:hover, .bms-tile:focus-visible {
        transform: translateY(-4px);
        background: linear-gradient(160deg,#15518b,#0b315d);
        border-color: #25baff;
        box-shadow: 0 10px 25px #008bff44
    }

.bms-tile-icon {
    position: relative;
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    color: #8fd6ff;
    font-size: 43px;
    text-shadow: 0 0 12px #12a9ff88
}

    .bms-tile-icon img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        z-index: 1
    }

.bms-tile-name {
    line-height: 1.3
}

.bms-statusbar {
    background: #0b2342;
    color: #a9c6e3;
    border-radius: 9px;
    margin-top: 20px;
    padding: 14px 19px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 13px
}

.bms-module-detail {
    background: linear-gradient(145deg,#102f56,#061c37);
    border: 1px solid #3774a8;
    border-radius: 12px;
    min-height: 490px;
    color: #fff;
    padding: clamp(25px,5vw,65px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px
}

    .bms-module-detail[hidden], .bms-tiles[hidden] {
        display: none
    }

.bms-detail-tag {
    color: #69c7ff;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 800
}

.bms-module-detail h2 {
    font-size: clamp(27px,3vw,40px);
    margin: 15px 0
}

.bms-module-detail p {
    color: #c1d8ec;
    line-height: 1.6
}

.header-dashboard-link {
    color: #7ed0ff;
    font-weight: 700
}

.header-account {
    display: flex;
    align-items: center;
    gap: 12px
}

    .header-account span {
        font-size: 13px
    }

    .header-account form {
        margin: 0
    }

@media(max-width:1000px) {
    .bms-layout {
        grid-template-columns: 160px minmax(0,1fr)
    }

    .bms-side-emblem {
        width: 115px;
        height: 115px;
        font-size: 36px
    }

    .bms-tiles {
        gap: 12px
    }

    .bms-tile {
        font-size: 13px
    }
}

@media(max-width:760px) {
    .bms-layout {
        grid-template-columns: 1fr
    }

    .bms-side {
        min-height: unset;
        flex-direction: row;
        justify-content: space-between;
        gap: 15px
    }

    .bms-side-emblem {
        width: 75px;
        height: 75px;
        font-size: 25px;
        border-radius: 12px;
        flex-shrink: 0
    }

        .bms-side-emblem span {
            font-size: 9px
        }

    .bms-side-divider, .bms-side p {
        display: none
    }

    .bms-online {
        margin: 0
    }

    .bms-tiles {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .bms-topline {
        align-items: flex-start
    }

    .bms-heading h1 {
        font-size: 15px
    }

    .bms-toolbar {
        gap: 4px
    }

    .bms-tool {
        width: 35px;
        height: 35px;
        font-size: 20px
    }

    .bms-statusbar {
        flex-direction: column
    }

    .header-account span {
        display: none
    }
}

@media(max-width:430px) {
    .bms-tiles {
        gap: 10px
    }

    .bms-tile {
        min-height: 128px;
        font-size: 12px
    }

    .bms-tile-icon {
        width: 52px;
        height: 52px;
        font-size: 34px
    }

    .bms-side {
        flex-wrap: wrap
    }

    .bms-heading-icon {
        display: none
    }
}

/* Konto w menu mobilnym */
.mobile-logout {
    display: none
}

@media(max-width:980px) {
    .mobile-logout {
        display: block;
        padding: 0 15px
    }

        .mobile-logout button {
            background: #102d50;
            color: #fff;
            border: 1px solid #338cd3;
            border-radius: 8px;
            padding: 12px 16px;
            width: 100%;
            text-align: left;
            cursor: pointer
        }
}

/* ===== AKTUALNOŚCI Z BMS MYSQL — LEWA KOLUMNA ===== */
.bms-layout {
    grid-template-columns: minmax(275px,310px) minmax(0,1fr);
    align-items: start
}

.bms-news-side {
    min-height: 540px;
    padding: 15px 12px 22px;
    gap: 13px;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    align-items: stretch;
    text-align: center
}

.bms-news-heading {
    width: 100%;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-size: clamp(19px,2vw,25px);
    font-weight: 850;
    letter-spacing: .2px;
    border-radius: 20px;
    border: 2px solid #4dcaff;
    background: linear-gradient(180deg,#0076ff 0%,#09367a 21%,#041a42 48%,#0352bd 80%,#00b5ff 100%);
    box-shadow: inset 0 0 0 2px #0a2e73,inset 0 0 12px #45c7ff,0 0 9px #00aaff
}

.bms-news-heading-icon {
    font-size: 25px;
    border-radius: 9px;
    border: 1px solid #59baff;
    padding: 0 6px;
    background: #043a80
}

.bms-news-card {
    background: #0b2446;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    color: #b4d7ff;
    box-shadow: 0 2px 5px #071a3224
}

.bms-news-card-title {
    background: #247dff;
    color: white;
    font-size: 12px;
    line-height: 1.25;
    padding: 3px 6px;
    font-weight: 700
}

.bms-news-order .bms-news-card-title {
    background: #b797ec
}

.bms-news-info .bms-news-card-title {
    background: #ffc20d;
    color: #fff
}

.bms-news-card-body {
    min-height: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 12px
}

.bms-news-icon {
    font-size: 28px;
    color: #30aaff;
    flex: 0 0 34px;
    text-shadow: 0 0 7px #148aff
}

.bms-news-lines {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.3
}

    .bms-news-lines strong {
        font-size: 13px;
        font-weight: 500;
        color: #b9d9ff
    }

.bms-news-error {
    background: #4a2434;
    border: 1px solid #b75462;
    border-radius: 8px;
    color: #ffe2e4;
    padding: 12px;
    font-size: 12px;
    line-height: 1.4
}

@media(max-width:1050px) {
    .bms-layout {
        grid-template-columns: minmax(235px,270px) minmax(0,1fr)
    }
}

@media(max-width:760px) {
    .bms-layout {
        grid-template-columns: 1fr
    }

    .bms-news-side {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        min-height: 0
    }

    .bms-news-heading {
        max-width: none
    }

    .bms-news-card-body {
        min-height: 75px
    }
}

/* =========================================
   BMS - WYŚRODKOWANIE NAGŁÓWKA
   ========================================= */

.bms-heading {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

    .bms-heading h1 {
        text-align: center;
    }

/* =========================================
   BMS - WYŚRODKOWANIE STOPKI
   ========================================= */

.bms-statusbar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 6px;
}

    .bms-statusbar span {
        text-align: center;
    }

.bms-tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 10px;
}

    .bms-tile-icon img {
        display: block;
        width: 64px;
        height: 64px;
        object-fit: contain;
        background: transparent;
    }

    .bms-tile-icon:has(img:not([style*="display: none"])) > span {
        display: none;
    }

/* ============================================================
   DEJVSYSTEMS — BMS: pasek wizyty w treści, bez nakładania na stopkę
   ============================================================ */

.site-footer-simple {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    min-height: 60px;
    padding: 10px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    background: #0d2240;
    color: #a8d2ff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

    .site-footer-simple .footer-clock-icon {
        width: 28px;
        height: 28px;
        object-fit: contain;
    }

body.bms-page {
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    overflow-y: auto;
    scrollbar-width: none;
    padding-bottom: 0;
    background: #c4ceda;
}

    body.bms-page::-webkit-scrollbar {
        display: none;
    }

    body.bms-page .bms-dashboard {
        display: flex;
        flex-direction: column;
        flex: 1 0 auto;
        min-height: 0;
        padding: 28px 0;
        background: #c4ceda;
    }

    body.bms-page .bms-workspace {
        display: flex;
        flex-direction: column;
        flex: 1 0 auto;
        min-height: 0;
    }

    body.bms-page .site-footer-simple {
        position: static;
        flex: 0 0 auto;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

.bms-visit-row {
    width: 100%;
    flex: 0 0 auto;
    margin-top: auto; /* na dużym ekranie pod treścią */
    padding-top: -5px;
}

.bms-next-visit {
    position: static;
    inset: auto;
    transform: none;
    width: 100%;
    max-width: none;
    min-height: 62px;
    height: auto;
    margin: 0;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-radius: 10px;
    background: #0a2346;
    color: #a6ceff;
    font-size: clamp(14px, 1.25vw, 19px);
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    box-shadow: 0 2px 7px #071b3030;
}

    .bms-next-visit img {
        display: block;
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        object-fit: contain;
    }

.bms-next-visit-active {
    color: #ffb39f;
}

@media (max-width: 620px) {
    body.bms-page .bms-dashboard {
        padding: 20px 0;
    }

    body.bms-page .bms-workspace {
        flex: 0 0 auto;
    }

    body.bms-page .bms-visit-row {
        margin-top: 0;
        padding-top: -5px;
    }

    .bms-next-visit {
        padding: 12px;
        gap: 9px;
        font-size: 13px;
    }

        .bms-next-visit img {
            flex-basis: 28px;
            width: 28px;
            height: 28px;
        }

    .site-footer-simple {
        padding: 10px;
        gap: 4px 9px;
        font-size: 12px;
    }

        .site-footer-simple .footer-clock-icon {
            width: 22px;
            height: 22px;
        }
}

/* Tablet i telefon: pasek zawsze za kafelkami, nigdy fixed/sticky. */
@media (max-width: 980px) {
    body.bms-page .bms-workspace {
        flex: 0 0 auto;
    }

    body.bms-page .bms-visit-row {
        margin-top: 0;
    }

    body.bms-page .bms-next-visit {
        position: static;
    }
}

@media (min-width: 761px) {
    body.bms-page .bms-layout {
        align-items: start !important;
    }

    body.bms-page .bms-content {
        display: block !important;
        align-self: start !important;
        margin-top: 100px !important;
        min-height: 0 !important;
    }

    body.bms-page .bms-tiles:not([hidden]) {
        flex: none !important;
        grid-template-rows: repeat(3, 151px) !important;
        align-content: start !important;
    }
}

/* Na telefonie kafelki normalnie po aktualnościach, bez odsunięcia. */
@media (max-width: 760px) {
    body.bms-page .bms-content {
        display: block !important;
        margin-top: 0 !important;
    }

    body.bms-page .bms-tiles {
        grid-template-rows: none !important;
    }
}

/* Stopka stale widoczna przy przewijaniu, także w panelu BMS. */
body.bms-page .site-footer-simple {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Zarezerwuj miejsce na stopkę, by nie zasłaniała ostatnich elementów. */
body.bms-page .bms-dashboard {
    padding-bottom: 100px !important;
}

/* Pasek wizyty jest w treści strony, a nie przyklejony do ekranu. */
body.bms-page .bms-next-visit {
    position: static !important;
    inset: auto !important;
    transform: none !important;
}

@media (max-width: 620px) {
    body.bms-page .bms-dashboard {
        padding-bottom: 115px !important;
    }

    body.bms-page .site-footer-simple {
        min-height: 60px;
        height: auto;
    }
}


/* BMS: całe MENU GŁÓWNE po prawej stronie Aktualności */
@media (min-width: 761px) {
    body.bms-page .bms-layout {
        align-items: start !important;
    }

    body.bms-page .bms-content {
        margin-top: 0 !important;
        align-self: stretch !important;
        min-width: 0;
    }
}

body.bms-page .bms-content > .bms-topline {
    width: 100%;
    margin: 0 0 24px;
}

    body.bms-page .bms-content > .bms-topline .bms-heading {
        flex: 1 1 auto;
        min-width: 0;
    }

    body.bms-page .bms-content > .bms-topline .bms-toolbar {
        flex: 0 0 auto;
    }

@media (max-width: 760px) {
    body.bms-page .bms-content > .bms-topline {
        margin-bottom: 18px;
    }
}


/* ============================================================
   BMS — korekta wyłącznie pustej przestrzeni / zbędnego scrolla.
   Nie zmienia siatki, kafelków, nagłówka ani aktualności.
   ============================================================ */
body.bms-page .bms-workspace {
    min-height: 0;
    flex: 0 0 auto;
}

body.bms-page .bms-dashboard {
    min-height: 0;
    flex: 1 1 auto;
    padding-bottom: 65px !important; /* miejsce na stałą stopkę 60px */
}

body.bms-page .bms-visit-row {
    margin-top: 24px; /* taki sam odstęp jak pod nagłówkiem Witaj */
    padding-top: 0;
}

/* Na telefonie treść może być wyższa niż ekran — przewijanie jest potrzebne. */
@media (max-width: 620px) {
    body.bms-page .bms-dashboard {
        padding-bottom: 75px !important;
    }
}

body.bms-page .bms-visit-row {
    position: relative !important;
    top: -5px !important;
}
/* Tylko kafelek aktualnie trwającej wizyty */
.bms-news-visit-active .bms-news-card-title {
    background: #ff604d;
    color: #fff;
}
