/* Kemvurateo — Světelný diagram */

:root {
  --bg: #F4F5F7;
  --bg-alt: #FFFFFF;
  --bg-dark: #23262B;
  --ink: #16181D;
  --ink-soft: #656B75;
  --ink-light: #F4F5F7;
  --blue: #2D5BD6;
  --yellow: #F2C230;
  --rhythm: 80px;
  --sans: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

a:focus-visible,
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
}

/* ---------- Header / navigation ---------- */

.site-header {
  background: var(--bg-alt);
  border-bottom: 1px solid #E1E3E8;
}

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

.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover { color: var(--blue); }

.mainnav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 0;
  padding: 0;
}

.mainnav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
}

.mainnav a:hover,
.mainnav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 0 var(--blue);
}

/* ---------- Hero ---------- */

.hero {
  background: var(--bg-alt);
  padding-top: 72px;
  padding-bottom: 56px;
}

.hero-title { grid-column: 1 / span 7; }

.hero h1 {
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 28px;
  max-width: 15ch;
}

/* CSS světelný diagram */
.diagram { margin: 0; }

.diagram-axis {
  height: 1px;
  background: var(--blue);
  width: 100%;
}

.diagram-rays {
  display: flex;
  gap: 64px;
  padding-left: 12%;
}

.ray {
  width: 1px;
  background: var(--blue);
  position: relative;
}

.ray::after {
  content: "";
  position: absolute;
  left: -3px;
  bottom: -8px;
  width: 8px;
  height: 8px;
  background: var(--yellow);
}

.ray-a { height: 54px; }
.ray-b { height: 30px; }
.ray-c { height: 74px; }

.hero-intro {
  grid-column: 9 / span 4;
  align-self: start;
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0;
}

/* ---------- Main image ---------- */

.main-figure {
  background: var(--bg-alt);
  margin: 0;
  padding-bottom: var(--rhythm);
}

.main-figure .grid { align-items: start; }

.main-figure img {
  grid-column: 4 / span 9;
  width: 100%;
  max-width: 1080px;
}

.main-figure figcaption {
  grid-column: 1 / span 3;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  padding-right: 12px;
}

/* ---------- Sections ---------- */

.section {
  padding-top: var(--rhythm);
  padding-bottom: var(--rhythm);
}

.section--grey { background: var(--bg); }
.section--white { background: var(--bg-alt); }

.section--dark {
  background: var(--bg-dark);
  color: var(--ink-light);
}

.section--dark h2 { color: var(--ink-light); }
.section--dark .lead { color: #C3C7CE; }
.section--dark a { color: #9FB6F2; }

.section > .wrap > .grid { align-items: start; }

.sec-head {
  grid-column: 1 / span 3;
  position: relative;
  padding-left: 22px;
}

.sec-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--yellow);
}

.sec-head h2 {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0;
}

.sec-head p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 10px 0 0;
}

.section--dark .sec-head p { color: #9AA1AC; }

.sec-body {
  grid-column: 5 / span 7;
}

.sec-body > :first-child { margin-top: 0; }
.sec-body > :last-child { margin-bottom: 0; }

.sec-body p { margin: 0 0 20px; }

.sec-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 10px;
  letter-spacing: -0.01em;
}

.lead { color: var(--ink-soft); }

/* ---------- Lists ---------- */

.checklist {
  list-style: none;
  margin: 8px 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  row-gap: 10px;
}

.checklist li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.55;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--blue);
}

.section--dark .checklist li::before { background: var(--yellow); }

.steps {
  margin: 8px 0 20px;
  padding-left: 22px;
}

.steps li { margin-bottom: 10px; }

.deflist { margin: 0 0 20px; }
.deflist dt { font-weight: 600; margin-top: 18px; }
.deflist dd { margin: 4px 0 0; color: var(--ink-soft); }

/* ---------- Detail figure v tmavé sekci ---------- */

.detail-figure {
  grid-column: 4 / span 6;
  margin: 40px 0 0;
  text-align: center;
}

.detail-figure img {
  border: 1px solid var(--blue);
  margin: 0 auto;
  width: 100%;
}

.detail-figure figcaption {
  font-size: 13px;
  color: #C3C7CE;
  margin-top: 14px;
  line-height: 1.5;
}

/* ---------- Kontaktní blok ---------- */

.contact-line {
  font-size: 17px;
  margin: 0 0 8px;
}

/* ---------- About: dvouosá struktura se spojitou linkou ---------- */

.axis-page {
  padding-top: var(--rhythm);
  padding-bottom: var(--rhythm);
  background: var(--bg-alt);
}

.axis-page .axis-inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  position: relative;
}

.axis-page .axis-inner::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc((100% - 11 * 24px) / 12 * 4 + 24px * 4 - 12px);
  width: 1px;
  background: var(--blue);
}

.axis-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  padding-bottom: 44px;
}

@supports not (grid-template-columns: subgrid) {
  .axis-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 24px;
  }
}

.axis-row > .axis-head {
  grid-column: 1 / span 3;
}

.axis-row > .axis-body {
  grid-column: 5 / span 7;
}

.axis-head h1,
.axis-head h2 {
  margin: 0;
  letter-spacing: -0.02em;
}

.axis-head h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 700;
}

.axis-head h2 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

.axis-body > :first-child { margin-top: 0; }
.axis-body > :last-child { margin-bottom: 0; }
.axis-body p { margin: 0 0 18px; }
.axis-body h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.axis-body ul { margin: 0 0 18px; padding-left: 22px; }
.axis-body li { margin-bottom: 8px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-dark);
  color: var(--ink-light);
  padding: 56px 0 48px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 32px;
}

.footer-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-footer a { color: #9FB6F2; }

.footer-rule {
  height: 1px;
  background: #3A3E45;
  margin: 24px 0 22px;
}

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

.footer-nav a {
  color: var(--ink-light);
  text-decoration: none;
  font-size: 15px;
}

.footer-nav a:hover { box-shadow: inset 0 -1px 0 0 var(--yellow); }

.footer-note {
  font-size: 13px;
  color: #9AA1AC;
  margin: 0;
  max-width: 70ch;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  :root { --rhythm: 48px; }

  .wrap { padding: 0 20px; }

  .hero { padding-top: 48px; padding-bottom: 36px; }
  .hero-title,
  .hero-intro { grid-column: 1 / -1; }
  .hero-intro { margin-top: 28px; }

  .main-figure img,
  .main-figure figcaption { grid-column: 1 / -1; }
  .main-figure figcaption { margin-top: 12px; padding-right: 0; }

  .sec-head,
  .sec-body,
  .detail-figure { grid-column: 1 / -1; }
  .sec-body { margin-top: 20px; }
  .detail-figure { margin-top: 28px; }

  .checklist { grid-template-columns: 1fr; }

  .axis-page .axis-inner::before { display: none; }
  .axis-row { padding-bottom: 32px; }
  .axis-row > .axis-head,
  .axis-row > .axis-body { grid-column: 1 / -1; }
  .axis-row > .axis-body { margin-top: 14px; }

  .diagram-rays { padding-left: 8%; gap: 40px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header .wrap { display: block; }
  .mainnav ul { margin-top: 12px; gap: 8px 20px; }
  .footer-top { display: block; }
  .footer-name { display: block; margin-bottom: 6px; }
}
