/* ===== Jan D. – finanční poradce ===== */
:root {
  --teal: #4aaabf;
  --teal-dark: #388fa3;
  --teal-light: #e7f4f7;
  --slate: #536067;
  --slate-dark: #414c52;
  --coral: #ef8173;
  --coral-dark: #e2685a;
  --gray: #f1f2f3;
  --line: #e2e5e7;
  --text: #1f2a30;
  --muted: #5d6a71;
  --white: #fff;
  --radius: 24px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(31, 42, 48, .08);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px; z-index: 100; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  font-family: inherit;
}
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-dark); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--teal); color: var(--teal-dark); background: #fff; }
.btn-outline:hover { background: var(--teal-light); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ===== Header ===== */
.site-header {
  background: #fff;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: grid; place-items: center; font-weight: 900; font-size: 1rem;
}
.brand-logo { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.brand-text strong { display: block; font-size: 1.1rem; line-height: 1.1; }
.brand-text span { font-size: .8rem; color: var(--muted); }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.main-nav a {
  display: block; padding: 10px 12px; border-radius: 10px;
  text-decoration: none; color: var(--text); font-weight: 800; font-size: .92rem;
  text-transform: uppercase; letter-spacing: .02em;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--gray); }
.main-nav .btn { text-transform: uppercase; padding: 12px 20px; margin-left: 8px; }
.main-nav .btn:hover { background: var(--coral-dark); }
.nav-toggle {
  display: none; margin-left: auto; background: var(--gray); border: 0;
  width: 46px; height: 46px; border-radius: 10px; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--text); margin: auto; position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; box-shadow: var(--shadow); padding: 12px 20px 20px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ===== Hero ===== */
.hero {
  background-color: var(--slate);
  background-image:
    linear-gradient(90deg, rgba(43, 52, 57, .92) 0%, rgba(43, 52, 57, .78) 40%, rgba(43, 52, 57, .35) 75%, rgba(43, 52, 57, .2) 100%),
    url("../img/Prague_1.jpg");
  background-repeat: no-repeat;
  background-position: center, 60% center;
  background-size: cover, cover;
  color: #fff; padding: 80px 0; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-copy { padding-bottom: 0; }
.hero-copy h1, .hero-copy p, .hero-copy li { text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.eyebrow {
  display: inline-block; font-weight: 800; font-size: .85rem; letter-spacing: .06em;
  text-transform: uppercase; color: #bfe3eb; margin-bottom: 14px;
}
.hero p.lead { font-size: 1.2rem; color: #e3e8ea; max-width: 36em; }
.hero-photo { position: relative; align-self: center; }
.hero-photo img {
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  border: 4px solid rgba(255, 255, 255, .9);
  width: 100%; height: auto; max-width: 400px; margin-left: auto;
  aspect-ratio: 1085 / 1250; object-fit: cover; object-position: top;
}
.hero-badge {
  position: absolute; left: 0; bottom: 36px;
  background: #fff; color: var(--text); border-radius: 16px; padding: 14px 18px;
  box-shadow: var(--shadow); font-size: .92rem; max-width: 240px;
}
.hero-badge strong { display: block; color: var(--teal-dark); }
.checks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 8px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--teal);
  color: #fff; font-size: .8rem; display: grid; place-items: center; font-weight: 900;
}
@media (max-width: 860px) {
  .hero {
    padding: 48px 0 56px;
    background-image:
      linear-gradient(180deg, rgba(43, 52, 57, .9) 0%, rgba(43, 52, 57, .8) 55%, rgba(43, 52, 57, .45) 100%),
      url("../img/Prague_1.jpg");
    background-position: center, 70% bottom;
  }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 36px; }
  .hero-photo img { margin: 0 auto; max-width: 340px; }
  .hero-badge { left: 50%; transform: translateX(-50%); bottom: -18px; white-space: nowrap; }
}

/* Page hero (sub pages) */
.page-hero,
.calc-wrap.photo-bg {
  background-color: var(--slate);
  background-image:
    linear-gradient(90deg, rgba(43, 52, 57, .92) 0%, rgba(43, 52, 57, .8) 45%, rgba(43, 52, 57, .45) 80%, rgba(43, 52, 57, .3) 100%),
    url("../img/Prague_1.jpg");
  background-repeat: no-repeat;
  background-size: cover, cover;
  background-position: center, 65% 42%;
}
.page-hero { color: #fff; padding: 64px 0 72px; }
.page-hero h1, .page-hero p { text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.calc-wrap.photo-bg {
  background-image:
    linear-gradient(180deg, rgba(43, 52, 57, .7) 0%, rgba(43, 52, 57, .85) 100%),
    url("../img/Prague_1.jpg");
}
@media (max-width: 860px) {
  .page-hero {
    background-image:
      linear-gradient(180deg, rgba(43, 52, 57, .9) 0%, rgba(43, 52, 57, .78) 100%),
      url("../img/Prague_1.jpg");
    background-position: center, 72% center;
  }
}
.page-hero p.lead { font-size: 1.15rem; color: #e3e8ea; max-width: 44em; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-gray { background: var(--gray); }
.section-teal { background: var(--teal-light); }
.section-slate { background: var(--slate); color: #fff; }
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 800; text-decoration: none; }
.card .more::after { content: " →"; }
@media (min-width: 1021px) { .cards-5 { grid-template-columns: repeat(5, 1fr); } .cards-5 .card { padding: 24px; } }
a.card { text-decoration: none; color: inherit; transition: transform .15s; }
a.card:hover { transform: translateY(-3px); }
.icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--teal-light);
  display: grid; place-items: center; margin-bottom: 16px; color: var(--teal-dark);
}
.icon svg { width: 28px; height: 28px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--coral); color: #fff; font-weight: 900; font-size: 1.2rem; margin-bottom: 14px;
}
.step p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.callout {
  background: #fff; border-left: 6px solid var(--teal); border-radius: var(--radius-sm);
  padding: 22px 26px; box-shadow: var(--shadow);
}
.note-box {
  background: var(--gray); border-radius: var(--radius-sm); padding: 18px 22px; font-size: .95rem; color: var(--muted);
}

.list-plain { padding-left: 1.2em; }
.list-plain li { margin-bottom: 6px; }

/* Video */
.video-block { grid-template-columns: 1.15fr .85fr; }
.video-frame {
  border-radius: var(--radius); overflow: hidden; background: var(--teal);
  box-shadow: 0 20px 50px rgba(31, 42, 48, .18); aspect-ratio: 16 / 9;
}
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .video-block { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; }
.faq details {
  background: #fff; border-radius: var(--radius-sm); margin-bottom: 12px;
  box-shadow: 0 1px 0 var(--line), var(--shadow);
}
.faq summary {
  cursor: pointer; padding: 20px 24px; font-weight: 800; list-style: none; position: relative; padding-right: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--teal-dark);
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 24px 20px; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--teal); color: #fff; border-radius: var(--radius); padding: 48px; display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .2em; }
.cta-band p { margin: 0; color: #eaf6f9; }
.cta-band .btn-coral { box-shadow: 0 6px 18px rgba(0,0,0,.12); }

/* ===== Calculators (styled after the Partners Banka calculator) ===== */
.calc-wrap { background: var(--slate); padding: 64px 0; }
.calc-wrap > .container > h2 { color: #fff; text-align: center; margin-bottom: 28px; }
.calc-card {
  background: #fff; border-radius: 28px; padding: 32px;
  display: grid; grid-template-columns: 1fr 380px; gap: 40px;
}
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 8px; grid-column: 1 / -1; }
.tab {
  border: 0; background: var(--gray); color: var(--text); font: inherit; font-size: 1.05rem;
  padding: 12px 22px; border-radius: 10px; cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--teal); color: #fff; }
.calc-panel[hidden] { display: none; }
.calc-panel { display: contents; }
.calc-inputs { display: grid; gap: 34px; align-content: start; padding-top: 8px; }
.field { display: grid; grid-template-columns: 1fr 210px; gap: 8px 28px; align-items: center; }
.field label { font-size: 1.35rem; font-weight: 900; grid-column: 1; }
.field .sub { grid-column: 1; margin: -4px 0 0; color: var(--text); font-size: .98rem; }
.field .range { grid-column: 1; }
.field .num { grid-column: 2; grid-row: 1 / span 3; }
.num { position: relative; }
.num input {
  width: 100%; padding: 18px 48px 18px 22px; font: inherit; font-weight: 800; font-size: 1.05rem;
  border: 1px solid #d5d9dc; border-radius: 6px; background: #f6f7f8; color: var(--text);
}
.num input:focus { outline: 2px solid var(--teal); border-color: var(--teal); background: #fff; }
.num .unit { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-weight: 800; font-size: .95rem; }
input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 10px;
  background: linear-gradient(to right, var(--teal) var(--p, 50%), #ececec var(--p, 50%));
  margin: 12px 0 6px; cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 42px; height: 42px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.2); border: 0;
}
input[type=range]::-moz-range-thumb {
  width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.2); border: 0;
}
input[type=range]:focus-visible { outline: 2px solid var(--teal); outline-offset: 6px; }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: .92rem; }

.results {
  background: var(--teal); color: #fff; border-radius: 22px; padding: 28px 30px;
  display: flex; flex-direction: column; align-self: stretch;
}
.res-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.45); font-size: 1.12rem;
}
.res-row:last-of-type { border-bottom: 0; }
.res-row strong { font-weight: 900; text-align: right; white-space: nowrap; }
.res-row.big strong { font-size: 1.55rem; }
.res-row.stack { flex-direction: column; align-items: flex-start; gap: 6px; }
.res-row.stack strong { white-space: normal; text-align: left; }
.res-note { margin-top: auto; padding-top: 24px; font-size: .92rem; color: #eef8fa; }
.res-msg { background: rgba(255,255,255,.16); border-radius: 10px; padding: 12px 14px; font-size: .95rem; margin-top: 10px; }
.res-msg:empty { display: none; }
.results .btn { margin-top: 18px; text-align: center; }

/* Consolidation loan table */
.loan-table { display: grid; gap: 10px; }
.loan-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; }
.loan-row.head { font-size: .88rem; font-weight: 800; color: var(--muted); }
.loan-row .num input { padding: 14px 40px 14px 14px; font-size: .98rem; }
.loan-row .num .unit { right: 12px; font-size: .85rem; }
.calc-inputs h3 { font-size: 1.35rem; font-weight: 900; margin: 0 0 4px; }

@media (max-width: 1020px) {
  .calc-card { grid-template-columns: 1fr; padding: 22px; }
}
@media (max-width: 620px) {
  .field { grid-template-columns: 1fr; }
  .field .num { grid-column: 1; grid-row: auto; }
  .field label { font-size: 1.15rem; }
  .loan-row { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .loan-row .num input { padding: 12px 10px; }
  .loan-row .num .unit { display: none; }
  .tab { font-size: .95rem; padding: 10px 14px; }
}

/* ===== Contact form ===== */
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-weight: 800; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 14px 16px; font: inherit; border: 1px solid #d5d9dc; border-radius: 10px; background: #f8f9fa;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--teal); background: #fff; }
.form .small { font-size: .88rem; color: var(--muted); }
@media (max-width: 620px) { .form .row2 { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list a { font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.contact-list span { display: block; font-size: .88rem; color: var(--muted); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 10px; padding: 14px 18px; font-weight: 700; }
.form-status.ok { background: #e3f4ea; color: #1f6b43; border: 1px solid #b9e2c9; }
.form-status.err { background: #fdecea; color: #a03a2e; border: 1px solid #f5c2bb; }
.btn:disabled { opacity: .7; cursor: wait; }

/* ===== Footer ===== */
.site-footer { background: var(--slate-dark); color: #cfd6d9; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-grid h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.legal { border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; font-size: .85rem; color: #aab5ba; }
.legal p { margin-bottom: .6em; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
