/* =========================================================
   Leskomat — jednostránková prezentace
   Paleta vychází z loga: černá, grafit, metalická stříbrná, zlatý akcent
   ========================================================= */

:root {
    --black: #08090a;
    --graphite-900: #0b0c0e;
    --graphite-800: #121316;
    --graphite-700: #191b1f;
    --graphite-600: #23262b;
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .16);

    --silver: #d7dade;
    --silver-dim: #9aa0a8;
    --silver-faint: #6d737b;

    --gold: #f0b429;
    --gold-deep: #d29208;
    --gold-soft: rgba(240, 180, 41, .14);

    --radius: 14px;
    --radius-lg: 22px;
    --maxw: 1180px;
    --shadow: 0 24px 60px rgba(0, 0, 0, .55);

    --ease: cubic-bezier(.22, .8, .3, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--silver);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Obrázky se servírují jako <picture> s AVIF/WebP a PNG fallbackem. Wrapper se v layoutu
   nesmí projevit — rozměry i pozici řídí vždy vnitřní <img>. */
picture {
    display: contents;
}

h1, h2, h3 {
    color: #fff;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0 0 .5em;
    font-weight: 700;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color .2s var(--ease);
}

a:hover {
    color: #ffd166;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--gold);
    color: #000;
    padding: 10px 18px;
    font-weight: 600;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
}

.text-gradient {
    background: linear-gradient(100deg, #fff 0%, var(--silver) 30%, var(--gold) 75%, var(--gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 12px;
    font-weight: 600;
    color: var(--silver-faint);
    margin-bottom: 14px;
}

.eyebrow--gold {
    color: var(--gold);
}

/* ---------- Tlačítka ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border: 1px solid transparent;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .01em;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}

.btn--primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    color: #14100a;
    box-shadow: 0 10px 30px rgba(240, 180, 41, .22);
}

.btn--primary:hover {
    color: #14100a;
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(240, 180, 41, .32);
}

.btn--ghost {
    background: rgba(255, 255, 255, .03);
    border-color: var(--line-strong);
    color: var(--silver);
}

.btn--ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .06);
}

.btn--sm {
    padding: 11px 22px;
    font-size: 14px;
}

.btn--block {
    width: 100%;
}

/* ---------- Header ---------- */

.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
    border-bottom: 1px solid transparent;
}

.header.is-stuck {
    background: rgba(8, 9, 10, .82);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}

.header__logo img {
    width: 160px;
    height: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav > a:not(.btn) {
    color: var(--silver-dim);
    font-size: 15px;
    font-weight: 500;
}

.nav > a:not(.btn):hover {
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    background: none;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 1.5px;
    background: var(--silver);
    transition: transform .25s var(--ease), opacity .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 130px 0 70px;
    overflow: hidden;
    background: radial-gradient(120% 90% at 70% 10%, #16181c 0%, var(--black) 60%);
}

.hero__glow {
    position: absolute;
    width: 900px;
    height: 900px;
    right: -180px;
    top: -220px;
    background: radial-gradient(circle, rgba(240, 180, 41, .13) 0%, transparent 62%);
    pointer-events: none;
}

.hero__grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(80% 60% at 40% 40%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(80% 60% at 40% 40%, #000 0%, transparent 75%);
    opacity: .5;
    pointer-events: none;
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 56px;
    align-items: center;
}

.hero__title {
    font-size: clamp(36px, 4.6vw, 58px);
    font-weight: 800;
    margin-bottom: 22px;
    text-wrap: balance;
}

.hero__subtitle {
    font-size: clamp(17px, 2vw, 21px);
    color: var(--silver-dim);
    max-width: 30ch;
    margin-bottom: 36px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 52px;
}

.hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 42px;
    list-style: none;
    margin: 0;
    padding: 26px 0 0;
    border-top: 1px solid var(--line);
}

.hero__facts strong {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
}

.hero__facts span {
    font-size: 13px;
    color: var(--silver-faint);
}

.hero__visual-note {
    text-align: center;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--silver-faint);
    margin: 28px 0 0;
}

/* ---------- CSS vizualizace boxu ---------- */

.locker {
    position: relative;
    max-width: 420px;
    margin-inline: auto;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.locker__banner {
    background: linear-gradient(180deg, var(--graphite-700), var(--graphite-800));
    border: 1px solid var(--line-strong);
    border-radius: 12px 12px 4px 4px;
    padding: 14px 18px;
    text-align: center;
    box-shadow: 0 0 40px rgba(240, 180, 41, .18);
}

.locker__banner-brand {
    display: block;
    font-weight: 800;
    letter-spacing: .22em;
    font-size: 18px;
    color: #fff;
}

.locker__banner-claim {
    display: block;
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--gold);
    margin-top: 2px;
}

.locker__body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    padding: 14px;
    margin-top: 10px;
    background: linear-gradient(160deg, var(--graphite-700) 0%, var(--graphite-900) 100%);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.locker__cells {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.cell {
    height: 54px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, .13);
    background: linear-gradient(150deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .02) 45%, rgba(0, 0, 0, .35) 100%);
    position: relative;
}

.cell::after {
    content: '';
    position: absolute;
    right: 6px;
    top: 50%;
    width: 3px;
    height: 12px;
    border-radius: 2px;
    background: var(--silver-faint);
    transform: translateY(-50%);
}

.cell--wide {
    grid-column: 1 / -1;
    height: 46px;
}

.cell--lit {
    border-color: rgba(240, 180, 41, .5);
    box-shadow: inset 0 0 22px rgba(240, 180, 41, .2), 0 0 18px rgba(240, 180, 41, .14);
}

.cell--lit::after {
    background: var(--gold);
}

.locker__side {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.locker__screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: linear-gradient(165deg, #0f1114, #05060700);
    background-color: #0a0c0e;
    padding: 12px 10px;
    box-shadow: inset 0 0 30px rgba(240, 180, 41, .07);
}

.locker__screen-line {
    display: block;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .22);
    margin-bottom: 7px;
}

.locker__screen-line--short {
    width: 55%;
    background: var(--gold-soft);
    margin-bottom: 14px;
}

.locker__screen-tiles {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 6px;
}

.locker__screen-tiles i {
    display: block;
    min-height: 26px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
}

.locker__screen-tiles i:first-child {
    background: var(--gold-soft);
    border-color: rgba(240, 180, 41, .35);
}

.locker__terminal {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: var(--graphite-800);
}

.locker__terminal-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

.locker__terminal-label {
    font-size: 10px;
    letter-spacing: .2em;
    color: var(--silver-faint);
}

.locker__base {
    height: 10px;
    margin: 0 30px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .07), transparent);
}

/* ---------- Sekce ---------- */

.section {
    padding: clamp(72px, 10vw, 130px) 0;
    position: relative;
}

.section--alt {
    background: linear-gradient(180deg, var(--graphite-900), var(--black));
    border-block: 1px solid var(--line);
}

.section__head {
    max-width: 640px;
    margin-bottom: 56px;
}

.section__title {
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 700;
}

.section__lead {
    color: var(--silver-dim);
    margin: 0;
}

/* ---------- Kroky ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 36px 30px 30px;
    background: linear-gradient(165deg, var(--graphite-800), var(--graphite-900));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: border-color .3s var(--ease), transform .3s var(--ease);
}

.step:hover {
    border-color: rgba(240, 180, 41, .35);
    transform: translateY(-4px);
}

.step__num {
    position: absolute;
    top: 22px;
    right: 26px;
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, .05);
}

.step__icon,
.card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    border-radius: 13px;
    background: var(--gold-soft);
    border: 1px solid rgba(240, 180, 41, .28);
    color: var(--gold);
}

.step__icon svg,
.card__icon svg {
    width: 24px;
    height: 24px;
}

.step h3,
.card h3 {
    font-size: 19px;
}

.step p,
.card p {
    color: var(--silver-dim);
    font-size: 15px;
    margin: 0;
}

/* ---------- Karty ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.cards--3 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    padding: 32px 28px;
    background: rgba(255, 255, 255, .022);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}

.card:hover {
    background: rgba(255, 255, 255, .045);
    border-color: var(--line-strong);
    transform: translateY(-4px);
}

.card--partner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 36px 32px;
}

.card--partner h3 {
    margin: 0;
    font-size: 21px;
}

.link-arrow {
    margin-top: auto;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.link-arrow::after {
    content: '→';
    transition: transform .2s var(--ease);
}

.link-arrow:hover::after {
    transform: translateX(4px);
}

/* ---------- Sortiment ---------- */

.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product {
    padding: 28px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(160deg, var(--graphite-800), transparent);
    transition: border-color .3s var(--ease), transform .3s var(--ease);
}

.product:hover {
    border-color: rgba(240, 180, 41, .3);
    transform: translateY(-3px);
}

.product__tag {
    display: inline-block;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-soft);
    border-radius: 100px;
    padding: 4px 12px;
    margin-bottom: 16px;
}

.product h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.product p {
    margin: 0;
    font-size: 14px;
    color: var(--silver-dim);
}

/* ---------- Galerie vizualizací ---------- */

/* Mřížka o 6 sloupcích: běžný snímek zabírá 2 (tři vedle sebe), širokoúhlý celou šířku. */
.gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
}

.gallery > * {
    min-width: 0;
}

.shot {
    margin: 0;
    grid-column: span 2;
}

/* Přes celou šířku galerie — pro širokoúhlé rendery. */
.shot--wide {
    grid-column: 1 / -1;
}

.shot img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
}

.shot--wide img {
    aspect-ratio: 16 / 9;
}

.shot figcaption {
    margin-top: 14px;
    font-size: 14px;
    color: var(--silver-dim);
}

/* ---------- O projektu ---------- */

.about {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 60px;
    align-items: start;
}

.about__text p:last-child {
    color: var(--silver-dim);
    font-size: 18px;
    margin: 0;
}

.notice {
    padding: 34px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(240, 180, 41, .28);
    background: linear-gradient(165deg, rgba(240, 180, 41, .08), transparent 70%);
}

.notice__lead {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.notice p:not(.notice__lead):not(.eyebrow) {
    color: var(--silver-dim);
    font-size: 15px;
}

/* ---------- Kontakt ---------- */

.contact {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 60px;
    align-items: start;
}

/* Varianta bez formuláře — jen e-mail, vycentrovaná na střed stránky. */
.contact--simple {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.contact__aside p {
    color: var(--silver-dim);
}

.contact__mail {
    display: inline-block;
    margin-top: 14px;
    padding: 16px 34px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.01em;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: linear-gradient(165deg, var(--graphite-800), var(--graphite-900));
    transition: border-color .3s var(--ease), transform .3s var(--ease);
}

.contact__mail:hover {
    border-color: rgba(240, 180, 41, .45);
    transform: translateY(-2px);
}

.contact__list {
    list-style: none;
    padding: 0;
    margin: 34px 0 0;
    display: grid;
    gap: 20px;
}

.contact__list li {
    padding-left: 16px;
    border-left: 2px solid var(--gold);
}

.contact__label {
    display: block;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--silver-faint);
    margin-bottom: 2px;
}

.contact__list a {
    font-size: 18px;
    font-weight: 600;
}

.form {
    padding: 38px 34px;
    background: linear-gradient(165deg, var(--graphite-800), var(--graphite-900));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--silver-dim);
    margin-bottom: 7px;
}

.field label span {
    color: var(--gold);
}

.field input,
.field textarea {
    width: 100%;
    padding: 13px 15px;
    font: inherit;
    font-size: 15px;
    color: #fff;
    background: rgba(0, 0, 0, .35);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    transition: border-color .2s var(--ease), background .2s var(--ease);
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(0, 0, 0, .5);
}

.field input.is-invalid,
.field textarea.is-invalid {
    border-color: #e5484d;
}

.form__status {
    margin: 16px 0 0;
    font-size: 14px;
    min-height: 21px;
    color: var(--silver-dim);
}

.form__status.is-error {
    color: #ff8a8d;
}

.form__status.is-success {
    color: var(--gold);
}

/* ---------- Footer ---------- */

.footer {
    border-top: 1px solid var(--line);
    background: var(--graphite-900);
    padding: 54px 0;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer__logo {
    width: 140px;
}

.footer__note {
    flex: 1 1 320px;
    margin: 0;
    font-size: 14px;
    color: var(--silver-faint);
    max-width: 46ch;
}

.footer__copy {
    margin: 0;
    font-size: 14px;
    color: var(--silver-faint);
}

/* ---------- Reveal animace ---------- */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Responzivita ---------- */

@media (max-width: 1024px) {
    .hero__inner,
    .about,
    .contact {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero {
        padding-top: 110px;
    }

    .hero__subtitle {
        max-width: none;
    }

    .cards,
    .steps,
    .products {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Dva snímky vedle sebe místo tří. */
    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        inset: 76px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px 26px;
        background: rgba(8, 9, 10, .97);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    }

    .nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav > a:not(.btn) {
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
        font-size: 16px;
    }

    .nav .btn {
        margin-top: 18px;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 16px;
    }

    .cards,
    .cards--3,
    .steps,
    .products,
    .gallery,
    .form__row {
        grid-template-columns: 1fr;
    }

    .shot {
        grid-column: auto;
    }

    .shot--wide img {
        aspect-ratio: 4 / 3;
    }

    .hero__facts {
        gap: 26px;
    }

    .form {
        padding: 28px 22px;
    }

    .btn {
        width: 100%;
    }

    .header__logo img {
        width: 140px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
