/* TopInstalater.cz
   Desktop styles preserve the original visual identity. Mobile styles are
   isolated below 1060px so the established 980px desktop layout stays intact. */

:root {
  --brand-blue: #0562ca;
  --brand-blue-light: #3686ff;
  --brand-red: #d31108;
  --surface-blue: #eef3f7;
  --text: #646464;
  --content-width: 980px;
}

* {
  border: 0;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-width: var(--content-width);
  color: var(--text);
  background: #fff url("../img/wrapper.jpg") repeat-x left top;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 13px;
  line-height: 140%;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

a:link,
a:visited {
  color: var(--brand-red);
  text-decoration: none;
}

a:hover {
  color: #000;
  text-decoration: underline;
}

img {
  height: auto;
}

button {
  cursor: pointer;
}

table {
  width: 100%;
  border: 1px solid transparent;
  border-collapse: collapse;
  vertical-align: top;
}

hr {
  clear: both;
  height: 2px;
  margin: 10px 0 8px;
  border-bottom: 2px solid #ebebeb;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  padding: 0 0 1em;
  color: #000;
}

h1 {
  font-size: 130%;
  line-height: 1;
  letter-spacing: -1px;
}

h2 {
  padding-bottom: 0;
  font-size: 130%;
}

h3 { font-size: 110%; }
h4 { font-size: 15px; }
h5 { font-size: 13px; }
h6 { font-size: 12px; }

p {
  padding: 10px 0 15px;
}

/* Layout */
.full_page {
  width: var(--content-width);
  margin: 0 auto;
  text-align: left;
}

.full_page_inner { padding: 10px; }
.max_layout { max-width: 100%; margin: 0 auto; }

body > .bg-l,
body > .bg-r {
  position: absolute;
  top: 0;
  width: 50%;
  height: 572px;
}

body > .bg-l {
  left: 0;
  background: transparent url("../img/bg-l.jpg") repeat-x center top;
}

body > .bg-r {
  right: 0;
  background: transparent url("../img/bg-r.jpg") repeat-x center top;
}

#wrapper {
  position: relative;
  background: transparent url("../img/bg.jpg") no-repeat center top;
}

/* Utilities */
.clear,
.fix {
  clear: both;
  height: 0;
  font-size: 0;
  line-height: 0;
}

.float-left { float: left; }
.float-right { float: right; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.star { color: red; }
.hide,
[hidden] { display: none !important; }
span.admin_edit { display: none; }

.clearfix::after {
  display: block;
  clear: both;
  height: 0;
  visibility: hidden;
  content: ".";
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 3000;
  padding: 10px 14px;
  border-radius: 5px;
  color: #fff !important;
  background: #000;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

/* Header */
#header { position: relative; }
#header a { display: block; line-height: 0; }
#header .logo { padding: 18px 20px 12px 5px; }

.menu-toggle {
  display: none;
}

/* Primary navigation */
#navigation {
  position: relative;
  height: 57px;
  background: transparent url("../img/menu.png") no-repeat 0 0;
}

#navigation > ul {
  float: left;
  width: 680px;
  margin: 0 15px;
  padding: 15px 0;
  list-style: none;
}

#navigation > ul > li {
  position: relative;
  display: block;
  float: left;
  height: 27px;
  border-right: 1px solid #033d7e;
  border-left: 1px solid #3a6daa;
}

#navigation > ul > li:first-child { border-left: 0; }
#navigation > ul > li:last-child { border-right: 0; }

#navigation > ul > li > a {
  position: relative;
  display: block;
  height: 27px;
  padding: 0 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 27px;
  text-decoration: none;
  vertical-align: middle;
}

#navigation > ul > li > a.active { font-weight: 800; }
#navigation > ul > li > a.active,
#navigation > ul > li > a:hover { text-decoration: underline; }

#navigation .people {
  position: absolute;
  right: 90px;
  bottom: 0;
  width: 262px;
  height: 156px;
  background: transparent url("../img/menu-people.png") no-repeat 0 0;
}

#navigation .phone {
  position: absolute;
  right: 285px;
  bottom: 92px;
  width: 202px;
  height: 26px;
  background: transparent url("../img/phone.png") no-repeat 0 0;
}

#navigation .calculation {
  float: right;
  width: 140px;
  height: 57px;
  margin: 0 15px;
  padding: 15px 0;
  text-align: right;
}

#navigation .calculation > a {
  position: relative;
  display: block;
  height: 27px;
  padding: 0 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 27px;
  text-decoration: none;
  vertical-align: middle;
}

#navigation .calculation > a:hover { text-decoration: underline; }
#navigation .calculation > a:hover > i { text-decoration: none; }

#navigation .calculation > a > i {
  position: relative;
  top: 3px;
  float: right;
  margin-left: 8px;
  font-size: 21px;
}

.mobile-services { display: none; }

/* Home hero */
#homeslider-outer {
  height: 370px;
  margin-bottom: -30px;
  background-position: 50% 0;
  background-repeat: no-repeat;
}

#homeslider { position: relative; }

.homeslider-content {
  position: absolute;
  top: 50px;
  right: 50px;
  width: 450px;
}

.homeslider-content h2 {
  padding-bottom: 10px;
  color: #fff;
  font-size: 35px;
  font-weight: 400;
  line-height: 1.2;
}

.homeslider-content h2 strong { font-weight: 700; }

.homeslider-content p {
  color: #fff;
  font-size: 14px;
  line-height: 1.8;
}

.homeslider-content a.btn,
.homeslider-content a.btn-blue {
  position: relative;
  display: inline-block;
  height: 40px;
  padding: 0 60px 0 20px;
  border-radius: 10px;
  color: #fff;
  box-shadow: 1px 1px 1px 1px #035ba7;
  font-size: 14px;
  font-weight: 600;
  line-height: 40px;
  vertical-align: middle;
}

.homeslider-content a.btn {
  background: linear-gradient(to bottom, #e01802 0%, #db1200 50%, #d50d00 100%);
}

.homeslider-content a.btn-blue {
  margin-left: 20px;
  background: linear-gradient(to bottom, #0172ff 0%, #006dfa 50%, #0166f6 100%);
}

.homeslider-content a.btn:hover,
.homeslider-content a.btn-blue:hover { text-decoration: none; }

.homeslider-content a.btn em,
.homeslider-content a.btn-blue em {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-block;
  height: 40px;
  margin-left: 20px;
  padding: 0 10px;
  border-radius: 0 10px 10px 0;
  line-height: 40px;
  vertical-align: middle;
}

.homeslider-content a.btn em { background: #b80000; }
.homeslider-content a.btn:hover em { background: #960100; }
.homeslider-content a.btn-blue em { background: #004cfa; }
.homeslider-content a.btn-blue:hover em { background: #034f91; }

/* Breadcrumb */
#breadcrumb {
  position: relative;
  height: 45px;
  margin-top: 30px;
  border-radius: 5px 5px 0 0;
  background: #fff;
  line-height: 45px;
  text-align: left;
  vertical-align: middle;
}

#breadcrumb ul {
  float: left;
  width: 680px;
  margin: 0 15px;
  list-style: none;
}

#breadcrumb ul > li {
  position: relative;
  display: block;
  float: left;
  height: 45px;
  margin-right: 5px;
  line-height: 45px;
  vertical-align: middle;
}

#breadcrumb ul > li > a { color: #056aba; }

#breadcrumb ul > li.home a {
  margin-right: 10px;
  color: #89d4e9;
  font-size: 15px;
}

/* Main content */
#content-outer { background: #fff; }

#content {
  position: relative;
  text-align: left;
}

.content-border-top {
  padding-bottom: 20px;
  border-top: 2px solid #f2f2f2;
}

#content > .left-shadow,
#content > .right-shadow {
  position: absolute;
  top: 0;
  width: 40px;
  height: 40px;
}

#content > .left-shadow {
  left: -40px;
  background: transparent url("../img/content-shadow-l.png") no-repeat 0 0;
}

#content > .right-shadow {
  right: -40px;
  background: transparent url("../img/content-shadow-r.png") no-repeat 0 0;
}

#content > .content-inner { padding: 0 10px 10px 0; }

.content-sidebar-left {
  float: left;
  width: 195px;
  padding-bottom: 30px;
}

.content-sidebar-left h3 {
  padding: 0 10px 17px 15px;
  color: #005cc4;
  font-size: 21px;
}

.content-main {
  float: left;
  width: 564px;
  margin-left: 10px;
}

.content-main > p,
.content-main > h2,
.content-main > h3,
.content-main > h4,
.content-main > h5,
.content-main > h6,
.content-main > ul,
.content-main > ol {
  padding: 1em 10px 0;
  line-height: 1.5;
}

.content-main > ul,
.content-main > ol { margin-left: 30px; }

.content-main > hr {
  margin-right: 10px;
  margin-bottom: 0;
  margin-left: 10px;
  border-bottom: 1px solid #ebebeb;
}

.content-main .first-header {
  padding: 0 0 17px 10px;
  color: #000;
  font-size: 20px;
  line-height: 1;
}

.content-main .next-header {
  padding: 30px 0 0 10px;
  color: #000;
  font-size: 20px;
  line-height: 1;
}

.content-main .content-header {
  position: relative;
  height: 104px;
  background: transparent url("../img/header.png") no-repeat 0 0;
}

.content-main .content-header-title {
  position: absolute;
  top: 20px;
  left: 130px;
  height: 40px;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
}

.content-main .content-header-subtitle {
  position: absolute;
  top: 52px;
  left: 130px;
  height: 20px;
  color: #fff;
  font-size: 15px;
}

.content-main .content-header-image {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 90px;
  height: 90px;
  border-radius: 10px;
}

.content-main .price-question {
  position: relative;
  left: -5px;
  margin: 20px 0;
}

.content-sidebar-right {
  float: right;
  width: 190px;
}

.content-sidebar-right h4 {
  padding: 0 0 17px;
  color: #000;
  font-size: 20px;
  line-height: 1;
}

.content-sidebar-right-action p {
  margin: 0;
  padding: 0;
  line-height: 1;
}

.content-sidebar-right-article-list { padding-top: 10px; }

.content-sidebar-right-article-list p {
  padding: 5px 0;
  font-size: 13px;
}

.content-sidebar-right-article-list p a {
  color: var(--brand-red);
  font-weight: 700;
}

.content-sidebar-right-article-list h4 {
  padding: 5px 0 0;
  color: #000;
  font-size: 14px;
  line-height: 1.6;
}

.content-sidebar-right-article-list h4 strong {
  padding: 1px 3px;
  border-radius: 4px;
  color: #fff;
  background: #0274cc;
  font-weight: 400;
}

/* Service navigation */
.sidebar-menu { list-style: none; }
.sidebar-menu li { display: block; padding-bottom: 3px; }

.sidebar-menu li a {
  display: block;
  padding: 8px 10px;
  border: 1px solid #d3e5e7;
  border-radius: 4px;
  color: #062458;
  background: linear-gradient(to right, #fff 0%, #e4f2f3 100%);
  font-size: 14px;
}

.sidebar-menu li a i {
  padding: 0 4px;
  color: #93c7ec;
}

.sidebar-menu li a:hover {
  background: linear-gradient(to right, #ebf5fe 0%, #cbe6fb 100%);
  text-decoration: none;
}

.sidebar-menu li.active a,
.sidebar-menu li.active a:hover {
  color: #fff;
  background: linear-gradient(to right, var(--brand-blue) 0%, var(--brand-blue-light) 100%);
}

/* Home services */
.home-services {
  padding-left: 10px;
  border-radius: 10px;
  background: var(--surface-blue);
}

.home-services .home-services-item {
  position: relative;
  float: left;
  width: 174px;
  margin: 10px 10px 10px 0;
}

.home-services .home-services-item a {
  position: relative;
  color: #000;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
}

.home-services .home-services-item .home-services-header {
  position: absolute;
  top: 10px;
  left: 75px;
  display: block;
  width: 90px;
  color: #000;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
}

.home-services .home-services-item a span.word2 { font-weight: 500; }

.home-services .home-services-item img {
  float: left;
  width: 60px;
  height: 60px;
  margin-right: 15px;
  border-radius: 10px;
}

.home-services hr {
  margin-right: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #fff;
}

/* Content components */
.content-attachments {
  margin: 10px 0 20px;
  padding: 30px 30px 0;
  background: var(--surface-blue);
}

.content-attachments .attachment {
  width: 230px;
  padding-bottom: 30px;
}

.content-attachments .attachment div { margin-left: 60px; }

.content-attachments .attachment a {
  color: #054392;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: underline;
}

.content-attachments .attachment small {
  color: #a1a3a2;
  font-size: 13px;
}

.content-attachments .attachment img {
  float: left;
  margin-right: 20px;
  border-radius: 5px;
}

.content-attachments .attachment-left { float: left; }
.content-attachments .attachment-right { float: right; }

.thumbnails,
.partners { padding: 20px 0; }

.thumbnail {
  float: left;
  margin: 5px;
  padding: 5px;
  background: #fff;
  box-shadow: 0 0 2px 1px #e8dede;
  line-height: 0;
}

.partners-partner {
  float: left;
  width: 170px;
  margin: 5px;
  line-height: 0;
  text-align: center;
}

.blog-list { padding: 0 10px; }

.blog-list h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1;
}

.blog-list h2 a { color: #005cc4; }

.blog-list hr {
  margin: 0 0 30px;
  padding: 20px 0 0;
  border-bottom: 1px solid #ebebeb;
}

.why-block h3 {
  padding: 20px 10px;
  font-size: 20px;
}

/* Pagination */
.pagination {
  margin: 20px 0;
  line-height: 0;
  text-align: center;
}

.pagination ul {
  display: inline-block;
  line-height: 1.5;
}

.pagination ul li { display: inline; }

.pagination ul li a {
  display: block;
  float: left;
  margin: 5px;
  padding: 8px 10px;
  border: 1px solid #d3e5e7;
  border-radius: 4px;
  color: #062458;
  background: linear-gradient(to right, #fff 0%, #e4f2f3 100%);
  font-size: 14px;
}

.pagination ul li.disabled a {
  border-color: silver;
  color: silver;
  background: #f1f1f1;
}

/* Forms and messages */
form {
  margin-top: 20px;
  padding: 10px;
  background: var(--surface-blue);
}

form td { padding: 5px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid transparent;
}

.form-grid .control-group { padding: 5px; }

.form-status {
  display: none;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #9bc7f6;
  border-radius: 6px;
  color: #063f7f;
  background: #e8f4ff;
}

.form-status.is-visible { display: block; }

.form-status.is-error {
  border-color: #eeaaa7;
  color: #8c160f;
  background: #fff0ef;
}

.calculation-form button[disabled] {
  cursor: wait;
  opacity: .7;
}

.thank-you-card {
  margin: 0 10px 20px;
  padding: 30px;
  border-radius: 10px;
  background: linear-gradient(145deg, #eef7ff, #f8f5ff);
  box-shadow: inset 0 0 0 1px #dcecff;
  text-align: center;
}

.thank-you-card .thank-you-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #0562ca, #7047eb);
  box-shadow: 0 10px 24px rgb(5 98 202 / 24%);
  font-size: 30px;
  place-items: center;
}

.thank-you-card h1 {
  padding-bottom: 8px;
  color: #062458;
  font-size: 25px;
  line-height: 1.2;
}

.thank-you-card p { padding: 6px 0; }

.thank-you-card .btn-return {
  display: inline-block;
  margin-top: 14px;
  padding: 11px 18px;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(135deg, #0562ca, #3686ff);
  font-weight: 700;
}

.thank-you-card .btn-return:hover {
  color: #fff;
  text-decoration: none;
}

input,
textarea {
  display: block;
  width: 96%;
  padding: 2%;
  border: 1px solid silver;
  border-radius: 5px;
  background: #fff;
}

textarea { resize: vertical; }

input:focus,
textarea:focus {
  border-color: #3686ff;
  outline: 2px solid rgb(54 134 255 / 22%);
  outline-offset: 1px;
}

button.btn {
  position: relative;
  display: inline-block;
  height: 40px;
  padding: 0 60px 0 20px;
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(to bottom, #e01802 0%, #db1200 50%, #d50d00 100%);
  font-size: 14px;
  font-weight: 600;
  line-height: 40px;
  vertical-align: middle;
}

button.btn i {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-block;
  height: 40px;
  margin-left: 20px;
  padding: 0 10px;
  border-radius: 0 5px 5px 0;
  background: #b80000;
  line-height: 40px;
}

button.btn:hover i { background: #960100; }

ul.errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.errorlist li,
.msg_info,
.msg_success,
.msg_warning,
.msg_error,
.msg_validation {
  margin-bottom: 10px;
  padding: 15px 10px 15px 50px;
  border: 1px solid;
  background-repeat: no-repeat;
  background-position: 10px center;
}

.errorlist li,
.msg_error {
  color: #d8000c;
  background-color: #ffbaba;
  background-image: url("../img/messages/error.png");
}

.msg_info {
  color: #00529b;
  background-color: #bde5f8;
  background-image: url("../img/messages/info.png");
}

.msg_success {
  color: #4f8a10;
  background-color: #dff2bf;
  background-image: url("../img/messages/success.png");
}

.msg_warning {
  color: #9f6000;
  background-color: #feefb3;
  background-image: url("../img/messages/warning.png");
}

#messages {
  margin: -10px 0 20px;
  padding-left: 10px;
}

/* Footer */
#footer-outer {
  margin-top: 30px;
  background: transparent url("../img/footer.png") repeat-x 0 0;
}

#footer {
  position: relative;
  height: 87px;
  overflow: hidden;
  line-height: 90px;
  vertical-align: middle;
}

#footer .logo {
  float: left;
  padding: 17px 10px;
}

#footer .fb {
  float: right;
  padding: 10px;
}

#footer ul {
  float: left;
  width: 630px;
  list-style: none;
  text-align: right;
}

#footer ul li { display: inline-block; }

#footer ul li a {
  padding: 0 10px;
  border-right: 1px solid #fff;
  color: #fff;
  font-size: 14px;
}

#footer ul li.active a {
  color: #3ca5ff;
  text-decoration: underline;
}

#footer ul li:last-child a { border-right: 0; }

#bottom-outer { background: transparent url("../img/bottom.png") repeat-x 0 0; }

#bottom {
  position: relative;
  height: 64px;
  overflow: hidden;
  line-height: 64px;
  text-align: right;
  vertical-align: middle;
}

#bottom p {
  height: 64px;
  margin: 0;
  padding: 0 10px;
  color: gray;
  line-height: 64px;
  vertical-align: middle;
}

#bottom a {
  display: inline-block;
  padding-right: 40px;
  color: silver;
  background: transparent url("../img/seller-copyright.png") no-repeat 100% 50%;
  font-weight: 700;
  text-decoration: underline;
}

#bottom a:hover { color: #fff; }

/* Vanilla lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  grid-template-columns: minmax(52px, 1fr) minmax(0, auto) minmax(52px, 1fr);
  align-items: center;
  padding: 32px;
  background: rgb(0 20 42 / 88%);
  opacity: 0;
  backdrop-filter: blur(4px);
  transition: opacity 180ms ease;
}

.lightbox.is-visible { opacity: 1; }

.lightbox-figure {
  grid-column: 2;
  max-width: min(88vw, 1400px);
  max-height: 90vh;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 70px rgb(0 0 0 / 48%);
}

.lightbox-image {
  display: block;
  max-width: min(88vw, 1400px);
  max-height: calc(90vh - 48px);
  margin: auto;
  object-fit: contain;
}

.lightbox-caption {
  min-height: 20px;
  padding: 12px 16px;
  color: #17324d;
  font-size: 14px;
  text-align: center;
}

.lightbox-close,
.lightbox-control {
  width: 46px;
  height: 46px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 50%;
  color: #fff;
  background: rgb(5 98 202 / 78%);
  font-size: 35px;
  line-height: 40px;
  transition: background 150ms ease, transform 150ms ease;
}

.lightbox-close:hover,
.lightbox-control:hover {
  background: var(--brand-red);
  transform: scale(1.06);
}

.lightbox-close:focus-visible,
.lightbox-control:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
}

.lightbox-previous {
  justify-self: end;
  margin-right: 16px;
}

.lightbox-next {
  grid-column: 3;
  justify-self: start;
  margin-left: 16px;
}

.menu-overlay { display: none; }

/* Responsive layout and off-canvas navigation */
@media (max-width: 1024px) {
  .full_page {
    width: min(var(--content-width), calc(100% - 32px));
  }
}

@media (max-width: 1059px) {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  body {
    min-width: 0;
    overflow-x: hidden;
    background-size: auto 150px;
  }

  body > .bg-l,
  body > .bg-r {
    height: 155px;
  }

  #wrapper { background-position: center top; }

  .full_page {
    width: min(100% - 32px, 760px);
  }

  #header {
    min-height: 92px;
  }

  #header .logo {
    box-sizing: border-box;
    width: calc(100% - 64px);
    padding: 18px 0 12px 5px;
  }

  #header .logo img {
    max-width: min(100%, 320px);
  }

  .menu-toggle {
    position: absolute;
    top: 22px;
    right: 2px;
    z-index: 1300;
    display: grid;
    width: 52px;
    height: 48px;
    place-content: center;
    gap: 5px;
    border: 1px solid rgb(255 255 255 / 40%);
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #008df5, #7047eb 54%, #dc176d);
    box-shadow: 0 8px 24px rgb(0 40 100 / 28%);
  }

  .menu-toggle-line {
    display: block;
    width: 25px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-open .menu-toggle-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle-line:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .menu-open .menu-toggle {
    position: fixed;
    top: 20px;
    right: auto;
    left: calc(min(88vw, 380px) - 64px);
  }

  #navigation-outer {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1200;
    width: min(88vw, 380px);
    max-width: none;
    margin: 0;
    overflow-y: auto;
    background: linear-gradient(155deg, #004d9b 0%, #0562ca 38%, #5534b5 72%, #a81569 100%);
    box-shadow: 20px 0 60px rgb(0 22 56 / 38%);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 240ms ease, visibility 240ms;
  }

  .menu-open #navigation-outer {
    transform: translateX(0);
    visibility: visible;
  }

  #navigation {
    width: 100%;
    height: auto;
    min-height: 100%;
    margin: 0;
    padding: 112px 24px 32px;
    box-sizing: border-box;
    background: none;
  }

  #navigation::before {
    position: absolute;
    top: 28px;
    left: 24px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.4px;
    content: "TopInstalatér.cz";
  }

  #navigation .people { display: none; }

  #navigation .phone {
    top: 66px;
    right: auto;
    bottom: auto;
    left: 24px;
    filter: drop-shadow(0 2px 5px rgb(0 0 0 / 22%));
  }

  #navigation > ul {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  #navigation > ul > li {
    float: none;
    height: auto;
    margin-bottom: 7px;
    border: 0;
    border-radius: 10px;
    background: rgb(255 255 255 / 9%);
  }

  #navigation > ul > li:nth-child(1) { border-left: 4px solid #42d7ff; }
  #navigation > ul > li:nth-child(2) { border-left: 4px solid #55e6a5; }
  #navigation > ul > li:nth-child(3) { border-left: 4px solid #ffd166; }
  #navigation > ul > li:nth-child(4) { border-left: 4px solid #ff8fa3; }
  #navigation > ul > li:nth-child(5) { border-left: 4px solid #c6a8ff; }

  #navigation > ul > li > a {
    height: auto;
    padding: 13px 15px;
    font-size: 15px;
    line-height: 1.3;
  }

  #navigation > ul > li > a.active,
  #navigation > ul > li > a:hover {
    border-radius: 7px;
    background: rgb(255 255 255 / 14%);
    text-decoration: none;
  }

  #navigation .calculation {
    float: none;
    width: auto;
    height: auto;
    margin: 10px 0 0;
    padding: 0;
    text-align: left;
  }

  #navigation .calculation > a {
    height: auto;
    padding: 14px 18px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #f0563d, #d31108);
    box-shadow: 0 8px 20px rgb(71 0 25 / 25%);
    font-size: 15px;
    line-height: 1.3;
  }

  #navigation .calculation > a > i { top: 0; }

  .mobile-services {
    display: block;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgb(255 255 255 / 20%);
  }

  .mobile-services-title {
    padding: 0 0 10px;
    color: rgb(255 255 255 / 75%);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
  }

  .mobile-services-list { list-style: none; }

  .mobile-services-list li a {
    display: block;
    padding: 9px 10px;
    border-bottom: 1px solid rgb(255 255 255 / 10%);
    color: #fff;
    font-size: 14px;
  }

  .mobile-services-list li.active a {
    border-radius: 7px;
    background: rgb(255 255 255 / 13%);
    font-weight: 700;
  }

  .mobile-services-list i {
    margin-right: 6px;
    color: #78ddff;
  }

  .menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: block;
    width: 100%;
    height: 100%;
    background: rgb(2 20 42 / 58%);
    cursor: default;
    opacity: 0;
    backdrop-filter: blur(3px);
    transition: opacity 240ms ease;
  }

  .menu-open .menu-overlay { opacity: 1; }

  #homeslider-outer {
    height: 340px;
    margin-bottom: -15px;
    background-position: 36% top;
  }

  .homeslider-content {
    top: 42px;
    right: 24px;
    left: 24px;
    width: auto;
    max-width: 470px;
    margin-left: auto;
    padding: 22px;
    border-radius: 16px;
    background: rgb(0 45 102 / 60%);
    box-shadow: 0 14px 40px rgb(0 33 80 / 25%);
    backdrop-filter: blur(3px);
  }

  .homeslider-content h2 { font-size: clamp(26px, 5vw, 35px); }

  #breadcrumb {
    width: min(100% - 32px, 760px);
    margin-top: 15px;
    overflow: hidden;
  }

  #breadcrumb ul {
    display: flex;
    float: none;
    width: auto;
    margin: 0 15px;
    overflow-x: auto;
    white-space: nowrap;
  }

  #breadcrumb ul > li { flex: 0 0 auto; }

  #content > .content-inner { padding-right: 0; }
  #content > .left-shadow,
  #content > .right-shadow { display: none; }

  .content-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .content-sidebar-left { display: none; }

  .content-main,
  .content-sidebar-right {
    float: none;
    width: auto;
    margin: 0;
  }

  .content-main .content-header {
    overflow: hidden;
    border-radius: 7px;
    background-color: #0562ca;
    background-size: cover;
  }

  .content-main .price-question {
    left: 0;
    margin-right: 10px;
    margin-left: 10px;
  }

  .content-main .price-question img,
  .why-block img,
  .content-sidebar-right-action img {
    max-width: 100%;
  }

  .home-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 10px;
    padding: 10px;
  }

  .home-services .home-services-item {
    float: none;
    width: auto;
    min-height: 60px;
    margin: 0;
  }

  .home-services .home-services-item .home-services-header {
    right: 5px;
    width: auto;
  }

  .home-services > .clearfix:not(.home-services-item) { display: none; }

  .content-sidebar-right {
    display: grid;
    grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
    gap: 24px;
    padding: 22px;
    border-radius: 12px;
    background: #f5f8fb;
  }

  .content-sidebar-right-article-list { padding-top: 0; }

  .gallery-thumbnails,
  .partners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    padding: 20px 10px;
  }

  .thumbnail,
  .partners-partner {
    float: none;
    width: auto;
    margin: 0;
  }

  .thumbnail img,
  .partners-partner img {
    display: block;
    max-width: 100%;
    margin: auto;
  }

  .content-attachments {
    margin-right: 10px;
    margin-left: 10px;
  }

  #footer {
    display: flex;
    width: min(100% - 32px, 760px);
    height: auto;
    min-height: 87px;
    align-items: center;
    overflow: visible;
    line-height: 1.4;
  }

  #footer ul {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    padding: 18px 8px;
    text-align: center;
  }

  #footer ul li a {
    display: block;
    padding: 6px 9px;
    border: 0;
  }

  #bottom {
    width: min(100% - 32px, 760px);
    height: auto;
    min-height: 64px;
    overflow: visible;
    line-height: 1.5;
  }

  #bottom p {
    height: auto;
    padding: 16px 10px;
    line-height: 1.5;
  }
}

@media (max-width: 600px) {
  .full_page { width: calc(100% - 24px); }

  #header { min-height: 84px; }
  #header .logo { padding-top: 16px; }
  #header .logo img { max-width: 250px; }

  .menu-toggle {
    top: 17px;
    right: 0;
    width: 48px;
    height: 46px;
  }

  #homeslider-outer {
    height: 420px;
    background-position: 30% top;
    background-size: auto 420px;
  }

  .homeslider-content {
    top: 30px;
    right: 12px;
    left: 12px;
    padding: 20px;
  }

  .homeslider-content p:last-child {
    display: grid;
    gap: 10px;
  }

  .homeslider-content a.btn,
  .homeslider-content a.btn-blue {
    display: block;
    margin: 0;
  }

  #breadcrumb { width: calc(100% - 24px); }

  #breadcrumb ul {
    overflow: hidden;
  }

  #breadcrumb ul > li:not(.home):not(:last-child) {
    display: none;
  }

  #breadcrumb ul > li:last-child {
    min-width: 0;
    overflow: hidden;
    flex: 1 1 auto;
    text-overflow: ellipsis;
  }

  .content-main > p,
  .content-main > h2,
  .content-main > h3,
  .content-main > h4,
  .content-main > h5,
  .content-main > h6,
  .content-main > ul,
  .content-main > ol {
    padding-right: 4px;
    padding-left: 4px;
  }

  .content-main .first-header { padding-left: 4px; }
  .content-main .next-header { padding-left: 4px; }

  .content-main .content-header { height: 92px; }

  .content-main .content-header-image {
    top: 8px;
    left: 8px;
    width: 76px;
    height: 76px;
  }

  .content-main .content-header-title {
    top: 18px;
    left: 102px;
    right: 10px;
    height: auto;
    font-size: clamp(19px, 6vw, 26px);
    line-height: 1.12;
  }

  .content-main .content-header-subtitle {
    top: 58px;
    left: 102px;
  }

  .home-services {
    grid-template-columns: 1fr;
    margin: 0;
  }

  .content-sidebar-right {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .content-sidebar-right-action {
    max-width: 220px;
    margin: auto;
  }

  .content-attachments {
    margin-right: 0;
    margin-left: 0;
    padding: 22px 18px 0;
  }

  .content-attachments .attachment {
    float: none;
    width: auto;
  }

  form table,
  form tbody,
  form tr,
  form td {
    display: block;
    width: auto;
  }

  form td { padding: 7px 0; }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    border: 0;
  }

  .form-grid .control-group { padding: 0; }

  input,
  textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
  }

  .lightbox {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    padding: 14px;
  }

  .lightbox-figure {
    max-width: 100%;
    max-height: 86vh;
  }

  .lightbox-image {
    max-width: 100%;
    max-height: calc(86vh - 48px);
  }

  .lightbox-control {
    width: 38px;
    height: 38px;
    font-size: 30px;
    line-height: 32px;
  }

  .lightbox-previous { margin-right: 5px; }
  .lightbox-next { margin-left: 5px; }

}

/* Compact footer: the original footer artwork is only 87px tall and cannot
   safely contain wrapped navigation on phones. Use one continuous surface. */
@media (max-width: 720px) {
  #footer-outer {
    margin-top: 36px;
    border-top: 1px solid rgb(255 255 255 / 8%);
    background: #17191d;
  }

  #footer {
    display: grid;
    width: calc(100% - 24px);
    min-height: 0;
    padding: 20px 8px 16px;
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 14px 10px;
    align-items: center;
  }

  #footer .logo {
    float: none;
    min-width: 0;
    padding: 0;
  }

  #footer .logo img {
    display: block;
    width: min(100%, 224px);
  }

  #footer .fb {
    position: static;
    float: none;
    padding: 0;
    justify-self: end;
  }

  #footer .fb img { display: block; }

  #footer ul {
    display: grid;
    width: 100%;
    padding: 13px 0 0;
    border-top: 1px solid rgb(255 255 255 / 12%);
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 8px;
  }

  #footer ul li { display: block; }

  #footer ul li a {
    padding: 7px 4px;
    line-height: 1.3;
    text-align: center;
  }

  #bottom-outer {
    border-top: 1px solid rgb(255 255 255 / 8%);
    background: #0f1114;
  }

  #bottom {
    width: calc(100% - 24px);
    min-height: 0;
    padding: 0 8px;
    text-align: center;
  }

  #bottom p {
    padding: 14px 0 16px;
    font-size: 11px;
    line-height: 1.65;
  }

  #bottom a {
    display: inline-block;
    margin-left: 4px;
    padding-right: 31px;
    background-size: auto 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
