/* ROX GROUP v2 – „výrobní výkres“: světlý papír, grafitová linka, žlutá jako značkovač */
:root {
  --paper: #F1F2EF;
  --paper-2: #E6E7E2;
  --white: #FAFAF8;
  --ink: #15171A;
  --steel: #5B6168;
  --line: rgba(21, 23, 26, 0.14);
  --line-2: rgba(21, 23, 26, 0.32);
  --yel: #FFC21A;
  --dark: #15171A;
  --sans: 'Archivo', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --sec: clamp(5rem, 11vw, 9rem);
  --nav-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; font-stretch: 108%; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 5px var(--yel); }
::selection { background: var(--yel); color: var(--ink); }

.wrap { width: 100%; max-width: 82rem; margin: 0 auto; padding: 0 var(--pad); }
.sec { padding: var(--sec) 0; }
.sec + .sec { padding-top: 0; }
.sec--white { background: var(--white); border-block: 1px solid var(--line); }
.sec--white + .sec { padding-top: var(--sec); }

/* typografie */
.tag { font: 500 0.875rem/1.4 var(--sans); letter-spacing: 0.01em; color: var(--steel); }
.mono { font-family: var(--mono); font-size: 0.8rem; }
/* fotky ve společné teplé černobílé gradaci, jako fotodokumentace k výkresu */
.path img, .shop img, .bom-view img, .bom-table img, .group img, .about-media img, .drawing .photo { filter: grayscale(1) sepia(0.16) contrast(1.06) brightness(1.03); }
.h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.55; color: #33373C; max-width: 36rem; }
.hl { background: linear-gradient(transparent 58%, var(--yel) 58%, var(--yel) 92%, transparent 92%); padding: 0 0.08em; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head .tag { display: block; margin-bottom: 1rem; }
.sec-head--one { grid-template-columns: minmax(0, 46rem); }

/* tlačítka a odkazy */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem; min-height: 3.25rem; padding: 0 1.5rem;
  background: var(--yel); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 0;
  font: 600 1rem/1 var(--sans); font-stretch: 105%; text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn svg { width: 1.1rem; height: 1.1rem; transition: transform 0.2s; }
.btn:hover { background: var(--ink); color: var(--yel); }
.btn:hover svg { transform: translateX(3px); }
.btn--line { background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 2.6rem; padding: 0 1.1rem; font-size: 0.92rem; }
.link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--ink); padding-bottom: 0.15rem; }
.link svg { width: 1rem; height: 1rem; transition: transform 0.2s; }
.link:hover svg { transform: translateX(3px); }

/* navigace */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(241, 242, 239, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: var(--nav-h); max-width: 82rem; margin: 0 auto; padding: 0 var(--pad); }
.logo { display: flex; align-items: center; flex: none; min-height: 2.75rem; }
.logo img { height: 1.6rem; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-menu a:not(.btn) { font-size: 0.97rem; text-decoration: none; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.nav-menu a:not(.btn):hover, .nav-menu a[aria-current="page"] { border-color: var(--yel); }
.nav-toggle { display: none; }

/* hero = výkresový list */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow-x: clip; }
.grid-bg { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 2rem 2rem; background-position: -1px -1px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 4.25rem); margin: 1.2rem 0 1.6rem; }
.hero .lead { margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.sheet { position: relative; background: var(--paper); border: 1.5px solid var(--ink); padding: clamp(1rem, 2.5vw, 2rem); box-shadow: 0 1px 0 var(--line); }
.sheet-label { position: absolute; top: -0.75rem; left: 1rem; background: var(--paper); padding: 0 0.5rem; }
.drawing { width: 100%; height: auto; color: var(--ink); overflow: visible; }
.drawing .ln { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.drawing .thin { fill: none; stroke: currentColor; stroke-width: 0.9; }
.drawing .axis { fill: none; stroke: var(--steel); stroke-width: 0.8; stroke-dasharray: 10 3 2 3; }
.drawing .hatch { stroke: var(--steel); stroke-width: 0.7; }
.drawing .weld { fill: var(--yel); stroke: currentColor; stroke-width: 1.2; }
.drawing text { font: 500 14px var(--mono); fill: currentColor; }
.drawing text.s { font-size: 12.5px; fill: var(--steel); }
.drawing .det { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-dasharray: 5 4; }

@media (prefers-reduced-motion: no-preference) {
  .js .drawing .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.6,.05,.3,1) forwards; animation-delay: var(--d, 0s); }
  .js .drawing .fade { opacity: 0; animation: fade 0.6s ease forwards; animation-delay: var(--d, 1.2s); }
  .js }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pop { to { opacity: 1; transform: none; } }

/* rohové razítko */
.stamp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1.5px solid var(--ink); background: var(--paper); }
.stamp > div { padding: 0.75rem 0.9rem; border-left: 1px solid var(--line-2); min-width: 0; }
.stamp > div:first-child { border-left: 0; }
.stamp dt, .stamp .k { display: block; font: 500 0.8rem/1.3 var(--sans); color: var(--steel); letter-spacing: 0.03em; margin-bottom: 0.25rem; }
.stamp dd, .stamp .v { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.stamp--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero .stamp { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* kusovník */
.bom { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.bom-table { width: 100%; border-collapse: collapse; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.bom-table th { text-align: left; font: 500 0.8rem/1.3 var(--sans); color: var(--steel); letter-spacing: 0.03em; padding: 0.8rem 0.6rem; border-bottom: 1px solid var(--line-2); }
.bom-table td { padding: 1.05rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.bom-table tr:last-child td { border-bottom: 0; }
.bom-table .poz { font: 500 0.85rem/1.5 var(--mono); color: var(--steel); width: 3.2rem; }
.bom-table .co a { font-weight: 600; font-size: 1.08rem; font-stretch: 104%; text-decoration: none; display: block; padding: 0.4rem 0; margin: -0.4rem 0 0; }
.bom-table .co small { display: block; color: var(--steel); font-size: 0.9rem; margin-top: 0.15rem; }
.bom-table .tech { font: 400 0.82rem/1.5 var(--sans); color: #33373C; white-space: nowrap; }
.bom-table .thumb { display: none; }
.bom-table tbody tr { transition: background 0.2s; }
.bom-table tbody tr.on, .bom-table tbody tr:hover { background: var(--paper-2); }
.bom-table tbody tr.on .poz { color: var(--ink); background: linear-gradient(transparent 20%, var(--yel) 20%, var(--yel) 85%, transparent 85%); }
.bom-view { position: sticky; top: calc(var(--nav-h) + 2rem); }
.bom-view figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1.5px solid var(--ink); background: var(--paper-2); }
.bom-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s; }
.bom-view img.on { opacity: 1; }
.bom-view figcaption { margin-top: 0.8rem; display: flex; justify-content: space-between; gap: 1rem; }

/* dvě cesty */
.paths { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1.5px solid var(--ink); background: var(--paper); }
.path { padding: clamp(1.5rem, 3vw, 2.75rem); display: flex; flex-direction: column; gap: 1.4rem; }
.path + .path { border-left: 1.5px solid var(--ink); }
.path figure { aspect-ratio: 16 / 10; overflow: hidden; }
.path figure img { width: 100%; height: 100%; object-fit: cover; }
.path h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.path p { color: #33373C; }
.path ul { border-top: 1px solid var(--line-2); }
.path li { padding: 0.65rem 0 0.65rem 1.6rem; border-bottom: 1px solid var(--line); position: relative; }
.path li::before { content: ''; position: absolute; left: 0; top: 1.15rem; width: 0.8rem; height: 1.5px; background: var(--ink); }
.path .link { margin-top: auto; align-self: flex-start; }

/* poptávkový list */
.ask { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.ask-list { border: 1.5px solid var(--ink); background: var(--white); }
.ask-list li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.ask-list li:last-child { border-bottom: 0; }
.box { width: 1.35rem; height: 1.35rem; border: 1.5px solid var(--ink); margin-top: 0.2rem; position: relative; }
.box::after { content: ''; position: absolute; left: 0.32rem; top: 0.05rem; width: 0.45rem; height: 0.8rem; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; transition: opacity 0.3s; transition-delay: var(--d, 0s); }
.ask-list.in .box::after { opacity: 1; }
.ask-list b { display: block; font-weight: 600; font-stretch: 104%; }
.ask-list span { color: var(--steel); font-size: 0.95rem; }
.ask-copy .lead { margin: 1.2rem 0 2rem; }

/* z dílny */
.shop { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(0.75rem, 1.5vw, 1.25rem); }
.shop figure { position: relative; }
.shop figure div { overflow: hidden; border: 1.5px solid var(--ink); }
.shop img { width: 100%; height: 100%; object-fit: cover; }
.shop figcaption { margin-top: 0.6rem; }
.shop .a { grid-column: 1 / 8; } .shop .a div { aspect-ratio: 3 / 2; }
.shop .b { grid-column: 8 / 13; align-self: end; } .shop .b div { aspect-ratio: 4 / 5; }
.shop .c { grid-column: 1 / 8; margin-top: clamp(1rem, 3vw, 2.5rem); } .shop .c div { aspect-ratio: 16 / 9; }
.shop .note { grid-column: 8 / 13; align-self: center; margin-top: clamp(1rem, 3vw, 2.5rem); color: #33373C; }

/* závěrečná výzva */
.closing { border-top: 1.5px solid var(--ink); padding: clamp(3.5rem, 7vw, 6rem) 0; }
.closing .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; }
.closing-side { display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; }
.closing-contact { font-size: 0.95rem; line-height: 1.6; color: #33373C; }
.closing h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); max-width: 18ch; }

/* podstránky: hlavička listu */
.page-head { border-bottom: 1px solid var(--line); }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: end; padding-top: clamp(3rem, 6vw, 5.5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.crumbs { margin-bottom: 1.2rem; }
.crumbs a { display: inline-block; padding: 0.7rem 0; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.page-head h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); margin-bottom: 1.2rem; }
.sheet-no { display: grid; grid-template-columns: auto auto; border: 1.5px solid var(--ink); background: var(--paper); }
.sheet-no > div { padding: 0.7rem 1rem; }
.sheet-no > div + div { border-left: 1px solid var(--line-2); }

/* služby: rejstřík + skupiny */
.catalog { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.index { position: sticky; top: calc(var(--nav-h) + 2rem); border-top: 1.5px solid var(--ink); }
.index a { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); padding: 0.6rem 0; min-height: 2.75rem; align-items: center; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 0.95rem; }
.index a span { font: 500 0.78rem/1.9 var(--mono); color: var(--steel); }
.index a.on, .index a:hover { font-weight: 600; }
.index a.on span { color: var(--ink); }
.group { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem clamp(1.5rem, 3vw, 3rem); padding: clamp(2rem, 4vw, 3rem) 0; border-top: 1px solid var(--line-2); }
.group:first-child { border-top: 1.5px solid var(--ink); padding-top: clamp(1.5rem, 3vw, 2rem); }
.group .tag { grid-column: 1 / -1; }
.group h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin-bottom: 0.9rem; }
.group p { color: #33373C; margin-bottom: 1.2rem; }
.group li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.group li:first-child { border-top: 1px solid var(--line); }
.group figure { aspect-ratio: 4 / 3; overflow: hidden; border: 1.5px solid var(--ink); }
.group figure img { width: 100%; height: 100%; object-fit: cover; }

/* tabulka metod */
.methods { width: 100%; border-collapse: collapse; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); background: var(--white); }
.methods th, .methods td { text-align: left; padding: 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.methods th { font: 500 0.75rem/1.3 var(--mono); color: var(--steel); letter-spacing: 0.03em; }
.methods td:first-child { font: 600 1.25rem/1.2 var(--mono); width: 7rem; }
.methods td:nth-child(2) { font-weight: 600; width: 14rem; }
.methods td:last-child { color: #33373C; }

/* o nás: text + průvodka */
.about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about-copy p { margin-bottom: 1.2rem; max-width: 38rem; }
.about-copy p:first-child { font-size: clamp(1.25rem, 1.9vw, 1.55rem); line-height: 1.45; font-stretch: 104%; }
.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.about-media figure { overflow: hidden; border: 1.5px solid var(--ink); aspect-ratio: 4 / 5; }
.about-media figure:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.route { width: 100%; border-collapse: collapse; border: 1.5px solid var(--ink); background: var(--white); }
.route th, .route td { text-align: left; padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.route th { font: 500 0.75rem/1.3 var(--mono); color: var(--steel); background: var(--paper); border-bottom: 1px solid var(--line-2); }
.route td:first-child { font: 600 1rem/1.4 var(--mono); width: 5.5rem; }
.route td:nth-child(2) { font-weight: 600; font-stretch: 104%; width: 30%; }
.route td:last-child { color: #33373C; }

/* kontakt */
.contact { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.cdl { border-top: 1.5px solid var(--ink); }
.cdl > div { padding: 1.1rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; }
.cdl dt { font: 500 0.75rem/1.9 var(--mono); color: var(--steel); }
.cdl dd { font-weight: 500; }
.cdl small { display: block; color: var(--steel); font-size: 0.88rem; font-weight: 400; margin-top: 0.2rem; }
.ph { color: var(--steel); font-style: normal; border-bottom: 1px dashed var(--steel); }
.form { border: 1.5px solid var(--ink); background: var(--white); }
.form-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 1.5px solid var(--ink); }
.form-head h2 { font-size: 1.35rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; }
.f { display: block; padding: 0.8rem 1.4rem 1rem; border-bottom: 1px solid var(--line); }
.f:nth-child(odd):not(.f--wide) { border-right: 1px solid var(--line); }
.f--wide { grid-column: 1 / -1; }
.f span { display: block; font: 500 0.8rem/1.4 var(--sans); color: var(--steel); margin-bottom: 0.35rem; }
.f input, .f select, .f textarea { width: 100%; border: 0; border-bottom: 1.5px solid var(--line-2); background: transparent; padding: 0.4rem 0; font: 400 1rem/1.5 var(--sans); color: var(--ink); border-radius: 0; min-height: 2.6rem; }
.f textarea { resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 2px 0 var(--yel); }
.f.invalid input, .f.invalid textarea { border-color: #B3261E; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding: 1.2rem 1.4rem; }
.form-note { color: var(--steel); font-size: 0.92rem; flex: 1 1 14rem; }
.form-note.ok { color: var(--ink); font-weight: 600; }
.map { margin-top: clamp(3rem, 6vw, 5rem); border: 1.5px solid var(--ink); aspect-ratio: 21 / 8; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) contrast(1.05); }
.faq { margin-top: clamp(3.5rem, 7vw, 6rem); display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1.5px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 600; font-stretch: 104%; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0.3rem; top: 0.95rem; font: 400 1.4rem/1 var(--mono); }
.faq details[open] summary::after { content: '−'; }
.faq .ans { padding: 0 0 1.2rem; color: #33373C; max-width: 40rem; }

/* patička = razítko výkresu */
.footer { padding: clamp(3rem, 6vw, 5rem) 0 2rem; background: var(--paper); border-top: 1px solid var(--line); }
.title-block { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); border: 1.5px solid var(--ink); }
.title-block > div { padding: 1.2rem 1.3rem; border-left: 1px solid var(--line-2); min-width: 0; }
.title-block > div:first-child { border-left: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 1.2rem; }
.title-block img { height: 3.2rem; width: auto; }
.title-block .k { display: block; font: 500 0.75rem/1.3 var(--mono); color: var(--steel); margin-bottom: 0.6rem; }
.title-block li { padding: 0.15rem 0; }
.title-block li a { display: inline-block; padding: 0.55rem 0; }
.title-block li:has(a) { padding: 0; }
.title-block a { text-decoration: none; }
.title-block a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 1.2rem; font: 400 0.8rem/1.5 var(--sans); color: var(--steel); }

/* logo manuál */
.brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.bcard { position: relative; min-height: 15rem; display: grid; place-items: center; padding: 3rem 2rem 3.5rem; border: 1.5px solid var(--ink); }
.bcard img { max-height: 5.5rem; width: auto; max-width: 80%; }
.bcard.span2 { grid-column: 1 / -1; min-height: 20rem; }
.bcard.span2 img { max-height: 9rem; }
.bcard.light { background: var(--white); }
.bcard.darkc { background: var(--ink); color: var(--paper); }
.bcard.yel { background: var(--yel); }
.bcard figcaption { position: absolute; left: 1.2rem; bottom: 1rem; font: 500 0.75rem/1.3 var(--mono); }
.bcard .dl { position: absolute; right: 1rem; bottom: 0.8rem; font: 500 0.75rem/1 var(--mono); padding: 0.5rem 0.7rem; border: 1px solid currentColor; text-decoration: none; }
.anatomy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1.5px solid var(--ink); background: var(--white); }
.anatomy > div { padding: 1.6rem; }
.anatomy > div + div { border-left: 1px solid var(--line-2); }
.anatomy h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.anatomy p { color: #33373C; }
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.sw { min-height: 11rem; padding: 1.2rem; display: flex; flex-direction: column; justify-content: flex-end; font: 400 0.8rem/1.5 var(--mono); border: 1.5px solid var(--ink); }
.sw b { font: 600 1.05rem/1.3 var(--sans); margin-bottom: 0.3rem; }
.type-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.type-card { border: 1.5px solid var(--ink); background: var(--white); padding: 1.6rem; }
.sample { font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.1; margin: 1rem 0; }
.sample.disp { font-weight: 800; font-stretch: 125%; }
.sample.mono { font-family: var(--mono); font-weight: 500; }
.downloads { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.downloads a { font: 500 0.82rem/1 var(--mono); padding: 0.85rem 1rem; border: 1.5px solid var(--ink); text-decoration: none; background: var(--white); }
.downloads a:hover { background: var(--yel); }

/* odhalování */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* responzivita */
@media (max-width: 1100px) {
  .stamp { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stamp:not(.stamp--4) > div:nth-child(4) { border-left: 0; }
  .stamp:not(.stamp--4) > div:nth-child(n+4) { border-top: 1px solid var(--line-2); }
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .index { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); column-gap: 1.5rem; }
}
@media (max-width: 900px) {
  :root { --nav-h: 4rem; }
  .stamp--4 { grid-template-columns: 1fr 1fr; }
  .stamp--4 > div:nth-child(3) { border-left: 0; }
  .stamp--4 > div:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .nav-toggle { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; padding: 0; position: relative; z-index: 102; }
  .nav-toggle span { display: block; width: 1.2rem; height: 1.5px; background: var(--ink); position: absolute; transition: transform 0.25s; }
  .nav-toggle span:first-child { transform: translateY(-4px); }
  .nav-toggle span:last-child { transform: translateY(4px); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
  .nav { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-menu { position: fixed; inset: var(--nav-h) 0 0; z-index: 101; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem var(--pad) 2rem; background: #f1f2ef; overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity 0.2s, visibility 0.2s; }
  .nav-menu.open { visibility: visible; opacity: 1; }
  .nav-menu a:not(.btn) { font-size: 1.6rem; font-weight: 500; font-stretch: 106%; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .nav-menu a[aria-current="page"] { border-color: var(--line); box-shadow: inset 4px 0 0 var(--yel); padding-left: 0.9rem; }
  .nav-menu .btn { margin-top: 1.5rem; justify-content: center; min-height: 3.25rem; }
  .hero-grid, .sec-head, .bom, .ask, .about, .contact, .faq { grid-template-columns: minmax(0, 1fr); }
  .bom-view { display: none; }
  .bom-table thead { display: none; }
  .bom-table, .bom-table tbody, .bom-table tr, .bom-table td { display: block; }
  .bom-table tr { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); column-gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .bom-table tr:last-child { border-bottom: 0; }
  .bom-table td { padding: 0; border: 0; }
  .bom-table .thumb { display: block; grid-row: 1 / 5; }
  .bom-table .thumb img { width: 4.5rem; height: 4.5rem; object-fit: cover; border: 1px solid var(--ink); }
  .bom-table .poz { width: auto; font-size: 0.75rem; }
  .bom-table .tech { white-space: normal; margin-top: 0.35rem; color: var(--steel); }
  .bom-table .kdo { font-size: 0.9rem; }
  .bom-table tbody tr.on { background: transparent; }
  .bom-table tbody tr.on .poz { background: none; }
  .paths { grid-template-columns: minmax(0, 1fr); }
  .path + .path { border-left: 0; border-top: 1.5px solid var(--ink); }
  .shop .a, .shop .c { grid-column: 1 / -1; }
  .shop .b { grid-column: 1 / 8; }
  .shop .note { grid-column: 8 / 13; margin-top: 0; }
  .shop .c { margin-top: 0; }
  .page-head .wrap { grid-template-columns: minmax(0, 1fr); }
  .group { grid-template-columns: minmax(0, 1fr); }
  .group figure { order: -1; aspect-ratio: 16 / 9; }
  .group .tag { order: -2; }
  .title-block { grid-template-columns: 1fr 1fr; }
  .title-block > div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line-2); }
  .title-block > div:nth-child(2) { border-left: 0; }
  .title-block > div:nth-child(4) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line-2); }
  .anatomy { grid-template-columns: 1fr; }
  .anatomy > div + div { border-left: 0; border-top: 1px solid var(--line-2); }
  .map { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .stamp { grid-template-columns: 1fr 1fr; }
  .stamp > div:nth-child(n) { border-left: 1px solid var(--line-2); border-top: 1px solid var(--line-2); }
  .stamp > div:nth-child(odd) { border-left: 0; }
  .stamp > div:nth-child(-n+2) { border-top: 0; }
  .shop .b div { aspect-ratio: 4 / 3; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .shop .b, .shop .note { grid-column: 1 / -1; }
  .fields { grid-template-columns: 1fr; }
  .f:nth-child(odd):not(.f--wide) { border-right: 0; }
  .methods thead { display: none; }
  .methods, .methods tbody, .methods tr, .methods td { display: block; width: auto !important; }
  .methods tr { padding: 1rem; border-bottom: 1px solid var(--line); }
  .methods td { padding: 0.15rem 0; border: 0; }
  .route thead { display: none; }
  .route, .route tbody, .route tr, .route td { display: block; width: auto !important; }
  .route tr { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
  .route td { padding: 0.1rem 0; border: 0; }
  .cdl > div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .brand-grid, .type-spec { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: 1fr 1fr; }
  .bcard .dl { bottom: auto; top: 0.8rem; }
  .title-block { grid-template-columns: 1fr; }
  .title-block > div { border-left: 0 !important; border-top: 1px solid var(--line-2); }
  .title-block > div:first-child { border-top: 0; }
}
