﻿@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#wrapper {
  position: relative;
  max-width: 600px;
  margin: 12px auto;
  border: 1px solid #231F20;
  overflow: hidden;
  text-align: left;
  font-size: 16px;
  line-height: 20px;
  color: #231f20;
  font-family: 'Open Sans', sans-serif;
  background-color: #fff;
}

article {
  padding: 30px 30px 8px;
}

article .icon {
  margin-bottom: 38px;
}

footer {
  padding: 10px 30px 16px;
}

footer div+p {
  text-align: center;
  margin-top: 16px;
}

.border {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  border-bottom: 1px solid #000;
  gap: 12px 16px;
  padding: 0 0 15px 0;
}

.kontakt {
  flex: 1 1 0;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 34px;
}

.border p {
  font-size: 14px;
  line-height: 1.4;
  /* flex: 1 1 0; */
  width: 200px;
}

p {
  margin: 0 0 0;
  padding: 0;
}

h1 {
  margin: 16px 0 16px 0;
  padding: 0;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 400;
}

h2 {
  margin: 0 0 16px 0;
  font-size: 21px;
  line-height: 1.25;
}

h3 {
  margin: 6px 0;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  color: #003461;
}

h4 {
  margin: 6px 0;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  background: #fff url('background.jpg') no-repeat center;
  padding: 16px 48px 16px 30px;
}

h4 a {
  color: #fff;
}

.icon div {
  margin: 3px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

a {
  color: #231f20;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

@media all and (max-width:598px) {
  #wrapper {
    border: none;
    margin: 0;
  }

  article {
    padding: 16px;
  }

  article .icon {
    margin-bottom: 16px;
  }

  footer {
    padding: 10px 16px 16px;
  }

  .kontakt {
    gap: 16px;
  }

  h4 {
    background: #fff url('background.jpg') no-repeat center;
  }

  br {
    display: none;
  }

  footer br {
    display: inline;
  }
}

@media all and (max-width:480px) {
  h4 {
    padding: 9px 16px;
    background-image: none;
    background-color: #003461;
    border-radius: 8px;
  }

  .icon div>div {
    flex: 1 1 0;
  }

  .border {
    flex-direction: column;
    align-items: center;
  }
}

@media all and (max-width:348px) {
  .kontakt {
    align-items: center;
    flex-direction: column;
  }

  .kontakt p {
    text-align: center;
  }
}