/*
 * FIX Servis – child šablona Cassiopeia (Joomla 5)
 * Veškerý vzhled je zde; Cassiopeia zůstává beze změn. Návrh: dev/design/navrh/.
 *
 * Obsah:
 *  1. Písmo, barvy, proměnné
 *  2. Základ, nadpisy, tlačítka
 *  3. Hlavička a menu
 *  4. Sekce (styl modulu "fixservis", servisní stránky)
 *  5. Úvodní stránka (hero, argumenty, karty služeb, rady, citáty, kontakt)
 *  6. Servisní stránka (layout článku "sluzba")
 *  7. Běžné podstránky
 *  8. Formulář poptávky (RSForm Pro)
 *  9. Patička
 * 10. Responzivita
 */

/* ---------- 1. Písmo, barvy, proměnné ---------- */

/* Barlow + Barlow Condensed, lokálně (woff2, latin + latin-ext) */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/barlow-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/barlow-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/barlow-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/barlow-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/barlow-condensed-300-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/barlow-condensed-300-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/barlow-condensed-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/barlow-condensed-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-condensed-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-condensed-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/barlow-condensed-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/barlow-condensed-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --fx-red: #a61f23;
  --fx-blue: #1577bd;
  --fx-green: #8fc641;
  --fx-orange: #f89921;
  --fx-green-dark: #4f7a1a;   /* zelená pro text/čísla na bílé (kontrast AA) */
  --fx-orange-dark: #b35f00;  /* oranžová pro text/čísla na bílé (kontrast AA) */
  --fx-blue-dark: #0f5d94;    /* tlačítka a odkazy (kontrast AA s bílou) */
  --fx-ink: #231f20;          /* text, tmavé sekce */
  --fx-muted: #5d5859;        /* doplňkový text */
  --fx-muted-dark: #cfcac6;   /* doplňkový text na tmavém (patička) */
  --fx-warm: #fef3e4;         /* světle oranžová – sekce Radíme rovně */
  --fx-warm-line: #f6dcb8;
  --fx-line: #e4e1dc;
  --fx-paper: #f5f3ef;        /* světlé sekce */
  --fx-white: #fff;
  --fx-radius: 18px;
  --fx-radius-sm: 10px;
  --fx-max: 75rem;            /* šířka obsahu sekcí (1200 px) */
  --fx-gutter: 24px;
  --fx-pad: max(var(--fx-gutter), calc((100% - var(--fx-max)) / 2));  /* vodorovné odsazení sekce přes celou šířku */
  --fx-section-y: 96px;
  --fx-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --fx-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fx-stripe: linear-gradient(90deg, var(--fx-red) 0 25%, var(--fx-blue) 25% 50%, var(--fx-green) 50% 75%, var(--fx-orange) 75% 100%);

  --cassiopeia-font-family-body: var(--fx-body);
  --cassiopeia-font-family-headings: var(--fx-head);
  --cassiopeia-font-weight-headings: 700;
  --cassiopeia-color-primary: var(--fx-ink);
  --cassiopeia-color-link: var(--fx-blue-dark);
  --cassiopeia-color-hover: var(--fx-ink);
  --link-color: var(--fx-blue-dark);
  --link-color-rgb: 15, 93, 148;
  --link-hover-color: var(--fx-ink);
  --body-color: var(--fx-ink);
  --body-bg: var(--fx-white);
  --body-font-size: 1.125rem;
}

/* ---------- 2. Základ, nadpisy, tlačítka ---------- */

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

html,
body {
  background: var(--fx-white);
}

body {
  overflow-x: clip;
  font: 400 1.125rem/1.6 var(--fx-body);
  color: var(--fx-ink);
  hyphens: manual;
}

.site-grid {
  margin-bottom: 0;
  grid-gap: 0;
}

img {
  max-width: 100%;
  height: auto;
}

/* Typografická škála: velikost klesá s úrovní nadpisu (h1 > h2 > h3) */
h1, h2, h3, h4 {
  font-family: var(--fx-head);
  line-height: 1.05;
  color: inherit;
  text-wrap: balance;
  letter-spacing: .005em;
}

h1 { margin: 0 0 .5em; font-size: clamp(2.5rem, 5.2vw, 4.4rem); font-weight: 700; text-transform: uppercase; }
h2 { margin: 0 0 .5em; font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 700; text-transform: uppercase; }
h3 { margin: 0 0 .4em; font-size: 1.55rem; font-weight: 600; }
h4 { font-size: 1.3rem; font-weight: 600; }

.fx-light { font-weight: 300; }
.fx-block { display: block; }

p, li, dd { text-wrap: pretty; }

a { color: var(--fx-blue-dark); }
a:hover { color: var(--fx-ink); }

/* Přístupnost: viditelný fokus na světlém i tmavém pozadí */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid var(--fx-blue);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 6px var(--fx-white);
}

.container-footer a:focus-visible {
  outline-color: var(--fx-orange);
  box-shadow: none;
}

.fx-eyebrow {
  display: flex;
  gap: .6rem;
  align-items: center;
  margin: 0 0 1rem;
  font: 600 .95rem/1.2 var(--fx-body);
  color: var(--fx-muted);
  text-transform: uppercase;
  letter-spacing: .14em;
}

.fx-eyebrow::before {
  flex: 0 0 40px;
  height: 6px;
  content: "";
  background: var(--fx-stripe);
  border-radius: 2px;
}

.fx-lead {
  max-width: 38em;
  font-size: 1.3rem;
  color: var(--fx-muted);
}

.fx-note {
  max-width: 34em;
  margin: 0;
  color: var(--fx-muted);
}

/* Tlačítka */
.btn {
  --btn-font-weight: 600;
  display: inline-flex;
  gap: .6rem;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.5rem;
  font: 600 1.1rem/1 var(--fx-body);
  border: 2px solid transparent;
  border-radius: 12px;
  transition: background-color .15s, color .15s, border-color .15s;
}

.btn-primary,
.btn-primary:visited {
  color: var(--fx-white);
  background: var(--fx-blue-dark);
  border-color: var(--fx-blue-dark);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--fx-white);
  background: var(--fx-ink);
  border-color: var(--fx-ink);
}

.btn-outline-dark {
  color: var(--fx-ink);
  background: transparent;
  border-color: var(--fx-ink);
}

.btn-outline-dark:hover {
  color: var(--fx-white);
  background: var(--fx-ink);
}

.btn svg {
  width: 1.2em;
  height: 1.2em;
  fill: currentColor;
}

.fx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ---------- 3. Hlavička a menu ---------- */

.container-header {
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  min-height: 102px;
  padding: 12px var(--fx-pad) 18px;
  color: var(--fx-ink);
  /* čtyřbarevný pruh pod hlavičkou */
  background: var(--fx-white) var(--fx-stripe) left bottom / 100% 6px no-repeat;
  box-shadow: none;
}

.container-header > .grid-child {
  width: auto;
  max-width: none;
  padding: 0;
  margin: 0;
}

.container-header .navbar-brand {
  padding: 0;
  margin: 0;
}

.container-header .brand-logo img {
  display: block;
  width: auto;
  height: 72px;
  aspect-ratio: 286.46 / 182.47; /* rozměr loga SVG – místo je vyhrazené ještě před načtením */
}

.container-header .container-nav {
  display: flex;
  flex: 1 1 auto;
  gap: 2rem;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
}

/* Cassiopeia na mobilu odsazuje navigaci shora (.container-nav nav) – ikona menu by nebyla na středu */
.container-header nav,
.container-header .container-nav nav,
.container-header .navbar {
  padding: 0;
  margin-top: 0;
  position: inherit;
}

.container-header .mod-menu {
  gap: 1.6rem;
  font: 600 1.05rem/1 var(--fx-body);
  color: var(--fx-ink);
}

.container-header .metismenu.mod-menu .metismenu-item {
  padding: 0;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span {
  padding: .5rem 0;
  color: var(--fx-ink);
  text-decoration: none;
}

.container-header .metismenu > li > a::after,
.container-header .metismenu > li > button::before,
.container-header .mod-menu > li::after {
  bottom: -.15rem;
  height: 3px;
  background: transparent;
}

.container-header .metismenu > li > a:hover::after,
.container-header .metismenu > li.active > a::after,
.container-header .mod-menu > li.active::after,
.container-header .mod-menu > li:hover::after {
  background: var(--fx-blue);
  opacity: 1;
}

.container-header .container-search {
  margin: 0;
}

/* Tlačítko s telefonem v hlavičce (modul v pozici search) */
.fx-phone-btn {
  white-space: nowrap;
}

.container-header .navbar-toggler {
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--fx-white);
  background: var(--fx-ink);
  border: 0;
  border-radius: 10px;
}

.container-header .navbar-toggler .icon-menu {
  font-size: 1.35rem;
}

@media (max-width: 991.98px) {
  .container-header {
    min-height: 0;
  }

  .container-header .container-nav {
    flex: 0 0 auto;
    gap: 1rem;
  }

  .container-header .container-search {
    display: none;
  }

  /* Rozbalené menu jako panel pod hlavičkou přes celou šířku */
  .container-header .navbar-collapse {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 20;
    width: 100%;
    padding: .5rem var(--fx-gutter) 1.25rem;
    background: var(--fx-white);
    border-top: 1px solid var(--fx-line);
    box-shadow: 0 1rem 1.5rem rgba(0, 0, 0, .12);
  }

  .container-header .mod-menu {
    gap: 0;
    font-size: 1.2rem;
  }

  .container-header .mod-menu > li > a {
    display: block;
    padding: .8rem 0;
    border-bottom: 1px solid var(--fx-line);
  }

  .container-header .metismenu > li > a::after {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .container-header {
    padding: 10px var(--fx-gutter) 16px;
  }

  .container-header .brand-logo img {
    height: 52px;
  }
}

/* ---------- 4. Sekce (styl modulu "fixservis", servisní stránky) ---------- */

/* Pozice kolem obsahu roztažené přes celou šířku okna */
.site-grid > .container-top-a,
.site-grid > .container-top-b,
.site-grid > .container-bottom-a,
.site-grid > .container-bottom-b {
  flex-direction: column;
  grid-column: full-start / full-end;
  max-width: none;
}

.site-grid > .container-top-a > *,
.site-grid > .container-top-b > *,
.site-grid > .container-bottom-a > *,
.site-grid > .container-bottom-b > * {
  flex: 0 0 auto;
  margin: 0;
}

.container-banner {
  margin: 0;
}

/* Sekce přes celou šířku: obsah v šířce webu */
.fx-section,
.fx-band {
  padding: var(--fx-section-y) var(--fx-pad);
  background: var(--fx-white);
}

.fx-section.fx-paper,
.fx-band--paper { background: var(--fx-paper); }

/* Radíme rovně: světle oranžová (barva z loga), aby se nepletla s tmavou patičkou */
.fx-section.fx-warm,
.fx-band--warm {
  background: var(--fx-warm);
  border-top: 6px solid var(--fx-orange);
}

.fx-section__head {
  display: flex;
  gap: 2rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.fx-section__head h2,
.fx-section__head .fx-section__title {
  margin: 0;
}

/* Úvodní stránka skládaná jen z modulů – prázdná komponenta se skryje */
.fx-home .container-component {
  display: none;
}

/* Servisní stránky: obsah přes celou šířku, sekce si odsazení řeší samy */
/* (Cassiopeia: body:not(.has-sidebar-…) .site-grid .container-component – stejná specifičnost, vyhrává pozdější) */
body.fx-full .site-grid > .container-component {
  grid-column: full-start / full-end;
  max-width: none;
  padding: 0;
}

body.fx-full .container-component > *,
body.fx-full .container-component main > * {
  margin-top: 0;
}

/* ---------- 5. Úvodní stránka ---------- */

/* Hero (vlastní modul v pozici banner) */
.fx-hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
  padding: 72px var(--fx-pad) 80px;
  overflow: hidden;
  background: var(--fx-paper);
}

.fx-hero h1 .fx-light {
  display: block;
}

.fx-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.2rem;
  padding: 0;
  margin: 2.6rem 0 0;
  list-style: none;
}

.fx-facts strong {
  display: block;
  font: 700 2.4rem/1 var(--fx-head);
}

.fx-facts span {
  font-size: .95rem;
  color: var(--fx-muted);
}

/* Dlaždice služeb = ikony z loga */
.fx-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.fx-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 1;
  padding: 22px;
  overflow: hidden;
  text-decoration: none;
  border-radius: 26%;
  transition: transform .2s;
}

.fx-tile:hover {
  transform: translateY(-4px);
}

.fx-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fx-tile b {
  position: relative;
  padding: .45rem .7rem;
  font: 700 1.55rem/1 var(--fx-head);
  color: var(--fx-ink);
  text-transform: uppercase;
  background: var(--fx-white);
  border-radius: 8px;
}

.fx-tile small {
  display: block;
  margin-top: .2rem;
  font: 500 .85rem/1.2 var(--fx-body);
  color: var(--fx-muted);
  text-transform: none;
}

/* Argumenty */
.fx-args,
.fx-tiles-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.fx-tiles-list {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.fx-arg {
  padding: 28px 24px 26px;
  background: var(--fx-white);
  border: 1px solid var(--fx-line);
  border-top: 8px solid var(--c, var(--fx-blue));
  border-radius: var(--fx-radius);
}

.fx-tiles-list .fx-arg:nth-child(4n+1) { --c: var(--fx-orange); }
.fx-tiles-list .fx-arg:nth-child(4n+2) { --c: var(--fx-blue); }
.fx-tiles-list .fx-arg:nth-child(4n+3) { --c: var(--fx-green); }
.fx-tiles-list .fx-arg:nth-child(4n+4) { --c: var(--fx-red); }

.fx-arg h3 { font-size: 1.55rem; }
.fx-arg p { margin: 0; font-size: 1.05rem; color: var(--fx-muted); }

/* Karty služeb – rozměr fotky určuje rámeček, ne fotka */
.fx-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.fx-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  background: var(--fx-white);
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius);
  transition: box-shadow .2s, transform .2s;
}

.fx-card:hover {
  color: inherit;
  box-shadow: 0 18px 40px rgba(35, 31, 32, .12);
  transform: translateY(-3px);
}

.fx-card__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--fx-paper);
  border-radius: var(--fx-radius) var(--fx-radius) 0 0;
}

.fx-card__photo img:not(.fx-card__badge) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--fx-radius) var(--fx-radius) 0 0;
}

.fx-card__badge {
  position: absolute;
  bottom: -28px;
  left: 18px;
  z-index: 1;
  width: 64px;
  height: 64px;
}

.fx-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 44px 26px 28px;
}

.fx-card__where {
  margin-bottom: .6rem;
  font: 600 .85rem/1.2 var(--fx-body);
  color: var(--fx-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.fx-card__title {
  font-size: 1.75rem;
  font-weight: 700;
}

.fx-card p {
  margin: 0 0 1.4rem;
  color: var(--fx-muted);
}

.fx-card__more {
  margin-top: auto;
  font-weight: 600;
  color: var(--fx-blue-dark);
}

.fx-card__more::after {
  content: " →";
}

/* Radíme rovně – úvod */
.fx-straight {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.fx-straight blockquote {
  margin: 0;
  font: 300 clamp(2rem, 3.6vw, 3.2rem)/1.1 var(--fx-head);
  text-transform: uppercase;
}

.fx-straight blockquote b {
  font-weight: 700;
  color: var(--fx-orange-dark);
}

.fx-tips {
  display: grid;
  gap: 14px;
}

.fx-tip {
  padding: 18px 22px;
  background: var(--fx-white);
  border: 1px solid var(--fx-warm-line);
  border-radius: var(--fx-radius-sm);
}

.fx-tip h3 {
  margin: 0 0 .3rem;
  font-size: 1.3rem;
}

.fx-tip p {
  margin: 0;
  font-size: 1rem;
  color: var(--fx-muted);
}

/* Citáty */
.fx-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fx-quote {
  position: relative;
  padding: 30px 28px;
  margin: 0;
  background: var(--fx-white);
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius);
}

.fx-quote::before {
  position: absolute;
  top: -8px;
  right: 22px;
  font: 700 6rem/1 var(--fx-head);
  color: var(--c);
  content: "“";
}

.fx-quote p {
  margin: 0 0 1.2rem;
  font-size: 1.05rem;
}

.fx-quote footer {
  font-weight: 600;
}

.fx-quote footer span {
  display: block;
  font-size: .95rem;
  font-weight: 400;
  color: var(--fx-muted);
}

.fx-clients {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  padding: 32px 0 0;
  margin: 48px 0 0;
  font: 600 1.05rem/1.2 var(--fx-head);
  color: var(--fx-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  list-style: none;
  border-top: 1px solid var(--fx-line);
}

.fx-more {
  margin: 40px 0 0;
}

/* Kontakt + formulář */
.fx-contact {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 64px;
}

.fx-big-phone {
  display: block;
  margin: 1.6rem 0 .4rem;
  font: 700 clamp(2.2rem, 4vw, 3.4rem)/1 var(--fx-head);
  color: var(--fx-ink);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.fx-big-phone a {
  color: inherit;
  text-decoration: none;
}

.fx-big-phone a:hover {
  color: var(--fx-blue-dark);
}

/* Kontakt: údaje o firmě a mapa (mapy.com) přes celou šířku pravého sloupce, na mobilu pod kontakty */
.fx-contact--map {
  align-items: stretch;
}

.fx-company {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .5rem 1.5rem;
  padding-top: 1.5rem;
  margin: 1.5rem 0 0;
  font-size: 1rem;
  border-top: 1px solid var(--fx-line);
}

.fx-company dt {
  font-weight: 600;
}

.fx-company dd {
  margin: 0;
  color: var(--fx-muted);
}

.fx-map {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--fx-paper);
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius);
}

.fx-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 991.98px) {
  .fx-map {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

/* Klienti navazují na citáty v téže bílé ploše */
.fx-section.fx-clients-section {
  padding-top: 0;
}

/* Prázdný box formuláře (modul v pozici poptavka zatím chybí) se nezobrazí */
.fx-form:not(:has(*)) {
  display: none;
}

.fx-contact address {
  margin-top: 1.6rem;
  font-style: normal;
  color: var(--fx-muted);
}

.fx-form {
  padding: 36px;
  background: var(--fx-white);
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius);
}

/* ---------- 6. Servisní stránka (layout článku "sluzba") ---------- */

.fx-page-hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 72px;
}

.fx-page-hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
}

.fx-page-hero__photo {
  position: relative;
}

.fx-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--fx-radius);
}

.fx-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fx-page-hero__badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 96px;
  height: 96px;
}

.fx-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 2rem;
}

.fx-subnav a {
  padding: .5rem .9rem;
  font-size: .98rem;
  font-weight: 600;
  color: var(--fx-ink);
  text-decoration: none;
  background: var(--fx-white);
  border: 1px solid var(--fx-line);
  border-radius: 999px;
}

.fx-subnav a:hover {
  border-color: var(--fx-ink);
}

.fx-intro {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
}

.fx-intro__text p {
  font-size: 1.25rem;
}

.fx-checklist {
  display: grid;
  gap: 14px;
  padding: 28px;
  margin: 0;
  list-style: none;
  background: var(--fx-paper);
  border-radius: var(--fx-radius);
}

.fx-checklist li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  font-weight: 500;
}

.fx-checklist li::before {
  width: 28px;
  height: 28px;
  content: "";
  background: var(--c, var(--fx-blue)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%23fff'/%3E%3C/svg%3E") center / 18px no-repeat;
  border-radius: 8px;
}

/* Jak to probíhá */
.fx-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: krok;
}

.fx-steps::before {
  position: absolute;
  top: 30px;
  right: 32px;
  left: 32px;
  height: 4px;
  content: "";
  background: var(--fx-line);
  border-radius: 2px;
}

.fx-steps li {
  position: relative;
  counter-increment: krok;
}

.fx-steps li::before {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.1rem;
  font: 700 2rem/1 var(--fx-head);
  color: var(--fx-white);
  content: counter(krok);
  background: var(--c, var(--fx-blue));
  border-radius: 18px;
}

.fx-steps h3 {
  margin-bottom: .3rem;
  font-size: 1.4rem;
}

.fx-steps p {
  margin: 0;
  font-size: 1rem;
  color: var(--fx-muted);
}

/* Radíme rovně – rozbalovací rady */
.fx-advice {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.fx-advice__icon {
  width: 88px;
  height: 88px;
  margin-bottom: 1.6rem;
}

/* Akordeon Regular Labs Tabs & Accordions (pole "rady", {accordion}) – vzhled jako karty z návrhu */
.fx-accordion [data-rlta-element="container"] {
  display: grid;
  gap: 14px;
  margin: 0;
}

.fx-accordion [data-rlta-element="button"] {
  position: relative;
  padding: 22px 64px 22px 26px;
  margin: 0;
  color: var(--fx-ink);
  cursor: pointer;
  background: var(--fx-white);
  border: 1px solid var(--fx-warm-line);
  border-radius: var(--fx-radius-sm);
  box-shadow: none;
}

.fx-accordion [data-rlta-element="button"][data-rlta-state="open"] {
  border-bottom: 0;
  border-radius: var(--fx-radius-sm) var(--fx-radius-sm) 0 0;
}

.fx-accordion [data-rlta-element="heading"] {
  margin: 0;
  font: 600 1.5rem/1.2 var(--fx-head);
  color: inherit;
  text-transform: none;
}

.fx-accordion [data-rlta-element="button"]::after {
  position: absolute;
  top: 50%;
  right: 26px;
  font: 300 2rem/1 var(--fx-body);
  color: var(--fx-orange-dark);
  content: "+";
  transform: translateY(-50%);
}

.fx-accordion [data-rlta-element="button"][data-rlta-state="open"]::after {
  content: "–";
}

.fx-accordion [data-rlta-element="button"]:focus-visible {
  outline: 3px solid var(--fx-blue);
  outline-offset: 3px;
}

.fx-accordion [data-rlta-element="panel"] {
  margin: -14px 0 0;
  background: var(--fx-white);
  border: 1px solid var(--fx-warm-line);
  border-top: 0;
  border-radius: 0 0 var(--fx-radius-sm) var(--fx-radius-sm);
}

.fx-accordion [data-rlta-element="panel-content"] {
  padding: 0 26px 24px;
}

.fx-accordion [data-rlta-element="panel-content"] p {
  margin: 0;
  color: var(--fx-muted);
}

.fx-accordion [data-rlta-element="panel-content"] p + p {
  margin-top: .8em;
}

/* Galerie realizací: náhledy s odkazem JCE MediaBox (class="jcepopup") vložené editorem, první větší */
.fx-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.fx-gallery > p {
  display: contents;
}

.fx-gallery a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: zoom-in;
  border-radius: var(--fx-radius-sm);
}

.fx-gallery a:first-of-type {
  grid-row: span 2;
  grid-column: span 2;
}

.fx-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--fx-radius-sm);
  transition: transform .3s;
}

.fx-gallery a:hover img {
  transform: scale(1.04);
}

.fx-gallery br {
  display: none;
}

/* Pro investory */
.fx-band--split {
  padding-top: 0;
  padding-bottom: 0;
  background: linear-gradient(var(--fx-white) 50%, var(--fx-paper) 50%);
}

.fx-investor {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 44px 48px;
  background: var(--fx-white);
  border: 1px solid var(--fx-line);
  border-left: 10px solid var(--fx-red);
  border-radius: var(--fx-radius);
}

.fx-investor h2 {
  margin: 0 0 .4rem;
  font-size: 2.2rem;
}

.fx-investor p {
  margin: 0;
  color: var(--fx-muted);
}

.fx-investor img {
  width: 72px;
  height: 72px;
}

/* ---------- 7. Běžné podstránky (O nás, Reference, Kontakt) ---------- */

.site-grid > .container-component {
  padding-top: 64px;
  padding-bottom: 64px;
}

.com-content-article .page-header h1,
.item-page .page-header h1 {
  text-align: left;
}

.com-content-article__body {
  max-width: 48rem;
  font-size: 1.15rem;
}

.com-content-article__body h2 { margin: 2.5rem 0 1rem; font-size: 2rem; }
.com-content-article__body h3 { margin: 2rem 0 .75rem; font-size: 1.5rem; }

.com-content-article__body .fx-lead,
.com-content-article__body > p:first-child {
  font-size: 1.3rem;
  color: var(--fx-muted);
}

/* Layout článku "stranka": hero + obsah v sekcích přes celou šířku */
.fx-page-hero__lead p {
  max-width: 38em;
  font-size: 1.3rem;
  color: var(--fx-muted);
}

.fx-page-hero__icons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: min(100%, 340px);
  justify-self: end;
}

.fx-page-hero__icons img {
  width: 100%;
  height: auto;
}

@media (max-width: 991.98px) {
  /* Na užším displeji jen dekorace navíc – skrýt */
  .fx-page-hero__icons {
    display: none;
  }
}

.fx-page-body + .fx-page-body {
  padding-top: 0;
}

/* Čitelná šířka textu (sloupce, citáty a formulář mají šířku celou) */
.fx-page-body > :is(p, h2, h3, ul, ol) {
  max-width: 48rem;
}

.fx-page-body > p {
  font-size: 1.15rem;
}

.fx-page-body h2 {
  margin: 2.5rem 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.fx-page-body > :first-child {
  margin-top: 0;
}

.fx-figure {
  margin: 2.5rem 0;
}

.fx-figure img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--fx-radius);
}

/* Prvek "O nás": pruh pod nadpisem stránky */
.com-content-article .page-header h1::after {
  display: block;
  width: 96px;
  height: 8px;
  margin-top: 1.2rem;
  content: "";
  background: var(--fx-stripe);
  border-radius: 2px;
}

/* ---------- 8. Formulář poptávky (RSForm Pro) ---------- */

.fx-form label,
.fx-form .formControlLabel {
  font-size: 1rem;
  font-weight: 600;
}

.fx-form input[type="text"],
.fx-form input[type="tel"],
.fx-form input[type="email"],
.fx-form select,
.fx-form textarea,
.fx-form .form-control,
.fx-form .form-select {
  width: 100%;
  padding: .75rem .9rem;
  font: inherit;
  background: var(--fx-white);
  border: 1.5px solid #8f8a85;
  border-radius: 10px;
}

.fx-form textarea {
  min-height: 120px;
}

.fx-form :is(input, select, textarea):focus {
  border-color: var(--fx-blue);
  outline: 3px solid rgba(21, 119, 189, .35);
  box-shadow: none;
}

/* Rozvržení formuláře (migrace 005): mřížka 2 sloupce, na mobilu 1 */
.fx-rsform__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  padding: 0;
  margin: 0;
  border: 0;
}

.fx-rsform__grid .rsform-block {
  display: grid;
  gap: .35rem;
  align-content: start;
}

.fx-rsform__grid .fx-span {
  grid-column: 1 / -1;
}

.fx-form .formRequired {
  font-weight: 600;
  color: var(--fx-red);
}

/* Past na roboty – mimo obrazovku (ne display:none, aby ji roboti vyplnili) */
.fx-rsform__grid .fx-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fx-rsform__submit {
  display: flex !important;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.fx-rsform__note {
  margin: 0;
  font-size: .95rem;
  color: var(--fx-muted);
}

/* Chyby a poděkování */
.fx-form .formValidation .formError,
.fx-form .formRed {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--fx-red);
}

.fx-form .formError:empty,
.fx-form .formNoError {
  display: none;
}

/* Souhlas se zpracováním osobních údajů (migrace 006) */
.fx-consent .rsfp-fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}

.fx-consent .form-check {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: 0;
  margin: 0;
}

.fx-consent .form-check-input {
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  margin: .1rem 0 0;
  accent-color: var(--fx-blue-dark);
  border: 1.5px solid #8f8a85;
}

.fx-consent .form-check-label {
  font-size: 1rem;
  font-weight: 500;
}

.fx-consent__info {
  margin: .3rem 0 0 2.1rem;
  font-size: .9rem;
  color: var(--fx-muted);
}

/* Odkaz na ochranu osobních údajů v patičce */
.fx-footer__bottom {
  flex-wrap: wrap;
  gap: .5rem 2rem;
}

.fx-footer__legal a {
  text-decoration: underline;
}

.fx-form .rsform-error :is(input, select, textarea),
.fx-form :is(input, select, textarea)[aria-invalid="true"] {
  border-color: var(--fx-red);
}

.fx-thanks__title {
  margin: 0 0 .5rem;
  font: 700 1.8rem/1.1 var(--fx-head);
  text-transform: uppercase;
}

@media (max-width: 767.98px) {
  .fx-rsform__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 9. Patička ---------- */

.container-footer {
  padding: 0 0 32px;
  font-size: 1rem;
  color: var(--fx-muted-dark);
  background: var(--fx-ink) var(--fx-stripe) left top / 100% 6px no-repeat;
}

.container-footer > .grid-child {
  display: block;
  max-width: none;
  padding: 72px var(--fx-pad) 0;
}

.fx-footer {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}

.fx-footer h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: var(--fx-white);
  letter-spacing: .06em;
}

.container-footer a {
  color: var(--fx-white);
  text-decoration: none;
}

.container-footer a:hover {
  color: var(--fx-white);
  text-decoration: underline;
}

.fx-footer ul {
  display: grid;
  gap: .5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.fx-footer address {
  margin: 0;
  font-style: normal;
}

.fx-footer__logo {
  width: auto;
  height: 72px;
  margin-bottom: 1rem;
}

.fx-footer__tagline {
  font: 500 1rem/1.3 var(--fx-head);
  text-transform: uppercase;
  letter-spacing: .14em;
}

.fx-footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  margin-top: 56px;
  font-size: .9rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

/* Tlačítko nahoru: bílé na tmavém */
.back-to-top-link {
  color: var(--fx-white);
  background: var(--fx-blue-dark);
  border: 0;
  border-radius: 12px;
}

.back-to-top-link:hover,
.back-to-top-link:focus {
  color: var(--fx-white);
  background: var(--fx-ink);
}

/* Mobilní lišta Zavolat / Poptávka */
.fx-callbar {
  display: none;
}

/* ---------- 10. Responzivita ---------- */

@media (max-width: 991.98px) {
  :root {
    --fx-section-y: 72px;
  }

  .fx-hero,
  .fx-page-hero,
  .fx-straight,
  .fx-contact,
  .fx-intro,
  .fx-advice {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .fx-args,
  .fx-cards,
  .fx-quotes {
    grid-template-columns: 1fr 1fr;
  }

  .fx-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fx-steps::before {
    top: 32px;
    right: auto;
    bottom: 32px;
    left: 30px;
    width: 4px;
    height: auto;
  }

  .fx-steps li {
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 20px;
  }

  .fx-steps li::before {
    grid-row: span 2;
    margin: 0;
  }

  .fx-footer {
    grid-template-columns: 1fr 1fr;
  }

  .fx-investor {
    grid-template-columns: 1fr;
    padding: 32px;
  }
}

@media (max-width: 767.98px) {
  :root {
    --fx-gutter: 16px;
    --fx-section-y: 64px;
  }

  body {
    padding-bottom: 72px;
    font-size: 1.0625rem;
  }

  .fx-hero {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .fx-section__head {
    display: block;
  }

  .fx-section__head .fx-note,
  .fx-section__head .btn {
    margin-top: 1rem;
  }

  .fx-args,
  .fx-cards,
  .fx-quotes {
    grid-template-columns: 1fr;
  }

  .fx-tiles {
    gap: 12px;
  }

  .fx-tile {
    padding: 14px;
  }

  .fx-tile b {
    font-size: 1.2rem;
  }

  .fx-form {
    padding: 22px;
  }

  .fx-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .fx-footer {
    grid-template-columns: 1fr;
  }

  .fx-footer__bottom {
    flex-direction: column;
    gap: .5rem;
  }

  .fx-page-hero__badge {
    bottom: -24px;
    left: 12px;
    width: 72px;
    height: 72px;
  }

  .fx-callbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: flex;
    gap: 10px;
    padding: 10px 16px;
    background: var(--fx-white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .12);
  }

  .fx-callbar .btn {
    flex: 1;
    padding: .8rem;
  }

  /* lišta je v patičce – nepřebírat bílé odkazy patičky */
  .container-footer .fx-callbar .btn-primary,
  .container-footer .fx-callbar .btn-primary:hover {
    color: var(--fx-white);
    text-decoration: none;
  }

  .container-footer .fx-callbar .btn-outline-dark {
    color: var(--fx-ink);
    text-decoration: none;
  }

  .back-to-top-link {
    bottom: 84px;
  }
}

/* ---------- 11. Okno Regular Labs Modals (stránka v iframe, tmpl=component) ---------- */

body.contentpane {
  padding: 28px 28px 8px;
  background: var(--fx-white);
}

body.contentpane .fx-form--modal {
  padding: 0;
  border: 0;
}

body.contentpane .com-content-article__body > p:first-child {
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
}

body.contentpane .page-header h1,
body.contentpane .page-header h2 {
  margin-bottom: .5rem;
  font-size: 2rem;
}

/* ---------- 12. Příběh realizace (Reference) ---------- */

.fx-case {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 40px;
  background: var(--fx-paper);
  border-radius: var(--fx-radius);
}

.fx-page-body > .fx-case p {
  max-width: none;
  font-size: 1.1rem;
}

.fx-case h2 {
  margin-top: 0;
}

/* Fotky: první velká přes celou šířku, dvě menší pod ní; otevírají se v JCE MediaBox */
.fx-case__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fx-case__photos a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: zoom-in;
  border-radius: var(--fx-radius-sm);
}

.fx-case__photos a:first-child {
  grid-column: 1 / -1;
}

.fx-case__photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.fx-case__photos a:hover img {
  transform: scale(1.04);
}

.fx-case + * {
  margin-top: 48px;
}

@media (max-width: 991.98px) {
  .fx-case {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px;
  }
}
