:root {
  /* Barvy vycházejí z loga: tmavě modré V a zlatá orlí hlava */
  --navy-950: #081225;
  --navy-900: #0d1a33;
  --navy-800: #14274a;
  --navy-700: #1e3763;
  --gold-300: #ecd088;
  --gold-500: #c9a04c;
  --gold-700: #84621f;
  --ivory: #f5f2ea;
  --paper: #f3f3ef;
  --paper-2: #e7e6df;
  --ink: #10203c;
  --ink-soft: #4b5872;
  --mist: #b4bed1;
  --line-dark: rgba(245, 242, 234, .18);
  --line-light: rgba(16, 32, 60, .16);

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: max(clamp(16px, 4vw, 64px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --col-gap: clamp(16px, 2.4vw, 40px);
  --section-y: clamp(92px, 10vw, 156px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --logo-v: #14274a;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--ink);
  font: 400 1.0625rem/1.62 var(--text);
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }
img { display: block; max-width: 100%; }
p, li, dd { text-wrap: pretty; }

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.35rem, 4.9vw, 4.5rem); line-height: 1.06; }
h3 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  font-weight: 500;
  line-height: 1.16;
}

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.block { padding: var(--section-y) var(--gutter); }

/* ------------------------------------------------------------ Tlačítka */

.btn {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: .86em 1.5em .9em;
  font: 600 1rem/1.2 var(--text);
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
/* Odlesk přejede přes zlaté tlačítko jen při najetí */
.btn-gold {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500) 62%);
  color: var(--navy-950);
}
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .62) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn-gold:hover::after { transform: translateX(120%); }
.btn-line {
  border: 1px solid rgba(245, 242, 234, .5);
  color: var(--ivory);
  isolation: isolate;
}
.btn-line::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--ivory);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.btn-line:hover { border-color: var(--ivory); color: var(--navy-950); }
.btn-line:hover::before { transform: scaleX(1); }
.btn-navy { background: var(--navy-800); color: var(--ivory); }
.btn-navy:hover { background: var(--navy-700); }
.btn-small { padding: .68em 1.15em .72em; font-size: .9375rem; }

.link {
  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
  transition: text-decoration-thickness .15s;
}
.link:hover { text-decoration-thickness: 2px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

/* ------------------------------------------------------------ Hlavička */

.site-head {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 40px);
  padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gutter) 16px;
  color: var(--ivory);
  --logo-v: var(--ivory);
  transition: background-color .35s, padding .35s var(--ease), box-shadow .35s;
}
.site-head.is-stuck {
  padding-top: calc(9px + env(safe-area-inset-top, 0px));
  padding-bottom: 9px;
  background: rgba(8, 18, 37, .97);
  box-shadow: 0 1px 0 var(--line-dark);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  text-decoration: none;
}
.brand-mark { display: block; width: 54px; height: 46px; }
.brand-name {
  font: 500 1.3rem/1 var(--display);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.brand-name small {
  display: block;
  margin-top: 5px;
  color: var(--gold-300);
  font: 500 .625rem/1 var(--text);
  letter-spacing: .34em;
}

.site-nav { display: flex; gap: clamp(14px, 2vw, 30px); }
.site-nav a {
  position: relative;
  padding-block: 6px;
  font-size: .9688rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--gold-300);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--gold-300); }

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Tenký ukazatel průchodu stránkou */
.site-head::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0);
  transform-origin: left;
}

/* ------------------------------------------------------------ Hero */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  column-gap: var(--col-gap);
  align-items: center;
  min-height: min(100svh, 1020px);
  overflow: hidden;
  padding: clamp(96px, 12vh, 132px) var(--gutter) clamp(36px, 5vh, 64px);
  background: var(--navy-950);
  color: var(--ivory);
}

.hero-bg {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  transform: translate(calc(var(--px, 0) * -12px), calc(var(--py, 0) * -10px));
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  opacity: .72;
  transform: scale(1.08);
}
/* Fotka je jen podklad: vlevo drží čitelnost textu, dole navazuje na další pás */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 18, 37, .82) 0, rgba(8, 18, 37, .12) 26%, rgba(8, 18, 37, .1) 62%, var(--navy-900) 100%),
    linear-gradient(90deg, rgba(8, 18, 37, .94) 0, rgba(8, 18, 37, .74) 38%, rgba(8, 18, 37, .24) 72%, rgba(8, 18, 37, .4) 100%);
}

.hero-copy { position: relative; }
.hero h1 {
  font-size: clamp(2.85rem, 5.7vw, 5.6rem);
  line-height: 1.02;
}
/* Řádek nadpisu se vysouvá z masky. Odsazení drží háčky a dotažnice uvnitř. */
.ln {
  display: block;
  overflow: hidden;
  margin-block: -.14em;
  padding-block: .14em;
}
.ln > span { display: block; }

.hero-lead {
  max-width: 50ch;
  margin-top: clamp(20px, 2.4vw, 30px);
  color: #d9deea;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.58;
}
.hero-actions { margin-top: clamp(24px, 2.8vw, 36px); }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(24px, 3vw, 40px);
  color: var(--gold-300);
  font-weight: 500;
}
.hero-trust::before {
  content: "";
  flex: none;
  width: 44px;
  height: 1px;
  background: var(--gold-500);
}

/* ------------------------------------------------------------ Síť odvětví */

.net {
  display: block;
  justify-self: end;
  width: 100%;
  max-width: 780px;
  overflow: visible;
  transform: translate(calc(var(--px, 0) * 12px), calc(var(--py, 0) * 10px));
  --logo-v: var(--ivory);
}
.net-glow { pointer-events: none; }
.net-core { fill: rgba(8, 18, 37, .62); }
.edge {
  fill: none;
  stroke: var(--gold-500);
  stroke-dasharray: 1;
  stroke-linecap: round;
  stroke-width: 1.6;
  opacity: .9;
  transition: opacity .3s, stroke-width .3s, stroke .3s;
}
.edge-ring { opacity: .55; stroke-width: 1.1; }
.edge-chord { opacity: .3; stroke-width: 1; }
.net.has-hot .edge { opacity: .1; }
.net.has-hot .edge.is-hot { opacity: 1; stroke: var(--gold-300); stroke-width: 2; }

.net-ring { fill: none; stroke: var(--gold-500); stroke-width: 1; opacity: .4; }
.net-orbit {
  fill: none;
  stroke: var(--gold-300);
  stroke-dasharray: 2 11;
  stroke-width: 1.4;
  opacity: .55;
  transform-origin: 400px 360px;
}
.pulse { fill: var(--gold-300); }

.node { cursor: pointer; text-decoration: none; }
.node-disc {
  fill: var(--navy-900);
  stroke: var(--gold-500);
  stroke-width: 1.4;
  transition: fill .25s, stroke .25s;
}
.node-halo {
  fill: none;
  stroke: var(--gold-300);
  stroke-width: 1;
  opacity: 0;
  transform-origin: 0 0;
}
.node-icon {
  fill: none;
  stroke: var(--gold-300);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: stroke .25s;
}
.node-label {
  fill: var(--ivory);
  font: 500 25px var(--text);
  paint-order: stroke;
  stroke: rgba(8, 18, 37, .78);
  stroke-linejoin: round;
  stroke-width: 7px;
  text-anchor: middle;
}
.node:hover .node-disc, .node:focus-visible .node-disc, .node.is-hot .node-disc { fill: var(--gold-500); stroke: var(--gold-300); }
.node:hover .node-icon, .node:focus-visible .node-icon, .node.is-hot .node-icon { stroke: var(--navy-950); }

/* ------------------------------------------------------------ Běžící pás */

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line-dark);
  background: var(--navy-900);
  color: var(--ivory);
}
.ticker-track {
  display: flex;
  width: max-content;
  padding-block: 16px;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding-right: clamp(28px, 4vw, 56px);
  font: italic 400 clamp(1.25rem, 2vw, 1.75rem)/1.2 var(--display);
  white-space: nowrap;
}
.ticker-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--gold-500);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

/* ------------------------------------------------------------ Služby */

.services { background: var(--paper); color: var(--ink); }
.svc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  column-gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(68vh, 620px);
  padding-left: clamp(18px, 2vw, 28px);
}
/* Svislá linka u právě zobrazené služby */
.svc::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 2px;
  height: 44%;
  background: var(--gold-500);
  transform: translateY(-50%) scaleY(0);
  transition: transform .6s var(--ease);
}
.svc.is-on::before { transform: translateY(-50%) scaleY(1); }
.svc h2 { font-size: clamp(1.9rem, 3vw, 2.85rem); }
.svc p { max-width: 50ch; margin-top: 16px; color: var(--ink-soft); }
.svc .link { display: inline-block; margin-top: 14px; }
.svc-photo { display: none; }

.svc-stage {
  position: sticky;
  top: clamp(84px, 11vh, 112px);
  height: min(76vh, 700px);
  overflow: hidden;
  background: var(--navy-900);
}
.svc-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.86);
  opacity: 0;
  transform: scale(1.08);
  transition: opacity .9s var(--ease), transform 1.6s var(--ease);
}
.svc-stage img.is-on { opacity: 1; transform: none; }

/* ------------------------------------------------------------ Odvětví */

.sectors { background: var(--navy-900); color: var(--ivory); }
.tiles {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 18px);
}
.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  grid-column: span 5;
  min-height: clamp(300px, 29vw, 430px);
  overflow: hidden;
  padding: clamp(20px, 2.4vw, 34px);
}
.tile:nth-child(4n+1), .tile:nth-child(4n) { grid-column: span 7; }
.tile img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.62) brightness(.84);
  transition: filter .7s var(--ease), transform 1.2s var(--ease);
}
.tile::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 18, 37, 0) 24%, rgba(8, 18, 37, .62) 58%, rgba(8, 18, 37, .94) 100%);
}
/* Zlatá linka vyjede při najetí, fotka dostane barvu */
.tile::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.tile:hover img { filter: saturate(1) brightness(.86); transform: scale(1.05); }
.tile:hover::after { transform: scaleX(1); }
.tile-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  fill: none;
  stroke: var(--gold-300);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}
.tile h2, .tile h3 { font-size: clamp(1.7rem, 2.7vw, 2.5rem); font-weight: 500; line-height: 1.16; }
.tile p { max-width: 42ch; margin-top: 6px; color: #e2e6ef; }
.tiles-note {
  margin-top: 26px;
  color: var(--mist);
  font: italic 400 clamp(1.2rem, 1.8vw, 1.5rem)/1.3 var(--display);
}

/* ------------------------------------------------------------ Postup */

.process { background: var(--paper); color: var(--ink); }
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--col-gap);
  padding-top: 34px;
}
/* Kolejnice: tenká dráha a zlatá část, kterou vykresluje posun stránky */
.steps::before, .steps::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--line-light);
}
.steps::after {
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform-origin: left;
}
.step { position: relative; }
.step::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 5px var(--paper);
}
.step-n {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-700);
  font: 400 clamp(2.6rem, 4vw, 3.75rem)/1 var(--display);
}
.step h2 { font-size: clamp(1.55rem, 2.2vw, 2.05rem); font-weight: 500; line-height: 1.16; }
.step p { margin-top: 8px; max-width: 30ch; color: var(--ink-soft); }

/* ------------------------------------------------------------ O nás */

.about { background: var(--navy-950); color: var(--ivory); }
.statement {
  max-width: 19ch;
  font: 400 clamp(2.7rem, 7vw, 6.75rem)/1.04 var(--display);
  letter-spacing: -.014em;
  text-wrap: balance;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  margin-top: clamp(48px, 7vw, 104px);
}
.about-photo {
  grid-column: 1 / span 5;
  min-height: clamp(320px, 42vw, 620px);
  overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.86); }
.about-text { grid-column: 7 / -1; align-self: center; }
.about-text h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); margin-bottom: 18px; }
.about-text > p { max-width: 54ch; color: #d9deea; }
.about-text > p + p { margin-top: 12px; }
.stats {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--col-gap);
  margin-block: clamp(28px, 3.4vw, 44px);
  padding-block: clamp(20px, 2.4vw, 28px);
  border-block: 1px solid var(--line-dark);
}
.stats dt {
  color: var(--gold-300);
  font: 400 clamp(2.1rem, 3.5vw, 3.25rem)/1.06 var(--display);
  font-variant-numeric: tabular-nums;
}
.stats dd { margin-top: 4px; color: var(--mist); font-size: .9688rem; line-height: 1.4; }
.about-text .name-note { color: var(--mist); font-size: 1rem; }
.name-note strong { color: var(--ivory); font-weight: 600; }

/* ------------------------------------------------------------ Kariéra */

.career {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 48px;
  background: var(--paper-2);
  color: var(--ink);
}
.career-lead { grid-column: 1 / span 6; }
.pay {
  color: var(--gold-700);
  font: 400 clamp(1.9rem, 3.3vw, 3.1rem)/1.1 var(--display);
}
.pay span { color: var(--ink-soft); font: 400 1rem/1 var(--text); white-space: nowrap; }
.facts { margin: 20px 0 30px; }
.facts > div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding-block: 9px;
  border-top: 1px solid var(--line-light);
}
.facts dt { color: var(--ink-soft); font-weight: 500; font-size: .9688rem; }
.career-lists {
  grid-column: 8 / -1;
  display: grid;
  align-content: center;
  gap: clamp(28px, 3vw, 40px);
}
.career-lists h2 { margin-bottom: 12px; font-size: clamp(1.55rem, 2.2vw, 2.05rem); font-weight: 500; line-height: 1.16; }
.ticks li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 22px;
  line-height: 1.45;
}
.ticks li::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 0;
  width: 12px;
  height: 1.5px;
  background: var(--gold-700);
}

/* ------------------------------------------------------------ Kontakt */

.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--ivory);
  --logo-v: var(--ivory);
}
.contact-ghost {
  position: absolute;
  z-index: -1;
  right: -4%;
  bottom: -12%;
  width: clamp(320px, 52vw, 820px);
  height: clamp(274px, 44.6vw, 703px);
  opacity: .07;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 32px;
}
.contact-info { grid-column: 1 / span 5; align-self: start; position: sticky; top: 96px; }
.contact-phone {
  display: inline-block;
  color: var(--gold-300);
  font: 400 clamp(1.9rem, 3.5vw, 3.5rem)/1.1 var(--display);
  text-decoration-color: rgba(236, 208, 136, .45);
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
  white-space: nowrap;
  transition: text-decoration-color .2s;
}
.contact-phone:hover { text-decoration-color: currentColor; }
.contact-call p { margin-top: 8px; font-size: 1.1875rem; font-weight: 500; }
.contact-places {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--col-gap);
  margin-top: clamp(32px, 4vw, 56px);
}
.contact-place h2 { margin-bottom: 8px; font-size: clamp(1.55rem, 2.2vw, 2.05rem); font-weight: 500; line-height: 1.16; }
.contact-place address { margin-bottom: 10px; color: #d9deea; }

/* Poptávkový formulář */
[hidden] { display: none !important; }
.inquiry {
  grid-column: 6 / -1;
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 44px);
  border-top: 3px solid var(--gold-500);
  background: var(--paper);
  color: var(--ink);
}
.inquiry h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); }
.inquiry-lead { margin-top: -10px; color: var(--ink-soft); }
.inquiry :focus-visible { outline-color: var(--gold-700); }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-size: .9688rem;
  font-weight: 600;
}
.field input, .field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: .66em .8em;
  border: 1px solid rgba(16, 32, 60, .32);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.45 var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus {
  border-color: var(--gold-700);
  box-shadow: 0 0 0 3px rgba(201, 160, 76, .3);
  outline: none;
}
.field [aria-invalid="true"] { border-color: #a4262c; }
.field-error { margin-top: 5px; color: #a4262c; font-size: .9375rem; font-weight: 500; }
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field-hint { margin-top: -10px; color: var(--ink-soft); font-size: .9375rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0 !important; font-weight: 500 !important; cursor: pointer; }
.chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  opacity: 0;
}
.chip span {
  display: block;
  padding: .52em .9em;
  border: 1px solid rgba(16, 32, 60, .32);
  background: #fff;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover span { border-color: var(--navy-800); }
.chip input:checked + span { border-color: var(--navy-800); background: var(--navy-800); color: var(--ivory); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-700); outline-offset: 2px; }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inquiry-note { color: var(--ink-soft); font-size: .875rem; line-height: 1.45; }
.inquiry-send { justify-self: start; border: 0; cursor: pointer; }
.inquiry-send[disabled] { opacity: .6; cursor: progress; transform: none; }
.inquiry-status { padding: 12px 14px; border-left: 3px solid var(--gold-700); background: rgba(201, 160, 76, .18); font-weight: 500; }
.inquiry-status.is-sent { border-left-color: #2c6e49; background: rgba(44, 110, 73, .12); }
.inquiry-status.is-error { border-left-color: #a4262c; background: rgba(164, 38, 44, .1); }

/* ------------------------------------------------------------ Patička */

.site-foot {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr);
  gap: var(--col-gap);
  padding: clamp(32px, 4vw, 52px) var(--gutter);
  background: var(--navy-950);
  color: var(--mist);
  font-size: .9375rem;
  line-height: 1.55;
  --logo-v: var(--ivory);
}
.foot-brand { align-self: start; color: var(--ivory); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 16px; }
.foot-nav a { color: var(--ivory); text-underline-offset: 3px; }
.foot-nav a:hover { text-decoration: underline; }
.foot-legal p { max-width: 92ch; }
.foot-legal p + p { margin-top: 10px; }
.credits { margin-top: 12px; }
.credits summary { width: fit-content; color: var(--ivory); cursor: pointer; }
.credits p { margin-top: 8px; }
.credits ul { margin-top: 8px; columns: 2 280px; column-gap: var(--col-gap); }
.credits li { margin-bottom: 4px; break-inside: avoid; }

/* Textové stránky: služby, časté otázky, údaje o společnosti, ochrana osobních údajů */
.legal { background: var(--paper); color: var(--ink); }
.legal-text { max-width: 68ch; }
.legal-text h2 { margin-top: clamp(28px, 3.4vw, 44px); font-size: clamp(1.55rem, 2.2vw, 2.05rem); font-weight: 500; line-height: 1.16; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text p { margin-top: 12px; }
.legal-text h3 { margin-top: 26px; font: 500 1.0625rem/1.35 var(--text); }
.legal-text h2 + h3 { margin-top: 18px; }
.legal-text h3 + p { margin-top: 6px; }
.legal-text .ticks { margin-top: 14px; }
.legal-text .actions { margin-top: 24px; }
.legal-text .crumbs { margin: 0 0 clamp(20px, 2.6vw, 32px); color: var(--ink-soft); font-size: .9375rem; }
.legal-text .crumbs + h2 { margin-top: 0; }
.other-services { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; padding: 0; list-style: none; }
.detail {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.detail-photo { position: sticky; top: 110px; margin: 0; }
.detail-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-text {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: var(--col-gap);
  max-width: none;
}
.split-text > * { grid-column: 2; }
.split-text > h2 { grid-column: 1; grid-row: 1 / span 12; }
.split-text > h2 + h3 { margin-top: 0; }
.split-text p { max-width: 68ch; }
.split-text .facts { margin-top: 0; }
@media (max-width: 900px) {
  .detail { grid-template-columns: minmax(0, 1fr); }
  .detail-photo { position: static; }
  .detail-photo img { aspect-ratio: 16 / 10; }
  .split-text { grid-template-columns: minmax(0, 1fr); }
  .split-text > *, .split-text > h2 { grid-column: 1; grid-row: auto; }
  .split-text > h2 { margin-bottom: 18px; }
}
.faq { background: var(--paper-2); }
.company { border-top: 1px solid var(--line-light); }
.facts-wide { margin-bottom: 18px; }
.facts-wide > div { grid-template-columns: 10.5rem minmax(0, 1fr); }
@media (max-width: 560px) {
  .facts-wide > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
.legal-text .legal-date { margin-top: clamp(28px, 3.4vw, 44px); color: var(--ink-soft); font-size: .9375rem; }

/* ------------------------------------------------------------ Pohyb
   Vše mimo úvodní sekvenci je funkcí pozice na stránce. Nic tedy nečeká na skript
   a v klidovém stavu je celý obsah vidět. */

@media (prefers-reduced-motion: no-preference) {
  .hero-photo { animation: drift 42s ease-in-out infinite alternate; }
  .net-orbit { animation: orbit 90s linear infinite; }
  .node-halo { animation: halo 4.6s ease-out infinite; animation-delay: var(--h, 0s); }
  .ticker-track { animation: ticker 46s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .pulses { display: none; }
  .btn, .btn::after, .btn::before, .tile img, .tile::after, .svc-stage img, .svc::before { transition: none; }
}

@keyframes drift { from { transform: scale(1.08) translate(0, 0); } to { transform: scale(1.18) translate(-1.6%, -1.2%); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes halo { 0% { opacity: .55; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.75); } }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Úvodní sekvence: nadpis, poté se složí logo a od něj vyrostou spoje k odvětvím */
@keyframes line-up { from { transform: translateY(112%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes wing-open { from { opacity: 0; transform: rotate(-26deg) scale(.92); } }
@keyframes head-land { from { opacity: 0; transform: rotate(-16deg) translate(-16px, 24px); } }
@keyframes node-pop { from { opacity: 0; transform: scale(.4); } }
@keyframes ring-in { from { opacity: 0; transform: scale(.8); } }

.hl-outline { fill: none; stroke: var(--gold-300); stroke-dasharray: 1; stroke-width: 2; opacity: 0; }
.hl-wing, .hl-head { transform-origin: 248px 437px; }
.node-in { transform-origin: 0 0; }
.net-ring { transform-origin: 400px 360px; }

.intro:not(.go) .ln > span { transform: translateY(112%); }
.intro:not(.go) .hero-lead,
.intro:not(.go) .hero-actions,
.intro:not(.go) .hero-trust,
.intro:not(.go) .hl-v,
.intro:not(.go) .hl-wing,
.intro:not(.go) .hl-head,
.intro:not(.go) .net-ring,
.intro:not(.go) .net-orbit,
.intro:not(.go) .node-in,
.intro:not(.go) .pulses { opacity: 0; }
.intro:not(.go) .edge { stroke-dashoffset: 1; }

.go .ln > span { animation: line-up .95s var(--ease) var(--d, 0s) backwards; }
.go .hero-lead { animation: fade-up .8s var(--ease) .5s backwards; }
.go .hero-actions { animation: fade-up .8s var(--ease) .62s backwards; }
.go .hero-trust { animation: fade-up .8s var(--ease) .74s backwards; }

.go .hl-outline { animation: draw .9s ease-in-out .2s backwards, outline-out .4s linear 1s forwards; }
@keyframes outline-out { 0% { opacity: 1; } 100% { opacity: 0; } }
.go .hl-v { animation: fade-in .55s ease .75s backwards; }
.go .hl-wing { animation: wing-open .8s var(--ease) var(--w, .85s) backwards; }
.go .hl-head { animation: head-land .75s var(--ease) 1.15s backwards; }
.go .net-ring { animation: ring-in .8s var(--ease) 1.3s backwards; }
.go .net-orbit { animation: fade-in .9s ease 1.5s backwards, orbit 90s linear 1.5s infinite; }
.go .edge { animation: draw .9s cubic-bezier(.5, 0, .2, 1) var(--d, 1.4s) backwards; }
.go .node-in { animation: node-pop .6s cubic-bezier(.2, 1.3, .4, 1) var(--d, 1.7s) backwards; }
.go .pulses { animation: fade-in .8s ease 2.5s backwards; }

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-head::after {
      animation: grow-x linear both;
      animation-timeline: scroll(root);
    }
    [data-rise] {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 4% entry 62%;
    }
    [data-clip] {
      animation: clip-open linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 34%;
    }
    [data-clip] img {
      animation: img-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 30%;
    }
    .tile { animation: tile-in linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .tile:nth-child(even) { animation-range: entry 8% entry 78%; }
    .contact-ghost {
      animation: ghost-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 0%;
    }
  }
}

@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes clip-open { from { clip-path: inset(14% 10% 14% 10%); } to { clip-path: inset(0); } }
@keyframes img-settle { from { transform: scale(1.22); } to { transform: scale(1); } }
@keyframes tile-in { from { opacity: .15; transform: translateY(52px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes word-lit { from { opacity: .12; transform: translateY(.22em); } }
@keyframes ghost-rise { from { transform: translateY(14%) rotate(-3deg); } to { transform: translateY(-6%) rotate(2deg); } }

/* Záloha pro prohlížeče bez animací řízených posunem */
.io [data-rise], .io .tile { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.io [data-rise].in, .io .tile.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ Menší obrazovky */

@media (max-width: 1100px) {
  .site-nav {
    position: fixed;
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 88px var(--gutter) 40px;
    background: var(--navy-950);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .site-nav a { align-self: flex-start; font: 400 clamp(2rem, 8vw, 3rem)/1.3 var(--display); }
  .menu-toggle { display: block; }
  .site-head.menu-open { background: var(--navy-950); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .contact-info, .inquiry { grid-column: 1 / -1; }
  .contact-info { position: static; }
  .career-lead, .career-lists { grid-column: 1 / -1; }
}

/* Hero se skládá pod sebe, jakmile by se text a síť tlačily */
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .net { justify-self: center; max-width: 620px; }
  .about-photo { grid-column: 1 / -1; margin-bottom: 36px; min-height: 340px; }
  .about-text { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .head-cta { display: none; }
  .brand-mark { width: 44px; height: 38px; }
  .brand-name { font-size: 1.1rem; }

  .hero { padding-top: 92px; }
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(8, 18, 37, .88) 0, rgba(8, 18, 37, .62) 46%, rgba(8, 18, 37, .4) 72%, var(--navy-900) 100%);
  }

  /* Jedna fotka u každé služby místo přišpendleného panelu */
  .svc-grid { display: block; }
  .svc-stage { display: none; }
  .svc { min-height: 0; padding: 0 0 44px; }
  .svc::before { display: none; }
  .svc-photo {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-bottom: 18px;
    object-fit: cover;
  }

  .tile, .tile:nth-child(4n+1), .tile:nth-child(4n) { grid-column: 1 / -1; min-height: 280px; }

  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 30px; padding-top: 0; padding-left: 28px; }
  .steps::before, .steps::after { top: 0; right: auto; bottom: 0; left: 5px; width: 2px; height: auto; }
  .steps::after { transform-origin: top; }
  .go .steps::after { animation-name: grow-y; }
  .step::before { top: 8px; left: -28px; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:first-child { grid-column: 1 / -1; }

  .contact-phone { font-size: clamp(1.9rem, 9.6vw, 3.4rem); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .site-foot { grid-template-columns: minmax(0, 1fr); }
}
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ------------------------------------------------------------ Stránky */

.page-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(128px, 19vh, 196px) var(--gutter) clamp(44px, 7vh, 80px);
  background: var(--navy-950);
  color: var(--ivory);
}
.page-head-photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.55);
  opacity: .42;
}
.page-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 18, 37, .92) 0, rgba(8, 18, 37, .62) 58%, rgba(8, 18, 37, .34) 100%);
}
/* Zlatá linka odděluje hlavičku listu od obsahu */
.page-head::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300) 40%, transparent);
  transform-origin: left;
}
.page-head h1 {
  max-width: 17ch;
  font-size: clamp(2.6rem, 5.6vw, 5.5rem);
  line-height: 1.04;
}
.page-head p {
  max-width: 54ch;
  margin-top: clamp(14px, 1.8vw, 24px);
  color: #d9deea;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
}
.go .page-head-photo { animation: head-drift 26s ease-out both; }
.go .page-head p { animation: fade-up .8s var(--ease) .32s backwards; }
.go .page-head::after { animation: grow-x 1.2s var(--ease) .2s backwards; }
@keyframes head-drift { from { transform: scale(1.14); } to { transform: scale(1.02); } }

/* Listy mají nahoře málo obsahu, proto jejich vstupní pohyb běží v čase */
.word { display: inline-block; }
.go .word { animation: word-lit .7s var(--ease) calc(.28s + var(--i) * .07s) backwards; }
.go .steps::after { animation: grow-x 1.5s var(--ease) .45s backwards; }
.go .step { animation: fade-up .75s var(--ease) calc(.4s + var(--s) * .16s) backwards; }

/* Přechod mezi stránkami: opona s logem */
.curtain {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  border-top: 2px solid var(--gold-500);
  background: var(--navy-950);
  visibility: hidden;
  transform: translateY(101%);
  --logo-v: var(--ivory);
}
.curtain.is-in {
  visibility: visible;
  transform: none;
  transition: transform .42s cubic-bezier(.76, 0, .24, 1);
}
.curtain.is-out {
  visibility: visible;
  transform: translateY(-101%);
  transition: transform .52s cubic-bezier(.76, 0, .24, 1);
}
.curtain-mark {
  width: clamp(92px, 11vw, 150px);
  height: clamp(79px, 9.4vw, 128px);
  opacity: 0;
}
.curtain.is-in .curtain-mark { opacity: 1; transition: opacity .3s ease .12s; }
.curtain.is-out .curtain-mark { opacity: 1; }
.opona .curtain { visibility: visible; transform: none; }
.opona .curtain-mark { opacity: 1; }

/* Rozcestník na úvodu */
.gate { background: var(--navy-900); color: var(--ivory); }
.gate h2 { margin-bottom: clamp(28px, 4vw, 52px); }
.gate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 18px);
}
.gate-grid .tile {
  grid-column: auto;
  min-height: clamp(260px, 26vw, 380px);
  color: inherit;
  text-decoration: none;
}
.gate-grid .tile h3 { font-size: clamp(1.6rem, 2.3vw, 2.15rem); }
.gate-grid .tile:focus-visible { outline-offset: -3px; }
@media (max-width: 960px) {
  .gate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .gate-grid { grid-template-columns: minmax(0, 1fr); }
  .gate-grid .tile { grid-column: auto; min-height: 210px; }
}

/* Bodoni má při velkém optickém stupni vlasové tahy, které se na tmavém pozadí ztrácejí.
   Nižší stupeň je zesílí. Blok je poslední, protože zkratka font tuto vlastnost nuluje. */
h1, h2, .statement, .step-n, .pay, .stats dt, .contact-phone {
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
}
h3, .ticker-item, .tiles-note, .site-nav a {
  font-optical-sizing: none;
  font-variation-settings: "opsz" 11;
}
.brand-name { font-optical-sizing: none; font-variation-settings: "opsz" 8; }
