/* Otestuj Sa — spoločné štýly pre všetky statické stránky */

:root {
  --color-paper: #ffffff
  --color-ink: #0e1620
  --color-accent: #0d7d74
  --font-head: Courier New,Courier 10 Pitch,ui-mono
  --font-body: Charter,Bitstream Charter,Georgia,se
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-paper);
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: Courier New,Courier 10 Pitch,ui-mono;
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 2px;
}

a:hover {
  text-decoration-style: wavy;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 3px solid var(--color-ink);
  padding: 22px 0 16px;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.site-title {
  font-family: Charter,Bitstream Charter,Georgia,se;
  font-weight: 700;
  font-size: clamp(22px, 5vw, 30px);
  letter-spacing: 0.02em;
  margin: 0;
}

.site-title a {
  color: var(--color-ink);
  text-decoration: none;
}

.site-tagline {
  font-family: Charter,Bitstream Charter,Georgia,se;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 2px 0 0;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-ink);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--color-accent);
  color: var(--color-accent);
}

/* ---------- hero ---------- */

.hero {
  padding: 34px 0 18px;
}

.hero-kicker {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  font-weight: 700;
  margin: 0 0 10px;
}

.hero-question {
  font-family: Charter,Bitstream Charter,Georgia,se;
  font-size: clamp(22px, 4.2vw, 32px);
  font-weight: 400;
  margin: 0 0 22px;
  max-width: 34ch;
}

.hero-stat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 8px;
}

.hero-number {
  font-family: Charter,Bitstream Charter,Georgia,se;
  font-weight: 700;
  font-size: clamp(64px, 16vw, 128px);
  line-height: 0.9;
  color: var(--color-ink);
  margin: 0;
}

.hero-number sup {
  font-size: 0.32em;
  color: var(--color-accent);
  top: -0.6em;
}

.hero-caption {
  max-width: 26ch;
  font-size: 15px;
  padding-bottom: 10px;
}

.hero-caption strong {
  color: var(--color-accent);
}

/* ---------- ruler divider ---------- */

.ruler {
  display: block;
  width: 100%;
  height: 34px;
  margin: 8px 0 30px;
}

.ruler line,
.ruler path {
  stroke: var(--color-ink);
}

.ruler text {
  fill: var(--color-ink);
  font-family: Charter,Bitstream Charter,Georgia,se;
  font-size: 10px;
}

/* ---------- sections ---------- */

section {
  padding: 26px 0;
}

section + section {
  border-top: 1px solid rgba(36, 29, 16, 0.18);
}

h2 {
  font-family: Charter,Bitstream Charter,Georgia,se;
  font-size: clamp(20px, 3.4vw, 26px);
  margin: 0 0 6px;
}

h3 {
  font-family: Charter,Bitstream Charter,Georgia,se;
  font-size: 18px;
  margin: 0 0 4px;
}

.section-lede {
  margin: 0 0 20px;
  max-width: 62ch;
  font-size: 15px;
}

/* ---------- spec table ---------- */

.table-scroll {
  width: 100%;
  overflow-x: visible;
}

table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

table.spec caption {
  text-align: left;
  font-size: 13px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  font-weight: 700;
}

table.spec th,
table.spec td {
  border: 1px solid var(--color-ink);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

table.spec thead th {
  background: var(--color-accent);
  color: var(--color-paper);
  font-family: Charter,Bitstream Charter,Georgia,se;
  font-weight: 700;
}

table.spec tbody tr:nth-child(even) {
  background: rgba(192, 122, 16, 0.08);
}

table.spec td.num {
  font-family: Charter,Bitstream Charter,Georgia,se;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- procedure ---------- */

ol.procedure {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

ol.procedure li {
  counter-increment: step;
  position: relative;
  padding: 6px 0 20px 52px;
  border-left: 2px solid rgba(36, 29, 16, 0.2);
  margin-left: 18px;
}

ol.procedure li:last-child {
  border-left-color: transparent;
}

ol.procedure li::before {
  content: counter(step);
  position: absolute;
  left: -19px;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-paper);
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  font-family: Charter,Bitstream Charter,Georgia,se;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

ol.procedure h3 {
  margin-bottom: 4px;
}

.step-time {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 3px;
  padding: 1px 7px;
  margin: 2px 0 8px;
}

.step-fail {
  margin: 6px 0 0;
  font-size: 14px;
  padding-left: 14px;
  border-left: 3px solid var(--color-ink);
}

.step-fail b {
  font-weight: 700;
}

/* ---------- figures ---------- */

figure {
  margin: 0 0 18px;
  padding: 14px 16px 12px;
  border: 1px solid var(--color-ink);
}

figure svg {
  display: block;
  width: 100%;
  height: auto;
}

figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-ink);
  border-top: 1px dashed var(--color-accent);
  padding-top: 8px;
}

figcaption .fig-label {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.figure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---------- faq ---------- */

.faq-item {
  border-bottom: 1px solid rgba(36, 29, 16, 0.2);
  padding: 4px 0;
}

.faq-item summary {
  cursor: pointer;
  font-family: Charter,Bitstream Charter,Georgia,se;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+ ";
  color: var(--color-accent);
}

.faq-item[open] summary::before {
  content: "\2212 ";
}

.faq-item p {
  margin: 0 0 14px;
  font-size: 14.5px;
  max-width: 62ch;
}

/* ---------- cross link ---------- */

.crosslinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.crosslinks a {
  display: block;
  border: 1px solid var(--color-ink);
  padding: 10px 14px;
  font-size: 13.5px;
  text-decoration: none;
  color: var(--color-ink);
  flex: 1 1 200px;
}

.crosslinks a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.crosslinks span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 3px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 3px solid var(--color-ink);
  padding: 20px 0 30px;
  font-size: 12.5px;
  color: var(--color-ink);
}

.site-footer .disclaimer {
  max-width: 62ch;
  opacity: 0.85;
}

/* ---------- responsive: cards under 640px ---------- */

@media (max-width: 640px) {
  .figure-grid {
    grid-template-columns: 1fr;
  }

  table.spec thead {
    display: none;
  }

  table.spec,
  table.spec tbody,
  table.spec tr,
  table.spec td {
    display: block;
    width: 100%;
  }

  table.spec tr {
    border: 1px solid var(--color-ink);
    margin-bottom: 10px;
  }

  table.spec td {
    border: none;
    border-bottom: 1px dashed rgba(36, 29, 16, 0.25);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
  }

  table.spec td:last-child {
    border-bottom: none;
  }

  table.spec td::before {
    content: attr(data-label);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-accent);
    font-weight: 700;
    flex: 0 0 42%;
  }

  ol.procedure li {
    padding-left: 44px;
    margin-left: 8px;
  }

  ol.procedure li::before {
    width: 30px;
    height: 30px;
    font-size: 14px;
    left: -16px;
  }
}

@media (max-width: 390px) {
  .hero-stat-row {
    gap: 16px;
  }

  .crosslinks a {
    flex: 1 1 100%;
  }
}
