/* Rozpočto – landing page styles. No framework. */
:root {
  --navy-950: #08101f;
  --navy-900: #0b1526;
  --navy-800: #112038;
  --navy-700: #1a2f4f;
  --navy-600: #29446c;
  --bp: #6fb1ff;
  --bp-soft: rgba(111, 177, 255, .09);
  --bp-strong: rgba(111, 177, 255, .17);
  --accent: #f2a33a;
  --accent-600: #e08b1b;
  --accent-soft: #fdf0dc;
  --paper: #f5f1e8;
  --paper-2: #ebe5d8;
  --white: #ffffff;
  --ink: #132033;
  --ink-2: #33415a;
  --muted: #566276;
  --line: #ddd6c7;
  --on-navy: #e8eef7;
  --on-navy-muted: #a8b6cb;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(11, 21, 38, .06), 0 10px 30px -12px rgba(11, 21, 38, .22);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .08), 0 30px 60px -20px rgba(0, 0, 0, .45);
  --f-head: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  overflow-x: hidden;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--f-head); font-stretch: 108%; line-height: 1.08; letter-spacing: -.015em; margin: 0; color: inherit; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.005em; line-height: 1.25; }
strong, b { font-weight: 600; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--navy-900); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.ic { width: 1.2em; height: 1.2em; flex: none; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

/* blueprint grid background */
.bp {
  background-color: var(--navy-900);
  background-image:
    linear-gradient(var(--bp-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-strong) 1px, transparent 1px),
    linear-gradient(var(--bp-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-soft) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--navy-900); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 22px; border-radius: 10px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg); font: 600 1rem/1.2 var(--f-body);
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .ic { width: 1.15em; height: 1.15em; transition: transform .15s; }
.btn:hover .ic { transform: translateX(3px); }
.btn-accent { --bg: var(--accent); --fg: var(--navy-900); box-shadow: 0 6px 20px -8px rgba(242, 163, 58, .7); }
.btn-accent:hover { --bg: #f6b456; }
.btn-dark { --bg: var(--navy-900); --fg: #fff; }
.btn-dark:hover { --bg: var(--navy-700); }
.btn-ghost { --bg: transparent; --fg: var(--on-navy); border-color: rgba(232, 238, 247, .3); }
.btn-ghost:hover { border-color: var(--on-navy); }
.btn-lg { min-height: 56px; padding: 15px 26px; font-size: 1.06rem; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 21, 38, .94); color: var(--on-navy);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-head.scrolled { border-bottom-color: rgba(111, 177, 255, .18); box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .6); }
.head-row { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand img { border-radius: 8px; }
.brand-word { font: 800 1.42rem/1 var(--f-head); font-stretch: 112%; letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { padding: 8px 12px; border-radius: 8px; color: var(--on-navy-muted); text-decoration: none; font-weight: 500; font-size: .96rem; transition: color .15s, background-color .15s; }
.nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav .nav-login { color: var(--on-navy); margin-left: 8px; }
.nav .btn { margin-left: 6px; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid rgba(232, 238, 247, .25); border-radius: 10px; background: transparent; color: #fff; cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 12px; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; content: ""; }
.nav-toggle-bars { top: 22px; }
.nav-toggle-bars::before { top: -6px; left: 0; }
.nav-toggle-bars::after { top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 70px; display: none;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px;
    background: var(--navy-900); border-bottom: 1px solid rgba(111, 177, 255, .2); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .7);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 13px 12px; font-size: 1.05rem; }
  .nav .nav-login { margin-left: 0; }
  .nav .btn { margin: 10px 0 0; min-height: 50px; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: var(--on-navy); overflow: hidden; padding: 72px 0 96px; }
.hero::before {
  content: ""; position: absolute; right: -60px; bottom: -40px; width: 720px; height: 528px;
  background: url("blueprint-house.svg") no-repeat center / contain; opacity: .22; pointer-events: none;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(transparent, rgba(8, 16, 31, .55)); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px 6px 10px; border: 1px solid rgba(111, 177, 255, .3); border-radius: 999px; font: 500 .82rem/1.2 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: #cfe3ff; background: rgba(111, 177, 255, .06); }
.eyebrow-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); }
.hero h1 { font-size: clamp(2.35rem, 5.6vw, 4.35rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.025em; line-height: 1.02; color: #fff; }
.hero h1 .hl { display: block; color: var(--accent); }
.lead { margin: 24px 0 32px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; color: var(--on-navy-muted); max-width: 36em; }
.lead strong { color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .95rem; color: var(--on-navy); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ic { color: var(--accent); width: 1.05em; height: 1.05em; }

/* hero visual */
.hero-visual { position: relative; display: grid; gap: 0; }
.hv-card { background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.hv-mail { width: 88%; transform: rotate(-1.6deg); }
.hv-result { width: 92%; justify-self: end; margin-top: -6px; transform: rotate(.8deg); border: 1px solid rgba(242, 163, 58, .5); }
.hv-bar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; background: var(--paper); border-bottom: 1px solid var(--line); font: 600 .82rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.hv-bar .ic { width: 16px; height: 16px; color: var(--navy-600); }
.hv-bar em { margin-left: auto; font-style: normal; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }
.hv-bar-dark { background: var(--navy-800); color: #fff; border-bottom-color: var(--navy-800); }
.hv-bar-dark .ic { color: var(--accent); }
.hv-bar-dark em { color: var(--navy-900); background: var(--accent); padding: 4px 8px; border-radius: 5px; font-weight: 600; }
.hv-subj { margin: 14px 18px 6px; font-weight: 600; font-size: 1rem; }
.hv-body { margin: 0 18px 14px; font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.hv-files { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 16px; }
.hv-files span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; font: 500 .78rem/1 var(--f-mono); color: var(--ink-2); background: #fbfaf6; }
.hv-files .ic { width: 14px; height: 14px; color: #c0392b; }
.hv-files span:nth-child(2) .ic { color: var(--navy-600); }
.hv-files span:nth-child(3) .ic { color: #2e8b57; }
.hv-dim { display: flex; align-items: center; gap: 10px; width: 70%; margin: 14px auto 18px; font: 500 .72rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--bp); }
.hv-dim i { flex: 1; height: 1px; background: var(--bp); position: relative; }
.hv-dim i::before, .hv-dim i::after { content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: var(--bp); transform: rotate(45deg); }
.hv-dim i::before { left: 0; } .hv-dim i::after { right: 0; }
.hv-rows { list-style: none; margin: 0; padding: 8px 18px 4px; }
.hv-rows li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.hv-rows li b { font-family: var(--f-mono); font-weight: 500; color: var(--muted); margin-right: 4px; }
.hv-rows .hv-vrn { color: var(--muted); border-bottom: 0; }
.hv-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 4px 0 0; padding: 14px 18px 16px; background: var(--accent-soft); border-top: 2px solid var(--accent); font-weight: 600; }
.hv-total strong { font-size: 1.2rem; }

@media (max-width: 960px) {
  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-visual { max-width: 560px; }
  .hero::before { width: 520px; height: 380px; right: -140px; bottom: 0; opacity: .14; }
}
@media (max-width: 560px) {
  .hv-mail, .hv-result { width: 100%; transform: none; }
  .hv-rows li { font-size: .84rem; }
  .cta-row .btn { width: 100%; }
  .hero h1 { font-size: 2.3rem; }
}

/* ---------- sections ---------- */
.sec { padding: 104px 0; }
.sec-paper { background: var(--paper); }
.sec-white { background: var(--white); }
.sec-navy { color: var(--on-navy); }
.sec-head { max-width: 760px; margin-bottom: 52px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 600 .8rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent-600); }
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.sec-lead { margin: 18px 0 0; font-size: 1.12rem; color: var(--muted); max-width: 40em; }
.sec-lead a { color: var(--ink); font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.sec-head-light h2 { color: #fff; }
.sec-head-light .kicker { color: var(--accent); }
.sec-head-light .sec-lead { color: var(--on-navy-muted); }
@media (max-width: 720px) { .sec { padding: 72px 0; } .sec-head { margin-bottom: 36px; } }

/* problem */
.pain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pain { position: relative; padding: 28px 26px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pain::before { content: ""; position: absolute; left: 26px; top: -1px; width: 48px; height: 3px; background: var(--accent); border-radius: 0 0 3px 3px; }
.pain-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.pain-top .ic { width: 30px; height: 30px; color: var(--navy-600); }
.pain-tag { font: 600 1.6rem/1 var(--f-mono); color: var(--ink); letter-spacing: -.03em; }
.pain h3 { margin-bottom: 10px; font-size: 1.28rem; }
.pain p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .pain-grid { grid-template-columns: minmax(0, 1fr); } }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 46px; border-top: 2px dashed #c7d6ea; z-index: 0; }
.step { position: relative; z-index: 1; padding: 0 4px; }
.step-no { position: absolute; top: 0; right: 4px; font: 600 .82rem/1 var(--f-mono); color: var(--muted); letter-spacing: .06em; }
.step-ic { width: 92px; height: 92px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 22px; background: var(--navy-900); color: var(--accent); box-shadow: 0 0 0 8px #fff, 0 14px 30px -14px rgba(11, 21, 38, .6); }
.step-ic .ic { width: 38px; height: 38px; }
.step h3 { margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
  .steps::before { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; padding: 0 0 30px; }
  .step::before { content: ""; position: absolute; left: 31px; top: 70px; bottom: 6px; border-left: 2px dashed #c7d6ea; }
  .step:last-child::before { display: none; }
  .step-ic { width: 64px; height: 64px; border-radius: 16px; grid-row: span 2; margin: 0; box-shadow: 0 10px 22px -12px rgba(11, 21, 38, .6); }
  .step-ic .ic { width: 28px; height: 28px; }
  .step h3 { align-self: end; margin: 4px 0 6px; padding-right: 30px; }
  .step-no { top: 6px; right: 0; }
}

/* features */
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feat { padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s, transform .2s; }
.feat:hover { border-color: #cbbfa6; box-shadow: var(--shadow); transform: translateY(-2px); }
.feat-ic { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-600); }
.feat-ic .ic { width: 24px; height: 24px; }
.feat h3 { margin-bottom: 8px; }
.feat p { margin: 0; color: var(--muted); font-size: .98rem; }
.feat-wide { background: var(--navy-900); border-color: var(--navy-900); color: var(--on-navy); }
.feat-wide:hover { border-color: var(--navy-900); }
.feat-wide .feat-ic { background: rgba(242, 163, 58, .14); color: var(--accent); }
.feat-wide h3 { color: #fff; }
.feat-wide p { color: var(--on-navy-muted); }
.chips { list-style: none; padding: 0; margin: 14px 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 12px; border: 1px solid rgba(111, 177, 255, .35); border-radius: 8px; font-size: .92rem; color: #dbe8fa; background: rgba(111, 177, 255, .07); }
@media (max-width: 960px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feat-wide { grid-column: span 2; } }
@media (max-width: 620px) { .feat-grid { grid-template-columns: minmax(0, 1fr); } .feat-wide { grid-column: auto; } }

/* ---------- sample budget ---------- */
.mock { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.mock-params { position: sticky; top: 96px; padding: 22px; border: 1px solid rgba(111, 177, 255, .3); border-radius: var(--radius); background: rgba(11, 21, 38, .75); }
.mock-params h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 1.05rem; color: #fff; }
.mock-params h3 .ic { color: var(--accent); }
.mock-params dl { margin: 0; }
.mock-params dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(111, 177, 255, .25); font-size: .93rem; }
.mock-params dt { color: var(--on-navy-muted); }
.mock-params dd { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); color: #fff; text-align: right; }
.ic-edit { width: 15px; height: 15px; color: var(--accent); }
.mock-note { margin: 14px 0 0; font-size: .88rem; color: var(--on-navy-muted); }

.sheet { position: relative; margin: 0; background: #fff; color: var(--ink); border-radius: 6px; box-shadow: var(--shadow-lg); overflow: hidden; }
.sheet::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: repeating-linear-gradient(90deg, var(--accent) 0 26px, var(--navy-900) 26px 52px); }
.stamp { position: absolute; top: 26px; right: 22px; z-index: 2; padding: 6px 14px; border: 3px solid rgba(192, 57, 43, .7); border-radius: 6px; color: rgba(192, 57, 43, .8); font: 700 1rem/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; transform: rotate(-8deg); }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 28px; padding: 28px 28px 18px; border-bottom: 2px solid var(--ink); }
.sheet-kind { margin: 0 0 6px; font: 600 .78rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sheet-title { margin: 0; font: 800 1.5rem/1.15 var(--f-head); font-stretch: 108%; }
.sheet-meta { margin: 0; display: flex; gap: 22px; font-size: .86rem; padding-right: 110px; }
.sheet-meta dt { color: var(--muted); font-size: .78rem; }
.sheet-meta dd { margin: 0; font-weight: 600; }
.sheet-table { padding: 0 28px; }
.bt { width: 100%; border-collapse: collapse; font-size: .9rem; }
.bt th { padding: 12px 8px; border-bottom: 1px solid var(--ink); font: 600 .74rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: left; }
.bt td { padding: 9px 8px; border-bottom: 1px solid #ece7dc; vertical-align: top; }
.bt .c-no { width: 48px; font-family: var(--f-mono); color: var(--muted); }
.bt .c-mj { width: 48px; }
.bt .c-n { text-align: right; white-space: nowrap; }
.bt th.c-n { text-align: right; }
.bt tr.dil td { background: #f3efe6; font-weight: 600; border-bottom-color: #ddd5c4; }
.bt tr.dil .c-no { color: var(--ink); }
.m-qty { display: none; }
.sheet-sum { margin: 0; padding: 18px 28px 6px; display: grid; gap: 0; max-width: 520px; margin-left: auto; }
.sheet-sum div { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; border-bottom: 1px solid #ece7dc; font-size: .94rem; }
.sheet-sum dt { color: var(--ink-2); }
.sheet-sum dd { margin: 0; }
.sheet-sum .sum-strong { font-weight: 600; border-bottom-color: var(--ink); }
.sheet-sum .sum-total { border: 0; margin-top: 8px; padding: 14px 16px; background: var(--navy-900); color: #fff; border-radius: 8px; font-size: 1.05rem; }
.sheet-sum .sum-total dt { color: #fff; font-weight: 600; }
.sheet-sum .sum-total dd { color: var(--accent); font-weight: 600; font-size: 1.15rem; }
.sheet figcaption { padding: 14px 28px 22px; font-size: .84rem; color: var(--muted); }

@media (max-width: 1020px) {
  .mock { grid-template-columns: minmax(0, 1fr); }
  .mock-params { position: static; }
  .mock-params dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}
@media (max-width: 700px) {
  .sheet-head { padding: 58px 18px 16px; }
  .sheet-meta { padding-right: 0; }
  .stamp { top: 18px; right: 14px; padding: 4px 10px; font-size: .74rem; border-width: 2px; transform: rotate(-4deg); }
  .sheet-table { padding: 0 12px; }
  .bt thead { display: none; }
  .bt, .bt tbody { display: block; }
  .bt tr { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 8px; align-items: start; border-bottom: 1px solid #ece7dc; }
  .bt td { display: block; padding: 10px 0; border: 0; }
  .bt tr.dil { background: #f3efe6; margin: 0 -12px; padding: 0 12px; }
  .bt tr.dil td { background: none; }
  .bt tr.dil td[colspan] { grid-column: auto; }
  .bt .c-no { width: auto; }
  .bt .c-mj, .bt tr.item .c-n:not(:last-child) { display: none; }
  .m-qty { display: block; margin-top: 3px; font: 400 .8rem/1.3 var(--f-mono); color: var(--muted); }
  .sheet-sum { padding: 16px 12px 4px; }
  .sheet-sum div { font-size: .88rem; }
  .sheet figcaption { padding: 12px 14px 18px; }
  .mock-params dl { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 30px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.plan-pilot { background: var(--navy-900); border-color: var(--navy-900); color: var(--on-navy); position: relative; }
.plan-pilot::after { content: "Začněte tady"; position: absolute; top: -13px; left: 28px; padding: 5px 11px; border-radius: 6px; background: var(--accent); color: var(--navy-900); font: 600 .74rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.plan-name { font-size: 1.5rem; font-weight: 800; }
.plan-pilot .plan-name { color: #fff; }
.plan-for { margin: 8px 0 22px; color: var(--muted); font-size: .98rem; min-height: 3em; }
.plan-pilot .plan-for { color: var(--on-navy-muted); }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 16px; }
.plan-price strong { font-family: var(--f-head); font-stretch: 108%; font-size: 2.35rem; line-height: 1; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan-price strong:not(.num) { font-family: var(--f-head); font-weight: 800; font-stretch: 110%; color: var(--accent); }
.plan-price span { color: var(--muted); font-size: .92rem; }
.plan-credits { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--paper); font-size: .98rem; }
.plan-credits .ic { color: var(--accent-600); }
.plan-pilot .plan-credits { background: rgba(111, 177, 255, .1); color: #fff; }
.plan-pilot .plan-credits .ic { color: var(--accent); }
.plan-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; font-size: .96rem; flex: 1; align-content: start; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list .ic { width: 18px; height: 18px; margin-top: 4px; color: #2f8a5b; }
.plan-pilot .plan-list .ic { color: var(--accent); }
.plan .btn { width: 100%; }
.extra { display: flex; align-items: center; gap: 18px; margin-top: 22px; padding: 20px 24px; border: 2px dashed #cdbf9f; border-radius: var(--radius); background: #fbf8f1; }
.extra p { margin: 0; }
.extra-ic { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: var(--navy-900); }
.extra-ic .ic { width: 22px; height: 22px; }
.included { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.included h3 { margin-bottom: 16px; font-size: 1.05rem; font-family: var(--f-mono); font-stretch: normal; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.included ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }
.included li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.included .ic { width: 18px; height: 18px; margin-top: 4px; color: #2f8a5b; }
.price-fallback { font-size: 1.1rem; }
@media (max-width: 960px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .plan-for { min-height: 0; }
  .included ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .included ul { grid-template-columns: minmax(0, 1fr); }
  .extra { align-items: flex-start; padding: 18px; }
  .plan { padding: 28px 22px; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq-head { position: sticky; top: 100px; margin-bottom: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 2px; cursor: pointer; font: 700 1.12rem/1.35 var(--f-head); font-stretch: 104%; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--navy-600); }
.faq-pm { position: relative; flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--paper); transition: background-color .2s; }
.faq-pm::before, .faq-pm::after { content: ""; position: absolute; left: 9px; top: 14px; width: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.faq-pm::after { transform: rotate(90deg); }
.faq details[open] .faq-pm { background: var(--accent); }
.faq details[open] .faq-pm::after { transform: rotate(0); }
.faq-a { padding: 0 2px 22px; color: var(--ink-2); max-width: 44em; }
.faq-a p { margin: 0; }
.faq-a a { color: var(--ink); font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 3px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } .faq-head { position: static; } }

/* ---------- final CTA ---------- */
.final { background: var(--accent); color: var(--navy-900); padding: 80px 0; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(11, 21, 38, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 21, 38, .07) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.final-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.final h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.final p { margin: 16px 0 0; font-size: 1.1rem; max-width: 34em; color: #2a2414; }
.final-cta { display: grid; gap: 14px; justify-items: start; }
.final-cta span { font-size: .95rem; }
.final-cta a:not(.btn) { font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 860px) { .final-inner { grid-template-columns: minmax(0, 1fr); } .final { padding: 64px 0; } .final-cta .btn { width: 100%; } }

/* ---------- footer ---------- */
.site-foot { background: var(--navy-950); color: var(--on-navy-muted); padding: 64px 0 28px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand .brand { color: #fff; margin-bottom: 14px; }
.foot-brand p { margin: 0; max-width: 24em; }
.foot-h { margin: 0 0 12px; font: 600 .76rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: #fff; font-stretch: normal; }
.foot-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.foot-links a { text-decoration: none; color: var(--on-navy-muted); overflow-wrap: anywhere; }
.foot-links a:hover { color: #fff; text-decoration: underline; }
.foot-op { margin-top: 6px; font-size: .86rem; color: #8797b0; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(111, 177, 255, .15); font-size: .86rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- legal pages ---------- */
.legal-hero { padding: 56px 0 44px; color: var(--on-navy); }
.legal-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; color: #fff; }
.legal-hero p { margin: 14px 0 0; color: var(--on-navy-muted); }
.draft-banner { display: block; margin: 26px 0 0; padding: 14px 18px; max-width: 760px; border-radius: 10px; background: var(--accent); color: var(--navy-900); font-weight: 600; }
.draft-banner span { font-weight: 400; display: block; margin-top: 2px; }
.legal { padding: 56px 0 96px; background: #fff; }
.legal-body { max-width: 800px; }
.legal-body h2 { font-size: 1.45rem; margin: 44px 0 14px; padding-top: 6px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.08rem; margin: 22px 0 8px; }
.legal-body p, .legal-body li { color: var(--ink-2); }
.legal-body ol, .legal-body ul { padding-left: 1.3em; margin: 0 0 1em; }
.legal-body li { margin-bottom: .45em; }
.legal-body a { color: var(--ink); font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.ph { background: #fff1d6; border: 1px dashed var(--accent-600); border-radius: 4px; padding: 0 4px; font-family: var(--f-mono); font-size: .92em; color: #7a4a06; }
.toc { margin: 0 0 40px; padding: 20px 24px; background: var(--paper); border-radius: var(--radius); }
.toc h2 { margin: 0 0 10px !important; font-size: 1rem; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .08em; font-stretch: normal; color: var(--muted); }
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
.toc a { font-weight: 500; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.tbl-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: 10px; }
.legal-body table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 520px; }
.legal-body th, .legal-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-body th { background: var(--paper); font-weight: 600; }
.legal-body tr:last-child td { border-bottom: 0; }
@media (max-width: 620px) { .toc ol { columns: 1; } .legal { padding: 40px 0 72px; } }

/* ---------- blog ---------- */
.blog-list { padding: 56px 0 96px; background: var(--paper); }
.blog-list h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 24px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 20px; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(11, 21, 38, .35); }
.post-card h2, .post-card h3 { font-size: 1.22rem; line-height: 1.3; margin: 0 0 10px; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.post-card p { margin: 0 0 14px; color: var(--ink-2); font-size: .97rem; flex: 1; }
.post-meta { font: 500 .8rem/1.4 var(--f-mono); color: var(--muted); }
.post-hero h1 { max-width: 900px; }
.crumbs { font: 500 .82rem/1.4 var(--f-mono); margin-bottom: 14px; color: var(--on-navy-muted); }
.crumbs a { color: var(--on-navy-muted); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { margin: 0 6px; }
.post-body { max-width: 760px; font-size: 1.06rem; }
.post-body p, .post-body li { line-height: 1.7; }
.post-body .lead { font-size: 1.2rem; color: var(--ink); line-height: 1.6; margin: 0 0 1.4em; max-width: none; }
.post-body .lead strong { color: var(--ink); font-weight: 700; }
.post-body h2 { scroll-margin-top: 90px; }
.post-body blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; color: var(--ink-2); }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body td.num, .post-body th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.post-body .toc ol { columns: 1; }
.post-cta { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 2em 0; padding: 22px 24px; border-radius: var(--radius); background: var(--navy-900); color: var(--on-navy); }
.post-cta strong { display: block; color: #fff; font-size: 1.12rem; margin-bottom: 4px; }
.post-cta p { margin: 0; color: var(--on-navy-muted) !important; font-size: .97rem; max-width: 470px; }
.post-cta .btn { flex: none; }
.post-faq details { border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; margin-bottom: 10px; background: #fff; }
.post-faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--ink); }
.post-faq details p { margin: 0 0 14px; }
.blog-related { padding-top: 48px; }
.home-blog .post-grid { margin-top: 8px; }
.home-blog .sec-more { margin-top: 28px; }
