/* ═══════════════════════════════════════════════════════════════
   Spinfix — landing.css
   Sdílený stylesheet pro servisní a svozové vstupní stránky.
   Odvozeno z tokenů index.html (--bg, --panel, --text, --muted, --accent).
   Bez externích fontů a bez síťových závislostí (mimo Turnstile skript).
   ═══════════════════════════════════════════════════════════════ */

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

:root {
    --bg:             #080d18;
    --bg-alt:         #0d1424;
    --panel:          #111b30;
    --panel-2:        #141e33;
    --panel-hover:    #192440;
    --text:           #f1f5f9;
    --muted:          #a8b5c7;
    --muted-2:        #8493ab;
    /* Akcent odvozený z modré v logu (#246cb4), zesvětlený na AA kontrast. */
    --accent:         #5c9de0;
    --accent-dim:     #3f7fc4;   /* tmavší varianta pro POZADÍ */
    --accent-bright:  #7db4ea;   /* světlejší varianta pro TEXT v hoveru */
    --accent-ink:     #0a0a0a;
    --accent-border:  rgba(92,157,224,.28);
    --accent-glow:    rgba(92,157,224,.14);
    /* Jantarová zůstává jediným teplým signálem — hlavní CTA. */
    --cta:            #f59e0b;
    --cta-dim:        #d97706;
    --border:         rgba(255,255,255,.08);
    --border-2:       rgba(255,255,255,.14);
    --ok-bg:          rgba(34,197,94,.08);
    --ok-border:      rgba(34,197,94,.22);
    --ok-text:        #86efac;
    --err-bg:         rgba(239,68,68,.08);
    --err-border:     rgba(239,68,68,.22);
    --err-text:       #fca5a5;
    --radius:         14px;
    --radius-sm:      8px;
    --nav-h:          64px;
    --transition:     .2s ease;
    --maxw:           1100px;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

.l-container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─── Skip link ─── */
.skip-link {
    position: absolute;
    left: 1rem;
    top: -3.5rem;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
    font-size: .85rem;
    padding: .6rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 1200;
    transition: top var(--transition);
}
.skip-link:focus {
    top: 1rem;
}

/* ─── Header ─── */
.l-header {
    position: sticky;
    top: 0;
    z-index: 900;
    min-height: var(--nav-h);
    display: flex;
    align-items: center;
    padding: .75rem 1.5rem;
    background: rgba(8,13,24,.92);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
}
.l-header-inner {
    max-width: var(--maxw);
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
}
.l-logo {
    display: inline-flex;
    align-items: center;
}
.l-logo img {
    height: 38px;
    width: auto;
}
.l-header-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}
.l-header-nav a {
    font-size: .85rem;
    font-weight: 500;
    color: var(--muted);
    transition: color var(--transition);
}
.l-header-nav a:hover { color: var(--text); }
.l-header-phone {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 700;
    color: var(--accent) !important;
}

/* ─── Breadcrumb ─── */
.l-breadcrumb {
    padding: 1.1rem 1.5rem 0;
}
.l-breadcrumb ol {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    color: var(--muted-2);
}
.l-breadcrumb a { color: var(--muted); }
.l-breadcrumb a:hover { color: var(--accent); }
.l-breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: .4rem;
    color: var(--muted-2);
}
.l-breadcrumb li[aria-current] { color: var(--text); }

/* ─── Hero / page intro ─── */
.l-hero {
    padding: 3rem 1.5rem 3.5rem;
}
.l-hero-inner {
    max-width: var(--maxw);
    margin: 0 auto;
}
.l-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--accent);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.l-eyebrow::before {
    content: '';
    display: block;
    width: 18px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.l-hero h1 {
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.15;
    max-width: 820px;
    margin-bottom: 1.1rem;
}
.l-hero-lead {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.75;
    max-width: 680px;
    margin-bottom: 2rem;
}
.l-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .875rem 1.75rem;
    border-radius: 9px;
    font-weight: 700;
    font-size: .92rem;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-primary {
    background: var(--cta);
    color: var(--accent-ink);
}
.btn-primary:hover {
    background: var(--cta-dim);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(245,158,11,.28);
}
.btn-primary:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-2);
}
.btn-ghost:hover {
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.22);
}

/* ─── Content sections ─── */
.l-section {
    padding: 3.25rem 1.5rem;
    border-top: 1px solid var(--border);
}
/* Sticky header is --nav-h tall, so in-page anchors must reserve that much
   room or the target heading lands underneath it. index.html solves the same
   problem in JS; static pages do it in CSS. --nav-h is only a min-height, and
   below 780px the header wraps to two rows, so the reserve grows there. */
[id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }
@media (max-width: 780px) {
    [id] { scroll-margin-top: calc(var(--nav-h) + 3.5rem); }
}
.l-section-alt { background: var(--bg-alt); }
.l-section-inner {
    max-width: var(--maxw);
    margin: 0 auto;
}
.l-section h2 {
    font-size: clamp(1.5rem, 2.6vw, 1.95rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}
.l-prose {
    max-width: 760px;
}
.l-prose p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.1rem;
}
.l-prose p:last-child { margin-bottom: 0; }
.l-prose strong { color: var(--text); }
.l-prose a { color: var(--accent); border-bottom: 1px solid var(--accent-border); }
.l-prose a:hover { color: var(--accent-bright); }

/* ─── Steps ("Jak postupujeme") ─── */
.l-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
    margin-top: 1.75rem;
}
.l-step {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.6rem;
}
.l-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-glow);
    color: var(--accent);
    font-weight: 800;
    font-size: .85rem;
    margin-bottom: .85rem;
}
.l-step h3 {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: .45rem;
}
.l-step p {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.65;
}

/* ─── Checklist ("Co doložíme") ─── */
.l-checklist {
    display: grid;
    gap: .75rem;
    margin-top: 1.5rem;
    max-width: 760px;
}
.l-checklist li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .9rem 1.1rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.55;
}
.l-checklist svg {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: .15rem;
    color: var(--accent);
}
.l-checklist strong { color: var(--text); }

/* ─── Capability list heading ─── */
.l-capabilities-heading {
    margin-top: 2.25rem;
    font-size: 1.05rem;
    font-weight: 700;
}

/* ─── Capability list (service bullets) ─── */
.l-capabilities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .6rem 1.5rem;
    margin-top: 1.5rem;
    max-width: 760px;
}
.l-capabilities li {
    position: relative;
    padding-left: 1.15rem;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.6;
}
.l-capabilities li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ─── Related note (mezioborové odkazy, ochranná známka) ─── */
.l-note {
    margin-top: 1.75rem;
    max-width: 760px;
    padding: 1.1rem 1.3rem;
    background: var(--panel);
    border: 1px solid var(--border-2);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.65;
}
.l-note strong { color: var(--text); }
.l-note a { color: var(--accent); border-bottom: 1px solid var(--accent-border); }
.l-note a:hover { color: var(--accent-bright); }

/* ─── Internal linking grid ─── */
.l-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
}
.l-link-card {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1.25rem 1.4rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.l-link-card:hover,
.l-link-card:focus-visible {
    border-color: var(--accent-border);
    background: var(--panel-hover);
    transform: translateY(-3px);
}
.l-link-card span.l-link-title {
    font-weight: 700;
    font-size: .98rem;
    color: var(--text);
}
.l-link-card span.l-link-desc {
    font-size: .85rem;
    color: var(--muted-2);
    line-height: 1.5;
}
.l-link-card .l-link-arrow {
    margin-top: .5rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--accent);
}

/* ─── Contact block ─── */
.l-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
}
.l-contact-card {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding: 1.1rem 1.25rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.l-cc-icon {
    flex: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--accent-glow);
    color: var(--accent);
}
.l-cc-icon svg { width: 18px; height: 18px; }
.l-cc-label {
    font-size: .74rem;
    color: var(--muted-2);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .2rem;
}
.l-cc-value {
    font-size: .98rem;
    font-weight: 600;
    color: var(--text);
}
.l-cc-value a:hover { color: var(--accent); }

/* ─── Form ─── */
.form-box {
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2.25rem;
    margin-top: 1.75rem;
    max-width: 760px;
}
.form-box h3 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: .35rem;
}
.form-box > p {
    font-size: .875rem;
    color: var(--muted-2);
    margin-bottom: 1.75rem;
}
.form-fields { display: flex; flex-direction: column; gap: 1rem; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.fg { display: flex; flex-direction: column; gap: .4rem; }
.fg.full { grid-column: 1 / -1; }
.fg label {
    font-size: .8rem;
    font-weight: 500;
    color: var(--muted);
}
.fg input, .fg select, .fg textarea {
    background: var(--bg);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    padding: .75rem 1rem;
    color: var(--text);
    font-family: inherit;
    font-size: .925rem;
    width: 100%;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.fg input::placeholder, .fg textarea::placeholder { color: var(--muted-2); }
.fg input:focus, .fg select:focus, .fg textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.fg select {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.fg select option { background: var(--panel-2); color: var(--text); }
.fg textarea { resize: vertical; min-height: 120px; }

.turnstile-wrap {
    display: none;
    margin-top: 1.25rem;
}
.turnstile-wrap.active {
    min-height: 65px;
    display: flex;
    align-items: center;
}

.form-alert {
    display: none;
    padding: .875rem 1rem;
    border-radius: 8px;
    font-size: .875rem;
    margin-top: 1rem;
}
.form-alert.ok  { background: var(--ok-bg);  border: 1px solid var(--ok-border);  color: var(--ok-text); }
.form-alert.err { background: var(--err-bg); border: 1px solid var(--err-border); color: var(--err-text); }

.form-note {
    text-align: center;
    font-size: .75rem;
    color: var(--muted);
    margin-top: .9rem;
}
.form-note a { color: var(--muted); border-bottom: 1px solid var(--border-2); }
.form-note a:hover { color: var(--accent); }

.form-box button[type="submit"] {
    width: 100%;
    justify-content: center;
    margin-top: .25rem;
}

/* ─── noscript fallback ─── */
.l-noscript-banner {
    max-width: 760px;
    margin-top: 1.75rem;
    padding: 1rem 1.25rem;
    background: var(--panel);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.6;
}
.l-noscript-banner a { color: var(--accent); }

/* ─── Footer ─── */
.l-footer {
    padding: 2.75rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}
.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    text-align: center;
}
.footer-logo img { height: 30px; width: auto; }
.footer-copy {
    color: var(--muted-2);
    font-size: .8rem;
    line-height: 1.6;
    max-width: 720px;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1.5rem;
}
.footer-links a {
    font-size: .82rem;
    color: var(--muted);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

/* ─── Responsive (mobile-first baseline is 375px) ─── */
@media (max-width: 780px) {
    .l-steps { grid-template-columns: 1fr; }
    .l-capabilities { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .form-row .fg.full { grid-column: auto; }
}

@media (max-width: 560px) {
    .l-header { padding: .65rem 1rem; }
    .l-header-nav { gap: .85rem 1rem; }
    .l-hero { padding: 2.25rem 1rem 2.5rem; }
    .l-section { padding: 2.5rem 1rem; }
    .l-breadcrumb { padding: .9rem 1rem 0; }
    .form-box { padding: 1.5rem; }
    .l-hero-actions { flex-direction: column; align-items: stretch; }
    .l-hero-actions .btn { justify-content: center; }
    .footer-links { flex-direction: column; gap: .6rem; }
}

@media (min-width: 375px) and (max-width: 400px) {
    .l-hero h1 { font-size: 1.75rem; }
}
