:root {
    --bg: #07080a;
    --panel: #101216;
    --panel2: #15181d;
    --text: #f7f7f7;
    --muted: #b7bcc5;
    --red: #e10600;
    --line: #2a2e35;
    --max: 1220px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5
}

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

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

.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(5, 6, 8, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.header-inner {
    max-width: var(--max);
    height: 86px;
    margin: auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 32px
}

.brand {
    width: 76px;
    flex: 0 0 76px
}

.brand img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #fff
}

.main-nav {
    display: flex;
    gap: 28px;
    margin-right: auto
}

.main-nav a {
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em
}

.main-nav a:hover {
    color: var(--red)
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: .88rem
}

.header-contact a {
    display: flex;
    gap: 7px;
    align-items: center
}

.instagram-link svg,
.contact-instagram svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 8px
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    margin: 5px 0
}

.hero {
    min-height: 720px;
    padding-top: 86px;
    display: grid;
    grid-template-columns: minmax(390px, 43%) 1fr;
    overflow: hidden;
    background: #08090b;
    position: relative
}

.hero-text-wrap {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #07080a 0%, #07080a 58%, rgba(7, 8, 10, .98) 72%, rgba(7, 8, 10, .82) 86%, rgba(7, 8, 10, 0) 100%)
}

.hero-copy {
    width: min(520px, calc(100% - 40px));
    margin-left: max(24px, calc((100vw - var(--max))/2 + 22px));
    padding: 70px 0 80px
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--red);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .82rem
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: .94;
    margin: 0;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -.04em
}

.hero-subtitle {
    font-size: 1.28rem;
    margin: 24px 0 30px
}

.hero-subtitle span {
    color: var(--red);
}

.hero-location {
    color: #fff !important;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    border: 1px solid transparent
}

.button-primary {
    background: var(--red);
    color: #fff
}

.button-secondary {
    border-color: #70757d;
    background: rgba(0, 0, 0, .22)
}

.hero-photo {
    position: relative;
    z-index: 1;
    min-width: 0;
    overflow: hidden;
    margin-left: -12vw
}

.hero-photo:after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(7, 8, 10, .98) 0%,
            rgba(7, 8, 10, .88) 18%,
            rgba(7, 8, 10, .45) 34%,
            rgba(7, 8, 10, .12) 48%,
            rgba(7, 8, 10, 0) 60%
        ),
        linear-gradient(
            0deg,
            rgba(7, 8, 10, .42),
            transparent 42%
        );
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 35% center;
    transform: scale(1.01)
}

.quick-services {
    border-top: 2px solid var(--red);
    border-bottom: 1px solid var(--line);
    background: #0b0d10
}

.quick-grid {
    max-width: var(--max);
    margin: auto;
    padding: 20px 22px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0
}

.quick-grid article {
    padding: 6px 18px;
    border-right: 1px solid var(--line)
}

.quick-grid article:last-child {
    border-right: 0
}

.quick-grid strong,
.quick-grid span {
    display: block
}

.quick-grid strong {
    text-transform: uppercase;
    font-size: .86rem
}

.quick-grid span {
    color: var(--muted);
    font-size: .76rem;
    margin-top: 4px
}

.section {
    max-width: var(--max);
    margin: auto;
    padding: 78px 22px
}

/* Zarovnání sekce Co umíme se sekcí Naše práce */
#sluzby {
    max-width: calc(var(--max) + 44px);
}


.section-dark {
    max-width: none;
    background: #090b0e
}

.section-dark>* {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto
}

.section-heading {
    text-align: center;
    margin-bottom: 34px
}

.section-heading h2,
.split-section h2,
.contact-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    text-transform: uppercase;
    margin: 0 0 8px
}

.section-heading p:last-child {
    margin: 0;
    color: var(--muted)
}

/* ===========================
   KARTY SLUŽEB
=========================== */

.service-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.service-card {
    display: grid;
    align-items: stretch;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid #3b4048;
    border-radius: 10px;
    background: #101216;
}

/* Motorka: fotografie vlevo, text vpravo */
.beta-card {
    grid-template-columns: 48% 52%;
}

/* Automobily: text vlevo, fotografie vpravo */
.audi-card {
    grid-template-columns: 52% 48%;
}

.service-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0b0d10;
}

.service-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.service-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Motorka */
.beta-card .service-image {
    grid-column: 1;
    grid-row: 1;
}

.beta-card .service-image img {
    object-position: 60% center;
    transform: scale(1.08);
}

.beta-card .service-content {
    grid-column: 2;
    grid-row: 1;
}

/* Automobily */
.audi-card .service-content {
    grid-column: 1;
    grid-row: 1;
}

.audi-card .service-image {
    grid-column: 2;
    grid-row: 1;
}

.audi-card .service-image img {
    object-position: 42% center;
    transform: scale(1.08);
}

/* Přechod fotografie do textu */
.beta-card .service-image::after {
    background: linear-gradient(
        to right,
        transparent 90%,
        #111318 100%
    );
}

.audi-card .service-image::after {
    background: linear-gradient(
        to left,
        transparent 90%,
        #111318 100%
    );
}

.service-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 24px;
}

.service-content h3 {
    margin: 0 0 22px;
    font-size: 2rem;
    text-transform: uppercase;
}

.service-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-content li {
    margin: 10px 0;
    color: #e5e7eb;
}

.service-content li::before {
    content: "✓";
    margin-right: 9px;
    color: var(--red);
    font-weight: 900;
}

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

.work-card {
    border: 1px solid var(--line);
    background: #101216;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.work-card strong {
    display: block;
    padding: 16px;
    text-align: center;
    font-size: 1.05rem;
}

.work-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .35s ease;
}

.work-card:hover img {
    transform: scale(1.05);
}

.instagram-cta-wrap {
    text-align: center;
    margin-top: 26px
}

.instagram-cta {
    margin-inline: auto
}

.split-section {
    display: grid;
    grid-template-columns: .75fr 1.45fr;
    gap: 22px
}

.review-box,
.form-box {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 28px;
    border-radius: 8px
}

.review-card {
    margin-top: 20px;
    padding: 24px;
    border: 1px solid var(--line);
    background: #0b0d10
}

.stars {
    color: var(--red);
    font-size: 1.6rem;
    letter-spacing: .1em
}

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

.form-box label {
    display: grid;
    gap: 6px;
    font-size: .84rem;
    color: var(--muted);
    margin-bottom: 12px
}

.form-box input,
.form-box select,
.form-box textarea {
    width: 100%;
    background: #0b0d10;
    color: #fff;
    border: 1px solid #343942;
    border-radius: 4px;
    padding: 13px
}

.form-submit {
    width: 100%
}

.form-note {
    color: var(--muted);
    font-size: .78rem;
    margin-bottom: 0
}

.contact-section {
    max-width: var(--max);
    margin: 0 auto 72px;
    padding: 28px 22px;
    display: grid;
    grid-template-columns: 1fr 1.2fr .8fr;
    gap: 22px;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 8px
}

.contact-section > div:first-child {
    align-self: center;
}

.contact-section address {
    display: grid;
    gap: 10px;
    font-style: normal
}

.contact-section address a:hover {
    color: var(--red)
}

.contact-instagram {
    display: flex;
    align-items: center;
    gap: 8px
}

.contact-instagram svg {
    width: 18px;
    height: 18px
}

.map-card {
    height: 320px;
    border: 1px solid #30343b;
    border-radius: 6px;
    overflow: hidden;
}

.map-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.contact-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center
}


.contact-brand {
    width: 100%;
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
}

.contact-brand img {
    margin-left: auto;
    margin-right: auto;
}

.contact-brand img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #fff;
    margin-bottom: 16px
}

.contact-brand p {
    color: var(--muted)
}

.site-footer {
    max-width: var(--max);
    margin: auto;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    color: #8e949e;
    border-top: 1px solid var(--line);
    font-size: .85rem
}

.mobile-bar {
    display: none
}


/* Menší mezery mezi sekcemi */
#sluzby {
    padding-bottom: 40px;
}

#prace {
    padding-top: 40px;
    padding-bottom: 40px;
}

#poptavka {
    padding-top: 40px;
}

@media (max-width:1000px) {
    .header-contact span {
        display: none
    }

    .hero {
        grid-template-columns: 44% 56%;
        min-height: 650px
    }

    .hero-copy {
        margin-left: 24px
    }

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

    .quick-grid article {
        border-bottom: 1px solid var(--line)
    }

    .quick-grid article:last-child {
        grid-column: 1/-1
    }


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

    .contact-section {
        grid-template-columns: 1fr 1fr
    }

    .contact-brand {
        grid-column: 1/-1
    }
}

@media (max-width:760px) {
    body {
        padding-bottom: 60px
    }

    .site-header {
        position: fixed
    }

    .header-inner {
        height: 72px;
        padding: 0 14px
    }

    .brand,
    .brand img {
        width: 58px;
        height: 58px
    }

    .menu-toggle {
        display: block;
        margin-left: auto
    }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        background: #08090b;
        padding: 24px;
        border-bottom: 1px solid var(--line)
    }

    .main-nav.open {
        display: flex
    }

    .header-contact {
        display: none
    }

    .hero {
        padding-top: 72px;
        display: flex;
        flex-direction: column;
        min-height: auto
    }

    .hero-text-wrap {
        order: 1;
        background: #07080a
    }

    .hero-copy {
        width: auto;
        margin: 0;
        padding: 46px 20px 28px
    }

    .hero h1 {
        font-size: clamp(2.7rem, 14vw, 4.4rem)
    }

    .hero-subtitle {
        font-size: 1rem
    }

    .hero-photo {
        order: 2;
        height: 360px;
        margin-left: 0
    }

    .hero-photo:after {
        background: linear-gradient(0deg, rgba(7, 8, 10, .58), transparent 48%)
    }

    .hero-photo img {
        object-position: 52% center;
        transform: scale(1.02)
    }

    .quick-grid {
        grid-template-columns: 1fr 1fr;
        padding: 12px
    }

    .quick-grid article {
        padding: 12px
    }

    .quick-grid article:last-child {
        grid-column: 1/-1
    }

    .section {
        padding: 58px 16px
    }

    .service-cards,
    .split-section,
    .contact-section {
        grid-template-columns: 1fr;
    }

    /* Mobil: nejdřív nadpis a seznam, fotografie až pod nimi */
    .service-card,
    .beta-card,
    .audi-card {
        display: flex !important;
        flex-direction: column !important;
        min-height: auto;
    }

    .beta-card .service-content,
    .audi-card .service-content,
    .service-content {
        order: 1 !important;
        grid-column: auto !important;
        grid-row: auto !important;
        width: 100%;
        padding: 24px 20px;
    }

    .beta-card .service-image,
    .audi-card .service-image,
    .service-image {
        order: 2 !important;
        grid-column: auto !important;
        grid-row: auto !important;
        width: 100%;
        height: 230px;
    }



    .work-grid {
        display: flex;
        align-items: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 12px;
    }

    .work-card {
        display: flex;
        flex: 0 0 78vw;
        flex-direction: column;
        width: 78vw;
        min-width: 78vw;
        height: auto;
        align-self: flex-start;
        scroll-snap-align: start;
    }

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

    .contact-section {
        margin: 0 16px 36px;
        padding: 22px
    }

    .contact-brand {
        grid-column: auto
    }

    .site-footer {
        padding: 18px 16px 28px
    }

    .mobile-bar {
        position: fixed;
        z-index: 1100;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        height: 58px;
        background: #090a0c;
        border-top: 1px solid #3b4048
    }

    .mobile-bar a {
        display: flex;
        align-items: center;
        justify-content: center;
        text-transform: uppercase;
        font-size: .76rem;
        font-weight: 800;
        border-right: 1px solid #2b2f35
    }

    .mobile-bar a:last-child {
        border-right: 0;
        background: var(--red)
    }
    .hero-location {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.95em;
    color: #fff;
    font-weight: 600;
}


    /* Mobil: galerie Naše práce */
    .work-card img {
        flex: 0 0 280px;
        width: 100%;
        height: 280px;
        object-fit: cover;
        object-position: center;
        transform: none;
    }

    .work-card strong {
        flex: 0 0 auto;
        margin: 0;
    }

    .work-card:first-child img {
        object-position: center center;
    }

    /* Mobil: menší mapa */
    .map-card {
        width: 100%;
        height: 105px;
        min-height: 105px;
        align-self: center;
    }

    .map-card iframe {
        width: 100%;
        height: 105px;
        min-height: 105px;
    }

    /* Mobil: logo a text přesně na střed */
    .contact-brand {
        width: 100%;
        grid-column: 1;
        justify-self: center;
        align-items: center;
        text-align: center;
        margin: 0 auto;
    }

    .contact-brand img {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-brand p {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

}