/* Grafika Příbram – vizuální styl (varianta B)
   Instrument Sans + Instrument Serif, citronově-teal paleta. */

:root {
    --paper: #FEF8F0;
    --paper-2: #EFE0C5;
    --white: #FFFFFF;
    --heading: #235354;
    --ink: #092122;
    --ink-2: #3A4F52;
    --muted: #5C7378;
    --accent: #235354;
    --accent-soft: #6FA0A0;
    --line: rgba(9, 33, 34, 0.14);
    --line-soft: rgba(9, 33, 34, 0.09);
    --radius: 2px;
    --pad-x: clamp(18px, 5vw, 28px);
    --sect-y: clamp(56px, 7vw, 110px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Instrument Sans', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    text-wrap: pretty;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; margin: 0; color: var(--heading); }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad-x); }

/* zrušené dekorace z předchozí verze */
.grain, .marquee, .stamp, .tag-row { display: none !important; }

/* ---------- Header ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 14px 0;
    background: rgba(254, 248, 240, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line-soft);
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}
.brand-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.brand-name {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--ink);
}
.brand-name:hover { color: var(--accent); }
.brand small {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.brand small a { color: var(--muted); text-decoration: underline; }
.brand small a:hover { color: var(--accent); }
.brand .dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--accent);
    flex: none;
}

.topnav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.topnav a { color: var(--ink-2); }
.topnav a:hover { color: var(--ink); }

.nav-toggle {
    display: none;
    min-height: 44px;
    min-width: 64px;
    padding: 0 14px;
    background: transparent;
    border: 1px solid rgba(9, 33, 34, 0.22);
    border-radius: var(--radius);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.nav-panel { display: none; }

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

.hero { padding: clamp(52px, 8vw, 120px) 0 clamp(44px, 6vw, 88px); }

.kicker {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: clamp(28px, 4vw, 52px);
}

.hero h1 {
    font-size: clamp(38px, 5.6vw, 74px);
    line-height: 1.06;
    letter-spacing: -0.03em;
    max-width: 20ch;
    margin-bottom: 32px;
}
.hero h1 mark { background: none; color: var(--ink); }

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(28px, 4vw, 64px);
    align-items: end;
}

.lead {
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.55;
    color: var(--ink-2);
    max-width: 42ch;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 28px;
    border: 1px solid rgba(9, 33, 34, 0.22);
    border-radius: var(--radius);
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:hover { border-color: var(--ink); color: var(--ink); }

.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* pás ukázek pod heroem */
.hero-strip {
    margin-top: clamp(44px, 6vw, 88px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(46%, 180px), 1fr));
    gap: 1px;
    background: var(--line);
}
.hero-tile {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: var(--paper);
    background-image: repeating-linear-gradient(135deg, rgba(9, 33, 34, 0.045) 0 2px, transparent 2px 12px);
}
.hero-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-tile span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.hero-tile.has-photo {
    background-image: none;
}
.hero-tile.has-photo span {
    color: #fff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 70%);
    padding-top: 26px;
}

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

section { padding: var(--sect-y) 0; border-top: 1px solid var(--line-soft); }
.section-alt { background: var(--paper-2); }

.legal h3 { font-size: 18px; font-weight: 600; margin: 32px 0 10px; }
.legal p { font-size: 15px; line-height: 1.7; color: var(--ink-2); max-width: 68ch; }
.legal a { color: var(--accent); text-decoration: underline; }

.section-head {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 24px;
    align-items: baseline;
    margin-bottom: clamp(32px, 4vw, 48px);
}
.section-head h2 {
    font-size: clamp(26px, 2.6vw, 34px);
    line-height: 1.15;
    max-width: 24ch;
}
.eyebrow {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}
.hint {
    font-size: 15px;
    color: var(--ink-2);
    max-width: 30ch;
    justify-self: end;
}
.section-head > div .hint { justify-self: auto; max-width: 42ch; }

.contact-info .social-links { margin: 0; }

.social-links { display: flex; gap: 10px; }
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--ink);
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.social-links a:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.social-links svg { width: 16px; height: 16px; }

/* služby – editorial řádky */
.grid { display: flex; flex-direction: column; }
.card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 8px 24px;
    padding: 26px 0;
    border-top: 1px solid var(--line);
}
.card:last-child { border-bottom: 1px solid var(--line); }
.card h3 { font-size: 19px; font-weight: 600; }
.card p { font-size: 15px; color: var(--ink-2); }

/* postup */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: clamp(24px, 3vw, 40px);
}
.step { border-top: 2px solid var(--line); padding-top: 18px; }
.step:first-child { border-top-color: var(--accent); }
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-2); }

/* proč my */
.why-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1px;
    background: var(--line);
}
.why-list li {
    display: block;
    background: var(--paper);
    padding: 28px;
    font-size: 16px;
    line-height: 1.6;
}
.section-alt .why-list li { background: var(--paper-2); }
.why-list .mark { display: none; }

/* reference */
.ref-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(18px, 2vw, 28px);
}
.ref-tag { transform: none; }
.ref-photo-frame {
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    overflow: hidden;
    margin-bottom: 16px;
}
.ref-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.ref-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 14px;
    background-image: repeating-linear-gradient(135deg, rgba(9, 33, 34, 0.045) 0 2px, transparent 2px 12px);
}
.ref-photo-placeholder .num {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.perf h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.perf p { font-size: 14px; color: var(--ink-2); }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
    min-height: 44px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary > span { flex: 1; }
.faq summary::after {
    content: "+";
    color: var(--accent);
    font-size: 20px;
    line-height: 1;
    width: 18px;
    text-align: center;
}
.faq details[open] summary::after { content: "−"; }
.faq .q-num { display: none; }
.faq details p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-2);
    padding: 0 40px 26px 0;
}

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

.contact-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(32px, 4vw, 64px);
}
.contact-wrap.crop { clip-path: none; }

.contact-info h3 { display: none; }
.contact-line {
    display: block;
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 10px;
}
.contact-line:hover { color: var(--accent); }
.contact-info .contact-line:last-of-type { margin-bottom: 18px; }
.muted { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 36ch; }

.social-heading {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 22px;
    margin-bottom: 10px;
}

.lead-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.field input, .field textarea {
    background: var(--white);
    border: 1px solid rgba(9, 33, 34, 0.18);
    border-radius: var(--radius);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    padding: 13px 14px;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 1px solid var(--accent); border-color: var(--accent); }

.lead-form .btn-primary { align-self: flex-start; }
.form-note { font-size: 13px; color: var(--muted); }

.form-msg {
    display: none;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: var(--radius);
    font-size: 15px;
}
.form-msg.show { display: flex; animation: msgPop .4s ease; }
.form-msg::before {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
}
.form-msg.ok {
    background: var(--accent);
    color: var(--white);
    border: none;
    font-size: 16px;
    font-weight: 600;
}
.form-msg.ok::before { content: "✓"; background: var(--white); color: var(--accent); }
.form-msg.err { background: rgba(140, 40, 30, 0.08); border: 1px solid #8C281E; color: #8C281E; }
.form-msg.err::before { content: "!"; background: #8C281E; color: var(--white); font-weight: 700; }

@keyframes msgPop {
    from { opacity: 0; transform: translateY(-6px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Footer ---------- */

footer {
    background: var(--ink);
    color: #9BC0BC;
    padding: 44px 0;
    border: 0;
}
footer a { color: #9BC0BC; }
footer a:hover { color: var(--paper); }
footer .social-links a { border-color: rgba(255, 255, 255, 0.25); color: inherit; }
footer .social-links a:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.footer-brand {
    font-size: 16px;
    font-weight: 600;
    color: var(--paper);
    line-height: 1.2;
    margin-bottom: 20px;
}
.footer-brand br { display: none; }
.footer-brand span { color: var(--paper); }
.footer-brand span::before { content: " "; }

.footer-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(254, 248, 240, 0.14);
}

/* ---------- Mobilní CTA lišta ---------- */

.mobile-cta { display: none; }

/* ---------- Reveal při scrollu ---------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal].no-anim { transition: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}

.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Mobil ---------- */

@media (max-width: 820px) {
    .topnav, .topbar-cta { display: none; }
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

    .nav-panel {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        margin: 14px calc(var(--pad-x) * -1) -14px;
        border-top: 1px solid var(--line-soft);
    }
    .nav-panel.open { display: flex; }
    .nav-panel a {
        padding: 16px var(--pad-x);
        min-height: 44px;
        display: flex;
        align-items: center;
        font-size: 17px;
        color: var(--ink);
        border-bottom: 1px solid var(--line-soft);
    }
    .nav-panel a:last-child { color: var(--accent); font-weight: 600; border-bottom: 0; }

    .section-head { margin-bottom: 28px; }
    .hint { justify-self: start; }
    .faq details p { padding-right: 0; }
    .lead-form .btn-primary { align-self: stretch; }

    body { padding-bottom: 76px; }

    .mobile-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: rgba(254, 248, 240, 0.96);
        backdrop-filter: blur(8px);
        border-top: 1px solid var(--line);
    }
    .mobile-cta a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        border-radius: var(--radius);
        font-size: 15px;
        font-weight: 500;
    }
    .mobile-cta .call { border: 1px solid rgba(9, 33, 34, 0.22); color: var(--ink); }
    .mobile-cta .quote { background: var(--accent); color: var(--paper); font-weight: 600; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: clamp(32px, 9vw, 40px); }
    .why-list li { padding: 22px; }
}
