/* =========================================================
   BarruCMS — veřejný web. Barvy a tvary řídí CSS proměnné:
   základní barvy nastavuje téma (themes.css, atribut data-theme na <html>),
   odvozené odstíny se dopočítají níže přes color-mix().
   Výchozí hodnoty = layout „Firemní“, téma „Modrá“ (identita XPIS).
   ========================================================= */
:root {
  /* základní barvy tématu */
  --brand: #1464f7;
  --accent: #10b0e0;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --card: #ffffff;
  --ink: #161c2c;
  --muted: #54616d;
  --line: #e4e8ee;
  --footer-bg: var(--footer-bg);
  --footer-ink: var(--footer-ink);
  --dark-bg: var(--dark-bg);
  --dark-ink: var(--dark-ink);
  --on-brand: #ffffff;

  /* tvary a písmo (mění layout) */
  --maxw: 1120px;
  --radius: 14px;
  --card-radius: 16px;
  --btn-radius: 10px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: var(--sans);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  color-scheme: light;
}

/* odvozené odstíny – počítají se na <body>, aby vycházely z barev tématu nastavených na <html> */
body {
  --brand-dark: color-mix(in srgb, var(--brand) 78%, #000);
  --brand-deep: color-mix(in srgb, var(--brand) 60%, #1a2340);
  --brand-tint: color-mix(in srgb, var(--brand) 9%, var(--bg));
  --turq: var(--accent);
  --turq-dark: color-mix(in srgb, var(--accent) 78%, #000);
  --turq-tint: color-mix(in srgb, var(--accent) 11%, var(--bg));
  --grad: linear-gradient(120deg, var(--brand) 0%, var(--accent) 100%);
  --ink-soft: color-mix(in srgb, var(--ink) 88%, var(--bg));
  --header-bg: color-mix(in srgb, var(--bg) 90%, transparent);
  --footer-muted: color-mix(in srgb, var(--footer-ink) 74%, var(--footer-bg));
  --footer-faint: color-mix(in srgb, var(--footer-ink) 56%, var(--footer-bg));
  --footer-line: color-mix(in srgb, var(--footer-ink) 16%, var(--footer-bg));
  --shadow: 0 24px 60px -34px color-mix(in srgb, var(--brand) 45%, transparent);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; color: var(--ink); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.content-pad { padding: 56px 0 72px; }
.empty { color: var(--muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; border-radius: var(--btn-radius); padding: 12px 22px; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-dark); color: var(--on-brand); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- preview banner ---------- */
.preview-banner { background: #fff7e6; border-bottom: 1px solid #f0d999; color: #8a6d20; text-align: center; padding: 8px 16px; font-size: 13.5px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header::before { content: ""; display: block; height: 3px; background: var(--grad); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.site-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -.01em; }
.site-brand:hover { color: var(--ink); }
.brand-logo { height: 34px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav > a, .nav-group-label { font-size: 14.5px; font-weight: 600; color: var(--ink); white-space: nowrap; cursor: pointer; }
.site-nav > a:hover, .nav-group-label:hover { color: var(--brand); }
.nav-group { position: relative; }
.nav-group-label::after { content: "▾"; font-size: 10px; margin-left: 5px; color: var(--muted); }
.nav-dropdown { position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -20px color-mix(in srgb, var(--ink) 35%, transparent); padding: 8px; display: none; flex-direction: column; gap: 2px; }
.nav-group:hover .nav-dropdown, .nav-group:focus-within .nav-dropdown { display: flex; }
.nav-dropdown a { font-size: 14px; font-weight: 500; color: var(--ink); padding: 9px 12px; border-radius: 8px; }
.nav-dropdown a:hover { background: var(--brand-tint); color: var(--brand-dark); }
.nav-cta { background: var(--brand); color: #fff !important; padding: 10px 18px; border-radius: 9px; }
.nav-cta:hover { background: var(--brand-dark); }
.lang-switch { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; }
.lang-switch a { color: var(--muted); padding: 4px 7px; border-radius: 6px; }
.lang-switch a.active { color: var(--brand); }
.lang-switch a:hover { color: var(--brand); }

/* ---------- mobilní menu (hamburger, čistě CSS) ---------- */
.nav-toggle-input { display: none; }
.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--card); }
.nav-burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
@media (max-width: 900px) {
  .nav-burger { display: flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px color-mix(in srgb, var(--ink) 35%, transparent); padding: 10px 16px 16px; }
  .nav-toggle-input:checked ~ .site-nav { display: flex; }
  .site-nav > a, .nav-group-label { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .nav-group { position: static; }
  .nav-dropdown { display: flex; position: static; min-width: 0; border: none; box-shadow: none; padding: 0 0 6px 18px; }
  .nav-toggle-input:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle-input:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle-input:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
/* animované abstraktní pozadí – plovoucí „orby" v barvách loga + jemný bodový rastr */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--brand) 5%, transparent) 1px, transparent 0);
  background-size: 26px 26px; }
.hero-bg span { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .5; will-change: transform; }
.hero-bg span:nth-child(1) { width: 540px; height: 540px; top: -190px; right: -70px; background: radial-gradient(circle, var(--brand) 0%, transparent 70%); animation: heroOrbA 20s ease-in-out infinite alternate; }
.hero-bg span:nth-child(2) { width: 480px; height: 480px; bottom: -220px; left: -60px; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); animation: heroOrbB 26s ease-in-out infinite alternate; }
.hero-bg span:nth-child(3) { width: 380px; height: 380px; top: 12%; left: 44%; opacity: .28; background: radial-gradient(circle, var(--brand-deep) 0%, transparent 70%); animation: heroOrbC 32s ease-in-out infinite alternate; }
@keyframes heroOrbA { from { transform: translate(0,0) scale(1); } to { transform: translate(-70px,44px) scale(1.15); } }
@keyframes heroOrbB { from { transform: translate(0,0) scale(1); } to { transform: translate(55px,-34px) scale(1.12); } }
@keyframes heroOrbC { from { transform: translate(0,0) scale(1); } to { transform: translate(-46px,-54px) scale(1.22); } }
@media (prefers-reduced-motion: reduce) { .hero-bg span { animation: none; } }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: center; padding: 78px 0 74px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); background: var(--brand-tint); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); padding: 6px 13px; border-radius: 999px; }
.hero-inner h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.04; margin: 20px 0 16px; }
.hero-inner h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 18px; color: var(--muted); max-width: 46ch; margin: 0; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-metrics { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-metrics .n { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hero-metrics .l { font-size: 12.5px; color: var(--muted); }
.hero-visual { display: flex; flex-direction: column; gap: 14px; }
/* animovaný znak loga XPIS (nahrazuje statickou ilustraci) */
.hero-mark { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 380px; margin: 0 auto; display: grid; place-items: center; }
.hero-mark-svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 20px 34px color-mix(in srgb, var(--brand) 26%, transparent)); animation: markFadeIn .55s ease-out both; }
.mark-rotor, .mark-arm { transform-box: view-box; }

/* prolnutí řeší celý znak najednou — jednotlivé hroty se nikdy neprolínají
   navzájem, což dřív v místě překryvu působilo jako probliknutí */
@keyframes markFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* celý znak se pomalu naklání */
.mark-rotor { transform-origin: 303px 420px; animation: markRotor 13s ease-in-out infinite alternate; }
@keyframes markRotor {
  from { transform: rotate(-3.4deg) scale(.983); }
  to   { transform: rotate(3.4deg) scale(1.017); }
}

/* nálet obou hrotů z protilehlých stran + trvalý protipohyb.
   Amplituda je držená nízko: lesk se ořezává společným obrysem v základní
   poloze, takže větší rozkmit by lesk nechal přetéct mimo hrot. */
.mark-arm--1 { transform-origin: 272px 469px; animation: markArmInA 1.05s cubic-bezier(.2,.95,.25,1) both, markArmFloatA 5.5s ease-in-out 1.05s infinite; }
.mark-arm--2 { transform-origin: 335px 372px; animation: markArmInB 1.05s cubic-bezier(.2,.95,.25,1) .12s both, markArmFloatB 5.5s ease-in-out 1.17s infinite; }
@keyframes markArmInA {
  from { transform: translate(-56px, 48px) scale(.9); }
  to   { transform: translate(0, 0) scale(1); }
}
@keyframes markArmInB {
  from { transform: translate(56px, -48px) scale(.9); }
  to   { transform: translate(0, 0) scale(1); }
}
@keyframes markArmFloatA {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(-3px, -7px) rotate(1.1deg); }
}
@keyframes markArmFloatB {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(3px, 7px) rotate(-1.1deg); }
}

/* světelný přejezd — jediná vrstva nad oběma hroty, měkký náběh i doběh */
.mark-shine { transform-box: view-box; animation: markShine 5.2s ease-in-out 1.6s infinite; }
@keyframes markShine {
  0%       { transform: translateX(-200px); opacity: 0; }
  9%       { opacity: 1; }
  21%      { opacity: 1; }
  30%      { transform: translateX(350px); opacity: 0; }
  100%     { transform: translateX(350px); opacity: 0; }
}

/* Animace znaku běží záměrně i při zapnutém "prefers-reduced-motion" —
   je to hlavní vizuální prvek hero sekce (rozhodnutí zadavatele).
   Pokud by se měl systémový požadavek respektovat, stačí odkomentovat:
@media (prefers-reduced-motion: reduce) {
  .hero-mark-svg, .mark-rotor, .mark-arm--1, .mark-arm--2 { animation: none; }
  .mark-shine { animation: none; opacity: 0; }
}
*/

.hero-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-tile { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: color-mix(in srgb, var(--card) 82%, transparent); backdrop-filter: blur(4px); box-shadow: 0 12px 30px -22px color-mix(in srgb, var(--brand) 50%, transparent); }
.hero-tile .ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--turq-tint); color: var(--turq-dark); display: grid; place-items: center; font-size: 17px; }
.hero-tile b { display: block; font-size: 14px; }
.hero-tile span { font-size: 12px; color: var(--muted); }
a.hero-tile--link { color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
a.hero-tile--link:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--ink); }
.hero-tile .ic .line-ic { width: 20px; height: 20px; }
/* čárové ikony bloků (LineIcons) – barva podle značky */
.line-ic { display: block; width: 26px; height: 26px; }
/* znak webu bez nahraného loga (/brand/emblem.svg) – v tmavém režimu se nebarví do bíla */
.brand-logo.brand-emblem { height: 42px; filter: none !important; }
/* barevné logo (nastavení LogoKeepColors) – tmavá hlavička ani tmavý režim ho nepřebarví */
.brand-logo.brand-logo--color { filter: none !important; opacity: 1; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; gap: 32px; } .hero-visual { order: -1; } .hero-mark { max-width: 300px; } }

/* ---------- generic section ---------- */
.section { padding: 74px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-turq { background: var(--turq-tint); border-top: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); }
.section-head { max-width: 60ch; margin-bottom: 40px; }
/* hlavička sekce s ilustrací vpravo */
.section-head-row { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: center; margin-bottom: 24px; }
.section-head-row .section-head { margin-bottom: 16px; }
.section-art { width: 100%; max-width: 300px; height: auto; justify-self: end; }
.section-art-lg { max-width: 380px; }
.section-head-row:has(.section-art-lg) { grid-template-columns: 1fr 380px; }
@media (max-width: 900px) { .section-head-row, .section-head-row:has(.section-art-lg) { grid-template-columns: 1fr; gap: 10px; } .section-art { display: none; } }
.section-head .k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.section-turq .section-head .k { color: var(--turq-dark); }
.section-head h1, .section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 12px 0 10px; }
.section-head p { color: var(--muted); font-size: 16.5px; margin: 0; }
.section-title { font-size: clamp(24px, 3vw, 32px); margin: 0 0 28px; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card { position: relative; overflow: hidden; display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--card-radius); padding: 26px; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.svc-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); opacity: 0; transition: opacity .2s; }
.svc-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.svc-card:hover::before { opacity: 1; }
.svc-card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; font-size: 22px; margin-bottom: 16px; }
.svc-card h3, .svc-card h2 { margin: 0 0 8px; font-size: 18px; }
.svc-grid .svc-card h2 { font-weight: 700; letter-spacing: -.02em; } /* výpis služeb: H2 kvůli hierarchii nadpisů, vzhled jako H3 */
.svc-card p { margin: 0 0 14px; font-size: 14.5px; color: var(--muted); }
.svc-card .more { font-size: 13.5px; font-weight: 700; color: var(--brand); }
.svc-card.turq:hover { border-color: var(--turq); }
.svc-card.turq .ic { background: var(--turq-tint); color: var(--turq-dark); }
.svc-card.turq .more { color: var(--turq-dark); }
/* při počtu karet 3n+1 roztáhne první kartu přes celý řádek (žádná osiřelá karta, zvýraznění hlavní služby) */
.svc-grid .svc-card:first-child:nth-last-child(3n + 1) { grid-column: 1 / -1; background: linear-gradient(120deg, var(--brand-tint), var(--turq-tint)); }
.svc-grid .svc-card:first-child:nth-last-child(3n + 1) p { max-width: 72ch; }
@media (max-width: 780px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- references ---------- */
.ref-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { font-size: 13px; font-weight: 600; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--card); }
.chip:hover { color: var(--brand); border-color: var(--brand); }
.chip.on { background: var(--turq); color: #fff; border-color: var(--turq); }
.chip.on:hover { color: #fff; }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.logo-cell { background: var(--card); border: 1px solid var(--line); border-radius: 12px; min-height: 100px; display: grid; place-items: center; text-align: center; padding: 18px; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.logo-cell:hover { border-color: var(--turq); color: var(--ink); transform: translateY(-2px); box-shadow: 0 18px 34px -26px color-mix(in srgb, var(--accent) 60%, transparent); }
.logo-cell img { max-height: 46px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logo-cell:hover img { filter: none; opacity: 1; }
.logo-cell .name { font-size: 14.5px; font-weight: 700; }
.logo-cell .sector { display: block; font-size: 11.5px; color: var(--muted); margin-top: 4px; font-family: var(--mono); letter-spacing: .03em; }
@media (max-width: 780px) { .logo-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--line); }
.tl { position: relative; padding: 34px 14px 0 0; }
.tl::before { content: ""; position: absolute; top: 7px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--bg); }
.tl .y { font-weight: 800; font-size: 15px; color: var(--brand); font-variant-numeric: tabular-nums; }
.tl p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 780px) { .timeline { grid-template-columns: 1fr 1fr; gap: 22px; } .timeline::before { display: none; } .tl { padding-top: 26px; } }

/* ---------- qualifications ---------- */
.qual-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; }
.qual { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.qual img { width: 54px; height: 54px; object-fit: contain; }
.qual b { display: block; font-size: 15px; }
.qual span { font-size: 12.5px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--grad); color: #fff; border-radius: 22px; padding: 46px; display: grid; grid-template-columns: 1fr 260px; align-items: center; gap: 24px; }
.cta-band::before { content: ""; position: absolute; top: -70px; right: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.1); }
.cta-band::after { content: ""; position: absolute; bottom: -90px; left: 30%; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta-text { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(24px, 3vw, 32px); }
.cta-band p { margin: 6px 0 0; opacity: .9; }
.cta-text .btn-primary { margin-top: 22px; background: #fff; color: var(--brand-dark); }
.cta-text .btn-primary:hover { background: var(--brand-tint); }
.cta-art { position: relative; z-index: 1; width: 100%; max-width: 260px; height: auto; justify-self: end; }
@media (max-width: 780px) { .cta-band { grid-template-columns: 1fr; } .cta-art { display: none; } }

/* ---------- article / blog cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--card-radius); overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; }
.article-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }
.article-card a { color: var(--ink); display: block; }
.card-cover-wrap { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-alt); }
.card-cover { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px; }
.card-body h3 { margin: 0 0 8px; font-size: 18px; }
.card-body p { margin: 0 0 12px; font-size: 14.5px; color: var(--muted); }
.card-body time { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 780px) { .card-grid { grid-template-columns: 1fr; } }

/* ---------- article / page detail ---------- */
.page, .article-detail { max-width: 760px; margin: 0 auto; }
.article-hero-cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); margin-bottom: 28px; }
.article-body, .prose { font-size: 17px; color: var(--ink-soft); }
.article-body h2, .prose h2 { margin-top: 1.8em; }
.article-body p, .prose p { margin: 0 0 1.1em; }
.article-body img { border-radius: 12px; }
.article-meta { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }

/* service detail sections */
.svc-detail-hero { padding: 56px 0 20px; }
.svc-section { padding: 28px 0; border-top: 1px solid var(--line); }
.svc-section h2 { font-size: 22px; margin: 0 0 12px; }
.svc-sidebar-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.svc-sidebar-list a { display: block; padding: 10px 14px; border-radius: 9px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; }
.svc-sidebar-list a:hover, .svc-sidebar-list a.active { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-dark); }

/* two-column inner layout (content + aside) */
.split { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- article detail layouts ---------- */
.article { max-width: 800px; margin: 0 auto; }
.article-head h1 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 10px; }
.article-head time { color: var(--muted); font-size: 13.5px; }
.article-head .perex { font-size: 19px; color: var(--muted); margin: 16px 0 8px; }
.layout-hero { margin: 24px 0; }
.layout-hero img { width: 100%; border-radius: var(--radius); }
.layout-hero figcaption, .layout-side figcaption, .layout-triple figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.layout-side { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; margin: 24px 0; }
.side-images { display: flex; flex-direction: column; gap: 16px; }
.side-images img { width: 100%; border-radius: 12px; }
.layout-triple { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.layout-triple img { width: 100%; border-radius: 12px; }
@media (max-width: 780px) { .layout-side, .layout-triple { grid-template-columns: 1fr; } }
.sub-articles { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 24px; }
.sub-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sub-list a { font-weight: 700; font-size: 16px; }
.sub-perex { display: block; color: var(--muted); font-size: 14px; }
.gallery { margin-top: 40px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.gallery-caption { font-size: 12px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--footer-bg); color: var(--footer-ink); padding: 54px 0 30px; margin-top: 20px; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 30px; }
.footer-brand strong { color: #fff; font-size: 18px; }
.footer-brand p { color: var(--footer-muted); font-size: 13.5px; max-width: 34ch; }
.footer-social { display: flex; gap: 8px; margin-top: 14px; }
.footer-social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--footer-line); color: var(--footer-ink); font-weight: 800; font-size: 14px; }
.footer-social a:hover { border-color: var(--turq); color: #fff; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.footer-nav h4, .footer-contact h4, .site-footer .footer-heading { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--footer-faint); margin: 0 0 14px; }
/* nadpisy v patičce jsou kvůli správné hierarchii nadpisů (WCAG 1.3.1) H2, vypadají jako dřívější H4 */
.site-footer .footer-heading { font-weight: 700; line-height: 1.15; }
.footer-nav a { display: block; color: var(--footer-ink); font-size: 14px; margin-bottom: 9px; }
.footer-nav a:hover { color: #fff; }
.footer-contact a { display: block; color: var(--footer-ink); font-size: 14px; margin-bottom: 9px; }
.footer-contact a:hover { color: #fff; }
.footer-contact p { color: var(--footer-muted); font-size: 13px; margin: 0 0 8px; max-width: 36ch; }
.footer-contact .footer-ids { color: var(--footer-faint); font-size: 12.5px; }
.footer-bottom { border-top: 1px solid var(--footer-line); margin-top: 30px; padding-top: 20px; color: var(--footer-faint); font-size: 12.5px; }
.footer-bottom a { color: var(--footer-ink); }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 780px) { .footer-inner { grid-template-columns: 1fr; gap: 26px; } }
