/* ═══════════════════════════════════════════════════════════════
   KALKULAČKA PODNIKATELSKÉHO FINANCOVÁNÍ — v3
   Jeden tmavý panel, slidery nahoře, výsledky v kartách dole
   ═══════════════════════════════════════════════════════════════ */

/* ── Oddělovač sekcí ── */
.sec-divider{padding:0;background:transparent}
.sec-divider__line{height:1px;background:linear-gradient(90deg,transparent 0%,rgba(9,13,26,.08) 20%,rgba(9,13,26,.08) 80%,transparent 100%);margin:1rem 0}

/* ── Sekce ── */
.loan-calc {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--bg, #f7f9f8);
  font-family: var(--f, 'Geist', system-ui, sans-serif);
}

/* ── Hlavní tmavá karta ── */
.lc-card {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.5rem, 3vw, 2.75rem);
  border-radius: 24px;
  background: #151e30;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.18), 0 0 0 1px rgba(255,255,255,.06);
}
.lc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 15% 85%, rgba(181,101,74,.08), transparent),
    radial-gradient(ellipse 40% 40% at 85% 15%, rgba(181,101,74,.06), transparent);
  pointer-events: none;
}

/* ── Nadpis ── */
.lc-card__title {
  position: relative;
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 26px);
  letter-spacing: -.03em;
  color: #fff;
  margin: 0 0 .4rem;
  text-align: center;
}
.lc-card__sub {
  position: relative;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,.65);
  text-align: center;
  margin: 0 0 2rem;
  max-width: 480px;
  margin-inline: auto;
}

/* ── Slidery ── */
.lc-sliders {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.lc-slider__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .55rem;
}
.lc-slider__label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.82);
}
.lc-slider__val {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

/* ── Range input ── */
.lc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    rgba(181,101,74,.7) 0%,
    rgba(181,101,74,.7) var(--fill, 50%),
    rgba(255,255,255,.18) var(--fill, 50%),
    rgba(255,255,255,.18) 100%
  );
  outline: none;
  cursor: pointer;
}
.lc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid rgba(181,101,74,.8);
  box-shadow: 0 0 0 4px rgba(181,101,74,.12), 0 2px 6px rgba(0,0,0,.25);
  cursor: pointer;
  transition: box-shadow .15s, transform .15s;
}
.lc-range::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 6px rgba(181,101,74,.18), 0 2px 8px rgba(0,0,0,.3);
  transform: scale(1.06);
}
.lc-range::-webkit-slider-thumb:active {
  transform: scale(1.1);
}
.lc-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid rgba(181,101,74,.8);
  box-shadow: 0 0 0 4px rgba(181,101,74,.12), 0 2px 6px rgba(0,0,0,.25);
  cursor: pointer;
}
.lc-range::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: transparent;
}
.lc-range:focus-visible {
  outline: 3px solid rgba(181,101,74,.35);
  outline-offset: 4px;
  border-radius: 4px;
}

.lc-slider__limits {
  display: flex;
  justify-content: space-between;
  margin-top: .3rem;
  font-size: 11px;
  color: rgba(255,255,255,.45);
  font-variant-numeric: tabular-nums;
}

/* ── Výsledky — 3 karty ── */
.lc-results {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.lc-result-box {
  padding: 1.15rem 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  text-align: center;
  transition: border-color .25s;
}
.lc-result-box--main {
  border-color: rgba(181,101,74,.35);
  background: rgba(181,101,74,.08);
}
.lc-result-box__label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.65);
  margin-bottom: .35rem;
}
.lc-result-box__value {
  display: block;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.lc-result-box--main .lc-result-box__value {
  color: rgba(255 255 0);
}
.lc-result-box__sub {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.5);
  margin-top: .2rem;
}

/* ── Spodní část — disclaimer + CTA ── */
.lc-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.lc-disclaimer {
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255,255,255,.48);
  margin: 0;
  max-width: 380px;
}

.lc-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: .7rem 1.5rem;
  border-radius: 50px;
  background: rgba(181,101,74,.9);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: background .25s, box-shadow .25s, transform .2s;
  box-shadow: 0 2px 8px rgba(181,101,74,.2);
  flex-shrink: 0;
}
.lc-cta:hover {
  background: rgba(181,101,74,1);
  box-shadow: 0 4px 14px rgba(181,101,74,.35);
  transform: translateY(-1px);
  color: #fff;
}
.lc-cta:active { transform: translateY(0); }
.lc-cta:focus-visible { outline: 3px solid rgba(181,101,74,.4); outline-offset: 3px; }
.lc-cta svg { transition: transform .2s; }
.lc-cta:hover svg { transform: rotate(45deg); }

/* ── Modelový příklad pod kartou ── */
.lc-model {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  max-width: 780px;
  margin: 1rem auto 0;
  padding: .85rem 1rem;
  border-radius: 12px;
  background: var(--white, #fff);
  border: 1px solid rgba(9,13,26,.07);
}
.lc-model svg {
  flex-shrink: 0;
  color: rgba(181,101,74,.6);
  margin-top: .1rem;
}
.lc-model p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted, #4b5563);
  margin: 0;
}
.lc-model strong {
  color: var(--ink, #111827);
  font-weight: 700;
}


/* ═══════════════════════════════════════════════════════════════
   RESPONZIVITA
   ═══════════════════════════════════════════════════════════════ */

/* Menší desktop */
@media (max-width: 1024px) {
  .lc-card { max-width: 700px; }
}

/* Tablet */
@media (max-width: 768px) {
  .lc-card { max-width: none; padding: 1.75rem 1.5rem; }
  .lc-card__sub { margin-bottom: 1.5rem; }
  .lc-sliders { gap: 1.25rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; }
  .lc-results { gap: .6rem; }
  .lc-result-box { padding: 1rem .75rem; }
  .lc-result-box__value { font-size: 22px; }
}

/* Mobil — výsledky stacknuté */
@media (max-width: 580px) {
  .loan-calc { padding: clamp(2rem, 5vw, 3rem) 0; }
  .lc-card { padding: 1.5rem 1.15rem; border-radius: 20px; }
  .lc-card__title { font-size: 19px; }
  .lc-card__sub { font-size: 12.5px; margin-bottom: 1.35rem; }
  .lc-sliders { gap: 1.15rem; margin-bottom: 1.35rem; padding-bottom: 1.35rem; }
  .lc-slider__label { font-size: 13px; }
  .lc-slider__val { font-size: 16px; }
  .lc-results { grid-template-columns: 1fr; gap: .5rem; }
  .lc-result-box { padding: .85rem 1rem; display: flex; align-items: center; justify-content: space-between; text-align: left; flex-wrap: wrap; gap: .15rem .5rem; }
  .lc-result-box--main { flex-direction: column; text-align: center; padding: 1rem; }
  .lc-result-box__label { font-size: 12px; order: 1; }
  .lc-result-box__value { font-size: 18px; order: 2; }
  .lc-result-box__sub { font-size: 11px; order: 3; }
  .lc-result-box:not(.lc-result-box--main) .lc-result-box__label { flex: 1; }
  .lc-result-box:not(.lc-result-box--main) .lc-result-box__value { font-size: 16px; }
  .lc-result-box:not(.lc-result-box--main) .lc-result-box__sub { display: none; }
  .lc-bottom { flex-direction: column; align-items: flex-start; gap: .85rem; }
  .lc-disclaimer { max-width: none; }
  .lc-cta { align-self: flex-start; }
  .lc-model { padding: .75rem .85rem; }
  .lc-model p { font-size: 11.5px; }
}

/* Malý mobil */
@media (max-width: 390px) {
  .lc-card { padding: 1.25rem 1rem; border-radius: 18px; }
  .lc-card__title { font-size: 17px; }
  .lc-slider__label { font-size: 12.5px; }
  .lc-slider__val { font-size: 15px; }
  .lc-result-box--main .lc-result-box__value { font-size: 20px; }
  .lc-cta { font-size: 13px; padding: .65rem 1.35rem; }
  .lc-disclaimer { font-size: 11px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .lc-cta, .lc-range::-webkit-slider-thumb, .lc-cta svg { transition: none; }
}
