/* Střechy Klingr – hlavní styly */
:root {
  --red: #d3031c;
  --red-dark: #a80216;
  --ink: #1a171b;
  --ink-2: #2a262b;
  --steel: #5c5a60;
  --muted: #6f6d73;
  --line: #e4e2e6;
  --bg: #ffffff;
  --bg-soft: #f4f3f5;
  --radius: 4px;
  --wrap: 1200px;
  --head: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(26, 23, 27, .06), 0 8px 24px rgba(26, 23, 27, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font: 400 17px/1.6 var(--body); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: .005em; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

/* Tlačítka */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .8em 1.4em; border: 2px solid transparent; border-radius: var(--radius);
  font: 600 1.05rem/1 var(--body); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }

.eyebrow { display: inline-flex; align-items: center; gap: .6em; font: 600 .85rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* Horní lišta */
.topbar { background: var(--ink); color: #c9c7cc; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 24px; padding-block: 8px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 860px) { .topbar { display: none; } }

/* Hlavička */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 38px; height: 38px; background: var(--red); clip-path: polygon(0 0, 100% 0, 0 100%); flex: none; }
.logo-text { display: flex; flex-direction: column; font-family: var(--head); text-transform: uppercase; line-height: .92; }
.logo-text small { font-weight: 600; font-size: 1.05rem; letter-spacing: .12em; color: var(--steel); }
.logo-text strong { font-weight: 700; font-size: 1.75rem; letter-spacing: .02em; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.02rem; border-radius: var(--radius); }
.nav a:hover { color: var(--red); }
.nav a { position: relative; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--red); transform: scaleX(0); transition: transform .25s; }
.nav a.active { color: var(--red); }
.nav a.active::after { transform: scaleX(1); }
.header-cta { padding: .7em 1.1em; }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; padding: 0; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 22px; height: 2px; background: var(--ink); margin: auto; position: relative; transition: transform .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; } .menu-toggle span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1020px) {
  .header .wrap { height: 68px; gap: 12px; }
  .menu-toggle { display: block; }
  .header-cta { margin-left: auto; }
  .menu-toggle { margin-left: 0; }
  .header-cta .cta-text { display: none; }
  .header-cta { padding: 0; width: 46px; height: 46px; justify-content: center; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; margin: 0; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.1rem; }
  .nav a::after { left: auto; right: 6px; top: 50%; bottom: auto; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-50%) scale(0); }
  .nav a.active::after { transform: translateY(-50%) scale(1); }
  .logo-text strong { font-size: 1.5rem; } .logo-text small { font-size: .9rem; } .logo-mark { width: 32px; height: 32px; }
}

/* Hero */
.hero { position: relative; color: #fff; background: var(--ink) url(/images/hero-sklad-960.webp) center / cover no-repeat; overflow: hidden; }
@media (min-width: 961px) { .hero { background-image: url(/images/hero-sklad.webp); } }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(26, 23, 27, .94) 0%, rgba(26, 23, 27, .82) 48%, rgba(26, 23, 27, .45) 100%); }
.hero::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: min(38vw, 460px); aspect-ratio: 1; background: var(--red); clip-path: polygon(100% 0, 100% 100%, 0 100%); opacity: .95; }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(64px, 11vw, 140px) clamp(72px, 10vw, 128px); }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--red); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); text-transform: uppercase; max-width: 17ch; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 56ch; color: #e6e4e8; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; padding: 0; margin: 3rem 0 0; color: #fff; font-weight: 500; }
.hero-facts li { display: flex; align-items: center; gap: 10px; }
.hero-facts svg { width: 22px; height: 22px; color: var(--red); flex: none; }
@media (max-width: 600px) { .hero::after { width: 42vw; opacity: .9; } .hero-actions .btn { flex: 1 1 100%; justify-content: center; } .hero-facts { flex-direction: column; } }

/* Sekce */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #e6e4e8; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.section-dark .section-head p { color: #bdbac0; }

/* Sortiment */
.cats { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.cat { grid-column: span 3; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; display: flex; flex-direction: column; position: relative; transition: box-shadow .2s, transform .2s, border-color .2s; }
.cat:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.cat-main { grid-column: span 6; }
.cat-icon { width: 52px; height: 52px; color: var(--red); margin-bottom: 18px; }
.cat h3 { margin-bottom: .4em; }
.cat p { color: var(--steel); flex: 1; }
.cat-link { align-self: flex-start; font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; color: var(--red); font-size: 1rem; cursor: pointer; font-family: var(--body); }
.cat-link:hover { text-decoration: underline; }
.cat-count { position: absolute; top: 24px; right: 22px; font-size: .85rem; color: var(--muted); }
.cat-main { display: grid; grid-template-columns: 1fr 1fr; padding: 0; overflow: hidden; }
.cat-main .cat-body { padding: 28px 24px 24px; display: flex; flex-direction: column; }
.cat-main img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.cat-main .cat-body .cat-count { position: static; margin-top: 12px; }
@media (max-width: 1020px) { .cat { grid-column: span 6; } .cat-main { grid-column: span 12; } }
@media (max-width: 720px) { .cats { gap: 14px; } .cat, .cat-main { grid-column: span 12; } .cat-main { grid-template-columns: 1fr; } .cat-main img { min-height: 0; aspect-ratio: 980 / 360; } }

/* Doprava */
.delivery { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; background: var(--ink); color: #fff; }
.delivery-img { position: relative; min-height: 340px; }
.delivery-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.delivery-body { padding: clamp(40px, 6vw, 88px) clamp(24px, 6vw, 88px); position: relative; }
.delivery-body::before { content: ""; position: absolute; left: 0; top: 0; width: 64px; height: 64px; background: var(--red); clip-path: polygon(0 0, 100% 0, 0 100%); }
.delivery-body h2 { font-size: clamp(2rem, 3.8vw, 2.8rem); }
.delivery-body h2 em { font-style: normal; color: var(--red); }
.delivery-body p { color: #d4d2d7; font-size: 1.1rem; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 3px; }
@media (max-width: 860px) { .delivery { grid-template-columns: 1fr; } .delivery-img { min-height: 0; aspect-ratio: 941 / 500; } }

/* O nás */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-text p { color: var(--ink-2); }
.about-text .lead { font-size: 1.25rem; color: var(--ink); font-weight: 500; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 2rem 0; }
.stat { background: #fff; padding: 20px 22px; }
.stat strong { display: block; font: 700 2.6rem/1 var(--head); color: var(--red); margin-bottom: 6px; }
.stat span { color: var(--steel); font-size: .98rem; }
.about-media { display: grid; gap: 16px; }
.about-media img { border-radius: var(--radius); width: 100%; }
.about-media .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.region { margin-top: 1.5rem; padding: 20px 22px; border-left: 4px solid var(--red); background: var(--bg-soft); color: var(--steel); font-size: .98rem; }
.region strong { color: var(--ink); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* Značky */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { font: 600 .98rem/1 var(--body); padding: .7em 1.05em; border-radius: 999px; border: 1px solid #cfccd2; background: #fff; color: var(--ink); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip small { font-weight: 500; opacity: .65; margin-left: .3em; }
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.brand { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.brand[hidden] { display: none; }
.brand-logo { height: 116px; display: grid; place-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.brand-logo img { max-height: 80px; max-width: 190px; width: auto; object-fit: contain; }
.brand-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.brand h3 { font-size: 1.35rem; margin-bottom: .3em; }
.brand-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 12px; padding: 0; }
.brand-tags li { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--steel); background: var(--bg-soft); padding: 3px 8px; border-radius: 3px; }
.brand p { color: var(--steel); font-size: .98rem; margin-bottom: .6em; }
.brand-body > p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.brand details { margin-bottom: 12px; }
.brand summary { cursor: pointer; color: var(--ink); font-weight: 600; font-size: .95rem; list-style: none; }
.brand summary::-webkit-details-marker { display: none; }
.brand summary::after { content: " +"; color: var(--red); }
.brand details[open] summary::after { content: " –"; }
.brand details p { margin-top: .6em; }
.brand-body:has(details[open]) > p { display: none; }
.brand-body:has(details[open]) details { order: 1; }
.brand-body:has(details[open]) .brand-web { order: 2; }
.brand-web { margin-top: auto; font-weight: 600; font-size: .95rem; text-decoration: none; }
.brand-web:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .brands { gap: 10px; }
  .brand { display: grid; grid-template-columns: 104px 1fr; }
  .brand-logo { height: auto; padding: 12px; border-bottom: 0; border-right: 1px solid var(--line); }
  .brand-logo img { max-width: 80px; max-height: 56px; }
  .brand-body { padding: 12px 14px; }
  .brand h3 { font-size: 1.2rem; }
  .brand-tags { margin-bottom: 6px; }
  .brand-tags li { font-size: .68rem; padding: 2px 6px; }
  .brand-body > p { display: none; }
  .brand details { margin-bottom: 6px; }
}

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; }
.gallery button { font: inherit; padding: 0; border: 0; background: var(--ink-2); cursor: zoom-in; overflow: hidden; border-radius: var(--radius); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .3s; }
.gallery button:hover img { transform: scale(1.04); opacity: .9; }
.gallery .g-wide { grid-column: span 2; grid-row: span 2; }
.gallery .g-w2 { grid-column: span 2; }
.gallery .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; font-size: .92rem; text-align: left; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } }
@media (max-width: 520px) { .gallery { grid-auto-rows: 120px; gap: 8px; } .gallery .cap { display: none; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 9, 11, .9); }
.lightbox img { max-height: 82vh; width: auto; margin: auto; border-radius: var(--radius); }
.lightbox p { color: #fff; text-align: center; margin: 12px 0 0; }
.lightbox-close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ccard { background: var(--ink-2); border-radius: var(--radius); padding: 22px; }
.ccard-wide { grid-column: span 2; }
.ccard h3 { font-family: var(--body); font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #a9a6ad; margin-bottom: .8em; display: flex; align-items: center; gap: 8px; }
.ccard h3 svg { width: 18px; height: 18px; color: var(--red); }
.ccard p { margin: 0 0 .3em; color: #fff; font-size: 1.08rem; }
.ccard a { color: #fff; text-decoration: none; }
.ccard a:hover { color: #fff; text-decoration: underline; }
.ccard .big { font: 700 1.7rem/1.2 var(--head); letter-spacing: .02em; }
.ccard .note { color: #a9a6ad; font-size: .92rem; }
.hours { width: 100%; border-collapse: collapse; color: #fff; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid #3a363b; font-weight: 400; vertical-align: baseline; }
.hours td { text-align: right; font-weight: 600; white-space: nowrap; }
.hours tr.now th, .hours tr.now td { color: #fff; }
.hours tr.now th::after { content: "aktuálně"; display: block; width: fit-content; margin-top: 5px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--red); color: #fff; padding: 3px 9px 3px 10px; border-radius: 3px; line-height: 1.3; }
.notice { background: var(--red); color: #fff; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 16px; font-weight: 500; }
.notice[hidden] { display: none; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; background: #2a262b url(/images/galerie/prodejna-lanovska.webp) center / cover; min-height: 420px; height: 100%; }
.map::before { content: ""; position: absolute; inset: 0; background: rgba(26, 23, 27, .72); }
.map-consent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 14px; padding: 24px; color: #fff; }
.map-consent p { max-width: 36ch; margin: 0; color: #d4d2d7; font-size: .95rem; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.map-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: .95rem; }
.map-links a { color: #fff; }
.company { margin-top: 24px; font-size: .95rem; color: #a9a6ad; }
.company dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin: 0; }
.company dt { color: #8d8a91; } .company dd { margin: 0; color: #e6e4e8; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } .map { min-height: 340px; } }
@media (max-width: 520px) { .contact-cards { grid-template-columns: 1fr; } .ccard-wide { grid-column: auto; } .company dl { grid-template-columns: 1fr; } .company dd { margin-bottom: 6px; } }

/* Patička */
.footer { background: #111012; color: #9d9aa1; font-size: .92rem; padding-block: 48px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.6fr; gap: 40px; margin-bottom: 36px; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer .logo-text small { color: #a9a6ad; }
.footer h3 { font: 600 .8rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { color: #cfccd2; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #2a262b; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Tlačítko nahoru + mobilní volání */
.to-top { position: fixed; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 40; box-shadow: var(--shadow); }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; margin: auto; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; padding: 64px 16px; }
.notfound strong { font: 700 clamp(5rem, 16vw, 9rem)/1 var(--head); color: var(--red); }
