@font-face {
  font-family: Barlow Condensed;
  src: url("../img/plosiny/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --red: #ae1729;
  --ink: #1d2326;
  --muted: #4c565a;
  --line: #cdd1ce;
  --paper: #f4f4ef;
  --heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  font: 100%/1.5 "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: white;
}
* { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: .23em; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid #177eab; outline-offset: 3px; }
.wrap { width: min(81rem, 90%); margin-inline: auto; }
h1, h2, h3, .brand, .height, .facts strong, .contact-number { font-family: var(--heading); font-weight: 700; }
h1, h2, h3 { line-height: 1.02; }
h2 { font-size: clamp(2.5rem, 4.8vw, 4.5rem); letter-spacing: -.025em; }
h3 { font-size: 1.7rem; }
.skip, .sr { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.skip:focus { inset: 0 auto auto 0; z-index: 4; width: auto; height: auto; padding: 1rem; background: white; clip-path: none; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5.2rem; }
.brand { display: inline-flex; gap: .75rem; align-items: center; text-transform: uppercase; text-decoration: none; font-size: 1.65rem; line-height: .96; letter-spacing: -.02em; }
.brand b { color: var(--red); }
.brand i { width: 2rem; height: 1.75rem; background: repeating-linear-gradient(123deg,var(--red) 0 .45rem,transparent .45rem .63rem); clip-path: polygon(57% 0,100% 0,100% 100%,0 100%); }
nav, .actions, .channels { display: flex; align-items: center; gap: 1.6rem; }
nav a, .phone { font-weight: 700; text-decoration: none; }
nav a:hover, .text-link:hover { color: var(--red); text-decoration: underline; }
.top-phone, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .65rem 1.25rem; }
.top-phone { background: var(--red); color: white; }
.hero { background: var(--paper); border-top: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.intro { padding: clamp(2.4rem,5vw,5.5rem) 1.5rem clamp(2.4rem,5vw,5.5rem) 0; }
.place { font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.place span { color: var(--red); padding: 0 .35rem; }
h1 { margin-block: 1.2rem; font-size: clamp(3.1rem,6.85vw,6.65rem); line-height: .98; letter-spacing: -.03em; }
h1 em { font-style: normal; color: var(--red); }
.lead { font-size: clamp(1.05rem,1.55vw,1.35rem); max-width: 29rem; }
.actions { margin-top: 1.8rem; gap: 1.2rem; flex-wrap: wrap; }
.button { background: var(--ink); color: white; min-height: 3.2rem; }
.button:hover, .top-phone:hover { background: #801220; }
.text-link { font-weight: 650; }
.hero-photo { position: relative; min-height: 20rem; background: #a6aeb2; }
.hero-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption { position: absolute; bottom: 1rem; left: 1rem; background: #1c2326ed; color: white; padding: .4rem .8rem; font-size: .88rem; border-left: .22rem solid #f06269; }
.facts { color: white; background: var(--red); }
.facts-grid { display: grid; grid-template-columns: repeat(3,1fr); padding-block: 1.2rem; }
.facts p { display: flex; column-gap: .85rem; align-items: baseline; flex-wrap: wrap; padding-inline: 8%; line-height: 1.25; border-left: 1px solid #ffffff66; }
.facts p:first-child { padding-left: 0; border: 0; }
.facts strong { font-size: clamp(1.85rem,3vw,2.9rem); }
.section { padding-block: clamp(3.25rem,6vw,6rem); }
#plosiny { padding-bottom: 0; }
#cenik { padding-top: 1rem; }
/* Plynulý přesun mezi sekcemi respektuje předvolbu omezeného pohybu. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .45rem 1rem; margin-bottom: 1.7rem; }
.section-head p, .terms, .album p { color: var(--muted); }
.model-grid, .work-grid { display: grid; gap: clamp(.85rem,1.6vw,1.5rem); }
.model-grid { grid-template-columns: repeat(4,1fr); margin-bottom: 2rem; }
.album { min-width: 0; }
.album h3 { margin-top: .65rem; }
.slide-link:not([hidden]) { display: block; position: relative; background: white; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; }
.slide-link img { display: block; width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.model-grid .slide-link img { height: clamp(10rem,16vw,14rem); object-fit: contain; padding: .6rem .5rem 1.7rem; }
.open-label { position: absolute; bottom: 0; right: 0; font-size: .83rem; font-weight: 650; color: white; background: var(--ink); padding: .18rem .65rem; }
.slide-link:hover .open-label { background: var(--red); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
thead { background: var(--ink); color: white; }
th, td { padding: .9rem 1rem; text-align: left; }
thead th { font-size: .9rem; }
td { font-weight: 650; white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--line); }
tbody th { display: flex; gap: 1rem; align-items: center; }
.height { min-width: 3.45rem; color: var(--red); font-size: 1.8rem; }
tbody small { display: block; font-size: .9rem; color: var(--muted); font-weight: 400; }
.terms { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; }
.terms strong { display: block; color: var(--ink); }
.work { background: var(--paper); }
.work-grid { grid-template-columns: repeat(3,1fr); }
.work-grid h3 { margin: .85rem 0 .45rem; }
.contact { color: white; background: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 6%; padding-block: clamp(3rem,6vw,5rem); }
.contact-grid > div > p { max-width: 35rem; }
.contact h2 { margin-bottom: .9rem; }
.contact-number { display: inline-block; font-size: clamp(3rem,5.7vw,5.4rem); text-decoration: underline; text-decoration-color: #fa787c; text-decoration-thickness: .075em; line-height: 1.2; margin: .85rem 0; }
.channels { margin-top: 1.4rem; flex-wrap: wrap; gap: .7rem 1.4rem; }
.area { border-left: 1px solid #697176; padding-left: 12%; }
.area h3 { margin-bottom: .5rem; }
.area h3:not(:first-child) { margin-top: 1.5rem; }
address { font-style: normal; }
footer { display: flex; gap: .55rem 1.5rem; flex-wrap: wrap; align-items: center; padding-block: 1.4rem; font-size: .94rem; }
footer a { margin-left: auto; }
.back-top {
  position: fixed;
  right: max(.75rem, env(safe-area-inset-right));
  top: max(.75rem, env(safe-area-inset-top));
  z-index: 3;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--red);
  color: white;
  box-shadow: 0 2px 8px #0004;
  font: bold 1.65rem/1 system-ui, sans-serif;
  text-decoration: none;
}
.back-top:not([hidden]) { display: grid; }
body:has(dialog[open]) .back-top { display: none; }
/* Nativní posuv respektuje gesto prstu i zvětšení v mobilním prohlížeči. */
dialog { padding: 0; border: 0; background: #192124; color: white; width: min(60rem,96vw); max-width: 100%; max-height: 96dvh; }
dialog::backdrop { background: #101518df; }
body:has(dialog[open]) { overflow: hidden; }
.viewer-head, .viewer-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .65rem 1rem; }
.viewer-head h2 { font-size: 1.65rem; }
dialog button { font: 2rem/1 Arial,sans-serif; min-width: 2.85rem; height: 2.85rem; color: white; background: transparent; border: 1px solid #aeb8bf; cursor: pointer; }
dialog button:hover { background: #394348; }
dialog button:disabled { opacity: .35; cursor: default; }
.controls { display: flex; gap: .45rem; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; background: white; }
.track figure { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.track :is(img, video) { width: 100%; height: min(66dvh,41rem); display: block; object-fit: contain; }
.track video { background: #101518; }
.credit { font-size: .9rem; color: #e7e8e9; }
@media (max-width: 58rem) {
  .top { gap: .8rem; } nav { gap: 1rem; }
  .facts p { display: grid; padding-inline: 8%; }
  .model-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 45rem) {
  .wrap { width: 91%; } .top { flex-wrap: wrap; padding: .75rem 0 0; gap: .5rem; } .top-phone { min-height: 2.75rem; padding: .45rem .7rem; }
  nav { order: 3; width: 100%; justify-content: space-between; border-top: 1px solid var(--line); }
  nav a { padding-block: .6rem; } .brand { font-size: 1.4rem; }
  .hero-grid { width: 100%; grid-template-columns: 1fr; }
  .intro { padding: 2rem 4.5% 1.9rem; }
  h1 { font-size: clamp(3.25rem,11.8vw,5.2rem); margin-block: .85rem; }
  .actions { margin-top: 1.2rem; } .hero-photo { min-height: 0; height: clamp(12rem,54vw,19rem); }
  .hero-photo img { object-position: center 42%; }
  .facts-grid { padding-block: .85rem; gap: .4rem; grid-template-columns: .8fr 1fr 1.25fr; }
  .facts p { display: flex; flex-direction: column; justify-content: center; font-size: .82rem; padding-left: .7rem; padding-right: 0; }
  .facts strong { font-size: clamp(1.2rem,4.6vw,2rem); }
  th, td { padding: .7rem .4rem; } thead th { font-size: .82rem; line-height: 1.25; }
  tbody th { display: table-cell; font-size: .96rem; } .height { display: block; font-size: 1.4rem; } tbody small { display: none; }
  .terms, .contact-grid, .work-grid { grid-template-columns: 1fr; }
  .terms { gap: .85rem; } .work-grid { gap: 1.8rem; } .contact-grid { gap: 2rem; }
  .model-grid h3 { font-size: 1.45rem; } .model-grid .slide-link img { height: clamp(9rem,33vw,11rem); }
  .area { border: 0; border-top: 1px solid #697176; padding: 1.6rem 0 0; }
  footer a { margin-left: 0; } dialog { width: 100%; }
}
@media (max-height: 30rem) and (orientation: landscape) {
  .track :is(img, video) { height: 53dvh; }
  .viewer-head, .viewer-foot { padding-block: .2rem; }
}

/* Schéma a krátký úvod zůstávají vidět i při sbaleném technickém popisu. */
.model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.model-grid .album {
  display: grid;
  grid-template-columns: minmax(5rem, 32%) minmax(0, 1fr);
  gap: .45rem 1rem;
  align-content: start;
  border-top: 2px solid var(--ink);
  padding-top: .9rem;
}
.model-grid .slide-link:not([hidden]) { grid-row: 1 / 3; }
.model-grid .slide-link img { height: clamp(7rem, 12vw, 10rem); }
.model-grid h3 { margin: 0; align-self: end; }
.model-intro { line-height: 1.4; }
.model-details { grid-column: 1 / -1; }
.model-details summary {
  min-height: 2.8rem;
  padding: .65rem .75rem;
  color: var(--red);
  background: var(--paper);
  font-weight: 650;
  cursor: pointer;
}
.model-details summary:hover { text-decoration: underline; }
.model-details summary:focus-visible { outline: 3px solid #177eab; outline-offset: 2px; }
.model-details:not([open]) .hide-detail, .model-details[open] .show-detail { display: none; }
.detail-body { padding: .95rem .75rem; border-bottom: 1px solid var(--line); }
.spec-table { margin-block: 1rem; }
.spec-table caption, .detail-body h4 { margin: 0; text-align: left; font-weight: 700; }
.spec-table th, .spec-table td { display: table-cell; padding: .35rem .25rem; white-space: normal; }
.spec-table th { font-weight: 400; }
.spec-table td { text-align: right; }
.detail-body ul { margin: .4rem 0 1rem; padding-left: 1.25rem; }
.model-sources { margin-top: .75rem; font-size: .9rem; }
@media (max-width: 45rem) {
  .model-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
}
