
:root{
  --mt-ink:#081a33;--mt-text:#24354c;--mt-muted:#63748c;--mt-line:#d8e5f2;--mt-card:#fff;
  --mt-green:#1dd88b;--mt-orange:#f59e0b;--mt-blue:#0b5f91;--mt-shadow:0 24px 70px rgba(8,26,51,.10)
}
body.rv-maternity-page{background:radial-gradient(circle at 8% 0%,rgba(29,216,139,.12),transparent 30%),radial-gradient(circle at 92% 2%,rgba(245,158,11,.12),transparent 28%),linear-gradient(180deg,#f8fbff 0%,#fff 40%,#f7fbff 100%)}
body.rv-maternity-page .container{width:min(1220px,calc(100% - 32px))}
.mt-hero{padding:clamp(28px,5vw,74px) 0 clamp(26px,4vw,54px)}
.mt-hero-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.78fr);gap:clamp(28px,5vw,64px);align-items:center}
.mt-hero-copy h1{margin:.15rem 0 1rem;color:var(--mt-ink);font-size:clamp(2.7rem,6vw,5.5rem);line-height:.94;letter-spacing:-.075em;font-weight:950}
.mt-hero-copy .lead{max-width:760px;color:#4f6680;font-size:clamp(1.03rem,1.5vw,1.22rem);line-height:1.75}
.mt-hero-visual{position:relative;min-height:390px}
.mt-dashboard{position:relative;padding:24px;border-radius:34px;border:1px solid rgba(155,177,203,.38);background:radial-gradient(circle at 88% 8%,rgba(245,158,11,.28),transparent 34%),linear-gradient(145deg,#081a33,#0b3b68 56%,#064b72);color:#fff;box-shadow:0 30px 80px rgba(8,26,51,.24);overflow:hidden}
.mt-dashboard:before{content:"";position:absolute;inset:-40% -20% auto auto;width:260px;height:260px;border-radius:999px;background:rgba(29,216,139,.18);filter:blur(4px)}
.mt-dash-head{position:relative;display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px;color:#dbeafe;font-weight:900}
.mt-dash-head strong{padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.12)}
.mt-big-number{position:relative;padding:24px;border-radius:26px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.13)}
.mt-big-number small,.mt-big-number span{display:block;color:rgba(255,255,255,.76);font-weight:850}
.mt-big-number strong{display:block;margin:.15rem 0;color:#fff;font-size:clamp(2.4rem,5vw,4.4rem);line-height:.95;letter-spacing:-.07em}
.mt-mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}
.mt-mini-grid div{padding:12px;border-radius:18px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.10)}
.mt-mini-grid span{display:block;color:rgba(255,255,255,.68);font-size:.78rem;font-weight:850}.mt-mini-grid strong{display:block;margin-top:3px;color:#fff;font-size:.98rem}
.mt-floating-note{position:absolute;left:-22px;bottom:20px;max-width:280px;padding:18px;border-radius:22px;background:#fff;border:1px solid rgba(155,177,203,.35);box-shadow:0 24px 54px rgba(8,26,51,.13)}
.mt-floating-note span{display:block;color:#f59e0b;font-size:.78rem;text-transform:uppercase;letter-spacing:.12em;font-weight:950}.mt-floating-note strong{display:block;margin-top:6px;color:var(--mt-ink);line-height:1.35}
.mt-trust-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:-12px;margin-bottom:22px}
.mt-trust-strip>div{padding:17px 18px;border:1px solid rgba(155,177,203,.34);border-radius:24px;background:rgba(255,255,255,.82);box-shadow:0 12px 34px rgba(8,26,51,.055);backdrop-filter:blur(10px)}
.mt-trust-strip span{display:block;color:#63748c;font-size:.78rem;font-weight:900}.mt-trust-strip strong{display:block;margin-top:3px;color:#081a33;font-size:1.25rem;line-height:1.1;letter-spacing:-.035em}.mt-trust-strip small{display:block;margin-top:5px;color:#4f6680;font-weight:750}
.mt-anchor{position:relative;top:0}.mt-anchor .anchor-scroll{display:flex;flex-wrap:wrap;gap:10px}.mt-anchor a{padding:10px 14px;border-radius:999px;background:#fff;border:1px solid rgba(155,177,203,.34);box-shadow:0 8px 22px rgba(8,26,51,.05);font-weight:850}
.mt-stage{display:grid;grid-template-columns:minmax(0,1.34fr) minmax(390px,.76fr);gap:26px;align-items:start;margin-top:24px}
.mt-calculator,.mt-result{border:1px solid rgba(155,177,203,.42);border-radius:34px;background:rgba(255,255,255,.92);box-shadow:var(--mt-shadow);backdrop-filter:blur(10px)}
.mt-calculator{padding:clamp(20px,3vw,34px);position:relative;overflow:hidden}.mt-result{position:sticky;top:18px;padding:18px}
.mt-mode-switch{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.mt-mode{appearance:none;border:1px solid rgba(155,177,203,.40);border-radius:999px;padding:10px 14px;background:linear-gradient(180deg,#fff,#f8fbff);color:var(--mt-ink);font-weight:900;cursor:pointer;box-shadow:0 8px 20px rgba(8,26,51,.05)}
.mt-mode.is-active{background:linear-gradient(135deg,rgba(29,216,139,.16),#fff);border-color:rgba(29,216,139,.55)}
.mt-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
body.rv-maternity-page .input-group span:first-child{font-weight:900;color:var(--mt-ink)}body.rv-maternity-page .input-shell{background:#fff;border-color:rgba(155,177,203,.42);box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 8px 18px rgba(8,26,51,.04)}body.rv-maternity-page .input-shell:focus-within{border-color:rgba(29,216,139,.5);box-shadow:0 0 0 4px rgba(29,216,139,.10)}
.select-shell select{width:100%;border:0;outline:0;background:transparent;color:var(--mt-ink);font-weight:900;font:inherit}
.mt-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}.mt-check{display:flex;gap:10px;align-items:flex-start;padding:14px;border:1px solid rgba(155,177,203,.30);border-radius:18px;background:#fff;color:#33516e;font-weight:850}.mt-check input{margin-top:3px;accent-color:#1dd88b}
.mt-info-strip{margin-top:18px;padding:14px 16px;border-radius:18px;background:linear-gradient(90deg,rgba(245,158,11,.12),rgba(29,216,139,.08));border:1px solid rgba(245,158,11,.22);color:#33516e;line-height:1.6}
.mt-result .result-eyebrow-row{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px;color:#4f6680;font-weight:900}#statusPill{display:inline-flex;padding:8px 12px;border-radius:999px;background:#fff4df;color:#7c4a03}
.mt-primary{padding:18px;border-radius:24px;background:radial-gradient(circle at 90% 8%,rgba(245,158,11,.50),transparent 36%),linear-gradient(135deg,#0a4f91,#0b386b 70%,#081a33);color:#fff;box-shadow:0 20px 48px rgba(8,70,130,.20)}.mt-primary span,.mt-primary small{display:block;color:rgba(255,255,255,.76);font-weight:850}.mt-primary output{display:block;margin:.25rem 0;color:#fff;font-size:clamp(2.4rem,4vw,3.35rem);line-height:.95;letter-spacing:-.065em;font-weight:950}
.mt-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:11px}.mt-metrics div,.mt-breakdown{padding:12px;border-radius:20px;background:#fff;border:1px solid rgba(155,177,203,.34);box-shadow:0 10px 24px rgba(8,26,51,.045)}
.mt-metrics span{display:block;color:#63748c;font-size:.78rem;font-weight:900}.mt-metrics strong{display:block;margin-top:4px;color:var(--mt-ink);font-size:1.05rem}
.mt-breakdown{margin-top:11px}.mt-breakdown h3{margin:0 0 10px;color:#081a33}.mt-breakdown div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid rgba(155,177,203,.2)}.mt-breakdown div:first-of-type{border-top:0}.mt-breakdown span{color:#63748c;font-weight:850}.mt-breakdown strong{color:#081a33;text-align:right}
.mt-result .rv-result-note{margin-top:11px;padding:13px 14px;border-radius:20px;background:linear-gradient(180deg,#fffaf2,#fff);border:1px solid rgba(245,158,11,.24)}.mt-result .rv-result-note p{margin:.2rem 0;color:#24354c;line-height:1.55}
.mt-decision,.mt-content,.mt-seo,.mt-related,.mt-faq{margin-top:clamp(42px,6vw,82px)}
.mt-decision-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.mt-decision-grid article{padding:24px;border-radius:28px;border:1px solid rgba(155,177,203,.36);background:#fff;box-shadow:0 18px 48px rgba(8,26,51,.065)}.mt-decision-grid span{display:grid;place-items:center;width:34px;height:34px;border-radius:12px;background:linear-gradient(135deg,#0b4f91,#20a84a);color:#fff;font-weight:950}.mt-decision-grid h3{margin:14px 0 10px;color:#081a33;font-size:1.35rem;line-height:1.12;letter-spacing:-.04em}.mt-decision-grid p{color:#4f6680;line-height:1.65}
.mt-content{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.65fr);gap:22px;align-items:start}.mt-content-main,.mt-official-box,.mt-seo{padding:clamp(22px,3vw,34px);border:1px solid rgba(155,177,203,.38);border-radius:32px;background:#fff;box-shadow:0 22px 62px rgba(8,26,51,.075)}
.mt-content h2,.mt-seo h2{margin:.2rem 0 .9rem;color:var(--mt-ink);font-size:clamp(1.8rem,3vw,2.7rem);line-height:1.06;letter-spacing:-.055em}.mt-content p,.mt-seo p,.mt-official-box li{color:#4f6680;line-height:1.75}
.mt-official-box{background:radial-gradient(circle at 0 0,rgba(29,216,139,.13),transparent 30%),#fff}.mt-official-box h3{margin:0 0 12px;color:#081a33}.mt-official-box ul{margin:0;padding-left:18px;display:grid;gap:10px}
.mt-seo{background:radial-gradient(circle at 0 0,rgba(245,158,11,.12),transparent 28%),radial-gradient(circle at 100% 0,rgba(29,216,139,.12),transparent 24%),rgba(255,255,255,.92)}.mt-seo .section-heading{text-align:center}.mt-longform{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:22px}.mt-longform article{padding:24px;border:1px solid rgba(155,177,203,.34);border-radius:26px;background:#fff;box-shadow:0 14px 38px rgba(8,26,51,.045)}.mt-longform h3{margin:0 0 12px;color:#081a33;font-size:1.28rem;letter-spacing:-.04em}.mt-longform p{margin:0;color:#4f6680;line-height:1.78}
.mt-related .related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.mt-related .related-card,.mt-faq details{border-radius:24px;background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid rgba(155,177,203,.34);box-shadow:0 16px 42px rgba(8,26,51,.07)}.mt-related .related-card{padding:20px}.mt-related .related-card span{display:inline-flex;margin-bottom:12px;padding:7px 9px;border-radius:10px;background:#f7fbff;color:#f59e0b;font-weight:950;text-transform:uppercase;font-size:.75rem;letter-spacing:.08em}.mt-related .related-card strong{display:block;color:#081a33}.mt-related .related-card small{display:block;margin-top:8px;color:#4f6680;line-height:1.55}
.mt-faq .faq-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.mt-faq details{overflow:hidden}.mt-faq summary{list-style:none;cursor:pointer;padding:18px 48px 18px 18px;position:relative;font-weight:950;color:#081a33}.mt-faq summary::-webkit-details-marker{display:none}.mt-faq summary:after{content:"+";position:absolute;right:16px;top:14px;width:28px;height:28px;display:grid;place-items:center;border-radius:999px;background:#eef6ff;color:#0b4f91;font-weight:950}.mt-faq details[open] summary:after{content:"−";background:rgba(29,216,139,.14);color:#166534}.mt-faq details p{margin:0;padding:0 18px 18px;color:#4f6680;line-height:1.72}
.mt-bottom-wrap{margin:clamp(38px,6vw,78px) 0 28px;padding:0 clamp(16px,3vw,24px)}.mt-bottom-card{display:grid;grid-template-columns:minmax(0,1.35fr) auto;align-items:center;gap:24px;padding:clamp(24px,4vw,40px);border-radius:34px;border:1px solid rgba(155,177,203,.38);background:radial-gradient(circle at 6% 0%,rgba(245,158,11,.18),transparent 30%),radial-gradient(circle at 96% 8%,rgba(29,216,139,.18),transparent 26%),linear-gradient(135deg,#fff,#f7fbff);box-shadow:0 26px 72px rgba(8,26,51,.10)}.mt-bottom-card h2{margin:.2rem 0 .55rem;color:#081a33;font-size:clamp(1.9rem,3.2vw,3rem);line-height:1.04;letter-spacing:-.055em}.mt-bottom-card p:not(.eyebrow){margin:0;max-width:74ch;color:#4f6680;line-height:1.72}.mt-bottom-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end}
.mt-premium-footer{display:block;width:100%;margin:0;padding:clamp(42px,5.5vw,66px) 0 24px;background:radial-gradient(circle at 12% 0%,rgba(29,216,139,.18),transparent 28%),radial-gradient(circle at 92% 5%,rgba(245,158,11,.16),transparent 30%),linear-gradient(135deg,#07182f 0%,#0a2342 52%,#061426 100%);color:#dbeafe;border-top:1px solid rgba(255,255,255,.08)}.mt-footer-grid{display:grid;grid-template-columns:minmax(280px,1.35fr) repeat(3,minmax(160px,.75fr));gap:clamp(26px,4vw,56px);align-items:start}.mt-footer-logo{display:inline-flex;margin:0 0 16px;text-decoration:none}.mt-footer-logo img{display:block;width:220px;height:auto;max-width:100%;filter:drop-shadow(0 10px 20px rgba(0,0,0,.28))}.mt-footer-brand p{margin:0;max-width:42ch;color:#b9c8dc;line-height:1.75}.mt-footer-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.mt-footer-badges span{display:inline-flex;padding:7px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.07);color:#dcfce7;font-size:.82rem;font-weight:850}.mt-footer-nav{display:grid;gap:10px}.mt-footer-nav h3{margin:0 0 7px;color:#fff;font-size:.98rem;font-weight:950}.mt-footer-nav a{display:block;color:#b9c8dc;text-decoration:none;line-height:1.45;font-weight:650}.mt-footer-nav a:hover{color:#86efac}.mt-footer-bottom{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:clamp(30px,4vw,46px);padding-top:18px;border-top:1px solid rgba(255,255,255,.10)}.mt-footer-bottom p{margin:0;color:#92a7bf;font-size:.92rem;line-height:1.6}.mt-footer-bottom a{color:#b9c8dc;text-decoration:none;white-space:nowrap}
@media(max-width:1080px){.mt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mt-decision-grid,.mt-longform{grid-template-columns:1fr}.mt-related .related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mt-trust-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){.mt-hero-grid,.mt-stage,.mt-content,.mt-bottom-card{grid-template-columns:1fr}.mt-result{position:static}.mt-hero-visual{min-height:auto}.mt-floating-note{position:relative;left:auto;bottom:auto;margin-top:14px;max-width:none}.mt-footer-grid{grid-template-columns:1fr 1fr}.mt-footer-brand{grid-column:1/-1}.mt-bottom-actions{justify-content:flex-start}}
@media(max-width:760px){body.rv-maternity-page .breadcrumbs,.mt-hero-visual,.mt-trust-strip,.mt-anchor,.mt-info-strip{display:none!important}.mt-hero{padding:22px 0 18px!important}.mt-hero-copy .lead{font-size:1rem!important;line-height:1.58!important}.mt-hero-copy .trust-pills{display:none!important}.mt-stage{margin-top:0!important;gap:14px!important}.mt-calculator,.mt-result{border-radius:22px!important}.mt-calculator{padding:18px!important}.mt-calculator .section-heading h2{font-size:clamp(1.85rem,9vw,2.45rem)!important;line-height:1.02!important}.mt-mode-switch{margin:12px 0!important}.mt-mode{width:100%;padding:10px 12px!important}.mt-grid,.mt-metrics,.mt-checks,.mt-faq .faq-grid,.mt-related .related-grid,.mt-footer-grid{grid-template-columns:1fr}.mt-result{padding:16px!important}.mt-primary{border-radius:22px!important;padding:18px!important}.mt-primary output{font-size:clamp(2rem,12vw,3rem)!important}.mt-mini-grid{grid-template-columns:1fr}.mt-bottom-actions{display:grid}.mt-footer-bottom{display:grid}.mt-longform{grid-template-columns:1fr}.mt-bottom-card{border-radius:26px;padding:22px}}


/* V2 content competitiveness: longform SEO + scenarios + guide */
body.rv-maternity-page .mt-seo-rich{text-align:left}
body.rv-maternity-page .mt-longform-v2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:22px;
}
body.rv-maternity-page .mt-longform-v2 article{
  padding:24px;
  border:1px solid rgba(155,177,203,.34);
  border-radius:26px;
  background:#fff;
  box-shadow:0 14px 38px rgba(8,26,51,.045);
}
body.rv-maternity-page .mt-longform-v2 h3{
  margin:0 0 12px;
  color:#081a33;
  font-size:1.28rem;
  letter-spacing:-.04em;
  line-height:1.18;
}
body.rv-maternity-page .mt-longform-v2 p{
  margin:0 0 12px;
  color:#4f6680;
  line-height:1.78;
}
body.rv-maternity-page .mt-longform-v2 p:last-child{margin-bottom:0}
body.rv-maternity-page .mt-scenarios,
body.rv-maternity-page .mt-guide{
  margin-top:clamp(42px,6vw,82px);
}
body.rv-maternity-page .mt-scenario-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
body.rv-maternity-page .mt-scenario-grid article{
  padding:20px;
  border-radius:24px;
  border:1px solid rgba(155,177,203,.34);
  background:linear-gradient(180deg,#fff,#f8fbff);
  box-shadow:0 16px 42px rgba(8,26,51,.055);
}
body.rv-maternity-page .mt-scenario-grid span{
  display:inline-flex;
  padding:6px 9px;
  border-radius:999px;
  background:#e9fff4;
  color:#166534;
  font-size:.75rem;
  font-weight:950;
}
body.rv-maternity-page .mt-scenario-grid h3{
  margin:12px 0 8px;
  color:#081a33;
  letter-spacing:-.035em;
}
body.rv-maternity-page .mt-scenario-grid p{
  margin:0;
  color:#4f6680;
  line-height:1.65;
}
body.rv-maternity-page .mt-guide{
  padding:clamp(24px,4vw,38px);
  border-radius:34px;
  border:1px solid rgba(155,177,203,.38);
  background:
    radial-gradient(circle at 0 0,rgba(245,158,11,.12),transparent 30%),
    radial-gradient(circle at 100% 0,rgba(29,216,139,.12),transparent 28%),
    #fff;
  box-shadow:0 24px 70px rgba(8,26,51,.075);
}
body.rv-maternity-page .mt-guide-head{
  max-width:760px;
  margin-bottom:20px;
}
body.rv-maternity-page .mt-guide-head h2{
  margin:.2rem 0 0;
  color:#081a33;
  font-size:clamp(1.9rem,3.4vw,3rem);
  line-height:1.06;
  letter-spacing:-.055em;
}
body.rv-maternity-page .mt-guide-steps{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
body.rv-maternity-page .mt-guide-steps article{
  padding:20px;
  border-radius:24px;
  border:1px solid rgba(155,177,203,.34);
  background:#fff;
  box-shadow:0 12px 30px rgba(8,26,51,.045);
}
body.rv-maternity-page .mt-guide-steps strong{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:12px;
  background:linear-gradient(135deg,#0b4f91,#20a84a);
  color:#fff;
  font-weight:950;
}
body.rv-maternity-page .mt-guide-steps h3{
  margin:14px 0 8px;
  color:#081a33;
}
body.rv-maternity-page .mt-guide-steps p{
  margin:0;
  color:#4f6680;
  line-height:1.65;
}
@media(max-width:1100px){
  body.rv-maternity-page .mt-scenario-grid,
  body.rv-maternity-page .mt-guide-steps{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:760px){
  body.rv-maternity-page .mt-longform-v2,
  body.rv-maternity-page .mt-scenario-grid,
  body.rv-maternity-page .mt-guide-steps{
    grid-template-columns:1fr;
  }
  body.rv-maternity-page .mt-guide{
    border-radius:26px;
    padding:22px;
  }
}


/* V3 mode switch fix: buttons now visibly change the form */
body.rv-maternity-page .mt-mode-hint{
  margin:-6px 0 16px;
  color:#4f6680;
  font-weight:850;
  line-height:1.55;
  padding:12px 14px;
  border:1px solid rgba(155,177,203,.30);
  border-radius:16px;
  background:linear-gradient(180deg,#fff,#f8fbff);
}

body.rv-maternity-page .mt-income-field{
  transition:opacity .18s ease, transform .18s ease, border-color .18s ease;
}

body.rv-maternity-page .mt-calculator.is-monthly-mode .mt-income-total,
body.rv-maternity-page .mt-calculator.is-total-mode .mt-income-monthly{
  display:none !important;
}

body.rv-maternity-page .mt-calculator.is-monthly-mode .mt-income-monthly,
body.rv-maternity-page .mt-calculator.is-total-mode .mt-income-total{
  grid-column:span 1;
  position:relative;
}

body.rv-maternity-page .mt-calculator.is-monthly-mode .mt-income-monthly::after,
body.rv-maternity-page .mt-calculator.is-total-mode .mt-income-total::after{
  content:"aktivní vstup";
  position:absolute;
  right:10px;
  top:0;
  transform:translateY(-50%);
  padding:5px 8px;
  border-radius:999px;
  background:#e9fff4;
  color:#166534;
  font-size:.72rem;
  font-weight:950;
  letter-spacing:.02em;
}

body.rv-maternity-page .mt-mode{
  position:relative;
}

body.rv-maternity-page .mt-mode.is-active{
  box-shadow:0 10px 24px rgba(29,216,139,.12), inset 0 0 0 1px rgba(29,216,139,.20);
}

@media(max-width:760px){
  body.rv-maternity-page .mt-mode-hint{
    margin:0 0 12px;
    font-size:.93rem;
  }
}


/* V4 UI polish: better income switch, no overlapping badges, cleaner form rhythm */
body.rv-maternity-page .mt-mode-card{
  margin:18px 0 20px;
  padding:14px;
  border:1px solid rgba(155,177,203,.34);
  border-radius:24px;
  background:
    radial-gradient(circle at 0 0,rgba(29,216,139,.08),transparent 35%),
    linear-gradient(180deg,#fff,#f8fbff);
  box-shadow:0 12px 30px rgba(8,26,51,.045);
}

body.rv-maternity-page .mt-mode-label{
  display:block;
  margin:0 0 10px;
  color:#63748c;
  font-size:.78rem;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.10em;
}

body.rv-maternity-page .mt-mode-switch{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px !important;
  margin:0 !important;
}

body.rv-maternity-page .mt-mode{
  width:100%;
  min-height:62px;
  display:grid;
  align-content:center;
  gap:3px;
  text-align:left;
  border-radius:18px !important;
  padding:13px 15px !important;
  box-shadow:none !important;
  background:#fff !important;
}

body.rv-maternity-page .mt-mode strong{
  display:block;
  color:#081a33;
  font-size:1rem;
  line-height:1.15;
}

body.rv-maternity-page .mt-mode small{
  display:block;
  color:#63748c;
  font-size:.82rem;
  line-height:1.2;
  font-weight:800;
}

body.rv-maternity-page .mt-mode.is-active{
  background:linear-gradient(135deg,rgba(29,216,139,.17),#fff) !important;
  border-color:rgba(29,216,139,.60) !important;
  box-shadow:inset 0 0 0 1px rgba(29,216,139,.18),0 10px 24px rgba(29,216,139,.10) !important;
}

body.rv-maternity-page .mt-mode.is-active strong{
  color:#064e3b;
}

body.rv-maternity-page .mt-mode-hint{
  margin:11px 0 0 !important;
  padding:11px 13px !important;
  border-radius:16px !important;
  border:1px solid rgba(29,216,139,.22) !important;
  background:rgba(255,255,255,.78) !important;
  color:#33516e !important;
  font-size:.94rem;
  line-height:1.55;
}

body.rv-maternity-page .mt-mode-hint::before{
  content:"Tip:";
  display:inline;
  margin-right:5px;
  color:#166534;
  font-weight:950;
}

body.rv-maternity-page .mt-calculator.is-monthly-mode .mt-income-monthly::after,
body.rv-maternity-page .mt-calculator.is-total-mode .mt-income-total::after{
  content:none !important;
}

body.rv-maternity-page .mt-calculator.is-monthly-mode .mt-income-monthly .input-shell,
body.rv-maternity-page .mt-calculator.is-total-mode .mt-income-total .input-shell{
  border-color:rgba(29,216,139,.50) !important;
  box-shadow:0 0 0 4px rgba(29,216,139,.08), inset 0 1px 0 rgba(255,255,255,.95) !important;
}

body.rv-maternity-page .mt-income-field>span:first-child::after{
  content:"aktivní";
  display:inline-flex;
  vertical-align:middle;
  margin-left:8px;
  padding:4px 7px;
  border-radius:999px;
  background:#e9fff4;
  color:#166534;
  font-size:.68rem;
  font-weight:950;
  letter-spacing:.02em;
}

body.rv-maternity-page .mt-calculator.is-monthly-mode .mt-income-total>span:first-child::after,
body.rv-maternity-page .mt-calculator.is-total-mode .mt-income-monthly>span:first-child::after{
  content:none;
}

body.rv-maternity-page .mt-grid{
  align-items:start;
}

body.rv-maternity-page .mt-grid .input-group small{
  line-height:1.5;
}

body.rv-maternity-page .mt-checks{
  margin-top:18px !important;
}

body.rv-maternity-page .mt-check{
  background:linear-gradient(180deg,#fff,#f9fcff) !important;
}

body.rv-maternity-page .mt-result{
  box-shadow:0 26px 72px rgba(8,26,51,.105) !important;
}

body.rv-maternity-page .mt-breakdown div{
  align-items:flex-start;
}

body.rv-maternity-page .mt-breakdown strong{
  min-width:96px;
}

/* Hide old duplicate rule effects from previous rounds */
body.rv-maternity-page .mt-calculator.is-monthly-mode .mt-income-monthly,
body.rv-maternity-page .mt-calculator.is-total-mode .mt-income-total{
  position:static !important;
}

@media(max-width:760px){
  body.rv-maternity-page .mt-mode-card{
    margin:14px 0 16px;
    padding:12px;
    border-radius:20px;
  }

  body.rv-maternity-page .mt-mode-switch{
    grid-template-columns:1fr;
  }

  body.rv-maternity-page .mt-mode{
    min-height:auto;
    border-radius:16px !important;
  }

  body.rv-maternity-page .mt-mode-hint{
    font-size:.9rem;
  }

  body.rv-maternity-page .mt-income-field>span:first-child::after{
    display:none;
  }
}


/* V5 alignment polish: cleaner form grid and consistent field rhythm */
body.rv-maternity-page .mt-calculator{
  padding:clamp(24px,3.2vw,38px) !important;
}

body.rv-maternity-page .mt-calculator .section-heading.compact{
  margin-bottom:18px !important;
}

body.rv-maternity-page .mt-mode-card{
  margin:18px 0 24px !important;
}

body.rv-maternity-page .mt-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:20px 22px !important;
  align-items:start !important;
}

body.rv-maternity-page .mt-grid .input-group{
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
}

body.rv-maternity-page .mt-grid .input-group > span:first-child{
  min-height:42px !important;
  display:flex !important;
  align-items:flex-end !important;
  margin-bottom:8px !important;
  line-height:1.14 !important;
}

body.rv-maternity-page .mt-grid .input-shell{
  min-height:66px !important;
  display:flex !important;
  align-items:center !important;
}

body.rv-maternity-page .mt-grid .input-shell input,
body.rv-maternity-page .mt-grid .input-shell select{
  min-height:42px !important;
}

body.rv-maternity-page .mt-grid .input-group small{
  margin-top:9px !important;
  min-height:44px !important;
  line-height:1.55 !important;
}

body.rv-maternity-page .mt-income-field > span:first-child::after{
  content:none !important;
}

body.rv-maternity-page .mt-calculator.is-monthly-mode .mt-income-monthly .input-shell,
body.rv-maternity-page .mt-calculator.is-total-mode .mt-income-total .input-shell{
  border-color:rgba(29,216,139,.55) !important;
  background:linear-gradient(180deg,#fff,#fafffd) !important;
  box-shadow:0 0 0 4px rgba(29,216,139,.08), inset 0 1px 0 rgba(255,255,255,.95) !important;
}

body.rv-maternity-page .mt-calculator.is-monthly-mode .mt-income-monthly,
body.rv-maternity-page .mt-calculator.is-total-mode .mt-income-total{
  position:relative !important;
}

body.rv-maternity-page .mt-calculator.is-monthly-mode .mt-income-monthly::before,
body.rv-maternity-page .mt-calculator.is-total-mode .mt-income-total::before{
  content:"aktivní vstup";
  position:absolute;
  right:10px;
  top:10px;
  z-index:2;
  padding:4px 8px;
  border-radius:999px;
  background:#e9fff4;
  color:#166534;
  font-size:.68rem;
  font-weight:950;
  letter-spacing:.02em;
}

body.rv-maternity-page .mt-calculator.is-monthly-mode .mt-income-monthly > span:first-child,
body.rv-maternity-page .mt-calculator.is-total-mode .mt-income-total > span:first-child{
  padding-right:96px !important;
}

body.rv-maternity-page .mt-checks{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:14px !important;
  margin-top:22px !important;
}

body.rv-maternity-page .mt-check{
  min-height:64px !important;
  align-items:center !important;
  padding:15px 16px !important;
  border-radius:20px !important;
}

body.rv-maternity-page .mt-info-strip{
  margin-top:18px !important;
}

/* Make date + situation row feel intentional on desktop */
@media(min-width:981px){
  body.rv-maternity-page .mt-grid .input-group:nth-of-type(4),
  body.rv-maternity-page .mt-grid .input-group:nth-of-type(5){
    grid-column:span 1 !important;
  }
  body.rv-maternity-page .mt-grid .input-group:nth-of-type(5){
    max-width:none !important;
  }
}

/* Tablet: two clean columns */
@media(max-width:1080px){
  body.rv-maternity-page .mt-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  body.rv-maternity-page .mt-grid .input-group > span:first-child{
    min-height:36px !important;
  }
  body.rv-maternity-page .mt-grid .input-group small{
    min-height:auto !important;
  }
}

/* Mobile remains fast: hero → calculator → result */
@media(max-width:760px){
  body.rv-maternity-page .mt-calculator{
    padding:18px !important;
  }
  body.rv-maternity-page .mt-grid{
    grid-template-columns:1fr !important;
    gap:14px !important;
  }
  body.rv-maternity-page .mt-grid .input-group > span:first-child{
    min-height:auto !important;
    margin-bottom:7px !important;
    align-items:flex-start !important;
  }
  body.rv-maternity-page .mt-grid .input-shell{
    min-height:60px !important;
  }
  body.rv-maternity-page .mt-grid .input-group small{
    min-height:auto !important;
    margin-top:7px !important;
  }
  body.rv-maternity-page .mt-calculator.is-monthly-mode .mt-income-monthly::before,
  body.rv-maternity-page .mt-calculator.is-total-mode .mt-income-total::before{
    display:none !important;
  }
  body.rv-maternity-page .mt-calculator.is-monthly-mode .mt-income-monthly > span:first-child,
  body.rv-maternity-page .mt-calculator.is-total-mode .mt-income-total > span:first-child{
    padding-right:0 !important;
  }
  body.rv-maternity-page .mt-checks{
    grid-template-columns:1fr !important;
    gap:10px !important;
    margin-top:16px !important;
  }
}


/* V6 final self-QA polish */
body.rv-maternity-page .mt-mode-card{
  max-width:100%;
}

body.rv-maternity-page .mt-mode-card + .mt-grid{
  margin-top:2px;
}

body.rv-maternity-page .mt-grid .input-shell input[type="date"]{
  font-weight:900;
}

body.rv-maternity-page .mt-result .rv-result-note{
  background:
    radial-gradient(circle at 100% 0%,rgba(245,158,11,.12),transparent 32%),
    linear-gradient(180deg,#fffaf2,#fff);
}

body.rv-maternity-page .mt-ready{
  margin-top:clamp(42px,6vw,82px);
}

body.rv-maternity-page .mt-ready-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}

body.rv-maternity-page .mt-ready-grid article{
  padding:20px;
  border-radius:24px;
  border:1px solid rgba(155,177,203,.34);
  background:linear-gradient(180deg,#fff,#f8fbff);
  box-shadow:0 16px 42px rgba(8,26,51,.055);
}

body.rv-maternity-page .mt-ready-grid span{
  display:inline-flex;
  padding:6px 9px;
  border-radius:999px;
  background:#fff4df;
  color:#92400e;
  font-size:.75rem;
  font-weight:950;
}

body.rv-maternity-page .mt-ready-grid h3{
  margin:12px 0 8px;
  color:#081a33;
  letter-spacing:-.035em;
}

body.rv-maternity-page .mt-ready-grid p{
  margin:0;
  color:#4f6680;
  line-height:1.65;
}

@media(max-width:1100px){
  body.rv-maternity-page .mt-ready-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:760px){
  body.rv-maternity-page .mt-ready-grid{
    grid-template-columns:1fr;
  }
}
