/* ============================================================
   Filip Jangl — vizitka
   Monochrom: světlé pozadí, grafit, ocelová šeď. Žádné barvy.
   ============================================================ */

:root {
  --bg: #F7F7F5;
  --card: #FFFFFF;
  --ink: #1B1B1F;
  --ink-2: #6E6E73;
  --ink-3: #98989D;
  --hairline: #E5E5E1;
  --frame: #D4D4CF;
  --steel: #9C9CA3;
  --role: #71717A;
  --mono-border: #CFCFCA;
  --mono-ink: #52525B;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.wrap {
  max-width: 30rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 1.75rem;
  padding-bottom: 2rem;
}

.monogram {
  grid-column: 2;
  width: 46px;
  height: 46px;
  border: 1px solid var(--mono-border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-indent: 0.12em; /* kompenzace prostrkání za posledním písmenem */
  color: var(--mono-ink);
}

.back {
  grid-column: 1;
  justify-self: start;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}

.back:hover { color: var(--ink); }

.top-contact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-2);
  text-decoration: none;
}

.top-contact svg { flex: none; }

.top-contact:hover { color: var(--ink); }

.top-contact { grid-column: 1; justify-self: start; }
.top-contact-right { grid-column: 3; justify-self: end; }

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

.hero { text-align: center; }

.portrait {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  filter: grayscale(100%) contrast(1.06);
}

.hero h1 {
  margin-top: 1.75rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.role {
  margin-top: 0.75rem;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  text-indent: 0.25em;
  color: var(--role);
}

.lede {
  margin-top: 1.125rem;
  color: var(--ink-2);
}

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

.actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: #000000;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--frame);
}

.btn-secondary:hover {
  border-color: #B8B8B2;
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.btn-secondary svg { flex: none; }

.note {
  margin-top: 0.375rem;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  color: var(--ink-3);
}

.hero-text .note:first-of-type { margin-top: 0.875rem; }

.note-link {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: #C8C8C4;
  text-underline-offset: 3px;
}

.note-link:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

button.note-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}


/* ---------- kovová linka ---------- */

.metal {
  height: 1px;
  border: 0;
  margin: 2.5rem 0;
  background: linear-gradient(90deg, #E8E8E4, #AFAFAA 50%, #E8E8E4);
}

/* ---------- sekce se seznamem ---------- */

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.list {
  list-style: none;
  margin-top: 0.5rem;
}

.item {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  column-gap: 0.875rem;
  padding: 1.25rem 0;
}

.item + .item { border-top: 1px solid var(--hairline); }

.item .num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--steel);
}

.item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.item p {
  margin-top: 0.25rem;
  font-size: 14px;
  color: var(--ink-2);
}

.section + .section,
.process { margin-top: 2.25rem; }

/* ---------- textový odkaz ---------- */

.more {
  margin-top: 1.5rem;
  text-align: center;
}

.text-link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: #C8C8C4;
  text-underline-offset: 4px;
}

.text-link:hover { text-decoration-color: var(--ink); }

main { padding-bottom: 3.5rem; }

/* ---------- stránka Výsledky ---------- */

.intro h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.intro .sub {
  margin-top: 0.625rem;
  color: var(--ink-2);
}

.intro .disclaimer {
  margin-top: 0.375rem;
  font-size: 13px;
  color: var(--ink-3);
}

.cases {
  display: grid;
  gap: 0.875rem;
  margin-top: 1.75rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(27, 27, 31, 0.05);
  padding: 1.25rem 1.375rem;
}

.metric {
  margin-top: 0.875rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.metric .unit {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--ink-2);
}

.delta {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--ink-2);
}

.delta strong {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- citace ---------- */

.quotes {
  margin-top: 2.75rem;
  display: grid;
  gap: 2rem;
}

.quote { text-align: center; }

.quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
}

.quote figcaption {
  margin-top: 0.625rem;
  font-size: 13px;
  color: var(--ink-2);
}

.pull-quote { margin-top: 2.25rem; }

.pull-quote blockquote { font-size: 18px; }

/* ---------- formulář schůzky ---------- */

.form-section {
  margin-top: 2.75rem;
  scroll-margin-top: 1.5rem;
}

.contact-form { margin-top: 1rem; }

.honey { display: none; }

.field { margin-top: 1rem; border: 0; }

.field:first-of-type { margin-top: 0; }

.field label,
.field legend {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 0.375rem;
  padding: 0;
}

.field input[type="text"],
.field input[type="tel"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--frame);
  border-radius: 10px;
}

.field input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 0;
  border-color: var(--ink);
}

.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.seg label {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--frame);
  border-radius: 10px;
  cursor: pointer;
  margin: 0;
}

.seg input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.seg label:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}

.seg label:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.contact-form .btn {
  width: 100%;
  border: 0;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  margin-top: 1.25rem;
}

.form-note {
  margin-top: 0.875rem;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
  color: var(--ink-2);
}

.form-done {
  text-align: center;
  padding: 1rem 0;
}

.form-done strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.form-done p {
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- závěrečná výzva ---------- */

.cta {
  margin-top: 2.75rem;
  display: grid;
  gap: 1.375rem;
  justify-items: stretch;
}

.cta .back-link {
  justify-self: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}

.cta .back-link:hover { color: var(--ink); }

.share-block {
  text-align: center;
  padding: 0.375rem 0;
}

.share-block p {
  font-size: 14px;
  color: var(--ink-2);
}

.share-block .note-link {
  margin-top: 0.375rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- animace ---------- */

.js .fade {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.js .fade.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn { transition: none; }
  .btn-primary:hover,
  .btn-secondary:hover { transform: none; }
}


/* ============================================================
   Tablet na výšku — širší sloupec, portrét se nesmí roztáhnout
   ============================================================ */

@media (min-width: 640px) {
  .wrap { max-width: 34rem; }
  .top { padding-top: 2.5rem; }
  .hero h1 { font-size: 44px; }
  main { padding-bottom: 4.5rem; }

  .hero-media {
    max-width: 20rem;
    margin: 0 auto;
  }
}

/* ============================================================
   Desktop — sekční rozvržení
   ============================================================ */

@media (min-width: 800px) {

  .wrap {
    max-width: 64rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .top {
    padding-top: 2.25rem;
    padding-bottom: 3.5rem;
  }

  .top-contact { font-size: 13px; }

  main { padding-bottom: 6rem; }

  /* ---------- hero: text vlevo, portrét vpravo ---------- */

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(15rem, 29vw, 23rem);
    column-gap: clamp(2rem, 4vw, 4.5rem);
    align-items: center;
    text-align: left;
    padding-bottom: 1rem;
  }

  .hero-text { grid-column: 1; grid-row: 1; }

  .hero-media {
    grid-column: 2;
    grid-row: 1;
    max-width: none;
    margin: 0;
  }

  .hero h1 {
    margin-top: 0;
    font-size: clamp(38px, 4.6vw, 58px);
    letter-spacing: -0.02em;
  }

  .role { margin-top: 1rem; }

  .lede {
    margin-top: 1.375rem;
    font-size: 18px;
    line-height: 1.6;
    max-width: 30rem;
  }

  /* tlačítka vedle sebe, ne přes celou šířku */
  .hero .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-top: 2.25rem;
  }

  .hero .actions .btn {
    flex: 0 1 auto;
    padding: 0 1.75rem;
    min-width: 12.5rem;
  }

  .hero .note { text-align: left; }

  .metal { margin: 4rem 0; }

  /* ---------- služby a proces: sloupce vedle sebe ---------- */

  .section + .section,
  .process { margin-top: 3.75rem; }

  .eyebrow { font-size: 12px; }

  .services .list,
  .process .list {
    display: grid;
    column-gap: 2.25rem;
    row-gap: 2rem;
    margin-top: 1.75rem;
  }

  .services .list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process .list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .services .item,
  .process .item {
    display: block;
    padding: 1.125rem 0 0;
    border-top: 1px solid var(--hairline);
  }

  .services .item .num,
  .process .item .num {
    display: block;
    margin-bottom: 0.75rem;
  }

  .services .item h3,
  .process .item h3 { font-size: 17px; }

  .services .item p,
  .process .item p { margin-top: 0.375rem; }

  /* ---------- citace jako předěl ---------- */

  .pull-quote {
    max-width: 44rem;
    margin: 4.5rem auto 0;
  }

  .pull-quote blockquote {
    font-size: clamp(21px, 2.1vw, 27px);
    line-height: 1.4;
  }

  .pull-quote figcaption {
    margin-top: 1rem;
    font-size: 14px;
  }

  .more { margin-top: 1.75rem; }

  /* ---------- formulář: vycentrovaný blok ---------- */

  .form-section {
    max-width: 34rem;
    margin: 0 auto;
    text-align: center;
    scroll-margin-top: 2.5rem;
  }

  .card { padding: 1.75rem 1.875rem; }

  .contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
    row-gap: 1.125rem;
    margin-top: 1.25rem;
    text-align: left;
  }

  .contact-form .field { margin-top: 0; }

  .contact-form fieldset.field,
  .contact-form .btn,
  .contact-form .form-note { grid-column: 1 / -1; }

  .contact-form .btn { margin-top: 0.125rem; }

  .contact-form .form-note { margin-top: 0; }

  /* ---------- stránka Reference ---------- */

  .intro { text-align: center; }

  .intro h1 { font-size: clamp(34px, 3.2vw, 42px); }

  .intro .sub,
  .intro .disclaimer {
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
  }

  .cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.125rem;
    margin-top: 2.5rem;
  }

  .quotes {
    margin-top: 4rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }

  .cta {
    margin-top: 4rem;
    justify-items: center;
  }

  .cta .btn-primary {
    min-width: 18rem;
    padding: 0 2rem;
  }
}

/* proces do čtyř sloupců až tam, kde je na to místo */

@media (min-width: 1060px) {
  .process .list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- velmi široké displeje ---------- */

@media (min-width: 1280px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 25rem;
    column-gap: 5rem;
  }
  .hero h1 { font-size: 64px; }
}

/* ---------- hover jen tam, kde dává smysl ---------- */

@media (hover: none) {
  .btn-primary:hover,
  .btn-secondary:hover { transform: none; }
}
