/* HAVLÁT s.r.o. — statický web (bez administrace). Paleta z původního webu: ocelová modrá + červená z loga. */
:root {
  --navy: #30475b; --navy-d: #1d2d3c; --blue: #1a4673; --sky: #afcadf; --mist: #d5deea; --paper: #f3f6fa; --white: #fff; --red: #dd2149; --ink: #1d2d3c; --muted: #5a6b7c; --line: #d3dce7;
  --font: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif; --display: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --wrap: 1180px; --r: 18px; --shadow: 0 1px 2px rgba(20, 40, 60, .08), 0 14px 34px rgba(20, 40, 60, .12); --hh: 78px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--ink); background: var(--paper); display: flex; flex-direction: column; min-height: 100vh; }
img { max-width: 100%; height: auto; display: block; } a { color: var(--blue); text-underline-offset: 3px; } a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 300; background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; } .skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -.015em; color: var(--navy-d); margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5.6vw, 68px); font-weight: 800; } h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 780; } h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 1em; } main { flex: 1; }

/* hlavička */
.top { position: sticky; top: 0; z-index: 90; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; } .top.is-stuck { box-shadow: 0 8px 28px rgba(20, 40, 60, .14); }
.top-in { display: flex; align-items: center; gap: 22px; height: var(--hh); transition: height .25s; } .top.is-stuck .top-in { height: 64px; }
.brand { flex: none; display: block; } .brand img { height: 46px; width: auto; transition: height .25s; } .top.is-stuck .brand img { height: 38px; }
.nav { flex: 1; display: flex; justify-content: flex-end; gap: 4px; } .nav a { position: relative; padding: 10px 16px; font: 700 15.5px/1 var(--font); color: var(--navy-d); text-decoration: none; border-radius: 10px; }
.nav a::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 3px; height: 3px; background: var(--red); border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform .25s; } .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); } .nav a:hover { color: var(--navy-d); }
.tel { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: var(--navy); color: #fff; font: 800 15.5px/1 var(--font); text-decoration: none; transition: background .2s, transform .15s; } .tel:hover { background: var(--red); color: #fff; transform: translateY(-1px); }
.burger { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--mist); color: var(--navy-d); cursor: pointer; place-items: center; } .burger .i { width: 24px; height: 24px; } .burger .i:nth-child(2) { display: none; }

/* hrdina */
.hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: clamp(46px, 8vw, 100px) 0 clamp(60px, 9vw, 120px);
  background: radial-gradient(900px 520px at 82% 12%, rgba(70, 130, 200, .55), transparent 62%), radial-gradient(520px 320px at 5% 108%, rgba(221, 33, 73, .28), transparent 70%), linear-gradient(135deg, #1b2a38, #30475b 58%, #1a4673); }
.hero::before { content: ''; position: absolute; inset: -48px 0 0 -48px; z-index: -1; background: repeating-linear-gradient(0deg, rgba(175, 202, 223, .09) 0 1px, transparent 1px 48px), repeating-linear-gradient(90deg, rgba(175, 202, 223, .09) 0 1px, transparent 1px 48px); animation: drift 14s linear infinite; }
@keyframes drift { to { transform: translate(48px, 48px); } }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 46px; align-items: center; }
.eyebrow { margin: 0 0 14px; font: 800 13.5px/1.35 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--sky); display: flex; align-items: center; gap: 10px; } .eyebrow::before { content: ''; width: 34px; height: 3px; background: var(--red); }
.hero h1 { color: #fff; margin: 0 0 .35em; } .hero h1 .word { display: inline-block; color: var(--sky); min-width: 3ch; } .hero h1 .word.out { animation: wout .35s forwards; } .hero h1 .word.in { animation: win .45s both; }
@keyframes wout { to { opacity: 0; transform: translateY(-18px); } } @keyframes win { from { opacity: 0; transform: translateY(18px); } }
.hero .lead { font-size: clamp(18px, 2vw, 22px); max-width: 46ch; color: #e6eef6; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; } .btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 14px; border: 2px solid transparent; background: var(--red); color: #fff; font: 800 16.5px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .2s; box-shadow: 0 8px 22px rgba(221, 33, 73, .35); } .btn:hover { background: #bb1739; color: #fff; transform: translateY(-2px); }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .6); box-shadow: none; } .btn.ghost:hover { background: rgba(255, 255, 255, .14); }
.facts { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 38px 0 0; padding: 0; list-style: none; } .facts b { display: block; font: 800 clamp(30px, 3.4vw, 44px)/1 var(--display); color: #fff; } .facts span { font-size: 14px; color: var(--sky); }
.stack { position: relative; aspect-ratio: 5 / 4.4; max-width: 520px; margin-left: auto; width: 100%; } .stack figure { position: absolute; inset: 0 8% 8% 0; margin: 0; border-radius: 14px; overflow: hidden; background: #fff; padding: 10px 10px 40px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); transition: transform .8s cubic-bezier(.2, .8, .2, 1), opacity .8s; }
.stack figure img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; } .stack figcaption { position: absolute; left: 14px; right: 14px; bottom: 10px; font: 700 14px/1 var(--font); color: var(--navy); display: flex; justify-content: space-between; }
.stack .s0 { transform: translate(10%, 6%) rotate(4deg); z-index: 3; } .stack .s1 { transform: translate(2%, 2%) rotate(-3deg); z-index: 2; opacity: .96; } .stack .s2 { transform: translate(14%, 10%) rotate(9deg); z-index: 1; opacity: .8; } .stack .s3 { transform: translate(14%, 10%) rotate(9deg) scale(.9); z-index: 0; opacity: 0; }

/* sekce */
.sec { padding: clamp(46px, 7vw, 88px) 0; } .sec.alt { background: #fff; } .sec-head { max-width: 760px; margin-bottom: 34px; } .sec-head p { color: var(--muted); font-size: 19px; }
.tag { display: inline-block; margin-bottom: 12px; padding: 6px 12px; border-radius: 99px; background: var(--mist); color: var(--blue); font: 800 12.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: start; } .prose ul { padding-left: 1.2em; } .prose li { margin: .35em 0; } .prose li::marker { color: var(--red); }
.sign { margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: #fff; } .sign figcaption { padding: 12px 18px; font-size: 14.5px; color: var(--muted); }
.people { display: grid; gap: 14px; } .person { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); border-left: 6px solid var(--red); } .person b { display: block; font: 800 19px/1.2 var(--display); } .person small { display: block; color: var(--muted); font-size: 14.5px; } .person .call { margin-left: auto; }
.call { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: var(--mist); color: var(--navy-d); font: 800 16px/1 var(--font); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; } .call:hover { background: var(--navy); color: #fff; }

/* dlaždice činností */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.tile { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s; } .tile:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(20, 40, 60, .1), 0 24px 48px rgba(20, 40, 60, .2); color: var(--ink); }
.tile-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); } .tile-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transform: scale(1.02); transition: filter .5s, transform .6s; } .tile:hover .tile-img img, .tile:focus-visible .tile-img img { filter: none; transform: scale(1.08); }
.tile-noimg { display: grid; place-items: center; color: var(--sky); background: linear-gradient(135deg, var(--navy-d), var(--blue)); } .tile-noimg .i { width: 64px; height: 64px; stroke-width: 1.4; }
.tile-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; } .tile-body h3 { display: flex; align-items: center; gap: 10px; margin: 0; } .tile-body h3 .i { color: var(--red); } .tile-body p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font: 800 14.5px/1 var(--font); color: var(--blue); } .tile:hover .more { color: var(--red); } .more .i { transition: transform .2s; } .tile:hover .more .i { transform: translateX(4px); }

/* pásek s výzvou */
.band { color: #fff; background: linear-gradient(120deg, var(--navy-d), var(--blue)); padding: clamp(40px, 6vw, 70px) 0; } .band-in { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 40px; justify-content: space-between; } .band h2 { color: #fff; margin: 0 0 6px; } .band p { margin: 0; color: var(--sky); }
.band .call { background: #fff; font-size: 19px; padding: 14px 22px; } .band .call:hover { background: var(--red); color: #fff; }

/* výroba */
.act { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 6px 24px; padding: 30px 0; border-top: 1px solid var(--line); } .act:first-of-type { border-top: 0; }
.act-ic { grid-row: span 3; width: 76px; height: 76px; border-radius: 20px; background: var(--navy); color: #fff; display: grid; place-items: center; } .act-ic .i { width: 38px; height: 38px; stroke-width: 1.6; } .act h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 0; } .act p { margin: 0; color: var(--muted); font-size: 18px; max-width: 70ch; }
.act-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; } .act-thumbs a { display: block; width: 118px; height: 88px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(20, 40, 60, .18); } .act-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; } .act-thumbs a:hover img { transform: scale(1.12); }
.act-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font: 800 15px/1 var(--font); }

/* reference */
.phead { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 46px); color: #fff; background: linear-gradient(135deg, #1b2a38, #30475b 60%, #1a4673); position: relative; overflow: hidden; isolation: isolate; } .phead::before { content: ''; position: absolute; inset: -48px 0 0 -48px; z-index: -1; background: repeating-linear-gradient(0deg, rgba(175, 202, 223, .08) 0 1px, transparent 1px 48px), repeating-linear-gradient(90deg, rgba(175, 202, 223, .08) 0 1px, transparent 1px 48px); }
.phead h1 { color: #fff; margin: 0 0 8px; font-size: clamp(32px, 4.6vw, 56px); } .phead p { margin: 0; color: var(--sky); font-size: 19px; max-width: 60ch; }
.chips { position: sticky; top: var(--hh); z-index: 40; display: flex; gap: 8px; padding: 14px 0; flex-wrap: wrap; background: var(--paper); } .top.is-stuck ~ main .chips { top: 64px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; border: 2px solid var(--line); background: #fff; color: var(--navy-d); font: 800 14.5px/1 var(--font); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s; } .chip:hover { border-color: var(--navy); transform: translateY(-1px); } .chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; } .chip small { font-weight: 700; opacity: .65; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; padding-bottom: 20px; } .shot { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--navy); box-shadow: var(--shadow); animation: pop .5s both; } .shot[hidden] { display: none; }
.shot img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85); transition: filter .4s, transform .5s; } .shot:hover img, .shot:focus-visible img { filter: none; transform: scale(1.07); }
.shot span { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 99px; background: rgba(29, 45, 60, .82); color: #fff; font: 700 12.5px/1 var(--font); opacity: 0; transform: translateY(6px); transition: .25s; } .shot:hover span, .shot:focus-visible span { opacity: 1; transform: none; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: 1fr auto; padding: 18px; background: rgba(12, 20, 30, .94); animation: lbin .2s; touch-action: pan-y; } @keyframes lbin { from { opacity: 0; } }
.lb-main { display: grid; place-items: center; min-height: 0; } .lb-main img { max-width: min(100%, 1100px); max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); background: #fff; animation: lbimg .25s; } @keyframes lbimg { from { opacity: 0; transform: scale(.97); } }
.lb-bar { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 14px; color: #dbe7f3; font-weight: 700; } .lb button { width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; } .lb button:hover { background: var(--red); } .lb button .i { width: 26px; height: 26px; }
.lb-x { position: absolute; top: 14px; right: 14px; }

/* kontakt */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; } .card { background: #fff; border-radius: var(--r); padding: 26px 28px; box-shadow: var(--shadow); } .card h2 { font-size: 24px; display: flex; align-items: center; gap: 10px; } .card h2 .i { color: var(--red); } .card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; } .card dt { color: var(--muted); } .card dd { margin: 0; font-weight: 700; }
.copy { margin-left: 8px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font: 700 12.5px/1.2 var(--font); color: var(--muted); cursor: pointer; } .copy:hover { border-color: var(--navy); color: var(--navy-d); } .copy.ok { background: #1b7a2e; border-color: #1b7a2e; color: #fff; }
.maps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 26px; } .maps a { display: block; position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: #fff; } .maps img { width: 100%; transition: transform .5s; } .maps a:hover img { transform: scale(1.04); } .maps span { position: absolute; left: 12px; bottom: 12px; padding: 7px 12px; border-radius: 99px; background: rgba(29, 45, 60, .85); color: #fff; font: 700 13.5px/1 var(--font); }

/* patička */
.foot { margin-top: 0; background: var(--navy-d); color: #b8c9da; padding: 46px 0 22px; } .foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px 40px; } .foot .logo-chip { display: inline-block; padding: 12px 16px; background: #fff; border-radius: 14px; margin-bottom: 14px; } .foot .logo-chip img { height: 38px; width: auto; }
.foot h3 { color: #fff; font-size: 16px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px; } .foot p { margin: 0 0 6px; font-size: 15.5px; } .foot a { color: #e8f0f8; text-decoration: none; } .foot a:hover { color: #ff8aa2; text-decoration: underline; } .foot ul { list-style: none; margin: 0; padding: 0; } .foot li { margin: 4px 0; font-size: 15.5px; }
.copyr { grid-column: 1 / -1; margin-top: 10px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* odhalování při posunu */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s cubic-bezier(.2, .8, .2, 1); } .js .rv.on { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero-in, .two { grid-template-columns: 1fr; } .stack { margin: 10px auto 0; max-width: 460px; } .foot-in { grid-template-columns: 1fr 1fr; }
  .top { backdrop-filter: none; background: #fff; }
  .burger { display: grid; } .tel { display: none; } html.nav-open .burger .i:nth-child(1) { display: none; } html.nav-open .burger .i:nth-child(2) { display: block; }
  .nav { position: fixed; inset: var(--hh) 0 0 0; background: #fff; flex-direction: column; justify-content: flex-start; padding: 18px 16px 40px; gap: 6px; display: none; overflow: auto; } html.nav-open .nav { display: flex; } html.nav-open body { overflow: hidden; }
  .nav a { padding: 16px 18px; font-size: 19px; background: var(--paper); border-radius: 14px; } .nav a::after { display: none; } .nav a[aria-current="page"] { background: var(--navy); color: #fff; }
}
@media (max-width: 640px) { body { font-size: 16.5px; } :root { --hh: 66px; } .brand img { height: 38px; } .act { grid-template-columns: 1fr; } .act-ic { grid-row: auto; width: 60px; height: 60px; border-radius: 16px; } .person { flex-wrap: wrap; } .person .call { margin-left: 0; } .foot-in { grid-template-columns: 1fr; } .chips { top: var(--hh); } .shots { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; } .shot span { opacity: 1; transform: none; font-size: 11px; padding: 4px 8px; } }
@media (hover: none) { .tile-img img, .shot img { filter: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .js .rv { opacity: 1; transform: none; } }
