/* ==========================================================================
   FortiCore — www.forticore.eu
   Implementation of the "FortiCore Homepage v7" Claude Design prototype.

   The prototype used inline styles; every value below is carried over
   verbatim. Design tokens are named here so they can be reused, but no
   colour, size or spacing has been reinterpreted.
   ========================================================================== */

:root {
  /* Palette */
  --bg:          #061220;
  --surface:     #0C1B2B;
  --line:        #17304A;
  --line-strong: #2A4A6A;
  --text:        #EDEBE6;
  --muted:       #A9B6C6;
  --muted-2:     #93A3B7;
  --muted-3:     #8B9BAF;
  --accent:      #00E07A;

  /* Layout */
  --shell:  1440px;
  --gutter: 56px;

  --radius-sm: 2px;
  --radius:    3px;

  /* Vertical rhythm between major sections */
  --section-top: 168px;
}

@media (max-width: 860px) {
  :root {
    --gutter: 24px;
    --section-top: 88px;
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  /* Sticky header is 80px tall; keep anchored sections clear of it.
     Deliberately no scroll-behavior: smooth — this is a long one-pager and
     the nav jumps several thousand pixels, which animates for seconds. */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Schibsted Grotesk", Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

input, textarea, button { font-family: inherit; }

::selection { background: var(--accent); color: var(--bg); }

img { max-width: 100%; }

/* The prototype had no focus styles. A public site needs them; this is
   invisible to pointer users and only appears on keyboard navigation. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 40;
  background: var(--accent);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  transition: top 120ms ease;
}
.skip-link:focus { top: 16px; color: var(--bg); }

/* --------------------------------------------------------------------------
   Shared primitives
   -------------------------------------------------------------------------- */

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-top: var(--section-top); }

/* Sections that sat tighter than the 168px default in the prototype. */
.section--hero { padding-top: 152px; }
.section--144  { padding-top: 144px; }

@media (max-width: 860px) {
  .section--hero { padding-top: 72px; }
  .section--144  { padding-top: 88px; }
}

/* Full-bleed tinted band (Kde stojí trh, Kontakt). */
.band {
  background: var(--surface);
  margin-top: var(--section-top);
}
.band__inner { padding-block: 120px; }

@media (max-width: 860px) {
  .band__inner { padding-top: 88px; }
}

/* Small uppercase eyebrow used throughout. Also worn by <h2> section
   labels, hence the margin reset. */
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  margin: 0;
}

.rule { border-top: 1px solid var(--line); }

/* Headings */
.h1 {
  font-weight: 500;
  font-size: clamp(44px, 8.6vw, 154px);
  line-height: 1;
  letter-spacing: -0.042em;
  margin: 0;
  max-width: 15ch;
}

.h2 {
  font-weight: 500;
  font-size: clamp(40px, 4.6vw, 78px);
  line-height: 1;
  letter-spacing: -0.036em;
  margin: 0;
}

/* Slightly tighter variant used by "Kristián Lorenc" and "Začněme diagnostikou." */
.h2--tight {
  font-size: clamp(40px, 4.6vw, 76px);
  letter-spacing: -0.038em;
}

/* A heading paired with a note on the same baseline. */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.section-head__note {
  font-size: 15px;
  color: var(--muted-2);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: var(--text); color: var(--bg); }

.btn--sm  { font-size: 14px; padding: 11px 20px; }
.btn--md  { font-size: 16px; padding: 16px 28px; }
.btn--lg  { font-size: 16px; padding: 17px 30px; justify-self: start; }

.link-accent { color: var(--accent); }
.link-accent:hover { color: var(--text); }

.tabular { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  padding-block: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.wordmark {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.024em;
  color: var(--text);
}
.wordmark:hover { color: var(--text); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 15px;
  color: var(--muted-2);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav__links a { color: var(--muted-2); }
.site-nav__links a:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero__lede {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 64px;
  flex-wrap: wrap;
  padding-top: 88px;
}

.hero__lede p {
  font-size: 22px;
  line-height: 1.52;
  color: var(--muted);
  margin: 0;
  max-width: 44ch;
}

.hero__capacity {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-2);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 96px;
}

.stat { padding: 36px 32px 40px 0; }

.stat__num {
  font-weight: 500;
  font-size: clamp(38px, 4vw, 62px);
  line-height: 1;
  letter-spacing: -0.036em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}

.stat__label {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted-2);
  max-width: 22ch;
}

/* --------------------------------------------------------------------------
   Client marquee
   -------------------------------------------------------------------------- */

.marquee { padding-top: 88px; overflow: hidden; }

.marquee__label { margin-bottom: 28px; }

.marquee__track {
  display: flex;
  width: max-content;
  animation: fc-marquee 34s linear infinite;
}

.marquee__set {
  display: flex;
  align-items: center;
  gap: 96px;
  padding-right: 96px;
}

.marquee__set img {
  display: block;
  width: auto;
  flex: none;
  opacity: 0.8;
}

/* Each client mark is optically balanced at its own height. */
.marquee__set .m-bhsk   { height: 46px; }
.marquee__set .m-pharm  { height: 40px; }
.marquee__set .m-ocni   { height: 50px; }
.marquee__set .m-ajedes { height: 38px; }
.marquee__set .m-fit    { height: 40px; }

@keyframes fc-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* --------------------------------------------------------------------------
   Diagnostika
   -------------------------------------------------------------------------- */

.diagnostika__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 96px;
  align-items: start;
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 32px;
}

.diagnostika__title { margin-bottom: 36px; max-width: 18ch; }

.diagnostika__body {
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 48ch;
}

.diagnostika__body--dim {
  color: var(--muted-2);
  margin-bottom: 40px;
}

/* Sample-output card */
.scorecard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}

.scorecard__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.scorecard__head span { font-size: 13px; color: var(--muted-2); }

.scorecard__total {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.scorecard__total b {
  font-weight: 500;
  font-size: 76px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.scorecard__total span { font-size: 22px; color: var(--muted-2); }

.scorecard__caption {
  font-size: 16px;
  color: var(--muted-2);
  margin-bottom: 40px;
}

.score { margin-bottom: 22px; }

.score__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  font-size: 16px;
}
.score__val { font-variant-numeric: tabular-nums; color: var(--muted-2); }

.score__track {
  height: 5px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.score__fill {
  height: 5px;
  background: var(--accent);
  border-radius: 3px;
}

.scorecard__foot {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 20px;
}

/* --------------------------------------------------------------------------
   Čím nejsme
   -------------------------------------------------------------------------- */

.stance__head { margin-bottom: 56px; }

.stance {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 96px;
  padding: 52px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.stance h3 {
  font-weight: 500;
  font-size: clamp(30px, 3.2vw, 50px);
  line-height: 1;
  letter-spacing: -0.032em;
  margin: 0;
}

.stance p {
  font-size: 19px;
  line-height: 1.62;
  color: var(--muted);
  margin: 0;
  max-width: 52ch;
}

/* --------------------------------------------------------------------------
   Kde stojí trh
   -------------------------------------------------------------------------- */

.market__head { margin-bottom: 72px; }

.market__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 72px;
}

.market__num {
  font-weight: 500;
  font-size: clamp(64px, 7vw, 116px);
  line-height: 0.86;
  letter-spacing: -0.046em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 28px;
}

.market__text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 30ch;
}

.market__source {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-3);
  max-width: 34ch;
}

/* --------------------------------------------------------------------------
   Ceník
   -------------------------------------------------------------------------- */

.pricing__head { margin-bottom: 64px; }

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 32px;
}

.product {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.product__media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--bg);
}

.product__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.4) brightness(0.82) contrast(1.06);
}

.product__badge {
  position: absolute;
  left: 16px;
  top: 16px;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
}
.product__badge--accent  { background: var(--accent); color: var(--bg); }
.product__badge--light   { background: var(--text);   color: var(--bg); }
.product__badge--outline { background: var(--line);   color: var(--text); }

.product__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  flex: 1;
}

.product__name {
  font-weight: 500;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.026em;
  margin: 0;
}

.product__desc {
  font-size: 16px;
  line-height: 1.58;
  color: var(--muted);
  margin: 0;
}

.product__output {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-2);
  white-space: pre-line;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.product__price {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: pre-line;
  margin-top: auto;
}

.product__cta { font-size: 15px; }

.addons {
  display: flex;
  column-gap: 48px;
  row-gap: 14px;
  flex-wrap: wrap;
  align-items: baseline;
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 28px;
}

.addons a {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.022em;
  color: var(--text);
}
.addons a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Zakázky
   -------------------------------------------------------------------------- */

.cases__head { margin-bottom: 56px; }

.case {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 2.4fr);
  gap: 64px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.case__logo {
  height: 44px;
  width: 100%;
  max-width: 210px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 18px;
  opacity: 0.92;
}

.case__name {
  font-weight: 500;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: -0.026em;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.case__sector { font-size: 16px; color: var(--muted-2); margin-bottom: 6px; }
.case__person { font-size: 15px; color: var(--muted-3); }

.case__brief {
  font-size: 18px;
  line-height: 1.62;
  color: var(--muted);
  margin: 0 0 12px;
}
.case__benefit {
  font-size: 18px;
  line-height: 1.62;
  color: var(--muted-2);
  margin: 0;
}

.case__metrics { text-align: right; }

.case__result {
  font-weight: 500;
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1;
  letter-spacing: -0.038em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}

.case__result-note {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted-2);
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}

.case__duration {
  font-size: 15px;
  color: var(--muted-3);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-variant-numeric: tabular-nums;
}

.toolbelt {
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
  padding-top: 56px;
}
.toolbelt__label { max-width: 14ch; }

.toolbelt__logos {
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
  flex: 1;
}
.toolbelt__logos img {
  display: block;
  width: auto;
  opacity: 0.6;
}

.toolbelt__logos .t-aws     { height: 26px; }
.toolbelt__logos .t-google  { height: 24px; }
.toolbelt__logos .t-hubspot { height: 24px; }
.toolbelt__logos .t-make    { height: 20px; }
.toolbelt__logos .t-n8n     { height: 24px; }
.toolbelt__logos .t-wix     { height: 22px; }

/* --------------------------------------------------------------------------
   Metoda
   -------------------------------------------------------------------------- */

.method__head { margin-bottom: 64px; }

.method__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 8px 48px;
}

.step {
  border-top: 1px solid var(--line);
  padding: 24px 0 44px;
}

.step__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.step__no  { font-size: 15px; color: var(--muted-3); font-variant-numeric: tabular-nums; }
.step__dur { font-size: 14px; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }

.step__title {
  font-weight: 500;
  font-size: 23px;
  line-height: 1.14;
  letter-spacing: -0.024em;
  margin: 0 0 12px;
}

.step p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted-2);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Kdo to povede
   -------------------------------------------------------------------------- */

.lead__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 88px;
  align-items: start;
}

.lead__portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}
.lead__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.03);
}

.lead__eyebrow { margin-bottom: 28px; }
.lead__name    { margin-bottom: 14px; }

.lead__role {
  font-size: 21px;
  color: var(--muted-2);
  margin-bottom: 40px;
}

.lead__bio {
  font-size: 21px;
  line-height: 1.58;
  color: var(--text);
  margin: 0 0 20px;
  max-width: 44ch;
}

.lead__bio--dim {
  font-size: 19px;
  line-height: 1.62;
  color: var(--muted-2);
  margin-bottom: 36px;
  max-width: 50ch;
}

.lead__links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Otázky (FAQ)
   -------------------------------------------------------------------------- */

.faq__head { margin-bottom: 56px; }

.faq__item { border-top: 1px solid var(--line); }

.faq__q {
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 40px;
  padding: 30px 0;
  color: var(--text);
}
.faq__q:hover { color: var(--accent); }

.faq__q span:first-child {
  font-weight: 500;
  font-size: clamp(21px, 2.1vw, 30px);
  line-height: 1.16;
  letter-spacing: -0.024em;
}

.faq__sign {
  font-size: 26px;
  line-height: 1;
  color: var(--accent);
  flex: none;
}

.faq__a p {
  font-size: 19px;
  line-height: 1.64;
  color: var(--muted);
  margin: 0 0 34px;
  max-width: 68ch;
}

.faq__a[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 96px;
  align-items: start;
}

.contact__title { margin-bottom: 32px; }

.contact__lede {
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 44ch;
}

.contact__details {
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.contact__details strong { color: var(--text); font-weight: 500; display: block; }
.contact__details-links { display: flex; gap: 24px; flex-wrap: wrap; }

.form {
  display: grid;
  gap: 26px;
  align-content: start;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.form label {
  display: block;
  font-size: 14px;
  color: var(--muted-2);
  margin-bottom: 10px;
}

.form input[type="text"],
.form input[type="email"],
.form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 17px;
  padding: 14px 16px;
  outline: none;
}

.form textarea {
  line-height: 1.6;
  resize: vertical;
}

.form input:focus,
.form textarea:focus { border-color: var(--accent); }

/* Chrome paints its own pale background over autofilled fields, which breaks
   the dark form. An inset shadow the size of the field covers it; the border
   still shows through. */
.form input:-webkit-autofill,
.form input:-webkit-autofill:hover,
.form input:-webkit-autofill:focus,
.form input:-webkit-autofill:active,
.form textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset;
  box-shadow: 0 0 0 1000px var(--bg) inset;
  caret-color: var(--text);
  /* Chrome animates its background in on fill; an absurd delay never lets it. */
  transition: background-color 100000s ease-out 0s;
}

.form__note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-3);
  margin: 0;
}

.form__status {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
}
.form__status--ok    { border-color: var(--accent); color: var(--text); }
.form__status--error { border-color: var(--line-strong); color: var(--text); }
.form__status[hidden] { display: none; }

/* Honeypot — hidden from people, visible to bots. */
.form__honeypot { position: absolute; left: -9999px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { padding: 56px var(--gutter) 48px; max-width: var(--shell); margin-inline: auto; }

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr);
  gap: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.site-footer__wordmark {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--text);
  margin-bottom: 14px;
}

.site-footer__tagline {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-2);
  margin: 0;
  max-width: 30ch;
}

.site-footer__nav {
  display: grid;
  gap: 10px;
  align-content: start;
  font-size: 15px;
}
.site-footer__nav a { color: var(--muted-2); }
.site-footer__nav a:hover { color: var(--text); }

.site-footer__legal {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted-2);
}
.site-footer__legal-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-3);
  margin-bottom: 10px;
}
.site-footer__legal strong { color: var(--text); font-weight: 400; display: block; }

.site-footer__contact {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.site-footer__contact a { color: var(--text); }
.site-footer__contact a:hover { color: var(--accent); }

.site-footer__bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 14px;
  color: var(--muted-3);
}

.site-footer__bottom-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: baseline;
}
.site-footer__bottom-links a,
.site-footer__bottom-links button { color: var(--muted-3); }
.site-footer__bottom-links a:hover,
.site-footer__bottom-links button:hover { color: var(--text); }

.linkbutton {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Cookie consent
   -------------------------------------------------------------------------- */

.cookiebar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -24px 60px rgba(6, 18, 32, 0.55);
}
.cookiebar[hidden] { display: none; }

.cookiebar__main {
  padding-block: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cookiebar__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 62ch;
}
.cookiebar__text a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookiebar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-plain {
  background: none;
  border: none;
  padding: 12px 8px;
  font-size: 14px;
  color: var(--muted-2);
  cursor: pointer;
}
.btn-plain:hover { color: var(--text); }

.btn-outline {
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--text); }

.btn-accent {
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--bg);
  cursor: pointer;
}
.btn-accent:hover { background: var(--text); }

.btn-accent-outline {
  background: none;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
}
.btn-accent-outline:hover { background: var(--accent); color: var(--bg); }

.cookiebar__details { border-top: 1px solid var(--line); }
.cookiebar__details[hidden] { display: none; }

.cookiebar__options {
  padding: 24px var(--gutter) 28px;
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 32px;
  align-items: start;
}

.consent-option {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted-2);
  cursor: pointer;
}
.consent-option--locked { cursor: default; }

.consent-option input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  cursor: pointer;
}
.consent-option--locked input { cursor: default; }

.consent-option strong {
  display: block;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 2px;
}

/* --------------------------------------------------------------------------
   Mobile (≤860px) — mirrors the prototype's data-m breakpoint rules
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .site-nav__links { display: none; }

  .stack {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .case__metrics { text-align: left; }
}

/* ==========================================================================
   Secondary pages — /ochrana-osobnich-udaju and /404.html

   Both invert the homepage's link convention: links are accent by default
   and go light on hover, rather than the other way round.
   ========================================================================== */

.page-secondary {
  min-height: 100vh;
}

/* :where() keeps this at type-selector specificity so it stays a *default*
   any component class (.btn, .bar-back, .notfound__link) can override. */
:where(.page-secondary) a { color: var(--accent); }
:where(.page-secondary) a:hover { color: var(--text); }

/* Fluid gutter used by the 404 page, which scales rather than stepping. */
.shell--fluid {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(24px, 4vw, 56px);
}

/* Header/footer bars shared by both pages */
.bar-header { border-bottom: 1px solid var(--line); }
.bar-header--sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
}

.bar-header__inner {
  padding-block: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.bar-header__inner .wordmark { color: var(--text); }
.bar-header__inner .wordmark:hover { color: var(--accent); }

.bar-back { font-size: 15px; color: var(--muted-2); }
.bar-back:hover { color: var(--text); }

.bar-footer { border-top: 1px solid var(--line); }

.bar-footer__inner {
  padding-top: 28px;
  padding-bottom: 40px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted-3);
}
.bar-footer__inner a { color: var(--muted-3); }
.bar-footer__inner a:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   Legal document (/ochrana-osobnich-udaju)
   -------------------------------------------------------------------------- */

.legal {
  /* padding-block, not the shorthand: the horizontal gutter comes from .shell
     and a shorthand here would zero it out. */
  padding-block: 104px 120px;
}

.legal__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 88px;
  align-items: start;
}

.legal__aside {
  position: sticky;
  top: 96px;
}

.legal__eyebrow { margin-bottom: 28px; }

.legal__title {
  font-weight: 500;
  font-size: clamp(36px, 3.8vw, 60px);
  line-height: 0.96;
  letter-spacing: -0.036em;
  margin: 0 0 28px;
}

.legal__meta {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted-2);
  margin: 0 0 28px;
  max-width: 34ch;
}

.legal__toc {
  display: grid;
  gap: 9px;
  font-size: 14px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.legal__toc a { color: var(--muted-2); }
.legal__toc a:hover { color: var(--text); }

.legal__body {
  font-size: 17px;
  line-height: 1.66;
  color: var(--muted);
  max-width: 72ch;
}

.legal__body section {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
}
.legal__body section:last-child { border-bottom: 1px solid var(--line); }

.legal__body h2 {
  font-weight: 500;
  font-size: 26px;
  line-height: 1.14;
  letter-spacing: -0.024em;
  color: var(--text);
  margin: 0 0 18px;
}

.legal__body h3 {
  font-weight: 500;
  font-size: 19px;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 12px;
}

.legal__body p { margin: 0 0 14px; }
.legal__body p:last-child { margin-bottom: 0; }

.legal__body ul {
  margin: 0 0 18px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}
.legal__body ul:last-child { margin-bottom: 0; }
.legal__body ul.legal__list--loose { gap: 12px; }

.legal__lead { color: var(--text); }
.legal__note { font-size: 16px; color: var(--muted-2); }
.legal__note--sm { font-size: 15px; color: var(--muted-2); }
.legal__term { color: var(--text); }

/* The "Příklady / Účel / Právní základ / Doba uchování" blocks in §3. */
.fact {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 6px 20px;
  font-size: 16px;
  margin: 0 0 30px;
}
.fact dt { color: var(--muted-3); }
.fact dd { margin: 0; }

/* Cookie inventory in §9. */
.cookie-table {
  display: grid;
  grid-template-columns: 170px 110px minmax(0, 1fr);
  gap: 8px 20px;
  font-size: 15px;
  margin-bottom: 20px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.cookie-table__head { color: var(--muted-3); }
.cookie-table__name { color: var(--text); }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.page-404 {
  display: flex;
  flex-direction: column;
}

.notfound {
  flex: 1;
  width: 100%;
  padding-block: clamp(72px, 10vw, 152px) 120px;
}

.notfound__eyebrow { margin-bottom: 32px; }

.notfound__title {
  font-weight: 500;
  font-size: clamp(44px, 7vw, 120px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 40px;
  max-width: 14ch;
}

.notfound__lede {
  font-size: 21px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 56px;
  max-width: 46ch;
}

.notfound__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  max-width: 960px;
}

.notfound__link {
  display: block;
  padding: 28px 24px 32px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.notfound__link:hover { color: var(--accent); }

.notfound__link b {
  display: block;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.022em;
  margin-bottom: 8px;
}

.notfound__link span {
  display: block;
  font-size: 15px;
  color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   Secondary pages — mobile
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .legal { padding-top: 64px; }

  .legal__aside { position: static; }

  .legal__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .cookie-table {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

/* Per-section spacing overrides in the legal document. Scoped to beat the
   .legal__body element selectors above. */
.legal__body .legal__h2--wide  { margin-bottom: 28px; }
.legal__body .legal__h3--tight { margin-bottom: 10px; }
.legal__body .legal__p--gap    { margin-bottom: 24px; }
