:root {
  /* Jediná akcentní barva */
  --accent: #d81f1f;
  --accent-rgb: 216, 31, 31;
  --accent-dark: #b31717;

  /* Bootstrap primary = akcent */
  --bs-primary: #d81f1f;
  --bs-primary-rgb: 216, 31, 31;

  /* Monochromatická škála */
  --ink: #15171c;
  --ink-2: #23262e;
  --text: #23262b;
  --muted: #6b7280;
  --line: #e6e8ec;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;

  --bs-body-color: var(--text);
  --bs-body-font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.4); }
body {
  font-family: var(--bs-body-font-family);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--bg);
}

h1, h2, h3, h4 { font-weight: 900; line-height: 1.15; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; }

.rounded-img { border-radius: 14px; box-shadow: 0 14px 44px rgba(0,0,0,.10); width: 100%; object-fit: cover; }

/* ---- Accessibility ---- */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 3000;
  background: var(--accent); color: #fff; padding: 10px 20px;
  font-weight: 700; border-radius: 0 0 8px 8px; transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }
#main-content { scroll-margin-top: 110px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---- Buttons ---- */
.btn { font-weight: 700; border-radius: 8px; padding: .6rem 1.4rem; transition: all .18s; border: 2px solid transparent; }
.btn:active { transform: scale(.97); }
.btn-lg { padding: .7rem 1.8rem; font-size: .98rem; }
.btn-sm { padding: .4rem 1rem; font-size: .82rem; }

/* Primary — dark → red on hover */
.btn-primary {
  --bs-btn-bg: var(--ink);
  --bs-btn-border-color: var(--ink);
  --bs-btn-hover-bg: var(--accent);
  --bs-btn-hover-border-color: var(--accent);
  --bs-btn-active-bg: var(--accent-dark);
  --bs-btn-active-border-color: var(--accent-dark);
  --bs-btn-disabled-bg: var(--ink);
  --bs-btn-disabled-border-color: var(--ink);
}

/* Outline-primary — dark outline → red fill on hover */
.btn-outline-primary {
  --bs-btn-color: var(--ink);
  --bs-btn-border-color: var(--ink);
  border-color: var(--ink);
  --bs-btn-hover-bg: var(--accent);
  --bs-btn-hover-border-color: var(--accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--accent-dark);
  --bs-btn-active-border-color: var(--accent-dark);
}
.btn-outline-primary:hover { border-color: var(--accent); }

/* Light — white → red on hover */
.btn-light {
  --bs-btn-bg: #fff;
  --bs-btn-color: var(--ink);
  --bs-btn-border-color: #fff;
  --bs-btn-hover-bg: var(--accent);
  --bs-btn-hover-border-color: var(--accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--accent-dark);
  --bs-btn-active-border-color: var(--accent-dark);
}

/* Outline-light — white border → red fill on hover */
.btn-outline-light {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255,255,255,.7);
  border-color: rgba(255,255,255,.7);
  --bs-btn-hover-bg: var(--accent);
  --bs-btn-hover-border-color: var(--accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #fff;
  --bs-btn-active-border-color: #fff;
  --bs-btn-active-color: var(--ink);
}
.btn-outline-light:hover { border-color: var(--accent); }

/* Nav button (in header) */
.btn-nav { color: #fff; padding: .5rem 1.3rem; }
.btn-nav:hover { color: #fff; }
@media (max-width: 1199px) { .btn-nav { padding: .4rem 1.1rem; font-size: .85rem; } }
@media (max-width: 991px) { .btn-nav { display: inline-block; margin-top: .6rem; } }

/* ---- Header / Navbar ---- */
.site-header { position: sticky; top: 0; z-index: 2100; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header-top {
  background: var(--ink); color: #fff; font-size: .82rem; padding: .3rem 0;
  overflow: hidden; max-height: 34px;
  transition: max-height .35s cubic-bezier(.4,0,.2,1), padding .35s cubic-bezier(.4,0,.2,1);
  will-change: max-height, padding;
}
.header-top .container { display: flex; gap: 1.5rem; align-items: center; }
.header-top a { color: rgba(255,255,255,.75); text-decoration: none; font-weight: 500; }
.header-top a:hover { color: #fff; }
.header-top span { color: rgba(255,255,255,.75); }
.header-top-sep { display: inline-block; width: 1px; height: 14px; background: rgba(255,255,255,.25); align-self: center; }
.header-top .bi { margin-right: .25rem; font-size: .75rem; }
.site-header.shrink .header-top { max-height: 0; padding-top: 0; padding-bottom: 0; }
.site-header .navbar { padding: .75rem 0; transition: padding .2s; }
.site-header.shrink .navbar { padding: .35rem 0; }
.navbar-brand { display: flex; flex-direction: column; line-height: 1; }
.brand-logo { height: 46px; width: auto; transition: height .2s; margin-top: -5px; }
.site-header.shrink .brand-logo { height: 38px; }
.brand-claim { font-size: .65rem; letter-spacing: .12em; color: var(--muted); margin: 6px 0 0 2px; font-weight: 700; font-family: 'Anta', sans-serif; }
.site-header.shrink .brand-claim { display: none; }
.navbar-nav .nav-link { color: var(--ink); font-weight: 700; font-size: .93rem; padding: .5rem .7rem !important; position: relative; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--accent); }
.navbar-nav .nav-link.active::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .05rem;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.navbar-toggler { border: none; padding: .3rem; }
.navbar-toggler:focus { box-shadow: none; }
@media (max-width: 1199px) {
  .navbar-nav .nav-link { font-size: .85rem; padding: .4rem .5rem !important; }
}
@media (max-width: 991px) {
  .hero-map { display: none; }
  .header-top { font-size: .75rem; padding: .2rem 0; }
  .header-top .container { gap: .6rem; }
  .header-top-sep { height: 12px; }
  .header-top .email-text { display: none; }
  .navbar-collapse { position: absolute; top: 100%; left: 0; right: 0; background: rgba(255,255,255,.97); padding: 1rem; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
  .navbar-nav { padding-top: 1rem; gap: .1rem; }
  .navbar-nav .nav-link.active::after { display: none; }
}

/* ---- Icons (monochromatic) ---- */
.ico-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 14px;
  background: var(--bg-alt); color: var(--ink);
  font-size: 1.7rem; transition: background .2s, color .2s;
}
.ico-wrap .bi { line-height: 1; }

/* ---- Hero banner (velký, tmavý, monochromatický) ---- */
.hero {
  position: relative; background: var(--ink); color: #fff;
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  background-image: linear-gradient(135deg, #15171c 0%, #23262e 100%);
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero h1, .hero h2 { color: #fff; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-weight: 700; font-size: .78rem; color: #fff; opacity: .65; margin-bottom: 1rem; }
.hero-text h1 { margin-bottom: 1.2rem; }
.hero-text h1 .hl { color: #fff; box-shadow: inset 0 -.5em 0 rgba(var(--accent-rgb), .55); }
.hero-sub { font-size: 1.18rem; color: rgba(255,255,255,.8); max-width: 560px; margin-bottom: 1.9rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-trust { list-style: none; display: flex; gap: 2rem; padding: 0; margin: 1.9rem 0 0; flex-wrap: wrap; color: rgba(255,255,255,.7); font-weight: 600; }
.hero-trust li { font-size: .92rem; }
.badge-num { color: #fff; font-weight: 900; font-size: 1.1rem; }

/* ---- Hero map ---- */
.hero-map {
  position: absolute;
  right: -2%;
  top: 70%;
  transform: translateY(-50%);
  width: clamp(320px, 52vw, 680px);
  height: clamp(320px, 52vw, 680px);
  pointer-events: none;
  z-index: 0;
  opacity: .8;
}
.hero-map canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}
.hero-map-img {
  width: 100%;
  height: auto;
  opacity: .95;
}

/* ---- Map section (kontakt) ---- */
.map-section {
  background: var(--ink); padding: 3rem 0; overflow: hidden;
}
.map-wrap {
  position: relative; display: block;
  width: clamp(280px, 65vw, 640px);
  aspect-ratio: 1 / 0.75;
  margin: 0 auto;
}
.map-wrap-img { width: 100%; height: 100%; opacity: .55; display: block; object-fit: contain; }
.map-wrap canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ---- Page hero (podstránky) – velký banner ---- */
.page-hero {
  position: relative; background: var(--ink); color: #fff;
  background-image: linear-gradient(135deg, #15171c 0%, #23262e 100%);
  padding: clamp(3rem, 7vw, 5.5rem) 0; overflow: hidden;
  min-height: 22rem;
  display: flex;
  align-items: center;
}
.page-hero .container { position: relative; z-index: 1; max-width: 900px; }
.page-hero h1 { color: #fff; margin-bottom: .7rem; }
.page-hero h1 .hl { color: #fff; box-shadow: inset 0 -.45em 0 rgba(var(--accent-rgb), .5); }
.page-hero p { font-size: 1.18rem; color: rgba(255,255,255,.82); margin: 0 0 .5rem; max-width: 680px; }

.page-hero-bg-icon {
  position: absolute;
  right: -2%;
  bottom: -11%;
  font-size: 17rem;
  color: rgba(255,255,255,.06);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.page-hero-sm { padding: clamp(1.8rem, 4vw, 2.8rem) 0; min-height: 22rem; display: flex; align-items: center; }

@media (max-width: 767px) {
  .page-hero, .page-hero-sm { min-height: auto; display: block; }
  .page-hero p, .hero-sub { font-size: 1rem; }
}
.page-hero-sm .page-hero-bg-icon { font-size: 11rem; right: -2%; bottom: -11%; }

/* ---- Rozcestník (pod hero) ---- */
.rozcestnik-wrap { background: var(--bg-alt); }
.rozcestnik {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
  margin-top: -3.5rem; position: relative; z-index: 2;
}
.rc-tile {
  display: flex; flex-direction: column; gap: .3rem;
  background: #fff; border: none; border-radius: 16px;
  padding: 1rem 1.5rem 1.5rem; color: var(--ink); overflow: hidden;
  position: relative; box-shadow: 0 4px 16px rgba(0,0,0,.03);
  transition: box-shadow .3s;
}
.rc-tile:hover { box-shadow: 0 10px 32px rgba(0,0,0,.06); }
.rc-tile::after {
  content: ""; position: absolute; right: -3rem; top: -3.5rem;
  width: 7.5rem; height: 7.5rem; border-radius: 50%;
  background: var(--ink);
  transform: scale(.9);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
  z-index: 0;
}
.rc-tile:hover::after { transform: scale(1); }
.ico-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: none; color: rgba(255,255,255,.8); font-size: 1.5rem;
  margin-right: -24px; margin-top: -42px;
  position: relative; top: 28px; z-index: 1;
  align-self: flex-end;
}
.rc-tile:hover .ico-wrap { color: rgba(255,255,255,.95); }
.rc-t { font-weight: 900; font-size: 1.05rem; line-height: 1.2; position: relative; z-index: 1; }
.rc-d { font-size: .87rem; color: var(--muted); line-height: 1.5; flex: 1; position: relative; z-index: 1; }
.rc-more {
  font-weight: 600; font-size: .83rem; color: var(--accent);
  position: relative; z-index: 1;
}
.rc-more::after {
  content: " →"; opacity: 0; transform: translateX(-6px);
  transition: opacity .25s, transform .25s;
}
.rc-tile:hover .rc-more::after { opacity: 1; transform: translateX(2px); }
@media (max-width: 900px) { .rozcestnik { grid-template-columns: 1fr 1fr; margin-top: -2.5rem; } }
@media (max-width: 560px) { .rozcestnik { grid-template-columns: 1fr; margin-top: -2rem; } }

/* ---- Sections ---- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-line { width: 64px; height: 3px; background: var(--accent); border-radius: 2px; margin: 1rem auto 0; }
.section-lead { max-width: 760px; margin: 1.2rem auto 0; color: var(--muted); font-size: 1.05rem; }

/* ---- Stats ---- */
.stats-row { margin-top: 1rem; }
.stat-num { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 900; color: var(--ink); line-height: 1; }
.stat-label { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; margin-top: .4rem; }
.stat-num::after { content: ""; display: block; width: 28px; height: 3px; background: var(--accent); border-radius: 2px; margin: .6rem auto 0; }

/* ---- Process ---- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.8rem; }
.process-step {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 1.6rem 1rem; text-align: center;
  position: relative;
}
.process-num {
  width: 48px; height: 48px; margin: 0 auto .8rem;
  background: var(--ink); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.15rem;
  animation: step-wave 6s ease-in-out infinite;
}
.process-step:nth-child(1) .process-num { animation-delay: 0s; }
.process-step:nth-child(2) .process-num { animation-delay: 1.5s; }
.process-step:nth-child(3) .process-num { animation-delay: 3s; }
.process-step:nth-child(4) .process-num { animation-delay: 4.5s; }
@keyframes step-wave { 0%, 8% { background: var(--accent); } 18%, 100% { background: var(--ink); } }
.process-step h3 { font-size: .95rem; margin-bottom: .35rem; font-weight: 900; }
.process-step p { font-size: .83rem; color: var(--muted); margin: 0; line-height: 1.5; }
.process-compact .process-step { padding: 1rem .6rem; }
.process-compact .process-step h3 { font-size: .8rem; }
@media (max-width: 992px) { .process-compact .process-step { padding: 1rem; } }
.process-step:nth-child(1) { transition-delay: 0s; }
.process-step:nth-child(2) { transition-delay: .15s; }
.process-step:nth-child(3) { transition-delay: .3s; }
.process-step:nth-child(4) { transition-delay: .45s; }

/* Desktop: horizontal stream */
@media (min-width: 993px) {
  .process-step:not(:last-child)::before {
    content: ""; position: absolute; left: calc(100% + .2rem); top: 3.2rem;
    width: 2.4rem; height: .7rem;
    background-image: radial-gradient(circle, var(--accent) 30%, transparent 30%);
    background-size: .7rem .7rem;
    animation: stream-h .8s linear infinite;
    opacity: .6;
  }
  .process-step:nth-child(1)::before { animation-delay: 0s; }
  .process-step:nth-child(2)::before { animation-delay: .27s; }
  .process-step:nth-child(3)::before { animation-delay: .53s; }
  @keyframes stream-h { from { background-position: 0 0; } to { background-position: .7rem 0; } }
}

/* Mobile: vertical stream */
@media (max-width: 992px) {
  .process { grid-template-columns: 1fr; gap: 1.8rem; justify-items: center; }
  .process-step { max-width: 460px; width: 100%; }
  .process-step:not(:last-child)::before {
    content: ""; position: absolute; left: 50%; transform: translateX(-50%);
    top: calc(100% + .1rem);
    width: .7rem; height: 1.5rem;
    background-image: radial-gradient(circle, var(--accent) 30%, transparent 30%);
    background-size: .7rem .7rem;
    animation: stream-v .8s linear infinite;
    opacity: .5;
  }
  @keyframes stream-v { from { background-position: 0 0; } to { background-position: 0 .7rem; } }
}
@media (max-width: 520px) { .process-step { max-width: none; } }

/* ---- Service cards / feature / value ---- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.service-card, .value-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 2rem 1.6rem;
  color: var(--ink); display: flex; flex-direction: column; gap: .6rem; height: 100%;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service-card:hover { box-shadow: 0 18px 44px rgba(0,0,0,.09); border-color: var(--ink); color: var(--ink); }
.service-card:hover .ico-wrap { background: var(--ink); color: #fff; }
.service-card h3, .value-card h3 { margin: 0; font-size: 1.02rem; }
.service-card p, .value-card p { color: var(--muted); font-size: .88rem; margin: 0; flex-grow: 1; line-height: 1.5; }
.service-more { color: var(--accent); font-weight: 700; font-size: .9rem; margin-top: .3rem; }
.value-card { border: 1px solid var(--line); border-radius: 16px; border-top: none; }
.value-card:hover { box-shadow: 0 14px 32px rgba(0,0,0,.07); border-color: var(--ink); }
.value-card .ico-wrap {
  background: none; width: auto; height: auto; border-radius: 0;
  color: var(--ink); font-size: 1.55rem;
  margin: 0; position: static; align-self: auto;
}

/* ---- Kind cards ---- */
.kind-card {
  padding: 2rem 1.8rem 1.8rem; height: 100%;
  text-align: center;
}
.kind-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 1.5rem;
  margin-bottom: 1.2rem;
}
.kind-card h3 { font-size: 1.05rem; font-weight: 900; margin-bottom: .5rem; }
.kind-card p { font-size: .87rem; color: var(--muted); line-height: 1.55; margin: 0; max-width: 320px; margin-left: auto; margin-right: auto; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem 1rem;
  height: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .8rem;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { box-shadow: 0 14px 32px rgba(0,0,0,.08); }
.feature-t { font-weight: 700; font-size: .95rem; color: var(--ink); }

/* ---- Web doktor strip ---- */
.doktor-strip {
  display: flex; align-items: center; gap: 1.1rem; background: #fff;
  border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px;
  padding: 1.1rem 1.4rem; flex-wrap: wrap;
}
.doktor-strip > div { flex: 1; min-width: 220px; }
.doktor-strip .bi { font-size: 1.7rem; color: var(--ink); }

/* ---- Simple price cards ---- */
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem 1rem; height: 100%; text-align: center; transition: transform .2s, box-shadow .2s; }
.price-card:hover { box-shadow: 0 14px 32px rgba(0,0,0,.08); }
.price-title { font-weight: 700; font-size: .95rem; min-height: 2.6em; display: flex; align-items: center; justify-content: center; }
.price-num { font-size: 1.55rem; font-weight: 900; color: var(--ink); margin: .4rem 0; }
.price-note { font-size: .78rem; color: var(--muted); }

/* ---- Pricing tiers ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; justify-content: center; }
.pricing-grid.has-4 { grid-template-columns: repeat(4, 1fr); }
.pricing-tier {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 1.8rem 1.2rem; text-align: center;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.pricing-tier:hover { box-shadow: 0 14px 32px rgba(0,0,0,.08); }
.pricing-tier.featured {
  border-color: var(--ink);
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
}
.pricing-tier-name { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; color: var(--muted); margin-bottom: .4rem; }
.pricing-tier-price { font-size: 1.8rem; font-weight: 900; color: var(--ink); line-height: 1; }
.pricing-tier-price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.pricing-tier-desc { font-size: .82rem; color: var(--muted); margin: .6rem 0 1rem; line-height: 1.4; }
.pricing-tier-list { list-style: none; padding: 0; margin: 0 0 1.2rem; text-align: left; font-size: .82rem; flex: 1; }
.pricing-tier-list li { padding: .35rem 0 .35rem 1.4rem; position: relative; color: var(--text); line-height: 1.4; border-bottom: 1px solid var(--line); }
.pricing-tier-list li:last-child { border-bottom: none; }
.pricing-tier-list li::before {
  content: ""; position: absolute; left: 0; top: .75rem;
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink);
}
.pricing-tier .btn { margin-top: auto; }
@media (max-width: 992px) {
  .pricing-grid.has-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .pricing-grid, .pricing-grid.has-4 { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* ---- Reference ---- */
.ref-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; text-decoration: none; color: inherit; }
.ref-card:hover { box-shadow: 0 16px 38px rgba(0,0,0,.09); }
.ref-card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); }
.ref-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ref-card:hover .ref-card-img img { transform: scale(1.05); }
.ref-card-body { padding: 1.3rem; display: flex; flex-direction: column; flex-grow: 1; }
.ref-card-body h3 { margin-bottom: .5rem; }
.ref-card-body p { font-size: .9rem; color: var(--muted); flex-grow: 1; }
.ref-link { display: inline-block; margin-top: .5rem; font-weight: 700; font-size: .85rem; color: var(--ink); }

/* ---- Reference projects ---- */
.ref-section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; background: var(--bg); }
.ref-section-alt { background: var(--bg-alt); }
.ref-project {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.ref-project-rev .ref-project-img { order: 2; }
.ref-project-img { border-radius: 14px; overflow: hidden; }
.ref-project-img a { display: block; }
.ref-project-img img {
  display: block; width: 100%; border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,.1);
  transition: transform .5s, box-shadow .5s;
}
.ref-project:hover .ref-project-img img {
  transform: scale(1.02); box-shadow: 0 20px 56px rgba(0,0,0,.14);
}
.ref-project-body h2 { font-size: 1.35rem; margin-bottom: .6rem; }
.ref-project-body p { color: var(--muted); line-height: 1.65; margin-bottom: 1.2rem; }

@media (max-width: 767px) {
  .ref-project { grid-template-columns: 1fr; gap: 1.5rem; }
  .ref-project-rev .ref-project-img { order: 0; }
}

/* ---- Reviews ---- */
.review-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem; height: 100%; margin: 0; }
.review-stars { color: var(--accent); font-size: 1rem; letter-spacing: 2px; margin-bottom: .8rem; }
.review-text { font-style: italic; color: var(--ink); }
.review-author { font-weight: 700; color: var(--muted); margin-top: 1rem; font-size: .9rem; }

/* ---- Featured info box ---- */
.featured-box {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.8rem; max-width: 820px; margin-left: auto; margin-right: auto;
}
.featured-box h3 { font-size: 1.05rem; font-weight: 900; margin-bottom: .8rem; }
.featured-box p { font-size: .9rem; color: var(--muted); margin-bottom: .8rem; }
.featured-box .check-list li { font-size: .88rem; }

/* Havarijní výjezd table */
.havarijni-cenik { width: 100%; border-collapse: collapse; font-size: .88rem; }
.havarijni-cenik td { padding: .5rem .2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.havarijni-cenik td:first-child { font-weight: 700; white-space: nowrap; padding-right: .6rem; }
.havarijni-cenik td:nth-child(2) { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.havarijni-cenik tr:last-child td { border-bottom: none; }
@media (max-width: 575px) {
  .havarijni-cenik td:nth-child(2) { display: none; }
}

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-item {
  padding: 1.2rem 1.1rem; border: 1px solid var(--line); border-radius: 12px;
  background: #fff;
}
.feature-item strong { display: block; font-size: .9rem; font-weight: 900; margin-bottom: .25rem; }
.feature-item span { display: block; font-size: .83rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 992px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
/* ---- Reviews ---- */
.review-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem; height: 100%; margin: 0; }
.review-stars { color: var(--accent); font-size: 1rem; letter-spacing: 2px; margin-bottom: .8rem; }
.review-text { font-style: italic; color: var(--ink); }
.review-author { font-weight: 700; color: var(--muted); margin-top: 1rem; font-size: .9rem; }

/* ---- CTA band ---- */
.cta-band { background: var(--ink); background-image: linear-gradient(135deg, #15171c 0%, #23262e 100%); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { opacity: .82; max-width: 620px; margin: .8rem auto 0; }

/* ---- Forms ---- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 0 8px 30px rgba(0,0,0,.05); }
.form-card-narrow { max-width: 720px; margin: 0 auto; }

/* Contact card */
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.contact-logo { height: 42px; width: auto; margin-bottom: 1.2rem; }
.contact-label { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .15rem; }
.contact-value { font-size: 1.05rem; margin-bottom: 0; }
.contact-value a { color: var(--ink); font-weight: 700; text-decoration: none; }
.contact-value a:hover { color: var(--accent); }
.contact-row { display: flex; gap: .9rem; margin-bottom: 1.2rem; }
.contact-row .bi { font-size: 1.1rem; color: var(--muted); flex-shrink: 0; margin-top: .15rem; }
.form-label { font-weight: 700; font-size: .9rem; margin-bottom: .3rem; }
.form-control, .form-select { border-radius: 8px; padding: .6rem .8rem; border-color: var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(var(--accent-rgb), .15); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--accent); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-alert, .form-success { margin: 1rem 0; }
.contact-list { list-style: none; padding: 0; font-size: 1.1rem; font-weight: 700; }
.contact-list li { margin-bottom: .3rem; }

/* ---- Legal ---- */
.legal { max-width: 900px; margin: 0 auto; }
.legal h2 { font-size: 1.25rem; margin: 1.8rem 0 .6rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal-date { color: var(--muted); font-size: .9rem; margin-top: 2rem; text-align: center; }

/* ---- Error ---- */
.error-page { padding: clamp(4rem, 10vw, 7rem) 0; }
.error-page h1 { font-size: clamp(4rem, 14vw, 8rem); color: var(--accent); }

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  padding: 4rem 0 0;
  background-image: linear-gradient(180deg, #1a1d24 0%, var(--ink) 30%);
  position: relative; overflow: hidden;
}
.footer-bg-icon {
  position: absolute; right: -10%; bottom: -15%;
  width: clamp(300px, 50vw, 700px); height: auto;
  opacity: .08; pointer-events: none;
}
.footer-logo { filter: brightness(0) invert(1); opacity: .85; }
.footer-about { font-size: .85rem; color: rgba(255,255,255,.5); line-height: 1.65; margin: .8rem 0 0; max-width: 320px; }
.footer-h {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .14em;
  color: rgba(255,255,255,.45); margin-bottom: 1rem; font-weight: 700;
  display: flex; align-items: center; gap: .5rem;
}
.footer-h::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .4rem; }
.footer-list a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .87rem; transition: color .15s; }
.footer-list a:hover { color: var(--accent); }
.footer-cols { display: flex; gap: 1.5rem; }
.footer-cols .footer-list + .footer-list {
  padding-left: 1.5rem;
  border-left: 2px solid;
  border-image: linear-gradient(180deg, transparent 2%, rgba(var(--accent-rgb), .08) 10%, rgba(var(--accent-rgb), .35) 50%, rgba(var(--accent-rgb), .08) 90%, transparent 98%) 1;
}

.footer-contact { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.2rem; }
.footer-phone, .footer-email {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .88rem;
  display: inline-flex; align-items: center; gap: .55rem;
  transition: color .15s;
  align-self: flex-start;
}
.footer-phone:hover, .footer-email:hover { color: var(--accent); }
.footer-ico {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem;
  color: var(--accent);
  flex-shrink: 0;
}
.footer-address {
  margin-top: .9rem;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  line-height: 1.5;
}
.footer-hours { color: rgba(255,255,255,.3); }
.footer-bottom { margin-top: 3rem; padding: 1.1rem 0; font-size: .8rem; color: rgba(255,255,255,.38); }
.footer-bottom::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent 10%, var(--accent) 50%, transparent 90%);
  margin-bottom: 1.1rem;
  opacity: .35;
}
.footer-cookie-link { background: none; border: none; color: rgba(255,255,255,.48); text-decoration: underline; cursor: pointer; font-size: .8rem; padding: 0; transition: color .15s; }
.footer-cookie-link:hover { color: #fff; }

/* ---- Scroll top ---- */
/* odstraněno */

/* ---- Reveal ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- Cookie banner ---- */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000; background: rgba(21,23,28,.98); color: #fff; padding: 1.3rem 0; box-shadow: 0 -8px 32px rgba(0,0,0,.4); font-size: .9rem; border-top: 1px solid rgba(255,255,255,.08); }
.cookie-banner::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent 5%, var(--accent) 50%, transparent 95%); }
.cookie-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.cookie-heading { font-size: 1.1rem; margin-bottom: .3rem; color: #fff; }
.cookie-text { flex: 1; min-width: 260px; }
.cookie-text p { margin: 0; opacity: .82; }
.cookie-text a { color: #fff; text-decoration: underline; }
.cookie-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.cookie-link { background: none; border: none; color: #bbb; text-decoration: underline; cursor: pointer; font-size: .82rem; }
.cookie-link:hover { color: #fff; }
.cookie-cat { margin: .8rem 0; }
.cookie-toggle { display: flex; align-items: center; gap: .5rem; font-weight: 700; cursor: pointer; }
.cookie-toggle.disabled { opacity: .7; cursor: default; }
.cookie-toggle input { width: 16px; height: 16px; accent-color: var(--accent); }
.cookie-desc { margin: .2rem 0 0 1.5rem; font-size: .78rem; opacity: .62; }
@media (max-width: 576px) { .cookie-inner { flex-direction: column; align-items: flex-start; gap: 1rem; } }

/* ---- FAQ ---- */
.faq { max-width: 820px; margin: 0 auto; }

/* Accordion — site colors, no BS blue */
.accordion {
  --bs-accordion-color: var(--ink);
  --bs-accordion-bg: #fff;
  --bs-accordion-border-color: var(--line);
  --bs-accordion-border-radius: 12px;
  --bs-accordion-btn-color: var(--ink);
  --bs-accordion-btn-bg: #fff;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-active-color: var(--ink);
  --bs-accordion-active-bg: #fff;
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2315171c' d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z'/%3E%3C/svg%3E");
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2315171c' d='M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8z'/%3E%3C/svg%3E");
}
.accordion-item {
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: .6rem; overflow: hidden;
}
.accordion-item:first-of-type { border-radius: 12px; }
.accordion-item:last-of-type { border-radius: 12px; }
.accordion-button {
  font-weight: 700; font-size: .95rem; padding: 1rem 1.2rem;
  background: #fff; color: var(--ink); box-shadow: none;
}
.accordion-button:not(.collapsed) { background: #fff; color: var(--ink); box-shadow: none; }
.accordion-button:focus { outline: 2px solid var(--accent); outline-offset: -2px; box-shadow: none; }
.accordion-button::after { filter: none; }
.accordion-body {
  padding: 0 1.2rem 1.2rem; color: var(--muted); font-size: .9rem; line-height: 1.6;
}

/* ---- Tag list (technologie / klíčová slova) ---- */
.tag-list { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; padding: 0; list-style: none; margin: 0; }
.tag { display: inline-flex; align-items: center; gap: .4rem; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 50px; padding: .5rem 1rem; font-size: .88rem; font-weight: 600; color: var(--ink); }
.tag .bi { color: var(--muted); }

/* ---- Check list ---- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: .35rem 0 .35rem 1.9rem; }
.check-list li::before { content: "\f633"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .4rem; color: var(--accent); font-weight: 400; font-size: .9rem; }
.check-list.two-col { columns: 2; column-gap: 2rem; }
@media (max-width: 575px) { .check-list.two-col { columns: 1; } }

/* ---- Info list (ikona + text) ---- */
.info-row { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.info-row .ico-wrap { flex-shrink: 0; width: 52px; height: 52px; font-size: 1.5rem; }
.info-row h3 { font-size: 1.08rem; margin: 0 0 .3rem; }
.info-row p { margin: 0; color: var(--muted); font-size: .94rem; }

.short-steps { list-style: none; padding: 0; margin: 0; }
.short-steps li {
  counter-increment: step;
  padding-left: 2.8rem; position: relative; margin-bottom: 1.3rem;
}
.short-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .82rem;
}
.short-steps li strong { display: block; font-size: .95rem; font-weight: 900; margin-bottom: .15rem; }
.short-steps li span { display: block; font-size: .85rem; color: var(--muted); line-height: 1.5; }

/* ---- Breadcrumbs (drobečková navigace) ---- */
.breadcrumb-nav {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: .55rem 0;
}

.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  font-size: .85rem;
}

.breadcrumb-list li {
  color: var(--muted);
}

.breadcrumb-list li + li::before {
  content: "/";
  margin-right: .3rem;
  color: var(--line);
}

.breadcrumb-list a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb-list a:hover {
  color: var(--accent);
}

/* ---- Blog card ---- */
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
  transition: border-color .2s, transform .2s, box-shadow .2s;
  text-decoration: none; color: inherit;
}

.blog-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.08); }

.blog-card-img-link { display: block; overflow: hidden; }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform .3s; border-radius: 14px 14px 0 0; }
.blog-card:hover .blog-card-img { transform: scale(1.04); }

.blog-card-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }

.blog-card-date { font-size: .78rem; color: var(--muted); margin-bottom: .35rem; order: -1; }

.blog-card-title { font-size: 1.05rem; font-weight: 900; margin: 0 0 .5rem; line-height: 1.25; color: var(--ink); }

.blog-card-perex { font-size: .88rem; color: var(--muted); margin: 0 0 auto; flex: 1; line-height: 1.55; }

.blog-card-link { font-size: .85rem; font-weight: 600; color: var(--accent); margin-top: .8rem; display: inline-flex; align-items: center; gap: .2rem; }

/* ---- Blog detail ---- */
.article-content { max-width: 780px; margin: 0 auto; padding: 2.5rem 0 3rem; }

.article-header { margin-bottom: 1.8rem; }
.article-date {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); font-weight: 600;
}
.article-title {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900;
  line-height: 1.2; margin: .3rem 0 .6rem;
}
.article-perex {
  font-size: 1.1rem; color: var(--muted); line-height: 1.6;
  margin: .6rem 0 0;
}

.article-img-wrap { margin-bottom: 2rem; }
.article-img {
  max-width: 100%; height: auto; border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.07); display: block;
}

.article-body { line-height: 1.8; font-size: 1.05rem; color: var(--text); }
.article-body h2 { font-size: 1.4rem; font-weight: 900; margin: 2em 0 .5em; letter-spacing: -.01em; }
.article-body h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5em 0 .4em; }
.article-body p { margin: 0 0 1.1em; }
.article-body ul, .article-body ol { margin: .5em 0 1.2em; padding-left: 1.4em; }
.article-body li { margin-bottom: .35em; }
.article-body a { color: var(--accent); font-weight: 600; }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 1.4em 0; box-shadow: 0 8px 32px rgba(0,0,0,.07); }
.article-body blockquote {
  margin: 1.4em 0; padding: .9rem 1.3rem;
  border-left: 3px solid var(--accent); background: var(--bg-alt);
  border-radius: 0 10px 10px 0; font-style: italic; color: var(--muted);
}
.article-body code { background: var(--bg-alt); padding: .15em .4em; border-radius: 3px; font-size: .9em; }

.article-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

.blog-back-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .9rem; color: var(--ink); text-decoration: none; }
.blog-back-link:hover { color: var(--accent); }

/* ---- Blog pagination ---- */
.blog-pagination .page-link {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
  border-radius: 8px;
  margin: 0 .15rem;
}
.blog-pagination .page-link:hover { background: var(--bg-alt); color: var(--text); }
.blog-pagination .active .page-link { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---- Projekt cards ---- */
.projekt-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem;
  height: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.projekt-card:hover { border-color: var(--accent); box-shadow: 0 12px 32px rgba(0,0,0,.07); }
.projekt-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--bg-alt); color: var(--ink);
  font-size: 1.3rem; margin-bottom: .8rem;
}
.projekt-card h3 { font-size: 1.05rem; font-weight: 900; margin: 0 0 .5rem; }
.projekt-card p { font-size: .9rem; color: var(--muted); margin: 0 0 1rem; line-height: 1.55; }
.projekt-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.projekt-tags span {
  display: inline-block;
  padding: .15rem .6rem;
  background: var(--bg-alt);
  border-radius: 5px;
  font-size: .72rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .02em;
}

/* ---- Print ---- */
@media print {
  .site-header, .site-footer, .cookie-banner, .scroll-top, .cta-band, .hero-btns { display: none !important; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}
