/* ============ Cestotéka — Pro firmy a obce (doplňkové styly) ============ */
/* Načítáno PO /redesign/styles.css; nemění žádné sdílené soubory.          */

/* Nadpisy: zabraňuje přetékání dlouhých slov na mobilu */
h1, h2, h3, h4 {
  overflow-wrap: break-word;
}

/* ---- HERO subpage (bez vizuálu vpravo) ---- */
.firmy-hero-copy {
  max-width: 900px;
}
.firmy-hero-copy h1 {
  margin: 20px 0 0;
 max-width: 880px; }
.firmy-hero-copy .lead {
  margin-top: 22px;
  max-width: 680px;
}
.firmy-hero-copy .hero-cta {
  margin-top: 28px;
}

/* ---- PILLAR — malý seznam pod odstavcem ---- */
.pillar .firmy-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 7px;
}
.pillar .firmy-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text-2);
}
.pillar .firmy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green-soft);
  opacity: .55;
}

/* ---- FLOW — 4 kroky (override výchozích 3) ---- */
.firmy-flow .flow-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 860px) {
  .firmy-flow .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .firmy-flow .flow-steps {
    grid-template-columns: 1fr;
  }
  .firmy-flow .flow-steps::before {
    display: none;
  }
}

/* ---- CO DOSTANETE — tři formáty bez rámečků ---- */
.firmy-formats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(36px, 4vw, 52px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1.5px solid var(--line-strong);
}
.firmy-format {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.firmy-format-ic {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--mint);
  flex-shrink: 0;
}
.firmy-format h4 {
  font-size: 20px;
  margin: 0;
  color: var(--green);
}
.firmy-format p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.firmy-format .firmy-format-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* Co je součástí — dvousloupcový přehled */
.firmy-includes {
  margin-top: clamp(36px, 4vw, 52px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1.5px solid var(--line-strong);
}
.firmy-includes h3 {
  font-size: 22px;
  margin-bottom: 20px;
}
.firmy-includes-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 52px;
}

/* ---- DOTACE — písková lišta ---- */
.firmy-grants-section {
  background: var(--sand);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.firmy-grants-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.firmy-grants-head h2 {
  font-size: clamp(24px, 2.6vw, 36px);
  margin-top: 10px;
  line-height: 1.15;
}
.firmy-grants-head .kicker {
  margin-bottom: 8px;
}
.firmy-grants-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 32px;
}
.firmy-grants-cols .eyebrow {
  display: block;
  margin-bottom: 8px;
}
.firmy-grants-cols p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}
.firmy-grants-note {
  margin: 24px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  grid-column: 1 / -1;
}

/* ---- POPTÁVKA — dvousloupcový layout ---- */
.firmy-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.firmy-form-side h2 {
  font-size: clamp(26px, 2.8vw, 40px);
  margin: 14px 0 16px;
  line-height: 1.1;
}
.firmy-form-side p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.55;
}
.firmy-contact-mail {
  margin-top: 20px;
  font-size: 15.5px;
  color: var(--text-2);
}
.firmy-contact-mail a {
  font-weight: 700;
  color: var(--terra);
}
.firmy-form-card {
  padding: clamp(20px, 2.5vw, 34px);
}
.firmy-form-card > form > div {
  margin-bottom: 14px;
}
.firmy-form-card label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.firmy-form-card input[type="text"],
.firmy-form-card input[type="email"],
.firmy-form-card select,
.firmy-form-card textarea {
  width: 100%;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid rgba(31, 42, 35, 0.22);
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.firmy-form-card select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5 L6 6.5 L11 1.5' fill='none' stroke='%231F4536' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.firmy-form-card input[type="text"]:focus,
.firmy-form-card input[type="email"]:focus,
.firmy-form-card select:focus,
.firmy-form-card textarea:focus {
  border-color: var(--mustard);
  box-shadow: 0 0 0 3px rgba(224, 169, 61, 0.18);
}
.firmy-form-card textarea {
  min-height: 96px;
  resize: vertical;
}
.firmy-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.firmy-row2 > div {
  margin-bottom: 0 !important;
}
.firmy-honey { display: none !important; }
.b2b-form-status {
  font-size: 14.5px;
  line-height: 1.5;
  min-height: 1.5em;
}
.b2b-form-status.is-success { color: var(--green-soft); }
.b2b-form-status.is-error { color: var(--terra); }
.firmy-form-card .firmy-gdpr {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
}
.firmy-form-card .firmy-gdpr a {
  color: var(--terra);
  text-decoration: underline;
}

/* ---- RESPONZIVITA ---- */
@media (max-width: 900px) {
  .firmy-grants-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 768px) {
  .firmy-formats {
    grid-template-columns: 1fr;
  }
  .firmy-includes-list {
    grid-template-columns: 1fr;
  }
  .firmy-grants-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .firmy-form-grid {
    grid-template-columns: 1fr;
  }
  .firmy-row2 {
    grid-template-columns: 1fr;
  }
}
