@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&display=swap");

:root {
  --font-body: "DM Sans", Arial, sans-serif;
  /* Jednotná typografická škála napříč homepage a všemi podstránkami. */
  --type-hero: clamp(42px, 4.5vw, 72px);
  --type-section: clamp(34px, 3.3vw, 50px);
  --type-prose-title: 30px;
  --type-subheading: 24px;
  --type-card-title: 22px;
  --type-lead: 18px;
  --type-body-lg: 17px;
  --type-body: 16px;
  --type-label: 14px;
  --type-cta: 14px;
  --type-meta: 13px;
  --weight-heading: 450;
  --weight-card-title: 500;
  --weight-cta: 600;
  --leading-heading: 1.1;
  --leading-body: 1.75;
  --leading-lead: 1.75;
  --green: #143b30;
  --deep: #102e26;
  /* Akcent na tmavém podkladu; na světlém se používají dvě tmavší úrovně
     podle velikosti textu. */
  --gold: #dac58d;
  --gold-on-light: #7d6636;
  --gold-heading-on-light: #8b7950;
  --gold-graphic-on-light: #927638;
  --paper: #f7f7f2;
  --ink: #173a30;
  /* Běžný doprovodný text na papíru i světle zelené ploše (AA ≥ 5 : 1). */
  --muted: #58685e;
  /* Tři textové úrovně na zelených plochách. */
  --text-on-dark: #f7f7f2;
  --muted-on-dark: #d1ded4;
  --subtle-on-dark: #b4c7b9;
  --line-control: #7b8a81;
  /* Tokeny sdílené cookie lišty. */
  --brand-darker: #102e26;
  --brand-accent: #dac58d;
  --brand-text-on-dark: #f7f7f2;
  --brand-text-on-dark-rgb: 247, 247, 242;
  /* Vertikální padding hero sekce, jednotný pro homepage i podstránky
     (.hero-copy, .cm-hero, .sale-hero, .offer-hero). */
  --hero-pt: 76px;
  --hero-pb: 62px;
  /* Vodorovný odstup textu v hero = odstup loga v hlavičce (.header), text tak
     sedí na stejné svislici jako na homepage, kde 11.1 % sloupce ≈ 5.2 % šířky. */
  --hero-px: 5.2%;
}

/* CFG-CONSENT-CSS:START — zrcadlí blok v kořenovém cfg-base.css.
   Nový web CFG Real Estate nepoužívá celý sdílený base stylesheet, protože má
   vlastní design systém; lišta proto přebírá pouze svou izolovanou komponentu. */
.cfg-cc {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 2000;
  display: none;
  max-width: 560px;
  margin: 0 auto;
  padding: 22px;
  color: var(--brand-text-on-dark);
  background: var(--brand-darker);
  border: 1px solid rgba(var(--brand-text-on-dark-rgb), 0.12);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgb(0 0 0 / 50%);
}
.cfg-cc.is-visible {
  display: block;
}
.cfg-cc__title {
  margin: 0 0 8px;
  color: inherit;
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  font-weight: 600;
}
.cfg-cc__text {
  margin: 0;
  color: rgba(var(--brand-text-on-dark-rgb), 0.75);
  font-size: 13.5px;
  line-height: 1.55;
}
.cfg-cc__link {
  color: inherit;
  text-decoration: underline;
}
.cfg-cc__cats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 0;
}
.cfg-cc__cat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}
.cfg-cc__cat input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-accent);
}
.cfg-cc__cat em {
  font-style: normal;
  opacity: 0.6;
}
.cfg-cc__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.cfg-cc__btn {
  flex: 1 1 auto;
  min-height: 46px;
  padding: 11px 18px;
  font: 600 14.5px/1 "DM Sans", sans-serif;
  cursor: pointer;
  border: 1.5px solid transparent;
  border-radius: 10px;
  transition:
    background 0.15s,
    border-color 0.15s,
    opacity 0.15s;
}
.cfg-cc__btn--primary {
  color: var(--deep);
  background: var(--brand-accent);
}
.cfg-cc__btn--primary:hover {
  opacity: 0.9;
}
.cfg-cc__btn--ghost {
  color: var(--brand-text-on-dark);
  background: transparent;
  border-color: rgba(var(--brand-text-on-dark-rgb), 0.3);
}
.cfg-cc__btn--ghost:hover {
  border-color: rgba(var(--brand-text-on-dark-rgb), 0.6);
}
@media (max-width: 520px) {
  .cfg-cc__btn {
    flex-basis: 100%;
  }
}
/* CFG-CONSENT-CSS:END */

@media (min-width: 1600px) {
  :root {
    --hero-pt: 84px;
    --hero-pb: 72px;
    --hero-px: 7%;
  }
}

@media (max-width: 1100px) {
  :root {
    --hero-pt: 62px;
    --hero-pb: 50px;
    --hero-px: 4%;
  }
}

@media (max-width: 760px) {
  :root {
    --hero-pt: 40px;
    --hero-pb: 31px;
    --hero-px: 6%;
    --type-hero: clamp(40px, 10.8vw, 42px);
    --type-section: clamp(34px, 9vw, 38px);
    --type-subheading: 22px;
    --type-lead: 16px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--type-body);
  -webkit-font-smoothing: antialiased;
  /* Každá stránka je vysoká minimálně na displej: patička se u krátkého
     obsahu (právní texty, prázdná nabídka) drží u spodního okraje. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* Poslední sekce se u krátkého obsahu přisune k patičce, volné místo
   zůstane nad ní, ne mezi sekcí a footerem. */
main> :last-child {
  margin-top: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  /* Dvoubarevný indikátor je čitelný na světlém i tmavém podkladu:
     zlatý prstenec kontrastuje se zelenou, tmavý s papírem. */
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--ink);
}

.header {
  height: 96px;
  padding: 0 5.2%;
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 13px;
}

.brand strong {
  font-size: 35px;
  letter-spacing: -2px;
  font-weight: 700;
}

.brand>span {
  border-left: 1px solid #85998f;
  padding-left: 13px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1.5px;
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
}

.nav a {
  padding: 8px 0;
}

.menu {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: 51% 49%;
  min-height: 660px;
  background: var(--green);
  color: var(--paper);
  overflow: hidden;
}

.hero-copy {
  padding: var(--hero-pt) 4% var(--hero-pb) 10.2%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

h1 {
  font-size: var(--type-hero);
  font-weight: var(--weight-heading);
  line-height: var(--leading-heading);
  letter-spacing: -0.055em;
  margin: 0 0 29px;
  position: relative;
  width: 116%;
  z-index: 2;
}

em {
  font-style: normal;
  color: var(--gold);
}

.hero-copy>p {
  font-size: var(--type-lead);
  line-height: var(--leading-lead);
  color: var(--muted-on-dark);
  margin: 0 0 36px;
  max-width: 38em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.button {
  min-height: 53px;
  padding: 17px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 27px;
  font-size: var(--type-cta);
  font-weight: var(--weight-cta);
  transition:
    background 0.2s,
    transform 0.2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button span,
.text-link span {
  font-size: 20px;
  line-height: 1;
}

.gold {
  background: var(--gold);
  color: #183c30;
}

.gold:hover {
  background: #ead8a7;
}

.text-link {
  display: inline-flex;
  gap: 15px;
  align-items: center;
  font-size: var(--type-cta);
  padding: 12px 0;
  border-bottom: 1px solid #80988d;
}

/* ── Odkazy: hover ──
   Textové odkazy při hoveru nemění barvu textu, jen dostanou zlaté podtržení;
   odkazy s vlastní linkou (border-bottom) si přebarví linku. Všechny odkazy
   používají stejnou textovou šipku ↗ jako homepage (<span aria-hidden>↗</span>),
   která se na hover posune diagonálně; interní odkazy mají → (.arrow-in)
   a posun vodorovně; šipka „Stáhnout" u dokumentů dolů.
   Tlačítka (.button, .cm-btn) podtržení nedostávají, jen šipku.
   Reduced-motion níže (transition: none) posun vypne. */
a:not([class]):hover,
.site-footer a:not(.brand):hover,
.footer a:not(.brand):hover,
.cm-prose a:hover,
.cm-gdpr a:hover,
.cfgre-prop__soldnote a:hover,
.cfgre-prop__phone:hover,
.cfgre-docrow:hover .cfgre-docrow__title {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.text-link,
.cfgre-morelink,
.cm-linkcard__more {
  transition: border-color 0.25s;
}

.text-link:hover,
.cfgre-morelink:hover,
.cm-linkcard:hover .cm-linkcard__more {
  border-bottom-color: var(--gold);
}

.button span,
.text-link span,
.nav a span,
.cfgre-morelink>span,
.cm-linkcard__more>span,
.cm-btn>span,
.cfgre-docrow__dl svg {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cfgre-morelink>span,
.cm-linkcard__more>span,
.cm-btn>span {
  font-size: 20px;
  line-height: 1;
}

.button:hover span,
.text-link:hover span,
.nav a:hover span,
.cfgre-morelink:hover>span,
.cm-linkcard:hover .cm-linkcard__more>span,
.cm-btn:hover>span {
  transform: translate(3px, -3px);
}

.button:hover span.arrow-in,
.text-link:hover span.arrow-in,
.cfgre-morelink:hover>span.arrow-in {
  transform: translateX(3px);
}

.cfgre-docrow:hover .cfgre-docrow__dl svg {
  transform: translateY(3px);
}

.hero-bottom {
  margin-top: auto;
  padding-top: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--muted-on-dark);
}

.scroll-icon {
  height: 33px;
  width: 33px;
  display: grid;
  place-items: center;
  border: 1px solid #79988a;
  border-radius: 50%;
  font-size: 18px;
}

.hero-photo {
  position: relative;
  min-width: 0;
  background: #89978a;
}

.hero-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 59, 48, 0.22), transparent 35%),
    linear-gradient(0deg, rgba(10, 32, 22, 0.6), transparent 35%);
  pointer-events: none;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  object-position: 50% 50%;
}

.photo-caption {
  position: absolute;
  bottom: 38px;
  left: 32px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  color: white;
  z-index: 1;
  font-size: 14px;
}

.photo-caption span:last-child {
  font-size: 11px;
  letter-spacing: 1.7px;
}

.section {
  padding-left: 7%;
  padding-right: 7%;
}

/* ── Tmavý pás s čísly (homepage „v číslech", prodej nemovitosti, o nás) ──
   Sdílená komponenta: počet sloupců se řídí počtem položek, mezi nimi jemné
   svislice. Na mobilu se skládá pod sebe a zarovnává doleva. */
.portfolio-scale {
  background: #102e26;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  column-gap: 36px;
  align-items: start;
  padding-top: 28px;
  padding-bottom: 32px;
  color: var(--text-on-dark);
  border-top: 1px solid #395345;
}

.scale-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-width: 0;
  padding: 0;
}

.scale-item + .scale-item::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 0.15em;
  bottom: 0.15em;
  width: 1px;
  background: #395345;
}

.scale-item > strong {
  font-size: 43px;
  line-height: 1.1;
  font-weight: 450;
  letter-spacing: -1.6px;
  color: var(--gold);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.scale-item small {
  font-size: 19px;
  letter-spacing: -0.2px;
}

.scale-item > span {
  font-size: 13px;
  line-height: 1.5;
  color: var(--subtle-on-dark);
}

/* Stejná mřížka jako .principles pod tím (3× 1fr, mezera 36px), aby text
   „Od roku 2014…" lícoval s druhým benefitem a odkaz se třetím. Text drží
   v prostřední dráze, takže je vysoký a přetéká pod nadpis až k další sekci. */
.about {
  padding-top: 48px;
  padding-bottom: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "label . ."
    "head copy link";
  column-gap: 36px;
  row-gap: 0;
  align-items: start;
}

.about > .section-label {
  grid-area: label;
  margin-bottom: 6px;
}

.about-heading {
  grid-area: head;
}

.about-copy {
  grid-area: copy;
}

/* Odkaz stojí ve třetí dráze (místo po izometrické animaci) vedle přetékajícího
   textu a je vycentrovaný na jeho výšku. Užší breakpointy ho vracejí pod text. */
.about-link {
  grid-area: link;
  align-self: center;
  justify-self: end;
}

.section-label {
  font-size: var(--type-label);
  display: block;
  margin-bottom: 25px;
  color: var(--muted);
}

h2 {
  font-weight: var(--weight-heading);
  font-size: var(--type-section);
  letter-spacing: -0.045em;
  line-height: var(--leading-heading);
  margin: 0;
}

.about h2 em {
  color: var(--gold-heading-on-light);
}

.about-copy p {
  line-height: 1.8;
  color: #58685e;
  font-size: 16px;
  margin: 0 0 14px;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-copy .lead {
  font-size: var(--type-subheading);
  line-height: 1.45;
  color: var(--ink);
  font-weight: 450;
  margin-bottom: 16px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 36px;
  padding-top: 44px;
  padding-bottom: 56px;
}

.principles>div {
  border-top: 1px solid #c9d2c7;
  padding-top: 22px;
}

.principles h3 {
  font-weight: var(--weight-card-title);
  font-size: var(--type-card-title);
  margin: 20px 0 12px;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.principles p {
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.7;
  margin: 0;
}

.principles>div:nth-child(2) {
  --card-delay: 0.08s;
}

.principles>div:nth-child(3) {
  --card-delay: 0.16s;
}

.item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.item-number {
  font-size: 14px;
  color: var(--gold-on-light);
}

/* Ikony (Lucide) – tahy se „dokreslí" při najetí do viewportu.
   main.js přidá gridu [data-reveal] a kartám .is-visible; bez JS jsou
   ikony rovnou vykreslené. Řešeno přes transition, takže reduced-motion
   níže (transition: none) animaci vypne. Sdílené pro homepage (.principles)
   i prodej-nemovitosti (.situations-grid). */
.item-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c6d0c2;
  border-radius: 50%;
  color: var(--gold-on-light);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.item-icon svg {
  width: 22px;
  height: 22px;
}

.item-icon path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: calc(var(--card-delay, 0s) + var(--path-delay, 0s));
}

.item-icon path:nth-child(2) {
  --path-delay: 0.1s;
}

.item-icon path:nth-child(3) {
  --path-delay: 0.2s;
}

.item-icon path:nth-child(4) {
  --path-delay: 0.3s;
}

.item-icon path:nth-child(5) {
  --path-delay: 0.4s;
}

[data-reveal]> :not(.is-visible) .item-icon:not(.cfgre-map__ico) {
  transform: scale(0.8);
  transition: none;
}

[data-reveal]> :not(.is-visible) .item-icon:not(.cfgre-map__ico) path {
  stroke-dashoffset: 1;
  transition: none;
}

/* ── Struktura společnosti (pavouk) ──
   Tmavá sekce: CFG Real Estate jako mateřská realitní společnost a pět
   dceřiných. Skupina CFG je jen vlevo (logo + odkaz). Desktop = SVG
   .group-map, mobil = .group-tree. Spojnice se dokreslí přes data-reveal. */
.group {
  background: var(--green);
  color: var(--paper);
  padding-top: 68px;
  padding-bottom: 68px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 36px;
  row-gap: 28px;
  /* Text je výrazně nižší než diagram, takže se proti němu vycentruje –
     jinak zůstane vlevo pod ním velká prázdná plocha. */
  align-items: center;
}

.group-copy {
  grid-column: 1;
  min-width: 0;
}

.group .section-label {
  color: var(--subtle-on-dark);
}

.group h2 {
  color: var(--paper);
  font-size: var(--type-section);
}

.group-copy>p {
  font-size: var(--type-lead);
  line-height: var(--leading-lead);
  color: var(--muted-on-dark);
  margin: 30px 0 0;
  max-width: none;
}

.group-cfg {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #395345;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 28px;
}

/* Na O společnosti odkaz na skupinu sedí až v sekci Zázemí pod diagramem,
   takže nad logem CFG vlevo čára ani CTA nejsou – jen zmínka. */
.page-o-spolecnosti .group-cfg {
  margin-top: 28px;
  padding-top: 0;
  border-top: 0;
}

.group-cfg__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.group-cfg img {
  display: block;
  height: 22px;
  width: auto;
}

.group-cfg p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted-on-dark);
}

.group .text-link,
.group-cfg .text-link {
  margin-top: 0;
}

.group-cfg .text-link {
  padding: 0 0 6px;
}

/* Diagram je vyšší než text vlevo, takže ho vytáhneme do horního odsazení
   sekce – schéma tím sedí výš proti textu a pod textem nezůstává prázdná
   plocha. Na mobilu (stack) se odsazení ruší. */
.group-visual {
  grid-column: 2 / -1;
  max-width: 780px;
  justify-self: center;
  width: 100%;
  min-width: 0;
  margin-top: -30px;
}

/* .inner-page zvyšuje specificitu kvůli `.inner-page svg { width: 20px }`
   v pages.css (o-spolecnosti), které by schéma zmenšilo na ikonu. */
.group-map,
.inner-page .group-map {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: inherit;
}

.group-map .link {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--d, 0s);
}

.group-map .tip {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.35s;
  transition-delay: calc(var(--d, 0s) + 0.7s);
}

.group-map .node {
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity 0.6s,
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--d, 0s);
}

.group-map[data-reveal]:not(.is-visible) .link {
  stroke-dashoffset: 1;
  transition: none;
}

.group-map[data-reveal]:not(.is-visible) .tip,
.group-map[data-reveal]:not(.is-visible) .node {
  opacity: 0;
  transition: none;
}

.group-map[data-reveal]:not(.is-visible) .node {
  transform: scale(0.85);
}

/* CFG Real Estate: střed struktury, o něco menší než holding CFG a.s. */
.group-map .hub__disc {
  fill: var(--deep);
  stroke: var(--gold);
  stroke-width: 1.5;
}

.group-map .halo {
  fill: none;
  stroke: rgba(218, 197, 141, 0.28);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: group-halo 4.5s ease-in-out infinite;
}

.group-map .halo--2 {
  stroke: rgba(218, 197, 141, 0.12);
  animation-delay: -2.25s;
}

@keyframes group-halo {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.55;
  }
}

.group-map .hub__mark {
  fill: var(--paper);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1.2px;
  text-anchor: middle;
}

.group-map .hub__sub {
  fill: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-anchor: middle;
}

/* Jemný světle zelený prstenec (stejná linka jako u dceřiných uzlů): zlatá
   plocha tak vizuálně sedí na stejnou velikost jako střed schématu. */
.group-map .parent__disc {
  fill: var(--gold);
  stroke: #5f7d6e;
  stroke-width: 1.5;
}

.group-map .parent__mark {
  fill: #183c30;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.8px;
  text-anchor: middle;
}

/* „a.s." je tspan na stejné řádce jako CFG – jen menší, proto bez text-anchor
   (kotví se celý text uzlu) a s mírnějším prostrkáním, aby popis zůstal
   opticky vycentrovaný v kolečku. */
.group-map .parent__sub {
  fill: #183c30;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.group-map .kid__disc {
  fill: #1a4a3c;
  stroke: #5f7d6e;
  stroke-width: 1;
}

.group-map .kid__ico {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.group-map .label {
  fill: var(--text-on-dark);
  font-size: 16px;
  font-weight: 500;
}

.group-map .label--sub {
  fill: var(--subtle-on-dark);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.group-map .kid .label {
  text-anchor: middle;
}

/* Mobilní strom: chip 52 px, svislá zlatá páteř na jeho ose (26 px). */
.group-tree {
  display: none;
}

.group-tree__row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.group-tree__row--hub {
  position: relative;
  margin-top: 30px;
}

.group-tree__row--hub::before {
  content: "";
  position: absolute;
  left: 26px;
  top: -30px;
  height: 30px;
  width: 1px;
  background: var(--gold);
}

.group-tree__chip {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1;
}

/* Zlatý uzel drží „CFG a.s." na jedné řádce jako kolečko v diagramu – proto
   místo flexu blok s line-height přes celou výšku kolečka (bez rámu). */
.group-tree__chip--gold {
  background: var(--gold);
  border: 1px solid #5f7d6e;
  color: #183c30;
  display: block;
  text-align: center;
  font-size: 13px;
  line-height: 50px;
}

.group-tree__chip span {
  font-size: 7px;
  letter-spacing: 0.6px;
  font-weight: 700;
  margin-left: 2px;
}

.group-tree__chip--hub {
  background: var(--deep);
  border: 1px solid var(--gold);
  color: var(--paper);
  box-shadow: 0 0 0 8px rgba(218, 197, 141, 0.12);
}

.group-tree__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.group-tree__text strong {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-on-dark);
}

.group-tree__text small {
  font-size: 12px;
  color: var(--subtle-on-dark);
}

.group-tree__row:hover .group-tree__text strong {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.28em;
}

.group-tree__row--hub:hover .group-tree__text strong {
  text-decoration: none;
}

.group-tree__kids {
  list-style: none;
  margin: 0 0 0 26px;
  padding: 24px 0 0 34px;
  border-left: 1px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-on-dark);
}

.group-tree__kids li {
  position: relative;
}

.group-tree__kids li::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 50%;
  width: 22px;
  height: 1px;
  background: var(--gold);
}

.group-tree__kids li::after {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: translateY(-50%) rotate(-45deg);
}

/* Realizované projekty na homepage: stejný karusel jako na /pro-investory/ (markup + pages.css + pages.js),
   jen s hlavičkou v duchu homepage (.section-label + h2 se zlatým em). */
.projects {
  padding-top: 92px;
  padding-bottom: 90px;
}

.projects h2 em {
  color: var(--gold-heading-on-light);
}

.projects-heading p {
  margin: 20px 0 0;
  max-width: 42em;
  font-size: var(--type-body-lg);
  line-height: var(--leading-body);
  color: #58685e;
}

.services {
  padding-top: 76px;
  padding-bottom: 76px;
  background: #e9eee6;
}

.services>h2 {
  font-size: var(--type-section);
  margin-bottom: 45px;
}

/* Tři vstupy vedle sebe ve stejné mřížce jako .principles (3× 1fr, mezera 36px).
   Karta je flex sloupec, takže CTA drží u spodní hrany a odkazy se srovnají
   i při různě dlouhých popiscích. */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 36px;
}

.service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 22px;
  border-top: 1px solid #bccbbb;
  scroll-margin-top: 25px;
}

.service-index {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
}

.service h3 {
  font-size: var(--type-card-title);
  font-weight: var(--weight-card-title);
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin: 18px 0 12px;
}

.service p {
  font-size: var(--type-body);
  line-height: var(--leading-body);
  margin: 0 0 26px;
  color: #58685e;
}

.service > .button,
.service > .text-link {
  margin-top: auto;
}

.footer {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--deep);
  color: var(--paper);
}

.footer>span,
.footer>a:last-child {
  font-size: 13px;
  color: var(--subtle-on-dark);
}

.footer .brand strong {
  font-size: 30px;
}

.footer .brand>span {
  font-size: 9px;
}

@media (min-width: 1600px) {
  .header {
    padding-left: 7%;
    padding-right: 7%;
  }

  .hero-copy {
    padding-left: 13.7%;
  }

  .hero {
    min-height: 750px;
  }

  .hero h1 {
    font-size: var(--type-hero);
  }

  .hero-copy>p {
    font-size: var(--type-lead);
  }

  .hero-actions {
    gap: 32px;
  }

  .button {
    font-size: var(--type-cta);
  }

  .text-link {
    font-size: var(--type-cta);
  }

}

@media (max-width: 1100px) {
  .scale-item > strong {
    font-size: 35px;
  }

  .scale-item small {
    font-size: 15px;
  }

  .scale-item > span {
    font-size: 12px;
  }

  .header {
    gap: 24px;
    height: 85px;
    padding: 0 4%;
  }

  .nav {
    gap: 19px;
    font-size: 13px;
  }

  .hero {
    min-height: 620px;
    grid-template-columns: 54% 46%;
  }

  .hero-copy {
    padding: var(--hero-pt) 5% var(--hero-pb) 8%;
  }

  h1 {
    font-size: var(--type-hero);
    width: 110%;
  }

  .hero-copy>p {
    font-size: var(--type-lead);
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-bottom {
    padding-top: 44px;
  }

  .photo-caption {
    left: 25px;
    right: 20px;
  }

  .photo-caption span:last-child {
    display: none;
  }

  .about {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    grid-template-areas:
      "label ."
      "head copy"
      ".    link";
    column-gap: 6%;
    row-gap: 0;
    padding-top: 70px;
    align-items: start;
  }

  h2 {
    font-size: var(--type-section);
  }

  /* Užší sloupec: odkaz vedle textu by ho zúžil, proto jde pod odstavce. */
  .about-link {
    align-self: start;
    margin-top: 26px;
  }

  .about-copy .lead {
    font-size: var(--type-subheading);
  }

  .services-grid {
    gap: 26px 28px;
  }

  .service h3 {
    font-size: var(--type-card-title);
  }

  .group {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-top: 70px;
    padding-bottom: 70px;
    align-items: start;
  }

  .group-copy,
  .group-visual {
    grid-column: auto;
  }

  .group h2 {
    font-size: var(--type-section);
  }

  .group-copy>p {
    max-width: 600px;
  }

  .group-visual {
    justify-self: start;
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 70px;
  }

  .portfolio-scale {
    grid-template-columns: 1fr;
    row-gap: 18px;
    padding-top: 24px;
    padding-bottom: 28px;
  }

  .scale-item + .scale-item::before {
    display: none;
  }

  .scale-item {
    align-items: flex-start;
    text-align: left;
    border-top: 1px solid #395345;
    padding-top: 18px;
  }

  .scale-item > strong {
    font-size: 36px;
  }

  .header {
    height: 76px;
    padding: 0 6%;
    gap: 18px;
    position: relative;
    z-index: 5;
  }

  .brand strong {
    font-size: 30px;
  }

  .brand>span {
    font-size: 9px;
  }

  .menu {
    display: flex;
    margin-left: auto;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: 0;
    padding: 12px 0 12px 6px;
  }

  .menu span {
    width: 22px;
    height: 1px;
    background: var(--green);
  }

  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 22px 6% 28px;
    border-top: 1px solid #dde3d9;
    box-shadow: 0 12px 12px #102e2610;
    font-size: 16px;
    gap: 15px;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero-copy {
    padding: var(--hero-pt) 6% var(--hero-pb);
  }

  .hero h1 {
    font-size: var(--type-hero);
    width: auto;
    line-height: 1.12;
    margin-bottom: 23px;
  }

  .hero-copy>p {
    font-size: var(--type-lead);
    line-height: var(--leading-lead);
    margin-bottom: 28px;
  }

  .hero-actions {
    gap: 15px 24px;
  }

  .button {
    font-size: var(--type-cta);
    padding: 15px 18px;
  }

  .hero-bottom {
    padding-top: 37px;
    font-size: 12px;
  }

  .hero-photo {
    height: 370px;
  }

  .hero-photo img {
    object-position: center 48%;
  }

  .photo-caption {
    bottom: 24px;
    left: 6%;
    right: 6%;
    font-size: 13px;
  }

  .photo-caption span:last-child {
    display: block;
    font-size: 9px;
  }

  .section {
    padding-left: 6%;
    padding-right: 6%;
  }

  .about {
    padding-top: 56px;
    padding-bottom: 42px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "head"
      "copy"
      "link";
    gap: 31px;
  }

  .section-label {
    margin-bottom: 20px;
  }

  h2 {
    font-size: var(--type-section);
  }

  .about-copy .lead {
    font-size: var(--type-subheading);
  }

  .about-copy p {
    font-size: 16px;
  }

  .about-link {
    justify-self: start;
    margin-top: 0;
  }

  .principles {
    grid-template-columns: 1fr;
    gap: 26px;
    /* Na mobilu odstup drží spodní padding .about, stačí menší doplnění. */
    padding-top: 12px;
    padding-bottom: 56px;
  }

  .principles>div {
    padding-top: 20px;
  }

  .principles h3 {
    margin: 18px 0 10px;
    font-size: var(--type-card-title);
  }

  .principles p {
    font-size: var(--type-body);
    line-height: 1.7;
  }

  .group {
    padding-top: 56px;
    padding-bottom: 56px;
    gap: 40px;
  }

  .group h2 {
    font-size: var(--type-section);
  }

  .group-copy>p {
    font-size: var(--type-lead);
    line-height: var(--leading-lead);
  }

  .group-cfg .text-link {
    margin-top: 0;
  }

  /* Na mobilu zůstává jen svislý strom. `.inner-page` je tu kvůli specificitě
     stejné výjimky výš (o-spolecnosti), jinak by se schéma ukázalo dvakrát. */
  .group-map,
  .inner-page .group-map {
    display: none;
  }

  .group-tree {
    display: block;
  }

  .services {
    padding-top: 48px;
    padding-bottom: 15px;
  }

  .projects {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .services>h2 {
    font-size: var(--type-section);
    margin-bottom: 30px;
    max-width: 320px;
  }

  /* Na mobilu jsou karty pod sebou – gap mřížky nahrazuje dřívější odsazení. */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .service {
    padding-top: 20px;
  }

  .service h3 {
    font-size: var(--type-card-title);
  }

  .footer {
    padding-top: 30px;
    padding-bottom: 30px;
    flex-wrap: wrap;
    gap: 24px;
  }

  .footer>span {
    order: 3;
    width: 100%;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }

  .group-map .halo {
    animation: none;
  }
}