/* Pavel Potužák – montáž střešních oken VELUX
   Koncept: řemeslník na střeše. Břidlice, obloha, modrá dodávky, akcent střešní tašky.
   Výrazný prvek: šikmý řez ve sklonu střechy. Vše ostatní věcné a čitelné. */

:root {
  --slate: #1f2a33;
  --slate-soft: #4f5c66;
  --sky: #eef4f8;
  --sky-deep: #dde9f1;
  --white: #ffffff;
  --van: #1d4f9a;
  --van-dark: #153a73;
  --tile: #b8532c;
  --rule: #c8d5df;

  --font: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --s-1: 0.9rem;
  --s0: 1.0625rem;
  --s1: 1.3rem;
  --s2: 1.75rem;
  --s3: clamp(2rem, 2.4vw + 1.2rem, 2.8rem);
  --s4: clamp(2.5rem, 4.6vw + 1rem, 4.4rem);
  --measure: 64ch;
  --gap: clamp(1rem, 2.5vw, 1.75rem);
  --page: min(1160px, 100% - 2 * clamp(1rem, 4vw, 2.5rem));
  --pitch: 34%; /* výška šikminy */
}

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-stretch: 62% 125%; font-display: swap; src: url(/fonts/Archivo-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-stretch: 62% 125%; font-display: swap; src: url(/fonts/Archivo-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--sky); color: var(--slate); font-family: var(--font); font-size: var(--s0); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--van); text-underline-offset: 0.18em; }
a:hover { color: var(--slate); }
:focus-visible { outline: 3px solid var(--tile); outline-offset: 3px; }
main:focus { outline: none; }

h1, h2, h3 { font-stretch: 78%; font-weight: 800; line-height: 1.04; letter-spacing: -0.005em; margin: 0 0 0.55em; text-wrap: balance; }
h1 { font-size: var(--s4); }
h2 { font-size: var(--s3); }
h3 { font-size: var(--s1); font-stretch: 85%; }
p, ul, ol { margin: 0 0 1em; max-width: var(--measure); }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--slate); color: var(--white); padding: 0.6rem 1rem; z-index: 30; }
.skip:focus { top: 1rem; }
.wrap { width: var(--page); margin-inline: auto; }

/* záhlaví – telefon vždy po ruce */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 3px solid var(--tile); }
.site-head .wrap { display: flex; align-items: center; gap: 1rem 1.75rem; min-height: 4.5rem; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--slate); line-height: 1.15; margin-right: auto; padding: 0.4rem 0; }
.brand img { display: block; height: 3.5rem; width: auto; }
.brand span { font-size: var(--s-1); color: var(--slate-soft); padding-left: 0.8rem; border-left: 2px solid var(--rule); }
.nav ul { list-style: none; display: flex; gap: 0.25rem 1.4rem; margin: 0; padding: 0; max-width: none; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--slate); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { border-bottom-color: var(--van); }
.phone { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0.5rem 1rem; background: var(--van); color: var(--white); text-decoration: none; font-weight: 700; border-radius: 0.35rem; white-space: nowrap; }
.phone:hover { background: var(--van-dark); color: var(--white); }
.phone svg { width: 1.05rem; height: 1.05rem; flex: none; }
.menu-mobile { display: none; }
.menu-mobile summary { cursor: pointer; list-style: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 0.9rem; border: 2px solid var(--slate); border-radius: 0.35rem; font-weight: 700; }
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile > nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 3px solid var(--tile); padding: 0 clamp(1rem, 4vw, 2.5rem) 0.75rem; }
.menu-mobile ul { list-style: none; margin: 0; padding: 0; max-width: none; }
.menu-mobile li a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--rule); color: var(--slate); text-decoration: none; font-weight: 600; font-size: 1.1rem; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-mobile { display: block; }
  .phone .num-long { display: none; }
}
@media (max-width: 380px) { .brand span { display: none; } }

/* úvod se šikminou střechy */
.hero { background: var(--white); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2rem, 5vw, 4rem); }
.hero .lead { font-size: var(--s1); color: var(--slate-soft); max-width: 36ch; }
.roof { position: relative; }
.roof { margin: 0; padding-top: 24%; }
.roof img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; border-radius: 0 0 0.35rem 0.35rem; }
/* štít střechy nad fotkou – fotka se neořezává, hlavy zůstanou celé */
.roof::before, .roof::after { content: ""; position: absolute; top: 0; left: -3%; right: -3%; aspect-ratio: 106 / 25.5; }
.roof::before { background: var(--sky); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.roof::after { background: var(--tile); clip-path: polygon(50% 0, 100% 100%, 95.5% 100%, 50% 13%, 4.5% 100%, 0 100%); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 50px; padding: 0.7rem 1.3rem; font-weight: 700; font-size: 1.05rem; text-decoration: none; border-radius: 0.35rem; border: 2px solid var(--van); }
.btn-primary { background: var(--van); color: var(--white); }
.btn-primary:hover { background: var(--van-dark); border-color: var(--van-dark); color: var(--white); }
.btn-quiet { background: transparent; color: var(--van); }
.btn-quiet:hover { background: var(--sky); color: var(--slate); }
.btn svg { width: 1.1rem; height: 1.1rem; }

/* fakta – co je pravda, ne slogany */
.facts { background: var(--slate); color: var(--white); }
.facts ul { list-style: none; margin: 0; padding: 1.1rem 0; max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.6rem var(--gap); }
.facts li { padding-left: 1.4rem; position: relative; font-weight: 600; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.7rem; height: 0.7rem; background: var(--tile); clip-path: polygon(0 100%, 50% 0, 100% 100%); }

.section { padding-block: clamp(2.75rem, 6vw, 4.75rem); }
.section-white { background: var(--white); }
.section-head { max-width: var(--measure); margin-bottom: 1.75rem; }
.section-head p { color: var(--slate-soft); font-size: var(--s1); }
.slope { height: 46px; background: var(--white); clip-path: polygon(0 100%, 100% 0, 100% 100%); margin-top: -1px; }
.slope-down { background: var(--sky); }

.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.75rem var(--gap); }
.trio > div { border-top: 4px solid var(--van); padding-top: 1rem; }
.trio p { color: var(--slate-soft); margin: 0; }

.products { list-style: none; margin: 0; padding: 0; max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.products li { background: var(--white); }
.products a, .products .item { display: grid; grid-template-columns: 96px 1fr; gap: 0.9rem; align-items: center; padding: 1rem; color: var(--slate); text-decoration: none; height: 100%; }
.products img { width: 96px; height: 96px; object-fit: contain; }
.products h3 { margin: 0 0 0.2rem; font-size: 1.15rem; }
.products p { margin: 0; font-size: var(--s-1); color: var(--slate-soft); }
.products a:hover h3 { text-decoration: underline; text-underline-offset: 0.18em; }

.product { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.5rem; align-items: start; padding-block: 1.75rem; border-bottom: 1px solid var(--rule); }
.product img { width: 200px; background: var(--white); }
.product h2 { font-size: var(--s2); }
@media (max-width: 640px) { .product { grid-template-columns: 1fr; } .product img { width: 160px; } }

.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 1.6rem; margin-bottom: 0.45rem; }
.checks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.42em; width: 0.8rem; height: 0.45rem; border-left: 3px solid var(--van); border-bottom: 3px solid var(--van); transform: rotate(-45deg); }

.gallery { list-style: none; margin: 0; padding: 0; max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 260px), 1fr)); gap: 0.5rem; }
.gallery a { display: block; background: var(--white); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-docs img { aspect-ratio: 3 / 4; object-fit: contain; }
.hint { font-size: var(--s-1); color: var(--slate-soft); margin-bottom: 0.9rem; }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 96vh; }
dialog.lightbox::backdrop { background: rgba(15, 22, 28, 0.93); }
.lightbox figure { margin: 0; display: grid; gap: 0.5rem; justify-items: center; }
.lightbox img { max-height: 82vh; width: auto; }
.lightbox figcaption { color: var(--white); font-size: var(--s-1); }
.lightbox .lb-bar { display: flex; gap: 0.5rem; }
.lightbox button { font: inherit; font-weight: 700; min-height: 44px; min-width: 44px; padding: 0.4rem 1rem; border-radius: 0.35rem; border: 2px solid var(--white); background: transparent; color: var(--white); cursor: pointer; }
.lightbox button:hover { background: var(--white); color: var(--slate); }

.page-head { background: var(--white); padding-block: clamp(2rem, 4vw, 3rem) 1.5rem; }
.page-head h1 { font-size: clamp(2.2rem, 3vw + 1.2rem, 3.4rem); }
.page-head .lead { font-size: var(--s1); color: var(--slate-soft); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 0.5rem; margin: 0 0 0.5rem; padding: 0; max-width: none; font-size: var(--s-1); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--slate-soft); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem var(--gap); }
.contact-grid h2 { font-size: var(--s1); margin-bottom: 0.4rem; }
.big { font-size: var(--s2); font-weight: 800; font-stretch: 80%; text-decoration: none; overflow-wrap: anywhere; }
.big:hover { text-decoration: underline; }

.cta-band { background: var(--van); color: var(--white); }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #dbe6f5; }
.cta-band .btn-primary { background: var(--white); color: var(--van); border-color: var(--white); }
.cta-band .btn-primary:hover { background: var(--sky-deep); border-color: var(--sky-deep); color: var(--slate); }
.cta-band .btn-quiet { color: var(--white); border-color: var(--white); }
.cta-band .btn-quiet:hover { background: var(--white); color: var(--van); }

.site-foot { background: var(--slate); color: #cdd6dd; padding-block: 2.75rem 2rem; font-size: 0.95rem; }
.site-foot a { color: var(--white); }
.site-foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.75rem var(--gap); }
.site-foot h2 { font-size: 1.05rem; font-stretch: 90%; color: var(--white); margin-bottom: 0.5rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li a { display: inline-flex; align-items: center; min-height: 40px; }
.site-foot .legal { border-top: 1px solid #3b4955; margin-top: 2.25rem; padding-top: 1.1rem; font-size: var(--s-1); color: #a9b5be; }
.site-foot .legal p { max-width: none; margin: 0 0 0.3rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .site-head nav, .menu-mobile, .actions, .cta-band, .lightbox, .slope { display: none !important; } body { background: #fff; } }

/* ---------- úpravy po nezávislé kontrole (29. 11.) ---------- */
html { overflow-x: clip; }
.site-head .wrap > * { min-width: 0; }
.cta-band :focus-visible, .site-foot :focus-visible, .facts :focus-visible { outline-color: #ffffff; }
.contact-grid a { display: inline-block; padding-block: 0.55rem; }
.products .more { display: inline-block; margin-top: 0.35rem; font-size: var(--s-1); font-weight: 700; color: var(--van); }
.product h3 { font-size: 1.05rem; margin-top: 0.75rem; }
.links404 { padding-left: 1.2rem; }
.links404 a { display: inline-block; padding-block: 0.4rem; }
@media (max-width: 640px) {
  .site-head .wrap { gap: 0.6rem; }
  .brand span { display: none; }
  .brand img { height: 2.75rem; }
  .phone { padding: 0.5rem 0.7rem; }
}
@media (max-width: 400px) {
  .phone > span { display: none; }
  .phone svg { width: 1.3rem; height: 1.3rem; }
}
