/* ============================================================
   KREIA GROUP — stylesheet v3
   Brand brief: sans-serif (Segoe UI), světlý tón, minimalismus,
   sériózní, barvy z loga (zelená, tyrkys, žlutá, rudá).
   Žádná zlato, žádné gradienty, čistý bílý základ.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Neutrals */
  --bg:           #FFFFFF;
  --bg-subtle:    #F7F7F5;
  --bg-card:      #F0F0EE;
  --border:       #E4E4E1;
  --border-light: #EBEBEA;

  /* Text */
  --text:         #1A1A18;
  --text-2:       #3D3D3A;
  --text-3:       #6B6B67;
  --text-4:       #9A9A96;

  /* Brand barvy z loga — střídmě */
  --green:        #1E5C3A;   /* tmavá zelená — primární akce, nadpisy */
  --green-bg:     #EBF5EF;
  --teal:         #007D7D;   /* tyrkys — sekundární, ikony, role */
  --teal-bg:      #E5F5F5;
  --yellow:       #C8A800;   /* tlumená žlutá — jemné akcenty */
  --yellow-bg:    #FDF8E1;
  --red:          #C0392B;   /* červená — jen velmi jemně, není dominantní */

  /* Typografie — Segoe UI stack (MS Office kompatibilní) */
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
          Arial, 'Noto Sans', sans-serif;

  --radius-sm: 3px;
  --radius:    6px;
  --radius-lg: 10px;
  --radius-xl: 16px;

  --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
  --shadow:    0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 36px rgba(0,0,0,0.10);

  --trans: 160ms ease;
  --max-w: 1200px;
  --nav-h: 64px;
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg); color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === SKIP === */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--green); color: #fff;
  padding: .5rem 1rem; border-radius: var(--radius); font-weight: 600;
  z-index: 9999; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* === TYPO === */
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(1.9rem, 4vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
h4 { font-size: 0.92rem; }

p  { margin-bottom: 1rem; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
a  { color: var(--green); text-decoration: none; transition: color var(--trans); }
a:hover { color: #155c2e; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: .3rem; }
strong { font-weight: 700; }

/* === LAYOUT === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.25rem);
}
.section          { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--subtle  { background: var(--bg-subtle); }
.section--green   { background: var(--green); }
.section--green *:not(.btn):not(.tag):not(.label) { color: rgba(255,255,255,.78); }
.section--green h1,.section--green h2,.section--green h3,.section--green h4 { color: #fff; }
.section--green .label { color: rgba(255,255,255,.44); }

.section-hd { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.section-hd p { color: var(--text-2); font-size: 1rem; margin-top: .5rem; }
.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }

/* overline label */
.label {
  display: block; font-size: .7rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-4); margin-bottom: .55rem;
}
.label--teal { color: var(--teal); }
.label--green { color: var(--green); }

/* grids */
.g2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px,1fr)); gap: 1rem; }
.g3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1rem; }
.g4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: .875rem; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .6rem 1.35rem;
  font-family: var(--font); font-size: .85rem; font-weight: 600; line-height: 1;
  border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: all var(--trans);
}
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.btn svg { width: 13px; height: 13px; flex-shrink: 0; }

.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: #155c2e; border-color: #155c2e; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30,92,58,.25); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }

.btn-ghost-w { background: transparent; color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.3); }
.btn-ghost-w:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); }

/* White button on green bg */
.btn-white { background: #fff; color: var(--green); border-color: #fff; }
.btn-white:hover { background: #f0f0ee; color: var(--green); }

.btn-row { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }

/* === HEADER / NAV === */
#site-header {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--trans);
}
#site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--max-w); margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.25rem);
}
.nav-logo img { height: 51px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: .4rem .72rem;
  font-size: .85rem; font-weight: 500;
  color: var(--text-3); border-radius: var(--radius);
  transition: color var(--trans);
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 700; }
.nav-cta { margin-left: .8rem; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .55rem .6rem; min-width: 44px; min-height: 44px; color: var(--text); }

@media (max-width: 740px) {
  .nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: .6rem 1rem; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .65rem .75rem; width: 100%; }
  .nav-toggle { display: flex; align-items: center; }
  .nav-cta { display: none; }
}

/* === HERO === */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(460px, 60vw, 640px);
  display: flex; align-items: center;
  background: var(--green);
}

/* Foto pozadí */
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  background-repeat: no-repeat;
}
/* Překrytí — zajišťuje čitelnost textu na fotce */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,40,22,.82) 0%, rgba(10,40,22,.55) 55%, rgba(10,40,22,.25) 100%);
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto; width: 100%;
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 2.25rem);
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.75); margin-bottom: 1rem;
}
.hero-eyebrow::before { content: ''; display: block; width: 20px; height: 1.5px; background: var(--teal); }

.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: #B4E8CC; }

.hero-lead {
  font-size: clamp(.95rem, 1.4vw, 1.08rem);
  color: rgba(255,255,255,.88);
  max-width: 52ch; margin-bottom: .75rem; line-height: 1.75;
}

.hero-stats {
  display: flex; gap: clamp(1rem, 3vw, 2rem); flex-wrap: wrap;
  margin-top: 2.25rem; padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stat-val { display: block; font-size: 1.65rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: .18rem; }
.hero-stat-lbl { font-size: .7rem; color: rgba(255,255,255,.52); font-weight: 600; letter-spacing: .04em; }

/* === KARTY SLUŽEB === */
.service-card {
  padding: 1.5rem; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: border-color var(--trans), box-shadow var(--trans);
}
.service-card:hover { border-color: #b8d8c3; box-shadow: var(--shadow-sm); }

.service-icon {
  width: 36px; height: 36px; border-radius: var(--radius);
  background: var(--green-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--green); margin-bottom: .9rem; flex-shrink: 0;
}
.service-icon svg { width: 17px; height: 17px; }

.service-card h3 { font-size: .92rem; font-weight: 700; margin-bottom: .4rem; }
.service-card p { color: var(--text-2); font-size: .78rem; line-height: 1.55; margin: 0; }
.service-card .tag-row { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .875rem; }

/* === TAGY === */
.tag {
  display: inline-block; padding: .16rem .5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 100px; font-size: .7rem; font-weight: 700;
  color: var(--text-3); letter-spacing: .02em;
}
.tag--green { background: var(--green-bg); border-color: #bcd9c8; color: var(--green); }
.tag--teal  { background: var(--teal-bg);  border-color: #aad4d4; color: var(--teal); }
.tag--yel   { background: var(--yellow-bg); border-color: #e0d07a; color: #7d6800; }

/* === "PRO KOHO" karty na zeleném bg === */
.aud-card {
  padding: 1.375rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  transition: background var(--trans), border-color var(--trans);
}
.aud-card:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); }
.aud-icon {
  width: 34px; height: 34px; border-radius: var(--radius);
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.75); margin-bottom: .85rem;
}
.aud-icon svg { width: 16px; height: 16px; }
.aud-card h3 { font-size: .92rem; font-weight: 700; color: #fff; margin-bottom: .35rem; }
.aud-card p  { font-size: .85rem; color: rgba(255,255,255,.62); line-height: 1.65; margin: 0; }

/* === PROCES === */
.proc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px,1fr)); position: relative; }
.proc-steps::before { content: ''; position: absolute; top: 17px; left: 17px; right: 0; height: 1px; background: var(--border); z-index: 0; }
.proc-step { padding: 2.875rem 1.25rem 0 0; position: relative; }
.proc-num {
  position: absolute; top: 0; left: 0;
  width: 35px; height: 35px; border-radius: 50%; z-index: 1;
  background: var(--bg); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 800; color: var(--text-3);
  transition: border-color var(--trans), color var(--trans);
}
.proc-step:hover .proc-num { border-color: var(--green); color: var(--green); }
.proc-step h4 { font-size: .85rem; margin-bottom: .25rem; }
.proc-step p  { font-size: .78rem; color: var(--text-3); margin: 0; line-height: 1.6; }

@media (max-width: 640px) {
  .proc-steps { gap: 1.25rem; }
  .proc-steps::before { display: none; }
  .proc-step { padding: 0 0 0 2.7rem; }
  .proc-num { width: 30px; height: 30px; font-size: .7rem; }
}

/* === REFERENCE KARTY === */
.ref-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.2rem;
  display: flex; flex-direction: column;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.ref-card:hover { border-color: #b8d8c3; box-shadow: var(--shadow-xs); }
.ref-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .65rem; margin-bottom: .4rem; }
.ref-card h3 { font-size: .78rem; font-weight: 700; color: var(--text); line-height: 1.4; flex: 1; }
.ref-year { font-size: .7rem; font-weight: 800; color: var(--text-4); background: var(--bg-card); padding: .15rem .42rem; border-radius: var(--radius-sm); white-space: nowrap; }
.ref-client { font-size: .78rem; font-weight: 400; font-style: italic; color: var(--text-3); margin-bottom: .55rem; }
.ref-tags { display: flex; flex-wrap: wrap; gap: .28rem; margin-top: auto; padding-top: .75rem; }

/* === FILTRY === */
.filter-panel {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.2rem 1.35rem;
  margin-bottom: 1rem;
}
.filter-row { display: flex; align-items: flex-start; gap: .65rem; flex-wrap: wrap; padding: .44rem 0; }
.filter-row + .filter-row { border-top: 1px solid var(--border-light); }
.filter-lbl { font-size: .7rem; font-weight: 800; color: var(--text-4); text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; min-width: 72px; padding-top: .28rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .27rem; }

.chip {
  display: inline-block; padding: .16rem .5rem;
  border-radius: 100px; border: 1px solid var(--border);
  background: var(--bg-card); font-size: .7rem; font-weight: 700;
  color: var(--text-3); letter-spacing: .02em;
  cursor: pointer; transition: all var(--trans); user-select: none;
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }

.filter-toolbar { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; margin-bottom: .8rem; }

.search-wrap { position: relative; flex: 1; min-width: 160px; max-width: 280px; }
.search-wrap svg { position: absolute; left: .62rem; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; color: var(--text-4); pointer-events: none; }
.search-in {
  width: 100%; padding: .46rem .75rem .46rem 1.95rem;
  border: 1px solid var(--border); border-radius: 100px;
  font-family: var(--font); font-size: .85rem;
  background: var(--bg); color: var(--text);
  transition: border-color var(--trans), box-shadow var(--trans);
}
.search-in:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,92,58,.09); }

.view-toggle { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; flex-shrink: 0; margin-left: auto; }
.view-btn { padding: .38rem .52rem; background: var(--bg); border: none; cursor: pointer; color: var(--text-4); transition: background var(--trans), color var(--trans); display: flex; align-items: center; }
.view-btn.active, .view-btn:hover { background: var(--bg-card); color: var(--text); }
.view-btn svg { width: 13px; height: 13px; }

.refs-count { font-size: .78rem; color: var(--text-4); margin-bottom: .75rem; }

/* ref tabulka */
.ref-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.ref-table th { text-align: left; padding: .58rem .78rem; background: var(--bg-subtle); color: var(--text-3); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1.5px solid var(--border); white-space: nowrap; }
.ref-table td { padding: .68rem .78rem; border-bottom: 1px solid var(--border-light); vertical-align: top; line-height: 1.42; }
.ref-table tr:hover td { background: var(--bg-subtle); }
.ref-table .col-n { font-weight: 600; }
.ref-table .col-c { color: var(--text-3); font-size: .78rem; }
@media (max-width: 640px) {
  .ref-table th:nth-child(4), .ref-table td:nth-child(4),
  .ref-table th:nth-child(5), .ref-table td:nth-child(5) { display: none; }
  .ref-table th, .ref-table td { padding: .5rem .5rem; font-size: .78rem; }
}
.empty-state { text-align: center; padding: 3rem 2rem; color: var(--text-4); font-size: .85rem; }

/* === TÝM === */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1rem; }
.team-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.35rem; text-align: center; transition: box-shadow var(--trans); }
.team-card:hover { box-shadow: var(--shadow-sm); }
.team-av {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--green-bg); border: 1.5px solid #bcd9c8;
  margin: 0 auto .75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: var(--green); overflow: hidden;
}
.team-av img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: .92rem; font-weight: 700; margin-bottom: .1rem; }
.team-role { font-size: .7rem; color: var(--teal); font-weight: 800; text-transform: uppercase; letter-spacing: .09em; margin-bottom: .55rem; }
.team-card p { font-size: .78rem; color: var(--text-2); line-height: 1.6; }

/* === HODNOTY === */
.vals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.val-item { padding: 1.35rem; background: var(--bg); transition: background var(--trans); }
.val-item:hover { background: var(--bg-subtle); }
.val-item h4 { font-size: .85rem; margin-bottom: .28rem; }
.val-item p { font-size: .78rem; color: var(--text-2); margin: 0; }

/* === KONTAKT === */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; gap: 2rem; } }

.need-list { list-style: none; padding: 0; margin: 1rem 0; }
.need-list li { display: flex; align-items: flex-start; gap: .58rem; padding: .48rem 0; border-bottom: 1px solid var(--border-light); font-size: .85rem; color: var(--text-2); }
.need-list li::before { content: ''; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex-shrink: 0; margin-top: .42rem; }

.form-card { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: clamp(1.375rem, 2.5vw, 2rem); }
.form-row { margin-bottom: .95rem; }
.form-row label { display: block; font-size: .78rem; font-weight: 700; color: var(--text-3); margin-bottom: .28rem; }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: .56rem .78rem; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font); font-size: .85rem; background: var(--bg); color: var(--text); transition: border-color var(--trans), box-shadow var(--trans); appearance: none; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,92,58,.09); }
.form-row textarea { resize: vertical; min-height: 105px; line-height: 1.6; }
.form-row select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%236B6B67' d='M5 6L0 0h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .82rem center; padding-right: 2rem; }
.form-2c { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 480px) { .form-2c { grid-template-columns: 1fr; } }
.form-note { font-size: .7rem; color: var(--text-4); margin-bottom: 1rem; }

.form-ok { display: none; text-align: center; padding: 1.75rem 1rem; }
.form-ok-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--green-bg); border: 1.5px solid #bcd9c8; display: flex; align-items: center; justify-content: center; margin: 0 auto .75rem; color: var(--green); }
.form-ok h3 { font-size: .92rem; margin-bottom: .3rem; }
.form-ok p  { font-size: .85rem; color: var(--text-2); }

/* === CTA STRIP === */
.cta-strip { background: var(--green); padding: clamp(3rem, 5.5vw, 4.5rem) 0; text-align: center; position: relative; overflow: hidden; }
.cta-strip::before { content: ''; position: absolute; inset: 0; background: url('../assets/workshop3.jpg') center/cover no-repeat; opacity: .08; pointer-events: none; }
.cta-strip .container { position: relative; z-index: 1; }
.cta-strip h2 { color: #fff; }
.cta-strip p { color: rgba(255,255,255,.68); max-width: 48ch; margin: .65rem auto 1.6rem; }

/* === FOOTER === */
footer { background: #0C1E12; color: rgba(255,255,255,.72); padding: 2.75rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.25rem; margin-bottom: 1.875rem; align-items: start; }
.footer-brand { margin-top: -3.25rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px)  { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 135px; width: auto; margin-bottom: .4rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .78rem; line-height: 1.75; max-width: 27ch; }
.footer-col h4 { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: .6rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .36rem; }
.footer-links a { color: rgba(255,255,255,.72); font-size: .78rem; transition: color var(--trans); }
.footer-links a:hover { color: #fff; }
.footer-ico { font-size: .78rem; color: rgba(255,255,255,.5); line-height: 1.9; }
.footer-ico a { color: rgba(255,255,255,.72); }
.footer-ico a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.1rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .78rem; color: rgba(255,255,255,.4); }

/* === PAGE HEADER === */
.page-header { background: var(--bg-subtle); border-bottom: 1px solid var(--border); padding: clamp(2.25rem, 5vw, 4rem) 0; }
.page-header h1 { font-size: clamp(1.65rem, 3vw, 2.6rem); margin-bottom: .5rem; }
.page-header p { color: var(--text-2); max-width: 58ch; font-size: 1rem; margin: 0; }

/* === DARK sekce kompetence / výstupy === */
.comp-list { list-style: none; padding: 0; display: grid; gap: .42rem; }
.comp-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .85rem; color: rgba(255,255,255,.70); line-height: 1.5; }
.comp-list li::before { content: ''; display: block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(0,125,125,.7); flex-shrink: 0; margin-top: .15rem; }

.out-item { padding: .9rem 1.1rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); margin-bottom: .55rem; }
.out-item strong { display: block; color: rgba(255,255,255,.88); font-size: .85rem; margin-bottom: .16rem; }
.out-item span { font-size: .78rem; color: rgba(255,255,255,.48); }

/* === ANIMACE === */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.anim { animation: fadeUp .5s ease both; }
.d1 { animation-delay: .07s; } .d2 { animation-delay: .14s; }
.d3 { animation-delay: .21s; } .d4 { animation-delay: .28s; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-subtle); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-4); }

@media print { #site-header, footer, .cta-strip { display: none; } }

/* === CAROUSEL === */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  user-select: none;
}
.carousel-track {
  display: flex;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.carousel-slide {
  min-width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
}
.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  pointer-events: none;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; color: var(--text);
  transition: background var(--trans), box-shadow var(--trans);
  box-shadow: var(--shadow-sm);
}
.carousel-btn:hover { background: #fff; box-shadow: var(--shadow); }
.carousel-btn svg { width: 16px; height: 16px; }
.carousel-btn--prev { left: .75rem; }
.carousel-btn--next { right: .75rem; }
.carousel-dots {
  position: absolute; bottom: .75rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .4rem; z-index: 2;
}
.carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.5); border: none; cursor: pointer;
  transition: background var(--trans), transform var(--trans);
  padding: 0;
}
.carousel-dot.active { background: #fff; transform: scale(1.25); }

/* Grid carousel – 4 photos per slide */
.carousel--grid { max-width: 100%; }
.carousel-slide--group { aspect-ratio: auto; }
.carousel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  padding: .5rem;
}
.carousel-grid img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; display: block;
  border-radius: calc(var(--radius-lg) - 4px);
}
@media (max-width: 700px) {
  .carousel-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === ILLUSTRATIVE BG SECTIONS === */
.section--photo-bg {
  position: relative; overflow: hidden;
}
.section--photo-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .06;
  pointer-events: none; z-index: 0;
}
.section--photo-bg > .container { position: relative; z-index: 1; }

/* === FIRMA KARTY (fakturační) === */
.company-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 1rem; }
.company-card {
  padding: 1.35rem; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: box-shadow var(--trans);
}
.company-card:hover { box-shadow: var(--shadow-sm); }
.company-logo { height: 36px; width: auto; display: block; margin-bottom: 1rem; object-fit: contain; object-position: left; }
.company-card h3 { font-size: .92rem; font-weight: 700; margin-bottom: .7rem; }
.company-ico { font-size: .78rem; color: var(--text-2); line-height: 2.0; }
.company-ico strong { font-weight: 700; color: var(--text-4); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; display: block; margin-top: .35rem; }
