:root {
  --bg: #F6F3ED;
  --alt: #FBFAF7;
  --plaster: #ECE7DC;
  --olive: #4F5B41;
  --olive-dark: #3C4632;
  --wood: #B9875A;
  --text: #2B2A26;
  --text2: #3F3D38;
  --text3: #4A4842;
  --muted: #5E5B54;
  --line: #DDD6C8;
  --hf: 'Hanken Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
img { max-width: 100%; }
a { color: var(--text); }
a:hover { color: var(--olive); }
p, figure, blockquote, ul, ol { margin: 0; }
section[id] { scroll-margin-top: 16px; }

/* Rozvržení */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 48px; }
.sec { padding-top: 144px; padding-bottom: 144px; }
.bg-alt { background: var(--alt); }
.bg-plaster { background: var(--plaster); }
.stack-14, .stack-16, .stack-20, .stack-24, .stack-32, .stack-56, .stack-64 { display: flex; flex-direction: column; }
.stack-14 { gap: 14px; } .stack-16 { gap: 16px; } .stack-20 { gap: 20px; } .stack-24 { gap: 24px; }
.stack-32 { gap: 32px; } .stack-56 { gap: 56px; } .stack-64 { gap: 64px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }
.center { align-items: center; }
.gap-88 { gap: 88px; }
.narrow { max-width: 640px; }
.max-440 { max-width: 440px; }
.max-520 { max-width: 520px; }

/* Typografie */
.h { font-family: var(--hf); font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
.h1 { font-size: 56px; line-height: 1.06; }
.h2 { font-size: 38px; line-height: 1.15; }
.h3 { font-size: 22px; line-height: 1.3; }
.h3b { font-size: 21px; line-height: 1.3; }
.olive { color: var(--olive); }
.lead { font-size: 19px; max-width: 28em; color: var(--text2); }
.body1 { color: var(--text2); }
.body2 { color: var(--text3); }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.small14 { font-size: 14px; }
.small16 { font-size: 16px; }
.label { margin: 0; font-size: 14px; font-weight: 500; color: var(--muted); }

/* Tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0;
  background: var(--olive); color: var(--alt);
  font: inherit; font-size: 16px; font-weight: 500; line-height: 1.2;
  text-decoration: none; cursor: pointer; align-self: flex-start;
}
.btn:hover { background: var(--olive-dark); color: var(--alt); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 15px; }

/* Navigace */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.25; }
.brand-name { font-size: 20px; }
.brand-role { font-size: 13px; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 36px; font-size: 15px; }
.nav-links a { text-decoration: none; }
.nav-links a.btn { color: var(--alt); }
.nav-mobile { display: none; }

/* Úvod */
.hero { padding-top: 72px; padding-bottom: 144px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 88px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

/* Fotky */
.photo { width: 100%; height: auto; object-fit: cover; border-radius: 4px; display: block; background: var(--plaster); }
.r45 { aspect-ratio: 4 / 5; }
.r34 { aspect-ratio: 3 / 4; }
.fig { display: flex; flex-direction: column; gap: 12px; }
.fig figcaption { font-size: 14px; color: var(--muted); }
.gap-36 { gap: 36px; }

/* Rozcestník */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 16px; }
.tile {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px; border-radius: 6px; min-height: 150px;
  border: 1px solid var(--line); background: transparent;
  transition: background .15s, border-color .15s;
}
.tile:hover { border-color: var(--olive); }
.tile:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.tile-title { font-size: 20px; line-height: 1.3; }
.tile-short { font-size: 15px; color: var(--muted); line-height: 1.6; }
.tile[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: var(--bg); }
.tile[aria-pressed="true"] .tile-short { color: #D9DFD0; }

.panel { background: var(--bg); border-radius: 6px; padding: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 64px; align-items: start; }
.pain { font-size: 24px; line-height: 1.4; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }

.checks { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 14px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='M1 5l4 4 8-8' fill='none' stroke='%234F5B41' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat;
}
.checks-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 14px 56px; }

.steps { padding: 0; list-style: none; display: flex; flex-direction: column; }
.steps li { display: flex; gap: 16px; align-items: stretch; }
.step-rail { flex: none; width: 26px; display: flex; flex-direction: column; align-items: center; }
.step-n {
  width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--olive); color: var(--olive);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; line-height: 1;
}
.step-line { flex: 1; width: 1.5px; min-height: 14px; background: #C9C1B0; }
.step-text { font-size: 16px; line-height: 26px; padding-bottom: 14px; }
.steps li:last-child .step-n { background: var(--olive); color: var(--alt); }
.steps li:last-child .step-line { display: none; }
.steps li:last-child .step-text { color: var(--olive); font-weight: 600; padding-bottom: 0; }

/* Reference */
.quote { display: flex; flex-direction: column; gap: 20px; font-size: 20px; line-height: 1.65; color: var(--text2); }
.quote strong { font-weight: 600; color: var(--text); }
.cite { font-size: 15px; color: var(--muted); }
.cite-name { color: var(--text); font-weight: 600; }

/* Pravidla */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 56px; }
.values { padding-top: 48px; border-top: 1px solid #CFC7B6; }

/* Realizace */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px; }
.project { display: flex; flex-direction: column; gap: 6px; }
.project img { margin-bottom: 10px; }

/* Kontakt */
.me { display: flex; align-items: center; gap: 18px; padding-top: 8px; font-size: 16px; line-height: 1.5; }
.me-text { display: flex; flex-direction: column; }
.me-text a { font-weight: 500; text-underline-offset: 4px; text-decoration-color: var(--wood); }
.me img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; display: block; }
.form { display: flex; flex-direction: column; gap: 20px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 500; }
.form-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px; }
.form .btn { margin-top: 8px; }
.input {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 6px;
  border: 1px solid #D6CFBF; background: var(--alt); font: inherit; font-weight: 400; color: var(--text);
}
.input:focus { outline: 2px solid var(--olive); outline-offset: 1px; border-color: var(--olive); }
textarea.input { min-height: 132px; resize: vertical; }
.upload {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 18px;
  border: 1px dashed #BFB6A4; border-radius: 6px; background: var(--alt);
  font-weight: 400; color: var(--muted); cursor: pointer;
}
.upload svg { flex: none; }
.upload:hover, .upload.drag { border-color: var(--olive); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.form-note { font-size: 15px; color: var(--text2); background: var(--plaster); padding: 14px 18px; border-radius: 6px; }
.form-note.ok { background: #E3E8DA; color: var(--olive-dark); }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Patička */
.foot { border-top: 1px solid #E3DED3; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-links a { color: var(--muted); }

/* Mobil */
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .sec { padding-top: 88px; padding-bottom: 88px; }
  .nav { padding-top: 20px; padding-bottom: 20px; }
  .nav-links { display: none; }
  .nav-mobile { display: inline-flex; align-self: center; }
  .hero { padding-top: 24px; padding-bottom: 88px; gap: 48px; }
  .h1 { font-size: 40px; }
  .h2 { font-size: 30px; }
  .pain { font-size: 21px; }
  .quote { font-size: 18px; }
  .panel { padding: 28px; gap: 40px; }
  .gap-88 { gap: 48px; }
  .stack-64 { gap: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile { transition: none; }
}
