/* ==========================================================================
   safe-machine.org — statický design (desktop + mobil)
   Font: Manrope 400 / 500 / 600 / 700 / 800
   ========================================================================== */

:root {
  /* tmavá paleta */
  --graphite:      #0C0E10;
  --panel:         #14181B;
  --line-dark:     #1E2327;
  --line-panel:    #242A2E;
  --line-input:    #2A3135;
  --line-outline:  #333A40;
  /* akcent */
  --yellow:        #FFC400;
  --yellow-hover:  #FFD43B;
  --yellow-soft:   #FFFBEB;
  --yellow-border: #4A3B0B;
  --yellow-bg-dark:#1A1508;
  --yellow-ink:    #7A5B00;
  /* světlá paleta */
  --paper:         #F5F6F7;
  --white:         #FFFFFF;
  --line:          #E7E9EB;
  --line-2:        #E3E5E7;
  --line-3:        #EFF1F2;
  --ph:            #EDEFF0;
  /* text na světlém */
  --ink:           #0C0E10;
  --ink-2:         #2E363B;
  --ink-3:         #3A4246;
  --ink-4:         #5C666C;
  --ink-5:         #8A9399;
  --ink-6:         #6B747A;
  /* text na tmavém */
  --on-dark:       #FFFFFF;
  --on-dark-2:     #D7DDE0;
  --on-dark-3:     #C3CBD0;
  --on-dark-4:     #9AA4AB;
  --on-dark-5:     #79838A;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--graphite);
  color: var(--ink);
  font-family: Manrope, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: #E0A800; }

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

h1, h2, h3 { margin: 0; text-wrap: pretty; }

p { text-wrap: pretty; }

input, select, textarea, button { font-family: inherit; }

/* --- layout ---------------------------------------------------------------- */

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

.page-body { background: var(--graphite); }

/* bílý / světlý blok s zaoblenou horní hranou */
.sheet       { background: var(--white); border-radius: 32px 32px 0 0; }
.sheet-paper { background: var(--paper); }
.sheet-white { background: var(--white); }

.section-pad     { padding: 80px 0; }
.section-pad-top { padding: 72px 0 80px; }

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-5);
}
.kicker-yellow { color: var(--yellow); }
.kicker-sm { font-size: 11px; letter-spacing: 0.08em; }

/* --- hlavička -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(12, 14, 16, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand:hover { color: inherit; }
.brand svg { display: block; flex: none; }
.brand-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--on-dark);
  letter-spacing: -0.025em;
}
.brand-tld { color: var(--yellow); }

.site-nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
  flex-wrap: wrap;
  align-items: center;
}
.site-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-dark-4);
}
.site-nav a:hover { color: var(--on-dark); }
.site-nav a.is-active { color: var(--yellow); }

.lang-switch {
  display: flex;
  gap: 2px;
  margin-left: 12px;
  padding: 3px;
  background: var(--panel);
  border: 1px solid var(--line-panel);
  border-radius: 999px;
}
.lang-switch a {
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--on-dark-4);
}
.lang-switch a:hover { color: var(--on-dark); }
.lang-switch a.is-active { background: var(--yellow); color: var(--graphite); }

/* --- tlačítka -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}
.btn-primary {
  background: var(--yellow);
  color: var(--graphite);
  padding: 16px 28px;
  font-size: 16px;
}
.btn-primary:hover { background: var(--yellow-hover); color: var(--graphite); }

.btn-ghost {
  background: transparent;
  color: var(--on-dark);
  border: 1px solid var(--line-outline);
  padding: 16px 28px;
  font-size: 16px;
}
.btn-ghost:hover { border-color: var(--on-dark); color: var(--on-dark); }

.btn-primary-sm { background: var(--yellow); color: var(--graphite); padding: 14px 24px; font-size: 15px; }
.btn-primary-sm:hover { background: var(--yellow-hover); color: var(--graphite); }

.btn-light {
  background: var(--white);
  border: 1px solid var(--line-2);
  color: var(--ink);
  padding: 12px 20px;
  font-size: 14px;
}
.btn-light:hover { border-color: var(--graphite); color: var(--ink); }

.btn-outline-yellow {
  background: transparent;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  padding: 12px 22px;
  font-size: 14px;
}
.btn-outline-yellow:hover { background: var(--yellow); color: var(--graphite); }

.btn-block { width: 100%; }

.link-underline {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--yellow);
}
.link-underline-sm { font-size: 13px; font-weight: 700; border-bottom: 2px solid var(--yellow); }

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

.hero { position: relative; overflow: hidden; background: var(--graphite); }
.hero-hatch {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,196,0,0.06) 0 14px, transparent 14px 34px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 84px 28px 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 56px;
  align-items: center;
}
.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #2E3439;
  background: var(--panel);
  color: var(--yellow);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.035em;
  color: var(--on-dark);
  margin: 24px 0 0;
}
.mark {
  background: var(--yellow);
  color: var(--graphite);
  padding: 4px 14px 6px;
  border-radius: 12px;
  display: inline-block;
}
.hero-lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--on-dark-4);
  max-width: 52ch;
  margin: 26px 0 0;
}
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}
.stat-n { font-size: 30px; font-weight: 800; color: var(--on-dark); letter-spacing: -0.03em; }
.stat-label { font-size: 13px; line-height: 1.4; color: var(--on-dark-5); margin-top: 4px; }

/* karta aktuálního nástroje */
.featured {
  background: var(--panel);
  border: 1px solid var(--line-panel);
  border-radius: 28px;
  overflow: hidden;
}
.featured-bar { height: 6px; background: var(--yellow); }
.featured-body { padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.featured-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.featured-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}
.featured-rev { font-size: 12px; font-weight: 600; color: var(--on-dark-5); }
.featured-name {
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--on-dark);
}
.featured-desc { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--on-dark-4); }
.featured-points { display: flex; flex-direction: column; gap: 9px; }
.featured-point {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: var(--graphite);
  border: 1px solid var(--line-panel);
  border-radius: 13px;
  padding: 13px 15px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-dark-3);
}
.dot-sq {
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--yellow);
  margin-top: 7px;
  flex: 0 0 auto;
}
.featured-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 6px;
}
.featured-meta { font-size: 13px; color: var(--on-dark-5); }

/* --- sekce s hlavičkou ----------------------------------------------------- */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 12px 0 0;
}
.section-head-note {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-4);
  max-width: 38ch;
}

/* --- karty nástrojů -------------------------------------------------------- */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
  margin-top: 40px;
}
.tool-card {
  text-align: left;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 230px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(12, 14, 16, 0.1);
  background: var(--white);
  color: var(--ink);
}
.badge {
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.badge-on  { background: var(--yellow); color: var(--graphite); }
.badge-off { background: var(--line); color: var(--ink-6); }

.tool-name {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.tool-desc { font-size: 15px; line-height: 1.55; color: var(--ink-4); }
.tool-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.tool-arrow {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.tool-meta { font-size: 13px; color: var(--ink-5); }
.tool-meta-push { margin-top: auto; }

/* --- tmavý panel „jak to funguje" ----------------------------------------- */

.panel-dark {
  background: var(--graphite);
  border-radius: 28px;
  padding: 48px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 40px;
}
.panel-dark h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--on-dark);
  margin: 14px 0 0;
}
.panel-dark-lead {
  font-size: 15px;
  line-height: 1.65;
  color: var(--on-dark-4);
  margin: 16px 0 0;
  max-width: 40ch;
}
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-n {
  width: 34px; height: 34px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--yellow);
  color: var(--graphite);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-title { font-size: 17px; font-weight: 700; color: var(--on-dark); letter-spacing: -0.01em; }
.step-text { font-size: 14px; line-height: 1.6; color: var(--on-dark-4); margin-top: 6px; }

/* --- karty „odkud začít" --------------------------------------------------- */

.start-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 18px;
  margin-top: 36px;
}
.start-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.start-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.start-card h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 10px 0 8px;
}
.start-card p { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--ink-4); }
.start-card-link { margin-top: auto; align-self: flex-start; }

/* obrázkový placeholder */
.img-ph {
  background: var(--ph);
  color: var(--ink-5);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}
.img-ph-card { height: 190px; }
.img-ph-hero { height: clamp(220px, 32vw, 380px); border-radius: 28px; overflow: hidden; }

/* --- žlutý disclaimer ------------------------------------------------------ */

.panel-yellow {
  background: var(--yellow);
  border-radius: 28px;
  padding: 44px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 36px;
  align-items: center;
}
.panel-yellow h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--graphite);
}
.panel-yellow-text { display: flex; flex-direction: column; gap: 14px; }
.panel-yellow-text p { margin: 0; font-size: 16px; line-height: 1.65; }
.panel-yellow-text p:first-child { color: var(--graphite); font-weight: 500; }
.panel-yellow-text p:last-child { color: #3A3423; }

/* --- vnitřní stránky: titulek --------------------------------------------- */

.page-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 14px 0 0;
  max-width: 22ch;
}
.page-title-wide { max-width: none; }
.page-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-4);
  max-width: 58ch;
  margin: 20px 0 0;
}

/* --- legislativa ----------------------------------------------------------- */

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 34px;
}
.search-input {
  flex: 1 1 250px;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.search-input:focus { border-color: var(--yellow); background: var(--white); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line-2);
  background: var(--white);
  color: var(--ink-4);
  border-radius: 999px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.chip.is-active { border-color: var(--graphite); background: var(--graphite); color: var(--white); }

.source-bar {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
}
.source-bar-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.dot-y { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.source-bar-date { font-size: 13px; color: var(--ink-4); }
.source-bar-links { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }

.standards-explainer {
  display: grid;
  gap: 7px;
  margin: 0 0 20px;
  padding: 18px 20px;
  border: 1px solid #E1BE35;
  border-left: 5px solid var(--yellow);
  border-radius: 14px;
  background: #FFF9DC;
  color: var(--ink-4);
  font-size: 14px;
  line-height: 1.55;
}
.standards-explainer strong { color: var(--ink); }

.norm-table {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.norm-row,
.norm-head {
  display: grid;
  grid-template-columns: minmax(145px, 1.2fr) minmax(170px, 1.45fr) minmax(175px, 1.35fr) minmax(125px, .9fr) minmax(175px, 1.25fr) minmax(70px, .45fr);
  gap: 16px;
}
.norm-row {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line-3);
  align-items: start;
  background: var(--white);
  transition: background .15s ease;
}
.norm-row:hover { background: #FAFBFB; }
.norm-head {
  padding: 14px 22px;
  background: var(--graphite);
}
.norm-head span { font-size: 13px; font-weight: 700; color: #F4F5F6; }
.norm-mobile-label { display: none; }
.norm-code { font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.norm-name { font-size: 13px; color: var(--ink-5); margin-top: 4px; }
.norm-tag {
  display: inline-block;
  margin-top: 9px;
  background: var(--paper);
  color: var(--ink-4);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.norm-tag-law { background: var(--yellow); color: var(--graphite); border-color: var(--yellow); }
.norm-scope { font-size: 14px; line-height: 1.5; color: var(--ink-4); }
.norm-citation-block {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-3);
  overflow-wrap: anywhere;
}
.norm-citation-block:last-of-type { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.norm-citation-block small,
.norm-legal-basis,
.norm-oj-values small {
  display: block;
  color: var(--ink-5);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.norm-citation-block strong { font-size: 14px; line-height: 1.4; }
.norm-citation-block span { font-size: 13px; line-height: 1.45; color: var(--ink-4); }
.norm-dates span { color: var(--ink); }
.norm-dates time { font-weight: 700; }
.norm-restriction { margin-top: 4px; padding: 7px 8px; border-radius: 8px; background: #FFF4C2; }
.norm-legal-basis { margin-top: 12px; line-height: 1.45; text-transform: none; letter-spacing: 0; }
.norm-oj-values span { display: grid; gap: 2px; }
.norm-oj-cell > time { display: block; margin-top: 4px; }
.norm-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--yellow);
}
.norm-foot {
  padding: 16px 24px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-5);
  background: var(--paper);
}

/* --- výpis článků (strojni-bezpecnost.html) ------------------------------- */

.feature-article {
  margin-top: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
}
.img-ph-feature { min-height: 320px; height: 100%; }
.feature-article-body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.feature-article-title {
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin: 4px 0 0;
}
.feature-article-perex {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-4);
}
.feature-article-meta { margin-top: 12px; padding-bottom: 0; border-bottom: none; }
.feature-article-cta { margin-top: 20px; }

.art-list-head { margin-top: 72px; }
.art-list-head h2 {
  font-size: clamp(28px, 3.2vw, 38px);
}
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
  margin-top: 32px;
}
.art-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.art-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(12, 14, 16, 0.1);
}
.art-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.art-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin: 10px 0 8px;
}
.art-card-perex { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--ink-4); }
.art-card-meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-3);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-5);
}
.art-card-dot { color: var(--line-2); }

/* --- článek ---------------------------------------------------------------- */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
  margin-top: 44px;
}
.article { max-width: 72ch; }
.article-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-5);
}
.article h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 14px 0 0;
}
.article-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.meta-pill {
  background: var(--paper);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-4);
}
.article-lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-2);
  font-weight: 500;
  margin: 26px 0 0;
}
.article h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 40px 0 14px;
}
.article p { font-size: 17px; line-height: 1.7; color: var(--ink-3); margin: 0 0 16px; }

.callout-dark {
  background: var(--graphite);
  border-radius: 20px;
  padding: 24px 26px;
  margin: 28px 0;
}
.callout-dark p { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--on-dark-2); }
.callout-yellow {
  border: 2px solid var(--yellow);
  background: var(--yellow-soft);
  border-radius: 20px;
  padding: 24px 26px;
  margin: 28px 0;
}
.callout-yellow .kicker-sm { color: var(--yellow-ink); }
.callout-yellow p { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

.hierarchy { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 16px; }
.hierarchy-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--paper);
  border-radius: 18px;
  padding: 18px 20px;
}
.hierarchy-n {
  width: 30px; height: 30px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--graphite);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hierarchy-title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.hierarchy-text { font-size: 15px; line-height: 1.6; color: var(--ink-4); margin-top: 4px; }

.related { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 26px; }
.related-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.norm-pill {
  border: 1px solid var(--line-2);
  background: var(--white);
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
}

.article-aside { position: sticky; top: 96px; }
.toc-box { background: var(--paper); border-radius: 22px; padding: 22px; }
.toc-list { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.toc-list a {
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-3);
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.aside-cta { background: var(--graphite); border-radius: 22px; padding: 24px; margin-top: 18px; }
.aside-cta-title { font-size: 19px; font-weight: 700; color: var(--on-dark); line-height: 1.3; letter-spacing: -0.02em; }
.aside-cta p { font-size: 14px; line-height: 1.6; color: var(--on-dark-4); margin: 10px 0 18px; }

.translate-note {
  margin-bottom: 18px;
  background: var(--yellow-soft);
  border: 2px solid var(--yellow);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.translate-note span:last-child { font-size: 15px; line-height: 1.55; color: var(--ink-2); flex: 1 1 280px; }

/* --- o projektu + kontakt -------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 52px;
  align-items: start;
}
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 52px;
  align-items: start;
  margin-top: 52px;
}
.expert-profile {
  margin-top: 42px;
  padding: 30px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--signal);
  border-radius: 16px;
  background: var(--paper);
}
.expert-profile h2 { margin: 8px 0 20px; }
.expert-profile h3 { margin: 0 0 8px; font-size: 1.25rem; }
.expert-profile p { margin: 6px 0; color: var(--ink-2); }
.about-grid h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 14px 0 0;
}
.about-lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); font-weight: 500; margin: 22px 0 0; }
.about-text { font-size: 17px; line-height: 1.7; color: var(--ink-3); margin: 18px 0 0; }

.principles { display: flex; flex-direction: column; gap: 14px; }
.principle {
  background: var(--paper);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.principle-sq {
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--yellow);
  margin-top: 6px;
  flex: 0 0 auto;
}
.principle-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.principle p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-4); }

.contact-panel {
  background: var(--graphite);
  border-radius: 28px;
  padding: 44px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 48px;
  align-items: start;
}
.contact-panel h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--on-dark);
}
.contact-lead { font-size: 17px; line-height: 1.65; color: var(--on-dark-4); margin: 16px 0 0; max-width: 46ch; }
.contact-rows { display: flex; flex-direction: column; gap: 2px; margin-top: 28px; }
.contact-row { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.contact-row dt { font-size: 13px; color: var(--on-dark-5); min-width: 130px; margin: 0; }
.contact-row dd { font-size: 16px; color: var(--on-dark); font-weight: 600; margin: 0; }

.contact-form {
  background: var(--panel);
  border: 1px solid var(--line-panel);
  border-radius: 22px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 700; color: var(--on-dark-4); }
.field input,
.field select,
.field textarea {
  background: var(--graphite);
  border: 1px solid var(--line-input);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 15px;
  color: var(--on-dark);
  outline: none;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--yellow); }
.form-submit { background: var(--yellow); color: var(--graphite); padding: 15px; font-size: 15px; margin-top: 4px; }
.form-submit:hover { background: var(--yellow-hover); }
.form-note { margin: 0; font-size: 12px; line-height: 1.55; color: var(--on-dark-5); }

/* --- patička --------------------------------------------------------------- */

.site-footer { background: var(--graphite); }
.footer-inner { padding: 60px 28px 32px; }
.footer-cta {
  background: var(--panel);
  border: 1px solid var(--line-panel);
  border-radius: 22px;
  padding: 22px 26px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.footer-cta span { font-size: 16px; line-height: 1.55; color: var(--on-dark-3); flex: 1 1 280px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 36px;
}
.footer-about { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: var(--on-dark-5); max-width: 34ch; }
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--on-dark-5);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.footer-links a { font-size: 14px; color: var(--on-dark-3); }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--on-dark-5);
}
.footer-bottom a { color: var(--on-dark-5); }
.footer-bottom a:hover { color: var(--yellow); }

/* ==========================================================================
   Responzivita
   ========================================================================== */

@media (max-width: 1100px) {
  .article-layout { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .header-inner { padding: 14px 20px; gap: 16px; }
  .site-nav { margin-left: 0; width: 100%; }
  .lang-switch { margin-left: auto; }

  .hero-inner { padding: 56px 20px 56px; gap: 36px; }
  .section-pad { padding: 56px 0; }
  .section-pad-top { padding: 48px 0 56px; }

  .panel-dark,
  .panel-yellow,
  .contact-panel { padding: 32px 24px; gap: 28px; }
  .featured-body { padding: 24px; }

  .feature-article { grid-template-columns: minmax(0, 1fr); }
  .img-ph-feature { min-height: 220px; height: 220px; }
  .feature-article-body { padding: 26px; }
  .art-list-head { margin-top: 52px; }

  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .article-aside { position: static; }
  .article { max-width: none; }
  .article h2 { font-size: 26px; margin: 32px 0 12px; }

  .norm-head { display: none; }
  .norm-row { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px; }
  .norm-row > div { min-width: 0; }
  .norm-mobile-label {
    display: block;
    margin-bottom: 5px;
    color: var(--ink-5);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
  }
  .norm-citation-block { padding: 12px 0; margin: 0; }
  .norm-link-cell { padding-top: 4px; }

  .source-bar-links { margin-left: 0; width: 100%; }

  .footer-inner { padding: 48px 20px 28px; }
  .footer-cta { margin-bottom: 32px; padding: 20px; }
}

@media (max-width: 600px) {
  .sheet { border-radius: 24px 24px 0 0; }
  .btn-primary, .btn-ghost { width: 100%; padding: 15px 22px; }
  .btn-row { gap: 10px; }
  .stats { gap: 18px; margin-top: 36px; }
  .tool-card { min-height: 0; padding: 22px; }
  .panel-dark, .panel-yellow, .contact-panel { padding: 26px 20px; border-radius: 22px; }
  .feature-article, .art-card { border-radius: 22px; }
  .feature-article-body { padding: 22px; }
  .art-card-body { padding: 20px; }
  .article-lead { font-size: 18px; }
  .article p { font-size: 16px; }
  .chip { padding: 11px 15px; }
}

@media print {
  .site-header, .site-nav, .footer-cta, .lang-switch { display: none; }
  body { background: #FFFFFF; }
}
