/* =========================================================
   Motogodziny.pl — strona produktu
   Styl: przemysłowy. Grafit, żółty sygnałowy, cyfry licznika.
   ========================================================= */

:root {
    --ink: #15171b;
    --ink-2: #1c1f24;
    --steel: #2a2e35;
    --steel-2: #353a42;
    --line-dark: rgba(255, 255, 255, 0.1);

    --paper: #f4f2ec;
    --concrete: #e7e4dc;
    --line-light: rgba(21, 23, 27, 0.12);

    --yellow: #ffc21a;
    --polenetix: #22d3ee; /* akcent marki Polenetix */
    --yellow-deep: #e5a800;

    --on-dark: #eef0f3;
    --on-dark-muted: #9aa0a9;
    --on-light: #15171b;
    --on-light-muted: #5b5f66;

    --st-green: #22a55a;
    --st-yellow: #f2b705;
    --st-red: #e0412f;
    --st-black: #0b0c0e;

    --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'Barlow', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    --radius: 4px;
    --wrap: 1180px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--on-dark);
    background: var(--ink);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

img,
svg {
    display: block;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

/* Pas ostrzegawczy */
.hazard {
    height: 8px;
    background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--ink) 14px 28px);
}

.hazard-thin {
    height: 5px;
}

/* --- Przyciski --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 50px;
    padding: 0 1.6rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--yellow);
    color: var(--ink);
    box-shadow: 0 4px 0 var(--yellow-deep);
}

.btn-primary:hover {
    background: #ffd04d;
}

.btn-ghost {
    color: var(--on-dark);
    border-color: var(--steel-2);
}

.btn-ghost:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

.btn-dark {
    background: var(--ink);
    color: var(--yellow);
}

.btn-dark:hover {
    background: var(--steel);
}

.btn-block {
    width: 100%;
}

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

/* --- Pasek górny --- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(21, 23, 27, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-dark);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: var(--yellow);
    color: var(--ink);
    border-radius: var(--radius);
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

/* Końcówka domeny w logo */
.brand-name em {
    font-style: normal;
    text-transform: none;
    color: var(--yellow);
}

.menu {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.menu a {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--on-dark-muted);
    transition: color 0.2s;
}

.menu a:hover {
    color: var(--on-dark);
}

.menu a.menu-cta {
    color: var(--ink);
    background: var(--yellow);
    padding: 0.45rem 1rem;
    border-radius: var(--radius);
}

.menu a.menu-cta:hover {
    background: #ffd04d;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--steel-2);
    border-radius: var(--radius);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--on-dark);
    transition: transform 0.2s;
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
}

/* Podpis marki Polenetix */
.brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-by {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--on-dark-muted);
    line-height: 1;
}

.brand-by b,
.maker-brand b {
    color: var(--polenetix);
    font-weight: inherit;
}

.menu a.menu-login {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--on-dark);
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--steel-2);
    border-radius: var(--radius);
}

.menu a.menu-login:hover {
    border-color: var(--on-dark);
}

/* --- HERO --- */
.hero {
    position: relative;
    padding: 5.5rem 0 6rem;
    overflow: hidden;
    background:
        linear-gradient(var(--line-dark) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(90deg, var(--line-dark) 1px, transparent 1px) 0 0 / 48px 48px,
        radial-gradient(ellipse 60% 70% at 80% 40%, rgba(255, 194, 26, 0.12), transparent 70%),
        var(--ink);
}

.hero::after {
    /* wygaszenie siatki ku dołowi */
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 140px;
    background: linear-gradient(transparent, var(--ink));
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--yellow);
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(255, 194, 26, 0.4);
    border-radius: var(--radius);
    margin-bottom: 1.6rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3.2rem, 7vw, 6rem);
    line-height: 0.92;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin-bottom: 1.6rem;
}

.hero h1 span {
    color: var(--yellow);
}

.lead {
    font-size: 1.2rem;
    color: var(--on-dark-muted);
    max-width: 34em;
    margin-bottom: 2.2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.4rem;
}

.hero-points {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.6rem;
    font-size: 0.95rem;
    color: var(--on-dark);
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.hero-points li::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--yellow);
    transform: rotate(45deg);
}

/* Karta licznika w hero */
.meter-card {
    background: linear-gradient(180deg, var(--steel), var(--ink-2));
    border: 1px solid var(--steel-2);
    border-radius: 10px;
    padding: 1.6rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.meter-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.meter-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.03em;
}

.live {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--st-green);
    white-space: nowrap;
}

.live i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--st-green);
    box-shadow: 0 0 0 0 rgba(34, 165, 90, 0.6);
    animation: live 1.6s infinite;
}

@keyframes live {
    70% {
        box-shadow: 0 0 0 8px rgba(34, 165, 90, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 165, 90, 0);
    }
}

/* Licznik bębnowy */
.meter {
    display: flex;
    gap: 5px;
    padding: 10px;
    background: #0a0b0d;
    border-radius: 6px;
    box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.8);
}

.digit {
    position: relative;
    flex: 1;
    height: 1.35em;
    overflow: hidden;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: clamp(2.2rem, 4.2vw, 3.2rem);
    line-height: 1.35;
    text-align: center;
    color: #f4f4f4;
    background: linear-gradient(180deg, #1b1d21 0%, #2b2e34 50%, #1b1d21 100%);
    border-radius: 3px;
}

.digit::after {
    /* cień bębna */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.55));
    pointer-events: none;
}

.digit-tenth {
    color: var(--ink);
    background: linear-gradient(180deg, #d9d9d9 0%, #ffffff 50%, #d9d9d9 100%);
}

.digit-tenth::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.3));
}

.digit-strip {
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.digit-strip.no-anim {
    transition: none;
}

.meter-unit {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0.2rem 1.4rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--on-dark-muted);
    letter-spacing: 0.12em;
}

.source-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    background: var(--ink);
    border: 1px solid var(--steel-2);
    border-radius: 6px;
    margin-bottom: 1.2rem;
}

.source-switch button {
    min-height: 40px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--on-dark-muted);
    background: none;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.source-switch button[aria-selected="true"] {
    background: var(--yellow);
    color: var(--ink);
}

.meter-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.meter-data dt {
    font-size: 0.8rem;
    color: var(--on-dark-muted);
}

.meter-data dd {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
}

#signal-value {
    color: var(--st-green);
}

.gauge {
    position: relative;
    height: 10px;
    background: var(--ink);
    border-radius: 2px;
    overflow: hidden;
}

.gauge-fill {
    height: 100%;
    width: 69.6%;
    background: var(--st-yellow);
    transition: width 0.6s ease, background 0.3s;
}

.gauge-mark {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--ink-2);
}

/* --- SEKCJE --- */
.section {
    padding: 6.5rem 0;
}

.section-dark {
    background: var(--ink);
    color: var(--on-dark);
}

.section-light {
    background: var(--paper);
    color: var(--on-light);
}

.section-yellow {
    background: var(--yellow);
    color: var(--ink);
}

.section-head {
    max-width: 760px;
    margin-bottom: 3.5rem;
}

.kicker {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--yellow);
}

.section-light .kicker {
    color: #9a6f00;
}

.section-yellow .kicker {
    color: var(--ink);
    opacity: 0.7;
}

.section h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.3rem, 4.6vw, 3.6rem);
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

.section-head p {
    font-size: 1.12rem;
}

.section-dark .section-head p {
    color: var(--on-dark-muted);
}

.section-light .section-head p {
    color: var(--on-light-muted);
}

.section-head a {
    color: inherit;
    font-weight: 600;
}

/* --- Maszyny --- */
.machines {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line-light);
    border: 1px solid var(--line-light);
}

.machine {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 2rem 1.8rem 1.8rem;
    background: var(--paper);
    transition: background 0.2s;
}

.machine:hover {
    background: #fff;
}

.machine-no {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--on-light-muted);
    padding: 0.1rem 0.5rem;
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
}

.machine h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    margin-top: 0.4rem;
}

.machine p {
    color: var(--on-light-muted);
    flex: 1;
}

.chip {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius);
}

.machine .chip + .chip {
    margin-top: -0.2rem;
}

.chip-fuel {
    background: var(--ink);
    color: var(--yellow);
}

.chip-elec {
    background: #1f5fd6;
    color: #fff;
}

.machine-cta {
    background: var(--yellow);
    justify-content: center;
}

.machine-cta:hover {
    background: #ffcb3d;
}

.machine-cta p {
    color: var(--ink);
    flex: 0;
    margin-bottom: 0.6rem;
}

/* --- Wykrywanie --- */
.detect {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.detect-card {
    background: var(--ink-2);
    border: 1px solid var(--steel);
    border-radius: 8px;
    padding: 2rem;
}

.detect-card header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.detect-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: var(--radius);
    background: rgba(255, 194, 26, 0.12);
    color: var(--yellow);
}

.detect-card h3 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.detect-card > p {
    color: var(--on-dark-muted);
    margin-bottom: 1.6rem;
}

.trace {
    background: #0e0f12;
    border: 1px solid var(--steel);
    border-radius: 6px;
    padding: 0.8rem 0.8rem 0.6rem;
}

.trace svg {
    width: 100%;
    height: 90px;
}

.trace .th {
    stroke-width: 1.5;
    stroke-dasharray: 5 5;
    vector-effect: non-scaling-stroke;
}

.th-on {
    stroke: var(--st-green);
}

.th-off {
    stroke: var(--st-red);
}

.trace .sig {
    fill: none;
    stroke: var(--yellow);
    stroke-width: 2.5;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
}

.trace.drawn .sig {
    animation: draw 2.2s ease-out forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.trace-legend {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--on-dark-muted);
}

.trace-legend span::before {
    content: '';
    display: inline-block;
    width: 14px;
    border-top: 2px dashed;
    margin-right: 0.4rem;
    vertical-align: middle;
}

.l-on::before {
    color: var(--st-green);
}

.l-off::before {
    color: var(--st-red);
}

.specs {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--steel);
}

.specs li {
    padding: 1.6rem 1.4rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.specs li + li {
    padding-left: 1.4rem;
    border-left: 1px solid var(--steel);
}

.specs strong {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--yellow);
}

.specs span {
    color: var(--on-dark-muted);
    font-size: 0.95rem;
}

/* --- Panel (makieta) --- */
.board {
    background: var(--ink);
    color: var(--on-dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(21, 23, 27, 0.25);
    margin-bottom: 2rem;
}

.board-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    background: var(--ink-2);
    border-bottom: 1px solid var(--steel);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--on-dark-muted);
}

.dots {
    display: flex;
    gap: 6px;
}

.dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--steel-2);
}

.board-sync {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--st-green);
}

.board-sync i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.board-head,
.row {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 1.2fr;
    gap: 1.2rem;
    align-items: center;
    padding: 0 1.4rem;
}

.board-head {
    padding-top: 1rem;
    padding-bottom: 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--on-dark-muted);
}

.row {
    min-height: 72px;
    border-top: 1px solid var(--steel);
}

.row-name {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    line-height: 1.3;
}

.row-name small {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--on-dark-muted);
}

.row-mth {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.05rem;
}

.row-bar {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.row-bar i {
    display: block;
    height: 8px;
    border-radius: 2px;
    background:
        linear-gradient(90deg, var(--bar) 0 calc(min(var(--p), 100) * 1%), var(--steel) 0);
}

.row-bar em {
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--on-dark-muted);
}

.st {
    justify-self: start;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius);
    white-space: nowrap;
}

.st-green { background: rgba(34, 165, 90, 0.16); color: #4fd184; }
.st-yellow { background: rgba(242, 183, 5, 0.16); color: #ffd146; }
.st-red { background: rgba(224, 65, 47, 0.18); color: #ff7a69; }
.st-black { background: #000; color: #d7d9dd; border: 1px solid var(--steel-2); }

.row:has(.st-green) { --bar: var(--st-green); }
.row:has(.st-yellow) { --bar: var(--st-yellow); }
.row:has(.st-red) { --bar: var(--st-red); }
.row:has(.st-black) { --bar: #5a5f68; }

.legend {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.legend div {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.7rem;
    align-items: center;
}

.legend span {
    grid-column: 2;
    font-size: 0.9rem;
    color: var(--on-light-muted);
}

.lg {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.lg-green { background: var(--st-green); }
.lg-yellow { background: var(--st-yellow); }
.lg-red { background: var(--st-red); }
.lg-black { background: var(--st-black); }

/* --- Funkcje serwisowe --- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.features article {
    padding: 1.8rem;
    border: 1px solid var(--steel);
    border-radius: 8px;
    background: var(--ink-2);
    transition: border-color 0.2s, transform 0.2s;
}

.features article:hover {
    border-color: var(--yellow);
    transform: translateY(-3px);
}

.f-no {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 1.2rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--ink);
    background: var(--yellow);
    border-radius: var(--radius);
}

.features h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.features p {
    color: var(--on-dark-muted);
}

/* --- Kroki wdrożenia --- */
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    counter-reset: none;
}

.steps li {
    border-top: 3px solid var(--ink);
    padding-top: 1.2rem;
}

.steps span {
    font-family: var(--font-display);
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1;
}

.steps h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0.4rem 0;
}

.steps p {
    font-size: 1rem;
}

/* --- FAQ --- */
.faq-wrap {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.section-head-left {
    position: sticky;
    top: 100px;
    margin-bottom: 0;
}

.faq details {
    border-top: 1px solid var(--line-light);
}

.faq details:last-child {
    border-bottom: 1px solid var(--line-light);
}

.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 0;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: '+';
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    transition: transform 0.2s, background 0.2s;
}

.faq details[open] summary::after {
    content: '−';
    background: var(--yellow);
    border-color: var(--yellow);
}

.faq details p {
    padding: 0 3rem 1.5rem 0;
    color: var(--on-light-muted);
}

/* --- Kontakt --- */
.contact {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: start;
}

.contact-copy > p:not(.kicker) {
    color: var(--on-dark-muted);
    font-size: 1.12rem;
    margin-bottom: 2.4rem;
}

.maker {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1.4rem 1.6rem;
    border-left: 4px solid var(--yellow);
    background: var(--ink-2);
}

.maker-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--on-dark-muted);
}

.maker-brand {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.maker-sub {
    color: var(--on-dark-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.maker-contact {
    list-style: none;
    display: grid;
    gap: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid var(--steel);
}

.maker-contact li {
    display: flex;
    flex-direction: column;
}

.maker-contact span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--on-dark-muted);
}

.maker-contact a {
    color: var(--on-dark);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
}

.maker-contact a:hover {
    color: var(--yellow);
}

.maker-contact small {
    font-size: 0.82rem;
    color: var(--on-dark-muted);
}

.form {
    background: var(--ink-2);
    border: 1px solid var(--steel);
    border-radius: 10px;
    padding: 2rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--on-dark-muted);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.9rem;
    font: inherit;
    font-size: 1rem;
    color: var(--on-dark);
    background: var(--ink);
    border: 1px solid var(--steel-2);
    border-radius: var(--radius);
    transition: border-color 0.2s;
}

.field textarea {
    resize: vertical;
}

.field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--yellow) 50%), linear-gradient(135deg, var(--yellow) 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--yellow);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #5f646d;
}

.captcha-btn {
    min-height: 48px;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--on-dark);
    background: none;
    border: 1px dashed var(--steel-2);
    border-radius: var(--radius);
    cursor: pointer;
}

.captcha-btn:hover {
    border-color: var(--yellow);
}

.rodo {
    font-size: 0.78rem;
    color: #7c818a;
    margin-bottom: 1.2rem;
}

.rodo a {
    color: var(--on-dark-muted);
}

.form-status {
    min-height: 1.5em;
    margin-top: 0.9rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-status.ok {
    color: #4fd184;
}

.form-status.err {
    color: #ff7a69;
}

/* --- Stopka --- */
.footer {
    background: #0e0f12;
    color: var(--on-dark-muted);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    padding-top: 2.2rem;
    padding-bottom: 2.2rem;
    font-size: 0.9rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer-brand .brand-name {
    color: var(--on-dark);
    font-size: 1.6rem;
}

.footer-author {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    text-align: right;
}

.footer-author a {
    color: var(--yellow);
    text-decoration: none;
}

.footer-author a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.3rem 1rem;
    margin-top: 0.3rem;
}

.footer-links a {
    color: var(--on-dark-muted);
}

/* --- Wejście elementów przy przewijaniu --- */
.js .rise {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .rise.in {
    opacity: 1;
    transform: none;
}

/* =========================================================
   RESPONSYWNOŚĆ
   ========================================================= */
@media (max-width: 1024px) {
    .hero-grid,
    .contact,
    .faq-wrap {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .section-head-left {
        position: static;
    }

    .machines,
    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .specs,
    .steps,
    .legend {
        grid-template-columns: repeat(2, 1fr);
    }

    .specs li:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .meter-card {
        max-width: 520px;
    }
}

@media (max-width: 1080px) {
    .menu-toggle {
        display: flex;
    }

    .menu {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 16px 1.2rem;
        background: var(--ink);
        border-bottom: 1px solid var(--line-dark);
        display: none;
    }

    .menu.open {
        display: flex;
    }

    .menu a {
        padding: 0.9rem 0;
        border-bottom: 1px solid var(--line-dark);
    }

    .menu a.menu-login {
        justify-content: center;
        margin-top: 1rem;
        padding: 0.8rem;
    }

    .menu a.menu-cta {
        margin-top: 0.6rem;
        text-align: center;
        border-bottom: 0;
    }
}

@media (max-width: 860px) {

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

    /* makieta panelu jako karty */
    .board-head {
        display: none;
    }

    .row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "name st"
            "mth mth"
            "bar bar";
        gap: 0.5rem 1rem;
        padding: 1rem 1.2rem;
    }

    .row-name { grid-area: name; }
    .st { grid-area: st; justify-self: end; }
    .row-mth { grid-area: mth; }
    .row-bar { grid-area: bar; }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .wrap {
        padding: 0 16px;
    }

    .footer-inner {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .hero {
        padding: 3.5rem 0 4.5rem;
    }

    .section {
        padding: 4.5rem 0;
    }

    .machines,
    .features,
    .specs,
    .steps,
    .legend,
    .field-row {
        grid-template-columns: 1fr;
    }

    .specs li,
    .specs li + li {
        padding: 1.2rem 0;
        border-left: 0;
        border-bottom: 1px solid var(--steel);
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }

    .meter-card,
    .form,
    .detect-card {
        padding: 1.2rem;
    }

    .meter {
        gap: 3px;
        padding: 6px;
    }

    .faq details p {
        padding-right: 0;
    }

    .board-bar {
        white-space: nowrap;
        font-size: 0.7rem;
    }

    .dots {
        display: none;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .footer-author {
        align-items: flex-start;
        text-align: left;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .trace .sig {
        stroke-dashoffset: 0;
    }

    .js .rise {
        opacity: 1;
        transform: none;
    }
}

/* --- Dokumenty (polityka prywatności, regulamin) --- */
.doc {
    background: var(--paper);
    color: var(--on-light);
    padding: 4rem 0 5rem;
}

.doc .wrap {
    max-width: 780px;
}

.doc-back {
    color: var(--on-dark-muted);
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
}

.doc-back:hover {
    color: var(--yellow);
}

.doc h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1.05;
    text-transform: uppercase;
}

.doc-date {
    margin-top: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--on-light-muted);
}

.doc h2 {
    margin-top: 2.6rem;
    font-family: var(--font-display);
    font-size: 1.6rem;
    text-transform: uppercase;
}

.doc h3 {
    margin-top: 1.4rem;
    font-size: 1.05rem;
}

.doc p,
.doc ul,
.doc ol {
    margin-top: 0.8rem;
    color: #2e3238;
}

.doc ul,
.doc ol {
    padding-left: 1.4rem;
}

.doc li + li {
    margin-top: 0.35rem;
}

.doc a {
    color: var(--on-light);
    text-decoration-color: var(--yellow-deep);
    text-decoration-thickness: 2px;
}
