/* Responsive and archive-safety layer for smart-pujcka.cz. */
body.dr-smart-pujcka { min-width: 0 !important; }
#header .dr-brand-logo { position: relative; flex: 0 0 245px; width: 245px; height: 28px; margin: 0 25px 0 0; overflow: hidden; }
#header .dr-brand-logo > span { display: block; width: 245px; height: 28px; background: url("../media/95ecce5f235be944fe1c4998.png") 0 0 no-repeat; }
#header .dr-archive-slogan { margin: 0; padding: 0; color: #777; font: italic 13px/1.35 Arial, Helvetica, sans-serif; }
.dr-page-title { margin: 12px 0 18px; color: #005099; font: 600 32px/1.2 Arial, Helvetica, sans-serif; text-align: center; overflow-wrap: anywhere; }
.dr-archive-notice { margin: 14px 0 22px; padding: 14px 18px; border-left: 4px solid #b42845; background: #fff5e8; color: #352c27; font: 14px/1.55 Arial, Helvetica, sans-serif; }
.dr-archive-notice strong { display: block; margin-bottom: 3px; color: #7d1e34; }
.dr-archive-summary { color: #fff; line-height: 1.55; }
.dr-archive-form-warning { clear: both; margin: 12px 0 20px; padding: 16px 18px; border: 1px solid #b3daf9; border-radius: 3px; background: #f3f8fc; color: #282828; }
.dr-archive-form-warning strong { display: block; margin-bottom: 6px; color: #9f2842; font-size: 17px; }
.dr-archive-footer { line-height: 1.55; overflow-wrap: anywhere; }
.dr-archive-footer p + p { margin-top: 8px; }
.dr-step-note { overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  #top, #page { box-sizing: border-box; width: 100% !important; max-width: 964px; min-width: 0 !important; margin-left: auto !important; margin-right: auto !important; }
  #top { padding: 0 16px; }
  #header { box-sizing: border-box; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; width: 100% !important; height: auto !important; min-height: 0; padding: 14px 0 !important; }
  #header .left { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; float: none !important; width: 100%; min-width: 0; }
  #header .dr-brand-logo { flex: 0 0 245px; margin: 0; }
  #header .dr-archive-slogan { flex: 1 1 180px; width: auto; height: auto; }
  #header nav { float: none !important; box-sizing: border-box; width: 100% !important; max-width: 100%; height: auto; margin: 0; }
  #header nav.dr-navigation { width: 100% !important; }
  #box { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr); gap: 18px; box-sizing: border-box; width: 100% !important; height: auto !important; min-width: 0; padding: 34px 22px 22px !important; background-size: 100% 100% !important; }
  #box-left, #box-right { float: none !important; box-sizing: border-box; width: auto !important; max-width: 100%; min-width: 0; height: auto !important; }
  #box-left h2 span.sub { display: block; float: none; width: 100%; height: auto !important; min-height: 0; overflow: visible; white-space: normal; font-size: clamp(20px, 3vw, 29px); line-height: 1.2; }
  #box-left ul.list { box-sizing: border-box; width: 100% !important; height: auto !important; max-width: 100%; overflow: visible; }
  #box-left ul.list li { font-size: clamp(16px, 2.1vw, 19px); line-height: 1.45; }
  #box-right p { box-sizing: border-box; width: auto !important; max-width: 100%; }
  #box-right a.more-button { position: static; display: block; margin: 12px 0 0; }
  #content { box-sizing: border-box; width: 100% !important; max-width: 100%; padding: 16px 22px 22px; text-align: left; }
  #content img, img.left, img.right { box-sizing: border-box; max-width: 100% !important; height: auto !important; }
  .bg-zadost { box-sizing: border-box; width: 100% !important; max-width: 964px; margin: 0 auto; padding: 18px 16px; }
  #steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; box-sizing: border-box; width: 100% !important; height: auto !important; margin: 0 0 22px; }
  .step-box, #third { float: none !important; box-sizing: border-box; width: auto !important; height: auto !important; min-height: 0 !important; padding: 18px !important; border-left: 4px solid #b42845; border-radius: 3px; background: #f4f8fc !important; }
  .step-box h3, .step-box p { box-sizing: border-box; width: 100%; height: auto !important; line-height: 1.4; }
  #sidebar { float: none !important; box-sizing: border-box; width: 100% !important; max-width: 100%; height: auto !important; margin: 12px 0 0; }
  #footer { box-sizing: border-box; width: auto !important; max-width: 964px; margin: 22px 16px 32px; padding: 18px; }
  #footer .box { display: none !important; }
  img { max-width: 100% !important; height: auto !important; }
}
@media (max-width: 680px) {
  #top, #page { padding-left: 12px; padding-right: 12px; }
  #header .left { align-items: flex-start; }
  #header .dr-brand-logo { flex: 0 0 245px; }
  #header .dr-archive-slogan { flex: 1 1 100%; }
  #box { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 28px 16px 18px !important; background-size: cover !important; }
  #box-left, #box-right { width: 100% !important; max-width: 100%; }
  #box-right h2 span.main, #box-right h2 span.sub { display: block; float: none; width: 100%; height: auto !important; overflow: visible; white-space: normal; line-height: 1.25; }
  #box-right p { width: 100% !important; }
  #box-right a.more-button { position: static !important; margin: 12px 0 0; }
  #box-left a.button { box-sizing: border-box; width: 100% !important; max-width: 285px; height: auto; min-height: 52px; padding: 14px 12px; line-height: 1.25; }
  #content { padding: 14px 16px 20px; }
  #content p, #content li { overflow-wrap: anywhere; }
  #steps { grid-template-columns: minmax(0, 1fr); }
  .step-box, #third { padding: 15px !important; }
  #footer { margin: 18px 0 24px; padding: 16px; }
  .dr-page-title { font-size: 27px; }
  .dr-archive-notice { padding: 12px 14px; font-size: 14px; }
}


/* Final mobile fit and readable historical notices. */
@media (max-width: 680px) {
  #content .boxik {
    box-sizing: border-box !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 16px 0 !important;
    padding: 16px !important;
  }
  #content .boxik ul {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    margin: 0;
    padding-left: 22px !important;
  }
  #content .boxik li { max-width: 100%; overflow-wrap: anywhere; }
  .step-box p, #third p { font-size: 15px !important; line-height: 1.5 !important; }
  .step-box h3, #third h3 { height: auto !important; min-height: 0; font-size: 16px !important; line-height: 1.3 !important; }
  #footer .dr-archive-footer { color: #282828; font-size: 14px; line-height: 1.55; }
}


/* Keep navigation in its own, high-contrast row above the hero. */
#header nav.dr-navigation { background: #b42845 !important; color: #fff !important; }
#header nav.dr-navigation .dr-menu > li > a { color: #fff !important; text-shadow: none !important; }
@media (min-width: 1001px) {
  #header.dr-navigation-header {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    padding: 18px 22px 0 !important;
  }
  #header.dr-navigation-header > .left {
    display: flex;
    align-items: center;
    float: none !important;
    width: 100%;
    margin-bottom: 12px;
  }
  #header.dr-navigation-header > nav.dr-navigation {
    box-sizing: border-box;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 max(18px, calc((100vw - 964px) / 2)) !important;
  }
  #header nav.dr-navigation > .dr-menu {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 964px;
    min-height: 54px;
    margin: 0 auto !important;
    flex-wrap: nowrap;
    gap: 6px;
  }
  #header nav.dr-navigation .dr-menu > li > a {
    min-height: 54px;
    padding: 15px 18px !important;
    line-height: 1.35 !important;
  }
  #header nav.dr-navigation .dr-menu > li > a:hover { background: #9f203b !important; }
}
@media (max-width: 1000px) {
  #header nav.dr-navigation { background: #b42845 !important; color: #fff !important; }
  #header nav.dr-navigation .dr-menu > li > a { color: #fff !important; }
}


/* Avoid 100vw scrollbar overflow at common desktop viewport widths. */
@media (min-width: 1001px) {
  #top { width: 100% !important; max-width: 100% !important; }
  #header.dr-navigation-header { width: 100% !important; max-width: 100% !important; padding: 18px 0 0 !important; }
  #header.dr-navigation-header > .left { box-sizing: border-box; width: min(920px, calc(100% - 44px)); margin: 0 auto 12px; }
  #header.dr-navigation-header > nav.dr-navigation { width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; }
  #header nav.dr-navigation > .dr-menu { max-width: 964px; margin: 0 auto !important; }
}
