/* Filigreeco — domácí rozpočet
   Editorial financial planning interface, Praha 2026 */

:root {
  --paper: #faf8f4;
  --paper-deep: #f2eee5;
  --paper-card: #ffffff;
  --ink: #14181d;
  --ink-soft: #3d474e;
  --slate: #5c6a72;
  --petrol: #1f4e5f;
  --petrol-dark: #163b48;
  --brass: #b08a4a;
  --brass-soft: #e6d8bd;
  --line: #e0d9cc;
  --line-soft: #ece7dc;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1160px;
  --radius: 3px;
  --shadow: 0 1px 2px rgba(20, 24, 29, .04), 0 10px 30px rgba(20, 24, 29, .05);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--petrol); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass); }

:focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 2.9vw, 3.7rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.42rem); }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* ——— eyebrow + segmented rule (signature motif) ——— */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 .9rem;
  display: block;
}

.rule {
  display: flex;
  gap: 4px;
  margin: 0 0 1.6rem;
  max-width: 220px;
}
.rule span { height: 3px; background: var(--line); }
.rule span:nth-child(1) { flex: 5; background: var(--petrol); }
.rule span:nth-child(2) { flex: 3; background: var(--brass); }
.rule span:nth-child(3) { flex: 2; background: var(--line); }

/* ——— header ——— */
.topbar {
  background: var(--petrol-dark);
  color: #e9eff1;
  font-size: .8rem;
  font-family: var(--font-mono);
  letter-spacing: .04em;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: 6px 26px;
  justify-content: space-between; align-items: center;
  padding-block: 8px;
}
.topbar a { color: #f4e9d6; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 248, 244, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand svg { flex: none; }
.brand b {
  font-family: var(--font-display);
  font-size: 1.28rem; font-weight: 600; letter-spacing: -.015em; color: var(--ink);
}
.brand i {
  display: block; font-style: normal;
  font-family: var(--font-mono); font-size: .62rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--slate);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: .93rem; color: var(--ink-soft); text-decoration: none;
  padding: 8px 11px; border-radius: var(--radius);
}
.nav a:hover { background: var(--paper-deep); color: var(--petrol); }
.nav a[aria-current="page"] { color: var(--petrol); box-shadow: inset 0 -2px 0 var(--brass); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 9px 12px; cursor: pointer;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink);
}

/* ——— buttons ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--radius);
  font-size: .95rem; font-weight: 500; text-decoration: none;
  border: 1px solid var(--petrol); background: var(--petrol); color: #fff;
  cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease;
  font-family: var(--font-body);
}
.btn:hover { background: var(--petrol-dark); border-color: var(--petrol-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--petrol); }
.btn.ghost:hover { background: var(--paper-deep); color: var(--petrol-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* ——— sections ——— */
main { display: block; }
.section { padding-block: clamp(56px, 7vw, 96px); }
.section--tint { background: var(--paper-deep); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head p { color: var(--slate); font-size: 1.05rem; margin-bottom: 0; }

/* ——— hero ——— */
.hero { padding-block: clamp(48px, 6vw, 88px) clamp(40px, 5vw, 70px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 64px); align-items: center;
}
.hero p.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 46ch; }
.hero-figure { position: relative; }
.hero-figure img { border: 1px solid var(--line); border-radius: var(--radius); }
.hero-meta {
  display: flex; gap: 26px; flex-wrap: wrap; margin-top: 2.2rem;
  padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.hero-meta div { min-width: 120px; }
.hero-meta b {
  display: block; font-family: var(--font-display);
  font-size: 1.5rem; color: var(--petrol); line-height: 1.2;
}
.hero-meta span {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--slate);
}

/* ——— cards ——— */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card img { border-bottom: 1px solid var(--line-soft); margin: -26px -24px 20px; width: calc(100% + 48px); max-width: none; border-radius: var(--radius) var(--radius) 0 0; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--slate); font-size: .96rem; margin-bottom: 0; }
.card .num {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em;
  color: var(--brass); display: block; margin-bottom: .7rem;
}

/* ——— split feature ——— */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.split img { border: 1px solid var(--line); border-radius: var(--radius); }
.split.reverse .split-media { order: 2; }

/* ——— budget ribbon widget ——— */
.ribbon-card {
  background: var(--paper-card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(24px, 3.4vw, 40px);
}
.ribbon-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 3vw, 48px); }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--font-mono); font-size: .7rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--slate); margin-bottom: 7px;
}
.field input[type="number"], .field input[type="text"], .field input[type="email"],
.field select, .field textarea {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: var(--font-body);
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--petrol); outline: none; box-shadow: 0 0 0 3px rgba(31,78,95,.12); }
.field input[type="range"] { width: 100%; accent-color: var(--petrol); }
.field .hint { font-size: .82rem; color: var(--slate); margin: 6px 0 0; }

.ribbon {
  display: flex; height: 46px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); margin-bottom: 20px;
}
.ribbon i {
  display: block; transition: flex-basis .3s ease;
  font-style: normal;
}
.ribbon i:nth-child(1) { background: var(--petrol); }
.ribbon i:nth-child(2) { background: var(--brass); }
.ribbon i:nth-child(3) { background: var(--brass-soft); }

.legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.legend div { border-top: 3px solid var(--line); padding-top: 12px; }
.legend div:nth-child(1) { border-color: var(--petrol); }
.legend div:nth-child(2) { border-color: var(--brass); }
.legend div:nth-child(3) { border-color: var(--brass-soft); }
.legend span {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--slate); display: block;
}
.legend b { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); display: block; line-height: 1.25; }
.legend em { font-style: normal; font-size: .84rem; color: var(--slate); }

/* ——— pricing ——— */
.toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper-card); padding: 4px; gap: 4px; margin-bottom: 2.4rem;
}
.toggle button {
  border: 0; background: none; cursor: pointer; padding: 9px 20px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--slate);
}
.toggle button[aria-pressed="true"] { background: var(--petrol); color: #fff; }

.plan {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.plan.featured { border-color: var(--petrol); box-shadow: 0 0 0 1px var(--petrol), var(--shadow); }
.plan .tag {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--brass); margin-bottom: .8rem; display: block;
}
.price { font-family: var(--font-display); font-size: 2.45rem; color: var(--petrol); line-height: 1; }
.price small { font-family: var(--font-body); font-size: .88rem; color: var(--slate); display: block; margin-top: .5rem; }
.plan ul { list-style: none; padding: 0; margin: 22px 0; border-top: 1px solid var(--line-soft); }
.plan li {
  padding: 10px 0 10px 24px; border-bottom: 1px solid var(--line-soft);
  font-size: .93rem; color: var(--ink-soft); position: relative;
}
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 19px;
  width: 9px; height: 9px; border-left: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; }

/* ——— tables ——— */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-card); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 560px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }
th {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--slate); background: var(--paper-deep);
}
td strong { color: var(--petrol); }
tbody tr:last-child td { border-bottom: 0; }

/* ——— steps ——— */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 96px 1fr; gap: 24px;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step .idx {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .16em; color: var(--brass);
  padding-top: 6px;
}
.step h3 { margin-bottom: .35em; }
.step p { color: var(--slate); margin-bottom: 0; }

/* ——— faq ——— */
details {
  border-bottom: 1px solid var(--line); padding: 6px 0;
}
details summary {
  cursor: pointer; list-style: none; padding: 16px 40px 16px 0; position: relative;
  font-family: var(--font-display); font-size: 1.1rem; color: var(--ink);
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; position: absolute; right: 6px; top: 14px;
  font-family: var(--font-mono); font-size: 1.3rem; color: var(--brass);
}
details[open] summary::after { content: "–"; }
details .answer { color: var(--slate); padding: 0 40px 16px 0; margin: 0; }

/* ——— quotes ——— */
.quote {
  background: var(--paper-card); border: 1px solid var(--line); border-left: 3px solid var(--brass);
  border-radius: var(--radius); padding: 26px 24px;
}
.quote p { font-family: var(--font-display); font-size: 1.06rem; color: var(--ink-soft); }
.quote footer { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }

/* ——— forms / contact ——— */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.form-grid .full { grid-column: 1 / -1; }
textarea { min-height: 150px; resize: vertical; }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: .88rem; color: var(--slate); margin: 6px 0 18px; }
.check input { margin-top: 4px; accent-color: var(--petrol); flex: none; }
.form-status {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--radius);
  font-size: .92rem; display: none;
}
.form-status.ok { display: block; background: #eef4f2; border: 1px solid #cfe0d9; color: #235945; }
.form-status.err { display: block; background: #fbf0ea; border: 1px solid #eed6c6; color: #8a4520; }
.err-msg { color: #a04d20; font-size: .82rem; margin: -12px 0 14px; display: none; }
.err-msg.show { display: block; }

/* ——— legal / prose ——— */
.prose { max-width: 780px; }
.prose h2 { margin-top: 2.2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.6em; font-size: 1.12rem; }
.prose ul, .prose ol { padding-left: 22px; color: var(--ink-soft); }
.prose li { margin-bottom: .5em; }
.prose .updated {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--slate);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 12px 0; margin-bottom: 2.4rem;
}

/* ——— info box ——— */
.note {
  background: var(--paper-card); border: 1px solid var(--line);
  border-left: 3px solid var(--petrol); border-radius: var(--radius);
  padding: 20px 22px; margin: 1.8rem 0;
}
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--petrol); }

/* ——— cta band ——— */
.cta-band {
  background: var(--petrol); color: #eef4f6;
  padding-block: clamp(46px, 6vw, 78px);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfdfe4; max-width: 56ch; }
.cta-band .btn { background: #fff; color: var(--petrol); border-color: #fff; }
.cta-band .btn:hover { background: var(--brass-soft); color: var(--petrol-dark); border-color: var(--brass-soft); }

/* ——— footer ——— */
.site-footer {
  background: #10171b; color: #b9c4c9; padding-block: 54px 30px; font-size: .92rem;
}
.site-footer h4 {
  color: #fff; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .18em;
  text-transform: uppercase; font-weight: 500; margin-bottom: 1.1rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer a { color: #cfd8dc; text-decoration: none; }
.site-footer a:hover { color: var(--brass-soft); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid #263136;
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
  font-size: .82rem; color: #7d8b91;
}
.footer-bottom button {
  background: none; border: 1px solid #34424a; color: #cfd8dc; cursor: pointer;
  padding: 7px 14px; border-radius: var(--radius); font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
}
.footer-bottom button:hover { border-color: var(--brass); color: var(--brass-soft); }

/* ——— cookie bar ——— */
.cookiebar {
  position: fixed; inset: auto 16px 16px 16px; z-index: 100;
  background: var(--paper-card); border: 1px solid var(--line);
  border-top: 3px solid var(--petrol);
  border-radius: var(--radius); box-shadow: 0 18px 48px rgba(20,24,29,.18);
  padding: 22px 24px; max-width: 720px; margin-inline: auto;
  display: none;
}
.cookiebar[data-open="true"] { display: block; }
.cookiebar h4 { font-family: var(--font-display); font-size: 1.12rem; margin: 0 0 .5em; }
.cookiebar p { font-size: .9rem; color: var(--slate); margin-bottom: 1rem; }
.cookiebar .btn-row { margin-top: 0; }
.cookiebar .btn { padding: 11px 20px; font-size: .88rem; }

/* ——— responsive ——— */
@media (max-width: 980px) {
  .hero-grid, .split, .ribbon-grid, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .grid-3 { gap: 20px; }
  .footer-grid { gap: 30px; }
}

@media (max-width: 860px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: inline-block; }
  .site-header .wrap { position: relative; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-2, .form-grid, .legend { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 6px; }
  .topbar .wrap { justify-content: flex-start; }
  .cookiebar { inset: auto 10px 10px 10px; padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
