/* ============================================================
   uctostepanovi.cz — NÁVRH 2 „Účetní kniha"
   Editorial / typografický koncept. Staví na design-system tokenech.
   ============================================================ */

/* Manrope — self-host (variabilní 400–800), soubory ve fonts/ */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-canvas);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* jemný „papír účetní knihy" — svislá linka margin + řádkování */
.paper {
  background:
    linear-gradient(90deg, transparent 0 63px, rgba(241,145,109,.16) 63px 64px, transparent 64px),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(24,47,91,.05) 31px 32px),
    var(--color-canvas);
}

/* ── reveal animace ── */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ── tlačítka ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font: 700 15px/1.2 var(--font-sans);
  text-decoration: none; cursor: pointer; transition: var(--transition);
}
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-accent { background: var(--color-accent); color: var(--c-navy-deep); }
.btn-accent:hover { background: var(--color-accent-strong); }
.btn-ghost-light { color: #F3DADF; border-color: rgba(243,218,223,.4); }
.btn-ghost-light:hover { border-color: #F3DADF; }
.btn-navy { background: var(--color-primary); color: #fff; }
.btn-navy:hover { background: var(--color-primary-strong); }

/* ═══ HLAVIČKA ═══ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--c-navy-deep);
  border-bottom: 1px solid rgba(243,218,223,.14);
}
.site-header .container { display: flex; align-items: center; gap: 30px; min-height: 66px; }
.site-header .logo img { height: 34px; width: auto; filter: brightness(0) invert(1); }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a {
  color: rgba(243,218,223,.8);
  font-weight: 700; font-size: 13.5px; letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; padding: 6px 0; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--c-coral); transition: right .2s ease;
}
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after { right: 0; }
.header-cta { margin-left: 8px; padding: 10px 20px; }

/* hamburger — viditelný jen na mobilu */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; border-radius: 2px;
  background: #F3DADF; transition: transform .25s ease, opacity .25s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .site-header .container { justify-content: space-between; gap: 12px; }
  .nav-toggle { display: flex; }
  .header-cta { margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--c-navy-deep);
    border-bottom: 1px solid rgba(243,218,223,.14);
    box-shadow: 0 18px 30px rgba(0,0,0,.25);
  }
  .site-nav a { padding: 15px 28px; border-top: 1px solid rgba(243,218,223,.1); }
  .site-nav a::after { display: none; }
  .nav-open .site-nav { display: flex; }
}

/* ═══ HERO ═══ */
.hero {
  position: relative;
  background: var(--c-navy-deep);
  color: #F3DADF;
  overflow: hidden;
}
.hero::before { /* ledger mřížka */
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(243,218,223,.05) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(243,218,223,.03) 47px 48px);
}
.hero .container { position: relative; padding-top: 96px; padding-bottom: 130px; }
.hero .watermark {
  position: absolute; right: -30px; bottom: -66px;
  font-size: clamp(160px, 26vw, 330px); font-weight: 800; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(241,145,109,.28);
  letter-spacing: -.04em; user-select: none; pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 30px;
  font-size: 13px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: var(--c-coral);
}
.hero .eyebrow::before { content: ""; width: 44px; height: 2px; background: var(--c-coral); }
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(52px, 8.2vw, 108px);
  line-height: .98; font-weight: 800; letter-spacing: -.03em;
  text-transform: uppercase;
  color: #fff;
  max-width: 11ch;
}
.hero h1 .accent { color: var(--c-coral); }
.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 2px #F3DADF;
}
.hero .lead {
  margin: 30px 0 40px; max-width: 46ch;
  font-size: 18px; color: rgba(243,218,223,.82);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* razítko v hero */
.hero .stamp {
  position: absolute; right: 8%; top: 96px;
  width: 168px; height: 168px;
  transform: rotate(10deg);
}
@media (max-width: 1080px) { .hero .stamp { display: none; } }

/* ═══ BĚŽÍCÍ PÁS ═══ */
.ticker {
  background: var(--c-coral);
  color: var(--c-navy-deep);
  overflow: hidden; white-space: nowrap;
  border-top: 3px solid var(--c-navy-deep);
  border-bottom: 3px solid var(--c-navy-deep);
  padding: 13px 0;
}
.ticker .track { display: inline-block; animation: ticker 36s linear infinite; }
.ticker span {
  font-size: 15px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  margin: 0 26px;
}
.ticker i { font-style: normal; opacity: .55; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; } }

/* ═══ ČÍSLOVANÉ SEKCE ═══ */
.section { padding: 96px 0; }
.sec-head {
  display: flex; align-items: baseline; gap: 22px;
  border-bottom: 3px solid var(--c-navy-deep);
  padding-bottom: 18px; margin-bottom: 8px;
}
.sec-head .no {
  font-size: 15px; font-weight: 800; color: var(--c-coral-deep);
  font-variant-numeric: tabular-nums; letter-spacing: .08em;
}
.sec-head h2 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 800; letter-spacing: -.02em; text-transform: uppercase;
  color: var(--c-navy-deep); line-height: 1.05;
}
.sec-head .aside { margin-left: auto; font-size: 14px; color: var(--color-muted); font-weight: 600; max-width: 38ch; text-align: right; text-wrap: balance; }
@media (max-width: 760px) { .sec-head { flex-wrap: wrap; } .sec-head .aside { display: none; } }

/* ═══ 01 SLUŽBY — ledger řádky ═══ */
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { border-bottom: 1px solid var(--color-border); }
.ledger a {
  display: grid;
  grid-template-columns: 90px minmax(0,1.1fr) minmax(0,1.6fr) 60px;
  gap: 24px; align-items: center;
  padding: 26px 10px;
  text-decoration: none;
  transition: var(--transition);
}
.ledger a:hover { background: var(--color-pink-bg); padding-left: 22px; }
.ledger .idx {
  font-size: 14px; font-weight: 800; color: var(--color-muted);
  font-variant-numeric: tabular-nums; letter-spacing: .08em;
}
.ledger h3 {
  margin: 0; font-size: clamp(19px, 2.2vw, 26px); font-weight: 800;
  color: var(--c-navy-deep); letter-spacing: -.01em;
}
.ledger p { margin: 0; font-size: 15px; color: var(--color-ink-soft); }
.ledger .arr {
  justify-self: end;
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  display: grid; place-items: center;
  border: 1.5px solid var(--color-border); color: var(--c-navy-deep);
  transition: var(--transition);
}
.ledger a:hover .arr { background: var(--c-coral); border-color: var(--c-coral); transform: rotate(-45deg); }
.ledger .arr svg { width: 18px; height: 18px; }
@media (max-width: 820px) {
  .ledger a { grid-template-columns: 48px 1fr; }
  .ledger p, .ledger .arr { display: none; }
}

/* ═══ 02 KDO JSME ═══ */
.about-grid {
  display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr);
  gap: 64px; align-items: center; padding-top: 48px;
}
.pull {
  margin: 0 0 30px;
  font-size: clamp(24px, 3vw, 38px); line-height: 1.25; font-weight: 800;
  letter-spacing: -.015em; color: var(--c-navy-deep);
}
.pull .hl { box-shadow: inset 0 -.34em 0 rgba(241,145,109,.45); }
.about-grid .body p { margin: 0 0 14px; color: var(--color-ink-soft); font-size: 16.5px; max-width: 58ch; }
.family { position: relative; }
.family svg { width: 100%; height: auto; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ═══ ČÍSLA ═══ */
.stats { border-top: 3px solid var(--c-navy-deep); border-bottom: 3px solid var(--c-navy-deep); }
.stats .container { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat {
  padding: 52px 34px;
  border-left: 1px solid var(--color-border);
}
.stat:first-child { border-left: 0; }
.stat b {
  display: block;
  font-size: clamp(56px, 7vw, 96px); font-weight: 800; line-height: 1;
  letter-spacing: -.03em; color: var(--c-navy-deep);
  font-variant-numeric: tabular-nums;
}
.stat b small { font-size: .38em; font-weight: 800; color: var(--c-coral-deep); letter-spacing: 0; }
.stat span { display: block; margin-top: 12px; font-size: 14.5px; color: var(--color-muted); font-weight: 600; max-width: 30ch; }
@media (max-width: 820px) {
  .stats .container { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--color-border); }
  .stat:first-child { border-top: 0; }
}

/* ═══ 03 CENÍK — faktura ═══ */
.invoice-wrap { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 64px; align-items: start; padding-top: 48px; }
.invoice-intro p { margin: 0 0 16px; color: var(--color-ink-soft); font-size: 16.5px; max-width: 46ch; }
.invoice-intro .big { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; color: var(--c-navy-deep); line-height: 1.3; letter-spacing: -.01em; }
.invoice {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--c-navy-deep);
  box-shadow: 10px 10px 0 rgba(24,47,91,.12);
}
.invoice-head {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--c-navy-deep); color: #F3DADF;
  padding: 18px 28px;
}
.invoice-head strong { font-size: 15px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; }
.invoice-head span { font-size: 12.5px; opacity: .7; font-variant-numeric: tabular-nums; }
.invoice-body { padding: 10px 28px 26px; }
.invoice-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 15px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 15.5px;
}
.invoice-row .amt { font-weight: 800; color: var(--c-navy-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.invoice-row.total { border-bottom: 0; border-top: 2.5px solid var(--c-navy-deep); margin-top: 6px; padding-top: 18px; }
.invoice-row.total .lbl { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.invoice-row.total .amt { color: var(--c-coral-deep); font-size: 19px; }
.invoice .stamp2 {
  position: absolute; right: 230px; bottom: 88px;
  width: 128px; height: 128px; transform: rotate(-11deg); pointer-events: none;
}
.invoice-note { padding: 0 28px 24px; font-size: 13px; color: var(--color-muted); }
@media (max-width: 900px) { .invoice-wrap { grid-template-columns: 1fr; gap: 40px; } }

/* ═══ 04 FAQ ═══ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--color-border); }
.faq summary {
  display: flex; align-items: center; gap: 20px;
  padding: 24px 6px; cursor: pointer; list-style: none;
  font-weight: 800; font-size: clamp(17px, 2vw, 21px); color: var(--c-navy-deep);
  letter-spacing: -.01em;
  transition: var(--transition);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--c-coral-deep); }
.faq summary .q-no { font-size: 13px; color: var(--color-muted); font-weight: 800; font-variant-numeric: tabular-nums; }
.faq summary::after {
  content: "+"; margin-left: auto; flex: none;
  font-size: 26px; font-weight: 400; color: var(--c-coral-deep);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 6px 26px 52px; color: var(--color-ink-soft); font-size: 15.5px; max-width: 68ch; }

/* ═══ 05 KONTAKT ═══ */
.contact { background: var(--c-navy-deep); color: #F3DADF; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 47px, rgba(243,218,223,.045) 47px 48px);
}
.contact .container { position: relative; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 70px; padding-top: 96px; padding-bottom: 96px; }
.contact h2 {
  margin: 0 0 10px;
  font-size: clamp(40px, 5.4vw, 72px); font-weight: 800; line-height: 1;
  letter-spacing: -.025em; text-transform: uppercase; color: #fff;
}
.contact h2 em { font-style: normal; color: var(--c-coral); }
.contact .hours { margin: 0 0 40px; color: rgba(243,218,223,.7); font-size: 15.5px; }
.c-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.c-list li {
  display: flex; justify-content: space-between; gap: 20px; align-items: baseline;
  padding: 15px 2px; border-bottom: 1px solid rgba(243,218,223,.16);
  font-size: 15.5px;
}
.c-list .k { font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--c-coral); flex: none; }
.c-list .v { text-align: right; color: rgba(243,218,223,.92); }
.c-list a { color: #fff; font-weight: 700; text-decoration: none; }
.c-list a:hover { color: var(--c-coral); }

.form-card { background: #fff; color: var(--color-ink); padding: 36px; box-shadow: 12px 12px 0 rgba(241,145,109,.35); }
.form-card h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: var(--c-navy-deep); letter-spacing: -.01em; }
.form-card .sub { margin: 0 0 24px; font-size: 14px; color: var(--color-muted); }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--color-ink-soft); }
.field input, .field textarea {
  width: 100%; padding: 12px 2px;
  border: 0; border-bottom: 2px solid var(--color-border);
  background: transparent;
  font: 600 16px var(--font-sans); color: var(--color-ink);
  transition: var(--transition); border-radius: 0;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-coral); }
.field textarea { resize: vertical; min-height: 84px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 22px; font-size: 13px; color: var(--color-muted); }
.consent input { margin-top: 3px; accent-color: var(--c-navy); }
@media (max-width: 940px) { .contact .container { grid-template-columns: 1fr; gap: 48px; } }

/* ═══ PATIČKA ═══ */
.site-footer { background: var(--c-navy-deep); border-top: 1px solid rgba(243,218,223,.14); color: rgba(243,218,223,.62); }
.site-footer .container {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  padding-top: 30px; padding-bottom: 34px; font-size: 13.5px;
}
.site-footer img { height: 28px; filter: brightness(0) invert(1); opacity: .9; }
.site-footer a { color: rgba(243,218,223,.85); }

/* honeypot — skryté pole proti spamu */
.form-card .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* stav odeslání formuláře */
.form-status { margin: 12px 0 0; font-weight: 700; font-size: 14px; min-height: 1em; }
.form-status.ok { color: #2e7d4f; }
.form-status.err { color: #b3402a; }
