:root {
  --ink: #13202D;
  --ink-2: #3A4856;
  --cell: #2443B5;
  --cell-dark: #1A3290;
  --nickel: #BFC7CE;
  --paper: #F1F4F6;
  --white: #FFFFFF;
  --charge: #2E9D58;
  --display: "Anybody", "Arial Narrow", sans-serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.62; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cell); text-underline-offset: 3px; }
a:hover { color: var(--cell-dark); }
:focus-visible { outline: 3px solid var(--cell); outline-offset: 2px; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { font-family: var(--display); font-stretch: 80%; font-variation-settings: "wdth" 80; line-height: 1.08; letter-spacing: -0.005em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.4rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* hlavička */
header { background: var(--white); border-bottom: 1px solid var(--nickel); position: sticky; top: 0; z-index: 20; }
.nav { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; display: flex; align-items: center; gap: 18px; min-height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 1.45rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.logo svg { width: 34px; height: 20px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav ul a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav ul a:hover { color: var(--cell); }
.nav .lang a { color: var(--ink-2); font-size: .88rem; }
.tel { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-weight: 600; color: var(--ink); text-decoration: none; border: 1.5px solid var(--ink); border-radius: 6px; white-space: nowrap; }
.tel:hover { background: var(--ink); color: var(--white); }
.burger { display: none; min-width: 44px; min-height: 44px; border: 0; background: none; font-size: 1.6rem; color: var(--ink); cursor: pointer; }

/* tlačítka */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; background: var(--cell); color: var(--white); border: 0; border-radius: 6px; font: 600 1.02rem var(--text); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--cell-dark); color: var(--white); }
.btn.obrys { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.obrys:hover { background: var(--ink); color: var(--white); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

/* hero */
.hero { background: var(--white); padding: 56px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .sub { font-size: 1.15rem; color: var(--ink-2); }
figure { margin: 0; }
.hero-foto img { border-radius: 2px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-foto figcaption { font-size: .82rem; color: var(--ink-2); margin-top: 6px; }

/* baterie s dílky: fakta pod herem */
.baterie { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 48px 22px 0 0; border: 3px solid var(--ink); border-radius: 10px; background: var(--white); }
.baterie::after { content: ""; position: absolute; right: -15px; top: 50%; width: 12px; height: 38%; transform: translateY(-50%); background: var(--ink); border-radius: 0 4px 4px 0; }
.baterie .dilek { padding: 20px 22px 22px; border-right: 3px solid var(--ink); position: relative; overflow: hidden; }
.baterie .dilek:last-child { border-right: 0; }
.baterie .dilek::before { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 6px; background: var(--charge); transform-origin: left; transform: scaleX(1); }
.baterie .dilek b { display: block; font-family: var(--display); font-stretch: 80%; font-size: 1.25rem; line-height: 1.15; margin-bottom: 4px; }
.baterie .dilek span { font-size: .95rem; color: var(--ink-2); }
.js .baterie .dilek::before { transform: scaleX(0); }
.js .baterie.nabito .dilek::before { transform: scaleX(1); transition: transform .45s ease-out; }
.js .baterie.nabito .dilek:nth-child(2)::before { transition-delay: .4s; }
.js .baterie.nabito .dilek:nth-child(3)::before { transition-delay: .8s; }
.hero-pata { height: 56px; }

/* sekce */
.sekce { padding: 76px 0; }
.sekce.bila { background: var(--white); }
.uvod { font-size: 1.1rem; color: var(--ink-2); }
.segmenty { display: grid; gap: 54px; margin-top: 40px; }
.segment { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.segment:nth-child(even) .segment-foto { order: 2; }
.segment-foto img { border-radius: 2px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.segment h3 { font-size: 1.7rem; }
.vice { font-weight: 600; }

/* odhad kapacity */
.odhad { background: var(--ink); color: var(--white); }
.odhad h2 { color: var(--white); }
.odhad .uvod { color: #C9D2DA; }
.odhad-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; margin-top: 34px; align-items: start; }
.odhad label { display: block; font-weight: 600; margin: 0 0 6px; }
.odhad .pole { margin-bottom: 26px; }
.odhad output { font-family: var(--display); font-stretch: 80%; font-weight: 700; font-size: 1.25rem; color: var(--white); }
.odhad input[type=range] { width: 100%; accent-color: #7F9BFF; min-height: 44px; }
.odhad .chk { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 500; }
.odhad .chk input { width: 22px; height: 22px; accent-color: #7F9BFF; }
.mereni { position: relative; display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px; padding: 8px; border: 3px solid var(--nickel); border-radius: 10px; margin-right: 18px; }
.mereni::after { content: ""; position: absolute; right: -14px; top: 50%; width: 10px; height: 40%; transform: translateY(-50%); background: var(--nickel); border-radius: 0 4px 4px 0; }
.mereni i { display: block; height: 76px; background: #2A3947; border-radius: 2px; }
.mereni i.plny { background: var(--charge); }
.vysledek { margin-top: 20px; }
.vysledek .kwh { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 1; display: block; }
.vysledek p { color: #C9D2DA; }
.vysledek .datum { color: #C9D2DA; font-size: .95rem; font-weight: 500; }
.vysledek .btn { margin-top: 8px; }
.odhad a:not(.btn) { color: #A9BCFF; }

/* postup */
.postup { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 3px solid var(--ink); }
.postup li { padding: 22px 22px 8px 0; counter-increment: krok; }
.postup li::before { content: counter(krok); display: block; font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 2.4rem; color: var(--cell); line-height: 1; margin-bottom: 10px; }
.postup h3 { font-size: 1.2rem; }
.postup p { font-size: .97rem; color: var(--ink-2); }

/* seznam faktorů */
.faktory { columns: 2; column-gap: 48px; padding-left: 20px; margin: 26px 0 0; }
.faktory li { break-inside: avoid; margin-bottom: 12px; }

/* faq */
.faq > * { max-width: 860px; }
details { border-bottom: 1px solid var(--nickel); }
summary { cursor: pointer; padding: 18px 0; min-height: 44px; font-weight: 600; font-size: 1.06rem; list-style-position: outside; }
details p { padding: 0 0 16px; color: var(--ink-2); }

/* podstránky */
.sub-hero { background: var(--white); padding: 50px 0 54px; border-bottom: 1px solid var(--nickel); }
.sub-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; }
.sub-hero img { border-radius: 2px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.drobky { font-size: .9rem; color: var(--ink-2); margin-bottom: 14px; }
.drobky a { color: var(--ink-2); }
.obsah > * { max-width: 760px; }
.obsah h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.6em; }
.obsah ul { padding-left: 20px; }
.obsah li { margin-bottom: 8px; }
.souvisi { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.souvisi a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--nickel); border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 500; background: var(--white); }
.souvisi a:hover { border-color: var(--cell); color: var(--cell); }

/* blog */
.clanky { display: grid; gap: 0; margin-top: 30px; border-top: 1px solid var(--nickel); }
.clanek-radek { display: grid; grid-template-columns: 1fr 2.2fr; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--nickel); align-items: center; }
.clanek-radek img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.clanek-radek h2 { font-size: 1.5rem; margin-bottom: .3em; }
.clanek-radek h2 a { color: var(--ink); text-decoration: none; }
.clanek-radek h2 a:hover { color: var(--cell); }
.datum { font-size: .88rem; color: var(--ink-2); }

/* poptávka */
.pop { background: var(--ink); color: var(--white); }
.pop h2 { color: var(--white); }
.pop-text { color: #C9D2DA; }
.pop-text a { color: #A9BCFF; }
.form-box { max-width: 780px; margin-top: 26px; }
.form-box form { display: grid; gap: 12px; }
.radek { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-box input[type=text], .form-box input[type=tel], .form-box input[type=email], .form-box select, .form-box textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #4A5A6A; border-radius: 6px; background: #1C2B3A; color: var(--white); font: 400 1rem var(--text); }
.form-box ::placeholder { color: #9AA8B5; }
.form-box textarea { min-height: 120px; resize: vertical; }
.form-box input:focus, .form-box select:focus, .form-box textarea:focus { border-color: #7F9BFF; outline: none; }
.form-box .chk { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: #C9D2DA; min-height: 44px; }
.form-box .chk input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: #7F9BFF; }
.form-box .btn { justify-self: start; min-width: 220px; }
.form-success { padding: 18px 20px; border-left: 6px solid var(--charge); background: #1C2B3A; font-weight: 600; }
.form-error { padding: 18px 20px; border-left: 6px solid #E0A23A; background: #1C2B3A; margin-top: 12px; }
.form-error a, .form-success a { color: #A9BCFF; }

/* patička */
footer { background: var(--white); border-top: 3px solid var(--ink); padding: 48px 0 24px; font-size: .95rem; }
.grid3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
footer h3 { font-size: 1.15rem; }
footer a { color: var(--ink); }
footer p { color: var(--ink-2); }
.pata { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--nickel); font-size: .86rem; color: var(--ink-2); }

/* 404 */
.chyba { padding: 90px 0; }

@media (max-width: 1180px) {
  .nav ul { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 10px 22px 20px; border-bottom: 1px solid var(--nickel); }
  .nav ul.open { display: flex; }
  .nav ul a { padding: 0; }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .postup { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero { padding-top: 34px; }
  .hero-grid, .sub-hero-grid, .segment, .odhad-grid { grid-template-columns: 1fr; gap: 26px; }
  .segment:nth-child(even) .segment-foto { order: 0; }
  .baterie { grid-template-columns: 1fr; margin-right: 0; margin-bottom: 18px; }
  .baterie::after { right: 50%; top: auto; bottom: -15px; width: 38%; height: 12px; transform: translateX(50%); border-radius: 0 0 4px 4px; }
  .baterie .dilek { border-right: 0; border-bottom: 3px solid var(--ink); }
  .baterie .dilek:last-child { border-bottom: 0; }
  .mereni { grid-template-columns: repeat(10, 1fr); }
  .mereni i { height: 46px; }
  .faktory { columns: 1; }
  .grid3 { grid-template-columns: 1fr; gap: 20px; }
  .clanek-radek { grid-template-columns: 1fr; gap: 14px; }
  .sekce { padding: 56px 0; }
}
@media (max-width: 560px) {
  .radek { grid-template-columns: 1fr; }
  .postup { grid-template-columns: 1fr; }
  .tel { padding: 0 10px; font-size: .92rem; }
  .logo { font-size: 1.25rem; }
  .logo svg { width: 28px; }
  .form-box .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .js .baterie .dilek::before { transform: scaleX(1); transition: none !important; }
}
.obsah > h2:first-child { margin-top: 0; }
