/* Autoklíče Ostrava — Oty Synka 1876/8, Ostrava-Poruba
   Světlá verze. Oranžová ze štítků na klíčích, modrošedá z děrované stěny dílny. */

:root{
  color-scheme:light;
  --bg:#FBFAF7;
  --bg-2:#F2EFE8;
  --white:#FFFFFF;
  --slate:#22364B;
  --slate-2:#2C4560;
  --ink:#17191D;
  --ink-2:#4A4F57;
  --muted:#7B8089;
  --line:rgba(23,25,29,.12);
  --line-soft:rgba(23,25,29,.08);
  --acc:#E2601F;
  --acc-hi:#C24E17;
  --acc-tint:#FDEEE4;
  --acc-tint-2:#FADCCB;
  --maxw:1200px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth; background:var(--bg)}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:"Schibsted Grotesk",system-ui,-apple-system,"Segoe UI",Helvetica,Arial,sans-serif;
  font-size:17px; line-height:1.6; -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block}
picture{display:contents}
source{display:none}
a{color:var(--acc-hi)}
h1,h2,h3{margin:0; text-wrap:balance; letter-spacing:-.025em; font-weight:700; line-height:1.08; color:var(--ink)}
p{margin:0 0 1em}
p:last-child{margin-bottom:0}
.shell{max-width:var(--maxw); margin:0 auto; padding-inline:24px}
.label{font-size:12.5px; font-weight:600; letter-spacing:.07em; text-transform:uppercase; color:var(--acc-hi); margin:0 0 14px}

/* ---------- header ---------- */
.top{position:sticky; top:0; z-index:60; background:rgba(251,250,247,.92); backdrop-filter:blur(10px); border-bottom:1px solid var(--line-soft)}
.top .shell{display:flex; align-items:center; gap:22px; height:70px; position:relative}
.brand{order:1; display:flex; flex-direction:column; gap:4px; width:max-content; text-decoration:none; color:var(--ink); white-space:nowrap}
.brand .wm{display:flex; align-items:flex-end; gap:5px; font-family:Archivo,"Schibsted Grotesk",system-ui,sans-serif; font-weight:800; font-size:25px; letter-spacing:-.05em; line-height:.9}
.brand .key{width:18px; height:auto; color:var(--acc); margin-bottom:2px; flex:none}
.brand .city{display:flex; align-items:center; gap:7px; font-family:"IBM Plex Mono",ui-monospace,monospace; font-weight:500; font-size:9px; letter-spacing:.3em; text-transform:uppercase; color:var(--ink); line-height:1}
.brand .city i{flex:1; height:1.5px; background:currentColor; display:block}
.brand.on-dark{color:#F4F2ED}
.brand.on-dark .city{color:#F4F2ED}
footer .brand .wm{font-size:26px}
footer .brand .key{width:19px}
footer .brand .city{font-size:9.5px}
.top nav{display:flex; gap:26px; margin-left:auto; order:2}
.top nav a{color:var(--ink-2); text-decoration:none; font-size:15px; font-weight:500; white-space:nowrap}
.top nav a:hover,.top nav a[aria-current="page"]{color:var(--ink)}
.top nav a[aria-current="page"]{text-decoration:underline; text-decoration-color:var(--acc); text-underline-offset:7px; text-decoration-thickness:2px}
.top .call{order:3; background:var(--acc); color:#fff; text-decoration:none; font-weight:600; font-size:15px; white-space:nowrap; border-radius:6px; padding:10px 18px}
.top .call:hover{background:var(--acc-hi)}
.top .call .n-short{display:none}
.menu-btn{order:4; display:none; width:44px; height:44px; border:1px solid var(--line); border-radius:6px; background:var(--white); cursor:pointer; padding:0; flex-direction:column; align-items:center; justify-content:center; gap:5px}
.menu-btn span{display:block; width:18px; height:2px; background:var(--ink); border-radius:2px; transition:transform .18s, opacity .18s}
.top.open .menu-btn span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.top.open .menu-btn span:nth-child(2){opacity:0}
.top.open .menu-btn span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
@media (max-width:960px){
  .top nav{display:none; position:absolute; left:0; right:0; top:100%; flex-direction:column; gap:0; margin:0; padding:6px 24px 14px; background:var(--bg); border-bottom:1px solid var(--line); box-shadow:0 12px 30px -18px rgba(0,0,0,.25)}
  .top.open nav{display:flex}
  .top nav a{padding:15px 0; font-size:17px; border-bottom:1px solid var(--line-soft)}
  .top nav a:last-child{border-bottom:none}
  .top nav a[aria-current="page"]{text-decoration:none; color:var(--acc-hi)}
  .top .call{margin-left:auto}
  .menu-btn{display:flex}
}
@media (max-width:560px){
  .top .call .n-full{display:none}
  .top .call .n-short{display:inline}
  .top .shell{height:62px; gap:12px}
  .top .call{padding:10px 16px}
  .brand .wm{font-size:19px}
  .brand .key{width:14px}
  .brand .city{font-size:7.5px}
}
@media (max-width:380px){
  .shell{padding-inline:16px}
  .top .call{padding:9px 13px; font-size:14.5px}
  .menu-btn{width:40px; height:40px}
}

/* ---------- buttons ---------- */
.btn{display:inline-flex; align-items:center; gap:10px; text-decoration:none; font-weight:600; font-size:16px; padding:15px 24px; border-radius:6px; border:1px solid transparent; white-space:nowrap}
.btn-main{background:var(--acc); color:#fff}
.btn-main:hover{background:var(--acc-hi)}
.btn-ghost{border-color:var(--line); color:var(--ink); background:var(--white)}
.btn-ghost:hover{border-color:var(--ink-2)}
.hero .btn-ghost{border-color:rgba(255,255,255,.55); color:#fff; background:rgba(255,255,255,.08)}
.hero .btn-ghost:hover{background:rgba(255,255,255,.16)}
.cta-row{display:flex; flex-wrap:wrap; gap:12px; margin-top:32px}

/* ---------- hero (photo) ---------- */
.hero{position:relative; overflow:hidden; min-height:600px; display:flex; align-items:flex-end; background:var(--slate)}
.hero img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:70% 50%}
.hero::after{content:""; position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(20,30,42,.90) 0%, rgba(20,30,42,.70) 36%, rgba(20,30,42,.18) 68%, rgba(20,30,42,0) 100%),
             linear-gradient(0deg, rgba(20,30,42,.85) 0%, rgba(20,30,42,0) 42%)}
.hero .shell{position:relative; z-index:1; width:100%; padding-block:96px 72px}
.hero h1{font-size:clamp(40px,5.6vw,70px); max-width:17ch; color:#fff}
.hero .lead{font-size:19px; color:rgba(255,255,255,.8); max-width:46ch; margin-top:22px}
@media (max-width:760px){
  .hero{min-height:0; padding-top:0}
  .hero .shell{padding-block:72px 48px}
  .hero img{object-position:60% 50%}
}

/* ---------- facts strip (barevný pruh) ---------- */
.facts{background:var(--slate); color:#fff}
.facts .shell{display:grid; grid-template-columns:repeat(3,1fr)}
.facts .shell > div{padding:24px 24px 24px 0; font-size:15px; color:rgba(255,255,255,.72); border-right:1px solid rgba(255,255,255,.14)}
.facts .shell > div + div{padding-left:24px}
.facts .shell > div:last-child{border-right:none}
.facts strong{display:block; color:#fff; font-weight:600; margin-bottom:2px; font-size:16px}
@media (max-width:760px){
  .facts .shell{grid-template-columns:1fr}
  .facts .shell > div{border-right:none; border-bottom:1px solid rgba(255,255,255,.14); padding:14px 0}
  .facts .shell > div + div{padding-left:0}
  .facts .shell > div:last-child{border-bottom:none}
}

/* ---------- sections ---------- */
section{padding-block:88px}
section.alt{background:var(--bg-2)}
section.tint{background:var(--acc-tint)}
section.white{background:var(--white)}
.sec-title{font-size:clamp(30px,3.8vw,46px); margin-bottom:14px}
.sec-lead{color:var(--ink-2); font-size:17.5px; max-width:52ch}
.split{display:grid; grid-template-columns:5fr 7fr; gap:64px; align-items:start}
.split > :first-child{position:sticky; top:96px}
@media (max-width:860px){
  .split{grid-template-columns:1fr; gap:36px}
  .split > :first-child{position:static}
}

/* ---------- service list ---------- */
.list{list-style:none; margin:0; padding:0; border-top:1px solid var(--line)}
.list li{border-bottom:1px solid var(--line)}
.list a{display:grid; grid-template-columns:1fr auto; gap:24px; align-items:center; padding:28px 0; text-decoration:none; color:inherit}
.list h3{font-size:23px; margin-bottom:6px; letter-spacing:-.02em}
.list p{font-size:15.5px; color:var(--ink-2); max-width:56ch}
.list .arrow{color:var(--acc); font-size:22px; transition:transform .15s}
.list a:hover .arrow{transform:translateX(5px)}
.list a:hover h3{color:var(--acc-hi)}

/* ---------- photo band ---------- */
.band{position:relative; height:clamp(260px,42vw,520px); overflow:hidden; margin:0}
.band img{width:100%; height:100%; object-fit:cover}
.band figcaption{position:absolute; left:0; right:0; bottom:0; padding:18px 0; font-size:13.5px; color:rgba(255,255,255,.85); background:linear-gradient(0deg, rgba(20,30,42,.8), rgba(20,30,42,0))}

/* ---------- steps ---------- */
.steps{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:52px}
.step{background:var(--white); border:1px solid var(--line-soft); border-radius:10px; padding:28px 26px}
.step .num{display:inline-grid; place-items:center; width:34px; height:34px; border-radius:50%; background:var(--acc); color:#fff; font-weight:700; font-size:15px; margin-bottom:18px}
.step h3{font-size:21px; margin-bottom:10px}
.step p{font-size:15.5px; color:var(--ink-2)}
@media (max-width:760px){.steps{grid-template-columns:1fr; gap:16px}}

/* ---------- two-up text ---------- */
.duo{display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:start}
@media (max-width:820px){.duo{grid-template-columns:1fr; gap:40px}}
.duo h3{font-size:24px; margin-bottom:16px}
.duo p{color:var(--ink-2); font-size:16.5px}
.duo strong{color:var(--ink)}
.check{list-style:none; margin:0 0 18px; padding:0}
.check li{padding:12px 0 12px 30px; border-bottom:1px solid var(--line-soft); color:var(--ink-2); font-size:16.5px; position:relative}
.check li:first-child{border-top:1px solid var(--line)}
.check li::before{content:""; position:absolute; left:4px; top:21px; width:11px; height:6px; border-left:2.5px solid var(--acc); border-bottom:2.5px solid var(--acc); transform:rotate(-45deg)}

/* ---------- quote ---------- */
.quote{font-size:clamp(26px,3.4vw,42px); font-weight:600; line-height:1.18; letter-spacing:-.025em; max-width:22ch; margin:0 0 26px; color:var(--ink)}
.who{display:flex; gap:14px; align-items:center; font-size:15px; color:var(--ink-2)}
.who b{color:var(--ink); font-weight:600; display:block}
.revs{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:56px}
.rev{background:var(--white); border-radius:10px; padding:26px; border:1px solid var(--acc-tint-2)}
.rev p{font-size:15.5px; color:var(--ink-2); margin-bottom:14px}
.rev cite{font-style:normal; font-weight:600; font-size:14.5px; color:var(--ink)}
.rev small{display:block; color:var(--muted); font-size:13px}
@media (max-width:760px){.revs{grid-template-columns:1fr; gap:14px}}

/* ---------- contact ---------- */
.contact{display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center}
.contact img{width:100%; height:100%; min-height:380px; object-fit:cover; border-radius:10px}
.addr{font-size:17px; color:var(--ink-2); margin-bottom:26px; line-height:1.5}
.addr strong{display:block; font-size:24px; color:var(--ink); font-weight:700; letter-spacing:-.02em; margin-bottom:6px}
.hours{width:100%; border-collapse:collapse; font-size:16px; margin-top:34px}
.hours td{padding:12px 0; border-bottom:1px solid var(--line-soft); color:var(--ink-2)}
.hours td:last-child{text-align:right; color:var(--ink); font-weight:500; font-variant-numeric:tabular-nums}
.hours tr:first-child td{border-top:1px solid var(--line)}
.hours tr.off td{color:var(--muted)}
.perks{margin-top:24px; font-size:15.5px; color:var(--ink-2)}
.perks strong{color:var(--ink)}
@media (max-width:860px){.contact{grid-template-columns:1fr; gap:36px} .contact img{min-height:260px}}
.map{margin-top:56px}
.map-frame{position:relative; border-radius:10px; overflow:hidden; border:1px solid var(--line-soft); background:var(--bg-2); aspect-ratio:2/1}
.map-frame iframe{width:100%; height:100%; border:0; display:block}
.map-cta{position:absolute; right:16px; top:16px; z-index:2; background:var(--acc); color:#fff; padding:11px 18px; border-radius:6px; font-weight:600; font-size:15px; text-decoration:none; box-shadow:0 6px 18px -8px rgba(0,0,0,.5)}
.map-cta:hover{background:var(--acc-hi)}
.map-link{margin-top:10px; font-size:12.5px; color:var(--muted)}
.map-link a{color:var(--muted)}
.map-link a:hover{color:var(--acc-hi)}
@media (max-width:760px){
  .map{margin-top:36px}
  .map-frame{aspect-ratio:4/3}
  .map-cta{right:12px; top:12px; padding:9px 14px; font-size:14px}
}

/* ---------- article pages ---------- */
.crumb{font-size:13.5px; color:var(--muted); padding-block:22px 0}
.crumb a{color:var(--muted); text-decoration:none}
.crumb a:hover{color:var(--acc-hi)}
.page-hero{padding-block:48px 72px; display:grid; grid-template-columns:7fr 5fr; gap:64px; align-items:start}
.page-hero h1{font-size:clamp(36px,5vw,62px)}
.page-hero .lead{font-size:18.5px; color:var(--ink-2); max-width:48ch; margin-top:20px}
.page-hero img{width:100%; height:auto; aspect-ratio:5/4; object-fit:cover; border-radius:10px}
@media (max-width:860px){.page-hero{grid-template-columns:1fr; gap:32px; padding-block:32px 48px} .page-hero img{aspect-ratio:16/10}}
.prose{max-width:68ch}
.prose h2{font-size:clamp(25px,3.2vw,34px); margin:52px 0 16px}
.prose h2:first-child{margin-top:0}
.prose h3{font-size:20px; margin:30px 0 10px}
.prose p{color:var(--ink-2)}
.prose strong{color:var(--ink); font-weight:600}
.prose ul{padding-left:20px; margin:0 0 1em}
.prose li{margin-bottom:8px; color:var(--ink-2)}

.note{background:var(--acc-tint); border-left:3px solid var(--acc); border-radius:0 10px 10px 0; padding:22px 26px; color:var(--ink-2); font-size:16.5px}
.note h2,.note h3{font-size:20px; margin-bottom:10px}
.note strong{color:var(--ink)}
.note.sos{background:#FCE9E8; border-left-color:#D6403A}

.faq{border-top:1px solid var(--line); margin-top:16px}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{cursor:pointer; padding:20px 0; font-weight:600; font-size:17.5px; list-style:none; display:flex; justify-content:space-between; gap:18px; color:var(--ink)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+"; color:var(--acc); font-size:22px; line-height:1; flex:none}
.faq details[open] summary::after{content:"–"}
.faq details div{padding-bottom:22px; color:var(--ink-2); font-size:16.5px; max-width:66ch}

/* ---------- footer ---------- */
footer{background:var(--slate); color:rgba(255,255,255,.72); padding-block:52px 32px}
.foot{display:grid; grid-template-columns:1.6fr 1fr 1fr; gap:40px; margin-bottom:40px}
footer h3{font-size:12.5px; letter-spacing:.07em; text-transform:uppercase; color:rgba(255,255,255,.5); font-weight:600; margin:0 0 14px}
footer p{font-size:15px; color:rgba(255,255,255,.72); max-width:40ch}
footer ul{list-style:none; margin:0; padding:0; display:grid; gap:9px}
footer a{color:#fff; text-decoration:none; font-size:15px}
footer a:hover{color:#FFB48C}
.foot-bottom{border-top:1px solid rgba(255,255,255,.14); padding-top:20px; font-size:13.5px; color:rgba(255,255,255,.5); display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap}
@media (max-width:760px){.foot{grid-template-columns:1fr; gap:26px}}

/* údaj k doplnění majitelem */
.fill{color:var(--acc-hi); border-bottom:1px dashed var(--acc); font-size:.92em}

:focus-visible{outline:2px solid var(--acc); outline-offset:3px}
@media (prefers-reduced-motion:reduce){*{transition:none!important} html{scroll-behavior:auto}}

/* ---------- telefon ---------- */
@media (max-width:600px){
  body{font-size:16.5px}
  section{padding-block:56px}
  .hero{min-height:0}
  .hero .shell{padding-block:56px 32px}
  .hero h1{font-size:clamp(32px,9.2vw,44px); max-width:none}
  .hero .lead{font-size:17px; margin-top:16px}
  .cta-row{flex-direction:column; gap:10px; margin-top:24px}
  .btn{width:100%; justify-content:center; padding:15px 20px}
  .sec-title{font-size:clamp(27px,7.5vw,34px)}
  .sec-lead{font-size:16px; margin-bottom:8px}
  .split{gap:26px}
  .list a{padding:20px 0; gap:14px}
  .list h3{font-size:20px}
  .list p{font-size:15px}
  .band{height:220px}
  .band figcaption{font-size:12.5px; padding:12px 0}
  .steps{margin-top:28px; gap:12px}
  .step{padding:22px 20px}
  .duo h3{font-size:21px}
  .quote{font-size:clamp(22px,6.4vw,28px)}
  .revs{margin-top:32px; gap:12px}
  .rev{padding:20px}
  .contact img{min-height:0; aspect-ratio:4/3}
  .addr strong{font-size:21px}
  .hours{margin-top:26px; font-size:15.5px}
  .page-hero{padding-block:24px 40px; gap:24px}
  .page-hero h1{font-size:clamp(30px,8.6vw,40px)}
  .page-hero .lead{font-size:16.5px}
  .prose h2{font-size:clamp(23px,6.6vw,28px); margin-top:40px}
  .faq summary{font-size:16.5px; padding:16px 0}
  footer{padding-block:40px 24px}
  .foot{gap:22px; margin-bottom:28px}
}

/* ---------- scroll reveal ---------- */
/* Skryté jen tehdy, když JS v <head> nastaví .js-reveal na <html>.
   Bez JS (nebo při chybě skriptu) zůstává všechno normálně viditelné.
   Hero a page-hero se záměrně neanimují, ať se neodkládá LCP.
   Skrytý stav je psaný přes :not(.is-in), aby odkrytí nezáviselo na specificitě. */
.js-reveal .facts .shell>div:not(.is-in),
.js-reveal .split>div:not(.is-in),
.js-reveal .list>li:not(.is-in),
.js-reveal .band:not(.is-in),
.js-reveal .steps>.step:not(.is-in),
.js-reveal .duo>div:not(.is-in),
.js-reveal .quote:not(.is-in),
.js-reveal .who:not(.is-in),
.js-reveal .revs>.rev:not(.is-in),
.js-reveal .contact img:not(.is-in),
.js-reveal .contact>div:not(.is-in),
.js-reveal .map:not(.is-in),
.js-reveal .note:not(.is-in),
.js-reveal .faq:not(.is-in){opacity:0; transform:translateY(20px)}

.js-reveal .facts .shell>div,
.js-reveal .split>div,
.js-reveal .list>li,
.js-reveal .band,
.js-reveal .steps>.step,
.js-reveal .duo>div,
.js-reveal .quote,
.js-reveal .who,
.js-reveal .revs>.rev,
.js-reveal .contact img,
.js-reveal .contact>div,
.js-reveal .map,
.js-reveal .note,
.js-reveal .faq{transition:opacity .6s cubic-bezier(.22,.61,.36,1) var(--rd,0ms),
             transform .6s cubic-bezier(.22,.61,.36,1) var(--rd,0ms)}

@media (prefers-reduced-motion:reduce){
.js-reveal .facts .shell>div,
.js-reveal .split>div,
.js-reveal .list>li,
.js-reveal .band,
.js-reveal .steps>.step,
.js-reveal .duo>div,
.js-reveal .quote,
.js-reveal .who,
.js-reveal .revs>.rev,
.js-reveal .contact img,
.js-reveal .contact>div,
.js-reveal .map,
.js-reveal .note,
.js-reveal .faq{transition:none}
}

/* ---------- přeskočení na obsah (klávesnice) ---------- */
.skip-link{position:absolute; left:-9999px; top:0; z-index:100; background:var(--acc); color:#fff;
  padding:12px 20px; border-radius:0 0 8px 0; font-weight:600; font-size:15px; text-decoration:none}
.skip-link:focus{left:0}
h1:focus{outline:none}

@media print{
  .js-reveal *{opacity:1 !important; transform:none !important; transition:none !important}
  .skip-link,.menu-btn,.map-frame{display:none !important}
}
