/* КАРТИНКИ НАД ИСТОРИЕЙ */
.history-gallery {
  overflow: hidden;
  height: 235px;
}
@media (max-width: 567px) {
  .history-gallery {
    display: none;
  }
}
@media (min-width: 568px) and (max-width: 767px) {
  .history-gallery {
    display: none;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .history-gallery {
    height: calc(100vw / 768.0 * 924.0 * 5.0 / 16.0);
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .history-gallery {
    height: calc(100vw / 1024.0 * 668.0 * 3.0 / 12.0);
  }
}
.history-gallery-item {
  float: left;
  height: inherit;
  background-color: #ccc;
  width: 300px;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .history-gallery-item {
    width: calc(100vw * 6.0 / 12.0);
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .history-gallery-item {
    width: calc(100vw * 4.0 / 16.0);
  }
}
.history-gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.history-gallery-item img {
  width: inherit;
  border: 0;
  vertical-align: top;
}
@supports (object-fit: cover) {
  .history-gallery-item img {
    object-fit: cover;
    height: inherit;
  }
}
.history-gallery-item:nth-child(2n) {
  background-color: #eee;
}
/* ВЫБОР ГОДА ИСТОРИИ, ПОЛНАЯ ВЕРСИЯ */
.history-timeline-wrap {
  text-align: center;
  overflow: hidden;
}
@media (max-width: 567px) {
  .history-timeline-wrap {
    display: none;
  }
}
.history-timeline {
  text-align: center;
  line-height: 53px;
  margin: 0;
  padding: 0;
  background: -moz-linear-gradient(transparent 52px, #f2c83c 1px);
  background: -webkit-linear-gradient(transparent 52px, #f2c83c 1px);
  background: -o-linear-gradient(transparent 52px, #f2c83c 1px);
  background: -ms-linear-gradient(transparent 52px, #f2c83c 1px);
  background: linear-gradient(transparent 52px, #f2c83c 1px);
  background-size: 100% 53px;
}
.history-timelink {
  display: inline-block;
  vertical-align: top;
  color: #5f5b59;
  text-decoration: none;
  font-size: 16px;
  padding: 0 6px;
  position: relative;
}
.history-timelink:hover {
  text-decoration: underline;
}
.history-timelink.active-nojs:after {
  content: "";
  display: block;
  position: absolute;
  height: 21px;
  bottom: -10px;
  left: 0;
  right: 0;
  background-image: url('../i/history-active.png');
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
}
.history-currenticon {
  width: 22px;
  height: 21px;
  position: relative;
  left: 0;
  top: 0;
  pointer-events: none;
}
.history-currenticon.animate {
  transition-property: left, top;
  transition-duration: 250ms;
}
.history-currenticon-nojs {
  visibility: hidden;
}
/* ВЫБОР ГОДА ИСТОРИИ, МОБИЛЬНАЯ ВЕРСИЯ */
.history-timeline-select-wrap {
  font-size: 16px;
  position: relative;
  display: none;
}
@media (max-width: 567px) {
  .history-timeline-select-wrap {
    display: block;
  }
}
.history-timeline-select-wrap:after {
  position: absolute;
  right: 0;
  top: 0;
  width: calc(100vw * 1.0 / 6.0);
  height: calc(100vw / 320.0 * 460.0 * 1.0 / 8.0);
  line-height: calc(100vw / 320.0 * 460.0 * 1.0 / 8.0);
  text-align: center;
  font-family: FontAwesome;
  content: '\f107';
  font-size: 24px;
}
.history-timeline-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  width: 100%;
  height: calc(100vw / 320.0 * 460.0 * 1.0 / 8.0);
  line-height: calc(100vw / 320.0 * 460.0 * 1.0 / 8.0);
  box-sizing: border-box;
  background-color: #b1b1b1;
  margin: 0;
  padding: 0 20px;
  /* Safari workaround */
  border: 0;
  border-radius: 0;
  text-align: center;
  text-align-last: center;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-style: inherit;
  color: inherit;
}
/* ТЕКСТ ИСТОРИИ */
.history-text {
  hyphens: auto;
  white-space: pre-wrap;
  width: 720px;
  margin: 20px auto 40px;
  padding: 0 32px;
}
@media (max-width: 567px) {
  .history-text {
    width: calc(100vw * 4.0 / 6.0);
    margin: calc(100vw / 320.0 * 460.0 * 1.0 / 8.0 * 0.5) auto calc(100vw / 320.0 * 460.0 * 1.0 / 8.0);
  }
}
@media (min-width: 568px) and (max-width: 767px) {
  .history-text {
    width: calc(100vw * 10.0 / 12.0);
    margin: 0 auto calc(100vw / 568.0 * 320.0 * 1.0 / 8.0);
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .history-text {
    width: calc(100vw * 10.0 / 12.0);
    margin: 0 auto calc(100vw / 768.0 * 924.0 * 1.0 / 16.0);
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .history-text {
    width: calc(100vw * 10.0 / 16.0);
    margin: 0 auto calc(100vw / 1024.0 * 668.0 * 1.0 / 12.0);
  }
}
/* ПАНЕЛЬКА ДОВЕРИЯ ВНИЗУ */
.history-bottompanel-wrap {
  background-color: #d3d3d3;
  margin-top: 64px;
}
@media (max-width: 567px) {
  .history-bottompanel-wrap {
    display: none;
  }
}
@media (min-width: 568px) and (max-width: 767px) {
  .history-bottompanel-wrap {
    display: none;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .history-bottompanel-wrap {
    margin-top: 0;
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .history-bottompanel-wrap {
    margin-top: 0;
  }
}
.history-bottompanel {
  overflow: hidden;
  height: 88px;
  line-height: 88px;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .history-bottompanel {
    height: calc(100vw / 768.0 * 924.0 * 1.0 / 16.0);
    line-height: calc(100vw / 768.0 * 924.0 * 1.0 / 16.0);
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .history-bottompanel {
    height: calc(100vw / 1024.0 * 668.0 * 1.0 / 12.0);
    line-height: calc(100vw / 1024.0 * 668.0 * 1.0 / 12.0);
  }
}
.history-bottompanel-text {
  float: left;
  height: inherit;
  box-sizing: border-box;
  text-align: left;
  line-height: 1.5;
  margin-left: 25%;
  width: 25%;
  padding: 0 24px;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .history-bottompanel-text {
    margin-left: calc(100vw * 2.0 / 12.0);
    width: calc(100vw * 5.0 / 12.0);
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .history-bottompanel-text {
    margin-left: calc(100vw * 3.0 / 16.0);
    width: calc(100vw * 5.0 / 16.0);
    padding: 0;
  }
}
.history-bottompanel-btn {
  float: right;
  height: inherit;
  line-height: inherit;
  cursor: pointer;
  text-align: center;
  color: inherit;
  text-decoration: none;
  background-color: #f3c94a;
  font-size: 16px;
  margin-right: 25%;
  width: 16%;
  width: calc(25% * 2 / 3);
}
@media (min-width: 768px) and (max-width: 1023px) {
  .history-bottompanel-btn {
    margin-right: calc(100vw * 1.0 / 12.0);
    width: calc(100vw * 3.0 / 12.0);
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .history-bottompanel-btn {
    margin-right: calc(100vw * 3.0 / 16.0);
    width: calc(100vw * 3.0 / 16.0);
    padding: 0;
  }
}
