/* JINDRACEK studio — styl webu podle manuálu značky 1.0 (barvy, Manrope, rozestupy po 8 px, karty 24 px, tlačítka kapsle).
   Limetková jen jako akcent (5–10 % plochy), nikdy ne jako barva textu na světlém podkladu. */

@font-face {
  font-family: Manrope;
  src: url("../fonts/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #101824;
  --lime: #D5F51A;
  --ivory: #F7F5EF;
  --muted: #586270;
  --line: #D9DDD9;
  --white: #FFFFFF;
  --navy-2: #1b2533;
  --navy-line: #2a3546;
  --font: Manrope, Arial, sans-serif;
  --radius: 24px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 800; line-height: 1.12; letter-spacing: -0.035em; margin: 0; }
p { margin: 0 0 16px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--lime); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--lime); padding: 8px 16px; border-radius: 999px; font-weight: 600; z-index: 100; }
.skip:focus { top: 12px; }

/* čtvercová tečka značky (s posledním slovem se nesmí zalomit) */
.nw { white-space: nowrap; }
.dot { display: inline-block; width: 0.22em; height: 0.22em; background: var(--lime); margin-left: 0.04em; vertical-align: baseline; }

/* ---------- tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 28px;
  border: 2px solid var(--navy); border-radius: 999px;
  font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.btn-primary { background: var(--lime); color: var(--navy); }
.btn-primary:hover { background: var(--navy); color: var(--ivory); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--white); }
.dark .btn-primary { border-color: var(--lime); }
.dark .btn-primary:hover { background: var(--ivory); border-color: var(--ivory); color: var(--navy); }
.btn-sm { min-height: 44px; padding: 8px 20px; font-size: 15px; }
.arrow { transition: transform .18s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- hlavička ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.logo { display: block; flex: none; }
.logo img { height: 70px; width: auto; max-width: none; margin: -8px 0 -8px -14px; } /* SVG má v sobě ochranný prostor loga; 70 px = 221 px šířky (minimum manuálu 220 px) */
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { background: var(--white); }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border: 2px solid var(--navy); border-radius: 999px; background: transparent; cursor: pointer; position: relative; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { position: absolute; left: 50%; width: 18px; height: 2px; margin-left: -9px; background: var(--navy); border-radius: 2px; transition: transform .2s, background .2s; }
.menu-btn span { top: 50%; margin-top: -1px; }
.menu-btn span::before, .menu-btn span::after { content: ""; left: 0; margin-left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- sekce ---------- */
section { padding: clamp(64px, 9vw, 112px) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--lime); box-shadow: 0 0 0 1px rgba(16,24,36,.15); }
.dark .eyebrow { color: #a9b1bc; }
.sec-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 48px; align-items: end; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(32px, 4.2vw, 48px); }
.sec-head p { color: var(--muted); margin: 0; font-size: 18px; }
.dark { background: var(--navy); color: var(--ivory); }
.dark .sec-head p { color: #b7bec8; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); margin-bottom: 24px; }
.hero .lead { font-size: clamp(18px, 2vw, 21px); color: var(--navy); max-width: 34ch; margin-bottom: 32px; }
.hero .lead span { color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.proof {
  background: var(--navy); color: var(--ivory); border-radius: var(--radius); padding: 32px;
  box-shadow: 0 30px 60px -30px rgba(16, 24, 36, .45);
}
.proof h2 { font-size: 20px; letter-spacing: -0.01em; margin-bottom: 4px; }
.proof .note { color: #a9b1bc; font-size: 14px; margin-bottom: 24px; }
.proof ul { list-style: none; margin: 0; padding: 0; }
.proof li { padding: 18px 0; border-top: 1px solid var(--navy-line); display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: baseline; }
.proof li:first-child { border-top: 0; padding-top: 0; }
.proof b { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: var(--lime); line-height: 1; }
.proof span { font-size: 15px; color: #d8dde3; }
.proof .bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--navy-line); overflow: hidden; margin-top: 8px; }
.proof .bar i { display: block; height: 100%; background: var(--lime); border-radius: 6px; }
.pillars { margin-top: clamp(48px, 7vw, 80px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: repeat(4, 1fr); }
.pillars div { padding: 24px 28px; }
.pillars div + div { border-left: 1px solid var(--line); }
.pillars strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.pillars span { color: var(--muted); font-size: 15px; }

/* ---------- služby ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.svc { display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.svc:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -28px rgba(16, 24, 36, .35); }
.svc .num { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.svc .num i { width: 10px; height: 10px; background: var(--lime); box-shadow: 0 0 0 1px rgba(16,24,36,.15); }
.svc h3 { font-size: 26px; margin-bottom: 6px; }
.svc .sub { font-weight: 600; margin-bottom: 14px; }
.svc .desc { color: var(--muted); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; padding: 0; list-style: none; }
.tags li { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--ivory); }
.svc details { margin-top: auto; border-top: 1px solid var(--line); }
.svc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 16px 0 0; font-weight: 700; font-size: 15px; min-height: 44px; }
.svc summary::-webkit-details-marker { display: none; }
.svc summary::after { content: "+"; width: 32px; height: 32px; border-radius: 999px; border: 1.5px solid var(--navy); display: grid; place-items: center; font-weight: 600; transition: transform .2s, background .2s; }
.svc details[open] summary::after { transform: rotate(45deg); background: var(--lime); }
.svc details h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 20px 0 8px; }
.svc details ul { margin: 0; padding-left: 18px; font-size: 15px; }
.svc details li { margin: 4px 0; }
.svc details li::marker { color: var(--muted); }
.praxe { background: var(--ivory); border-radius: 16px; padding: 14px 16px; font-size: 15px; margin-top: 8px; }
.praxe p { margin: 6px 0; }
.spec { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.spec > span { font-weight: 700; margin-right: 6px; }
.spec ul { display: contents; }
.spec li { list-style: none; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.web-note { margin-top: 24px; color: var(--muted); }
.web-note a { font-weight: 700; color: var(--navy); }

/* ---------- reference ---------- */
.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ref { background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.ref figure { margin: 0; background: #0b111a; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--navy-line); }
.ref figure img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.ref:hover figure img { transform: scale(1.03); }
.ref .body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.ref .kind { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a9b1bc; margin-bottom: 8px; }
.ref h3 { font-size: 24px; margin-bottom: 10px; }
.ref p { color: #cfd5dc; font-size: 15px; }
.ref ul { margin: 0 0 20px; padding: 0; list-style: none; font-size: 14px; color: #d8dde3; }
.ref ul li { padding: 6px 0 6px 18px; position: relative; border-top: 1px solid var(--navy-line); }
.ref ul li::before { content: ""; position: absolute; left: 0; top: 14px; width: 6px; height: 6px; background: var(--lime); }
.ref .link { margin-top: auto; font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; color: var(--ivory); min-height: 44px; }
.ref .link:hover { color: var(--lime); }

/* ---------- aplikace a nástroje ---------- */
.app-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app-group { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.app-group h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.app-group h3::before { content: ""; width: 10px; height: 10px; background: var(--lime); box-shadow: 0 0 0 1px rgba(16,24,36,.15); flex: none; }
.app-group ul { list-style: none; margin: 0; padding: 0; }
.app-group li { padding: 12px 0; border-top: 1px solid var(--line); }
.app-group li:first-child { border-top: 0; }
.app-group b { display: block; font-size: 16px; font-weight: 700; }
.app-group span { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- o mně ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.about-card { background: var(--navy); border-radius: var(--radius); padding: 40px; color: var(--ivory); display: flex; flex-direction: column; gap: 24px; min-height: 360px; justify-content: space-between; }
.about-card img { width: 150px; height: auto; margin: -20px 0 0 -24px; }
.about-card strong { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; display: block; }
.about-card span { color: #a9b1bc; }
.about h2 { font-size: clamp(32px, 4.2vw, 48px); margin-bottom: 24px; }
.about p { font-size: 18px; }
.about .muted { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.facts div { border-top: 2px solid var(--navy); padding-top: 12px; }
.facts b { display: block; font-size: 15px; }
.facts span { font-size: 14px; color: var(--muted); }

/* ---------- postup ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; counter-increment: s; }
.steps li::before { content: "0" counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 2px solid var(--navy); font-weight: 800; font-size: 15px; margin-bottom: 20px; }
.steps li:last-child::before { content: "✓"; background: var(--lime); }
.steps h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-weight: 700; font-size: 19px; position: relative; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border-radius: 999px; border: 1.5px solid var(--navy); display: grid; place-items: center; font-weight: 600; transition: transform .2s, background .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--lime); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; max-width: 70ch; }

/* ---------- kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-grid h2 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 24px; }
.contact-grid .lead { font-size: 19px; color: #cfd5dc; max-width: 32ch; }
.mail { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--ivory); text-decoration: none; border-bottom: 2px solid var(--lime); padding-bottom: 2px; margin-top: 8px; }
.form { background: var(--ivory); color: var(--navy); border-radius: var(--radius); padding: 32px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.form legend, .form label { font-weight: 700; font-size: 15px; display: block; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; font-weight: 600; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; font-size: 15px; transition: border-color .15s, background .15s; }
.chips input:checked + span { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.chips input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.form input[type=text], .form input[type=email], .form input[type=url], .form textarea {
  width: 100%; font: 400 16px/1.5 var(--font); color: var(--navy);
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white);
}
.form input:focus, .form textarea:focus { border-color: var(--navy); outline: none; }
.form textarea { min-height: 140px; resize: vertical; }
.form .row { margin-bottom: 18px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .hint { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.form .btn { width: 100%; }

/* ---------- patička ---------- */
.site-foot { background: var(--navy); color: #b7bec8; border-top: 1px solid var(--navy-line); padding: 40px 0; font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.foot-row img { height: 70px; width: auto; max-width: none; margin: -8px 0 -8px -14px; }
.site-foot a { color: var(--ivory); }

/* ---------- animace při posunu ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responzivita ---------- */
@media (max-width: 1080px) {
  .services, .refs, .app-groups { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  /* panel pod hlavičkou (absolute — fixed by v hlavičce s backdrop-filter kotvil k ní) */
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ivory); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(16,24,36,.35); padding: 8px var(--gutter) 20px; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .menu-open .nav { visibility: visible; opacity: 1; transform: none; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px; }
  .head-row .btn-sm { display: none; }
  .hero-grid, .sec-head, .about, .contact-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillars div:nth-child(3) { border-left: 0; }
  .pillars div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .services, .refs, .steps, .app-groups { grid-template-columns: 1fr; }
  .card, .proof, .form { padding: 24px; }
  .pillars div { padding: 18px 20px; }
  .form .two { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
  .logo img { height: 70px; margin-left: -12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
