/* ============================================================
   GESPOL s.r.o. — design system v2 (světlá verze)
   Barvy vychází z loga (modrá a zelená polokoule glóbu).
   Písma: Bricolage Grotesque (nadpisy) · Figtree (text) · IBM Plex Mono (data)
   ============================================================ */

@import url("../fonts/fonts.css");

:root {
  --paper: #fbfdff;
  --sky: #eef5fc;
  --mint: #edf8f1;
  --card: #ffffff;
  --ink: #1b3a57;
  --muted: #587089;
  --blue: #005098;
  --blue-deep: #003a70;
  --green: #009848;
  --green-deep: #007a3a;
  --line: #dee9f3;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(23, 58, 92, 0.05), 0 14px 36px -18px rgba(23, 58, 92, 0.18);
  --shadow-lift: 0 2px 4px rgba(23, 58, 92, 0.06), 0 28px 56px -22px rgba(23, 58, 92, 0.26);
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.155rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.1rem); }
h2 { font-size: clamp(1.95rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-deep);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

.container {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}

/* ---------- podpisové prvky ---------- */

/* dvoubarevná linka = polokoule loga (modrá nahoře, zelená dole) */
.brand-rule {
  width: 60px;
  height: 6px;
  border: 0;
  margin: 0 0 1.5rem;
  background: linear-gradient(180deg, var(--blue) 0 50%, var(--green) 50% 100%);
  border-radius: 3px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 1rem;
}

.eyebrow svg {
  flex: none;
  color: var(--blue);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 253, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  height: 48px;
  width: auto;
}

.brand:hover {
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav a {
  padding: 0.6rem 0.9rem;
  color: var(--ink);
  font-weight: 500;
  font-size: 1.05rem;
  border-radius: 10px;
}

.nav a:hover {
  text-decoration: none;
  background: var(--sky);
  color: var(--blue);
}

.nav a[aria-current="page"] {
  color: var(--blue);
  box-shadow: inset 0 -2.5px 0 var(--green);
  border-radius: 10px 10px 0 0;
}

.nav .nav-cta {
  margin-left: 0.5rem;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
}

.nav .nav-cta:hover {
  background: var(--blue-deep);
  color: #fff;
}

.nav a.nav-cta[aria-current="page"] {
  color: #fff;
  background: var(--green-deep);
  box-shadow: none;
  border-radius: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  color: var(--ink);
  font-size: 1rem;
  font-family: var(--font-body);
}

/* ---------- hero (úvodní stránka, světlý s videem) ---------- */

.hero {
  position: relative;
  background:
    url("../img/contours-light.svg") right -6rem top -4rem / 900px auto no-repeat,
    linear-gradient(180deg, var(--sky) 0%, var(--paper) 88%);
  overflow: hidden;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero h1 {
  margin-bottom: 0.45em;
}

.hero h1 .accent {
  color: var(--blue);
}

.hero .lead {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  color: var(--muted);
  max-width: 50ch;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.hero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--card);
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  box-shadow: var(--shadow);
}

.hero-facts span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex: none;
}

.hero-facts span:nth-child(even)::before {
  background: var(--green);
}

.hero-facts strong {
  color: var(--blue-deep);
  font-weight: 600;
}

.hero-facts span:nth-child(even) strong {
  color: var(--green-deep);
}

/* video panel v hero */

.hero-media {
  position: relative;
}

.hero-video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--line);
  background: var(--sky);
}

.hero-media .media-note {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(251, 253, 255, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink);
}

/* ---------- hero podstránek (světlý) ---------- */

.page-hero {
  background:
    url("../img/contours-light.svg") right -5rem center / 820px auto no-repeat,
    linear-gradient(180deg, var(--sky) 0%, var(--paper) 100%);
}

.page-hero .container {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.page-hero .lead {
  color: var(--muted);
  max-width: 62ch;
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  margin: 0;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.breadcrumb a {
  color: var(--blue);
}

.breadcrumb span {
  color: var(--ink);
}

/* ---------- tlačítka ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 0.9rem 1.7rem;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(0, 152, 72, 0.55);
}

.btn-primary:hover {
  background: var(--green-deep);
  color: #fff;
}

.btn-secondary {
  background: var(--card);
  color: var(--blue);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--card);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.btn-outline-dark {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}

.btn-outline-dark:hover {
  background: var(--sky);
  color: var(--blue);
}

/* ---------- sekce ---------- */

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-tight {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-sky {
  background: var(--sky);
}

.section-mint {
  background: var(--mint);
}

/* pozůstatek z tmavé verze — dnes světlá varianta */
.section-dark {
  background: var(--sky);
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.section-head p {
  color: var(--muted);
  margin: 0;
  font-size: 1.12rem;
}

/* ---------- karty služeb ---------- */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.7rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
  border-color: #bcd6ec;
}

.card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .card-img img {
  transform: scale(1.045);
}

.card-body {
  padding: 1.6rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  margin-bottom: 0.4rem;
}

.card-body p {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 1rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.3rem;
}

.card-tags span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.34rem 0.85rem;
  background: var(--sky);
  border: 0;
  border-radius: 999px;
  color: var(--blue-deep);
  white-space: nowrap;
}

.card-tags span svg {
  flex: none;
}

.card-tags span:nth-child(even) {
  background: var(--mint);
  color: var(--green-deep);
}

.card-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card-link::after {
  content: "→";
  transition: transform 0.18s ease;
}

.card:hover .card-link::after {
  transform: translateX(5px);
}

/* světle tónovaná karta (MISYS apod.) */
.card-tint {
  background: var(--card);
  border-top: 4px solid var(--green);
}

/* ---------- fakta ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.7rem;
}

.facts-2 {
  grid-template-columns: repeat(2, 1fr);
}

.facts-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-2 {
  grid-template-columns: repeat(2, 1fr);
}

.fact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow);
}

.fact .mono-big {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--blue);
  display: block;
  margin-bottom: 0.4rem;
}

.fact h3 {
  font-size: 1.12rem;
  margin-bottom: 0.35rem;
}

.fact p {
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- obsahové bloky ---------- */

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.split-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  width: 100%;
}

.figure-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.75rem;
  letter-spacing: 0.04em;
}

/* checklist — odrážky jako zaměřovací body */

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.checklist.cols-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem 2.2rem;
}

.checklist li {
  position: relative;
  padding-left: 1.85rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: radial-gradient(circle, var(--green) 0 2px, transparent 2.6px);
}

/* ---------- tabulky (ceníky, údaje) ---------- */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--card);
}

table.pricelist {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

table.pricelist caption {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  padding: 1.3rem 1.5rem 1rem;
}

table.pricelist th,
table.pricelist td {
  padding: 0.85rem 1.5rem;
  text-align: left;
  border-top: 1px solid var(--line);
}

table.pricelist thead th {
  background: var(--blue);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-top: 0;
}

table.pricelist td.num,
table.pricelist th.num {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 1rem;
  white-space: nowrap;
}

table.pricelist tbody tr:nth-child(even) {
  background: var(--sky);
}

table.pricelist tbody tr:hover {
  background: #e2eefa;
}

/* definiční mřížka (právní údaje apod.) */

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem 2rem;
}

.data-grid > div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow);
}

.data-grid dt {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.data-grid dd {
  margin: 0;
  font-weight: 500;
}

/* ---------- kontakty ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.7rem;
}

.person {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.person:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.person.person-green {
  border-left-color: var(--green);
}

.person h3 {
  margin-bottom: 0.2rem;
  font-size: 1.18rem;
}

.person .role {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.9rem;
}

.person a {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 0.18rem 0;
}

.contact-hq {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.hq-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
}

.hq-card .mono-line {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  padding: 0.22rem 0;
}

/* mapa sídla (OpenStreetMap) */

.map-card {
  display: flex;
  flex-direction: column;
}

.map-embed {
  width: 100%;
  flex: 1;
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--sky);
}

/* ---------- CTA pás (barevný přechod modrá → zelená) ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--blue) 0%, #00794a 72%, var(--green) 100%);
  position: relative;
  color: #fff;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/contours-light.svg") right -4rem center / 760px auto no-repeat;
  opacity: 0.18;
}

.cta-band-inner {
  position: relative;
  padding: clamp(2.6rem, 6vw, 4.2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}

.cta-band h2 {
  margin-bottom: 0.35rem;
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  font-size: 1.12rem;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 10px 26px -12px rgba(9, 32, 55, 0.55);
}

.cta-band .btn-primary:hover {
  background: var(--sky);
  color: var(--blue-deep);
}

.cta-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start;
}

.cta-mono {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  color: #fff !important;
}

/* ---------- galerie nad zápatím ---------- */

.gallery {
  overflow: hidden;
  margin-top: clamp(3.5rem, 8vw, 6rem);
}

.gallery-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: gallery-scroll 55s linear infinite;
}

.gallery:hover .gallery-track,
.gallery:focus-within .gallery-track {
  animation-play-state: paused;
}

.gallery img {
  height: 230px;
  width: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@keyframes gallery-scroll {
  to {
    transform: translateX(calc(-50% - 0.625rem));
  }
}

.gallery + .site-footer {
  margin-top: 2.2rem;
}

/* ---------- patička (světlá) ---------- */

.site-footer {
  background: var(--card);
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: clamp(3.5rem, 8vw, 6rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding: clamp(2.8rem, 6vw, 4rem) 0;
}

.footer-grid h4 {
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.9rem;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 46px;
  width: auto;
}

.site-footer a {
  color: var(--blue);
}

.site-footer a:hover {
  color: var(--blue-deep);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-grid .mono-line {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  padding: 0.1rem 0;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.3rem 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- poptávkový formulář ---------- */

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: var(--shadow);
  max-width: 860px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem 1.4rem;
  margin-bottom: 1.4rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 600;
  font-size: 0.98rem;
}

.req {
  color: var(--green-deep);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
  font: inherit;
  color: var(--ink);
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 80, 152, 0.15);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
}

.form-consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--green);
  flex: none;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.6rem 0 0;
  line-height: 1.55;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ---------- kroky spolupráce ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: krok;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: #fff;
  background: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  margin-bottom: 0.9rem;
}

.step:last-child .step-num {
  background: var(--green);
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.step p {
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 0.85rem;
  max-width: 840px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.05rem 1.4rem;
  font-weight: 600;
  font-size: 1.06rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--blue);
  flex: none;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--green-deep);
}

.faq-item .faq-body {
  padding: 0 1.4rem 1.25rem;
  color: var(--muted);
}

.faq-item .faq-body p {
  margin: 0 0 0.6em;
}

.faq-item .faq-body p:last-child {
  margin-bottom: 0;
}

/* ---------- aktuality / článek ---------- */

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
  display: block;
}

.prose {
  max-width: 72ch;
}

.prose h2 {
  margin-top: 2.2rem;
}

.prose .article-img {
  margin: 1.4rem 0 2rem;
}

.prose .article-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

.prose ul {
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

/* telefon v hlavičce */

.nav-phone {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  white-space: nowrap;
}

.nav-phone:hover {
  background: var(--sky);
  color: var(--blue);
  text-decoration: none;
}

/* ---------- animace ---------- */

/* skryté jen pokud běží JS (třída .js na <html>) — bez JS zůstává vše viditelné */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .card,
  .card-img img,
  .person,
  .card-link::after {
    transition: none;
  }
  .gallery {
    overflow-x: auto;
  }
  .gallery-track {
    animation: none;
  }
}

/* ---------- responsivita ---------- */

@media (max-width: 980px) {
  .cards-3,
  .cards-2,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .facts,
  .facts-2,
  .facts-3,
  .footer-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-phone {
    display: none;
  }
  .split,
  .split.reverse,
  .contact-hq,
  .hero .container {
    grid-template-columns: 1fr;
  }
  .split-img {
    order: -1;
  }
  .hero-media {
    order: -1;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 1.08rem;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1.2rem 1.2rem;
    box-shadow: var(--shadow-lift);
    display: none;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 0.85rem 0.7rem;
  }
  .nav a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--green);
    border-radius: 0 10px 10px 0;
  }
  .nav .nav-cta {
    margin-left: 0;
    text-align: center;
    justify-content: center;
    display: inline-flex;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
  .cards-3,
  .cards-2,
  .contact-grid,
  .facts,
  .facts-2,
  .facts-3,
  .checklist.cols-2,
  .data-grid,
  .footer-grid,
  .steps,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .nav .nav-phone {
    display: block;
    text-align: center;
  }
  .hero-facts {
    font-size: 0.78rem;
  }
  /* hero na mobilu na střed */
  .hero .container > div:first-child {
    text-align: center;
  }
  .hero-actions,
  .hero-facts {
    justify-content: center;
  }
  .hero .lead {
    margin-inline: auto;
  }
  .gallery img {
    height: 160px;
  }
}
