:root {
  --ink: #062329;        /* PROSIGHT tmavá petrolejová */
  --ink-2: #253e43;
  --muted: #637579;
  --line: #dfe3e3;
  --mist: #c0c8c9;
  --bg: #f5f5f5;
  --card: #ffffff;
  --lime: #aef661;       /* PROSIGHT limetková */
  --lime-dark: #9be84a;
  --r-lg: 32px;
  --r-md: 20px;
  --font: "MacanPanWeb", "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.2vw, 68px); }
h2 { font-size: clamp(32px, 4.4vw, 48px); }
h3 { font-size: 24px; line-height: 1.2; }
p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { padding: 56px 0; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 34em; }
.sub { color: var(--muted); max-width: 38em; margin-top: 14px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.on-dark .btn-ghost { border-color: var(--mist); color: #fff; }
.on-dark .btn-ghost:hover { background: #fff; color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--lime); }

/* Hlavička */
header { position: sticky; top: 0; z-index: 10; background: rgba(245,245,245,.9); backdrop-filter: blur(10px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.brand i { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--ink); margin: 4px; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-size: 16px; font-weight: 500; }
.nav ul a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav .btn { padding: 12px 20px; font-size: 15px; white-space: nowrap; }

/* Úvod */
.hero { padding: 48px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--lime) 62%); }
.hero .lead { margin-top: 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.photo {
  position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden;
  background: var(--ink); color: #fff; display: grid; place-items: center; text-align: center;
}
.photo::before, .photo::after {
  content: ""; position: absolute; background: var(--ink-2); border-radius: 6px; transform: rotate(-24deg);
}
.photo::before { width: 46%; height: 26%; top: -4%; right: -8%; }
.photo::after { width: 60%; height: 30%; bottom: 6%; left: -22%; }
.photo .ph { position: relative; z-index: 1; padding: 20px; }
.photo .ph b { display: block; font-size: 96px; font-weight: 500; letter-spacing: -0.04em; color: var(--lime); line-height: 1; }
.photo .ph span { display: block; margin-top: 14px; color: var(--mist); font-size: 15px; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.photo-cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 15px; color: var(--muted); }
.photo-cap strong { color: var(--ink); font-weight: 600; }

/* Situácie */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 36px; }
.card {
  grid-column: span 2; background: var(--card); border-radius: var(--r-md); padding: 28px;
  display: flex; flex-direction: column; gap: 12px; text-decoration: none;
  border: 1.5px solid transparent; transition: border-color .15s, transform .15s;
}
.card:nth-child(n+4) { grid-column: span 3; }
.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card p { color: var(--muted); font-size: 16px; }
.card .go { margin-top: auto; padding-top: 14px; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.card .go::after { content: "→"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); transition: transform .15s; }
.card:hover .go::after { transform: translateX(4px); }

/* Kalkulačky */
.calc { margin-top: 36px; background: var(--card); border-radius: var(--r-lg); overflow: hidden; }
.tabs { display: flex; background: #e9ecec; }
.tabs button {
  flex: 1; padding: 20px 12px; border: 0; background: none; cursor: pointer;
  font: 600 16px/1.2 var(--font); color: var(--muted); border-bottom: 3px solid transparent;
}
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); border-bottom-color: var(--lime); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; }
.calc-in { padding: clamp(20px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 28px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.field .num { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 16px; background: #fff; }
.field .num:focus-within { border-color: var(--ink); }
.field .num input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 14px 0; font: 500 20px/1 var(--font); color: var(--ink); }
.field .num span { color: var(--muted); font-size: 16px; }
.field input[type=range] { width: 100%; margin: 14px 0 4px; accent-color: var(--ink); }
.field .range { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.calc-note { font-size: 13px; color: var(--muted); margin-top: auto; }
.calc-out { background: var(--ink); color: #fff; padding: clamp(20px, 3.5vw, 40px); border-radius: var(--r-lg) 0 0 0; }
.calc-out .k { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }
.calc-out .big { font-size: clamp(40px, 5.5vw, 60px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; color: var(--lime); margin: 6px 0 22px; font-variant-numeric: tabular-nums; }
.rows { display: grid; gap: 10px; font-size: 16px; }
.rows div { display: flex; justify-content: space-between; gap: 16px; color: var(--mist); }
.rows b { color: #fff; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--ink-2); margin: 20px 0 8px; gap: 2px; }
.bar i:first-child { background: var(--mist); }
.bar i:last-child { background: var(--lime); }
.bar-key { display: flex; justify-content: space-between; font-size: 13px; color: var(--mist); }
.calc-out details { border: 0; margin-top: 18px; }
.calc-out summary { padding: 0; font-size: 15px; font-weight: 600; justify-content: flex-start; gap: 10px; text-decoration: underline; text-underline-offset: 4px; }
.calc-out summary::after { display: none; }
.sched { max-height: 260px; overflow: auto; margin-top: 14px; border-radius: 12px; background: var(--ink-2); }
.sched table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.sched th, .sched td { padding: 8px 10px; text-align: right; white-space: nowrap; }
.sched th { position: sticky; top: 0; background: var(--ink-2); color: var(--mist); font-weight: 600; }
.sched th:first-child, .sched td:first-child { text-align: left; }
.sched tr + tr td { border-top: 1px solid rgba(255,255,255,.08); }
.leadform { margin-top: 4px; }
.calc-out.locked #result, .calc-out:not(.locked) #teaser, .calc-out:not(.locked) .leadform { display: none; }
#teaser .big { margin-bottom: 18px; }
#thanks { margin-top: 22px; font-size: 15px; color: var(--lime); }
.leadform h3 { font-size: 22px; margin-bottom: 6px; }
.leadform > p { color: var(--mist); font-size: 15px; margin-bottom: 16px; }
.leadform .inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.leadform .inputs input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid transparent; font: 400 16px/1.2 var(--font); color: var(--ink); background: #fff; }
.leadform .inputs input:first-child { grid-column: span 2; }
.leadform .inputs input:focus { outline: 3px solid var(--lime); }
.leadform .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--mist); margin: 14px 0 16px; cursor: pointer; }
.leadform .consent input { margin-top: 3px; accent-color: var(--lime); width: 16px; height: 16px; flex: none; }
.leadform .btn { width: 100%; justify-content: center; }
.leadform .btn[disabled] { opacity: .6; cursor: wait; }
.leadform .msg { margin-top: 12px; font-size: 15px; }
.leadform .msg.ok { color: var(--lime); }
.leadform .msg.err { color: #ffb4a8; }
.leadform .hp { position: absolute; left: -9999px; }
@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-out { border-radius: 0; }
  .tabs button { font-size: 14px; padding: 16px 6px; }
}
@media (max-width: 480px) { .leadform .inputs { grid-template-columns: 1fr; } .leadform .inputs input:first-child { grid-column: auto; } }

/* Hodnoty */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.value { background: var(--card); border-radius: var(--r-md); padding: 32px 28px 36px; }
.value::before { content: ""; display: block; width: 44px; height: 6px; border-radius: 99px; background: var(--lime); margin-bottom: 28px; }
.value h3 { font-size: 28px; font-weight: 400; margin-bottom: 16px; }
.value h3 b { font-weight: 600; }
.value p { color: var(--ink-2); }
@media (max-width: 900px) { .values { grid-template-columns: 1fr; } }

/* Pohyb */
.badge { display: inline-flex; align-items: center; gap: 10px; background: #fff; padding: 9px 16px; border-radius: 999px; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #5fbf1e; flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }
.rot { display: inline-block; color: var(--muted); transition: opacity .35s, transform .35s; }
.rot.out { opacity: 0; transform: translateY(.25em); }
.ticker { overflow: hidden; padding: 22px 0; border-block: 1.5px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { display: flex; align-items: center; gap: 28px; padding-right: 28px; font-size: 15px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ticker span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1.5px var(--ink); }
@keyframes ticker { to { transform: translateX(-50%); } }
.rv { opacity: 0; }
.rv.in { opacity: 1; animation: up .7s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: var(--d, 0s); }
@keyframes up { from { opacity: 0; transform: translateY(28px); } }
.photo { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.photo:hover { transform: translateY(-6px) rotate(-.6deg); }
.photo::before { animation: drift 9s ease-in-out infinite alternate; }
.photo::after { animation: drift 11s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { translate: 0 0; } to { translate: -10px 14px; } }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; } .rv.in, .pulse::after, .ticker-track, .photo::before, .photo::after { animation: none; }
}

/* Tmavý blok */
.dark { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(32px, 5vw, 64px); }
.dark .sub { color: var(--mist); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.dark .box { background: var(--ink-2); border-radius: var(--r-md); padding: 28px; }
.dark .box h3 { color: var(--lime); margin-bottom: 12px; }
.dark .box p { color: #e3e8e8; font-size: 16px; }
.legal { margin-top: 28px; font-size: 14px; color: var(--mist); max-width: 60em; }

/* Kroky */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; counter-reset: s; }
.step { background: var(--card); border-radius: var(--r-md); padding: 28px; counter-increment: s; }
.step::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--lime); font-weight: 600; margin-bottom: 20px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; }

/* Kde */
.where { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.place { background: var(--card); border-radius: var(--r-md); padding: 28px; }
.place.main { background: linear-gradient(135deg, #fff 0%, #e4e8e8 100%); }
.place h3 { margin-bottom: 8px; }
.place p { color: var(--muted); font-size: 16px; }
.place a { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 15px; text-underline-offset: 4px; }

/* FAQ */
.faq { margin-top: 36px; border-top: 1.5px solid var(--line); }
details { border-bottom: 1.5px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 22px 0; font-size: 20px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; border: 1.5px solid var(--ink); font-weight: 400; font-size: 22px; line-height: 1;
}
details[open] summary::after { content: "−"; background: var(--lime); border-color: var(--lime); }
details > p { padding: 0 0 24px; color: var(--ink-2); max-width: 46em; }
.faq .dark, .faq .steps { margin: 0 0 28px; }
.faq .dark .sub { margin-top: 0; }
.faq .two { margin-top: 24px; }
.faq details { scroll-margin-top: 84px; }

/* Kontakt */
.contact { text-align: center; }
.contact .sub { margin-left: auto; margin-right: auto; }
.contact .cta-row { justify-content: center; }
.contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--ink-2); font-size: 16px; color: var(--mist); }
.contact-list a { color: #fff; text-underline-offset: 4px; }


@media (max-width: 900px) {
  section { padding: 40px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .photo { aspect-ratio: 4/3; }
  .card, .card:nth-child(n+4) { grid-column: span 6; }
  .two, .steps, .where { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  summary { font-size: 18px; }
}
@media (max-width: 480px) {
  .cta-row .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Podstránky */
h1.page-h { font-size: clamp(36px, 5vw, 56px); }
.page-top { padding-top: 48px; }

/* Menu */
.nav ul a[aria-current] { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.call svg { width: 16px; height: 16px; flex: none; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink); background: none; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; flex: none; }
.burger i { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
header.open .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.open .burger i:nth-child(2) { opacity: 0; }
header.open .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .burger { display: flex; }
  .nav { gap: 10px; }
  .nav .call { margin-left: auto; }
  .nav ul { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); padding: 4px 16px 20px; border-bottom: 1.5px solid var(--line); box-shadow: 0 24px 30px rgba(6,35,41,.1); }
  header.open .nav ul { display: flex; }
  .nav ul a { display: block; padding: 17px 4px; font-size: 19px; border-bottom: 1px solid var(--line); }
  .badge { font-size: 12.5px; padding: 8px 13px; }
}
@media (max-width: 420px) {
  .nav .call span { display: none; }
  .nav .call { padding: 14px; }
  .brand { font-size: 18px; }
}

/* Spodná lišta */
.foot { position: relative; overflow: hidden; margin-top: 48px; padding: 80px 0 36px; background: var(--ink); color: var(--mist); border-radius: 48px 48px 0 0; font-size: 16px; }
.foot .wrap { position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 1.3fr .9fr 1.4fr 1.1fr; gap: 48px; }
.foot .brand { color: #fff; font-size: 22px; }
.foot .brand i { box-shadow: 0 0 0 4px var(--ink-2); }
.foot .role { display: block; margin: 6px 0 22px 28px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--lime); }
.foot-brand p { max-width: 22em; }
.foot h4 { margin: 6px 0 24px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--lime); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.foot ul a { color: #fff; text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 12px; transition: color .15s, gap .15s; }
.foot ul a::before { content: ""; width: 8px; height: 1.5px; background: var(--muted); }
.foot ul a:hover { color: var(--lime); gap: 16px; }
.foot-contact { display: grid; gap: 22px; }
.foot-contact a { display: flex; align-items: center; gap: 16px; text-decoration: none; color: #fff; }
.foot-contact .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--ink-2); display: grid; place-items: center; flex: none; transition: background .15s; }
.foot-contact svg { width: 20px; height: 20px; stroke: var(--mist); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .15s; }
.foot-contact a:hover .ico { background: var(--lime); }
.foot-contact a:hover svg { stroke: var(--ink); }
.foot-contact small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin-bottom: 2px; }
.foot-contact b { font-weight: 600; overflow-wrap: anywhere; }
.member { align-self: start; background: var(--ink-2); border: 1px solid rgba(255,255,255,.08); border-radius: 28px; padding: 30px 28px; text-align: right; }
.member .mark { font-size: 26px; font-weight: 600; letter-spacing: .02em; color: var(--lime); }
.member small { display: block; margin-top: 26px; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.member strong { display: block; margin-top: 6px; color: #fff; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 14px; }
.member p { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--ink-2); font-size: 13px; }
.foot-bottom p { max-width: 62em; }
.totop { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; color: var(--mist); text-decoration: none; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.totop i { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--muted); display: grid; place-items: center; font-style: normal; font-size: 18px; color: #fff; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.totop:hover i { background: var(--lime); border-color: var(--lime); color: var(--ink); transform: translateY(-3px); }
.foot-mark { position: absolute; right: -2vw; bottom: -.18em; font-size: clamp(120px, 24vw, 340px); font-weight: 600; letter-spacing: -.02em; line-height: 1; color: rgba(255,255,255,.03); pointer-events: none; user-select: none; }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .foot { border-radius: 32px 32px 0 0; padding-top: 56px; }
  .foot-grid { grid-template-columns: 1fr; gap: 40px; }
  .member { text-align: left; }
  .foot-bottom { flex-direction: column; align-items: flex-start; margin-top: 44px; }
  .totop { flex-direction: row; }
}

/* Okno „Napíšte mi“ */
.msgbox { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 0; border-radius: 28px; padding: 0; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(6,35,41,.35); }
.msgbox::backdrop { background: rgba(6,35,41,.6); backdrop-filter: blur(4px); }
.msgbox[open] { animation: up .35s cubic-bezier(.2,.7,.2,1); }
.msgbox form { position: relative; display: grid; gap: 12px; padding: 32px 28px 28px; }
.msgbox h3 { font-size: 30px; }
.msgbox .sub { margin: 0 0 8px; font-size: 16px; }
.msgbox input:not([type=checkbox]), .msgbox textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font: 400 16px/1.4 var(--font); color: var(--ink); resize: vertical; }
.msgbox input:focus, .msgbox textarea:focus { outline: 0; border-color: var(--ink); }
.msgbox .hp { position: absolute; left: -9999px; }
.msgbox .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; margin: 4px 0; }
.msgbox .consent input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--ink); }
.msgbox .btn { justify-content: center; }
.msgbox .btn[disabled] { opacity: .6; cursor: wait; }
.msgbox .x { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.msgbox .x:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.msgbox .msg { font-size: 15px; min-height: 1.4em; }
.msgbox .msg.ok { color: #2f7d0b; }
.msgbox .msg.err { color: #b3261e; }

/* Spolupráca */
.perk-group { margin-top: 44px; }
.tag { display: inline-block; background: var(--lime); padding: 10px 20px; border-radius: 12px; font-weight: 600; font-size: 16px; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.perk { background: var(--card); border-radius: var(--r-md); padding: 40px 24px 44px; text-align: center; transition: transform .2s; }
.perk:hover { transform: translateY(-4px); }
.perk i { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%; background: var(--ink); }
.perk i::before { content: ""; width: 20px; height: 10px; border-left: 2.5px solid var(--lime); border-bottom: 2.5px solid var(--lime); transform: translateY(-3px) rotate(-45deg); }
.perk h3 { font-size: 24px; font-weight: 600; text-wrap: balance; }
@media (max-width: 900px) { .perks { grid-template-columns: 1fr; } .perk { padding: 32px 20px 36px; } .nav ul a { padding: 15px 4px; } }
@media (min-width: 901px) and (max-width: 1040px) { .nav ul { gap: 18px; } }

.hl { background: linear-gradient(transparent 62%, var(--lime) 62%); font-weight: 600; }
h1 .hl { font-weight: inherit; }
.pitch { margin-top: 22px; max-width: 36em; }
h1.page-h + .pitch { margin-top: 28px; }

/* Hláška po kliknutí na číslo (počítač) */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px; font-size: 15px; font-weight: 500; box-shadow: 0 12px 30px rgba(6,35,41,.3); border: 1.5px solid var(--lime); transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.member-link { display: block; color: inherit; text-decoration: none; }
.member-link .mark span { display: inline-block; font-size: .7em; opacity: .6; transition: transform .15s, opacity .15s; }
.member-link:hover .mark span { opacity: 1; transform: translate(3px, -3px); }
.member-link:hover strong { color: var(--lime); }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.post { background: var(--card); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; border: 1.5px solid transparent; transition: border-color .15s, transform .15s; animation: up .6s cubic-bezier(.2,.7,.2,1) backwards; }
.post:hover { border-color: var(--ink); transform: translateY(-3px); }
.post-img { aspect-ratio: 2/1; background: linear-gradient(135deg, var(--ink), var(--ink-2)); overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.post:hover .post-img img { transform: scale(1.04); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 20px 24px 0; font-size: 13px; color: var(--muted); }
.post-cat { background: var(--lime); color: var(--ink); font-weight: 600; padding: 4px 10px; border-radius: 8px; }
.post h3 { padding: 12px 24px 0; font-size: 21px; }
.post p { padding: 10px 24px 0; font-size: 15px; color: var(--muted); }
.post .go { margin-top: auto; padding: 18px 24px 24px; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.post .go::after { content: "↗"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); }
.posts-msg { margin-top: 28px; color: var(--muted); }
.posts-more { margin-top: 28px; text-align: center; }
@media (max-width: 1000px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .posts { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1100px) { .nav ul { gap: 16px; } .nav ul a { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .post { animation: none; } }
/* Kalkulačka max. výšky hypotéky: kompaktný formulár so skupinami */
#fields.compact { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 14px; }
#fields.compact > * { grid-column: span 6; }
#fields.compact > .half { grid-column: span 3; }
#fields.compact > .third { grid-column: span 2; }
#fields.compact > [hidden] { display: none; }
#fields.compact .field label, #fields.compact .flabel { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
#fields.compact .field .num input { padding: 11px 0; font-size: 17px; }
#fields.compact .field input[type=range] { margin-top: 10px; }
.fgroup { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 10px 0 -4px; padding-top: 14px; border-top: 1.5px solid var(--line); }
.fgroup:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.fcheck { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; cursor: pointer; }
.fcheck input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.seg { display: flex; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 11px; padding: 9px 8px; font: 500 14px/1.2 var(--font); color: var(--ink); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.fhint { font-size: 13px; color: var(--muted); margin-top: -6px; }
@media (max-width: 480px) { #fields.compact > .half, #fields.compact > .third { grid-column: span 6; } }
