/* =========================================
   KLINIKA MOTOCYKLI — PREMIUM WEBSITE
========================================= */

:root {
    --bg: #050506;
    --bg-2: #0b0b0f;
    --surface: #111116;
    --surface-2: #17171f;
    --surface-3: #20202a;

    --text: #f8fafc;
    --muted: #a1a1aa;
    --muted-2: #71717a;

    --border: rgba(255,255,255,0.10);
    --border-2: rgba(255,255,255,0.16);

    --red: #ef4444;
    --red-2: #b91c1c;
    --red-glow: rgba(239,68,68,0.28);

    --shadow: 0 24px 70px rgba(0,0,0,0.45);
    --radius: 22px;
    --radius-sm: 14px;
}

/* RESET */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(239,68,68,0.10), transparent 28%),
        radial-gradient(circle at top right, rgba(255,255,255,0.035), transparent 26%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    color: var(--text);
}

img {
    max-width: 100%;
    display: block;
}

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

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

/* LAYOUT */

.container {
    width: min(1200px, 100% - 40px);
    margin: 0 auto;
}

/* OVERLAY */

.overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;

    background: rgba(0,0,0,0.74);
    backdrop-filter: blur(8px);
    padding: 20px;
}

.overlay-box {
    position: relative;
    width: min(520px, 100%);
    background:
        radial-gradient(circle at top left, rgba(239,68,68,0.15), transparent 34%),
        #111116;
    border: 1px solid var(--border-2);
    border-radius: 24px;
    padding: 38px;
    color: #fff;
    text-align: center;
    box-shadow: var(--shadow);
}

.overlay-box h2 {
    font-size: 30px;
    margin: 10px 0 16px;
}

.overlay-box p {
    color: #d4d4d8;
    line-height: 1.6;
}

.overlay-box strong {
    color: #fff;
}

.overlay-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    cursor: pointer;
}

/* TOPBAR */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5,5,6,0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, var(--red), var(--red-2));
    color: #fff;
    font-weight: 900;
    letter-spacing: -0.05em;

    box-shadow:
        0 0 18px rgba(239,68,68,0.35),
        0 10px 24px rgba(0,0,0,0.35);
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-size: 15px;
    line-height: 1.1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.logo-text small {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    text-transform: none;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.desktop-nav a {
    padding: 10px 12px;
    border-radius: 999px;
    color: #d4d4d8;
    font-size: 14px;
    font-weight: 700;
    transition: 0.18s ease;
}

.desktop-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.desktop-nav .status-link {
    color: #fff;
    background: rgba(239,68,68,0.16);
    border: 1px solid rgba(239,68,68,0.28);
}

.nav-phone {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    transition: 0.18s ease;
}

.nav-phone:hover {
    background: rgba(255,255,255,0.10);
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.18s ease;
}

.btn.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--red-2));
    box-shadow:
        0 0 16px rgba(239,68,68,0.35),
        0 14px 34px rgba(0,0,0,0.34);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 24px rgba(239,68,68,0.45),
        0 18px 42px rgba(0,0,0,0.45);
}

.btn.ghost {
    color: #fff;
    background: rgba(255,255,255,0.06);
    border-color: var(--border-2);
}

.btn.ghost:hover {
    background: rgba(255,255,255,0.11);
    transform: translateY(-2px);
}

.btn.full {
    width: 100%;
}

/* HERO */

.hero {
    position: relative;
    padding: 88px 0 70px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(239,68,68,0.07), transparent 45%),
        radial-gradient(circle at 72% 42%, rgba(255,255,255,0.05), transparent 32%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 54px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fca5a5;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: var(--red);
    box-shadow: 0 0 14px var(--red-glow);
}

.hero h1 {
    max-width: 680px;
    margin: 16px 0 18px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero-lead {
    max-width: 590px;
    margin: 0;
    color: #d4d4d8;
    font-size: 17px;
    line-height: 1.75;
}

.hero-steps {
    margin-top: 30px;
    display: grid;
    gap: 14px;
}

.step {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.07);
}

.step span {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--red), var(--red-2));
    color: #fff;
    font-weight: 900;
    box-shadow: 0 0 20px rgba(239,68,68,0.25);
}

.step strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    color: #fff;
}

.step p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-card {
    position: relative;
    padding: 12px;
    border-radius: 30px;
    background: rgba(255,255,255,0.045);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.hero-card img {
    width: 100%;
    min-height: 440px;
    object-fit: cover;
    border-radius: 24px;
    filter: saturate(1.05) contrast(1.05);
}

.hero-badge {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(5,5,6,0.78);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-2);
}

.hero-badge strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
}

.hero-badge span {
    color: var(--muted);
    font-size: 13px;
}

/* SECTIONS */

.section {
    padding: 88px 0;
}

.section-alt {
    background:
        radial-gradient(circle at top right, rgba(239,68,68,0.055), transparent 24%),
        rgba(255,255,255,0.018);
    border-top: 1px solid rgba(255,255,255,0.045);
    border-bottom: 1px solid rgba(255,255,255,0.045);
}

.section-head {
    max-width: 720px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-head.left {
    margin-left: 0;
    text-align: left;
}

.section-head h2,
.about-content h2 {
    margin: 12px 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.section-head p,
.about-content p {
    margin: 0;
    color: #d4d4d8;
    line-height: 1.75;
}

/* CARDS */

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

.card {
    overflow: hidden;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
    border: 1px solid var(--border);
    box-shadow: 0 14px 38px rgba(0,0,0,0.30);
    transition: 0.22s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(239,68,68,0.24);
    box-shadow:
        0 0 24px rgba(239,68,68,0.10),
        0 20px 48px rgba(0,0,0,0.45);
}

.card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ABOUT */

.about-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 54px;
    align-items: start;
}

.about-content p + p {
    margin-top: 14px;
}

.features {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.075);
}

.feature span {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(34,197,94,0.14);
    color: #86efac;
    font-weight: 900;
    flex: 0 0 auto;
}

.feature p {
    margin: 0;
    font-size: 14px;
    color: #d4d4d8;
    line-height: 1.45;
}

.about-box,
.contact-aside {
    border-radius: 26px;
    padding: 28px;
    background:
        radial-gradient(circle at top left, rgba(239,68,68,0.12), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.about-box h3,
.contact-aside h3 {
    margin: 0 0 8px;
    font-size: 24px;
    letter-spacing: -0.025em;
}

.box-lead {
    margin: 0 0 18px;
    color: var(--muted);
}

.info-row {
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: grid;
    gap: 5px;
}

.info-row strong {
    color: #fff;
    font-size: 13px;
}

.info-row span,
.info-row a {
    color: #d4d4d8;
    line-height: 1.45;
}

.info-row a:hover {
    color: #fff;
}

/* CONTACT */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 42px;
    align-items: start;
}

.contact-form {
    margin-top: 20px;
    padding: 24px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
    border: 1px solid var(--border);
    box-shadow: 0 18px 50px rgba(0,0,0,0.34);
}

.anti-spam-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

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

.contact-form label + label,
.contact-form .form-grid + label,
.rodo-fixed {
    margin-top: 14px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(5,5,6,0.72);
    color: #fff;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
    transition: 0.18s ease;
}

.contact-form textarea {
    min-height: 150px;
    padding: 14px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: rgba(239,68,68,0.75);
    box-shadow: 0 0 0 4px rgba(239,68,68,0.12);
}

.contact-form select {
    appearance: none;
}

.aztec-scanner {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid rgba(239,68,68,0.26);
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(239,68,68,0.14), transparent 34%),
        rgba(5,5,6,0.45);
    display: grid;
    gap: 12px;
}

.aztec-scanner-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.aztec-scanner-head div {
    display: grid;
    gap: 5px;
}

.aztec-scanner-head strong {
    color: #fff;
    font-size: 15px;
}

.aztec-scanner-head span,
.aztec-frame-hint,
.aztec-status,
.aztec-debug {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.aztec-open-button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 16px;
}

.aztec-live-panel {
    display: none;
    gap: 10px;
}

.aztec-scanner.is-open .aztec-live-panel {
    display: grid;
}

.aztec-scanner.is-open {
    position: fixed;
    inset: 0;
    z-index: 10050;
    margin: 0;
    padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    border: 0;
    border-radius: 0;
    background: #050506;
    align-content: start;
    overflow: auto;
}

.aztec-scanner.is-open .aztec-scanner-head {
    color: #fff;
}

.aztec-scanner.is-open .aztec-scanner-head strong {
    color: #fff;
}

.aztec-scanner.is-open .aztec-scanner-head span,
.aztec-scanner.is-open .aztec-frame-hint {
    color: #d4d4d8;
}

.aztec-video {
    width: 100%;
    max-height: min(72vh, 760px);
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: #050506;
    object-fit: cover;
}

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

.aztec-actions .btn {
    min-height: 40px;
    padding: 0 14px;
}

.aztec-file-button {
    cursor: pointer;
}

.aztec-file-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.aztec-scanner.is-open .aztec-actions .btn {
    flex: 1 1 140px;
}

.aztec-status {
    min-height: 18px;
}

.aztec-status[data-kind="ok"] {
    color: #86efac;
}

.aztec-status[data-kind="error"] {
    color: #fca5a5;
}

.aztec-debug {
    min-height: 16px;
    color: #8f8f98;
    word-break: break-word;
}

.rodo-fixed {
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px !important;
    line-height: 1.45;
    font-weight: 500 !important;
}

.rodo-fixed input {
    width: 18px !important;
    min-height: 18px !important;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--red);
    flex: 0 0 auto;
}

.form-note {
    margin: 10px 0 0;
    color: var(--muted-2);
    font-size: 12px;
    text-align: center;
}

.map-box {
    margin-top: 18px;
}

.map-box iframe {
    width: 100%;
    min-height: 320px;
    border-radius: 18px;
    border: 1px solid var(--border) !important;
    filter: grayscale(0.3) contrast(1.05);
}

.home-visit-card {
    margin-top: 20px;
    padding: 24px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

.home-visit-card h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 24px;
}

.home-visit-card p {
    margin: 0 0 18px;
    color: #475569;
    line-height: 1.65;
}

/* FOOTER */

.footer {
    padding: 24px 0 34px;
    background: #050506;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* STATUS BOX */

.status-box {
    max-width: 560px;
    margin: 40px auto;
    padding: 24px;
    border-radius: 20px;
    background: #111116;
    border: 1px solid rgba(239,68,68,0.28);
    box-shadow:
        0 0 20px rgba(239,68,68,0.12),
        0 18px 50px rgba(0,0,0,0.40);
}

/* RESPONSIVE */

@media (max-width: 1000px) {
    .hero-grid,
    .about-wrapper,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-card img {
        min-height: 320px;
    }

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

    .desktop-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav {
        min-height: auto;
        padding: 14px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 28px, 1200px);
    }

    .hero {
        padding: 48px 0 50px;
    }

    .hero h1 {
        font-size: 42px;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .aztec-scanner-head {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .cards,
    .features,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .desktop-nav {
        gap: 6px;
    }

    .desktop-nav a {
        font-size: 13px;
        padding: 9px 10px;
    }

    .nav-phone {
        width: 100%;
        text-align: center;
    }

    .section {
        padding: 58px 0;
    }

    .overlay-box {
        padding: 30px 22px;
    }
}

@media (max-width: 430px) {
    .logo-text {
        font-size: 13px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .step {
        grid-template-columns: 36px 1fr;
        padding: 14px;
    }

    .step span {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }
}

/* ===== FIX HERO - MNIEJ ROZJECHANY, BARDZIEJ PRO ===== */

.hero {
    padding: 70px 0 70px;
    min-height: auto;
}

.hero-grid {
    grid-template-columns: 1fr 0.9fr;
    gap: 46px;
    align-items: center;
}

.hero h1 {
    max-width: 560px;
    font-size: clamp(42px, 4.8vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.hero-lead {
    max-width: 560px;
    font-size: 16px;
    line-height: 1.65;
}

.hero-steps {
    max-width: 620px;
}

.step {
    padding: 14px 16px;
    min-height: 78px;
}

.hero-actions {
    margin-top: 24px;
}

.hero-photo {
    display: flex;
    justify-content: center;
}

.hero-card {
    width: 100%;
    max-width: 520px;
}

.hero-card img {
    min-height: 0;
    height: 420px;
    object-fit: cover;
    object-position: center;
}

.hero-badge {
    left: 24px;
    right: 24px;
    bottom: 24px;
}

/* TOPBAR TROCHĘ BARDZIEJ ZWARTY */

.nav {
    min-height: 68px;
}

.logo-mark {
    width: 38px;
    height: 38px;
}

.logo-text {
    font-size: 14px;
}

.desktop-nav a {
    font-size: 14px;
}

/* MNIEJSZE PRZYCISKI W HERO */

.hero .btn {
    min-height: 46px;
    padding: 0 22px;
}

/* MOBILE */

@media (max-width: 1000px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        max-width: 640px;
    }

    .hero-card img {
        height: 360px;
    }
}

@media (max-width: 720px) {
    .hero {
        padding: 44px 0 52px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-card img {
        height: 280px;
    }
}

/* ===== FIX SEKCJI KONTAKT ===== */

#kontakt {
    padding-top: 110px !important;
}

.contact-grid {
    align-items: start;
}

.contact-aside {
    margin-top: 96px;
}

.contact-aside h3:first-child {
    margin-top: 0;
}

.map-box iframe {
    display: block;
    width: 100%;
    height: 320px !important;
    min-height: 320px !important;
}

.contact-form {
    margin-top: 28px;
}

@media (max-width: 1000px) {
    .contact-aside {
        margin-top: 0;
    }

    #kontakt {
        padding-top: 70px !important;
    }
}

/* ===== FIX LOGO HERO ===== */

.hero-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    min-height: 520px;
}

.hero-card img {
    width: 100%;
    height: auto !important;
    max-height: 420px;
    object-fit: contain !important;
    object-position: center top;
    margin-top: 10px;
}

.hero-badge {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;

    z-index: 5;

    background: rgba(0,0,0,.82);
    backdrop-filter: blur(10px);

    border: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 1000px) {
    .hero-card {
        min-height: 460px;
    }

    .hero-card img {
        max-height: 340px;
    }
}

/* ===== HERO - BARDZIEJ PROFESJONALNY UKŁAD ===== */

.hero {
    padding: 76px 0 82px;
}

.hero-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 70px;
}

.hero h1 {
    font-size: clamp(44px, 4.6vw, 66px);
    max-width: 620px;
}

.hero-card {
    max-width: 560px;
    min-height: 420px;
    padding: 14px;
    border-radius: 28px;
}

.hero-card img {
    height: 390px !important;
    max-height: none;
    object-fit: contain !important;
    object-position: center;
    border-radius: 22px;
    opacity: .86;
}

.hero-badge {
    left: 28px;
    right: 28px;
    bottom: 28px;
}

/* Jeżeli hero.jpg to logo, zmniejszamy jego ciężar */
.hero-photo {
    opacity: .92;
    filter: saturate(.95) contrast(1.05);
}

/* Karty kroków trochę mniej ciężkie */
.step {
    max-width: 560px;
    background: rgba(255,255,255,.035);
}

/* Przyciski bliżej treści */
.hero-actions {
    max-width: 560px;
}

/* HERO BEZ WIELKIEGO LOGO */

.hero-grid {
    grid-template-columns: 1fr !important;
    max-width: 760px;
    margin: 0 auto;
}

.hero-text {
    text-align: left;
}

.hero-photo {
    display: none !important;
}

.hero h1 {
    max-width: 760px;
}

.hero-lead,
.hero-steps,
.hero-actions {
    max-width: 680px;
}

/* ===== HERO FINAL - PRO, NIE ROZJECHANY ===== */

.hero {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    padding: 70px 0 90px;
}

.hero-grid {
    grid-template-columns: 1fr 0.85fr !important;
    gap: 70px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.hero-text {
    max-width: 620px;
}

.hero h1 {
    font-size: clamp(46px, 5vw, 72px);
    line-height: 0.98;
    max-width: 650px;
}

.hero-lead {
    max-width: 600px;
    font-size: 17px;
}

.hero-photo {
    display: flex !important;
    justify-content: center;
}

.hero-card {
    width: 100%;
    max-width: 470px;
    min-height: auto !important;
    padding: 18px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(239,68,68,.16), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
    border: 1px solid rgba(255,255,255,.12);
    box-shadow:
        0 0 35px rgba(239,68,68,.08),
        0 28px 80px rgba(0,0,0,.55);
}

.hero-card img {
    height: 360px !important;
    max-height: none !important;
    width: 100%;
    object-fit: contain !important;
    object-position: center;
    border-radius: 22px;
    background: #0b0b10;
    padding: 16px;
}

.hero-badge {
    display: none !important;
}

.hero-steps {
    max-width: 620px;
}

.step {
    background:
        linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.hero-actions {
    max-width: 620px;
}

/* mobile */
@media (max-width: 1000px) {
    .hero {
        min-height: auto;
        padding: 50px 0 70px;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 34px;
    }

    .hero-card {
        max-width: 560px;
    }

    .hero-card img {
        height: 300px !important;
    }
}

/* ===== INDEX KLIENTA - CZYSTSZY, NOWOCZESNY WYGLAD ===== */

:root {
    --client-bg: #edf1f5;
    --client-panel: #fbfcfd;
    --client-text: #0f172a;
    --client-muted: #526071;
    --client-border: #e2e8f0;
    --client-soft: #f3f6f9;
    --client-red: #dc2626;
    --client-red-dark: #991b1b;
    --client-radius: 8px;
}

body {
    background: var(--client-bg);
    color: var(--client-text);
}

.container {
    width: min(1180px, 100% - 40px);
}

.topbar {
    background: rgba(248, 250, 252, .94);
    border-bottom: 1px solid rgba(226, 232, 240, .92);
    box-shadow: 0 8px 28px rgba(15, 23, 42, .06);
}

.nav {
    min-height: 70px;
}

.logo-mark {
    width: 40px;
    height: 40px;
    border-radius: var(--client-radius);
    background: var(--client-red);
    box-shadow: 0 10px 22px rgba(220, 38, 38, .22);
}

.logo-text {
    color: var(--client-text);
    letter-spacing: 0;
}

.logo-text small,
.desktop-nav a {
    color: var(--client-muted);
}

.desktop-nav a {
    border-radius: var(--client-radius);
}

.desktop-nav a:hover {
    color: var(--client-text);
    background: #f1f5f9;
}

.desktop-nav .status-link {
    color: var(--client-red-dark);
    background: #fee2e2;
    border-color: #fecaca;
}

.nav-phone {
    color: var(--client-text);
    background: var(--client-soft);
    border-color: var(--client-border);
    border-radius: var(--client-radius);
}

.btn {
    min-height: 46px;
    border-radius: var(--client-radius);
    letter-spacing: 0;
}

.btn.primary {
    background: var(--client-red);
    box-shadow: 0 12px 30px rgba(220, 38, 38, .22);
}

.btn.primary:hover {
    background: #b91c1c;
    box-shadow: 0 16px 36px rgba(220, 38, 38, .28);
}

.btn.ghost {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .28);
}

.hero {
    min-height: calc(100svh - 132px);
    display: flex;
    align-items: center;
    padding: 72px 0 78px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(5, 8, 12, .92) 0%, rgba(5, 8, 12, .72) 48%, rgba(5, 8, 12, .34) 100%),
        url("moto1.jpg") center / cover no-repeat;
}

.hero::before {
    display: none;
}

.hero-grid {
    grid-template-columns: 1fr !important;
    max-width: 1180px;
    gap: 0;
}

.hero-text {
    max-width: 760px;
}

.eyebrow {
    color: #fecaca;
    letter-spacing: .08em;
}

.eyebrow::before {
    background: var(--client-red);
    box-shadow: none;
}

.hero h1 {
    max-width: 760px;
    margin: 16px 0 18px;
    font-size: clamp(48px, 7vw, 88px);
    line-height: .96;
    letter-spacing: 0;
}

.hero-lead {
    max-width: 660px;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.65;
}

.hero-photo {
    display: none !important;
}

.hero-steps {
    max-width: 1080px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.step {
    min-height: 0;
    padding: 14px;
    border-radius: var(--client-radius);
    background: rgba(15, 23, 42, .62);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.step span {
    border-radius: var(--client-radius);
    background: var(--client-red);
    box-shadow: none;
}

.step p {
    color: #cbd5e1;
}

.section {
    padding: 82px 0;
    background: var(--client-bg);
}

.section-alt {
    background: #f8fafc;
    border-color: var(--client-border);
}

.section-head h2,
.about-content h2 {
    color: var(--client-text);
    letter-spacing: 0;
}

.section-head p,
.about-content p {
    color: var(--client-muted);
}

.cards {
    gap: 16px;
}

.card {
    border-radius: var(--client-radius);
    background: var(--client-panel);
    border: 1px solid var(--client-border);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
}

.card:hover {
    transform: translateY(-4px);
    border-color: #fecaca;
    box-shadow: 0 22px 46px rgba(15, 23, 42, .12);
}

.card img {
    height: 176px;
}

.card h3 {
    color: var(--client-text);
}

.card p,
.feature p,
.info-row span,
.info-row a,
.box-lead {
    color: var(--client-muted);
}

.feature,
.about-box,
.contact-aside,
.contact-form {
    border-radius: var(--client-radius);
    background: var(--client-panel);
    border: 1px solid var(--client-border);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

.feature {
    box-shadow: none;
}

.feature span {
    background: #dcfce7;
    color: #15803d;
}

.about-box h3,
.contact-aside h3,
.info-row strong,
.contact-form label {
    color: var(--client-text);
}

.info-row {
    border-top-color: var(--client-border);
}

#kontakt {
    padding-top: 88px !important;
}

.contact-aside {
    margin-top: 82px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    color: var(--client-text);
    background: var(--client-soft);
    border-color: #cbd5e1;
    border-radius: var(--client-radius) !important;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #94a3b8;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--client-red);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .10);
}

.aztec-scanner {
    border-color: #fecaca;
    background: #fff7f7;
    box-shadow: none;
}

.aztec-scanner-head strong {
    color: var(--client-text);
}

.aztec-scanner-head span,
.aztec-frame-hint,
.aztec-status {
    color: var(--client-muted);
}

.aztec-video {
    border-color: #fecaca;
}

.aztec-debug {
    color: #94a3b8;
}

.map-box iframe {
    border-radius: var(--client-radius);
    filter: saturate(.9) contrast(1.02);
}

.footer {
    background: #0f172a;
    border-top: 0;
    color: #cbd5e1;
}

.overlay-box {
    border-radius: var(--client-radius);
}

.overlay-close {
    border-radius: var(--client-radius);
}

@media (max-width: 1000px) {
    .hero {
        min-height: auto;
        padding: 68px 0 62px;
        background-position: 58% center;
    }

    .hero-steps {
        grid-template-columns: 1fr;
        max-width: 640px;
    }

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

    .contact-aside {
        margin-top: 0;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .topbar {
        position: static;
    }

    .hero {
        padding: 56px 0 52px;
    }

    .hero h1 {
        font-size: 44px;
    }

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

    .cards,
    .features,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .aztec-scanner-head {
        align-items: stretch;
        flex-direction: column;
    }

    .section {
        padding: 60px 0;
    }
}

/* ===== EKG INTRO I HERO ===== */

.intro-lock {
    overflow: hidden;
}

.site-intro {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 42%, rgba(220, 38, 38, .18), transparent 34%),
        linear-gradient(180deg, #070b12 0%, #0f172a 100%);
    color: #fff;
    opacity: 1;
    visibility: visible;
    transition: opacity .45s ease, visibility .45s ease;
}

.site-intro.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-panel {
    width: min(880px, 100%);
    display: grid;
    justify-items: center;
    gap: 22px;
}

.intro-logo {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--client-red);
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 18px 42px rgba(220, 38, 38, .32);
}

.intro-panel p {
    margin: 0;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.ekg-track,
.hero-ekg {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.intro-ekg {
    --ekg-length: 1600;
    max-width: 880px;
    height: 154px;
    border-radius: var(--client-radius);
    background:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
        rgba(15, 23, 42, .42);
    background-size: 34px 34px, 34px 34px, auto;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow:
        inset 0 0 36px rgba(15, 23, 42, .58),
        0 22px 80px rgba(0, 0, 0, .28);
}

.intro-ekg .ekg-line {
    position: absolute;
    inset: 0;
}

.intro-ekg .ekg-bike {
    position: absolute;
    right: 18px;
    bottom: 28px;
    width: clamp(210px, 30%, 270px);
    height: auto;
    overflow: visible;
    pointer-events: none;
    clip-path: inset(0 100% 0 0);
    animation: introBikeIgnite 4.2s cubic-bezier(.42, 0, .18, 1) both;
}

.hero-ekg {
    --ekg-length: 1600;
    max-width: 880px;
    height: 154px;
    margin: 24px 0 6px;
    border-radius: var(--client-radius);
    background:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
        rgba(15, 23, 42, .52);
    background-size: 34px 34px, 34px 34px, auto;
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(10px);
    overflow: hidden;
    box-shadow:
        inset 0 0 38px rgba(15, 23, 42, .62),
        0 22px 60px rgba(0, 0, 0, .24);
}

.ekg-track svg,
.hero-ekg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-ekg .ekg-line {
    position: absolute;
    inset: 0;
}

.hero-ekg .ekg-bike {
    position: absolute;
    right: 18px;
    bottom: 28px;
    width: clamp(210px, 30%, 270px);
    height: auto;
    overflow: visible;
    pointer-events: none;
    clip-path: inset(0 100% 0 0);
    animation: bikeIgnite 10.6s cubic-bezier(.42, 0, .18, 1) infinite;
}

.bike-line,
.bike-glow {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bike-line {
    stroke: #ef4444;
    stroke-width: 5.2;
}

.bike-glow {
    opacity: .46;
    stroke: rgba(248, 113, 113, .7);
    stroke-width: 13;
    filter: blur(5px);
}

.ekg-path,
.ekg-glow,
.ekg-spark {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.ekg-glow {
    stroke: rgba(248, 113, 113, .48);
    stroke-width: 11;
    filter: blur(5px);
}

.ekg-glow,
.ekg-path,
.ekg-spark {
    stroke-dasharray: var(--ekg-length, 760);
    stroke-dashoffset: var(--ekg-length, 760);
    animation: ekgDraw 1.65s linear infinite;
}

.ekg-path {
    stroke: #ef4444;
    stroke-width: 4.4;
    filter:
        drop-shadow(0 0 3px rgba(239, 68, 68, .95))
        drop-shadow(0 0 12px rgba(239, 68, 68, .42));
}

.ekg-spark {
    stroke: rgba(255, 206, 206, .86);
    stroke-width: 2.1;
    stroke-dasharray: 58 1542;
    filter:
        drop-shadow(0 0 5px rgba(255, 255, 255, .72))
        drop-shadow(0 0 16px rgba(239, 68, 68, .82));
    animation-name: ekgSpark;
}

.intro-ekg .ekg-path {
    stroke-width: 5.2;
}

.intro-ekg .ekg-path,
.intro-ekg .ekg-glow,
.intro-ekg .ekg-spark {
    animation-name: introEkgDraw;
    animation-duration: 4.2s;
    animation-iteration-count: 1;
    animation-fill-mode: both;
}

.intro-ekg .ekg-spark {
    animation-name: introEkgSpark;
}

.hero-ekg .ekg-path,
.hero-ekg .ekg-glow,
.hero-ekg .ekg-spark {
    animation-duration: 10.6s;
}

@keyframes ekgDraw {
    0% {
        stroke-dashoffset: var(--ekg-length, 760);
        opacity: .28;
    }
    8% {
        opacity: 1;
    }
    58%,
    87% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
    100% {
        stroke-dashoffset: -240;
        opacity: 0;
    }
}

@keyframes ekgSpark {
    0% {
        stroke-dashoffset: var(--ekg-length, 1600);
        opacity: 0;
    }
    7%,
    58% {
        opacity: 1;
    }
    64%,
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

@keyframes introEkgDraw {
    0% {
        stroke-dashoffset: var(--ekg-length, 1600);
        opacity: .28;
    }
    10% {
        opacity: 1;
    }
    78%,
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes introEkgSpark {
    0% {
        stroke-dashoffset: var(--ekg-length, 1600);
        opacity: 0;
    }
    10%,
    78% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

@keyframes bikeIgnite {
    0%,
    58% {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }

    63% {
        opacity: 1;
    }

    76%,
    90% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }

    100% {
        clip-path: inset(0 0 0 0);
        opacity: 0;
    }
}

@keyframes introBikeIgnite {
    0%,
    58% {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }

    63% {
        opacity: 1;
    }

    76%,
    100% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-intro {
        display: none;
    }

    .ekg-path {
        animation: none;
        stroke-dashoffset: 0;
    }

    .ekg-spark {
        display: none;
    }

    .hero-ekg .ekg-bike {
        animation: none;
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

@media (max-width: 720px) {
    .site-intro {
        padding: 18px;
    }

    .intro-logo {
        width: 56px;
        height: 56px;
    }

    .intro-ekg {
        height: 104px;
    }

    .intro-ekg .ekg-bike {
        right: 8px;
        bottom: 20px;
        width: 154px;
    }

    .hero-ekg {
        height: 104px;
        margin-top: 20px;
    }

    .hero-ekg .ekg-bike {
        right: 8px;
        bottom: 20px;
        width: 154px;
    }
}

/* 2026-05-25 EKG polish */
.intro-ekg,
.hero-ekg {
    background:
        linear-gradient(rgba(148, 163, 184, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .045) 1px, transparent 1px),
        radial-gradient(circle at 72% 42%, rgba(239, 68, 68, .08), transparent 34%),
        rgba(8, 14, 27, .72);
    background-size: 34px 34px, 34px 34px, auto, auto;
    border-color: rgba(148, 163, 184, .25);
    box-shadow:
        inset 0 0 34px rgba(2, 6, 23, .78),
        inset 0 0 0 1px rgba(255,255,255,.025),
        0 22px 58px rgba(2, 6, 23, .3);
}

.intro-ekg::before,
.hero-ekg::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 0%, rgba(255,255,255,.08) 48%, transparent 56%),
        linear-gradient(180deg, rgba(255,255,255,.055), transparent 22%, transparent 78%, rgba(0,0,0,.18));
    mix-blend-mode: screen;
    opacity: .28;
    transform: translateX(-65%);
    animation: ekgMonitorSweep 10.6s linear infinite;
}

.intro-ekg::after,
.hero-ekg::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        180deg,
        rgba(255,255,255,.035) 0,
        rgba(255,255,255,.035) 1px,
        transparent 1px,
        transparent 5px
    );
    opacity: .2;
}

.ekg-path {
    stroke-width: 3.7;
    filter:
        drop-shadow(0 0 2px rgba(255, 255, 255, .55))
        drop-shadow(0 0 8px rgba(239, 68, 68, .88))
        drop-shadow(0 0 18px rgba(239, 68, 68, .38));
}

.intro-ekg .ekg-path {
    stroke-width: 4.1;
}

.ekg-glow {
    stroke-width: 8.5;
    opacity: .64;
    filter: blur(4px);
}

.ekg-spark {
    stroke-width: 1.5;
    opacity: .9;
}

.bike-line {
    stroke-width: 4.2;
    filter:
        drop-shadow(0 0 3px rgba(255, 255, 255, .35))
        drop-shadow(0 0 12px rgba(239, 68, 68, .7));
}

.bike-glow {
    stroke-width: 9;
    opacity: .38;
    filter: blur(4px);
}

.intro-ekg .ekg-bike,
.hero-ekg .ekg-bike {
    right: 18px;
    bottom: 18px;
    width: clamp(180px, 25%, 225px);
}

@keyframes ekgMonitorSweep {
    0% { transform: translateX(-70%); opacity: 0; }
    12% { opacity: .32; }
    58% { transform: translateX(55%); opacity: .32; }
    100% { transform: translateX(90%); opacity: 0; }
}

@media (max-width: 720px) {
    .intro-ekg,
    .hero-ekg {
        height: 112px;
        background-size: 28px 28px, 28px 28px, auto, auto;
    }

    .intro-ekg .ekg-bike,
    .hero-ekg .ekg-bike {
        right: 8px;
        bottom: 17px;
        width: 132px;
    }

    .ekg-path {
        stroke-width: 3.3;
    }

    .ekg-glow {
        stroke-width: 7;
    }
}

/* Mobile performance: keep the page responsive on slower phones. */
.hero-card picture {
    display: block;
}

@media (max-width: 720px) {
    .intro-lock {
        overflow: hidden;
        height: 100%;
    }

    .hero-card,
    .hero-steps span,
    .glass,
    .contact-form,
    .status-box {
        box-shadow: none !important;
        backdrop-filter: none !important;
    }
}

/* AZTEC scanner must sit above the page, form skin and chat widget. */
body.aztec-scanner-active {
    overflow: hidden !important;
}

body.aztec-scanner-active .km-chat,
body.aztec-scanner-active .km-chat-btn,
body.aztec-scanner-active .km-chat-hint,
body.aztec-scanner-active .km-assistant-mascot,
body.aztec-scanner-active .km-assistant-bubble,
body.aztec-scanner-active .km-mascot-sticker,
body.aztec-scanner-active [class^="km-"],
body.aztec-scanner-active [class*=" km-"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Mobile EKG polish: keep the bike sharp and stop it from stretching the pulse line. */
@media (max-width: 720px) {
    .hero-ekg {
        width: min(100%, calc(100vw - 32px));
        height: 132px !important;
        margin: 22px auto 10px;
        border-radius: 14px;
        background-size: 24px 24px, 24px 24px, auto, auto;
    }

    .hero-ekg .ekg-line {
        width: 132%;
        left: -16%;
        right: auto;
        transform: translateY(-2px);
    }

    .hero-ekg .ekg-path {
        stroke-width: 3.15;
    }

    .hero-ekg .ekg-glow {
        stroke-width: 6.4;
        filter: blur(3px);
    }

    .hero-ekg .ekg-spark {
        stroke-width: 1.25;
    }

    .hero-ekg .ekg-bike {
        width: 96px !important;
        right: 18px !important;
        bottom: 30px !important;
        transform: none !important;
    }

    .hero-ekg .bike-line {
        stroke-width: 3.7;
    }

    .hero-ekg .bike-glow {
        stroke-width: 7;
        filter: blur(3px);
    }
}

@media (max-width: 420px) {
    .hero-ekg {
        height: 126px !important;
    }

    .hero-ekg .ekg-bike {
        width: 86px !important;
        right: 14px !important;
        bottom: 32px !important;
    }
}

.contact-form .aztec-scanner.is-open,
.aztec-scanner.is-open {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    width: 100vw !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #050506 !important;
    box-shadow: none !important;
    overflow: auto !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: 10px !important;
}

.aztec-scanner.is-open .aztec-scanner-head {
    display: block !important;
    align-items: start !important;
    gap: 10px !important;
}

.aztec-scanner.is-open .aztec-open-button {
    display: none !important;
}

.aztec-scanner.is-open .aztec-scanner-head strong {
    color: #fff !important;
}

.aztec-scanner.is-open .aztec-scanner-head span,
.aztec-scanner.is-open .aztec-frame-hint,
.aztec-scanner.is-open .aztec-status,
.aztec-scanner.is-open .aztec-debug {
    color: #d4d4d8 !important;
}

.aztec-scanner.is-open .aztec-debug {
    display: none !important;
}

.aztec-scanner.is-open .aztec-live-panel {
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) auto auto;
    min-height: 0;
    gap: 10px !important;
}

.aztec-scanner.is-open .aztec-video-wrap {
    position: relative;
    min-height: 0;
}

.aztec-scanner.is-open .aztec-frame-hint {
    display: none !important;
}

.aztec-scanner.is-open .aztec-video {
    width: 100% !important;
    height: min(72dvh, 820px) !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    border-radius: 14px !important;
    background: #000 !important;
    object-fit: contain !important;
}

.aztec-scanner.is-open .aztec-video-message {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(5, 5, 6, .78);
    color: #fff;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .26);
}

.aztec-video-message[data-kind="ok"] {
    background: rgba(22, 163, 74, .88);
}

.aztec-video-message[data-kind="error"] {
    background: rgba(220, 38, 38, .88);
}

.aztec-scanner.is-open .aztec-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    position: sticky;
    bottom: 0;
    padding: 8px 0 0;
    background: linear-gradient(180deg, rgba(5,5,6,0), #050506 34%);
}

.aztec-scanner.is-open .aztec-actions .btn,
.aztec-scanner.is-open .aztec-file-button,
.aztec-scanner.is-open .aztec-open-button {
    width: 100% !important;
    min-height: 44px !important;
    border: 1px solid rgba(255,255,255,0.24) !important;
    background: rgba(255,255,255,0.10) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.aztec-scanner.is-open .aztec-actions .btn:disabled {
    opacity: 0.4;
}

@media (max-width: 520px) {
    .aztec-scanner.is-open .aztec-video {
        height: 66dvh !important;
    }

    .aztec-scanner.is-open .aztec-actions {
        grid-template-columns: 1fr;
    }
}

/* Visit page */
.visit-page {
    min-height: 100vh;
    background: #f3f6fb;
    color: #0f172a;
}

.visit-shell {
    width: min(100% - 32px, 980px);
    margin: 0 auto;
    padding: 22px 0 56px;
}

.visit-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 26px;
}

.visit-back,
.visit-brand {
    color: #0f172a;
    text-decoration: none;
    font-weight: 800;
}

.visit-back {
    color: #64748b;
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.visit-back:hover,
.visit-back:focus {
    color: #0f172a;
}

.visit-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.visit-brand span {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: #fff;
}

.visit-hero,
.visit-form-section {
    border-radius: 28px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .08);
    padding: clamp(22px, 4vw, 38px);
}

.visit-robot {
    width: 96px;
    margin-bottom: 18px;
}

.visit-robot-image {
    display: block;
    width: clamp(92px, 10vw, 132px);
    height: auto;
    filter: drop-shadow(0 16px 24px rgba(15, 23, 42, .16));
    transform-origin: 50% 100%;
    animation: visitMascotIdle 4.2s ease-in-out infinite;
}

@keyframes visitMascotIdle {
    0%,
    100% {
        transform: translateY(0) rotate(-1deg) scale(1);
    }

    42% {
        transform: translateY(-6px) rotate(1.5deg) scale(1.025);
    }

    62% {
        transform: translateY(-3px) rotate(-.5deg) scale(1.01);
    }
}

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

.visit-robot-head {
    height: 70px;
    border-radius: 28px;
    background: #0f172a;
    border: 6px solid #e2e8f0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.visit-robot-head span,
.visit-robot-head i {
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: #22d3ee;
    box-shadow: 0 0 18px rgba(34, 211, 238, .9);
}

.visit-robot-body {
    width: 58px;
    height: 38px;
    margin: -4px auto 0;
    border-radius: 0 0 18px 18px;
    background: #dc2626;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 13px;
}

.visit-eyebrow {
    margin: 0 0 10px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.visit-intro h1,
.visit-form-head h2 {
    margin: 0 0 12px;
    color: #0f172a;
    letter-spacing: 0;
}

.visit-intro h1 {
    font-size: clamp(36px, 7vw, 64px);
    line-height: 1;
}

.visit-intro p,
.visit-form-head p {
    max-width: 720px;
    color: #475569;
    font-size: 17px;
    line-height: 1.7;
}

.visit-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}

.visit-choice {
    text-align: left;
    border: 1px solid #dbe3ef;
    border-radius: 20px;
    background: #f8fafc;
    padding: 22px;
    color: #0f172a;
    cursor: pointer;
    transition: .18s ease;
}

.visit-choice:hover,
.visit-choice:focus {
    transform: translateY(-2px);
    border-color: #dc2626;
    box-shadow: 0 18px 36px rgba(15, 23, 42, .10);
    outline: none;
}

.visit-choice span {
    display: block;
    color: #dc2626;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.visit-choice strong {
    display: block;
    margin-top: 10px;
    font-size: 24px;
}

.visit-choice small {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.55;
}

.visit-choice.is-accent {
    background: #fff7f7;
    border-color: #fecaca;
}

.visit-form-section {
    margin-top: 20px;
}

.visit-form {
    margin-top: 18px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.visit-section-card {
    margin-top: 14px;
    padding: 18px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.visit-device-alert {
    border-color: #fecaca;
    background: #fff5f5;
}

.visit-device-alert strong {
    display: block;
    margin-bottom: 8px;
    color: #b91c1c;
    font-size: 19px;
}

.visit-device-alert p {
    margin: 0;
    color: #475569;
    line-height: 1.55;
}

.visit-warning,
.visit-error {
    border-color: #fecaca;
    background: #fff1f2;
}

.visit-warning strong,
.visit-error {
    color: #991b1b;
}

.visit-warning strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.visit-warning p {
    margin: 0;
    color: #7f1d1d;
    line-height: 1.6;
}

.visit-warning p + p {
    margin-top: 10px;
}

.visit-message {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.visit-confirm-section {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

.visit-code-form input[name="sms_code"] {
    max-width: 220px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-align: center;
}

.visit-confirm-check {
    align-items: flex-start;
}

.visit-resend-form {
    margin-top: 12px;
}

.visit-thanks-card {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    margin-top: 46px;
    padding: 34px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.10);
}

.visit-thanks-robot {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 20px;
    background:
        linear-gradient(160deg, rgba(254, 226, 226, 0.75), rgba(255, 255, 255, 0.85)),
        #f8fafc;
    overflow: hidden;
}

.visit-thanks-robot img {
    width: min(82%, 245px);
    height: auto;
    transform: translateY(8px);
}

.visit-thanks-bubble {
    position: absolute;
    top: 24px;
    left: 22px;
    right: 22px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.20);
}

.visit-thanks-bubble::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 20px;
    height: 20px;
    background: #0f172a;
    transform: translateX(-50%) rotate(45deg);
}

.visit-thanks-content h1 {
    margin: 6px 0 14px;
    color: #0f172a;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
}

.visit-thanks-content p {
    max-width: 620px;
    color: #334155;
    font-size: 18px;
    line-height: 1.7;
}

.visit-thanks-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0;
}

.visit-thanks-steps div {
    min-height: 116px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.visit-thanks-steps strong {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 999px;
    background: #dc2626;
    color: #ffffff;
    font-size: 15px;
}

.visit-thanks-steps span {
    display: block;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.35;
}

.visit-thanks-button {
    width: fit-content;
    min-width: 220px;
}

.visit-section-card h3 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 18px;
}

.visit-form .form-grid {
    gap: 12px;
}

.visit-form label {
    color: #0f172a;
}

.visit-form input,
.visit-form textarea,
.visit-form select {
    background: #fff;
    border-color: #cbd5e1;
    color: #0f172a;
}

.visit-wide {
    grid-column: 1 / -1;
}

.visit-rodo {
    margin-top: 16px;
    color: #334155;
}

.visit-submit {
    margin-top: 18px;
}

.visit-page .aztec-scanner {
    margin: 0;
    background: #fff;
    border-color: #fecaca;
}

@media (max-width: 760px) {
    .visit-shell {
        width: min(100% - 24px, 980px);
        padding-top: 16px;
    }

    .visit-topbar {
        margin-bottom: 16px;
    }

    .visit-hero,
    .visit-form-section {
        border-radius: 22px;
    }

    .visit-choice-grid {
        grid-template-columns: 1fr;
    }

    .visit-choice strong {
        font-size: 21px;
    }

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

    .visit-thanks-card {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 20px;
        padding: 18px;
        border-radius: 22px;
    }

    .visit-thanks-robot {
        min-height: 260px;
    }

    .visit-thanks-content h1 {
        font-size: 38px;
    }

    .visit-thanks-content p {
        font-size: 16px;
    }

    .visit-thanks-steps {
        grid-template-columns: 1fr;
    }

    .visit-thanks-steps div {
        min-height: 0;
    }

    .visit-thanks-button {
        width: 100%;
    }
}
