/* ELSA Consulting – styly webu */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2-variations");
  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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations");
  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 {
  /* firemní barvy ELSA: bílá + modrá #457DAD */
  --brand: #457dad;      /* firemní modrá – hlavní barevné plochy */
  --brand-dark: #3a6e9c; /* o odstín tmavší – hlavička, rozbalovací menu */
  --brand-deep: #2c5a84; /* patička, text tlačítek */
  --ink: #1d2f45;        /* tmavě modrý text na bílé */
  --ink-2: var(--brand-deep);
  --steel: #2f6596;      /* odkazy na bílé */
  --paper: #ffffff;      /* podklad */
  --concrete: #edf3f8;   /* světle modrá plocha */
  --rule: #d3dee8;       /* linky */
  --signal: #ffffff;     /* zvýraznění na modré */
  --accent: var(--brand);/* zvýraznění na bílé */
  --grid-line: rgba(255, 255, 255, .3);

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --step: clamp(64px, 9vw, 128px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--steel); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.site-header :focus-visible, .axes :focus-visible, .cta :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

h1, h2, h3 {
  font-stretch: 118%;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6.4vw, 84px); letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: clamp(20px, 1.8vw, 24px); font-stretch: 110%; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 14px; }

/* ---------- hlavička ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--brand-dark);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: baseline; gap: .45em; color: #fff; text-decoration: none; }
.brand b { font-weight: 800; font-stretch: 125%; font-size: 24px; letter-spacing: .02em; }
.brand span { font-weight: 400; font-stretch: 100%; font-size: 15px; color: rgba(255,255,255,.7); }
.brand img { height: 36px; width: auto; }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 14px;
  color: rgba(255,255,255,.9); text-decoration: none;
  font-size: 15px; font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--signal); }
.nav .has-sub { position: relative; }
.nav .sub {
  position: absolute; left: 0; top: 100%;
  min-width: 260px; padding: 8px 0;
  background: var(--brand-deep);
  border-top: 2px solid #fff;
  visibility: hidden; opacity: 0; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { visibility: visible; opacity: 1; transform: none; }
.nav .sub a { padding: 10px 18px; box-shadow: none; }
.nav .sub a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.menu-toggle {
  display: none;
  background: none; border: 1px solid rgba(255,255,255,.3); color: #fff;
  font: inherit; font-size: 15px; padding: 8px 14px; cursor: pointer;
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 72px;
    background: var(--brand-dark); border-bottom: 2px solid #fff;
    display: none; padding: 8px 0 16px;
  }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav a { padding: 12px var(--gutter); font-size: 17px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--signal); }
  .nav .sub {
    position: static; visibility: visible; opacity: 1; transform: none;
    background: none; border: 0; padding: 0; min-width: 0;
  }
  .nav .sub a { padding-left: calc(var(--gutter) + 20px); font-size: 16px; color: rgba(255,255,255,.65); }
}

/* ---------- tmavý blok s osovou sítí (hero + záhlaví podstránek) ---------- */

.axes {
  position: relative;
  background: var(--brand);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.axes .grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.axes .ax-v, .axes .ax-h { position: absolute; background: var(--grid-line); }
.axes .ax-v { top: 0; bottom: 0; width: 1px; }
.axes .ax-h { left: 0; right: 0; height: 1px; }
.axes .ax-v::before, .axes .ax-h::before {
  content: attr(data-axis);
  position: absolute;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.85);
  background: var(--brand);
  color: #fff;
  font-size: 13px; font-weight: 600; font-stretch: 100%;
  display: grid; place-items: center;
}
.axes .ax-v::before { top: 18px; left: -15px; }
.axes .ax-h::before { left: 14px; top: -15px; }

/* kóta – rozměrová čára v hero */
.dim {
  position: absolute; height: 1px; background: rgba(255,255,255,.35);
}
.dim::before, .dim::after {
  content: ""; position: absolute; top: -5px; width: 1px; height: 11px;
  background: rgba(255,255,255,.85); transform: skewX(-45deg);
}
.dim::before { left: 0; } .dim::after { right: 0; }
.dim span {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  font-size: 12px; color: rgba(255,255,255,.85); white-space: nowrap; letter-spacing: .02em;
}

.hero { padding: clamp(120px, 16vw, 200px) 0 clamp(80px, 10vw, 140px); }
.hero h1 { max-width: 11ch; margin-bottom: .35em; font-stretch: 122%; }
.hero .lead { font-size: clamp(18px, 1.6vw, 21px); color: rgba(255,255,255,.95); max-width: 54ch; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: end; }

.facts { margin: 0; display: grid; gap: 18px; border-left: 1px solid rgba(255,255,255,.45); padding-left: 24px; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: 14px; color: rgba(255,255,255,.85); }
.facts dd { margin: 0; font-size: 17px; color: #fff; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-block; padding: 14px 24px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: #fff; color: var(--brand-deep); }
.btn-primary:hover { background: var(--concrete); color: var(--brand-deep); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }

.page-head { padding: clamp(96px, 12vw, 150px) 0 clamp(48px, 6vw, 80px); }
.page-head h1 { font-size: clamp(36px, 5.2vw, 68px); max-width: 16ch; }
.page-head .lead { font-size: clamp(18px, 1.5vw, 20px); color: rgba(255,255,255,.95); max-width: 62ch; margin: 0; }
.crumbs { font-size: 14px; margin-bottom: 20px; color: rgba(255,255,255,.85); }
.crumbs a { color: rgba(255,255,255,.92); }
.crumbs a:hover { color: #fff; }

/* úvodní animace os – jediný pohyb na stránce */
@media (prefers-reduced-motion: no-preference) {
  .axes .ax-v { transform-origin: top; animation: draw-v .9s cubic-bezier(.2,.7,.2,1) both; }
  .axes .ax-h { transform-origin: left; animation: draw-h .9s cubic-bezier(.2,.7,.2,1) both; }
  .axes .ax-v:nth-child(2), .axes .ax-h:nth-child(2) { animation-delay: .08s; }
  .axes .ax-v:nth-child(3), .axes .ax-h:nth-child(3) { animation-delay: .16s; }
  .axes .ax-v:nth-child(4) { animation-delay: .24s; }
  .axes .ax-v:nth-child(5) { animation-delay: .32s; }
  @keyframes draw-v { from { transform: scaleY(0); } }
  @keyframes draw-h { from { transform: scaleX(0); } }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .axes .hide-sm, .axes .ax-h { display: none; }
  .dim { display: none; }
}

/* ---------- sekce ---------- */

.section { padding: var(--step) 0; }
.section + .section { padding-top: 0; }
.section.tint { background: var(--concrete); padding-top: var(--step); }
.section.tint + .section { padding-top: var(--step); }

.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 96px); }
.split > :first-child h2 { margin-bottom: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.lead-text { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; }

/* seznam služeb – řádky místo karet */
.rows { border-top: 2px solid var(--brand); }
.row {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto;
  gap: clamp(16px, 4vw, 56px); align-items: baseline;
  padding: 32px 0; border-bottom: 1px solid var(--rule);
}
.row h3 { margin: 0; }
.row p { margin: 0; color: #3a4557; }
.row .more { white-space: nowrap; font-weight: 600; }
@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; gap: 10px; }
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.tags li { font-size: 14px; padding: 4px 10px; border: 1px solid var(--rule); background: #fff; }

/* odrážkové seznamy */
.list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 48px; }
.list li { break-inside: avoid; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--rule); position: relative; }
.list li::before { content: ""; position: absolute; left: 0; top: 22px; width: 10px; height: 2px; background: var(--accent); }
.list.one { columns: 1; }
@media (max-width: 640px) { .list { columns: 1; } }

/* stupně dokumentace – skutečná posloupnost */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: st; border-top: 2px solid var(--brand); }
.stages li { counter-increment: st; padding: 20px 20px 0 0; }
.stages li::before { content: counter(st); display: block; font-stretch: 125%; font-weight: 700; font-size: 40px; line-height: 1; color: var(--brand); margin-bottom: 12px; }
.stages strong { display: block; font-size: 18px; line-height: 1.3; margin-bottom: 6px; }
.stages span { font-size: 15px; color: #4b5566; }
@media (max-width: 860px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }

/* dlouhá stránka s obsahem vlevo */
.doc { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(24px, 6vw, 96px); align-items: start; }
.toc { position: sticky; top: 104px; font-size: 15px; }
.toc p { font-weight: 600; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.toc a { display: block; padding: 6px 0 6px 16px; text-decoration: none; color: #4b5566; margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); border-left-color: var(--accent); }
.doc article > section { padding: 0 0 48px; margin-bottom: 48px; border-bottom: 1px solid var(--rule); scroll-margin-top: 100px; }
.doc article > section:last-child { border-bottom: 0; margin-bottom: 0; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; } .toc { position: static; } }

/* fotografie a místa pro fotografie (šrafa = řez betonem) */
.figure { margin: 0; }
.figure .ph {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg, transparent 0 9px, rgba(23,35,56,.14) 9px 10px),
    var(--concrete);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  color: #5b6577; font-size: 14px; text-align: center; padding: 16px;
}
.figure .ph span { background: var(--paper); padding: 4px 10px; }
.figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.figure figcaption { font-size: 14px; color: #5b6577; padding-top: 10px; }
.figure.wide .ph, .figure.wide img { aspect-ratio: 16 / 9; }
.tint .figure .ph span { background: var(--concrete); }

.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.figs.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .figs, .figs.two { grid-template-columns: 1fr; } }

/* reference */
.project { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 72px); padding: 56px 0; border-top: 2px solid var(--brand); }
.project:first-child { padding-top: 0; border-top: 0; }
.project .meta { margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; border-top: 1px solid var(--rule); padding-top: 16px; }
.project .meta dt { font-size: 14px; color: #5b6577; }
.project .meta dd { margin: 0; font-weight: 600; }
@media (max-width: 860px) { .project { grid-template-columns: 1fr; } }

.teasers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.teaser h3 { margin: 16px 0 6px; }
.teaser p { margin: 0; color: #3a4557; }
@media (max-width: 760px) { .teasers { grid-template-columns: 1fr; } }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head h2 { margin: 0; }

/* kontakt */
.contact-big { display: grid; gap: 8px; margin: 0 0 32px; }
.contact-big a { font-size: clamp(24px, 3vw, 36px); font-weight: 700; font-stretch: 115%; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-big a:hover { color: var(--steel); text-decoration: underline; }

.dl { margin: 0; display: grid; grid-template-columns: minmax(140px, auto) 1fr; border-top: 1px solid var(--rule); }
.dl dt, .dl dd { padding: 12px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.dl dt { color: #5b6577; font-size: 15px; padding-right: 24px; }
@media (max-width: 520px) { .dl { grid-template-columns: 1fr; } .dl dt { border-bottom: 0; padding-bottom: 0; } }

/* výzva ke kontaktu */
.cta { background: var(--brand); color: #fff; padding: clamp(56px, 7vw, 96px) 0; }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; align-items: end; }
.cta h2 { margin-bottom: .3em; }
.cta p { color: rgba(255,255,255,.92); margin: 0; }
.cta .lines { display: grid; gap: 4px; justify-self: end; text-align: right; }
.cta .lines a { color: #fff; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; font-stretch: 112%; text-decoration: none; }
.cta .lines a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 860px) { .cta .wrap { grid-template-columns: 1fr; } .cta .lines { justify-self: start; text-align: left; } }

/* patička */
.site-footer { background: var(--brand-deep); color: rgba(255,255,255,.85); font-size: 15px; padding: 56px 0 32px; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }
.foot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 40px; }
.foot h2 { font-size: 15px; font-stretch: 100%; font-weight: 600; color: #fff; margin-bottom: 12px; letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot p { margin: 0 0 6px; }
.foot-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.25); font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

.note { font-size: 15px; color: #5b6577; }

/* fotografie – doplňky */
.figure.contain img { object-fit: contain; background: #fff; border: 1px solid var(--rule); }
.brand img { height: 26px; width: auto; }
.brand span { margin-left: 2px; }
.foot-logo { height: auto; width: 220px; margin-bottom: 20px; }
.solo { margin-top: 24px; max-width: 640px; }
.solo .figure img { aspect-ratio: auto; }

/* služby na úvodní stránce – tři sloupce s obrázkem */
.svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); border-top: 2px solid var(--brand); padding-top: 32px; }
.svc-item { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.svc-img { background: #fff; border: 1px solid var(--rule); aspect-ratio: 4 / 3; padding: 16px; display: grid; place-items: center; margin-bottom: 20px; transition: border-color .15s; }
.svc-img img { width: 100%; height: 100%; object-fit: contain; }
.svc-item h3 { margin-bottom: 8px; }
.svc-item p { color: #3a4557; margin-bottom: 14px; }
.svc-item .more { margin-top: auto; color: var(--steel); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.svc-item:hover .svc-img { border-color: var(--brand); }
.svc-item:hover .more { color: var(--ink); }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } }
.svc-img { position: relative; padding: 0; }
.svc-img img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }

/* tým a zkušenosti */
.team { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 96px); border-top: 2px solid var(--brand); padding-top: 40px; }
.team-nums { display: grid; gap: 32px; align-content: start; }
.num strong { display: block; font-size: clamp(64px, 8vw, 112px); line-height: .9; font-weight: 800; font-stretch: 125%; color: var(--brand); letter-spacing: -0.03em; }
.num span { display: block; margin-top: 8px; max-width: 24ch; color: #3a4557; }
.num + .num { padding-top: 32px; border-top: 1px solid var(--rule); }
.team-exp h2 { max-width: 18ch; }
.exp { margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.exp div { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.exp dt { font-size: 15px; color: #5b6577; }
.exp dd { margin: 2px 0 0; font-size: 19px; font-weight: 600; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; row-gap: 48px; } .team-nums { grid-template-columns: 1fr 1fr; } .num + .num { padding-top: 0; border-top: 0; } }
@media (max-width: 520px) { .exp { grid-template-columns: 1fr; } }

/* kontakt – e-mail vždy na jednom řádku, velikost podle šířky sloupce */
.contact-big { container-type: inline-size; }
.contact-big a { white-space: nowrap; overflow-wrap: normal; font-stretch: 105%; font-size: clamp(18px, 7cqi, 36px); }
