body {
  background-color: #fefefc;
  font-family: 'Alexandria', sans-serif;
  line-height: 1.5;
  color: #514e4e;
  margin: 0; }

* {
  box-sizing: border-box; }
  *::before, *::after {
    box-sizing: border-box; }

section,
footer {
  scroll-margin: 40px; }

.heading-section {
  color: #f92fd7;
  margin: 20px 0 0 0;
  text-align: center;
  font-size: 20px;
  padding: 20px; }

.header {
  background-image: url("../images/hrdinova1024.jpg");
  background-size: cover;
  background-position-x: 43%;
  padding-top: 300px;
  padding-bottom: 20px;
  text-align: center; }
  .header .heading-main {
    color: white;
    font-weight: bold;
    margin: 0;
    font-size: 25px;
    padding-bottom: 10px;
    letter-spacing: 1.5px; }
  .header hr {
    text-align: center;
    height: 1px;
    width: 30%;
    margin: auto;
    background-color: #f92fd7;
    border: none; }
  .header .header-subheading {
    color: white;
    margin: 0;
    font-weight: bold;
    padding: 10px;
    font-size: 20px;
    letter-spacing: 2px; }

@media (min-width: 580px) {
  .header {
    background-image: url("../images/hrdinova800_1.jpg");
    padding-top: 400px; }
    .header .heading-main {
      font-size: 30px; }
    .header .header-subheading {
      font-size: 24px; }
    .header hr {
      height: 1.5px; } }

@media (min-width: 768px) {
  .header {
    background-image: url("../images/hrdinova1024.jpg");
    padding-top: 420px;
    padding-bottom: 60px; }
    .header .heading-main {
      font-size: 30px; }
    .header .header-subheading {
      font-size: 24px; }
    .header hr {
      height: 2px; } }

@media (min-width: 1024px) {
  .header {
    background-image: url("../images/hrdinovadesktop.jpg");
    padding-top: 460px;
    padding-bottom: 160px; }
    .header .heading-main {
      font-size: 45px; }
    .header .header-subheading {
      font-size: 36px; }
    .header hr {
      height: 3px; } }

.main-content {
  padding-left: 20px;
  padding-right: 20px; }
  .main-content .paragraph {
    text-align: center;
    font-size: 16px; }
  .main-content .paragraph-motto {
    text-align: center;
    font-size: 20px;
    padding: 10px;
    letter-spacing: 1px;
    margin-top: 0; }
  .main-content .service {
    padding-bottom: 20px; }
  .main-content .heading-services {
    text-align: center;
    margin-top: 0; }
  .main-content .service-icon {
    text-align: center; }
  .main-content .services-list {
    padding-left: 20px; }
  .main-content .service-icon-nemovitosti {
    background-image: url("../../images/nemovitosti.svg");
    height: 100px;
    width: 100px;
    background-position: center; }

@media (min-width: 768px) {
  .main-content {
    padding-left: 30px;
    padding-right: 30px; }
  .container {
    display: flex;
    flex-wrap: wrap; }
  .service {
    flex-basis: 50%;
    flex-shrink: 0; }
  .services-list {
    padding-right: 20px; } }

@media (min-width: 1024px) {
  .services {
    padding-top: 10px; }
  .container {
    display: flex;
    flex-wrap: wrap; }
  .service {
    flex-basis: 50%;
    flex-shrink: 0; }
  .layout {
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto; }
  .services-list {
    padding-right: 20px; } }

.contacts {
  background-color: rgba(249, 47, 215, 0.08);
  padding-top: 3px; }
  .contacts .container-footer {
    text-align: center; }
  .contacts .contact-link {
    text-decoration: none;
    color: #f92fd7;
    font-size: 16px; }
  .contacts .map {
    padding-top: 5px;
    padding-left: 20px;
    padding-right: 20px; }
  .contacts .address {
    padding-top: 10px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px; }
  .contacts .version {
    background-color: #01242e;
    color: white;
    text-align: center;
    height: 40px;
    font-size: 14px;
    padding: 10px; }
  .contacts .copy {
    margin: 0; }

@media (min-width: 580px) {
  .paragraph {
    font-size: 18px; }
  .contact-link {
    font-size: 18px; } }

@media (min-width: 800px) {
  .container-footer {
    display: flex;
    justify-content: space-between; }
  .map {
    padding-left: 30px;
    padding-bottom: 30px; }
  .address {
    text-align: left; } }

.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  /* in front of all other elements */
  z-index: 99;
  /* set background */
  background-color: #01242e;
  padding: 0 5%;
  height: 40px;
  /* define flex */
  display: flex;
  justify-content: space-between;
  align-items: center; }

.nav-menu {
  margin: 0;
  top: 100%;
  background-color: #01242e;
  padding-left: 20px;
  position: absolute;
  list-style-type: none;
  list-style-image: none;
  display: none;
  width: 100%; }

.menu-item {
  display: block;
  width: 100%;
  margin-left: 18px;
  padding: 10px 0;
  text-align: start; }

.menu-icon {
  display: block;
  position: absolute;
  top: 7.5px;
  left: 5%; }

.bar {
  width: 20px;
  height: 3px;
  background-color: #f92fd7;
  margin: 4px auto; }

.nav-active {
  display: block; }
  .nav-active + .menu-icon .bar {
    background-color: #fff; }
    .nav-active + .menu-icon .bar:nth-child(1) {
      position: relative;
      top: 6px;
      transform: rotate(45deg); }
    .nav-active + .menu-icon .bar:nth-child(2) {
      display: none; }
    .nav-active + .menu-icon .bar:nth-child(3) {
      position: relative;
      top: -1px;
      transform: rotate(-45deg); }

a {
  color: white;
  text-decoration: none;
  font-size: 20px; }

@media only screen and (max-width: 600px) {
  .navbar {
    flex-direction: column; }
  .nav-menu {
    padding: 5px 0; } }

@media (min-width: 600px) {
  .navbar {
    max-width: 1024px;
    height: 60px;
    margin: 0 auto;
    padding: 0; }
  .menu-item {
    display: inline-block;
    width: auto;
    margin-left: 20px; }
  .menu-icon {
    display: none; }
  .nav-menu {
    display: block;
    position: relative;
    top: 0;
    padding: 0 20px; } }
