/* Kariérní stránka ATC energo – design podle atc-energo.cz (Titillium Web, oranžová #F49712, černá patička) */
:root {
  --orange: #F49712;
  --orange-dark: #D27F06;
  --black: #000000;
  --ink: #111111;
  --text: #333333;
  --muted: #666666;
  --line: #E2E2E2;
  --header-bg: #EEEEEE;
  --soft: #F6F6F6;
  --white: #FFFFFF;
  --font: "Titillium Web", "Segoe UI", Arial, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.11; margin: 0; color: var(--black); text-wrap: balance; }
p { margin: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: 24px; }

/* Tlačítka – hranaté jako na atc-energo.cz */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font); font-size: 18px; font-weight: 600; text-decoration: none; padding: 16px 38px; border: 2px solid transparent; border-radius: 0; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Hlavička – světlý pruh se šikmým bílým polem pro logo */
.site-header { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; }
.header-bar { display: flex; align-items: stretch; gap: 24px; background: var(--header-bg); height: 74px; padding: 0; }
.header-logo { display: flex; align-items: center; justify-content: center; background: var(--white); width: 229px; flex: none; clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%); }
.header-logo img { height: 40px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 36px; flex: 1; padding-left: 16px; }
.main-nav a { font-size: 17px; font-weight: 700; text-decoration: none; color: var(--black); }
.main-nav a:hover { color: var(--orange-dark); }
.header-cta { align-self: center; margin-right: 16px; padding: 12px 26px; font-size: 16px; }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; color: var(--white); overflow: hidden; background: #1E2A33; }
.hero-bg { position: absolute; inset: 0; background: url("https://www.atc-energo.cz/admin/photo-pg-48---.png") center / cover no-repeat; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,28,36,.88) 0%, rgba(20,28,36,.65) 55%, rgba(20,28,36,.35) 100%); }
.hero-content { position: relative; padding-top: 150px; padding-bottom: 110px; display: flex; flex-direction: column; gap: 22px; max-width: var(--container); }
.hero .eyebrow { font-size: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.hero h1 { color: var(--white); font-size: clamp(40px, 6vw, 72px); max-width: 18ch; }
.hero-lead { font-size: 19px; font-weight: 600; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.hero-shapes { position: absolute; right: 4%; bottom: 40px; width: 300px; height: 120px; }
.hero-shapes i { position: absolute; display: block; background: rgba(255,255,255,.9); transform: skewX(-20deg); }
.hero-shapes i:nth-child(1) { width: 90px; height: 42px; right: 0; top: 0; }
.hero-shapes i:nth-child(2) { width: 110px; height: 48px; right: 40px; top: 56px; }
.hero-shapes i:nth-child(3) { width: 54px; height: 26px; right: 150px; top: 30px; background: rgba(255,255,255,.55); }
.hero-shapes i:nth-child(4) { width: 64px; height: 30px; right: 165px; top: 72px; background: rgba(255,255,255,.75); }
.hero-shapes i:nth-child(5) { width: 30px; height: 14px; right: 112px; top: 14px; background: rgba(244,151,18,.9); }

/* Oranžová linka nad bloky – jako na atc-energo.cz */
.border-top-accent { border-top: 1px solid var(--orange); padding-top: 22px; }

/* Úvod */
.intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; padding-block: 96px; align-items: start; }
.intro h2 { font-size: 40px; margin-bottom: 18px; }
.intro p { font-size: 18px; color: var(--text); margin-bottom: 12px; max-width: 62ch; }
.intro-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.intro-facts li { display: grid; grid-template-columns: 110px 1fr; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.intro-facts strong { font-size: 36px; font-weight: 700; color: var(--orange); font-variant-numeric: tabular-nums; }
.intro-facts span { font-size: 17px; color: var(--text); }

/* Pozice */
.positions { background: var(--soft); padding-block: 96px; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
.section-head h2 { font-size: 40px; }
.section-head p { font-size: 18px; color: var(--muted); }
.job-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.job-card { background: var(--white); padding: 32px; display: flex; flex-direction: column; gap: 14px; border-top: 4px solid var(--orange); min-width: 0; }
.job-place { font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.job-card h3 { font-size: 28px; }
.job-lead { font-size: 17px; color: var(--text); }
.job-card h4 { font-size: 17px; margin-top: 6px; }
.job-card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text); flex: 1; }
.job-salary { font-weight: 600; padding-top: 12px; border-top: 1px solid var(--line); }
.placeholder { background: #FFF3DF; color: #8A5300; padding: 2px 6px; font-weight: 600; }
.positions-more { margin-top: 32px; font-size: 18px; }
.positions-more a { color: var(--orange-dark); font-weight: 700; }

/* Oranžový pás */
.feature-band { background: var(--orange); color: var(--white); padding-block: 96px; }
.feature-band h2 { color: var(--white); font-size: 40px; margin-bottom: 48px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.feature { display: flex; flex-direction: column; gap: 14px; }
.feature svg { width: 52px; height: 52px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.feature h3 { color: var(--white); font-size: 26px; }
.feature p { font-size: 16px; max-width: 32ch; }

/* Proč ATC */
.why { padding-block: 96px; }
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px; }
.why-item h3 { font-size: 26px; margin-bottom: 10px; }
.why-item p { font-size: 17px; color: var(--text); max-width: 52ch; }
.client-chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.client-chips li { font-size: 15px; font-weight: 600; padding: 6px 12px; background: var(--soft); border: 1px solid var(--line); }

/* Výběr */
.process { background: var(--black); color: var(--white); padding-block: 96px; }
.process h2, .process h3 { color: var(--white); }
.process .section-head p { color: #BBBBBB; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { border-top: 1px solid #444444; padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.step-no { font-size: 44px; font-weight: 700; color: var(--orange); line-height: 1; }
.steps h3 { font-size: 24px; }
.steps p { color: #CCCCCC; }

/* Přihláška */
.apply { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; padding-block: 96px; align-items: start; }
.apply-intro h2 { font-size: 40px; margin-bottom: 14px; }
.apply-intro p { font-size: 18px; color: var(--text); }
.apply-contact { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 14px; }
.apply-contact span { display: block; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.apply-contact a { font-weight: 700; text-decoration: none; }
.apply-form { background: var(--soft); padding: 36px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-weight: 600; font-size: 15px; }
.optional { font-weight: 400; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], input[type=url], select, textarea { font-family: var(--font); font-size: 16px; padding: 12px 14px; border: 1px solid #CCCCCC; border-radius: 0; background: var(--white); color: var(--ink); width: 100%; }
input.invalid, select.invalid { border-color: #C0392B; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--text); }
.consent input { margin-top: 4px; accent-color: var(--orange); width: 18px; height: 18px; flex: none; }
.consent a { color: var(--orange-dark); }
.hp { display: none; }
.form-status { font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #1E7B3A; }
.form-status.err { color: #C0392B; }

/* Patička – černá jako na atc-energo.cz */
.site-footer { background: var(--black); color: #BBBBBB; padding: 62px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; }
.footer-links a, .footer-links span { color: #DDDDDD; text-decoration: none; padding: 8px 0; border-top: 1px solid #444444; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom { margin-top: 40px; font-size: 14px; color: #888888; }

/* Mobil */
@media (max-width: 1000px) {
  .job-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro, .apply { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .site-header { top: 0; }
  .header-bar { height: 64px; padding-right: 0; }
  .header-logo { width: 180px; }
  .header-logo img { height: 32px; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 16px; box-shadow: 0 10px 20px rgba(0,0,0,.12); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .header-cta { display: none; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; margin-right: 16px; background: none; border: 0; width: 44px; cursor: pointer; }
  .nav-toggle span { display: block; height: 2px; background: var(--black); }
  .hero { min-height: 0; }
  .hero-content { padding-top: 120px; padding-bottom: 120px; }
  .hero-shapes { width: 200px; transform: scale(.7); transform-origin: right bottom; }
  .steps, .why-grid, .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .apply-form { padding: 24px; }
}
@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .intro h2, .section-head h2, .feature-band h2, .apply-intro h2 { font-size: 32px; }
  .btn { padding: 14px 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
