.menu-countries {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  padding: 15px 0;
  max-width: 1320px;
  margin: 0 auto;
}

.menu-countries li a {
  color: #fff;
  padding: 5px 10px;
  margin: 4px;
  background-color: #3e3e3e;
  border: 1px solid #646464;
  text-decoration: none;
  line-height: 2.3;
  border-radius: 2px;
}

.menu-countries li a:hover {
  background-color: #222222;
  border: 1px solid #d31616;
}

.menu__container {
  background-color: #000;
  border-bottom: solid 5px #d31616;

  position: relative;
  z-index: 1000;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.breadcrumb {
  margin: 1em;
  text-align: center;
}

.view-content.flex {
  display: flex;
  flex-flow: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
}

.teaser {
  max-width: 190px;
  margin: 6px;
  text-align: center;
  border: solid 1px #d31616;
  border-radius: 5px;
  box-shadow: 0 0 5px #000;
}

.teaser:hover {
  transform: scale(1.1);
  transition: 0.8s;
  -webkit-filter: brightness(110%);
}

.teaser__title {
  background-color: #000;
  border-bottom: solid 5px #d31616;
  padding: 8px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teaser__title a {
  color: #fff;
}

.teaser img {
  display: block;
  border-radius: 5px 5px 0 0;
}

/* АДАПТИВНОСТЬ-----------------------------------------------------------------------------------------*/
/* -----------------------------------------------------------------------*/
@media (max-width: 900px) {
  .menu-countries li a {
    margin: 2px;
    line-height: 2.4;
    font-size: 0.9rem;
  }
}
/* -----------------------------------------------------------------------*/
@media (max-width: 850px) {
  .burger {
    display: flex;
    margin: 0 auto;
    margin-bottom: 15px;
  }

  .menu-countries {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  .menu-countries.active {
    max-height: 1000px;
    opacity: 1;
    pointer-events: auto;
    background: #000;
  }

  .menu-countries li a {
    display: block;
    text-align: center;
  }
}

/* -----------------------------------------------------------------------*/
@media (max-width: 500px) {
  .view-content.flex {
    gap: 5px;
  }

  .teaser {
    max-width: 45%;
  }

  main {
    padding: 0 10px;
  }
}

@media (max-width: 365px) {
  .teaser {
    max-width: 40%;
  }
}
