*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Design tokens. */
:root {
    --street-yellow: #f4c542;
    --street-yellow-soft: #ffd968;
    --street-yellow-tint: #fff6d6;
    --street-yellow-wash: #fffdf3;
    --street-ink: #171717;
    --street-muted: #68707a;
    --street-text-2: #4a4c50;
    --street-surface: #f5f6f7;
    --street-border: #dfe3e8;
    --street-input-border: #cfd4da;
    --street-shadow: 0 12px 32px rgba(23, 23, 23, 0.12);
    --street-link: #8a6500;
    --street-dark-line: #2e2e2e;
    --street-on-dark: #c9cacd;
    --street-on-dark-2: #b5b7bb;
    --street-on-dark-3: #9a9ca1;
    --street-success: #1f6b45;
    --street-success-bg: #e3f3ea;
    --street-success-dot: #4cc38a;
    --street-danger: #b3261e;
    --street-danger-bg: #fbe7e5;
    --street-danger-on-dark: #f19a93;
    --street-neutral-bg: #eef0f2;
    --street-plate-eu: #1c4ba0;
}

/* ---- Base reset ----
   What the site used from Bootstrap 5.3 (reboot + .fixed-top + .visually-hidden),
   so the full Bootstrap stylesheet no longer has to load before the first paint. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

hr {
    margin: 16px 0;
    color: inherit;
    border: 0;
    border-top: 1px solid;
    opacity: 0.25;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    font-size: calc(22px + 1.5vw);
}

h2 {
    font-size: calc(21.2px + 0.9vw);
}

h3 {
    font-size: calc(20.8px + 0.6vw);
}

h4 {
    font-size: calc(20.4px + 0.3vw);
}

h5 {
    font-size: 20px;
}

h6 {
    font-size: 16px;
}

@media (min-width: 1200px) {
    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 28px;
    }

    h4 {
        font-size: 24px;
    }
}

p {
    margin-top: 0;
    margin-bottom: 16px;
}

ol,
ul {
    padding-left: 32px;
}

ol,
ul,
dl {
    margin-top: 0;
    margin-bottom: 16px;
}

ol ol,
ul ul,
ol ul,
ul ol {
    margin-bottom: 0;
}

dt {
    font-weight: 700;
}

dd {
    margin-bottom: 8px;
    margin-left: 0;
}

blockquote,
figure {
    margin: 0 0 16px;
}

b,
strong {
    font-weight: bolder;
}

small {
    font-size: 0.875em;
}

a {
    color: var(--street-link);
    text-decoration: underline;
}

a:hover {
    color: var(--street-ink);
}

a:not([href]):not([class]),
a:not([href]):not([class]):hover {
    color: inherit;
    text-decoration: none;
}

pre,
code,
kbd,
samp {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.875em;
}

img,
svg {
    vertical-align: middle;
}

table {
    caption-side: bottom;
    border-collapse: collapse;
}

th {
    text-align: inherit;
    text-align: -webkit-match-parent;
}

thead,
tbody,
tfoot,
tr,
td,
th {
    border-color: inherit;
    border-style: solid;
    border-width: 0;
}

label {
    display: inline-block;
}

button {
    border-radius: 0;
}

button:focus:not(:focus-visible) {
    outline: 0;
}

button,
input,
optgroup,
select,
textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button,
select {
    text-transform: none;
}

[role="button"],
button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled) {
    cursor: pointer;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

textarea {
    resize: vertical;
}

fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

legend {
    float: left;
    width: 100%;
    margin-bottom: 8px;
    padding: 0;
    font-size: 24px;
    line-height: inherit;
}

legend + * {
    clear: left;
}

[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

::-webkit-search-decoration {
    -webkit-appearance: none;
}

::file-selector-button {
    font: inherit;
    -webkit-appearance: button;
}

iframe {
    border: 0;
}

summary {
    display: list-item;
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-size: 16px;
    font-family: "Chakra Petch", sans-serif;
    color: var(--street-ink);
    background: var(--street-surface);
    line-height: 1.55;
}

[id] {
    scroll-margin-top: var(--navbar-height, 72px);
}

/* ---- Layout primitives ---- */
.site-container {
    width: 100%;
    max-width: calc(1184px + 2 * 48px);
    margin: 0 auto;
    padding: 0 48px;
}

.eyebrow {
    margin: 0;
    color: var(--street-yellow);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow-on-light,
.home-section:not(.home-select) .eyebrow {
    color: var(--street-link);
}

.eyebrow-muted.eyebrow {
    color: var(--street-muted);
}

.section-title {
    margin: 0;
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.block-title {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.section-lead {
    margin: 0;
    color: var(--street-text-2);
    font-size: 17px;
    line-height: 1.5;
}

/* ---- Buttons ---- */
.btn-street {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 13px 22px;
    border: 2px solid transparent;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background-color 160ms ease,
        color 160ms ease,
        border-color 160ms ease;
}

.btn-street-lg {
    padding: 15px 28px;
    font-size: 17px;
}

.btn-street-block {
    display: flex;
    width: 100%;
    min-height: 54px;
}

.btn-street-primary {
    border-color: var(--street-yellow);
    background: var(--street-yellow);
    color: var(--street-ink);
}

.btn-street-primary:hover {
    border-color: var(--street-yellow-soft);
    background: var(--street-yellow-soft);
    color: var(--street-ink);
}

.btn-street-light {
    border-color: #fff;
    background: transparent;
    color: #fff;
}

.btn-street-light:hover {
    background: #fff;
    color: var(--street-ink);
}

.btn-street-dark {
    border-color: var(--street-ink);
    background: var(--street-ink);
    color: #fff;
}

.btn-street-dark:hover {
    border-color: #333;
    background: #333;
    color: #fff;
}

.btn-street-outline {
    border-color: var(--street-ink);
    background: transparent;
    color: var(--street-ink);
}

.btn-street-outline:hover {
    background: var(--street-ink);
    color: #fff;
}

/* Text action inside cards: "Jak się zgłosić →". */
.link-action {
    align-self: flex-start;
    border-bottom: 3px solid var(--street-yellow);
    color: var(--street-ink);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color 160ms ease;
}

.link-action:hover {
    border-color: var(--street-ink);
    color: var(--street-ink);
}

/* ---- Form fields ---- */
.field-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1.5px solid var(--street-input-border);
    border-radius: 4px;
    background: #fff;
    color: var(--street-ink);
    font-family: inherit;
    font-size: 16px;
}

.field-input::placeholder {
    color: #8a8f96;
}

.field-input:focus,
.field-input:focus-visible {
    border: 2px solid var(--street-ink);
    outline: none;
    box-shadow: 0 0 0 4px rgba(244, 197, 66, 0.45);
}

.field-input.is-invalid,
.field-input[aria-invalid="true"] {
    border: 2px solid var(--street-danger);
}

.field-error {
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 0;
    color: var(--street-danger);
    font-size: 14px;
    font-weight: 600;
}

/* ---- Announcement bar ---- */
.announcement-bar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 16px;
    padding: 10px 64px;
    background: var(--street-yellow);
    color: var(--street-ink);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

.announcement-bar.is-warning {
    background: var(--street-danger);
    color: #fff;
}

.announcement-bar a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.announcement-bar button {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

/* ---- Navigation ---- */
.site-nav {
    background: var(--street-ink);
}

.site-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.site-nav-logo {
    display: block;
    flex: none;
}

.site-nav-logo img {
    display: block;
    width: 92px;
}

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

.site-nav-links {
    display: flex;
    gap: 28px;
}

.site-nav-link {
    padding: 4px 0 2px;
    border-bottom: 2px solid transparent;
    color: var(--street-on-dark);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 160ms ease;
}

.site-nav-link:hover {
    color: #fff;
}

.site-nav-link.is-active {
    border-bottom-color: var(--street-yellow);
    color: #fff;
}

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

.site-nav-login {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 44px;
    border-bottom: 2px solid transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-nav-login i {
    font-size: 18px;
}

.site-nav-login:hover,
.site-nav-login.active {
    border-bottom-color: var(--street-yellow);
    color: #fff;
}

.site-nav-tickets {
    padding: 12px 20px;
    white-space: nowrap;
}

.site-nav-tickets .label-short,
.site-nav-actions .site-nav-toggle {
    display: none;
}

.site-nav-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

/* Account dropdown */
.account-menu {
    position: relative;
}

.account-menu-button {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

.account-menu-button:hover,
.account-menu-button.is-open {
    background: #2a2a2a;
}

.account-menu-button .bi {
    font-size: 12px;
}

.account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--street-yellow);
    color: var(--street-ink);
    font-size: 12px;
    font-weight: 700;
}

.account-menu-list {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    width: 240px;
    padding: 8px;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.account-menu-item {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--street-ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.account-menu-item:hover,
.account-menu-item:focus-visible,
.account-menu-item.is-active {
    background: var(--street-yellow-tint);
    color: var(--street-ink);
}

.account-menu-item:focus-visible {
    outline-offset: -3px;
}

.account-menu-item.is-muted {
    color: var(--street-text-2);
}

.account-menu-separator {
    height: 1px;
    margin: 6px 0;
    background: var(--street-border);
}

/* Full-screen phone menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: var(--street-ink);
    color: #fff;
}

.mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--street-dark-line);
}

.mobile-menu-top .site-nav-logo img {
    width: 72px;
}

.mobile-menu-links {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 20px;
}

.mobile-menu-link {
    padding: 14px 0;
    border-bottom: 1px solid var(--street-dark-line);
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
}

.mobile-menu-link:hover,
.mobile-menu-link.is-active {
    color: var(--street-yellow);
}

.mobile-menu-login,
.mobile-menu-account a,
.mobile-menu-account button {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: var(--street-on-dark);
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
}

.mobile-menu-login {
    padding: 22px 0;
}

.mobile-menu-login i {
    font-size: 22px;
}

.mobile-menu-account {
    display: flex;
    flex-direction: column;
    padding: 14px 0;
}

.mobile-menu-login:hover,
.mobile-menu-account a:hover,
.mobile-menu-account button:hover {
    color: #fff;
}

.mobile-menu-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.mobile-menu-bottom p {
    margin: 0;
    color: var(--street-on-dark-3);
    font-size: 13px;
    text-align: center;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .site-nav-right {
        gap: 24px;
    }

    .site-nav-links {
        gap: 18px;
    }

    .site-nav-actions {
        gap: 12px;
    }
}

@media (max-width: 991px) {
    .site-nav-links,
    .site-nav-account {
        display: none;
    }

    .site-nav-actions .site-nav-toggle {
        display: inline-flex;
    }

    .site-nav-actions {
        gap: 8px;
    }
}

@media (max-width: 767px) {
    .site-container {
        padding: 0 20px;
    }

    .site-nav .site-container {
        padding: 12px 16px;
    }

    .site-nav-logo img {
        width: 72px;
    }

    .site-nav-tickets {
        padding: 0 14px;
        font-size: 14px;
    }

    .site-nav-tickets .label-full {
        display: none;
    }

    .site-nav-tickets .label-short {
        display: inline;
    }

    .announcement-bar {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 10px 52px 10px 16px;
        font-size: 14px;
        line-height: 1.4;
        text-align: left;
    }

    .announcement-bar button {
        top: 4px;
        right: 4px;
        transform: none;
    }
}

/* ---- Hero ---- */
.home {
    min-height: 560px;
}

.hero-shadow {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(17, 17, 17, 0.92) 0%,
        rgba(17, 17, 17, 0.72) 45%,
        rgba(17, 17, 17, 0.1) 80%
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    height: 100%;
    color: #fff;
}

.hero-content > * {
    max-width: 760px;
}

.hero-content .eyebrow {
    font-size: 16px;
}

.hero-title {
    margin: 0;
    font-size: clamp(64px, 8.2vw, 104px);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.hero-title-line {
    white-space: nowrap;
}

.hero-lead {
    max-width: 520px;
    margin: 0;
    color: #dcdde0;
    font-size: 19px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.hero-content .hero-countdown {
    align-self: flex-start;
    margin: 0;
    padding: 4px 12px;
    border-radius: 2px;
    background: var(--street-yellow);
    color: var(--street-ink);
    font-size: 15px;
}

@media (max-width: 767px) {
    .hero-shadow {
        background: linear-gradient(
            0deg,
            rgba(17, 17, 17, 0.95) 0%,
            rgba(17, 17, 17, 0.75) 45%,
            rgba(17, 17, 17, 0.15) 100%
        );
    }

    .hero-content {
        justify-content: flex-end;
        gap: 14px;
        padding-bottom: 28px;
    }

    .hero-content .eyebrow {
        font-size: 13px;
        letter-spacing: 0.1em;
    }

    .hero-title {
        font-size: 58px;
    }

    .hero-title-year {
        display: block;
    }

    .hero-lead {
        font-size: 16px;
        line-height: 1.45;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 4px;
    }

    .hero-actions .btn-street {
        width: 100%;
        min-height: 54px;
        font-size: 16px;
    }
}

/* ---- Home sections ---- */
.home-section {
    padding: 88px 0;
    background: #fff;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px 40px;
    margin-bottom: 40px;
}

.section-head-title {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.section-head > .section-lead {
    max-width: 440px;
}

.section-head > .btn-street {
    flex: none;
}

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

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature-card-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    object-fit: cover;
}

.feature-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
}

.feature-card-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
}

.feature-card-text {
    margin: 0;
    color: var(--street-text-2);
    font-size: 16px;
    line-height: 1.5;
}

.feature-card .link-action {
    margin-top: auto;
}

/* Strefa Select — 4 steps */
.home-select {
    background: var(--street-ink);
    color: #fff;
}

.select-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    margin: 0;
    padding: 0;
    background: #333;
    list-style: none;
}

.select-steps li {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    background: var(--street-ink);
}

.select-steps li:first-child {
    padding-left: 0;
}

.select-step-number {
    color: var(--street-yellow);
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
}

.select-steps h3 {
    margin: 0 0 12px;
    font-size: 21px;
    font-weight: 700;
    text-transform: uppercase;
}

.select-steps p {
    margin: 0;
    color: var(--street-on-dark-2);
    font-size: 15px;
    line-height: 1.5;
}

.select-note {
    margin: 40px 0 0;
    color: var(--street-on-dark-3);
    font-size: 15px;
}

.select-note a,
.select-note a:hover {
    color: var(--street-yellow);
}

.select-cta-mobile {
    display: none;
}

.select-closed {
    max-width: 420px;
    margin: 0;
    color: var(--street-on-dark);
    font-size: 16px;
}

/* Approved cars teaser (only when the showcase is switched on) */
.showcase-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.showcase-preview-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.showcase-preview-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    object-fit: cover;
}

.showcase-preview-card p {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Gallery preview: one big photo + two stacked */
.home-gallery {
    background: var(--street-surface);
}

.home-gallery .section-head {
    margin-bottom: 32px;
}

.home-gallery .section-lead {
    margin: -12px 0 28px;
}

.gallery-mosaic {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 240px 240px;
    gap: 16px;
}

.gallery-mosaic img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: cover;
}

.gallery-mosaic img:first-child {
    grid-row: 1 / 3;
}

.gallery-mosaic.is-count-1 {
    grid-template-columns: 1fr;
}

.gallery-mosaic.is-count-2 img:last-child {
    grid-row: 1 / 3;
}

/* "Daj mi znać o dacie" */
.home-notify {
    padding: 72px 0;
    border-bottom: 1px solid var(--street-border);
    background: #fff;
}

.home-notify-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.home-notify-grid .block-title {
    margin-bottom: 12px;
}

.notify-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notify-row {
    display: flex;
    gap: 8px;
}

.notify-row .field-input {
    flex: 1;
    height: 54px;
}

.notify-row .btn-street {
    min-height: 54px;
    padding: 0 26px;
    font-size: 16px;
}

.notify-legal {
    margin: 0;
    color: var(--street-muted);
    font-size: 13px;
}

.home-notify .form-success {
    margin: 0;
}

/* Partners */
.home-partners {
    padding: 56px 0 64px;
    background: #fff;
    text-align: center;
}

.home-partners .eyebrow {
    margin-bottom: 28px;
}

/* Flex instead of grid so a short last row (or just a few logos) stays centred. */
.partners-grid {
    --partners-per-row: 6;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.partners-grid li,
.partners-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
}

.partners-grid li {
    width: calc((100% - (var(--partners-per-row) - 1) * 16px) / var(--partners-per-row));
}

.partners-grid a {
    width: 100%;
}

.partners-grid img {
    max-width: 100%;
    max-height: 56px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.8;
    transition:
        filter 160ms ease,
        opacity 160ms ease;
}

.partners-grid a:hover img,
.partners-grid li:hover img {
    filter: none;
    opacity: 1;
}

@media (hover: none) {
    .partners-grid img {
        filter: none;
        opacity: 1;
    }
}

.partners-tier-title {
    margin: 0 0 16px;
    color: var(--street-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.partners-featured {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 96px;
    margin-bottom: 48px;
}

.partners-featured-group ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.partners-featured-group li,
.partners-featured-group a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 112px;
}

.partners-featured-group img {
    max-width: min(280px, 100%);
    max-height: 104px;
    object-fit: contain;
}

.partners-featured-group.is-partner li,
.partners-featured-group.is-partner a {
    height: 96px;
}

.partners-featured-group.is-partner img {
    max-width: min(240px, 100%);
    max-height: 84px;
}

@media (min-width: 768px) and (max-width: 991px) {
    .feature-grid,
    .showcase-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .select-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .select-steps li:nth-child(odd) {
        padding-left: 0;
    }

    .partners-grid {
        --partners-per-row: 4;
    }
}

@media (max-width: 767px) {
    .home-section {
        padding: 48px 0;
    }

    .section-head {
        margin-bottom: 28px;
    }

    .section-title {
        font-size: 34px;
    }

    .block-title {
        font-size: 26px;
    }

    .section-lead {
        font-size: 15px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .feature-card {
        gap: 10px;
    }

    .feature-card:first-child .feature-card-img {
        aspect-ratio: 16 / 10;
    }

    .feature-card:not(:first-child) {
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: 14px;
        align-items: start;
    }

    .feature-card:not(:first-child) .feature-card-img {
        width: 120px;
        height: 90px;
        aspect-ratio: auto;
    }

    .feature-card-body {
        gap: 8px;
    }

    .feature-card-title {
        font-size: 20px;
    }

    .feature-card:not(:first-child) .feature-card-title {
        font-size: 18px;
    }

    .feature-card-text {
        font-size: 15px;
    }

    .feature-card:not(:first-child) .feature-card-text {
        font-size: 14px;
        line-height: 1.45;
    }

    .home-select .section-head > .btn-street,
    .home-select .section-head > .select-closed {
        display: none;
    }

    .select-cta-mobile {
        display: block;
        margin-top: 24px;
    }

    .select-cta-mobile .btn-street {
        display: flex;
        width: 100%;
        min-height: 54px;
        font-size: 16px;
    }

    .select-steps {
        grid-template-columns: 1fr;
        gap: 0;
        background: none;
    }

    .select-steps li,
    .select-steps li:first-child {
        display: grid;
        grid-template-columns: 48px 1fr;
        gap: 12px;
        padding: 16px 0;
        border-top: 1px solid #333;
    }

    .select-steps li:last-child {
        border-bottom: 1px solid #333;
    }

    .select-step-number {
        font-size: 26px;
    }

    .select-steps h3 {
        margin-bottom: 2px;
        font-size: 17px;
    }

    .select-steps p {
        font-size: 14px;
        line-height: 1.45;
    }

    .select-note {
        margin-top: 24px;
        font-size: 14px;
    }

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

    .showcase-preview-card p {
        font-size: 16px;
    }

    .home-gallery .section-head {
        flex-wrap: nowrap;
        align-items: baseline;
        margin-bottom: 20px;
    }

    .gallery-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 120px;
        gap: 8px;
    }

    .gallery-mosaic img:first-child {
        grid-row: auto;
        grid-column: 1 / 3;
    }

    .gallery-mosaic.is-count-2 img:last-child {
        grid-row: auto;
        grid-column: 1 / 3;
    }

    .home-notify {
        padding: 40px 0;
    }

    .home-notify-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .notify-row {
        flex-direction: column;
    }

    .notify-row .field-input,
    .notify-row .btn-street {
        height: 52px;
        min-height: 52px;
    }

    .home-partners {
        padding: 32px 0;
    }

    .home-partners .eyebrow {
        margin-bottom: 16px;
        font-size: 13px;
    }

    .partners-grid {
        --partners-per-row: 3;
        gap: 8px;
    }

    .partners-grid li {
        width: calc((100% - 16px) / 3);
    }

    .partners-grid.is-four li {
        width: calc((100% - 8px) / 2);
    }

    .partners-featured {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 32px;
    }

    .partners-tier-title {
        margin-bottom: 12px;
        font-size: 12px;
    }

    .partners-featured-group li,
    .partners-featured-group a {
        height: 88px;
    }

    .partners-featured-group img {
        max-height: 80px;
    }

    .partners-featured-group.is-partner li,
    .partners-featured-group.is-partner a {
        height: 72px;
    }

    .partners-featured-group.is-partner img {
        max-height: 64px;
    }

    .partners-grid li,
    .partners-grid a {
        height: 56px;
    }

    .partners-grid img {
        max-height: 44px;
    }
}

/* ---- Footer ---- */
.site-footer {
    border-top: 3px solid var(--street-yellow);
    background: var(--street-ink);
    color: var(--street-on-dark);
    font-size: 14px;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--street-on-dark);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--street-yellow);
}

/* Sub-pages: one row. */
.site-footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.site-footer-row-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 24px;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
}

/* 44px touch targets (Apple HIG) — the links sit close together on phones. */
.site-footer-links a,
.site-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.site-footer-social {
    display: flex;
    gap: 4px;
    font-size: 16px;
}

.site-footer-social a {
    min-width: 44px;
}

.site-footer-social.is-large {
    gap: 8px;
    margin-left: -12px;
    font-size: 24px;
}

.site-footer-social.is-large a {
    color: #fff;
}

/* Home: contact merged into the footer. */
.site-footer-full {
    padding: 56px 0 32px;
    font-size: 15px;
    line-height: 1.6;
}

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

.site-footer-about {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.site-footer-about p {
    max-width: 300px;
}

.site-footer-logo {
    width: 110px;
}

.site-footer-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.site-footer-col h2 {
    margin: 0;
    color: var(--street-yellow);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    text-transform: uppercase;
}

.site-footer-line {
    display: flex;
    gap: 8px;
}

.site-footer-credit {
    display: inline-block;
    opacity: 0.7;
    white-space: nowrap;
}

.site-footer-credit::before {
    content: "·";
    margin: 0 6px;
}

.site-footer-credit a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 40px;
    padding-top: 8px;
    border-top: 1px solid var(--street-dark-line);
    font-size: 14px;
}

@media (max-width: 767px) {
    .site-footer-row {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 20px;
        padding-bottom: 24px;
    }

    .site-footer-full {
        padding: 32px 0 40px;
        font-size: 14px;
    }

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

    .site-footer-logo {
        width: 88px;
    }

    .site-footer-bottom {
        flex-direction: column-reverse;
        align-items: flex-start;
        margin-top: 24px;
    }
}

/* ---- Hero photo (CMS framing) ---- */

/* Hero fills exactly the first screen below the fixed header (Layout sets
   margin-top = header height) and the photo always covers it edge to edge.
   The photo is <HeroPhoto> (.hero-photo > .hero-photo-inner), configured from the
   CMS (Admin → Treści strony → Home) through CSS variables on .home:
     --hero-image, --hero-image-mobile      photo URLs
     --hd-x/--hd-y/--hd-zoom                desktop framing (crop tool)
     --hm-x/--hm-y/--hm-zoom                phone framing
     .hero-rotate-mobile                    photo turned 90° on phones held upright
   No background-attachment: fixed — it sized the photo to the whole window, so its
   top always hid behind the header (and it's broken on iOS anyway). */
.home {
    --hero-fallback: url("../img/photos/Hero-image.webp");
    position: relative;
    height: calc(100vh - var(--navbar-height, 0px));
    height: calc(100svh - var(--navbar-height, 0px));
    overflow: hidden;
    background-color: #111;
    z-index: 0;
}

/* Frame (rotated on phones if enabled) clipping the photo layer. */
.hero-photo {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

/* The photo: covers the frame, keeps the chosen point (x/y %) in view and zooms
   around that point. */
.hero-photo-inner {
    --x: var(--hd-x, 50%);
    --y: var(--hd-y, 50%);
    position: absolute;
    inset: 0;
    background-image: var(--hero-image, var(--hero-fallback));
    background-position: var(--x) var(--y);
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(var(--hd-zoom, 1));
    transform-origin: var(--x) var(--y);
}

@media (max-width: 767px) {
    .hero-photo-inner {
        --x: var(--hm-x, 50%);
        --y: var(--hm-y, 50%);
        background-image: var(
            --hero-image-mobile,
            var(--hero-image, var(--hero-fallback))
        );
        transform: scale(var(--hm-zoom, 1));
    }
}

/* Phone held upright: lay a landscape photo on its side so it fills the screen
   with far less cropping. The frame gets the hero's swapped dimensions and is
   rotated around its centre. */
@media (max-width: 767px) and (orientation: portrait) {
    .home.hero-rotate-mobile .hero-photo {
        inset: auto;
        top: 50%;
        left: 50%;
        width: calc(100vh - var(--navbar-height, 0px));
        width: calc(100svh - var(--navbar-height, 0px));
        height: 100vw;
        transform: translate(-50%, -50%) rotate(90deg);
    }
}

/* ---- Sub-pages: header band and sections ---- */
.page-header {
    padding: 64px 0 48px;
    background: var(--street-surface);
}

.page-header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px 40px;
}

.page-header-title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-header h1 {
    margin: 0;
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.page-header-lead {
    max-width: 420px;
    margin: 0;
    color: var(--street-text-2);
    font-size: 17px;
    line-height: 1.5;
}

.page-section {
    padding: 48px 0 72px;
    background: #fff;
}

.back-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--street-ink);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.back-link:hover {
    color: var(--street-link);
}

.side-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.side-layout-aside {
    min-width: 0;
    position: sticky;
    top: calc(var(--navbar-height, 72px) + 24px);
}

.skeleton {
    display: block;
    border-radius: 4px;
    background: var(--street-neutral-bg);
    animation: skeleton-pulse 1.4s ease-in-out infinite;
}

.skeleton-line {
    width: 60%;
    height: 22px;
}

@keyframes skeleton-pulse {
    50% {
        opacity: 0.55;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton {
        animation: none;
    }
}

/* ---- Gallery: albums ---- */
.album-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.album-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--street-ink);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.album-card:hover {
    color: var(--street-ink);
}

.album-card-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    background: var(--street-surface);
}

.album-card-cover img,
.album-card-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 160ms ease;
}

.album-card:hover .album-card-cover img {
    opacity: 0.85;
}

.album-card-body {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.album-card-body strong {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
}

.album-card-body small {
    flex: none;
    color: var(--street-muted);
    font-size: 15px;
}

.badge-new {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 2px;
    background: var(--street-yellow);
    color: var(--street-ink);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.showcase-lead {
    margin-bottom: 28px;
}

/* ---- Gallery: one album ---- */
.album-view {
    padding-top: 40px;
}

.album-view-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px 24px;
    margin: 8px 0 32px;
}

.album-view-head h1 {
    margin: 0;
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.album-view-head p {
    margin: 0;
    color: var(--street-muted);
    font-size: 16px;
}

.album-view-lead {
    max-width: 720px;
    margin: -16px 0 32px;
}

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

.photo-grid-item {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 4px;
    overflow: hidden;
    background: var(--street-surface);
    cursor: zoom-in;
}

.photo-grid-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: opacity 160ms ease;
}

.photo-grid-item:hover img {
    opacity: 0.85;
}

/* ---- Lightbox ---- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.96);
    color: #fff;
}

.lightbox-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
}

.lightbox-title {
    overflow: hidden;
    margin: 0;
    color: var(--street-on-dark);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.lightbox-top-right {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
}

.lightbox-counter {
    margin: 0;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 600;
}

.lightbox-button {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 4px;
    background: #262626;
    color: #fff;
    cursor: pointer;
    transition: background-color 160ms ease;
}

.lightbox-close {
    font-size: 28px;
}

.lightbox-button:hover {
    background: #363636;
}

.lightbox-stage {
    display: flex;
    flex: 1;
    min-height: 0;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 28px;
}

.lightbox-arrow {
    width: 56px;
    height: 56px;
    font-size: 24px;
}

.lightbox-arrow.is-next {
    background: var(--street-yellow);
    color: var(--street-ink);
}

.lightbox-arrow.is-next:hover {
    background: var(--street-yellow-soft);
}

.lightbox-image {
    display: block;
    min-width: 0;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    object-fit: contain;
}

.lightbox-thumbs {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 16px 28px 20px;
}

.lightbox-thumbs button {
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: none;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 160ms ease;
}

.lightbox-thumbs button:hover,
.lightbox-thumbs button.is-active {
    opacity: 1;
}

.lightbox-thumbs button.is-active {
    outline: 2px solid var(--street-yellow);
    outline-offset: 2px;
}

.lightbox-thumbs img {
    display: block;
    width: 72px;
    height: 48px;
    border-radius: 2px;
    object-fit: cover;
}

/* ---- FAQ ---- */
.faq-categories {
    display: flex;
    flex-direction: column;
    border-top: 2px solid var(--street-ink);
}

.faq-categories button {
    padding: 14px 12px 14px 14px;
    border: 0;
    border-bottom: 1px solid var(--street-border);
    background: transparent;
    color: var(--street-text-2);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
}

.faq-categories button:hover {
    color: var(--street-ink);
}

.faq-categories button.is-active {
    background: var(--street-yellow-tint);
    color: var(--street-ink);
    font-weight: 700;
    box-shadow: inset 4px 0 0 var(--street-yellow);
}

.faq-contact-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 28px;
    padding: 22px;
    border-radius: 4px;
    background: var(--street-ink);
    color: #fff;
}

.faq-contact-box p {
    margin: 0;
    color: var(--street-on-dark);
    font-size: 14px;
}

.faq-contact-box .faq-contact-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

.faq-contact-box a {
    color: var(--street-yellow);
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.faq-list-title {
    margin: 0;
    padding-bottom: 18px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.faq-row {
    border-top: 1px solid var(--street-border);
}

.faq-row:first-of-type {
    border-top: 2px solid var(--street-ink);
}

.faq-row:last-child {
    border-bottom: 1px solid var(--street-border);
}

.faq-row-heading {
    margin: 0;
}

.faq-row-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 20px 0;
    border: 0;
    background: transparent;
    color: var(--street-ink);
    font-family: inherit;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.faq-row.is-open .faq-row-button {
    font-weight: 700;
}

.faq-row-button .bi {
    flex: none;
    font-size: 20px;
}

.faq-row-number {
    color: var(--street-link);
}

/* Height animation: 0fr → 1fr grid row. */
.faq-row-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 200ms ease;
}

.faq-row.is-open .faq-row-panel {
    grid-template-rows: 1fr;
}

.faq-row-panel-inner {
    overflow: hidden;
}

.faq-answer {
    max-width: 720px;
    padding-bottom: 20px;
    color: #3a3c40;
    font-size: 16px;
    line-height: 1.6;
}

.faq-row:not(.is-open) .faq-answer {
    visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .faq-row-panel {
        transition: none;
    }
}

/* ---- Regulamin ---- */
.toc {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 14px;
    border-top: 2px solid var(--street-ink);
    font-size: 15px;
    line-height: 1.4;
}

.toc-title {
    margin: 0;
    padding-bottom: 8px;
    color: var(--street-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.toc a {
    padding: 8px 0 8px 12px;
    color: var(--street-text-2);
    text-decoration: none;
}

.toc a:hover {
    color: var(--street-ink);
}

.toc a.is-active {
    color: var(--street-ink);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--street-yellow);
}

.document-text {
    max-width: 720px;
    color: #3a3c40;
    font-size: 17px;
    line-height: 1.65;
}

.document-text h2 {
    margin: 40px 0 16px;
    color: var(--street-ink);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.document-text h2:first-child {
    margin-top: 0;
}

.document-text h3 {
    margin: 28px 0 12px;
    color: var(--street-ink);
    font-size: 20px;
    font-weight: 700;
}

.document-text p,
.document-text ul,
.document-text ol {
    margin-bottom: 16px;
}

.document-text ul,
.document-text ol {
    padding-left: 22px;
}

.document-text li {
    margin-bottom: 8px;
}

.document-text ol li::marker {
    color: var(--street-link);
    font-weight: 700;
}

/* ---- Login / registration ---- */
.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 640px;
    background: #fff;
}

.auth-split-photo {
    position: relative;
    background-color: #111;
    background-position: center;
    background-size: cover;
}

.auth-split-photo::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 17, 17, 0.92) 0%, rgba(17, 17, 17, 0.35) 60%);
    content: "";
}

.auth-split-pitch {
    position: absolute;
    right: 48px;
    bottom: 48px;
    left: 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #fff;
}

.auth-split-headline {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.auth-split-text {
    max-width: 440px;
    margin: 0;
    color: #dcdde0;
    font-size: 16px;
    line-height: 1.5;
}

.auth-split-benefits {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    color: #dcdde0;
    font-size: 16px;
    list-style: none;
}

.auth-split-benefits li {
    display: flex;
    gap: 10px;
}

.auth-split-benefits .bi {
    color: var(--street-yellow);
}

.auth-split-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    width: 100%;
    max-width: 640px;
    padding: 72px 88px;
}

.auth-split-form h1 {
    margin: 0;
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.auth-split-switch {
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid var(--street-border);
    color: var(--street-text-2);
    font-size: 16px;
}

.auth-split-switch a {
    font-weight: 700;
}

/* Generic form layout pieces */
.form-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field-label {
    color: var(--street-ink);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.field-label-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px 16px;
}

.field-label-row a {
    font-size: 14px;
    font-weight: 600;
}

.field-password {
    position: relative;
    display: block;
}

.field-password .field-input {
    padding-right: 84px;
}

.field-password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    min-width: 44px;
    min-height: 40px;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: var(--street-text-2);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transform: translateY(-50%);
}

.field-password-toggle:hover {
    color: var(--street-ink);
}

.check-label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #3a3c40;
    font-size: 15px;
    line-height: 1.5;
    cursor: pointer;
}

/* Sizes and the background are pinned here, so broader input rules (min-height,
   padding, background: #fff) can't stretch the box or repeat the tick. */
.check-input {
    flex: none;
    align-self: flex-start;
    width: 22px;
    height: 22px;
    min-height: 0;
    aspect-ratio: 1;
    margin-top: 2px;
    padding: 0;
    border: 1.5px solid #8a8f96;
    border-radius: 3px;
    background: #fff center / 16px no-repeat;
    appearance: none;
    cursor: pointer;
}

.check-input:checked {
    border-color: var(--street-ink);
    background-color: var(--street-ink);
    background-position: center;
    background-size: 16px;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f4c542'%3E%3Cpath d='M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425z'/%3E%3C/svg%3E");
}

.check-label em {
    color: var(--street-muted);
}

@media (min-width: 768px) and (max-width: 991px) {
    .album-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .auth-split-form {
        padding: 56px 40px;
    }

    .auth-split-pitch {
        right: 32px;
        bottom: 32px;
        left: 32px;
    }

    .side-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 32px;
    }
}

@media (max-width: 767px) {
    .page-header {
        padding: 40px 0 28px;
    }

    .page-header h1 {
        font-size: 40px;
    }

    .page-header-lead {
        font-size: 15px;
    }

    .page-section {
        padding: 28px 0 48px;
    }

    .side-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .side-layout-aside {
        position: static;
    }

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

    .album-card-body strong {
        font-size: 20px;
    }

    .album-view-head h1 {
        font-size: 34px;
    }

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

    .lightbox-top {
        padding: 12px 12px 12px 16px;
    }

    .lightbox-counter {
        padding: 0 8px;
    }

    .lightbox-stage {
        position: relative;
        padding: 0;
    }

    .lightbox-arrow {
        position: absolute;
        top: 50%;
        z-index: 1;
        width: 44px;
        height: 44px;
        transform: translateY(-50%);
    }

    .lightbox-arrow:not(.is-next) {
        left: 8px;
    }

    .lightbox-arrow.is-next {
        right: 8px;
    }

    .lightbox-thumbs {
        display: none;
    }

    .faq-categories {
        flex-direction: row;
        gap: 8px;
        margin: 0 -20px;
        padding: 0 20px 4px;
        overflow-x: auto;
        border-top: 0;
        scrollbar-width: none;
    }

    .faq-categories button {
        flex: none;
        min-height: 44px;
        padding: 8px 14px;
        border: 1.5px solid var(--street-input-border);
        border-radius: 999px;
        font-size: 14px;
        white-space: nowrap;
    }

    .faq-categories button.is-active {
        border-color: var(--street-ink);
        background: var(--street-ink);
        color: #fff;
        box-shadow: none;
    }

    .faq-contact-box {
        display: none;
    }

    .faq-list-title {
        font-size: 24px;
    }

    .faq-row-button {
        font-size: 17px;
    }

    .regulamin-page .side-layout-aside {
        display: none;
    }

    .document-text {
        font-size: 16px;
    }

    .auth-split {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .auth-split-photo {
        display: none;
    }

    .auth-split-form {
        max-width: none;
        padding: 40px 20px 56px;
    }

    .auth-split-form h1 {
        font-size: 34px;
    }

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

/* ---- Account pages (panel, garage, submission form, settings) ---- */
.page.account-page {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: calc(1184px + 2 * 48px);
    padding: 48px 48px 72px;
}

.account-page h1,
.account-page h2,
.account-page h3 {
    margin: 0;
}

.account-page > .form-error,
.account-page > .form-success {
    margin: 0;
}

.account-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px 40px;
}

.account-head-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-head-title h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.account-head-title .section-lead {
    max-width: 620px;
    margin-top: 6px;
}

.account-head-title .back-link {
    min-height: 0;
}

.account-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.account-section-title {
    padding-top: 8px;
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
}

.account-empty {
    margin: 0;
    color: var(--street-text-2);
}

.account-skeleton {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.account-skeleton .skeleton {
    height: 180px;
}

/* Text actions ("Edytuj dane · Zmień zdjęcia · Wycofaj"). */
.text-action {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 32px;
    padding: 0;
    border: 0;
    border-bottom: 2px solid currentColor;
    background: none;
    color: var(--street-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
}

.text-action .bi {
    font-size: 15px;
}

.text-action:hover:not(:disabled) {
    color: var(--street-link);
}

.text-action.is-danger {
    color: var(--street-danger);
}

.text-action:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.text-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

.unread-badge {
    display: inline-block;
    margin-left: 12px;
    padding: 3px 8px;
    border-radius: 2px;
    background: var(--street-yellow);
    color: var(--street-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
    vertical-align: middle;
}

/* Licence plate */
.plate {
    display: inline-flex;
    flex: none;
    overflow: hidden;
    border: 2px solid var(--street-ink);
    border-radius: 3px;
    background: #fff;
    color: var(--street-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.plate-eu {
    display: flex;
    align-items: flex-end;
    padding: 0 4px 2px;
    background: var(--street-plate-eu);
    color: #fff;
    font-size: 10px;
}

.plate-number {
    padding: 2px 8px;
    letter-spacing: 0.06em;
}

.plate-sm {
    font-size: 13px;
}

.plate-sm .plate-eu {
    padding: 0 3px 2px;
    font-size: 9px;
}

.plate-sm .plate-number {
    padding: 1px 6px;
}

.plate-xl {
    border-width: 3px;
    border-radius: 4px;
    font-size: 30px;
}

.plate-xl .plate-eu {
    padding: 0 6px 4px;
    font-size: 13px;
}

.plate-xl .plate-number {
    padding: 2px 14px;
}

/* E-mail verification banner */
.verify-banner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 20px;
    padding: 16px 20px;
    border: 1px solid var(--street-yellow);
    border-radius: 4px;
    background: var(--street-yellow-tint);
    font-size: 16px;
}

.verify-banner-text {
    display: flex;
    gap: 10px;
    align-items: center;
}

.verify-banner-text .bi {
    color: var(--street-link);
    font-size: 20px;
}

/* Current edition */
.panel-event-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border-radius: 4px;
    background: var(--street-ink);
    color: #fff;
}

.panel-event-main,
.panel-event-status {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 32px;
}

.panel-event-main {
    border-right: 1px solid var(--street-dark-line);
}

.panel-event-main .eyebrow {
    font-size: 14px;
}

.panel-event-main h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.panel-event-main p:last-child {
    margin: 0;
    color: var(--street-on-dark);
    font-size: 16px;
    line-height: 1.5;
}

.panel-event-status {
    justify-content: center;
    gap: 14px;
}

.panel-event-status p {
    margin: 0;
}

.panel-event-state {
    display: flex;
    gap: 10px;
    align-items: baseline;
    font-size: 17px;
}

.status-dot {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--street-success-dot);
}

.status-dot.is-closed {
    background: var(--street-danger);
}

.panel-event-limit {
    color: var(--street-on-dark);
    font-size: 15px;
}

.panel-event-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.panel-event-links {
    color: var(--street-on-dark);
    font-size: 14px;
}

.panel-event-links a {
    color: var(--street-on-dark);
}

.panel-event-links a:hover {
    color: var(--street-yellow);
}

.panel-event-info {
    grid-column: 1 / -1;
    padding: 24px 32px;
    border-top: 1px solid var(--street-dark-line);
}

.panel-event-info h3 {
    margin-bottom: 8px;
    color: var(--street-yellow);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.panel-event-info p {
    margin: 0;
    color: var(--street-on-dark);
    white-space: pre-line;
}

/* Messages */
.panel-messages {
    padding: 24px 28px;
    border-radius: 4px;
    background: #fff;
}

.panel-section-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
}

.panel-section-heading h2 {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.panel-messages ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.panel-messages li {
    border-top: 1px solid var(--street-border);
}

.panel-messages li.is-unread {
    box-shadow: inset 3px 0 0 var(--street-yellow);
}

.account-page .panel-message-toggle {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 4px 16px;
    width: 100%;
    padding: 14px 0 14px 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--street-text-2);
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    text-align: left;
    white-space: normal;
    cursor: pointer;
}

.account-page .panel-message-toggle:hover {
    background: var(--street-surface);
}

.panel-messages li.is-unread .panel-message-toggle {
    color: var(--street-ink);
    font-weight: 700;
}

.panel-message-date {
    color: var(--street-muted);
    font-size: 14px;
    font-weight: 400;
}

.panel-message-body {
    margin: 0;
    padding: 0 14px 16px;
    white-space: pre-line;
}

/* Submission cards (participant) */
.account-page .submission-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.account-page .submission-card {
    display: block;
    overflow: hidden;
    /* clip, not hidden: keeps the sticky photo column working */
    overflow: clip;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #fff;
    box-shadow: none;
}

.account-page .submission-card.has-photo {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
}

.account-page .submission-card-photo {
    position: sticky;
    top: calc(var(--navbar-height, 72px) + 16px);
    display: block;
    align-self: start;
    width: 200px;
    padding: 0;
    border: 0;
    background: var(--street-surface);
    cursor: zoom-in;
}

.submission-card-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.submission-card-photo-count {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 2px 8px;
    border-radius: 2px;
    background: rgba(23, 23, 23, 0.75);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.payment-pending {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    color: var(--street-text-2);
    font-size: 15px;
}

.submission-card-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    padding: 24px 28px;
}

.submission-card.is-compact .submission-card-body,
.submission-card.is-archived .submission-card-body {
    gap: 14px;
    padding: 20px 28px;
}

.submission-card-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 16px;
}

.submission-card-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.submission-card-title h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.submission-card.is-compact .submission-card-title h3,
.submission-card.is-archived .submission-card-title h3 {
    font-size: 20px;
}

.status-edition {
    background: var(--street-ink);
    color: #fff;
}

.submission-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.submission-timeline li {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.submission-timeline-bar {
    height: 4px;
    background: var(--street-border);
}

.submission-timeline-label {
    display: flex;
    gap: 6px;
    align-items: center;
    color: var(--street-muted);
    font-size: 14px;
    font-weight: 600;
}

.submission-timeline .is-done .submission-timeline-bar {
    background: var(--street-ink);
}

.submission-timeline .is-done .submission-timeline-label {
    color: var(--street-ink);
    font-weight: 700;
}

.submission-timeline .is-current .submission-timeline-bar {
    background: var(--street-yellow);
}

.submission-timeline .is-current .submission-timeline-label {
    color: var(--street-link);
    font-weight: 700;
}

.submission-timeline .is-failed .submission-timeline-bar {
    background: var(--street-danger);
}

.submission-timeline .is-failed .submission-timeline-label {
    color: var(--street-danger);
    font-weight: 700;
}

.submission-next-step {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.payment-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border-radius: 4px;
    background: var(--street-surface);
}

.payment-box h3 {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

.payment-box .status-badge {
    padding: 3px 8px;
    font-size: 12px;
}

.payment-box p {
    margin: 0;
}

.payment-deadline {
    color: var(--street-text-2);
    font-size: 15px;
}

.payment-details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.copy-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 12px;
    border-radius: 3px;
    background: #fff;
}

.copy-field dt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    color: var(--street-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.copy-field dd {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.copy-field-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -8px -8px -8px 0;
    border: 0;
    border-radius: 3px;
    background: none;
    color: var(--street-muted);
    cursor: pointer;
}

.copy-field-button:hover {
    background: var(--street-surface);
    color: var(--street-ink);
}

.payment-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.payment-actions .payment-hint {
    flex-basis: 100%;
    color: var(--street-muted);
    font-size: 13px;
}

.file-button {
    position: relative;
    font-size: 14px;
}

.file-button:focus-within {
    outline: 3px solid var(--street-yellow);
    outline-offset: 3px;
}

.file-button.is-busy {
    opacity: 0.65;
    pointer-events: none;
}

.payment-proof-link {
    font-size: 15px;
}

.submission-thread-toggle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.submission-thread-toggle .unread-badge {
    margin-left: 0;
}

.account-page .submission-details {
    margin: 0;
    padding: 0;
    border: 0;
}

.submission-details summary,
.panel-archive summary {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--street-text-2);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
}

.submission-details summary::-webkit-details-marker,
.panel-archive summary::-webkit-details-marker {
    display: none;
}

.submission-details summary::before {
    font-family: "bootstrap-icons";
    content: "\f285";
    transition: transform 160ms ease;
}

.submission-details[open] summary::before {
    transform: rotate(90deg);
}

.submission-details[open] summary {
    margin-bottom: 14px;
}

.submission-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 0 0 12px;
}

.submission-meta dt {
    color: var(--street-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.submission-meta dd {
    margin: 2px 0 0;
}

.submission-footer-actions {
    padding-top: 16px;
    border-top: 1px solid var(--street-border);
}

.panel-archive {
    padding-top: 16px;
    border-top: 1px solid var(--street-input-border);
}

.panel-archive summary {
    color: var(--street-text-2);
    font-size: 16px;
}

.panel-archive summary .bi {
    transition: transform 160ms ease;
}

.panel-archive[open] summary .bi {
    transform: rotate(90deg);
}

.panel-archive[open] summary {
    margin-bottom: 20px;
}

/* Forms inside account cards (edit submission, garage, settings) */
.account-page .auth-form > label,
.account-page .auth-form label:not(.consent-label):not(.admin-checkbox-label) {
    color: var(--street-ink);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.account-page .auth-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.account-page .auth-form select,
.account-page .auth-form textarea,
.account-page .account-card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1.5px solid var(--street-input-border);
    border-radius: 4px;
    background: #fff;
    color: var(--street-ink);
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
}

.account-page .auth-form textarea {
    padding: 14px 16px;
    line-height: 1.5;
}

.account-page .auth-form input:focus,
.account-page .auth-form select:focus,
.account-page .auth-form textarea:focus,
.account-page .account-card input:focus {
    border: 2px solid var(--street-ink);
    outline: none;
    box-shadow: 0 0 0 4px rgba(244, 197, 66, 0.45);
}

.account-card-form,
.account-page .account-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    border: 0;
    border-radius: 4px;
    background: #fff;
    box-shadow: none;
}

.account-card-form h2,
.account-page .account-card h2 {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.account-page .account-settings-grid {
    gap: 20px;
}

/* ---- Garage ---- */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vehicle-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 4px;
    background: #fff;
}

.vehicle-card.is-editing {
    grid-column: span 2;
}

.vehicle-mosaic {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 100px 100px;
    gap: 3px;
}

.account-page .vehicle-mosaic button,
.account-page .vehicle-photo-single {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--street-surface);
    cursor: zoom-in;
}

.vehicle-mosaic button:first-child {
    grid-row: 1 / 3;
}

.vehicle-mosaic img,
.vehicle-photo-single img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-photo-single {
    height: 203px;
}

.vehicle-mosaic-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 17, 17, 0.6);
    color: #fff;
    font-weight: 700;
}

.vehicle-photo-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 203px;
    background: var(--street-surface);
    color: var(--street-muted);
    font-size: 14px;
}

.vehicle-photo-empty .bi {
    font-size: 28px;
}

.vehicle-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.vehicle-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.vehicle-card-head h2 {
    min-width: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
}

.vehicle-card-text {
    margin: 0;
    color: var(--street-text-2);
    font-size: 15px;
    line-height: 1.5;
}

.vehicle-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: auto;
}

.vehicle-card-actions .btn-street {
    flex: 1;
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
}

.vehicle-submitted {
    border-color: var(--street-input-border);
    color: var(--street-muted);
    cursor: default;
}

.vehicle-icon-button {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--street-input-border);
    border-radius: 4px;
    background: #fff;
    color: var(--street-ink);
    cursor: pointer;
    transition: border-color 160ms ease;
}

.vehicle-icon-button:hover {
    border-color: var(--street-ink);
}

.vehicle-icon-button.is-danger {
    color: var(--street-danger);
}

.vehicle-icon-button.is-danger:hover {
    border-color: var(--street-danger);
}

.account-page .vehicle-add-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    /* Stretches to the car cards in its row; the floor is for a tile alone in a row. */
    min-height: 200px;
    padding: 20px;
    border: 2px dashed var(--street-input-border);
    border-radius: 4px;
    background: transparent;
    color: var(--street-text-2);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    white-space: normal;
    cursor: pointer;
}

.account-page .vehicle-add-tile:hover {
    border-color: var(--street-ink);
    background: transparent;
    color: var(--street-ink);
}

.vehicle-add-tile .bi {
    font-size: 36px;
}

.vehicle-add-title {
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
}

.vehicle-skeleton {
    height: 380px;
}

.empty-state {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 32px;
    border-radius: 4px;
    background: #fff;
}

.empty-state-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 4px;
    background: var(--street-yellow-tint);
    color: var(--street-ink);
    font-size: 40px;
}

.empty-state-text h2 {
    margin: 0 0 4px;
    color: var(--street-ink);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.empty-state-text p {
    margin: 0;
    color: var(--street-text-2);
    font-size: 16px;
}

@media (max-width: 767px) {
    .empty-state {
        grid-template-columns: auto 1fr;
        gap: 16px;
        padding: 24px 20px;
    }

    .empty-state-icon {
        width: 56px;
        height: 56px;
        font-size: 30px;
    }

    .empty-state-action {
        grid-column: 1 / -1;
    }

    .empty-state-action .btn-street {
        width: 100%;
    }
}

/* ---- Submission form ---- */
.submission-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
}

.submission-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.submission-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    margin: 0;
    padding: 28px;
    border: 0;
    border-radius: 4px;
    background: #fff;
}

/* Floated legend = laid out inside the card like a normal heading. */
.form-card-title {
    display: flex;
    float: left;
    gap: 12px;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.form-card-aside {
    align-self: flex-end;
    margin: -44px 0 0;
    color: var(--street-muted);
    font-size: 14px;
}

.form-card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 3px;
    background: var(--street-ink);
    color: var(--street-yellow);
    font-size: 16px;
}

.form-card-hint {
    margin: 0;
    color: var(--street-text-2);
    font-size: 15px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.field-select {
    appearance: none;
    padding-right: 44px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23171717'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") right 16px center / 14px no-repeat;
}

textarea.field-input,
.field-textarea {
    height: auto;
    min-height: 96px;
    padding: 14px 16px;
    line-height: 1.5;
    resize: vertical;
}

.photo-slots {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.photo-slot {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
}

.photo-slot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-slot.is-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    border: 2px dashed var(--street-input-border);
    color: var(--street-text-2);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.photo-slot.is-drop .bi {
    font-size: 24px;
}

.photo-slot.is-drop:hover,
.photo-slot.is-drop.is-dragging {
    border-color: var(--street-ink);
    background: var(--street-yellow-tint);
    color: var(--street-ink);
}

.photo-slot.is-drop:focus-within {
    outline: 3px solid var(--street-yellow);
    outline-offset: 3px;
}

.photo-slot.is-empty {
    border: 1.5px solid var(--street-neutral-bg);
    background: #fafbfb;
}

.account-page .photo-slot-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: rgba(17, 17, 17, 0.75);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.photo-progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.photo-progress p {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
    margin: 0;
    color: var(--street-text-2);
    font-size: 14px;
}

.progress-bar {
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--street-neutral-bg);
}

.progress-bar span {
    display: block;
    max-width: 100%;
    height: 100%;
    background: var(--street-ink);
}

.progress-bar.is-dark {
    margin-top: 6px;
    background: #333;
}

.progress-bar.is-dark span {
    background: var(--street-yellow);
}

.submission-form-submit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.submission-form-submit .btn-street {
    min-height: 56px;
    padding: 0 34px;
    font-size: 16px;
}

.submission-form-submit .btn-street:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.submission-form-submit p {
    margin: 0;
    color: var(--street-muted);
    font-size: 14px;
}

.submission-aside {
    position: sticky;
    top: calc(var(--navbar-height, 72px) + 24px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 84px;
    padding: 28px;
    border-radius: 4px;
    background: var(--street-ink);
    color: #fff;
}

.submission-aside p {
    margin: 0;
}

.submission-aside .eyebrow {
    font-size: 13px;
}

.submission-aside-count {
    margin-top: 6px !important;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
}

.submission-aside-count span {
    color: var(--street-on-dark-3);
    font-size: 20px;
}

.submission-aside-note {
    color: var(--street-on-dark);
    font-size: 14px;
}

.submission-aside-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid #333;
}

.submission-aside-title {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.submission-aside-steps ol {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: aside-step;
}

.submission-aside-steps li {
    display: flex;
    gap: 12px;
    color: var(--street-on-dark);
    font-size: 14px;
    line-height: 1.45;
    counter-increment: aside-step;
}

.submission-aside-steps li::before {
    color: var(--street-yellow);
    font-weight: 700;
    content: counter(aside-step, decimal-leading-zero);
}

.submission-success {
    border: 0;
}

/* ---- Entry pass ---- */
.pass-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(17, 17, 17, 0.7);
}

.pass-mobile-bar {
    display: none;
}

.entry-pass {
    display: flex;
    flex-direction: column;
    width: min(100%, 420px);
    max-height: calc(100vh - 48px);
    max-height: calc(100svh - 48px);
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.entry-pass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    padding: 16px 24px;
    background: var(--street-yellow);
}

.entry-pass-header p {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.entry-pass-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
}

.entry-pass-logo {
    width: 64px;
}

.entry-pass-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 20px 24px;
    border-bottom: 3px dashed var(--street-border);
    text-align: center;
}

.entry-pass-qr {
    width: 200px;
    max-width: 100%;
    border: 2px solid var(--street-ink);
    border-radius: 4px;
}

.entry-pass-owner {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.entry-pass-code-mobile {
    display: none;
}

.entry-pass-footer {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 12px;
    padding: 16px 24px;
}

.entry-pass-footer p {
    margin: 0;
}

.entry-pass-hint {
    color: var(--street-text-2);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.entry-pass-hint strong {
    color: var(--street-ink);
    font-family: ui-monospace, monospace;
    font-size: 18px;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.entry-pass-actions {
    display: flex;
    gap: 10px;
}

.entry-pass-actions .btn-street {
    flex: 1;
    min-height: 50px;
}

.entry-pass-downloads {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
}

@media print {
    body * {
        visibility: hidden;
    }

    .entry-pass,
    .entry-pass * {
        visibility: visible;
    }

    .pass-backdrop {
        position: absolute;
        background: none;
    }

    .entry-pass {
        box-shadow: none;
    }

    .entry-pass-actions,
    .entry-pass-downloads,
    .pass-mobile-bar {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .vehicle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .submission-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .submission-aside {
        position: static;
        margin-top: 0;
    }

    .payment-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .page.account-page {
        gap: 20px;
        padding: 28px 20px 48px;
    }

    .account-head-title h1 {
        font-size: 34px;
    }

    .account-head-actions .btn-street {
        flex: 1;
    }

    .account-section-title {
        font-size: 20px;
    }

    .panel-event-card {
        grid-template-columns: 1fr;
    }

    .panel-event-main {
        border-right: 0;
        border-bottom: 1px solid var(--street-dark-line);
    }

    .panel-event-main,
    .panel-event-status {
        padding: 24px 20px;
    }

    .panel-event-main h2 {
        font-size: 28px;
    }

    .panel-messages {
        padding: 20px;
    }

    .account-page .submission-card.has-photo {
        grid-template-columns: 1fr;
    }

    .account-page .submission-card-photo {
        position: relative;
        top: auto;
        width: 100%;
    }

    .submission-card-photo img {
        aspect-ratio: 16 / 9;
    }

    .submission-card-body,
    .submission-card.is-compact .submission-card-body,
    .submission-card.is-archived .submission-card-body {
        padding: 20px;
    }

    .submission-card-title h3 {
        font-size: 20px;
    }

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

    .payment-details,
    .submission-meta {
        grid-template-columns: 1fr;
    }

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

    .vehicle-card.is-editing {
        grid-column: auto;
    }

    .account-page .vehicle-add-tile {
        min-height: 160px;
    }

    .submission-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .submission-aside {
        position: static;
        margin-top: 0;
    }

    .form-card {
        padding: 20px;
    }

    .form-card-aside {
        margin: -8px 0 0;
    }

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

    .photo-slots {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .submission-form-submit .btn-street {
        width: 100%;
    }

    .pass-backdrop {
        justify-content: flex-start;
        padding: 0;
        background: var(--street-ink);
    }

    .pass-mobile-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 8px 12px 0 8px;
        color: #fff;
    }

    .pass-mobile-bar span {
        color: var(--street-on-dark-3);
        font-size: 13px;
    }

    .page .pass-mobile-back {
        display: inline-flex;
        gap: 6px;
        align-items: center;
        min-height: 44px;
        padding: 0 8px;
        border: 0;
        background: none;
        color: #fff;
        font-size: 15px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .entry-pass {
        flex: 1;
        min-height: 0;
        max-height: none;
        width: calc(100% - 32px);
        margin: 8px 16px 0;
        border-radius: 8px;
        box-shadow: none;
    }

    .entry-pass-logo {
        display: none;
    }

    .entry-pass-main {
        flex: 1;
        justify-content: center;
        gap: 18px;
        padding: 20px;
        border-bottom: 0;
    }

    .entry-pass-qr {
        width: 280px;
    }

    .entry-pass-main .plate-xl {
        font-size: 32px;
    }

    .entry-pass-code-mobile {
        display: block;
        margin: 0;
        color: var(--street-ink);
        font-family: ui-monospace, monospace;
        font-size: 18px;
        letter-spacing: 0.08em;
    }

    .entry-pass-hint,
    .entry-pass-close {
        display: none !important;
    }

    .entry-pass-footer {
        padding: 0 20px 20px;
    }

    .entry-pass-actions .btn-street-dark {
        border-color: var(--street-yellow);
        background: var(--street-yellow);
        color: var(--street-ink);
    }
}

@media (max-width: 768px) {
    .admin-stats-grid,
    .admin-filters,
    .user-filters {
        grid-template-columns: 1fr;
    }

    .submission-summary {
        align-items: flex-start;
        flex-direction: column;
    }
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--street-yellow);
    outline-offset: 3px;
}

button[aria-busy="true"] {
    opacity: 0.65;
    pointer-events: none;
}

/* ---- iPhone / Safari ---- */
.mobile-menu,
.lightbox {
    overscroll-behavior: contain;
}

/* Safari zooms the page into any field under 16px; desktop keeps the smaller size. */
@media (max-width: 991px) {
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Notch and Home bar (viewport-fit=cover in index.html). */
@media (display-mode: standalone) {
    #navbar {
        padding-top: env(safe-area-inset-top);
        background: var(--street-ink);
    }
}

.mobile-menu-bottom {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}

.gate {
    padding-bottom: env(safe-area-inset-bottom);
}

.lightbox-top,
.lightbox-stage {
    padding-left: max(28px, env(safe-area-inset-left));
    padding-right: max(28px, env(safe-area-inset-right));
}

/* iOS shows an empty date field without the "dd.mm.rrrr" hint and makes it lower
   than other fields. */
@supports (-webkit-touch-callout: none) {
    input[type="date"] {
        min-height: 52px;
        -webkit-appearance: none;
        appearance: none;
    }
}

.field-hint {
    margin: 4px 0 0;
    color: #68707a;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}
