/* ==========================================================================
   3D tisk na zakázku – hobby projekt
   Jednoduchý statický web (bez buildu, bez externích knihoven a fontů)
   ========================================================================== */

:root {
    --bg:        #0d1117;
    --bg-soft:   #131a23;
    --card:      #17202b;
    --card-2:    #1d2836;
    --border:    #26313f;
    --text:      #e9eef6;
    --muted:     #9db0c4;
    --accent:    #ff8a3d;
    --accent-2:  #4cc2ff;
    --ok:        #4ade80;
    --warn:      #fbbf24;
    --radius:    16px;
    --radius-sm: 10px;
    --shadow:    0 10px 30px rgba(0, 0, 0, .35);
    --maxw:      1100px;
    --font:      system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
                 Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
    outline: 3px solid var(--accent-2);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #10161f;
    padding: 10px 16px;
    font-weight: 700;
    z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Hlavička / navigace ------------------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13, 17, 23, .82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: .2px;
    white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand small {
    display: block;
    font-weight: 400;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: .3px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 18px;
    margin-left: auto;
    list-style: none;
    padding: 0;
}
.nav-links a {
    color: var(--muted);
    font-size: 15px;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-toggle {
    display: none;
    margin-left: auto;
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
}

/* ---------- Tlačítka ---------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #10161f;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    text-align: center;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 138, 61, .28);
}
.btn:active { transform: translateY(0); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { box-shadow: none; border-color: var(--accent); }
.btn-block { width: 100%; }

/* ---------- Sekce ------------------------------------------------------- */

.section { padding: 84px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
    display: inline-block;
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 14px; }
h1 { font-size: clamp(34px, 6vw, 58px); letter-spacing: -1px; }
h2 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.5px; }
h3 { font-size: 20px; }

.section-head p, .lead { color: var(--muted); font-size: 18px; margin: 0 0 18px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Hero -------------------------------------------------------- */

.hero {
    position: relative;
    padding: 96px 0 88px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.hero::before {
    content: "";
    position: absolute;
    inset: -40% 30% 40% -20%;
    background: radial-gradient(closest-side, rgba(255, 138, 61, .22), transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 20% -30% -40% 50%;
    background: radial-gradient(closest-side, rgba(76, 194, 255, .16), transparent 70%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 span { color: var(--accent); }
.hero p { max-width: 620px; font-size: 19px; color: var(--muted); }
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}
.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 38px;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 15px;
}
.hero-facts li::before { content: "◆"; color: var(--accent); margin-right: 8px; font-size: 11px; }

/* ---------- Karty ------------------------------------------------------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: #33445a; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }
.card-icon { font-size: 30px; line-height: 1; display: block; margin-bottom: 14px; }

/* ---------- Kroky ------------------------------------------------------- */

.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 26px 26px;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -18px;
    left: 24px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #10161f;
    font-weight: 800;
    font-size: 19px;
}
.step h3 { margin-top: 12px; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Barvy filamentu --------------------------------------------- */

.swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    margin: 22px 0 0;
    list-style: none;
}
.swatches li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 15px 8px 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 15px;
}
.dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .28);
    flex: none;
}

.note {
    margin-top: 26px;
    padding: 16px 20px;
    border-left: 3px solid var(--accent);
    background: rgba(255, 138, 61, .07);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--muted);
    font-size: 15px;
}
.note strong { color: var(--text); }

/* ---------- Seznamy ----------------------------------------------------- */

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; color: var(--muted); }
.checks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--ok);
    font-weight: 700;
}

/* ---------- Galerie ----------------------------------------------------- */

.gallery {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.tile {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(150deg, var(--card-2), var(--card));
    display: grid;
    place-items: center;
}
/* Fotka je zpočátku neviditelná – dokud soubor na serveru neexistuje, musí být
   vidět jen placeholder a ne „rozbity“ obrázek. Pozor: nesmí tu být
   display:none ani loading="lazy", prohlížeč by obrázek vůbec nenačetl. */
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.tile.is-loaded img { opacity: 1; }
.tile .ph {
    text-align: center;
    color: #5c6d80;
    font-size: 13px;
    padding: 12px;
}
.tile .ph svg { width: 40px; height: 40px; margin: 0 auto 8px; opacity: .8; }
.tile.is-loaded .ph { display: none; }

/* ---------- FAQ --------------------------------------------------------- */

.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
details {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 20px;
}
details[open] { border-color: #33445a; }
summary {
    cursor: pointer;
    padding: 17px 0;
    font-weight: 600;
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: "+";
    margin-left: auto;
    color: var(--accent);
    font-size: 22px;
    line-height: 1;
    transition: transform .15s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: var(--muted); }

/* ---------- Formulář ---------------------------------------------------- */

.form-wrap {
    display: grid;
    gap: 30px;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr);
    align-items: start;
}
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }

form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.field { margin-bottom: 20px; }
.field > label,
fieldset > legend {
    display: block;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 7px;
}
.req { color: var(--accent); }
.hint { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; }

input[type="text"], input[type="email"], input[type="number"], textarea, select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 16px;
}
input::placeholder, textarea::placeholder { color: #6b7c8f; }
textarea { resize: vertical; min-height: 110px; }
input[type="file"] {
    width: 100%;
    padding: 16px;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-family: inherit;
    font-size: 15px;
}
input[type="file"]::file-selector-button {
    margin-right: 14px;
    padding: 9px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #10161f;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent-2); outline: none; }

fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 20px;
}
.choices { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 15px;
    cursor: pointer;
}
.choice:hover { border-color: #3a4b60; }
.choice input { accent-color: var(--accent); width: 17px; height: 17px; }
.choice .dot { width: 15px; height: 15px; }

.form-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }

.status {
    display: none;
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 15px;
}
.status.show { display: block; }
.status.error { background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .5); }
.status.ok { background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .5); }
.field.invalid input, .field.invalid textarea { border-color: #f87171; }
.field .field-error { display: none; color: #fca5a5; font-size: 14px; margin-top: 6px; }
.field.invalid .field-error { display: block; }

/* ---------- Kontakt ----------------------------------------------------- */

.contact-box {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.contact-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.contact-item .label {
    display: block;
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.contact-item .value { font-size: 18px; font-weight: 600; word-break: break-word; }

/* ---------- Patička ----------------------------------------------------- */

.site-footer {
    padding: 44px 0 34px;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--muted);
    font-size: 15px;
}
.site-footer .foot-top {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: space-between;
    align-items: baseline;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .disclaimer { margin: 22px 0 0; font-size: 14px; color: #7b8b9e; }

/* ---------- Menší obrazovky -------------------------------------------- */

@media (max-width: 820px) {
    body { font-size: 16px; }
    .section { padding: 62px 0; }
    .hero { padding: 68px 0 62px; }
    .nav-toggle { display: inline-block; }
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
        padding: 6px 0 16px;
    }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 11px 0; border-bottom: 1px solid var(--border); }
    .nav { flex-wrap: wrap; }
    form { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
