/* ==========================================================
   pavelbaru.cz — design „Zakázkový list"
   Grotesk + monospace, bílá / inkoustová modrá / signální jantar.
   Web čte jako čistý, vyplněný pracovní list řemeslníka.
   ========================================================== */

:root {
    --paper:     #FCFCFA;   /* podklad, skoro bílá s teplem */
    --panel:     #F1F1EB;   /* světlý panel / alt sekce */
    --panel-2:   #E9E9E1;
    --ink:       #16212C;   /* inkoustová – nadpisy, silný text */
    --ink-soft:  #4A5A68;   /* běžný text */
    --blue:      #1D4E6F;   /* modrotisk – primární akcent */
    --blue-deep: #123A54;
    --blue-wash: #EAF0F4;   /* světlé modré pozadí */
    --amber:     #E8912D;   /* signální – odškrtnutí, zvýraznění */
    --amber-deep:#C6741A;
    --amber-wash:#FBEEDA;
    --green:     #1E7A46;   /* WhatsApp / hlavní akce */
    --green-deep:#166137;
    --line:      #D7D8D0;   /* hairline linky */
    --line-strong:#B9BAB0;

    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body:    'Inter', -apple-system, 'Segoe UI', sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, 'Courier New', monospace;

    --maxw: 1080px;
    --r: 3px;                /* ostré rohy */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink-soft);
    line-height: 1.65;
    font-size: 1.04rem;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); margin-bottom: 14px; }
h3 { font-size: 1.18rem; margin-bottom: 8px; }
p + p { margin-top: 13px; }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--blue); }
a:hover { color: var(--blue-deep); }

/* monospace eyebrow – „štítek pole ve formuláři" */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.eyebrow::before { content: "//"; color: var(--amber-deep); font-weight: 700; }

/* zvýraznění klíčových slov jako fixem přejeté */
.mark { background: linear-gradient(transparent 62%, var(--amber-wash) 62%); padding: 0 1px; }

/* ---------- HLAVIČKA (list s údaji) ---------- */
.head {
    position: sticky; top: 0; z-index: 100;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
}
.head .bar {
    max-width: var(--maxw); margin: 0 auto; padding: 13px 22px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.logo b { font-family: var(--font-display); font-size: 1.24rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.logo span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.05em; color: var(--blue); text-transform: uppercase; margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 24px; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.96rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--amber); }
.nav .tel {
    font-family: var(--font-mono); font-size: 0.9rem; font-weight: 500;
    background: var(--ink); color: var(--paper); padding: 9px 16px; border-radius: var(--r);
    letter-spacing: -0.02em;
}
.nav .tel:hover { background: var(--blue); color: #fff; }
.burger { display: none; background: none; border: 1.5px solid var(--line-strong); border-radius: var(--r); padding: 7px 11px; font-size: 1.1rem; color: var(--ink); cursor: pointer; }

/* ---------- TLAČÍTKA ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 14px 24px; border-radius: var(--r); text-decoration: none;
    font-weight: 600; font-size: 1rem; font-family: var(--font-display);
    border: 2px solid transparent; transition: transform 0.12s, background 0.15s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-wa { background: var(--green); color: #fff; box-shadow: 0 3px 0 var(--green-deep); }
.btn-wa:hover { background: var(--green-deep); color: #fff; }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 0 3px 0 #000; }
.btn-ink:hover { background: var(--blue); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* ---------- HERO = záhlaví zakázkového listu ---------- */
.hero { padding: 44px 0 20px; }
.sheet {
    border: 2px solid var(--ink);
    border-radius: var(--r);
    background: var(--paper);
    box-shadow: 6px 6px 0 var(--panel-2);
    overflow: hidden;
}
.sheet-top {
    display: flex; flex-wrap: wrap; gap: 0;
    border-bottom: 2px solid var(--ink);
    font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--ink);
    background: var(--blue-wash);
}
.sheet-top .f { padding: 10px 18px; flex: 1; min-width: 150px; }
.sheet-top .f + .f { border-left: 1px solid var(--line-strong); }
.sheet-top .f b { display: block; color: var(--blue); font-weight: 700; }
.sheet-body { padding: 40px 40px 44px; display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { font-size: 1.18rem; max-width: 34em; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* miniportrét v listu */
.id-card { border: 1.5px solid var(--line-strong); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.id-card img, .id-card svg { width: 100%; display: block; }
.id-card .cap { font-family: var(--font-mono); font-size: 0.72rem; padding: 9px 12px; border-top: 1.5px solid var(--line-strong); color: var(--ink); background: var(--paper); display: flex; justify-content: space-between; }
.id-card .cap span { color: var(--amber-deep); }

/* ---------- odškrtaný výčet služeb (signature) ---------- */
.checklist { list-style: none; margin: 4px 0 0; }
.checklist li {
    display: flex; align-items: baseline; gap: 12px;
    padding: 13px 0; border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
}
.checklist li::before {
    content: "✔"; flex: none;
    width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: var(--r);
    display: inline-grid; place-items: center; font-size: 0.8rem;
    color: var(--amber-deep); background: var(--amber-wash);
    transform: translateY(2px);
}
.checklist .txt { color: var(--ink); font-weight: 500; }
.checklist .lead-dots { flex: 1; border-bottom: 2px dotted var(--line-strong); margin: 0 6px; transform: translateY(-4px); }
.checklist .amt { font-family: var(--font-mono); font-weight: 500; color: var(--blue); white-space: nowrap; }
.checklist a.txt { text-decoration: none; }
.checklist a.txt:hover { color: var(--blue); }

/* ---------- SEKCE ---------- */
.section { padding: 68px 0; }
.section.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.ink { background: var(--ink); }
.s-head { max-width: 640px; margin-bottom: 40px; }
.s-head p { margin-top: 10px; }

/* karty jako štítky/kartotéka */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(292px, 1fr)); gap: 18px; }
.tile {
    background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: var(--r);
    padding: 26px 24px; display: flex; flex-direction: column;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.tile:hover { border-color: var(--blue); box-shadow: 5px 5px 0 var(--blue-wash); transform: translate(-1px,-1px); }
.tile .tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--blue); letter-spacing: 0.04em; margin-bottom: 12px; }
.tile h3 { margin-bottom: 8px; }
.tile p { font-size: 0.96rem; flex: 1; }
.tile .foot { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 13px; }
.tile .price { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.tile .go { text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--blue); }
.tile .go:hover { color: var(--amber-deep); }

/* dvousloupcový výčet „řeším" */
.rows { columns: 2; column-gap: 40px; }
.rows .r { break-inside: avoid; display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink); }
.rows .r::before { content: "✔"; color: var(--amber-deep); font-weight: 700; }

/* ---------- CENÍK / tabulka jako faktura ---------- */
.invoice { border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.invoice .ihead { display: flex; justify-content: space-between; padding: 12px 20px; background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; }
.line { display: flex; align-items: baseline; gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: none; }
.line:nth-child(even) { background: var(--panel); }
.line .name { color: var(--ink); font-weight: 500; }
.line .name small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; margin-top: 2px; }
.line .dots { flex: 1; border-bottom: 2px dotted var(--line-strong); margin: 0 4px; transform: translateY(-3px); min-width: 20px; }
.line .val { font-family: var(--font-mono); font-weight: 600; color: var(--blue); white-space: nowrap; }
.line.hl { background: var(--amber-wash); }
.line.hl .val { color: var(--amber-deep); }

/* poznámkový blok – „ruční poznámka na listu" */
.memo { border-left: 3px solid var(--amber); background: var(--amber-wash); padding: 18px 22px; border-radius: 0 var(--r) var(--r) 0; margin-top: 26px; font-size: 0.98rem; }
.memo b { color: var(--amber-deep); }

/* srovnávací blok */
.vs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.vs .col { padding: 24px 22px; border-left: 1px solid var(--line-strong); }
.vs .col:first-child { border-left: none; }
.vs .col.me { background: var(--blue); color: #fff; }
.vs .col .who { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.9; }
.vs .col .big { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--ink); margin: 8px 0 6px; }
.vs .col.me .big { color: #fff; }
.vs .col .note { font-size: 0.88rem; }
.vs .col.me .note { color: var(--blue-wash); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq details { border: 1.5px solid var(--line-strong); border-radius: var(--r); margin-bottom: 10px; background: var(--paper); }
.faq details[open] { border-color: var(--blue); }
.faq summary { padding: 16px 20px; cursor: pointer; font-family: var(--font-display); font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--amber-deep); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 20px 18px; font-size: 0.98rem; }

/* obce */
.towns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.towns a, .towns span { font-family: var(--font-mono); font-size: 0.84rem; border: 1.5px solid var(--line-strong); border-radius: var(--r); padding: 6px 12px; color: var(--ink); text-decoration: none; }
.towns a:hover { border-color: var(--blue); color: var(--blue); }
.towns .free { border-color: var(--blue); color: var(--blue); }

/* ---------- KONTAKTNÍ SEKCE (tmavá) ---------- */
.section.ink h2, .section.ink h3 { color: var(--paper); }
.section.ink { color: #C4CFD8; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: start; }
.big-links { display: flex; flex-direction: column; gap: 4px; margin-top: 22px; }
.big-links a { color: var(--paper); text-decoration: none; font-family: var(--font-mono); font-size: 1.12rem; padding: 14px 0; border-bottom: 1px solid #33414D; display: flex; align-items: center; gap: 14px; }
.big-links a:hover { color: var(--amber); }
.hours-card { border: 1.5px solid #33414D; border-radius: var(--r); padding: 24px; background: rgba(255,255,255,0.03); }
.hours-card .hrow { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid #33414D; font-family: var(--font-mono); font-size: 0.92rem; }
.hours-card .hrow:last-of-type { border-bottom: none; }
.hours-card .hrow span:last-child { color: var(--paper); }
.hours-card .small { font-size: 0.85rem; margin-top: 12px; opacity: 0.7; }

/* ---------- STRÁNKY SLUŽEB ---------- */
.crumbs { font-family: var(--font-mono); font-size: 0.8rem; padding: 18px 0 0; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs span { color: var(--ink); }
.phero { padding: 34px 0 8px; max-width: 760px; }
.phero .lead { font-size: 1.14rem; margin-top: 16px; }
.cols { display: grid; grid-template-columns: 1fr 310px; gap: 46px; align-items: start; padding: 36px 0 72px; }
.main h2 { margin-top: 38px; }
.main h2:first-child { margin-top: 0; }
.main ul { margin: 12px 0 12px 4px; list-style: none; }
.main ul li { padding: 6px 0 6px 26px; position: relative; }
.main ul li::before { content: "\2013"; position: absolute; left: 4px; color: var(--amber-deep); font-weight: 700; }
.side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.side .quote { border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.side .quote .qh { background: var(--blue); color: #fff; font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 9px 16px; }
.side .quote .qb { padding: 20px 18px; text-align: center; }
.side .quote .from { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--ink); }
.side .quote .btn { width: 100%; justify-content: center; margin-top: 12px; }
.side .quote .small { font-size: 0.82rem; margin-top: 10px; }
.side .links { border: 1.5px solid var(--line-strong); border-radius: var(--r); padding: 18px 20px; }
.side .links b { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; color: var(--blue); letter-spacing: 0.04em; }
.side .links a { display: block; padding: 7px 0; text-decoration: none; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.side .links a:last-child { border-bottom: none; }
.side .links a:hover { color: var(--blue); }

/* ---------- PATIČKA ---------- */
.foot { background: var(--panel); border-top: 2px solid var(--ink); padding: 48px 0 26px; font-size: 0.93rem; }
.foot .cols4 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 34px; margin-bottom: 30px; }
.foot h4 { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue); margin-bottom: 12px; }
.foot a { display: block; padding: 4px 0; text-decoration: none; color: var(--ink-soft); }
.foot a:hover { color: var(--blue); }
.foot .legal { border-top: 1px solid var(--line-strong); padding-top: 18px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; }

/* ---------- GALERIE REFERENCÍ ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.shot { border: 1.5px solid var(--line-strong); border-radius: var(--r); overflow: hidden; background: var(--paper); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.shot:hover { border-color: var(--blue); box-shadow: 5px 5px 0 var(--blue-wash); transform: translate(-1px,-1px); }
.shot .imgs { display: grid; grid-template-columns: 1fr 1fr; }
.shot.single .imgs { grid-template-columns: 1fr; }
.shot .ph { position: relative; aspect-ratio: 4 / 3; background: var(--panel-2); overflow: hidden; border-right: 1px solid var(--line-strong); }
.shot .ph:last-child { border-right: none; }
.shot .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot .ph .lbl { position: absolute; top: 8px; left: 8px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 3px 7px; border-radius: 2px; }
.shot .cap { padding: 12px 14px; border-top: 1.5px solid var(--line-strong); font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.shot .cap .place { color: var(--blue); }
.shot .cap .job { font-weight: 500; }
.gallery-note { margin-top: 34px; }
@media (max-width: 420px) { .shot .cap { flex-direction: column; gap: 3px; } }

/* ---------- BLOG ---------- */
.article-wrap { max-width: 780px; }
.article-meta { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; }
.article-meta .k { color: var(--blue); }
.article-body { max-width: 780px; }
.article-body h2 { margin-top: 40px; }
.article-body h2:first-of-type { margin-top: 24px; }
.article-body h3 { margin-top: 26px; }
.article-body p { margin-top: 14px; }
.article-body ul { margin: 14px 0; list-style: none; }
.article-body ul li { padding: 6px 0 6px 26px; position: relative; }
.article-body ul li::before { content: "\2013"; position: absolute; left: 4px; color: var(--amber-deep); font-weight: 700; }
.article-body .invoice { margin: 22px 0; }
.article-body .lead { font-size: 1.14rem; color: var(--ink-soft); }
.tldr { border: 2px solid var(--ink); border-radius: var(--r); padding: 22px 24px; background: var(--blue-wash); margin: 26px 0; }
.tldr .t { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue); margin-bottom: 8px; }
.post-card .tag { display: flex; justify-content: space-between; }

/* plovoucí WhatsApp */
.wa {
    position: fixed; bottom: 20px; right: 20px; z-index: 90;
    background: var(--green); color: #fff; width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.6rem; text-decoration: none;
    box-shadow: 0 4px 0 var(--green-deep), 0 8px 20px rgba(0,0,0,0.18);
}
.wa:hover { color: #fff; transform: translateY(-2px); }

/* ---------- RESPONSIVITA ---------- */
@media (max-width: 880px) {
    .sheet-body { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px 32px; }
    .id-card { max-width: 240px; }
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .cols { grid-template-columns: 1fr; gap: 30px; }
    .side { position: static; }
    .rows { columns: 1; }
    .foot .cols4 { grid-template-columns: 1fr 1fr; }
    .section { padding: 52px 0; }
    .burger { display: block; }
    .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 2px solid var(--ink); padding: 12px 22px 18px; gap: 2px; }
    .nav.open { display: flex; }
    .nav a { padding: 11px 4px; }
    .nav .tel { text-align: center; margin-top: 8px; }
}
@media (max-width: 520px) {
    .foot .cols4 { grid-template-columns: 1fr; gap: 22px; }
    .sheet { box-shadow: 4px 4px 0 var(--panel-2); }
    h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto; } }
