﻿/* Portal Partnera Maxfliz: brandbook 2026, wariant C, kolorystyka zatwierdzona przez klienta 03.11.2026 (czarny panel, akcent bordo). */

/* ---------- Fonty (brandbook: Jost zamiast Futura PT, Playfair Display zamiast Orpheus Pro) ---------- */
@font-face {
    font-family: 'Jost';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/jost-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Jost';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/jost-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/playfair-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/playfair-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Kolory i kroje (jedno miejsce na zmianę kolorystyki) ---------- */
:root {
    --mx-black: #000;
    --mx-white: #fff;
    --mx-beige: #d7bca4;
    --mx-burgundy: #760039;
    --mx-green: #124340;
    --mx-brown: #8c6a51;
    --mx-red: #ee3348;
    --mx-bg: #fbf9f9;
    --mx-line: #ddddde;
    --mx-muted: #666;
    --mx-accent: var(--mx-burgundy);
    --mx-accent-dark: #5a002c;
    --mx-sans: 'Jost', system-ui, sans-serif;
    --mx-serif: 'Playfair Display', Georgia, serif;
}

/* ---------- Podstawa ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
    font-family: var(--mx-sans);
    font-size: 16px;
    line-height: 1.4;
    color: var(--mx-black);
    background: var(--mx-white);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
.serif { font-family: var(--mx-serif); font-style: italic; font-weight: 400; }
.is-disabled { cursor: default; opacity: .6; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Formularze ---------- */
.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.field input {
    display: block;
    width: 100%;
    height: 48px;
    margin-bottom: 22px;
    padding: 0 16px;
    font-size: 15px;
    background: var(--mx-white);
    border: 1px solid var(--mx-line);
    border-radius: 0;
}
.field input:focus, .btn:focus-visible { outline: 2px solid var(--mx-black); outline-offset: 1px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 28px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    border: 0;
    border-radius: 40px;
    cursor: pointer;
}
.btn-primary { background: var(--mx-accent); color: var(--mx-white); }
.btn-primary:hover { background: var(--mx-accent-dark); }
.btn-block { display: flex; width: 100%; }
.alert {
    margin: 0 0 22px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--mx-red);
    background: #fdeef0;
    border-left: 3px solid var(--mx-red);
}

/* ---------- Logowanie (_AuthLayout) ---------- */
.auth { display: flex; min-height: 100vh; }
.auth-panel {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    text-align: center;
    color: var(--mx-white);
    background: var(--mx-black);
}
.auth-panel .logo { width: 400px; max-width: 80%; filter: invert(1); }
.auth-title { margin: 64px 0 0; font-size: 42px; line-height: 1.2; color: var(--mx-beige); }
.auth-tagline { margin: 14px 0 0; font-size: 19px; opacity: .85; }
.auth-www { position: absolute; bottom: 36px; left: 48px; font-size: 13px; letter-spacing: .12em; opacity: .7; }
.auth-main {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px 104px;
    background: var(--mx-bg);
}
.auth-form { width: 100%; max-width: 400px; }
.auth-form h1 { margin: 0 0 8px; font-size: 38px; font-weight: 500; line-height: 1.15; }
.auth-hint { margin: 0 0 36px; font-size: 15px; color: var(--mx-muted); }
.auth-forgot { margin: 20px 0 0; font-size: 14px; color: var(--mx-accent); }
.auth-foot { position: absolute; bottom: 36px; left: 24px; right: 24px; text-align: center; font-size: 13px; color: #888; }

/* ---------- Zgłoś lead, umowa (C3b) ---------- */
.side-cta { align-self: flex-start; padding: 12px 22px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mx-black); text-decoration: none; background: var(--mx-beige); border-radius: 40px; }
.side-cta:hover, .side-cta.is-active { background: var(--mx-white); }
.page-head .btn { flex: none; }
.lead-form { display: flex; flex-direction: column; gap: 24px; max-width: 980px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.form-grid .field-wide, .form-grid .form-hint { grid-column: 1 / -1; }
/* Imię always starts the row under „Typ klienta” (Nazwa firmy, shown for B2B only, sits next to the type). */
.form-grid .field-row-start { grid-column: 1; }
.field select, .field textarea { display: block; width: 100%; margin-bottom: 22px; padding: 10px 16px; font: inherit; font-size: 15px; background: var(--mx-white); border: 1px solid var(--mx-line); border-radius: 0; }
.field select { height: 48px; }
.field input[type="file"] { height: auto; padding: 12px 16px; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--mx-red); }
.field-error { margin: -14px 0 18px; font-size: 13px; color: var(--mx-red); }
.form-hint { margin: -8px 0 18px; font-size: 13px; color: var(--mx-muted); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--mx-burgundy); }
.consent.has-error span { color: var(--mx-red); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 24px; padding: 16px 20px; background: var(--mx-white); border-left: 3px solid var(--mx-green); }
.banner a { color: var(--mx-burgundy); }
.banner-warn { flex-basis: 100%; color: var(--mx-red); }
.agreement { max-width: 760px; }

@media (max-width: 767.98px) {
    .auth { flex-direction: column; }
    .auth-panel { flex: none; padding: 28px 20px 24px; }
    .auth-panel .logo { width: 220px; }
    .auth-title { margin-top: 14px; font-size: 24px; }
    .auth-tagline, .auth-www { display: none; }
    .auth-main { flex: 1; justify-content: flex-start; padding: 32px 20px 96px; }
    .auth-form h1 { font-size: 30px; }
    .auth-hint { margin-bottom: 28px; }
}

/* ---------- Portal (_Layout): boczny panel ---------- */
.shell { display: flex; min-height: 100vh; }
.side {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    gap: 56px;
    padding: 36px 28px;
    color: var(--mx-white);
    background: var(--mx-black);
}
.side-logo img { width: 160px; filter: invert(1); }
.sidenav { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.sidenav a, .sidenav span { padding: 10px 12px; color: #e6e6e6; text-decoration: none; border-left: 3px solid transparent; }
.sidenav a:hover { color: var(--mx-white); }
.sidenav .is-active { font-weight: 600; color: var(--mx-beige); border-left-color: var(--mx-beige); }
.sidenav .is-disabled { opacity: .55; }
.shell-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--mx-bg); }
.shell-main .page { flex: 1; }
.topuser { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 28px 56px 0; font-size: 15px; }
.topuser form { margin: 0 0 0 16px; }
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    background: var(--mx-beige);
}
.link-button { padding: 0; font-size: 14px; color: var(--mx-accent); background: none; border: 0; cursor: pointer; }
.link-button:hover { text-decoration: underline; }

/* ---------- Portal: treść ---------- */
.page { padding: 24px 56px 48px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.page-title { margin: 0; font-size: 40px; font-weight: 500; line-height: 1; }
.page-subtitle { margin: 10px 0 0; font-size: 19px; color: var(--mx-accent); }
.search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 380px;
    height: 44px;
    padding: 0 6px 0 16px;
    color: #999;
    background: var(--mx-white);
    border: 1px solid var(--mx-line);
}
.search input { flex: 1; min-width: 0; height: 100%; font-size: 14px; color: var(--mx-black); border: 0; outline: 0; background: transparent; }
.search:focus-within { outline: 2px solid var(--mx-black); outline-offset: 1px; }
.search button {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mx-white);
    background: var(--mx-accent);
    border: 0;
    border-radius: 40px;
    cursor: pointer;
}

/* ---------- Listy, zakładki, podglądy (C3) ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.select { height: 44px; padding: 0 12px; font: inherit; font-size: 14px; background: var(--mx-white); border: 1px solid var(--mx-line); }
.btn-small { height: 44px; padding: 0 24px; }
.tabs { display: flex; gap: 28px; margin-bottom: 24px; border-bottom: 1px solid var(--mx-line); }
.tabs a { padding: 10px 0; font-size: 16px; color: var(--mx-muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--mx-black); }
.tabs .is-active { font-weight: 600; color: var(--mx-black); border-bottom-color: var(--mx-burgundy); }
.tabs-count { font-weight: 400; color: var(--mx-muted); }
.list { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--mx-white); }
.list th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mx-white);
    background: var(--mx-black);
}
.list td { height: 50px; padding: 0 16px; border-bottom: 1px solid var(--mx-line); overflow-wrap: anywhere; }
.list .list-main { font-weight: 500; }
.list .list-main a { color: var(--mx-black); }
.list .list-date { white-space: nowrap; color: #555; }
.list .list-muted { color: var(--mx-muted); }
.list .num, .list th.num { text-align: right; white-space: nowrap; }
.pill { display: inline-block; padding: 3px 12px; border-radius: 2px; font-size: 12px; letter-spacing: .03em; white-space: nowrap; }
.pill-wait { color: #3d3d3d; background: #ececec; }
.pill-ok { color: var(--mx-white); background: var(--mx-green); }
.pill-bad { color: var(--mx-white); background: var(--mx-red); }
.pill-acc { color: var(--mx-white); background: var(--mx-accent); }
.pill-off { color: var(--mx-muted); background: transparent; border: 1px solid var(--mx-line); }
.list .num.neg, .list .list-date.neg { color: var(--mx-red); }
.list-reason { margin-top: 4px; font-size: 12px; color: var(--mx-muted); }
.tile-static:hover { border-color: var(--mx-line); }
.tile-hero { color: var(--mx-white); background: var(--mx-black); border-color: var(--mx-black); }
.tile-hero .tile-label, .tile-hero .tile-note { color: #c9c9c9; }
.tile-note { font-size: 14px; color: var(--mx-muted); }
.back { display: inline-block; margin-bottom: 16px; font-size: 14px; color: var(--mx-burgundy); text-decoration: none; }
.back:hover { text-decoration: underline; }
.detail-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.detail-head + .page-subtitle { margin-bottom: 28px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.card { display: flex; flex-direction: column; gap: 16px; padding: 24px 28px; background: var(--mx-white); border: 1px solid var(--mx-line); }
.card h2, .section-head h2 { margin: 0; font-size: 22px; font-weight: 500; }
.card-label { margin: 8px 0 0; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--mx-muted); }
.facts { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; margin: 0; font-size: 15px; }
.facts dt { color: var(--mx-muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.pre { white-space: pre-line; }
.files { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.files li { display: flex; align-items: center; gap: 12px; }
.ext { min-width: 44px; padding: 2px 6px; font-size: 11px; font-weight: 600; text-align: center; color: var(--mx-white); background: var(--mx-brown); }
.muted { color: var(--mx-muted); }
.link { color: var(--mx-burgundy); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 14px; }
.offers { margin-top: 28px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; margin-bottom: 32px; }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 24px 28px; color: var(--mx-black); text-decoration: none; background: var(--mx-white); border: 1px solid var(--mx-line); }
.tile:hover { border-color: var(--mx-black); }
.tile-label { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--mx-muted); }
.tile-big { font-size: 44px; font-weight: 500; line-height: 1; }
.list-hint { margin: 0 0 10px; font-size: 13px; }
.lang-switch { display: flex; gap: 8px; }
.lang-switch button { padding: 8px 18px; font-size: 14px; color: var(--mx-black); background: var(--mx-white); border: 1px solid var(--mx-line); border-radius: 40px; cursor: pointer; }
.lang-switch .is-active { color: var(--mx-white); background: var(--mx-burgundy); border-color: var(--mx-burgundy); }
.lang-inline { display: inline; }
.lang-inline .link-button { font-size: inherit; color: inherit; }
.sitefoot { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 20px 56px; font-size: 13px; color: var(--mx-muted); border-top: 1px solid var(--mx-line); }
.sitefoot-mock { color: var(--mx-burgundy); font-weight: 600; }
.empty { padding: 32px 16px; color: var(--mx-muted); background: var(--mx-white); }
.notice { padding: 20px 24px; color: var(--mx-red); background: #fdeef0; border-left: 3px solid var(--mx-red); }
.notice p { margin: 0; }
.notice .notice-title { margin-bottom: 4px; font-weight: 600; }

.list-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; }
.conn { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: #555; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #2e8b57; }
.conn-off .dot { background: var(--mx-red); }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 14px; }
.pager a { text-decoration: none; }
.pager a:hover { text-decoration: underline; }
.pager-count { color: #888; }
.pager-current { font-weight: 600; }
.pager-gap { color: #888; }

@media (max-width: 767.98px) {
    .sitefoot { padding: 16px; }
    .shell { flex-direction: column; }
    .side { flex: none; gap: 12px; padding: 16px 20px 0; }
    .side-logo img { width: 120px; }
    .sidenav { flex-direction: row; gap: 4px; overflow-x: auto; }
    .sidenav a, .sidenav span { padding: 10px 8px; white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; }
    .sidenav .is-active { border-bottom-color: var(--mx-beige); }
    .topuser { gap: 8px; padding: 16px 20px 0; font-size: 14px; }
    .topuser-name { display: none; }
    .page { padding: 16px 20px 40px; }
    .page-head { flex-direction: column; align-items: stretch; }
    .page-title { font-size: 32px; }
    .search { width: 100%; }
    .grid2 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .side-cta { align-self: auto; text-align: center; }
    .facts { grid-template-columns: 1fr; gap: 2px; }
    .facts dd { margin-bottom: 10px; }
    .toolbar .select, .toolbar .btn-small { flex: 1; }
    .list thead { display: none; }
    .list, .list tbody, .list tr, .list td { display: block; width: 100%; }
    .list tr { margin-bottom: 12px; padding: 14px 16px; background: var(--mx-white); border: 1px solid var(--mx-line); }
    .list td { display: flex; gap: 12px; height: auto; padding: 3px 0; border: 0; color: #444; }
    .list td::before { content: attr(data-label); flex: 0 0 110px; font-size: 13px; color: var(--mx-muted); }
    .list .num { text-align: left; }
    .list .list-main { font-size: 16px; font-weight: 600; color: var(--mx-black); }
    .list .is-empty { display: none; }
    .list-foot { flex-direction: column; align-items: flex-start; }
}
