/* ============================================================
   Kippis homepage v2 (2026-09) — marketing pro instalační a montážní firmy
   Sdílí design tokeny ze styles.css (paper/cream/cocoa/accent/gold, Mona + Hubot Sans).
   Prefix .hp-* = homepage. .case-cta se používá i na stránce Reference.
   ============================================================ */

/* ---------- HERO ---------- */
.hp-hero {
  position: relative;
  padding: 176px 0 72px;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}
.hp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* plynulé vyhasnutí barevných skvrn směrem k další sekci (žádná tvrdá hrana) */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}
/* měkké barevné skvrny (teal vlevo, zlatá vpravo, jemná coral) — bez mřížky */
.hp-hero-bg::before {
  content: '';
  position: absolute;
  inset: -30% -15%;
  background:
    radial-gradient(38% 42% at 12% 72%, rgba(0,191,158,0.28), transparent 70%),
    radial-gradient(34% 40% at 90% 32%, rgba(240,184,64,0.34), transparent 70%),
    radial-gradient(26% 30% at 78% 88%, rgba(232,90,71,0.12), transparent 70%),
    radial-gradient(30% 34% at 22% 12%, rgba(0,191,158,0.12), transparent 70%);
  filter: blur(40px);
}
.hp-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 55% at 50% 45%, rgba(255,251,242,0.55), transparent 100%);
}
.hp-hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.hp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--espresso);
  backdrop-filter: blur(6px);
}
.hp-eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,191,158,0.18);
}
.hp-hero h1 {
  margin-top: 0;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--cocoa);
  text-wrap: balance;
}
.hp-hero h1 em {
  font-style: italic;
  font-family: var(--body);
  font-weight: 500;
  color: var(--gold-dark);
}
.hp-hero-lead {
  margin: 24px auto 0;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--espresso);
}
.hp-hero-ctas {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* čísla v hero */
.hp-stats {
  position: relative;
  z-index: 1;
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1040px;
}
.hp-stat {
  border-top: 1px solid var(--rule-strong);
  padding-top: 18px;
  text-align: left;
}
.hp-stat .lab {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hp-stat b {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--cocoa);
  white-space: nowrap;
}
@media (max-width: 880px) {
  .hp-hero { padding-top: 140px; }
  .hp-stats { grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
}
@media (max-width: 480px) {
  .hp-hero { padding-top: 120px; padding-bottom: 56px; }
  .hp-hero-lead { font-size: 17px; }
  .hp-hero-ctas .btn { width: 100%; justify-content: center; }
  .hp-stats { gap: 18px; }
}

/* ---------- LOGA (nekonečný slider) ---------- */
.hp-logos {
  padding: 40px 0 44px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--cream);
  overflow: hidden;
}
.hp-logos-label {
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 28px;
}
.hp-logos-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.hp-logos-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: hp-logos-scroll 38s linear infinite;
  will-change: transform;
}
.hp-logos-marquee:hover .hp-logos-track { animation-play-state: paused; }
.hp-logo {
  flex: 0 0 auto;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hp-logo img {
  height: 100%;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.62);
  transition: filter .25s ease;
}
.hp-logo:hover img { filter: grayscale(0%) opacity(1); }
.hp-logo.is-tall { height: 60px; }
@keyframes hp-logos-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 720px) {
  .hp-logos-track { gap: 44px; animation-duration: 26s; }
  .hp-logo { height: 34px; }
  .hp-logo.is-tall { height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-logos-track, .rv-row { animation: none !important; }
}

/* ---------- Společné hlavičky sekcí ---------- */
.hp-head {
  max-width: 760px;
  margin-bottom: 56px;
}
.hp-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.hp-head h2 {
  margin-top: 16px;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hp-head h2 em {
  font-family: var(--body);
  font-style: italic;
  font-weight: 500;
  color: var(--gold-dark);
}
.hp-head .lede {
  margin-top: 18px;
  font-size: 17px;
  color: var(--espresso);
  max-width: 56ch;
}
.hp-head.is-center .lede { margin-left: auto; margin-right: auto; }
.hp-section-alt { background: var(--cream); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* ---------- PILÍŘE (4 boxy pod sebou) ---------- */
.pil-list { display: flex; flex-direction: column; gap: 20px; }
.pilbox {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  padding: 48px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.pilbox::after {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  right: -120px; top: -140px;
  background: radial-gradient(circle, rgba(240,184,64,0.18), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.pilbox:nth-child(2)::after { background: radial-gradient(circle, rgba(0,191,158,0.16), transparent 70%); }
.pilbox:nth-child(3)::after { background: radial-gradient(circle, rgba(232,90,71,0.14), transparent 70%); }
.pilbox:nth-child(4)::after { background: radial-gradient(circle, rgba(0,191,158,0.16), transparent 70%); }
.pil-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 24px;
}
.pil-eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}
.pil-left h3 {
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 14px;
}
.pil-left p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--espresso);
  max-width: 44ch;
  margin-bottom: 26px;
}
.pil-right {
  border-left: 1px solid var(--rule-strong);
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: center;
  min-width: 0;
}
.pil-right ul { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.pil-right li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 15px; color: var(--espresso); line-height: 1.45;
}
.pil-right li::before {
  content: '';
  flex: 0 0 18px;
  width: 18px; height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
@media (max-width: 880px) {
  .pilbox { grid-template-columns: 1fr; padding: 32px 24px; gap: 8px; }
  .pil-left { padding-right: 0; }
  .pil-right { border-left: none; padding-left: 0; border-top: 1px solid var(--rule-strong); padding-top: 24px; margin-top: 16px; }
}

/* --- Mocky v pilířích (vizuál) --- */
.mock {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  font-family: var(--sans);
  color: var(--cocoa);
}
.mock-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  font-size: 12px; font-weight: 600; color: var(--muted);
}
.mock-head .dots { display: flex; gap: 5px; }
.mock-head .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--sand); display: block; }
.mock-body { padding: 16px; }

/* 1) Dashboard */
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 12px 14px;
  min-width: 0;
}
.kpi .k-lab { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .k-val { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; line-height: 1.1; }
.kpi .k-delta { font-size: 11px; font-weight: 600; margin-top: 4px; color: var(--accent-dark); }
.kpi .k-delta.is-down { color: var(--coral); }
.bars {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5px;
  align-items: end;
  height: 76px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
}
.bars i {
  display: block;
  border-radius: 4px 4px 0 0;
  background: var(--accent-tint);
  height: var(--h, 40%);
}
.bars i.is-hi { background: var(--accent); }
.bars-axis { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 6px; }
.bars-axis b { color: var(--accent-dark); font-weight: 700; }

/* 2) Analýza — graf */
.chart { display: block; width: 100%; height: auto; }
.chart .grid { stroke: rgba(42,30,24,0.08); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 10px; font-family: var(--sans); font-weight: 600; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .line-2 { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 5 5; }
.chart .area { fill: url(#hpArea); }
.chart .marker { stroke: rgba(42,30,24,0.28); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .dot { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.chart .tag { fill: var(--cocoa); font-size: 11px; font-weight: 700; font-family: var(--sans); }
.chart-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--espresso); font-weight: 600; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--accent); display: inline-block; }
.chart-legend i.g { background: var(--gold); }

/* 3) Online reklama — 3 videa */
.ads-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ad {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: var(--cocoa);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-md);
}
.ad video, .ad img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad .ad-tag {
  position: absolute; left: 8px; bottom: 8px;
  padding: 4px 8px;
  border-radius: var(--r-pill);
  background: rgba(255,251,242,0.92);
  color: var(--cocoa);
  font-family: var(--sans);
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}

/* 4) Obchod — CRM pipeline */
.crm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.crm-col { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 10px; min-width: 0; }
.crm-col-h { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.crm-col-h b { color: var(--cocoa); }
.lead { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 8px 10px; margin-top: 6px; font-size: 12px; }
.lead .l-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead .l-meta { color: var(--muted); font-size: 11px; margin-top: 2px; display: flex; justify-content: space-between; gap: 6px; }
.lead .l-src { display: inline-block; padding: 1px 6px; border-radius: 6px; background: var(--accent-tint); color: var(--accent-dark); font-weight: 700; font-size: 10px; }
.lead .l-src.g { background: var(--gold-tint); color: var(--gold-dark); }
.lead.is-won { border-color: var(--accent); background: rgba(0,191,158,0.06); }
.crm-foot { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted); font-weight: 600; }
.crm-foot b { color: var(--cocoa); }
@media (max-width: 480px) {
  .kpi-row, .crm { grid-template-columns: 1fr 1fr; }
  .crm-col:last-child { grid-column: 1 / -1; }
}

/* ---------- RECENZE — dva protiběžné pásy ---------- */
.rv-marquee {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.rv-marquee + .rv-marquee { margin-top: 12px; }
.rv-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: max-content;
  will-change: transform;
}
.rv-row.left  { animation: rv-left 70s linear infinite; }
.rv-row.right { animation: rv-right 70s linear infinite; }
.rv-marquee:hover .rv-row { animation-play-state: paused; }
@keyframes rv-left  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rv-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.rv-card {
  flex: 0 0 380px;
  width: 380px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.rv-card:hover { border-color: var(--rule-strong); box-shadow: var(--shadow-sm); }
.rv-stars { color: var(--gold); font-size: 15px; letter-spacing: 2px; line-height: 1; }
.rv-card p {
  font-size: 15px; line-height: 1.55; color: var(--espresso); margin: 0;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
}
.rv-card.is-open p { -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.rv-more {
  align-self: flex-start;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  color: var(--cocoa); text-decoration: underline; text-underline-offset: 3px;
}
.rv-more:hover { color: var(--accent-dark); }
.rv-card .rv-who { margin-top: auto; }
.rv-who { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.rv-avatar {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 50%;
  background: var(--cocoa); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
}
.rv-who b { display: block; font-family: var(--sans); font-size: 14px; line-height: 1.2; color: var(--cocoa); }
.rv-who span { font-size: 12px; color: var(--muted); }
@media (max-width: 720px) {
  .rv-card { flex-basis: 290px; width: 290px; padding: 20px; }
  .rv-card p { font-size: 14px; }
  .rv-row.left, .rv-row.right { animation-duration: 55s; }
}

/* ---------- PŘÍPADOVÉ STUDIE ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.case-card {
  display: block;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  padding: 20px;
  color: var(--cocoa);
  text-decoration: none;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--rule-strong); }
.case-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.case-shot {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--rule);
}
.case-shot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .9s cubic-bezier(.2,.8,.2,1);
}
.case-card:hover .case-shot img { transform: translateY(-4%); }
.case-shot.is-scrolled img { object-position: 50% 26%; }
.case-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 6px 0;
}
.case-head h3 { font-size: clamp(22px, 2.3vw, 28px); letter-spacing: -0.03em; margin: 0; }
.case-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  color: var(--cocoa); white-space: nowrap; flex-shrink: 0;
}
.case-link .arrow { transition: transform .25s; }
.case-card:hover .case-link .arrow { transform: translateX(4px); }
.case-industry { padding: 8px 6px 4px; font-size: 14.5px; color: var(--muted); }
.case-cta {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-xl);
  padding: 56px 40px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  background: linear-gradient(135deg, var(--accent) 0%, #6BCEA0 45%, var(--gold) 100%);
  color: var(--cocoa);
}
.case-cta::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,0.35), transparent 55%),
    radial-gradient(circle at 12% 90%, rgba(42,30,24,0.10), transparent 55%);
}
.case-cta h3 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.03em; margin: 0; }
.case-cta p { font-size: 16px; line-height: 1.5; max-width: 52ch; margin: 0; color: var(--cocoa); opacity: 0.85; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 720px; margin: 4px 0 8px; }
.case-tags span {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(255,251,242,0.92);
  font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--cocoa);
}
.case-tags span.secondary { background: rgba(255,251,242,0.55); color: var(--espresso); }
.case-tags span.accent { background: var(--cocoa); color: var(--cream); }
@media (max-width: 880px) {
  .case-grid { grid-template-columns: 1fr; gap: 20px; }
  .case-cta { padding: 44px 24px; }
}
@media (max-width: 480px) {
  .case-card { padding: 14px; }
  .case-media { gap: 8px; }
  .case-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* --- „Tady může být vaše případová studie" — dashed karta (styl staré invite karty z referencí) --- */
.ref-card-invite {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(0, 191, 158, 0.18), transparent 55%),
    radial-gradient(120% 140% at 0% 100%, rgba(240, 184, 64, 0.18), transparent 55%),
    var(--cream);
  border: 2px dashed rgba(42, 30, 24, 0.22);
  color: var(--cocoa);
  isolation: isolate;
  min-height: 460px;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.ref-card-invite:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 28px 60px -28px rgba(0, 191, 158, 0.45);
}
.ref-card-invite-body {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(36px, 4vw, 56px);
  gap: 18px;
  text-align: left;
}
.ref-card-invite-mark {
  width: 64px; height: 64px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid rgba(42, 30, 24, 0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--accent); line-height: 1;
  transition: background .35s ease, transform .35s ease;
}
.ref-card-invite:hover .ref-card-invite-mark { background: var(--accent); color: var(--paper); transform: rotate(8deg); }
.ref-card-invite h3 {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0; color: var(--cocoa);
}
.ref-card-invite h3 em { font-style: normal; color: var(--accent); }
.ref-card-invite p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--espresso); max-width: 420px; }
.ref-card-invite .case-tags { justify-content: flex-start; margin: 2px 0 6px; max-width: none; }
.ref-card-invite .case-tags span { background: var(--paper); border: 1px solid var(--rule); }
.ref-card-invite .case-tags span.secondary { background: transparent; color: var(--espresso); }
.ref-card-invite .case-tags span.accent { background: var(--cocoa); color: var(--cream); border-color: transparent; }
.ref-card-invite-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--cocoa); color: var(--paper);
  font: 600 14px/1 var(--sans);
  transition: background .25s ease, transform .25s ease;
}
.ref-card-invite:hover .ref-card-invite-cta { background: var(--accent); transform: translateY(-1px); }
.ref-card-invite-cta .arrow { transition: transform .25s ease; }
.ref-card-invite:hover .ref-card-invite-cta .arrow { transform: translateX(4px); }
/* invite karta přes celou šířku mřížky (4 karty + CTA) — obsah centrovaný */
.ref-grid .ref-card-invite { grid-column: 1 / -1; min-height: 0; }
.ref-grid .ref-card-invite-body { align-items: center; text-align: center; padding: clamp(40px, 5vw, 64px); }
.ref-grid .ref-card-invite h3 { max-width: 640px; }
.ref-grid .ref-card-invite p { max-width: 560px; }
.ref-grid .ref-card-invite .case-tags { justify-content: center; max-width: 760px; }
/* homepage: ref-card mřížka bez spodního paddingu (section má vlastní) */
.hp-ref-grid { padding-bottom: 0; }
.hp-ref-grid .ref-card-industry { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); }

/* ---------- KONTAKT (formulář na HP) ---------- */
.hp-contact-wrap { max-width: 720px; margin: 0 auto; }
.hp-form {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
  text-align: left;
}
.hp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.hp-field label { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--espresso); }
.hp-field label .req { color: var(--coral); }
.hp-field input[type="text"], .hp-field input[type="email"], .hp-field input[type="tel"] {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  color: var(--cocoa);
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--rule-strong);
  background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.hp-field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  color: var(--cocoa);
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--rule-strong);
  background: var(--paper);
  resize: vertical;
  min-height: 88px;
  transition: border-color .2s, box-shadow .2s;
}
.hp-field textarea:focus,
.hp-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,191,158,0.15); background: #fff; }
.hp-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--espresso); margin: 4px 0 20px; cursor: pointer; }
.hp-consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); flex: 0 0 16px; }
.hp-consent a { text-decoration: underline; }
.hp-submit { width: 100%; justify-content: center; }
.hp-submit[data-loading="true"] .hp-submit-label { display: none; }
.hp-submit:not([data-loading="true"]) .hp-submit-loading { display: none; }
.hp-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hp-status { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); font-size: 14px; }
.hp-status[data-state="error"] { background: var(--coral-tint); color: #8a2e22; }
.hp-alt {
  margin-top: 24px;
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: center;
  font-size: 14px; color: var(--espresso);
}
.hp-alt button, .hp-alt a.hp-reveal {
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  color: var(--cocoa);
  background: none; border: none; cursor: pointer; padding: 0;
  text-decoration: underline; text-underline-offset: 3px;
}
.hp-alt button:hover, .hp-alt a.hp-reveal:hover { color: var(--accent-dark); }
@media (max-width: 560px) {
  .hp-form { padding: 24px 18px; }
  .hp-form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- FAQ (override) ---------- */
.hp-faq { max-width: 820px; margin: 0 auto; }
.hp-faq .faq-item.open .faq-a { max-height: 1400px; }
.hp-faq .faq-a p { margin: 0; line-height: 1.6; }
.hp-faq .faq-q { font-size: 17px; }
