/* TRIBASE – styly webu */
:root {
  --ink: #0F1B2D;
  --ink-deep: #0A1320;
  --ground: #F4F5F2;
  --white: #FFFFFF;
  --muted: #4A5565;
  --line: #E1E4DE;
  --accent: #1B7A30;        /* firemní zelená */
  --accent-hover: #146024;
  --lime: #FFF200;          /* žlutá z loga */
  --brand-green: #00A651;   /* zelená z loga (jen logo a plochy, na text je světlá) */
  --on-dark: #C9D1DB;
  --radius: 14px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--ground); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; line-height: 1.12; }
h2 { font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -0.01em; }
h3 { font-size: 21px; font-weight: 600; line-height: 1.3; }
p { margin: 0; }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; border-radius: 6px; }

/* Tlačítka */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 12px 20px; border-radius: 8px; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; transition: background .15s; }
.btn-lg { min-height: 48px; padding: 14px 26px; font-size: 16px; }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-hover); color: var(--white); }
.btn-ghost { color: var(--white); border: 1px solid #44546B; }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }

/* Hlavička */
.site-header { background: var(--white); color: var(--ink); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.brand { display: flex; align-items: center; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--accent); }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1px solid #C5CBC2; border-radius: 8px; color: var(--ink); cursor: pointer; }

@media (max-width: 860px) {
  .brand img { height: 40px; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; border-top: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15,27,45,.08); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; justify-content: center; }
}

/* Úvod */
.hero { background-color: var(--ink); color: var(--white);
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 40px 40px; }
.hero-row { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 72px 96px; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -0.02em; }
.lead { font-size: 19px; color: var(--on-dark); max-width: 600px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media { flex: 1 1 360px; min-width: 0; }
.hero-media .placeholder, .hero-media img { aspect-ratio: 4 / 5; max-height: 520px; width: 100%; border-radius: 16px; object-fit: cover; }

.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.eyebrow-light { color: #AEB8C6; }

.placeholder { display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #5B6575; font-size: 15px;
  background-image: repeating-linear-gradient(135deg, #E3E6E1 0 12px, #ECEEEA 12px 24px); }
.placeholder.dark { background: #1A2940; border: 1px solid #2E3E56; color: #8E9BAE; }

/* Fakta */
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-block: 32px; }
.facts strong { display: block; font-family: var(--font-head); font-size: 30px; }
.facts span { font-size: 15px; color: var(--muted); }

/* Sekce */
.section { padding-block: 96px; display: flex; flex-direction: column; gap: 44px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.section-head.split { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head.split > div { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.muted { color: var(--muted); font-size: 17px; max-width: 440px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 14px; min-height: 240px; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { font-size: 22px; }
.card p { color: var(--muted); }
.icon { width: 52px; height: 52px; border-radius: 12px; background: #EEF1EC; display: inline-flex; align-items: center; justify-content: center; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.more { margin-top: auto; font-size: 15px; font-weight: 600; color: var(--accent); }

.band { background: var(--white); border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.steps li { border-top: 3px solid var(--ink); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.steps h3 { font-size: 22px; }
.steps p { color: var(--muted); }
.num { font-family: var(--font-head); font-weight: 700; color: var(--accent); }

.refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.ref { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ref .placeholder, .ref img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.ref-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.ref-body p { color: var(--muted); font-size: 15px; }
.tag { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.about { background: #E9ECE6; }
.about-row { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 88px; }
.about-media { flex: 1 1 380px; min-width: 0; aspect-ratio: 4 / 3; border-radius: 16px; }
.about-text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-text p { font-size: 17px; color: #3B4656; line-height: 1.7; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { background: var(--white); border: 1px solid #D3D8CF; border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500; }

/* Kontakt */
.contact { background: var(--ink); color: var(--white); }
.contact-row { display: flex; flex-wrap: wrap; gap: 56px; padding-block: 96px; }
.contact-info { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.contact address { font-style: normal; font-size: 16px; color: #E3E8EE; line-height: 1.9; }
.contact address a { color: var(--white); font-weight: 600; }
.hours { color: #AEB8C6; font-size: 15px; }
.form { flex: 999 1 520px; min-width: 0; background: var(--white); color: var(--ink); border-radius: 16px; padding: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form .full { grid-column: 1 / -1; }
.form input[type=text], .form select, .form textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1px solid #C5CBC2; border-radius: 8px; min-height: 48px; background: var(--white); color: var(--ink); }
.form textarea { resize: vertical; }
.form .consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--muted); }
.form .consent input { width: 20px; height: 20px; margin-top: 2px; }
.full-start { grid-column: 1 / -1; justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: 15px; font-weight: 600; }

.site-footer { background: var(--ink-deep); color: #AEB8C6; font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 32px; }
.site-footer a { color: #D5DBE3; }

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