/* ─────────────────────────────────────────
   ALES SKOUPY — main.css
   Extrahováno z koucink.html + ai-adopce.html
───────────────────────────────────────── */

/* ─── Google Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');

/* ─── SHARED TOKENS ─── */
:root {
  --bg-base:        #141414;
  --bg-surface:     #181818;
  --accent:         #C8A46A;
  --accent-faint:   rgba(200,164,106,0.50);
  --text-primary:   #EEEEEE;
  --text-secondary: #999999;
  --text-sec:       #999999;
  --border:         rgba(255,255,255,0.06);
  --border-solid:   #1E1E1E;
  --font:           'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ─── SPACING SYSTEM ───
     Změň POUZE tyto tokeny — prvky v sekcích je sdílí automaticky.
     Sekce:    --section-pt/pb, --pad-x, --inner-pt
     Vnitřní:  --eyebrow-mb (pod label), --line-mb (pod zlatou čárou),
               --block-mb (pod intro textem), --header-mb (pod nadpisem sekce)
  */
  --pad-x:      max(48px, calc((100% - 1200px) / 2));
  --section-pt: 48px;   /* prostor nad ghost textem (ghost je teď v toku) */
  --section-pb: 112px;
  --inner-pt:   0px;    /* již není potřeba kompenzovat absolutní ghost */
  --eyebrow-mb: 48px;
  --line-mb:    72px;
  --block-mb:   48px;
  --header-mb:  56px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; background: #141414; }
body { font-family: var(--font); background: #141414 !important; -webkit-font-smoothing: antialiased; margin: 0 !important; padding: 0 !important; }
/* WordPress admin bar kompenzace */
body.admin-bar { background: #141414 !important; }
body.admin-bar nav { top: 32px; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ─── PAGE TOGGLE ─── */
.page-section { display: none; }
.page-section.active { display: block; }

/* ─── COACHING BASE ─── */
#page-koucing { color: var(--text-secondary); font-size: 15px; font-weight: 400; line-height: 1.8; }

/* ─── AI BASE ─── */
#page-ai { color: var(--text-primary); font-size: 0.9375rem; line-height: 1.7; }

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20,20,20,0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  height: 56px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad-x);
}
.nav-left { display: flex; align-items: center; gap: 20px; }
.nav-brand { font-size: 13px; font-weight: 500; color: #8A8A8A; letter-spacing: 0.01em; text-decoration: none; cursor: pointer; transition: color 0.2s; }
.nav-brand:hover { color: var(--text-primary); }
.nav-tabs {
  display: flex; gap: 2px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px; padding: 3px;
}
.nav-tab {
  font-family: var(--font); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #555; background: transparent; border: none;
  padding: 5px 14px; border-radius: 2px; cursor: pointer; transition: all 0.15s;
  text-decoration: none; display: inline-block; line-height: 1.2;
}
.nav-tab.active { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.nav-tab:hover:not(.active) { color: #aaa; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #8A8A8A; transition: color 0.15s; text-decoration: none; }
.nav-links a:hover { color: var(--text-primary); }
.nav-cta { color: var(--accent) !important; }

/* ─── GHOST ───
   position: relative = vstupuje do toku, obsah je vždy až POD ghost textem.
   margin-left posune text mírně doleva (dekorativní přesah), overflow:hidden sekce ho ořízne.
*/
.ghost {
  display: block; position: relative;
  font-weight: 900; line-height: 1;
  pointer-events: none; user-select: none; white-space: nowrap; z-index: 0;
}
/* Ghost — JS (fitGhosts) nastaví font-size přesně dle skutečné šířky textu (el.offsetWidth).
   Okraje symetrické: 3 px zleva i zprava od viewportu.
   CSS font-size je fallback bez JS. */
#page-koucing .ghost,
#page-ai .ghost {
  font-size: max(40px, 16vw); /* fallback — JS override */
  color: rgba(255,255,255,0.05);
  text-align: left;
  margin-left: calc(-1 * var(--pad-x) + 3px);
  margin-right: calc(-1 * var(--pad-x) + 3px);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

/* ─── EYEBROW (AI) ─── */
.eyebrow {
  display: block; font-size: 11px; font-weight: 500;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--eyebrow-mb);
}

/* ─── AI PAD ─── */
#page-ai .pad {
  padding: var(--section-pt) var(--pad-x) var(--section-pb);
  position: relative; overflow: hidden;
}
#page-ai .pad--surface { background: var(--bg-surface); }

/* ============================================================
   COACHING CSS  (#page-koucing scoping)
   ============================================================ */

#page-koucing .s-line {
  width: 44px; height: 1px; background: var(--accent);
  opacity: 0.6; margin-top: 24px; margin-bottom: var(--line-mb);
}
#page-koucing .spoluprace-header .s-line { margin-left: auto; margin-right: auto; }

#page-koucing .s-title {
  font-size: clamp(44px, 5.5vw, 64px); font-weight: 400;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--text-primary); line-height: 1.15;
}

#page-koucing .btn {
  display: inline-block; background: transparent; color: var(--accent);
  border: 1px solid var(--accent-faint); font-family: var(--font);
  font-size: 10px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; padding: 13px 28px;
  cursor: pointer; transition: border-color .2s, background .2s;
}
#page-koucing .btn:hover { border-color: var(--accent); background: rgba(200,164,106,0.06); }
#page-koucing .btn-tel {
  display: inline-block; background: transparent; color: var(--accent);
  border: 1px solid var(--accent-faint); font-family: var(--font);
  font-size: 10px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; padding: 13px 28px;
  cursor: pointer; transition: border-color .2s, background .2s;
}
#page-koucing .btn-tel:hover { border-color: var(--accent); background: rgba(200,164,106,0.06); }

/* Coaching hero */
#kc-hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
}
#kc-hero .hero-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 67%;
  overflow: hidden;
}
#kc-hero .hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 10%;
  transform: scale(1.45);
  transform-origin: 50% 18%;
  display: block;
}
#kc-hero .hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right,
      rgba(20,20,20,1.0)  0%,
      rgba(20,20,20,1.0) 29%,
      rgba(20,20,20,0.6) 41%,
      rgba(20,20,20,0.0) 58%),
    linear-gradient(to left,
      rgba(20,20,20,0.95)  0%,
      rgba(20,20,20,0.55)  7%,
      rgba(20,20,20,0.0)  22%),
    linear-gradient(to top,
      rgba(20,20,20,1.0)   0%,
      rgba(20,20,20,0.75)  9%,
      rgba(20,20,20,0.0)  28%),
    linear-gradient(to bottom,
      rgba(20,20,20,0.4)  0%,
      rgba(20,20,20,0.0) 14%);
}
#kc-hero .hero-copy {
  position: relative; z-index: 2;
  padding: 72px 0 80px var(--pad-x);
  width: 50%;
  min-height: 560px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
#kc-hero .hero-label {
  font-size: 10px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 22px;
}
#kc-hero .hero-h1 {
  font-size: clamp(46px, 5.8vw, 70px); font-weight: 400;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-primary); line-height: 1.1; margin-bottom: 32px;
}
#kc-hero .hero-perex { font-size: 15px; color: var(--text-secondary); line-height: 1.8; max-width: 380px; margin-bottom: 40px; }

/* Coaching intro */
#kc-intro { position: relative; overflow: hidden; padding: var(--section-pt) var(--pad-x) var(--section-pb); }
#page-koucing .intro-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--eyebrow-mb); position: relative; z-index: 1; }
#page-koucing .intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; position: relative; z-index: 1; align-items: start; }
#page-koucing .intro-left { padding-top: var(--inner-pt); }
#page-koucing .intro-left-h2 { font-size: clamp(36px, 3.6vw, 52px); font-weight: 400; line-height: 1.1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-primary); margin-bottom: 24px; }
#page-koucing .intro-left-line { width: 48px; height: 1px; background: var(--accent); margin-bottom: 32px; }
#page-koucing .intro-quote { color: var(--text-secondary); font-size: 15px; line-height: 1.8; }
#page-koucing .intro-cards { display: flex; flex-direction: column; gap: 0; padding-top: var(--inner-pt); }
#page-koucing .intro-card { padding: 40px 0; border-top: 1px solid var(--border); }
#page-koucing .intro-card:last-child { border-bottom: 1px solid var(--border); }
#page-koucing .intro-card-eyebrow { font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-sec); margin-bottom: 12px; }
#page-koucing .intro-card-title { font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-primary); margin-bottom: 12px; }
#page-koucing .intro-card-text { color: var(--text-secondary); font-size: 14px; line-height: 1.8; }

/* Coaching pribeh */
#kc-pribeh { padding: 0; }
#page-koucing .pribeh-overlap {
  display: grid; grid-template-columns: 5fr 7fr;
  max-width: 1200px; margin-left: auto; margin-right: auto;
}
#page-koucing .pribeh-photo-wrap { height: 320px; overflow: hidden; }
#page-koucing .pribeh-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
#page-koucing .pribeh-heading-wrap { display: flex; flex-direction: column; justify-content: flex-end; padding: 0 48px 24px; }
#page-koucing .pribeh-h2 {
  font-size: clamp(44px, 5.5vw, 64px); font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-primary); line-height: 1.08;
}
#page-koucing .pribeh-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  padding: 72px 48px 56px;
  max-width: 1200px; margin-left: auto; margin-right: auto;
}
#page-koucing .pribeh-quote {
  padding: 56px 48px 16px; font-size: clamp(22px, 3vw, 34px); font-weight: 400;
  letter-spacing: 0; text-transform: none;
  color: var(--accent); line-height: 1.4;
  max-width: 1200px; margin-left: auto; margin-right: auto;
}
#page-koucing .pribeh-link {
  padding: 0 48px 80px; font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); display: flex; align-items: center; gap: 8px;
  max-width: 1200px; margin-left: auto; margin-right: auto;
}
#page-koucing .pribeh-link:hover { opacity: 0.7; }

/* Coaching spoluprace */
#kc-spoluprace {
  background: var(--bg-surface); position: relative; overflow: hidden;
  padding: var(--section-pt) var(--pad-x) var(--section-pb);
}
#page-koucing .spoluprace-header { position: relative; z-index: 1; text-align: center; }
#page-koucing .kroky { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
#page-koucing .krok { display: grid; grid-template-columns: 108px 1fr; align-items: start; padding: 60px 0; border-bottom: 1px solid #1E1E1E; }
#page-koucing .krok:last-of-type { border-bottom: none; }
#page-koucing .krok-num { font-size: clamp(56px, 9.5vw, 88px); font-weight: 900; color: rgba(255,255,255,0.08); line-height: 1; padding-top: 4px; }
#page-koucing .krok-content { padding-top: 4px; }
#page-koucing .krok-label { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: #CCCCCC; margin-bottom: 12px; }
#page-koucing .krok-text { font-size: 15px; color: var(--text-secondary); line-height: 1.8; max-width: 560px; }
#page-koucing .cenik-info { margin-top: var(--block-mb); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: #555; position: relative; z-index: 1; text-align: center; }
#page-koucing .spoluprace-cta { margin-top: var(--eyebrow-mb); position: relative; z-index: 1; text-align: center; }

/* Coaching reference */
#kc-reference { position: relative; overflow: hidden; padding: var(--section-pt) var(--pad-x) var(--section-pb); }
#page-koucing .ref-header { position: relative; z-index: 1; margin-bottom: var(--header-mb); }
#page-koucing .ref-sub { font-size: 12px; letter-spacing: 0.08em; color: #888; margin-top: 14px; }
/* Carousel */
#page-koucing .ref-carousel { position: relative; z-index: 1; }
#page-koucing .ref-track-wrap { overflow: hidden; }
#page-koucing .ref-track { display: flex; gap: 16px; transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
#page-koucing .ref-card { flex: 0 0 calc(50% - 8px); background: var(--bg-surface); padding: 40px 44px; display: flex; flex-direction: column; min-height: 260px; }
/* Avatar */
#page-koucing .ref-avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; margin-bottom: 28px; background: #2a2a2a; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
#page-koucing .ref-avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }
#page-koucing .ref-avatar-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
#page-koucing .ref-avatar-placeholder svg { width: 32px; height: 32px; opacity: 0.25; color: #fff; }
/* Card content */
#page-koucing .ref-quote { font-size: 14px; font-style: italic; color: var(--text-secondary); line-height: 1.85; margin-bottom: 28px; flex: 1; }
#page-koucing .ref-author { border-top: 1px solid var(--border); padding-top: 20px; margin-top: auto; }
#page-koucing .ref-name { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: #ccc; margin-bottom: 4px; }
#page-koucing .ref-role { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #444; }
/* Nav */
#page-koucing .ref-nav { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
#page-koucing .ref-btn { width: 44px; height: 44px; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color 0.2s, color 0.2s; flex-shrink: 0; }
#page-koucing .ref-btn:hover { border-color: var(--accent); color: var(--accent); }
#page-koucing .ref-btn:disabled { opacity: 0.25; cursor: default; pointer-events: none; }
#page-koucing .ref-dots { display: flex; gap: 8px; margin-left: 8px; }
#page-koucing .ref-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); cursor: pointer; border: none; transition: background 0.2s; padding: 0; }
#page-koucing .ref-dot.active { background: var(--accent); }

/* Coaching kontakt */
#kc-kontakt { background: var(--bg-surface); padding: var(--section-pt) var(--pad-x) var(--section-pb); }
#kc-kontakt .s-title { white-space: nowrap; }
#page-koucing .kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; padding-top: var(--inner-pt); }
#page-koucing .kontakt-detail { margin-top: 32px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-secondary); }
#page-koucing .kontakt-detail a { color: var(--accent); transition: opacity .2s; }
#page-koucing .kontakt-detail a:hover { opacity: 0.7; }
#page-koucing .kontakt-intro { font-size: 15px; color: var(--text-secondary); line-height: 1.8; max-width: 500px; margin-bottom: var(--block-mb); }
#page-koucing .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
#page-koucing .form-field { display: flex; flex-direction: column; }
#page-koucing .form-field input,
#page-koucing .form-field textarea {
  background: transparent; border: none; border-bottom: 1px solid #222;
  color: var(--text-primary); font-family: var(--font);
  font-size: 15px; padding: 12px 0; outline: none; width: 100%; transition: border-color .2s;
}
#page-koucing .form-field input:focus,
#page-koucing .form-field textarea:focus { border-bottom-color: var(--accent); }
#page-koucing .form-field input::placeholder,
#page-koucing .form-field textarea::placeholder { color: rgba(255,255,255,0.25); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
#page-koucing .form-field textarea { resize: none; height: 100px; line-height: 1.7; }
#page-koucing .form-full { margin-bottom: 24px; }
#page-koucing .form-submit { margin-top: 40px; }

/* Coaching footer CTA */
#page-koucing .footer-cta { border-top: 1px solid #1A1A1A; padding: var(--section-pt) var(--pad-x); text-align: center; }
#page-koucing .footer-cta-heading { font-size: clamp(44px, 5.5vw, 64px); font-weight: 400; line-height: 1.15; letter-spacing: 0.10em; text-transform: uppercase; color: var(--text-primary); margin-bottom: 16px; }
#page-koucing .footer-cta-sub { font-size: 15px; color: var(--text-secondary); margin-bottom: 40px; }

/* Coaching footer */
#page-koucing footer { border-top: 1px solid #1A1A1A; padding: 28px var(--pad-x); display: flex; justify-content: space-between; align-items: center; }
#page-koucing .footer-logo { font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-primary); }
#page-koucing .footer-nav { display: flex; gap: 28px; list-style: none; }
#page-koucing .footer-nav a { font-size: 10px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: #2A2A2A; transition: color .2s; }
#page-koucing .footer-nav a:hover { color: var(--text-secondary); }
#page-koucing .footer-copy { font-size: 10px; letter-spacing: 0.06em; color: #666666; }

/* ============================================================
   AI KOMPAS CSS  (#page-ai / #ak-* scoping)
   ============================================================ */

#page-ai .s-line { width: 40px; height: 1px; background: var(--accent); margin-top: 24px; margin-bottom: 8px; }
#page-ai .steps-header .s-line { margin-left: auto; margin-right: auto; }

#page-ai .btn {
  display: inline-block; padding: 13px 28px; font-family: var(--font);
  font-size: 11px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; border-radius: 2px; transition: all 0.18s; cursor: pointer;
}
#page-ai .btn-primary { background: var(--accent); color: #141414; border: 1px solid var(--accent); }
#page-ai .btn-primary:hover { background: var(--text-primary); color: #141414; border-color: var(--text-primary); }
#page-ai .btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent-faint); }
#page-ai .btn-outline:hover { border-color: var(--accent); background: rgba(200,164,106,0.08); }
#page-ai .btn-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* AI hero */
#ak-hero {
  padding: 160px var(--pad-x) 128px;
  display: block;
  position: relative; overflow: hidden;
}
#ak-hero .hero-content { max-width: 1100px; position: relative; z-index: 1; }
#ak-hero .hero-label { font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 32px; }
#ak-hero .hero-h1 { font-size: clamp(46px, 5.8vw, 70px); font-weight: 400; line-height: 1.1; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-primary); }
#ak-hero .hero-perex { margin-top: 24px; font-size: 15px; color: var(--text-sec); line-height: 1.8; max-width: 420px; }
#ak-hero .hero-micro { margin-top: 28px; font-size: 13px; color: rgba(150,150,150,0.8); }

/* AI problem */
#ak-problem { position: relative; overflow: hidden; }
#page-ai .problem-top { position: relative; z-index: 1; margin-bottom: var(--header-mb); }
#page-ai .problem-top h2 { font-size: clamp(44px, 5.5vw, 64px); font-weight: 400; line-height: 1.2; letter-spacing: 0.10em; text-transform: uppercase; color: var(--text-primary); max-width: 720px; margin-top: 16px; }
#page-ai .problem-grid { display: grid; grid-template-columns: 1fr 2fr; position: relative; z-index: 1; gap: 80px; align-items: start; border-top: 1px solid var(--border); padding-top: 48px; }
#page-ai .problem-stat { display: flex; flex-direction: column; gap: 4px; }
#page-ai .stat-num { font-size: clamp(72px, 10vw, 96px); font-weight: 900; color: var(--accent); line-height: 1; letter-spacing: 0.02em; }
#page-ai .stat-label { font-size: 12px; color: var(--text-sec); margin-top: 8px; }
#page-ai .problem-body { color: var(--text-sec); font-size: 15px; line-height: 1.9; }
#page-ai .problem-body p + p { margin-top: 20px; }

/* AI outputs */
#page-ai .outputs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; position: relative; z-index: 1; margin-top: 96px; }
#page-ai .output-item { padding: 60px 60px 60px 0; border-top: 1px solid var(--border); }
#page-ai .output-item:nth-child(2n) { padding-left: 60px; padding-right: 0; border-left: 1px solid var(--border); }
#page-ai .output-num { font-size: 56px; font-weight: 900; color: rgba(200,164,106,0.18); line-height: 1; letter-spacing: 0.02em; margin-bottom: 16px; }
#page-ai .output-title { font-size: 1.0625rem; font-weight: 600; color: var(--text-primary); margin-bottom: 10px; line-height: 1.3; }
#page-ai .output-text { font-size: 15px; color: var(--text-sec); line-height: 1.8; }
#page-ai .outputs-header { position: relative; z-index: 1; }
#page-ai .outputs-cta { position: relative; z-index: 1; margin-top: 56px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
#page-ai .outputs-cta p { font-size: 13px; color: var(--text-sec); }

/* AI steps */
#page-ai .steps-header { text-align: center; position: relative; z-index: 1; }
#page-ai .steps-header h2 { font-size: clamp(44px, 5.5vw, 64px); font-weight: 400; line-height: 1.15; letter-spacing: 0.10em; text-transform: uppercase; }
#page-ai .steps-list { max-width: 680px; margin: 96px auto 0; position: relative; z-index: 1; }
#page-ai .step { display: grid; grid-template-columns: 48px 1fr; gap: 24px; padding-bottom: 68px; position: relative; }
#page-ai .step:last-child { padding-bottom: 0; }
#page-ai .step::after { content: ''; position: absolute; left: 23px; top: 44px; bottom: 0; width: 1px; background: var(--border); }
#page-ai .step:last-child::after { display: none; }
#page-ai .step-num { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--accent-faint); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--accent); flex-shrink: 0; }
#page-ai .step-title { font-size: 0.9375rem; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
#page-ai .step-text { font-size: 15px; color: var(--text-sec); line-height: 1.8; }
#page-ai .step-body { padding-top: 10px; }

/* AI pribeh */
#page-ai .pribeh-overlap { display: grid; grid-template-columns: 5fr 7fr; max-width: 1200px; margin: 0 auto; }
#page-ai .pribeh-photo-wrap { height: 360px; overflow: hidden; position: relative; }
#page-ai .pribeh-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
#page-ai .pribeh-photo-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to right,
      rgba(20,20,20,0.0) 55%,
      rgba(20,20,20,0.75) 82%,
      rgba(20,20,20,1.00) 100%),
    linear-gradient(to top,
      rgba(20,20,20,1.00)  0%,
      rgba(20,20,20,0.6)  14%,
      rgba(20,20,20,0.0)  32%),
    linear-gradient(to bottom,
      rgba(20,20,20,0.5)   0%,
      rgba(20,20,20,0.0)  18%),
    linear-gradient(to left,
      rgba(20,20,20,0.0)  70%,
      rgba(20,20,20,0.5)  92%,
      rgba(20,20,20,1.00) 100%);
}
#page-ai .pribeh-heading-wrap { display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--pad-x) 24px 48px; }
#page-ai .pribeh-h2 { font-size: clamp(44px, 5.5vw, 64px); font-weight: 400; line-height: 1.1; letter-spacing: 0.12em; color: var(--text-primary); text-transform: uppercase; }
#page-ai .pribeh-body { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 76px var(--pad-x) 120px; }
#page-ai .pribeh-body p { font-size: 15px; color: var(--text-sec); line-height: 1.9; }
#page-ai .pribeh-body p + p { margin-top: 18px; }
#page-ai .pribeh-quote {
  padding: 40px var(--pad-x) 24px;
  font-size: clamp(22px, 3vw, 34px); font-weight: 400;
  letter-spacing: 0; text-transform: none;
  color: var(--accent); line-height: 1.4;
}

/* AI diff */
#page-ai .diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 72px; position: relative; z-index: 1; margin-top: 96px; }
#page-ai .diff-item { border-top: 1px solid var(--accent-faint); padding-top: 24px; }
#page-ai .diff-title { font-size: 0.9375rem; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; }
#page-ai .diff-text { font-size: 15px; color: var(--text-sec); line-height: 1.8; }
#page-ai .diff-cta { margin-top: 12px; font-size: 12px; font-weight: 500; color: var(--accent); }

/* AI section heading */
#page-ai .ai-section-h2 { font-size: clamp(44px, 5.5vw, 64px); font-weight: 400; line-height: 1.1; letter-spacing: 0.10em; text-transform: uppercase; color: var(--text-primary); }

/* AI reference */
#page-ai .ref-header { position: relative; z-index: 1; margin-bottom: var(--header-mb); }
#page-ai .ref-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #1E1E1E; position: relative; z-index: 1; }
#page-ai .ref-card { background: var(--bg-base); padding: 52px 56px; }
#page-ai .ref-quote { font-size: 15px; color: var(--text-sec); line-height: 1.85; font-style: italic; margin-bottom: 20px; }
#page-ai .ref-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
#page-ai .ref-role { font-size: 11px; color: var(--text-sec); margin-top: 2px; }

/* AI kontakt */
#ak-kontakt { position: relative; overflow: hidden; }
#page-ai .contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start; padding-top: var(--inner-pt); position: relative; z-index: 1; }
#page-ai .contact-heading { font-size: clamp(44px, 5.5vw, 64px); font-weight: 400; line-height: 1.15; letter-spacing: 0.10em; text-transform: uppercase; margin-bottom: 20px; }
#page-ai .contact-text { font-size: 15px; color: var(--text-sec); line-height: 1.8; margin-bottom: 28px; }
#page-ai .contact-detail { font-size: 12px; color: var(--text-sec); display: flex; flex-direction: column; gap: 6px; }
#page-ai .contact-detail a { color: var(--accent); transition: opacity .2s; }
#page-ai .contact-detail a:hover { opacity: 0.7; }
#page-ai .contact-form { display: flex; flex-direction: column; }
#page-ai .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
#page-ai .form-field { display: flex; flex-direction: column; }
#page-ai .form-full { margin-bottom: 24px; }
#page-ai .form-field input,
#page-ai .form-field textarea {
  background: transparent; border: none; border-bottom: 1px solid #2a2a2a;
  color: var(--text-primary); font-family: var(--font);
  font-size: 15px; padding: 14px 0; outline: none; width: 100%; transition: border-color .2s;
}
#page-ai .form-field input:focus,
#page-ai .form-field textarea:focus { border-bottom-color: var(--accent); }
#page-ai .form-field input::placeholder,
#page-ai .form-field textarea::placeholder { color: rgba(255,255,255,0.25); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
#page-ai .form-field textarea { resize: none; min-height: 100px; line-height: 1.7; }
#page-ai .form-submit { margin-top: 40px; }

/* AI footer CTA */
#page-ai .footer-cta { padding: var(--section-pt) var(--pad-x); text-align: center; border-top: 1px solid var(--border); }
#page-ai .footer-cta h2 { font-size: clamp(44px, 5.5vw, 64px); font-weight: 400; line-height: 1.2; letter-spacing: 0.10em; text-transform: uppercase; margin-bottom: 16px; }
#page-ai .footer-cta p { font-size: 15px; color: var(--text-sec); margin-bottom: 32px; }
#page-ai .footer-cta .btn-group { justify-content: center; }

/* AI footer */
#page-ai footer { padding: 32px var(--pad-x); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
#page-ai .footer-brand-text { font-size: 13px; font-weight: 500; }
#page-ai .footer-links { display: flex; gap: 24px; }
#page-ai .footer-links a { font-size: 12px; color: var(--text-sec); transition: color 0.15s; }
#page-ai .footer-links a:hover { color: var(--text-primary); }
#page-ai .footer-copy { font-size: 12px; color: rgba(102,102,102,0.5); }

/* ─── CF7 — přizpůsobení pro dark theme ─── */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #222 !important;
  color: var(--text-primary) !important;
  font-family: var(--font) !important;
  font-size: 15px !important;
  padding: 12px 0 !important;
  outline: none !important;
  width: 100% !important;
  transition: border-color .2s !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
  border-bottom-color: var(--accent) !important;
}
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: rgba(255,255,255,0.25) !important;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}
.wpcf7-form textarea { resize: none !important; min-height: 100px !important; line-height: 1.7 !important; }
.wpcf7-submit {
  display: inline-block !important;
  background: transparent !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent-faint) !important;
  font-family: var(--font) !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  padding: 13px 28px !important;
  cursor: pointer !important;
  transition: border-color .2s, background .2s !important;
  border-radius: 0 !important;
  margin-top: 32px !important;
}
.wpcf7-submit:hover {
  border-color: var(--accent) !important;
  background: rgba(200,164,106,0.06) !important;
}
.wpcf7-not-valid-tip { color: #e07070 !important; font-size: 11px !important; margin-top: 4px !important; }
.wpcf7-response-output { border: none !important; padding: 12px 0 !important; font-size: 12px !important; color: var(--text-sec) !important; }
.wpcf7-mail-sent-ok { color: var(--accent) !important; }
.wpcf7-validation-errors { color: #e07070 !important; }

/* ─── HAMBURGER BUTTON ─── */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 4px; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text-primary); transition: all 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── MOBILE NAV DRAWER ─── */
.mobile-nav {
  display: none; position: fixed; top: 56px; left: 0; right: 0;
  background: rgba(16,16,16,0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 99; padding: 20px 24px 28px;
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav-tabs { display: flex; gap: 6px; margin-bottom: 20px; }
.mobile-nav-tabs a {
  flex: 1; text-align: center; font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #555; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px; padding: 10px 16px;
  text-decoration: none; transition: all 0.15s;
}
.mobile-nav-tabs a.active { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.mobile-nav-links { list-style: none; border-top: 1px solid rgba(255,255,255,0.06); }
.mobile-nav-links li a {
  display: block; padding: 13px 0;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-secondary); text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.04); transition: color 0.15s;
}
.mobile-nav-links li:last-child a { border-bottom: none; }
.mobile-nav-links li a:hover { color: var(--text-primary); }
.mobile-nav-links .nav-cta { color: var(--accent) !important; }

/* ═══════════════════════════════════════
   TABLET  ≤ 960px
═══════════════════════════════════════ */
@media (max-width: 960px) {
  /* Spacing tokeny pro tablet — ostatní sekce se přizpůsobí automaticky */
  :root {
    --pad-x:      24px;
    --section-pt: 32px;
    --section-pb: 56px;
    --inner-pt:   0px;
    --eyebrow-mb: 24px;
    --line-mb:    28px;
    --block-mb:   28px;
    --header-mb:  28px;
  }

  .nav-tabs { display: none; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  /* Ghost — tablet: jen barva a spodní okraj, margins dědí z hlavního pravidla */
  #page-koucing .ghost, #page-ai .ghost {
    color: rgba(255,255,255,0.08);
    margin-bottom: 20px;
  }
  .pad, #kc-intro, #kc-spoluprace, #kc-reference, #kc-kontakt { position: relative; overflow: hidden; }

  /* Koučink hero */
  #kc-hero { min-height: 0; display: flex; flex-direction: column; }
  #kc-hero .hero-bg { position: relative; top: auto; right: auto; bottom: auto; width: 100%; height: 56vw; max-height: 360px; }
  #kc-hero .hero-bg img { transform: none; transform-origin: center top; object-position: 50% 15%; }
  #kc-hero .hero-overlay {
    background:
      linear-gradient(to top, rgba(20,20,20,1) 0%, rgba(20,20,20,0.2) 40%, rgba(20,20,20,0) 100%),
      linear-gradient(to bottom, rgba(20,20,20,0.3) 0%, rgba(20,20,20,0) 20%);
  }
  #kc-hero .hero-copy { position: relative; z-index: 2; width: 100%; min-height: 0; padding: 28px var(--pad-x) 40px; align-items: flex-start; }

  /* Koučink intro — layout */
  #page-koucing .intro-grid { grid-template-columns: 1fr; gap: 48px; }
  #page-koucing .intro-left-h2 { font-size: clamp(36px, 9vw, 48px); }
  /* intro-eyebrow margin-bottom řídí --eyebrow-mb token */

  /* Koučink příběh */
  #page-koucing .pribeh-overlap { grid-template-columns: 1fr; }
  #page-koucing .pribeh-heading-wrap { padding: 28px var(--pad-x) 0; }
  #page-koucing .pribeh-body { grid-template-columns: 1fr; padding: 20px var(--pad-x) 32px; gap: 20px; }
  #page-koucing .pribeh-quote { padding: 20px var(--pad-x) 8px; }
  #page-koucing .pribeh-link { padding: 0 var(--pad-x) 32px; }

  /* Koučink spolupráce */
  #page-koucing .spoluprace-header { text-align: left; }
  #page-koucing .spoluprace-header .s-line { margin-left: 0; margin-right: 0; margin-bottom: 20px; }
  #page-koucing .krok { grid-template-columns: 56px 1fr; gap: 16px; padding: 28px 0; }
  #page-koucing .krok-num { font-size: 28px; }

  /* Koučink reference */
  #page-koucing .ref-header { text-align: left; }
  #page-koucing .ref-header .s-line { margin-left: 0; margin-right: 0; margin-bottom: 20px; }
  #page-koucing .ref-card { flex: 0 0 100%; min-width: 0; }

  /* Koučink kontakt */
  #page-koucing .kontakt-grid { grid-template-columns: 1fr; gap: 32px; }
  #page-koucing .form-row { grid-template-columns: 1fr; gap: 12px; }
  #page-koucing .s-title { margin-bottom: 8px; }

  /* Koučink footer */
  #page-koucing .footer-cta { text-align: left; }
  #page-koucing footer { flex-direction: column; gap: 10px; text-align: left; }
  #page-koucing .s-line { margin-top: 12px; } /* margin-bottom řídí --line-mb token */

  /* AI hero */
  #ak-hero { padding: 72px var(--pad-x) 48px; }

  /* AI příběh */
  #page-ai .pribeh-overlap { grid-template-columns: 1fr; }
  #page-ai .pribeh-heading-wrap { padding: 28px var(--pad-x) 0; }
  #page-ai .pribeh-body { grid-template-columns: 1fr; padding: 20px var(--pad-x) 40px; gap: 20px; }
  #page-ai .pribeh-quote { padding: 20px var(--pad-x) 8px; }

  /* AI problém */
  #page-ai .problem-grid { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }

  /* AI kroky */
  #page-ai .steps-header { text-align: left; }
  #page-ai .steps-header .s-line { margin-left: 0; margin-right: 0; margin-bottom: 20px; }
  #page-ai .steps-list { margin-top: 20px; }

  /* AI výsledky */
  #page-ai .outputs-grid { grid-template-columns: 1fr; gap: 0; margin-top: 20px; }
  #page-ai .output-item { padding: 24px 0; }
  #page-ai .output-item:nth-child(2n) { padding-left: 0; border-left: none; }

  /* AI diferenciace */
  #page-ai .diff-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }

  /* AI reference */
  #page-ai .ref-header { text-align: left; } /* margin-bottom řídí --header-mb token */
  #page-ai .ref-header .s-line { margin-left: 0; margin-right: 0; margin-bottom: 20px; }
  #page-ai .ref-grid { grid-template-columns: 1fr; gap: 16px; }
  #page-ai .ref-card { min-width: 0; }

  /* AI kontakt */
  #page-ai .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  #page-ai .form-row { grid-template-columns: 1fr; gap: 12px; }

  /* AI footer */
  #page-ai .footer-cta { text-align: left; }
  #page-ai .footer-cta .btn-group { flex-direction: column; align-items: flex-start; }
  #page-ai footer { flex-direction: column; gap: 10px; text-align: left; }
  #page-ai .s-line { margin-top: 12px; } /* margin-bottom řídí --line-mb token */

  input, textarea, select { font-size: 16px !important; }
}

/* ═══════════════════════════════════════
   TYPOGRAFIE — zalamování
═══════════════════════════════════════ */
@media (max-width: 960px) {
  h1, h2, .s-title, .hero-h1, .pribeh-h2, .footer-cta-heading,
  .footer-cta h2, .steps-header h2, .contact-heading {
    text-wrap: balance;
  }
  p, li, blockquote { overflow-wrap: break-word; text-wrap: pretty; }

  #kc-hero .hero-h1,
  #ak-hero .hero-h1 { font-size: clamp(32px, 9vw, 46px); }

  #page-koucing .pribeh-h2,
  #page-koucing .s-title,
  #page-koucing .footer-cta-heading,
  #page-ai .pribeh-h2,
  #page-ai .steps-header h2,
  #page-ai .problem-top h2,
  #page-ai .contact-heading,
  #page-ai .ai-section-h2,
  #page-ai .footer-cta h2 { font-size: clamp(32px, 8vw, 44px); }

  #page-koucing .cenik-info { text-align: left; }
  #page-koucing .spoluprace-cta { text-align: left; }

  #page-koucing .ref-card,
  #page-ai .ref-card { padding: 32px 28px; }
}

/* ═══════════════════════════════════════
   MOBIL  ≤ 480px
═══════════════════════════════════════ */
@media (max-width: 480px) {
  /* Spacing tokeny pro mobil — ostatní sekce se přizpůsobí automaticky */
  :root {
    --pad-x:      20px;
    --section-pt: 24px;
    --section-pb: 40px;
    --eyebrow-mb: 16px;
    --line-mb:    20px;
    --block-mb:   20px;
    --header-mb:  20px;
  }

  /* Hero specifické hodnoty (větší než standard) */
  #kc-hero .hero-bg { height: 64vw; max-height: 280px; }
  #kc-hero .hero-copy { padding: 20px var(--pad-x) 36px; }
  #ak-hero { padding: 56px var(--pad-x) 36px; }

  /* Nadpisy sekcí na mobilu — sjednocená velikost, zvednuté řádkování (hero zůstává beze změny) */
  #page-koucing .pribeh-h2,
  #page-koucing .s-title,
  #page-koucing .footer-cta-heading,
  #page-koucing .intro-left-h2,
  #page-ai .pribeh-h2,
  #page-ai .steps-header h2,
  #page-ai .problem-top h2,
  #page-ai .contact-heading,
  #page-ai .ai-section-h2,
  #page-ai .footer-cta h2 {
    font-size: clamp(20px, 5.5vw, 26px);
    line-height: 1.25;
  }

  /* Ghost mobile — JS (fitGhosts) nastaví velikost, CSS zajistí okraje 3 px */
  #page-koucing .ghost, #page-ai .ghost {
    margin-left: calc(-1 * var(--pad-x) + 3px);
    margin-right: calc(-1 * var(--pad-x) + 3px);
    margin-bottom: 16px;
    color: rgba(255,255,255,0.09);
  }

  /* Příběh — horizontální padding */
  #page-koucing .pribeh-body { padding: 16px var(--pad-x) 28px; }
  #page-koucing .pribeh-quote { padding: 16px var(--pad-x) 8px; }
  #page-koucing .pribeh-heading-wrap { padding: 20px var(--pad-x) 0; }
  #page-koucing .pribeh-link { padding: 0 var(--pad-x) 28px; }
  #page-ai .pribeh-body { padding: 16px var(--pad-x) 32px; }
  #page-ai .pribeh-quote { padding: 16px var(--pad-x) 8px; }
  #page-ai .pribeh-heading-wrap { padding: 20px var(--pad-x) 0; }

  /* Reference card padding */
  #page-koucing .ref-card,
  #page-ai .ref-card { padding: 28px var(--pad-x); }

  /* Typografie — letter-spacing na malém displeji */
  #page-koucing .s-title,
  #page-koucing .footer-cta-heading,
  #page-ai .steps-header h2,
  #page-ai .contact-heading,
  #page-ai .footer-cta h2,
  #page-ai .pribeh-h2 { letter-spacing: 0.08em; }

  #kc-hero .hero-h1,
  #ak-hero .hero-h1 { letter-spacing: 0.04em; }

  #kc-hero .hero-perex,
  #ak-hero .hero-perex { font-size: 14px; }
}

/* Steps note box */
#page-ai .steps-note { max-width: 680px; margin: 48px auto 0; padding: 20px 24px; border: 1px solid var(--border); background: var(--bg-surface); font-size: 15px; color: var(--text-sec); position: relative; z-index: 1; }
#page-ai .steps-note strong { color: var(--text-primary); }
