/* Beton System - technicky retro styl 90. let (katalog 1. generace) */
:root {
  --paper: #e6e4dc;
  --paper-2: #d9d6cc;
  --ink: #1a1a1a;
  --mute: #4a4a4a;
  --blue: #0033a0;
  --blue-deep: #002266;
  --cobalt: #0028d8;
  --line: #222;
  --white: #f7f6f1;
  --mono: "Courier New", Courier, "Lucida Console", monospace;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", Times, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.45;
  min-height: 100vh;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(0, 51, 160, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 51, 160, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 30%, rgba(90, 90, 80, 0.07) 0.6px, transparent 0.7px),
    radial-gradient(circle at 70% 60%, rgba(40, 60, 100, 0.05) 0.5px, transparent 0.6px),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  background-size: 8px 8px, 8px 8px, 3px 3px, 4px 4px, 100% 100%;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

/* --- Moderni korporatni lista Labtechnic --- */
.corp-bar {
  background: linear-gradient(90deg, #0f1419 0%, #1a2332 55%, #152238 100%);
  color: #e8eef4;
  border-bottom: none;
  position: relative;
  z-index: 5;
}

.corp-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  min-height: 48px;
}

.corp-bar__brand {
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: clamp(0.88rem, 2vw, 1.02rem);
  letter-spacing: -0.01em;
}

.corp-bar__brand span {
  font-weight: 500;
  color: #9aa8b5;
  margin-left: 0.15rem;
}

.corp-bar__link {
  color: #c8d4e0 !important;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}

.corp-bar__link:hover {
  color: #fff !important;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

/* note */
.corp-fade {
  height: 14px;
  background: linear-gradient(
    180deg,
    #1a2332 0%,
    rgba(26, 35, 50, 0.35) 35%,
    rgba(230, 228, 220, 0.55) 70%,
    var(--paper) 100%
  );
  border: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
}

/* --- Archivni banner --- */
.archive-banner {
  background: transparent;
  border: none;
  padding: 0.35rem 0 0.85rem;
  position: relative;
  z-index: 1;
}

.archive-banner__inner {
  display: grid;
  gap: 0.85rem;
  border: 2px solid var(--line);
  background: var(--white);
  padding: 0.9rem 1rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.archive-banner__label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
}

.archive-banner p {
  font-size: 0.88rem;
  color: var(--ink);
  max-width: 72rem;
}

.archive-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.65rem 1.1rem;
  background: var(--blue);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.88rem;
  border: 2px solid var(--blue-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 2px 2px 0 #000;
  text-decoration: none !important;
}

.archive-banner__cta:hover { background: var(--blue-deep); }

/* --- Header / logo / switcher --- */
.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 0 1.1rem;
  border-bottom: 2px solid var(--line);
  background: transparent;
}

.header-plates {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr);
  gap: 0.85rem 1rem;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
}

.brand-logo {
  display: block;
  line-height: 0;
  flex-shrink: 0;
  align-self: stretch;
}

.brand-logo img {
  display: block;
  height: 100%;
  width: auto;
  max-height: clamp(120px, 18vw, 148px);
  max-width: min(420px, 48vw);
  object-fit: contain;
  background: #fff;
  border: 1px solid #222;
  padding: 4px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.12);
}

/* Historický identifikační rámeček původního výrobce */
.hist-id {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  border: 1px solid #222;
  background: #fff;
  padding: 0.55rem 0.7rem 0.65rem;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.12);
  cursor: pointer;
  outline: none;
  max-width: 34rem;
  font-family: var(--mono);
}

.hist-id:hover,
.hist-id:focus-visible,
.hist-id.is-open {
  border-color: var(--blue-deep);
  box-shadow: 2px 2px 0 rgba(0, 34, 102, 0.22);
}

.hist-id__title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0;
}

.hist-id__name {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.hist-id__line {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--ink);
}

.hist-id__inactive {
  color: #7a2e2e;
  font-weight: 700;
}

.hist-id__stamp {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.35rem;
  padding: 0.22rem 0.45rem;
  border: 1.5px solid #9a3a3a;
  color: #8b2e2e;
  background: rgba(180, 60, 60, 0.08);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-1.2deg);
  box-shadow: inset 0 0 0 1px rgba(154, 58, 58, 0.15);
}

.hist-id__panel {
  display: none;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px dashed #888;
  font-family: var(--sans);
}

.hist-id:hover .hist-id__panel,
.hist-id:focus-within .hist-id__panel,
.hist-id.is-open .hist-id__panel {
  display: grid;
  gap: 0.55rem;
}

.hist-id__panel p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink);
}

.hist-id__cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.45rem 0.75rem;
  background: var(--blue);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.78rem;
  border: 2px solid var(--blue-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 2px 2px 0 #000;
  text-decoration: none !important;
}

.hist-id__cta:hover {
  background: var(--blue-deep);
  text-decoration: none !important;
}

.entity-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  justify-content: flex-end;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--sans);
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.entity-switch a {
  color: var(--mute);
  border-bottom: 1px solid transparent;
  text-decoration: none;
}

.entity-switch a:hover,
.entity-switch a.is-current {
  color: var(--blue);
  border-bottom-color: var(--blue);
  text-decoration: none;
}

/* --- Hero --- */
.hero { padding: 1.5rem 0 1.1rem; }

.hero-frame {
  border: 3px double var(--line);
  background: var(--white);
  padding: 1.25rem 1.35rem 1.5rem;
}

.hero-frame--single {
  display: block;
  max-width: 100%;
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3.4vw, 2.1rem);
  color: var(--blue);
  letter-spacing: 0.02em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.hero-lead {
  font-size: 0.95rem;
  color: var(--mute);
  max-width: 44rem;
}

.hero-continuity {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  border: 2px solid var(--blue);
  background: #eef2f8;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  max-width: 44rem;
}

.hero-meta {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  border-top: 1px solid #bbb;
  padding-top: 0.75rem;
  color: var(--ink);
}

.hero-meta dt { color: var(--blue); font-weight: 700; }
.hero-meta dd { margin: 0 0 0.35rem; }

/* --- Sections / cards --- */
.section { padding: 1.35rem 0 0.5rem; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid var(--blue);
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue);
}

.section-head span {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--mute);
}

/* note */
.cad-schema {
  margin: 0 0 1.25rem;
  padding: 0.65rem 0.65rem 0.75rem;
  background: var(--white);
  border: 3px double var(--line);
  box-shadow: inset 0 0 0 1px rgba(0, 51, 160, 0.08);
}

.cad-schema img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #f7f7f4;
}

.cad-schema figcaption {
  margin-top: 0.65rem;
  padding: 0 0.15rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.tech-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tech-card {
  background: var(--white);
  border: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.tech-card__bar {
  background: var(--blue);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  font-weight: 700;
}

.tech-card__body {
  padding: 0.85rem 0.9rem 1rem;
  display: grid;
  gap: 0.65rem;
  flex: 1;
}

.tech-card h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tech-card .langs {
  font-size: 0.72rem;
  color: var(--mute);
  font-family: var(--mono);
}

.tech-card p { font-size: 0.86rem; color: var(--ink); }

.tech-card .tech-note {
  margin: 0;
  padding: 0.5rem 0.55rem;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--ink);
  background: #eef2ff;
  border-left: 3px solid var(--blue);
  font-family: var(--sans);
}

.params {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.params th,
.params td {
  border: 1px solid #999;
  padding: 0.28rem 0.4rem;
  text-align: left;
  vertical-align: top;
}

.params th {
  background: #eceae3;
  color: var(--blue-deep);
  font-weight: 700;
  width: 42%;
}

.params td { background: #fafaf7; }

.norm-tag {
  display: inline-block;
  margin-top: 0.25rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  border: 1px solid var(--blue);
  color: var(--blue);
  padding: 0.15rem 0.4rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 1rem 0 2rem;
  border-top: 2px solid var(--line);
  font-size: 0.78rem;
  color: var(--mute);
}

.site-footer strong { color: var(--ink); }

.site-footer__meta {
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.7rem;
}

@media (max-width: 900px) {
  .header-plates {
    grid-template-columns: 1fr;
  }
  .brand-logo img {
    max-width: min(100%, 360px);
    max-height: 110px;
  }
  .hist-id { max-width: none; }
}

@media (max-width: 760px) {
  .corp-bar__inner { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .site-header { flex-direction: column; align-items: stretch; }
  .entity-switch { justify-content: flex-start; }
}
