:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --muted: #5b6b80;
  --line: #e2e8f0;
  --brand: #0f766e;
  --brand-ink: #0b5e58;
  --brand-soft: #e6f4f2;
  --accent: #f59e0b;
  --navy: #0b2545;
  --navy-2: #13355f;
  --ok: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .04), 0 8px 24px rgba(15, 27, 45, .06);
  --shadow-lg: 0 20px 50px rgba(11, 37, 69, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
[hidden] { display: none !important; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; border: 0;
  background: var(--brand); color: #fff; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--brand-ink); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid rgba(15, 118, 110, .35); outline-offset: 2px; }
.btn--small { padding: .55em 1.1em; font-size: .92rem; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #eef6f5; }
.btn--outline { background: rgba(255,255,255,.7); color: var(--navy); box-shadow: inset 0 0 0 1.5px #c5d0dc; }
.btn--outline:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn--accent { background: var(--accent); color: #1f1300; font-size: 1.15rem; font-weight: 700; padding: 1em 1.4em; }
.btn--accent:hover { background: #fbbf24; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--navy);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: .6em; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a:not(.btn) { color: rgba(255,255,255,.8); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav__links a:not(.btn):hover { color: #fff; }
@media (max-width: 760px) { .nav__links a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
.hero {
  color: var(--ink);
  /* barvy oblohy mění scene.js podle denní doby */
  background: linear-gradient(180deg, var(--sky-top, #e6f2fb) 0%, var(--sky-bottom, #ffffff) 70%);
  padding: clamp(40px, 6vw, 64px) 0 max(130px, calc(18.4vw - 90px));
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero__scene {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
  width: 100%; height: max(200px, 18.4vw);
  pointer-events: none; user-select: none;
  filter: brightness(calc(1 - .55 * var(--night, 0))) saturate(calc(1 - .35 * var(--night, 0)));
}
.hero__lights { filter: none; opacity: var(--night, 0); }
.hero__scene .shimmer { animation: shimmer 4s ease-in-out infinite; }
.hero__scene .shimmer--2 { animation-delay: -2s; }
@keyframes shimmer { 0%, 100% { opacity: .15; transform: translateX(-6px); } 50% { opacity: .55; transform: translateX(6px); } }

/* Obloha: hvězdy, slunce, měsíc */
.sky { position: absolute; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; }
.sky__stars { position: absolute; inset: 0; opacity: var(--night, 0); }
.sky__stars span { position: absolute; border-radius: 50%; background: #fff; animation: twinkle 3.5s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.sky__body { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.sky__sun {
  width: 64px; height: 64px;
  background: radial-gradient(circle at 40% 40%, #fff3b0, #fcd34d 55%, #fbbf24);
  box-shadow: 0 0 60px 24px rgba(252, 211, 77, .45), 0 0 140px 60px rgba(253, 230, 138, .35);
}
.sky__sun span {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fed7aa, #fb923c 60%, #f97316);
  box-shadow: 0 0 70px 30px rgba(251, 146, 60, .45);
  opacity: var(--warm, 0);
}
.sky__moon {
  width: 48px; height: 48px; opacity: 0;
  background:
    radial-gradient(circle at 62% 38%, rgba(148, 163, 184, .45) 0 5px, transparent 6px),
    radial-gradient(circle at 36% 62%, rgba(148, 163, 184, .4) 0 7px, transparent 8px),
    radial-gradient(circle at 66% 70%, rgba(148, 163, 184, .35) 0 3px, transparent 4px),
    radial-gradient(circle at 40% 40%, #ffffff, #e2e8f0);
  box-shadow: 0 0 40px 12px rgba(226, 232, 240, .35);
}
.hero::after {
  /* zesvětlení vlevo kvůli čitelnosti textu */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, .35) 40%, rgba(255, 255, 255, 0) 65%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 80%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 80%);
  opacity: calc(1 - var(--night, 0));
  pointer-events: none;
}
/* Noc: světlý text na tmavé obloze */
.hero h1, .hero .lead, .hero .eyebrow, .hero__badges, .hero__badges strong { transition: color 1.2s ease; }
.hero.is-night h1 { color: #ffffff; }
.hero.is-night .lead { color: rgba(255, 255, 255, .85); }
.hero.is-night .eyebrow { color: #5eead4; }
.hero.is-night .hero__badges { color: rgba(255, 255, 255, .8); }
.hero.is-night .hero__badges strong { color: #ffffff; }
.hero.is-night .btn--outline { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.hero__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: 1em; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; color: var(--navy); }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #3b4a5e; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero__badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: #3b4a5e; font-size: .92rem; }
.hero__badges li { display: flex; align-items: center; gap: .5em; }
.hero__badges strong { color: var(--ink); font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .18); }

.hero__card {
  justify-self: end; width: min(100%, 320px);
  background: rgba(255, 255, 255, .88);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.hero__card-label { font-size: .85rem; color: var(--muted); margin-bottom: .2em; }
.hero__card-rate { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .4em; color: var(--brand); }
.hero__card-sub { font-size: .85rem; color: var(--muted); margin-bottom: .1em; }
.hero__card-pay { font-size: 1.25rem; font-weight: 700; margin: 0; color: var(--navy); }
/* nízké obrazovky notebooků: kompaktnější úvod, aby byla vidět kalkulačka */
@media (min-width: 861px) and (max-height: 820px) {
  .hero { padding-top: 28px; }
  .hero h1 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
  .hero__cta { margin: 20px 0 16px; }
  .eyebrow { margin-bottom: .6em; }
}
@media (max-width: 860px) {
  .hero { padding-bottom: 185px; }
  .sky__sun { width: 44px; height: 44px; }
  .sky__moon { width: 36px; height: 36px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { display: none; }
  .hero__scene { height: 190px; }
  .hero::after { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; scroll-margin-top: 68px; }
#vysledek { scroll-margin-top: 84px; }
.section--alt { background: #eef2f7; }
.section__head { max-width: 640px; margin-bottom: 32px; }
.section__head p { color: var(--muted); font-size: 1.05rem; }
/* kalkulačka začíná až pod úvodem, aby nezakrývala domek */
#kalkulacka { padding-top: 28px; }

/* Pozadí sekcí – jeden motiv (jemné tečky / síť jako na plánku) v různých odstínech */
#kalkulacka {
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(20, 184, 166, .10), transparent 70%),
    radial-gradient(600px 400px at 0% 80%, rgba(11, 37, 69, .05), transparent 70%),
    radial-gradient(rgba(15, 118, 110, .09) 1px, transparent 1.6px) 0 0 / 22px 22px,
    #f4f7fa;
}
#sazby {
  background:
    linear-gradient(rgba(15, 118, 110, .055) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(15, 118, 110, .055) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(180deg, #e7f3f0 0%, #eef2f8 100%);
}
#jak-to-funguje {
  background:
    radial-gradient(520px 320px at 100% 0%, rgba(20, 184, 166, .10), transparent 70%),
    radial-gradient(520px 320px at 0% 100%, rgba(245, 158, 11, .08), transparent 70%),
    radial-gradient(rgba(11, 37, 69, .06) 1px, transparent 1.6px) 0 0 / 22px 22px,
    #ffffff;
}
#kontakt {
  background:
    radial-gradient(700px 400px at 100% 100%, rgba(15, 118, 110, .12), transparent 70%),
    linear-gradient(rgba(11, 37, 69, .045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(11, 37, 69, .045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(160deg, #eaf2fb 0%, #e8f4f1 100%);
}
#kalkulacka .section__head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.card--dark { background: var(--navy); color: #fff; border: 0; box-shadow: var(--shadow-lg); }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.calc__form { padding: clamp(20px, 3vw, 36px); }
.calc__result { position: sticky; top: 88px; }
@media (max-width: 960px) {
  .calc { grid-template-columns: 1fr; }
  .calc__result { position: static; }
}

.step { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
.step:last-child { margin-bottom: 0; }
.step + .step { padding-top: 28px; border-top: 1px solid var(--line); }
.step legend { display: flex; align-items: center; gap: .7em; font-size: 1.15rem; font-weight: 700; margin-bottom: 18px; padding: 0; }
.step__num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: .9rem; font-weight: 800; }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .choice { grid-template-columns: 1fr; } }
.choice__item { position: relative; cursor: pointer; }
.choice__item input { position: absolute; opacity: 0; pointer-events: none; }
.choice__body {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px;
  padding: 16px 18px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: #fff;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.choice__item:hover .choice__body { border-color: #b8c4d4; }
.choice__item input:checked + .choice__body { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.choice__item input:focus-visible + .choice__body { outline: 3px solid rgba(15, 118, 110, .35); outline-offset: 2px; }
.choice__icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.choice__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.choice__title { font-weight: 700; }
.choice__desc { font-size: .88rem; color: var(--muted); }

.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field label, .field .label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.field__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.field__row label { margin: 0; }
.field__row .money { margin-left: auto; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.field-grid .field { margin: 0; }
@media (max-width: 520px) { .field-grid { grid-template-columns: 1fr; } }
.opt { font-weight: 400; color: var(--muted); font-size: .82rem; margin-left: .3em; }
.hint { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }

input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .7em .9em; border-radius: 10px; border: 1.5px solid var(--line); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 118, 110, .15); }
input.invalid { border-color: var(--bad); }

.money { position: relative; display: inline-flex; align-items: center; flex: none; }
.money input { width: calc(8ch + 4.6em); text-align: right; padding-right: 2.6em; font-weight: 600; font-variant-numeric: tabular-nums; }
.money span { position: absolute; right: .9em; color: var(--muted); font-weight: 500; pointer-events: none; }

/* Posuvníky: silnější stopa s barevným přechodem, výrazný jezdec */
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 30px;
  background: transparent; cursor: pointer; margin: 2px 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, #2dd4bf 0%, var(--brand) var(--p, 50%), #e3e9f0 var(--p, 50%));
  box-shadow: inset 0 1px 2px rgba(15, 27, 45, .08);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -9px; border-radius: 50%; border: 0;
  background: radial-gradient(circle, var(--brand) 0 5px, #fff 6px);
  box-shadow: 0 0 0 5px rgba(15, 118, 110, .14), 0 4px 12px rgba(11, 37, 69, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}
input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 8px rgba(15, 118, 110, .16), 0 4px 12px rgba(11, 37, 69, .25); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]::-moz-range-track { height: 10px; border-radius: 999px; background: #e3e9f0; }
input[type="range"]::-moz-range-progress { height: 10px; border-radius: 999px; background: linear-gradient(90deg, #2dd4bf, var(--brand)); }
input[type="range"]::-moz-range-thumb {
  width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: radial-gradient(circle, var(--brand) 0 5px, #fff 6px);
  box-shadow: 0 0 0 5px rgba(15, 118, 110, .14), 0 4px 12px rgba(11, 37, 69, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}
input[type="range"]:hover::-moz-range-thumb { box-shadow: 0 0 0 8px rgba(15, 118, 110, .16), 0 4px 12px rgba(11, 37, 69, .25); }
input[type="range"]:active::-moz-range-thumb { transform: scale(1.12); }
input[type="range"]:focus { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 8px rgba(15, 118, 110, .3), 0 4px 12px rgba(11, 37, 69, .25); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 8px rgba(15, 118, 110, .3), 0 4px 12px rgba(11, 37, 69, .25); }
.scale { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.pill { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; padding: .3em .8em; border-radius: 999px; font-variant-numeric: tabular-nums; }

.segmented { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 5px; background: #eef2f7; border-radius: 12px; }
.segmented button {
  font: inherit; font-weight: 600; font-size: .92rem; padding: .6em .4em; border: 0; border-radius: 9px;
  background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s;
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] { background: #fff; color: var(--brand-ink); box-shadow: 0 1px 3px rgba(15, 27, 45, .12); }

.check { display: flex; align-items: flex-start; gap: .7em; cursor: pointer; font-weight: 500 !important; font-size: .95rem; }
.check input { width: 18px; height: 18px; margin-top: .15em; accent-color: var(--brand); flex: none; }
.check small { display: block; color: var(--muted); font-weight: 400; }

.loan-box {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  padding: 14px 18px; border-radius: var(--radius-sm); background: var(--brand-soft);
}
.loan-box > label { color: var(--brand-ink); font-weight: 600; margin: 0; }
.loan-box .money input { border-color: rgba(15, 118, 110, .3); font-size: 1.05rem; }
@media (max-width: 520px) {
  .loan-box { padding: 14px; gap: 8px 10px; }
  .loan-box > label { flex-basis: 100%; }
}
.loan-box strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.chip { margin-left: auto; font-size: .8rem; font-weight: 700; padding: .3em .75em; border-radius: 999px; background: #fff; color: var(--brand-ink); }
.chip--warn { background: #fef3c7; color: #92400e; }
.chip--bad { background: #fee2e2; color: #991b1b; }

/* ---------- Rozbalovací výběr ---------- */
.select { position: relative; }
.select__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font: inherit; font-weight: 600; color: var(--ink); text-align: left;
  padding: .8em 1.1em .8em 1.4em; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.select__btn:hover { border-color: #b8c4d4; }
.select__btn:focus-visible, .select.is-open .select__btn { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15, 118, 110, .14); }
.select__chev {
  width: 30px; height: 30px; padding: 6px; flex: none; border-radius: 50%;
  background: var(--brand-soft); fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), background .2s;
}
.select.is-open .select__chev { transform: rotate(180deg); background: var(--brand); stroke: #fff; }
.select__menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 15;
  list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 26px;
  box-shadow: 0 24px 48px rgba(11, 37, 69, .16), 0 4px 12px rgba(11, 37, 69, .06);
  transform-origin: top center;
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.97);
  clip-path: inset(0 0 100% 0 round 26px);
  transition: opacity .35s ease, transform .5s cubic-bezier(.2, .8, .2, 1), clip-path .55s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .55s;
}
.select.is-open .select__menu {
  opacity: 1; visibility: visible; transform: none; clip-path: inset(0 0 0 0 round 26px);
  transition: opacity .35s ease, transform .5s cubic-bezier(.2, .8, .2, 1), clip-path .55s cubic-bezier(.2, .8, .2, 1), visibility 0s;
}
.select__menu:focus { outline: none; }
.select__menu [role="option"] {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: .7em 1.1em; border-radius: 999px; cursor: pointer; font-weight: 500;
  opacity: 0; transform: translateY(-6px);
  transition: background .2s, color .2s, opacity .3s ease, transform .4s cubic-bezier(.2, .8, .2, 1);
}
.select.is-open [role="option"] { opacity: 1; transform: none; transition-delay: 0s, 0s, var(--d, .08s), var(--d, .08s); }
.select__menu [role="option"]:nth-child(2) { --d: .13s; }
.select__menu [role="option"]:nth-child(3) { --d: .18s; }
.select__menu [role="option"]:nth-child(4) { --d: .23s; }
.select__menu [role="option"]:nth-child(5) { --d: .28s; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.select__menu [role="option"].is-active { background: var(--brand-soft); color: var(--brand-ink); }
.select__menu [role="option"][aria-selected="true"] { font-weight: 700; color: var(--brand-ink); }
.select__check { width: 18px; height: 18px; fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
[aria-selected="true"] > .select__check { opacity: 1; }

.money--years input { width: calc(2ch + 4.9em); padding-right: 3.2em; }

/* ---------- Result ---------- */
.result { padding: clamp(22px, 3vw, 32px); }
.result__label { color: rgba(255,255,255,.85); font-weight: 600; font-size: clamp(1.15rem, 1.6vw, 1.3rem); margin-bottom: .35em; }
.result__range { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: .3em; font-variant-numeric: tabular-nums; }
.result__avg { color: rgba(255,255,255,.8); margin-bottom: 1.2em; }
.result__avg strong { color: #5eead4; }

.rangebar { margin-bottom: 20px; }
.rangebar__track { position: relative; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #34d399, #fbbf24 70%, #f87171); }
.rangebar__marker {
  position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 4px solid var(--navy); transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px #fff; transition: left .3s ease;
}
.rangebar__labels { display: flex; justify-content: space-between; font-size: .78rem; color: rgba(255,255,255,.6); margin-top: 8px; }

.result__alert { border-radius: 12px; padding: 12px 14px; font-size: .92rem; margin-bottom: 16px; background: rgba(248, 113, 113, .16); color: #fee2e2; }

.result__list { margin: 0 0 20px; display: grid; gap: 0; }
.result__list > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .93rem; }
.result__list dt { color: rgba(255,255,255,.65); }
.result__list dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: .15em .6em; border-radius: 999px; margin-left: .4em; vertical-align: 1px; }
.tag--ok { background: rgba(52, 211, 153, .2); color: #6ee7b7; }
.tag--warn { background: rgba(251, 191, 36, .2); color: #fcd34d; }
.tag--bad { background: rgba(248, 113, 113, .2); color: #fca5a5; }

.result__note { font-size: .8rem; color: rgba(255,255,255,.55); margin: 12px 0 0; text-align: center; }

/* ---------- Rates table ---------- */
.table-card { overflow-x: auto; }
.rates { width: 100%; border-collapse: collapse; }
.rates th, .rates td { padding: 16px 22px; text-align: left; }
.rates thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); font-weight: 600; }
.rates tbody tr + tr td { border-top: 1px solid var(--line); }
.rates tbody td:first-child { font-weight: 700; }
.rates .r-range { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rates .r-avg { display: block; font-size: .82rem; color: var(--muted); }
.rates tr.is-active td { background: var(--brand-soft); }
@media (max-width: 560px) {
  .rates th, .rates td { padding: 12px 14px; }
  .rates thead th { font-size: .72rem; }
  .rates .r-range { font-size: .9rem; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { padding: 28px; display: grid; grid-template-columns: auto 1fr; align-items: center; align-content: start; gap: 18px 16px; }
.steps h3 { margin: 0; font-size: clamp(1.25rem, 1.7vw, 1.32rem); }
.steps p { grid-column: 1 / -1; margin: 0; color: #334155; font-size: 1.06rem; line-height: 1.6; }
.steps__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; font-size: 1.3rem; font-weight: 800; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 28px; } }
.contact__text p { color: var(--muted); font-size: 1.05rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%230f766e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.contact__phone a { font-weight: 700; text-decoration: none; }
.contact__form { padding: clamp(20px, 3vw, 32px); }
.contact__form .check { margin: 4px 0 18px; font-size: .88rem; color: var(--muted); }
.summary { background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: .88rem; }
.summary p { margin: 0; }
.summary__title { font-weight: 700; color: var(--brand-ink); margin-bottom: .2em !important; }
.form-error { color: var(--bad); font-size: .9rem; font-weight: 500; }
.form-success { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #dcfce7; color: #14532d; display: grid; gap: 2px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 36px 0; font-size: .9rem; }
.footer strong { color: #fff; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer__inner p { margin: 0; }
.footer a { color: rgba(255,255,255,.85); }
.footer a:hover { color: #fff; }

/* ---------- Stránka Zásady ochrany osobních údajů ---------- */
.legal { padding: clamp(40px, 6vw, 72px) 0; background: radial-gradient(rgba(15, 118, 110, .07) 1px, transparent 1.6px) 0 0 / 22px 22px, #f4f7fa; }
.legal__card { max-width: 820px; margin-inline: auto; padding: clamp(24px, 4vw, 48px); }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--navy); }
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; color: var(--navy); }
.legal p, .legal li { color: #334155; line-height: 1.65; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .35em; }
.legal__meta { color: var(--muted); font-size: .92rem; }
.legal__back { display: inline-block; margin-bottom: 20px; font-weight: 600; text-decoration: none; }

/* ---------- Mobilní lišta se splátkou ---------- */
.mobilebar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-radius: 16px; background: var(--navy); color: #fff;
  box-shadow: var(--shadow-lg); text-decoration: none;
  transform: translateY(150%); transition: transform .25s ease;
}
.mobilebar.is-visible { transform: none; }
.mobilebar span { font-size: .8rem; color: rgba(255,255,255,.7); display: block; }
.mobilebar strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.mobilebar em { font-style: normal; font-weight: 600; font-size: .85rem; color: #5eead4; white-space: nowrap; }
@media (max-width: 960px) { .mobilebar { display: flex; } }

@media (prefers-reduced-motion: reduce) {
  .select__menu, .select [role="option"] { transition-duration: .01s !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
