﻿:root {
    color-scheme: light dark;
    --red: #e31b2b;
    --ink: light-dark(#191a1d,#f7f7f8);
    --muted: light-dark(#646b76,#aeb4bf);
    --bg: light-dark(#f5f5f6,#101216);
    --panel: light-dark(#fff,#1a1d23);
    --line: light-dark(#e1e3e7,#343840);
    --soft: light-dark(#fff0f1,#321d22)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif
}

button, input, select, textarea {
    font: inherit
}

button, a {
    cursor: pointer
}

a {
    color: inherit
}

.root {
    min-height: 100vh;
    background-color: var(--bg);
    border-radius: 0
}

.topbar {
    background: #15171b;
    color: #f8f8f8;
    padding: 8px 5vw;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px
}

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 5vw;
    background: var(--panel);
    border-bottom: 1px solid var(--line)
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -.04em;
    font-size: 19px
}

.brandmark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--red);
    color: #fff;
    font-weight: 950;
    font-style: italic
}

.brand small {
    display: block;
    font-size: 10px;
    letter-spacing: .15em;
    color: var(--muted)
}

.navlinks {
    display: flex;
    align-items: center;
    gap: 22px
}

    .navlinks a {
        text-decoration: none;
        font-size: 13px;
        font-weight: 750
    }

.btn {
    border: 0;
    border-radius: 10px;
    background: var(--red);
    color: white;
    padding: 12px 17px;
    font-weight: 800;
    box-shadow: 0 7px 18px #e31b2b20
}

    .btn:hover {
        filter: brightness(1.06);
        transform: translateY(-1px)
    }

    .btn.secondary {
        background: transparent;
        border: 1px solid var(--line);
        box-shadow: none;
        color: var(--ink)
    }

    .btn.dark {
        background: #17191d
    }

    .btn.small {
        padding: 9px 12px;
        font-size: 12px
    }

.hero {
    padding: 58px 5vw;
    background: radial-gradient(ellipse at 80% 35%,#e31b2b2b,transparent 33%),linear-gradient(120deg,light-dark(#fff,#191b20),light-dark(#f1f2f4,#111317))
}

.hero-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 35px;
    align-items: center
}

.eyebrow {
    font-size: 11px;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 900
}

.hero h1 {
    font-size: clamp(43px,5.5vw,76px);
    line-height: .96;
    letter-spacing: -.065em;
    margin: 17px 0
}

    .hero h1 span {
        color: var(--red)
    }

.hero p {
    max-width: 520px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8
}

.actions {
    display: flex;
    gap: 11px;
    flex-wrap: wrap;
    margin: 24px 0
}

.stats {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 28px;
    color: var(--muted);
    font-size: 12px
}

    .stats b {
        display: block;
        color: var(--ink);
        font-size: 14px
    }

.hero-bike {
    position: relative;
    min-height: 320px;
    display: grid;
    place-items: center
}

    .hero-bike:before {
        content: "";
        position: absolute;
        width: min(80%,340px);
        aspect-ratio: 1;
        border-radius: 50%;
        background: linear-gradient(140deg,#ef2737,#710d19);
        right: 7%;
        top: 0
    }

    .hero-bike svg {
        position: relative;
        width: 100%;
        max-width: 540px;
        filter: drop-shadow(0 18px 14px #0005);
        z-index: 1
    }

.section {
    max-width: 1320px;
    margin: auto;
    padding: 62px 5vw
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 25px
}

.section h2 {
    font-size: clamp(28px,3vw,40px);
    letter-spacing: -.045em;
    line-height: 1.1;
    margin: 8px 0
}

.sub {
    color: var(--muted);
    line-height: 1.7
}

.cards {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 17px
}

.bike-card, .info-card {
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--panel);
    overflow: hidden
}

.bike-visual {
    height: 190px;
    display: grid;
    place-items: center;
    position: relative;
    background: linear-gradient(140deg,light-dark(#f1f2f4,#282b32),light-dark(#e4e6e9,#1b1e24))
}

    .bike-visual svg {
        width: 95%;
        max-height: 175px
    }

    .bike-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

.tag {
    position: absolute;
    top: 13px;
    left: 13px;
    background: var(--soft);
    color: var(--red);
    border-radius: 7px;
    padding: 6px 9px;
    font-size: 10px;
    font-weight: 900
}

.bike-info {
    padding: 18px
}

    .bike-info h3 {
        margin: 0 0 6px;
        font-size: 19px
    }

    .bike-info p {
        margin: 0;
        color: var(--muted);
        font-size: 13px;
        min-height: 40px
    }

.specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0
}

    .specs span {
        border: 1px solid var(--line);
        border-radius: 6px;
        padding: 5px 7px;
        color: var(--muted);
        font-size: 10px
    }

.card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 14px
}

.price {
    font-weight: 900;
    font-size: 14px
}

    .price small {
        display: block;
        color: var(--muted);
        font-size: 9px;
        font-weight: 600;
        letter-spacing: .04em
    }

.offer-band {
    background: #17191d;
    color: white;
    padding: 48px 5vw
}

.offer-inner {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr .9fr;
    gap: 28px;
    align-items: center
}

    .offer-inner h2 {
        font-size: clamp(30px,4vw,48px);
        line-height: 1.05;
        letter-spacing: -.05em;
        margin: 12px 0
    }

    .offer-inner p {
        color: #b7bbc3;
        max-width: 540px;
        line-height: 1.8
    }

.offer-art {
    min-height: 210px;
    border-radius: 18px;
    padding: 26px;
    background: linear-gradient(135deg,#ef2737,#700c19);
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

    .offer-art strong {
        font-size: clamp(32px,4vw,50px);
        line-height: 1;
        letter-spacing: -.05em
    }

    .offer-art small {
        font-size: 10px;
        letter-spacing: .15em
    }

.three {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px
}

.info-card {
    padding: 22px
}

.iconbox {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--soft);
    color: var(--red);
    display: grid;
    place-items: center;
    font-size: 20px
}

.info-card h3 {
    margin: 14px 0 6px
}

.info-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 15px
}

.gallery-tile {
    min-height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: var(--panel);
    border: 1px solid var(--line)
}

    .gallery-tile img {
        width: 100%;
        height: 100%;
        min-height: 200px;
        max-height: 300px;
        object-fit: cover;
        display: block;
        transition: transform .25s
    }

    .gallery-tile:hover img {
        transform: scale(1.035)
    }

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #fff;
    padding: 35px 13px 12px;
    background: linear-gradient(transparent,#000c);
    font-weight: 750;
    font-size: 12px
}

.empty {
    grid-column: 1/-1;
    padding: 30px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    text-align: center;
    color: var(--muted)
}

.contact-strip {
    margin: 0 5vw 62px;
    padding: 25px;
    border: 1px solid #e31b2b33;
    border-radius: 18px;
    background: var(--soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

    .contact-strip h2 {
        margin: 0 0 6px
    }

    .contact-strip p {
        margin: 0;
        color: var(--muted)
    }

footer {
    background: #15171b;
    color: #fff;
    padding: 27px 5vw;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 12px
}

    footer span {
        color: #a9afb8
    }

.backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 30;
    background: #0009;
    align-items: center;
    justify-content: center;
    padding: 15px
}

    .backdrop.open {
        display: flex
    }

.modal {
    width: min(640px,100%);
    max-height: 92vh;
    overflow: auto;
    padding: 24px;
    border-radius: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 24px 80px #0005
}

.modal-head {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: start
}

    .modal-head h2 {
        margin: 4px 0
    }

.close {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 7px 10px;
    color: var(--ink)
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 13px 0
}

    .field label {
        font-size: 11px;
        font-weight: 850;
        color: var(--muted)
    }

    .field input, .field textarea, .field select {
        width: 100%;
        padding: 11px 12px;
        border-radius: 9px;
        border: 1px solid var(--line);
        background: var(--bg);
        color: var(--ink);
        outline-color: var(--red)
    }

    .field textarea {
        min-height: 85px;
        resize: vertical
    }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px
}

.note {
    margin: 12px 0;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--bg);
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6
}

.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    display: none;
    max-width: 340px;
    padding: 13px 16px;
    border-radius: 11px;
    background: #17191d;
    color: white;
    box-shadow: 0 10px 30px #0004
}

    .toast.show {
        display: block
    }

.admin-panel {
    display: none
}

    .admin-panel.visible {
        display: block
    }

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 17px 0
}

    .tabs button {
        border: 1px solid var(--line);
        background: var(--bg);
        color: var(--ink);
        border-radius: 8px;
        padding: 8px 10px;
        font-size: 12px
    }

        .tabs button.active {
            background: var(--red);
            border-color: var(--red);
            color: white
        }

.hidden {
    display: none !important
}

.dash {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
    margin: 15px 0
}

.stat {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px
}

    .stat strong {
        display: block;
        font-size: 22px
    }

    .stat span {
        font-size: 10px;
        color: var(--muted)
    }

.rowitem {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px
}

    .rowitem small {
        display: block;
        color: var(--muted);
        margin-top: 4px
    }

.preview-img {
    max-width: 100%;
    max-height: 120px;
    display: block;
    border-radius: 8px;
    margin-top: 8px
}

.fine {
    font-size: 10px;
    color: var(--muted);
    line-height: 1.6;
    margin-top: 14px
}

@media(max-width:850px) {
    .hero-grid, .offer-inner {
        grid-template-columns: 1fr
    }

    .hero-bike {
        min-height: 250px
    }

    .cards {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .navlinks {
        gap: 10px
    }

        .navlinks a:not(.primary-link) {
            display: none
        }

    .three {
        grid-template-columns: 1fr
    }

    .gallery {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .section {
        padding-top: 48px;
        padding-bottom: 48px
    }
}

@media(max-width:560px) {
    .topbar {
        font-size: 9px
    }

    .nav {
        padding: 12px 4vw
    }

    .brand {
        font-size: 15px
    }

    .navlinks .btn {
        padding: 8px;
        font-size: 11px
    }

    .hero {
        padding: 38px 5vw
    }

    .hero-bike {
        min-height: 210px
    }

    .stats {
        gap: 13px
    }

    .cards, .gallery {
        grid-template-columns: 1fr
    }

    .bike-visual {
        height: 205px
    }

    .section-head {
        align-items: start;
        flex-direction: column
    }

    .contact-strip {
        align-items: start;
        flex-direction: column;
        margin-bottom: 40px
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .dash {
        grid-template-columns: 1fr 1fr
    }
}
