@media print {
  @page {
    size: landscape;
    margin: 0;
  }
}

@media screen and (max-width: 1024px) {
  .wrap {
    width: 94%;
  }
  .page-content::before {
    background-size: cover;
  }
  header {
    position: relative;
  }
  header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 5;
    background: rgba(0, 0, 0, 0.9);
    width: 100%;
  }
  header nav ul li,
  header nav ul li.ab {
    display: block;
    border: 0;
    padding: 0;
  }
  header nav ul li a,
  header nav ul li.login-button button {
    display: block;
    background: none;
    width: 100%;
    color: #d8d8d8;
    font-size: 15px;
    text-align: left;
    text-transform: uppercase;
    padding: 20px;
  }
  header nav ul li a:hover,
  header nav ul li.login-button button:hover {
    background: #3a415c;
    color: #ffffff;
    transition: none;
  }

  header #menuToggle {
    display: block;
  }

  section.image-bg.hp-slider,
  section.image-bg.hp-slider .wrap {
    height: auto;
    min-height: 0;
  }
  section.image-bg.hp-slider .wrap {
    padding-bottom: 50px;
  }
  section.image-bg.hp-slider .wrap .container {
    display: block;
    width: 100% !important;
  }
  section.image-bg.hp-slider .wrap .container:first-child {
    margin-bottom: 50px;
  }

  ul.services-boxes li {
    height: 250px;
  }

  footer header {
    display: none;
  }

  ul.consulting-types {
    margin-bottom: 53px;
  }
  ul.consulting-types::after {
    margin-top: -53px;
  }

  .calculator .container .box-bg.has-sidebar .sidebar ul li {
    width: 100%;
  }
  .calculator .container .box-bg.has-sidebar .sidebar .right {
    width: 100% !important;
  }

  ul.services-list li {
    width: calc(50% - 10px);
  }

  .nd-bform .inp-box {
    width: 100%;
  }

  .add-household-form,
  .add-household-form .content .boxes-flexbox,
  .add-household-form .content .boxes-flexbox .fbox,
  .add-household-form .content .boxes-flexbox .big-col {
    display: block;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media screen and (max-width: 960px) {
  ul.services-boxes li {
    width: calc(50% - 5px);
    height: 250px;
  }

  .calculator .wrap.calculator-holder {
    width: 94%;
  }
  .calculator .wrap.calculator-holder .services-selector-buttons::before,
  .calculator .wrap.calculator-holder .services-selector-buttons::after,
  .calculator .container-bottom::before,
  .calculator .container-bottom::after,
  .calculator .wrap.calculator-holder .services-selector-buttons {
    display: none;
  }

  .calculator ul.services-selector li {
    width: calc(100% / 3);
    margin-bottom: 40px;
    border-right: 1px solid #3c415a;
  }
  .calculator ul.services-selector li:last-child::before {
    display: block;
  }
  .calculator ul.services-selector li::before {
    top: 100%;
    background: #3c415a;
    width: 100%;
    height: 40px;
  }

  .calculator .container {
    padding: 15px;
  }

  .calculator .container .box-bg.has-sidebar,
  .calculator .container .box-bg.has-sidebar .content,
  .calculator .container .box-bg.has-sidebar .sidebar {
    display: block;
    width: 100%;
    margin: 0;
  }

  .calculator .container .box-bg.has-sidebar .sidebar {
    border-radius: 0 0 20px 20px;
    width: calc(100% - 40px);
    margin: 0 auto;
  }

  .calculator .container .box-bg.has-sidebar .sidebar ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    vertical-align: middle;
  }
  .calculator .container .box-bg.has-sidebar .sidebar ul li,
  .calculator .container .box-bg.has-sidebar .sidebar ul li:first-child {
    width: calc(50% - 10px);
    margin: 5px;
  }

  .dashbox .items.head,
  .items.head {
    display: none;
  }

  .dashbox .items,
  .items,
  .dashbox .items .col,
  .items .col {
    display: block;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    text-align: center;
  }
  .dashbox .items,
  .items {
    border-bottom: 1px solid #d8d8d8;
  }
  .dashbox .items:last-child,
  .items:last-child {
    border-bottom: 0;
  }

  .dashbox .resp-caption {
    display: block;
  }

  .dashbox .items.smallpad .col {
    width: 50% !important;
    min-width: initial !important;
    text-align: left;
  }
  .dashbox .items.smallpad .col p {
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
  }
  .dashbox .items.smallpad .col p span {
    padding-left: 5px;
  }
  .dashbox .items.darken {
    display: flex;
    flex-wrap: wrap;
  }

  body > section > div > div.dashbox > div.box.has-items > div > .col:nth-child(1),
  body > section > div > div.dashbox > div.box.has-items > div > .col:nth-child(2),
  body > section > div > div.dashbox > div.box.has-items > div > .col:nth-child(3) {
    width: calc(100% / 3) !important;
  }
  body > section > div > div.dashbox > div.box.has-items > div > .col:nth-child(1) .resp-caption {
    display: none;
  }
  body > section > div > div.dashbox > div.box.has-items > div > .col:nth-child(1) p,
  body > section > div > div.dashbox > div.box.has-items > div > .col:nth-child(2) p {
    font-weight: bold;
    font-size: 13px;
  }
  body > section > div > div.dashbox > div.box.has-items > div > .col:nth-child(2) .resp-caption {
    display: none;
  }

  body > section > div > div.dashbox > div.box.has-items > div > .col:nth-child(16),
  body > section > div > div.dashbox > div.box.has-items > div > .col:nth-child(17),
  body > section > div > div.dashbox > div.box.has-items > div > .col:nth-child(18) {
    width: calc(100% / 3) !important;
  }

  body > section > div > div.dashbox > div.box.has-items > div > .col:nth-child(1) {
    width: calc(100% / 3 - 80px) !important;
    padding-right: 0;
  }
  body > section > div > div.dashbox > div.box.has-items > div > .col:nth-child(2) {
    width: calc(100% / 3 + 70px) !important;
    padding: 10px;
  }
  body > section > div > div.dashbox > div.box.has-items > div > .col:nth-child(3) {
    padding-left: 10px;
    width: calc(100% / 3 + 10px) !important;
  }
  body > section > div > div.dashbox > div.box.has-items > div > div:nth-child(14) {
    padding-right: calc(50% + 20px);
    width: 100% !important;
  }
  body > section > div > div.dashbox > div.box.has-items > div > .col:nth-child(15) {
    width: 100% !important;
  }

  body > section > div > div.dashbox > div.box.has-items > div > .col:nth-child(16) {
    width: 100% !important;
    padding-right: calc(50% + 20px);
    text-align: left;
  }
  body > section > div > div.dashbox > div.box.has-items > div > .col:nth-child(16) p {
    margin-left: 5px;
  }
  body > section > div > div.dashbox > div.box.has-items > div > .col:nth-child(17) {
    width: 50% !important;
  }
  body > section > div > div.dashbox > div.box.has-items > div > .col:nth-child(18) {
    padding-left: 10px;
    width: 50% !important;
  }
  .dashbox .items .col:nth-child(1) .resp-caption,
  .dashbox .items .col:nth-child(2) .resp-caption,
  .dashbox .items .col:nth-child(2) .resp-caption {
    margin-right: 5px;
  }
  .dashbox .items .col:nth-child(1) {
    font-size: 13px;
    font-weight: bold;
  }
  .dashbox .items .col:nth-child(2) {
    font-size: 13px;
    font-weight: bold;
  }
  body > section > div > div.dashbox > div.box.has-items > div > .col {
    margin-bottom: 5px;

    border-bottom: 1px solid lightgrey;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .dashbox .items.darken {
    display: flex;
    flex-wrap: wrap;
  }
  .dashbox .items .resp-caption {
    display: block;
    margin-right: auto;
  }
  body > section > div > div.dashbox > div.box.has-items > div > .inner {
    display: none;
  }
  .dashbox .items .col,
  .items-table .col {
    padding: 5px 20px !important;
  }
  .col .mobile-only {
    display: initial;
  }
}

.mobile-only {
  display: none;
}

@media screen and (max-width: 768px) {
  .table,
  .table .column {
    display: block !important;
    width: 100% !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
  .table.unbreakable,
  .table.break-480 {
    display: table !important;
  }
  .table.unbreakable .column,
  .table.break-480 .column {
    display: table-cell !important;
    width: auto !important;
  }
  .table.centered,
  .table.centered .column {
    text-align: center;
  }

  .table.fix-top .column {
    margin-top: 40px;
  }
  .dashboard .table.fix-top .column,
  div#overlay div.container .content .table.fix-top .column {
    margin-top: 20px;
  }
  .table.fix-top .column:first-child,
  .dashboard .table.fix-top .column:first-child {
    margin-top: 0;
  }

  ul.consulting-types {
    margin-bottom: 63px;
  }
  ul.consulting-types::after {
    margin-top: -23px;
  }

  ul.services-list li {
    width: calc(50% - 10px);
    margin: 0 5px 10px 5px;
  }

  section.image-bg.hp-slider ul.check-list::before {
    display: none;
  }
}

@media screen and (max-width: 640px) {
  .nadom-logo {
    display: block;
    margin: 0 auto;
  }

  ul.hp-menu {
    background: #ffffff;
    margin: 0;
    height: auto;
  }
  ul.hp-menu li {
    width: 50%;
    margin: 1px 0 0 0;
  }
  ul.hp-menu li:hover {
    height: 100px;
  }

  ul.partners-list li {
    width: calc(50% - 20px);
    margin: 10px;
  }

  footer .contact-details,
  footer .contact-details .map,
  footer .contact-details .info {
    display: block;
    width: 100%;
    height: auto;
  }
  footer .contact-details .info {
    padding: 40px 20px 40px 20px;
  }

  footer .copyright .wrap,
  footer .copyright .wrap .content {
    display: block;
    text-align: center;
  }
  footer .copyright .wrap .content {
    margin: 10px 0 0 0;
  }
  footer .copyright .wrap .content:first-child {
    margin-top: 0;
  }

  ul.consulting-types {
    margin-top: 0;
    margin-bottom: 0;
  }
  ul.consulting-types::after {
    display: none;
  }
  ul.consulting-types li {
    display: block;
    width: 100% !important;
    margin: 0 0 20px 0 !important;
  }

  ul.hp-menu {
    position: relative;
  }
  ul.hp-menu li {
    position: static;
  }
  ul.hp-menu li .pop-up {
    position: absolute;
    top: 0;
    left: 0;
    bottom: auto;
    margin: 0;
    width: 100%;
  }
  ul.hp-menu li.active .content::after {
    display: none;
  }
}

@media screen and (max-width: 960px) {
  .ob-search,
  .ob-search .col,
  .ob-search input[type="text"],
  .ob-search input[type="number"],
  .ob-search input[type="password"],
  .ob-search input[type="date"],
  .ob-search select {
    display: block;
    width: 100% !important;
  }
  .ob-search .col {
    margin: 10px 0 10px 0;
  }
  .ob-search {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: flex-end;
  }
  .ob-search .col {
    width: 50% !important;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
  }
  .ob-search .col:first-of-type {
    order: 6;
    width: 50% !important;
  }
  .ob-search button.search {
    width: 100%;
    background-color: #c3d8ee;
    border-radius: 3px;
    background-position: calc(100% - 10px) center;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: none;
  }
  .ob-search button.search::before {
    content: "Търсене";
    position: absolute;
    color: #272727;
    font-weight: bold;
    font-size: 14px;
    font-weight: 300;
    text-transform: uppercase;
  }
  /* body > section > div > form > div:nth-child(6) {
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between;
  } */
}

@media screen and (max-width: 580px) {
  .table.break-480,
  .table.break-480 .column {
    display: block !important;
    width: 100% !important;
  }

  body > section > div > div.table.fix-top > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div {
    display: flex !important;
    flex-direction: column;
    margin-top: 0;
  }

  body
    > section
    > div
    > div.table.fix-top
    > div:nth-child(1)
    > div:nth-child(1)
    > div:nth-child(2)
    > div
    > div:nth-child(1) {
    order: 2;
  }
  body
    > section
    > div
    > div.table.fix-top
    > div:nth-child(1)
    > div:nth-child(1)
    > div:nth-child(2)
    > div
    > div.column.right {
    order: 1;
    margin-bottom: 20px;
  }

  .dashbox .building {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .dashbox .building.has-top {
    margin-top: 100px;
  }

  ul.doorway-details-buttons li {
    width: calc(25% - 10px);
  }
}

@media screen and (max-width: 560px) {
  .calculator .container .box-bg.has-sidebar .sidebar ul li,
  .calculator .container .box-bg.has-sidebar .sidebar ul li:first-child {
    width: 100%;
    margin: 10px 0 0 0;
  }

  ul.detail-buttons li {
    width: calc(25% - 10px);
  }
}

@media screen and (max-width: 480px) {
  ul.services-boxes li {
    width: calc(100% - 10px);
    height: 300px;
    margin-left: 5px;
    margin-right: 5px;
  }

  .calculator ul.services-selector li {
    width: 50%;
  }
  .calculator ul.services-selector li .content {
    font-size: 15px;
  }

  .calculator .container .box-bg.has-sidebar .content {
    border-radius: 20px 20px 0 0;
  }
  .calculator .container .box-bg.has-sidebar .sidebar {
    width: 100%;
  }

  ul.doorway-details-buttons li {
    width: calc(33.3% - 10px);
  }

  div#overlay div.container {
    width: 100%;
    min-width: 0;
  }

  .cb-blue-box,
  .cb-blue-box .col {
    display: block;
    width: 100%;
    text-align: center;
  }
  .cb-blue-box .float-right {
    float: none;
  }

  ul.detail-buttons li {
    width: calc(33.3% - 10px);
  }
}

@media screen and (max-width: 360px) {
  ul.services-boxes li {
    height: 250px;
  }

  ul.services-list li {
    width: calc(100% - 10px);
    margin: 0 5px 5px 5px;
  }

  ul.doorway-details-buttons li {
    width: calc(50% - 10px);
  }
}
