/* Stránka "Rozpočtový pomocník zdarma". Jeden stylový soubor na celý web (standardy/vizual.md).
   Barvy a písmo značky Překonej strach, stejné jako rozpočtový pomocník (viz DESIGN.md).
   Písma se nestahují z internetu: Georgia pro nadpisy, systémové písmo pro text. */
:root {
  --bg: #130F10; --bg-soft: #1D1618; --line: #33282A; --tint: #2A1C18;
  --ember: #C4622B; --ember-dim: #7A3E1D; --ember-text: #DB7A43;
  --text: #EFE7DC; --text-dim: #A89A8E; --head: #F5EEE4;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.65 var(--sans); }
a { color: var(--ember-text); text-underline-offset: 3px; }
a:hover { color: var(--head); }
:focus-visible { outline: 2px solid var(--ember-text); outline-offset: 3px; }
.wrap { max-width: 700px; margin: 0 auto; padding: 0 20px; }
.wide { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.top { border-bottom: 1px solid var(--line); }
.top .wide { display: flex; align-items: center; min-height: 64px; }
.brand { font-family: var(--serif); font-size: 20px; color: var(--head); text-decoration: none; letter-spacing: .01em; }

.hero { padding: 72px 0 64px; }
.hero .wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.eyebrow { font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--ember-text); font-weight: 600; margin: 0 0 18px; }
h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 5.2vw, 3.5rem); line-height: 1.12; letter-spacing: -.01em; color: var(--head); margin: 0 0 22px; }
.lead { font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 1.45rem); line-height: 1.5; margin: 0 0 30px; }
.btn { display: inline-block; min-height: 52px; padding: 14px 26px; background: var(--ember); color: #130F10; font: 700 17px/1.4 var(--sans); text-decoration: none; border-radius: 6px; }
.btn:hover { background: #D3713A; color: #130F10; }
.fine { font-size: 16px; color: var(--text-dim); margin: 14px 0 0; }

.win { background: #20181a; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }
.win .bar { height: 38px; background: #2a2022; display: flex; align-items: center; gap: 8px; padding: 0 14px; }
.win .bar i { width: 11px; height: 11px; border-radius: 50%; background: #4a3b3e; display: block; }
.win .bar span { margin-left: 10px; flex: 1; font-size: 14px; line-height: 1; padding: 6px 12px; border-radius: 6px; background: var(--bg); color: var(--text-dim); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.win img { display: block; width: 100%; height: auto; }

section { padding: 60px 0; border-top: 1px solid var(--line); }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3.8vw, 2.1rem); line-height: 1.2; color: var(--head); margin: 0 0 22px; }
p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

ul.do { list-style: none; margin: 0; padding: 0; }
ul.do li { position: relative; padding: 18px 0 18px 30px; border-bottom: 1px solid var(--line); }
ul.do li:first-child { border-top: 1px solid var(--line); }
ul.do li::before { content: ""; position: absolute; left: 0; top: 31px; width: 14px; height: 2px; background: var(--ember); }
ul.do strong { color: var(--head); }

.note { background: var(--tint); border-left: 3px solid var(--ember); padding: 22px 24px; }
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--head); }

ol.steps { list-style: none; margin: 0 0 30px; padding: 0; counter-reset: s; }
ol.steps li { counter-increment: s; position: relative; padding: 0 0 30px 60px; min-height: 70px; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: -3px; width: 40px; height: 40px; border: 1px solid var(--ember-dim); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); color: var(--ember-text); }
ol.steps li::after { content: ""; position: absolute; left: 20px; top: 46px; bottom: 8px; width: 1px; background: var(--line); }
ol.steps li:last-child { padding-bottom: 0; min-height: 0; }
ol.steps li:last-child::after { display: none; }
ol.steps strong { color: var(--head); }

.formbox { border-radius: 10px; overflow: hidden; background: #EFF2F7; border: 1px solid var(--line); }
.formbox iframe { display: block; width: 100%; height: 620px; border: 0; }

footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--text-dim); font-size: 16px; }
footer p { margin: 0 0 8px; }
footer a { color: var(--text-dim); }
footer a:hover { color: var(--head); }

@media (max-width: 820px) {
  .hero { padding: 48px 0 44px; }
  .hero .wide { grid-template-columns: 1fr; gap: 36px; }
  section { padding: 46px 0; }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  .btn { display: block; text-align: center; }
  .formbox iframe { height: 830px; }
  .note { padding: 18px 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.nb { white-space: nowrap; }
