html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

:focus {
  outline: 0;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

.wrapper {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.wrapper .content {
  flex-grow: 1;
}
.wrapper .box, .wrapper > header, .wrapper > footer, .wrapper > section {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal > div {
  background-color: #FFF;
  padding: 20px;
  width: 90%;
  max-width: 480px;
  max-height: 90%;
  overflow-y: auto;
  position: relative;
}
.modal__cross {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 28px;
  line-height: 28px;
  width: 32px;
  height: 32px;
  text-align: center;
  padding: 4px;
  opacity: 0.5;
  cursor: pointer;
  transition: all 500ms ease;
}
.modal__cross:hover {
  opacity: 1;
}
.modal__content {
  text-align: center;
}
.modal__title {
  font-size: 20px;
  margin-bottom: 20px;
}
.modal form input, .modal form textarea {
  width: 100%;
  border: 1px solid lightgray;
  padding: 8px;
  box-sizing: border-box;
  margin-top: 8px;
}
.modal .btn {
  margin-top: 20px;
}

@media (max-width: 480px) {
  .box,
  .wrapper > header,
  .wrapper > footer,
  .wrapper > section {
    padding-left: 10px;
    padding-right: 10px;
  }
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

.hidden {
  display: none !important;
}

.top_link > a {
  color: black;
}

.lang_links {
  margin-right: 20px;
}

.lang_links > a {
  font-size: 14px;
  padding: 6px 6px;
  border-radius: 4px;
}
.lang_links > a.active {
  background: #8da5e8;
  color: white;
}

@media (max-width: 1200px) {
  #mainNav {
    font-size: 14px;
  }
}