@charset "UTF-8";

/* Theme Name: e2
 * Version: 0.1
 * Author: Павел Рождественский
 */

html {
  height: 100%;
}

body,
#container {
  min-height: 100%;
}

html {
  font-size: 62.5%;
  line-height: 1;
  color: #333;
  box-sizing: border-box;
  overflow-y: scroll;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font-size: 1.4rem;
  line-height: 1.4;
  font-family: 'Open Sans', sans-serif;
  position: relative;
}

/*img {
  width: auto;
  max-width: 100%;
  height: auto;
}*/

b,
strong,
b *,
strong * {
  font-weight: bold;
}

i,
em,
i *,
em * {
  font-style: italic;
}

img {
  max-width: 100%;
  height: auto;
  line-height: 0;
  vertical-align: bottom; }

[role~="presentation"] {
  margin: 0;
  padding: 0;
  list-style-type: none;
  list-style-position: outside;
  list-style-image: none;
}

a {
  text-decoration: none;
  outline: none;
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0; }

@keyframes rotate {
  0% {
    transform: rotateY(0deg);
  }

  50% {
    transform: rotateY(180deg);
  }

  100% {
    transform: rotateY(0deg);
  }
}



















html {
  position: relative;
  background-color: #000;
}

html:after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  background-image: url('img/bg.jpg');
  background-position: center center;
  background-size: cover;
  will-change: transform;
  opacity: 0.6;
  z-index: -1;
}

/* Отключаем для мобильных */
@media all and (max-width: 768px) {
  html {
    background: #fff;
  }
  html:after {
    content: none;
  }
}

div#container {
  display: block;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff7e7;
}









div#bpk {
    position: absolute;
    top: 50vh;
    right: 0;
    transform: translateY(-50%);
}









div#logo {
  display: flex;
  /*justify-content: flex-end;*/
  align-items: center;
  position: relative;
  width: 800px;
  height: 100vh;
  margin: 0 auto;
  overflow: hidden;
}

div#logo:before {
  content: url(img/logo.png);
  opacity: .8;
}

body:not(.home) div#logo {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  width: 800px;
  height: 20rem;
  margin: 0 auto;
  overflow: hidden;
}

body:not(.home) div#logo:before {
  content: url(img/logo-single.png);
  opacity: .8;
}

div#logo > a {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1;
}

div#logo span {
  position: absolute;
  top: 0;
  left: 100%;
  white-space: nowrap;
}









header {
  display: block;
  width: 100%;
  height: 45rem;
  position: relative;
  background-image: url(img/header.jpg);
  background-size: cover;
  background-position: top center;
  overflow: hidden;
  z-index: 0;
}

header > div.inner {
  padding: 3.2rem;
  display: block;
  width: 100%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

@media all and (max-width: 640px) {
  header > div.inner{
    top: 0;
    transform: none;
  }
}

header h2,
header p.excerpt {
  margin: 0;
  padding: 0;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,.2);
}

header img.banner {
  max-width: 220px;
  margin: 0 auto;
  display: block;
  border: .1rem solid #fff;
  margin-bottom: 1.6rem;
}

header h2 {
  padding-bottom: 1.6rem;
  font-weight: 300;
  font-size: 2.8rem;
  line-height: 1;
  border-bottom: 0.1rem solid #fff;
}

header p.excerpt {
  margin-top: 1.4rem;
  font-size: 1.3rem;
}

header:before {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  /*background-image: linear-gradient(-10deg,#67221a 0%,#af9367 100%);*/
  /*background-image: linear-gradient(-10deg,#08351a 0%,#f3e1c6 100%);*/
  background-image: linear-gradient(-10deg,rgba(103, 34, 26, 0.75) 0%,rgba(175, 147, 103, 0.75) 100%);
  opacity: 0.6;
  z-index: -1;
}

header > a {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1;
}



















div#wrapper {
  display: block;
  width: 100%;
  position: relative;
  background-color: transparent;
  overflow: hidden;
}









h2.section {
  position: relative;
  margin: 0 0 3.2rem 0;
  font-weight: 300;
  font-size: 2.6rem;
  text-align: center;
}

/* h2.section:nth-child(n+2) { margin-top: calc(3.2rem * 2); } */
h2.section { margin-top: calc(3.2rem * 2); }

h2.section a {
  position: absolute;
  top: 0.6rem;
  right: 3.2rem;
  padding: .4rem 2.6rem .4rem 0.6rem;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  color: #d2b48c;
  background-color: rgba(210, 180, 140, 0.15);
  transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
  text-transform: lowercase;
}

h2.section a:hover { color: #8b0000; }

h2.section a:before {
  content: "";
  border: 7px solid transparent;
  border-bottom: 7px solid #d2b48c;
  position: absolute;
  top: 0.2rem;
  right: 0.6rem;
  transition: border-color 0.2s ease-in-out;
}

h2.section a:hover:before { border-bottom-color: #8b0000; }

h3.section {
  margin-top: calc(3.2rem);
  position: relative;
  margin: 0 0 3.2rem 0;
  font-weight: 100;
  font-size: 2rem;
  text-align: center;
}




















/*
div.menu {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 3.2rem;
  background-color: #fff;
}

div.menu > a {
  flex: 1;
  padding-top: 1rem;
  padding-bottom: 1rem;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  color: #d2b48c;
  border: 0.1rem solid;
  transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

div.menu > a:hover { color: #8b0000; }

div.menu > a:nth-child(n+2) { margin-left: 1rem; }
*/

div.menu {
  padding: 1px 0;
  display: flex;
  flex-direction: column;
  position: absolute;
  right: 0;
  z-index: 2;
}

div.menu > a {
  flex: 1;
  padding: 1rem 2rem;
  text-transform: uppercase;
  font-weight: 300;
  font-size: 1.6rem;
  text-align: center;
  color: #d2b48c;
  border: 0.1rem solid;
  transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

div.menu > a:hover { color: #8b0000; }

div.menu > a:nth-child(n+2) { margin-top: 1.4rem; }

/*@media all and ( min-width: 1160px ) {
    div.menu > a.width-dependent {
        display: none;
    }
}*/

@media all and ( max-width: 1160px ) {
    div#bpk {
        display: none;
    }
}


/*
Социальные сети */

div.menu > div.social {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

div.menu > div.social > a {
  width: calc((100% / 3) - (1.4rem * 2 / 3));
  position: relative;
  border-width: .1rem;
  border-style: solid;
  border-color: #d2b48c;
  transition: border-color 0.2s ease-in-out;
  overflow: hidden;
}

div.menu > div.social > a:hover {
  border-color: #8b0000;
}

div.menu > div.social > a:before {
  content: "";
  display: block;
  padding-top: 100%;
}

div.menu > div.social > a img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: .8;
  transition: transform 0.2s ease-in-out;
  width: 3.2rem;
  max-width: 100%;
  height: auto;
}

div.menu > div.social > a:hover img {
  transform: translate(-50%, -50%) scale(1.2);
}









/*div.exposure {
  display: flex;
  flex-direction: column;
  margin: 3.2rem;
  border: .2rem solid #eee;
}

div.exposure > div.item {
  padding: 3.2rem;
  position: relative;
}

div.exposure > div.item:nth-child(even) {
  background-color: #eee;
}

div.exposure > div.item h3 {
  font-weight: 400;
  font-size: 1.4rem;
  color: #67221a;
}

div.exposure > div.item > a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1;
}*/

div.exposure {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 3.2rem;
}


/* 3d экскурсии (в секции "Экспозиции") */
div#virtual {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 3.2rem 3.2rem 6.4rem;
}

div#virtual > div.item {
  flex: 1;
  font-weight: bold;
  font-size: 1.1rem;
  color: #8b0000;
  /*border: 0.1rem solid #8b0000;*/
  padding: 1rem;
  position: relative;
  background-color: #fff;
}

div#virtual > div.item:not(:last-child) {
  margin-right: 1rem;
}

div#virtual > div.item:nth-child(1) { background-image: url(img/virtual_thumbs/1zal_320x240.jpg); }
div#virtual > div.item:nth-child(2) { background-image: url(img/virtual_thumbs/2zal_320x240.jpg); }
div#virtual > div.item:nth-child(3) { background-image: url(img/virtual_thumbs/3zal_320x240.jpg); }
div#virtual > div.item:nth-child(4) { background-image: url(img/virtual_thumbs/patr_v_kuzb_320x240.jpg); }

div#virtual > div.item {
  background-position: center;
  background-size: cover;
}

/* Карточки актуальных 3D-экскурсий:
   Назначение миниатюр и их индивидуальное позиционирование
   (при необходимости). */

div#virtual.virtual-actual > div.item:nth-child(1) { background-image: url(img/virtual-thumbs/intro-7d6b08d2.jpg); }
div#virtual.virtual-actual > div.item:nth-child(2) { background-image: url(img/virtual-thumbs/hall-1-0b47ba9c.jpg); }
div#virtual.virtual-actual > div.item:nth-child(3) { background-image: url(img/virtual-thumbs/hall-2-00901d7b.jpg); }
div#virtual.virtual-actual > div.item:nth-child(4) { background-image: url(img/virtual-thumbs/hall-3-e8f714f2.jpg); }
div#virtual.virtual-actual > div.item:nth-child(5) { background-image: url(img/virtual-thumbs/hall-4-69d11c2e.jpg); }

div#virtual.virtual-actual > div.item {}


/*div#virtual > div.item > span:nth-child(1) {
  display: inline-block;
  color: #d2b48c;
  text-transform: uppercase;
  animation-name: rotate;
  animation-duration: 4s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}*/

div#virtual > div.item > span:nth-child(1) {
  position: absolute;
  top: 1.8rem;
  padding: 0.5rem;
  left: 0;
  display: inline-block;
  text-align: center;
  line-height: 1;
  /*letter-spacing: 0.2rem;*/
  background-color: rgb(255, 255, 255);
  border-top-right-radius: .2rem;
  border-bottom-right-radius: 1.2rem;
  z-index: 3;
}

div#virtual > div.item > span:nth-child(2) {
  /*position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);*/
  position: absolute;
  right: 2rem;
  bottom: 0.5rem;
}

div#virtual > div.item > span:nth-child(2) > span {
  display: inline-block; /* ! Без этого свойства не работает анимация! */
  text-transform: uppercase;
  font-size: 4rem;
  /*color: rgba(139, 0, 0, 0.5);*/
  color: rgb(255, 255, 255);
  animation-name: rotate;
  animation-duration: 15s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/*div#virtual > div.item:before {
  content: "3D";
  opacity: .1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  font-size: 16rem;
  color: rgb(0, 0, 255);
}*/

div#virtual > div.item:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(160, 104, 104, 0.3);
  z-index: 2;
}

div#virtual > div.item:after {
  content: "";
  display: block;
  padding-top: 56.25%;
}

div#virtual > div.item > a {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 4;
}




/*
// Династии (в секции "Экспозиции")
*/

div#dynasties {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 3.2rem 3.2rem 6.4rem;
}

div#dynasties > div.item {
  flex: 0 1 auto;
  flex-direction: column;
  font-weight: bold;
  font-size: 1.1rem;
  color: #8b0000;
  padding: 1rem;
  position: relative;
  background-color: #fff;
}

div#dynasties > div.item:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(160, 104, 104, 0.3);
  z-index: 2;
}

div#dynasties > div.item:after {
  content: "";
  display: block;
  padding-top: 56.25%;
}

div#dynasties > div.item > span.title {
  position: absolute;
  top: 1.8rem;
  padding: 0.5rem;
  left: 0;
  display: inline-block;
  //text-align: center;
  line-height: 1.4;
  background-color: rgb(255, 255, 255);
  border-top-right-radius: .2rem;
  border-bottom-right-radius: 1.2rem;
  z-index: 3;
}

div#dynasties > div.item:nth-child(1) {
  width: calc((100% / 3) - (1rem * 2 / 3));
  background-image: url(dynasties/budko/bg_small.jpg);
}

div#dynasties > div.item:nth-child(2) {
  width: calc((100% / 3) - (1rem * 2 / 3));
  background-image: url(dynasties/smirnovy/bg_small.jpg);
}

div#dynasties > div.item:nth-child(3) {
  width: calc((100% / 3) - (1rem * 2 / 3));
  background-image: url(dynasties/vylegzhaniny-demchenko/bg_small.jpg);
}

div#dynasties > div.item:nth-child(4) {
  width: calc((100% / 4) - (1rem * 3 / 4));
  background-image: url(dynasties/bekarevichi-kurlyuty-1/bg_small.jpg);
}

div#dynasties > div.item:nth-child(5) {
  width: calc((100% / 4) - (1rem * 3 / 4));
  background-image: url(dynasties/bekarevichi-kurlyuty-2/bg_small.jpg);
}

div#dynasties > div.item:nth-child(6) {
  width: calc((100% / 4) - (1rem * 3 / 4));
  background-image: url(dynasties/gutovichi-1/bg_small.jpg);
}

div#dynasties > div.item:nth-child(7) {
  width: calc((100% / 4) - (1rem * 3 / 4));
  background-image: url(dynasties/gutovichi-2/bg_small.jpg);
}

div#dynasties > div.item:nth-child(3) ~ div.item {
  margin-top: 1rem;
}

div#dynasties > div.item {
  background-size: cover;
}

/*
div#dynasties > div.item:not(:last-child) {
  margin-right: 1rem;
}
*/

div#dynasties > div.item > a {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 4;
}




/* Карточка */
div.exposure > div.item {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  width: calc((100% / 3) - (1rem * 2 / 3));
  padding: 0;
  background-color: #fff;
}


/*div.exposure > div.item:nth-last-child(1),
div.exposure > div.item:nth-last-child(2) {
  width: calc((100% / 2) - (1rem * 1 / 2));
}*/


div.exposure > div.item:nth-child(n+4) {
  margin-top: 3.2rem;
}

/* Блок с фотографией и заголовком */
div.exposure > div.item > div.header {
  flex: auto;
  position: relative;
}

/* Фотография */
div.exposure > div.item > div.header div.picture {
  background-size: cover;
  background-position: center center;
}

/* Пропорции для блока с фотографией */
div.exposure > div.item > div.header div.picture:before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

/* Заголовок */
div.exposure > div.item > div.header h3 {
  padding: 1rem;
  font-weight: bold;
  font-size: 1.2rem;
  color: #8b0000;
  position: relative;
}

/* Треугольник */
div.exposure > div.item > div.header h3:before {
  content: "";
  width: 0;
  height: 0;
  border-left: 1rem solid #0000;
  border-right: 1rem solid #0000;
  border-bottom: 1rem solid #fff;
  position: absolute;
  bottom: 100%;
  left: 1rem;
}

/* Ссылка для блока «div.header» */
div.exposure > div.item > div.header > a {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1;
}

/* Горизонтальный разделитель */
div.exposure > div.item > div.spacer {
  flex: none;
  display: block;
  margin: 0 1rem;
  max-width: 100%;
  height: 0;
  border-bottom: .1rem solid #eee;
}

/* Блок с 3D и кнопкой «Подробнее» */
div.exposure > div.item > div.footer {
  flex: none;
  display: flex;
  flex-direction: row;
}

/* Блок 3D */
div.exposure > div.item > div.footer > div.virtual {
  flex: 1 0 calc(50% - 0.05rem);
  padding: 1rem;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.2rem;
  color: #d2b48c;
  position: relative;
}

/* Анимируемый элемент с текстом (span) в блоке 3D */
div.exposure > div.item > div.footer > div.virtual > span {
  display: inline-block;
  animation-name: rotate;
  animation-duration: 4s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;

  transition: 0.2s ease all;
}

/* Трансформации при наведении на блок 3D */
div.exposure > div.item > div.footer > div.virtual:hover > span {
  color: #8b0000;
}

/* Ссылка для блока 3D */
div.exposure > div.item > div.footer > div.virtual > a {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1;
}

/* Разделитель между блоками 3D и «Подробнее» */
div.exposure > div.item > div.footer > span.spacer {
  flex: none;
  margin: 1rem 0;
  border-right: .1rem solid #eee;
}

/* Трансформации при наведении на блок «div.header» для блока «Подробнее» */
div.exposure > div.item > div.header:hover + div.spacer + div.footer > div.more > span {
  color: #8b0000;
}

/* Блок «Подробнее» */
div.exposure > div.item > div.footer > div.more {
  flex: 1 0 calc(50% - 0.05rem);
  padding: 1rem;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
  text-align: center;
  color: #d2b48c;
  position: relative;
}

/* Элемент с текстом (span) в блоке «Подробнее» */
div.exposure > div.item > div.footer > div.more > span {
  transition: 0.2s ease all;
}

/* Трансформации при наведении на блок «Подробнее» */
div.exposure > div.item > div.footer > div.more:hover > span {
  color: #8b0000;
}

/* Ссылка для блока «Подробнее» */
div.exposure > div.item > div.footer > div.more > a {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1;
}









div.staff {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 3.2rem;
}

div.staff > div.item {
  flex: 0 1 auto;
  width: calc((33.33%) - (1rem * 2 / 3));
  /*padding: 2rem 3rem 2rem 2rem;*/
  padding: 1rem;
  position: relative;
  background-color: #fff;
}

div.staff > div.item img {
  width: 100%;
  max-width: 24rem;
  height: auto;
  display: block;
  margin: 0 auto;
  /*border-top-left-radius: 50%;*/
  /*border-bottom-right-radius: 50%;*/
  /*border-bottom-left-radius: 50%;*/
  /*border-top-right-radius: 5%;*/
  border-radius: 2%;
}

div.staff > div.item h3 {
  font-weight: bold;
  font-style: italic;
  font-size: 1.2rem;
  text-align: center;
  margin-top: 1rem;
}

div.staff > div.item h3:first-line {
  color: #d2b48c;
  font-style: normal;
}

div.staff > div.item p.appointment {
  margin: 0;
  margin-top: .6rem;
  font-style: italic;
  /*font-weight: bold;*/
  font-size: 1.2rem;
  line-height: 1;
  text-align: center;
  color: #d2b48c;
  color: #8b0000;
  color: #333;
  white-space: nowrap;
  /*position: absolute;*/
  /*top: 0;*/
  /*left: 100%;*/
  /*transform: rotate(90deg) translateX(0%) translateY(calc(100% + 0.7rem));*/
  /*transform-origin: 0% 100%;*/
}

div.staff > div.item:nth-of-type(1) p.appointment { margin-top: 1.8rem; }
div.staff > div.item:nth-of-type(2) p.appointment { margin-top: 1.2rem; }
div.staff > div.item:nth-of-type(3) p.appointment { margin-top: 0.6rem; }
div.staff > div.item:nth-of-type(4) p.appointment { margin-top: 1.8rem; }

div.staff > div.item p.spacer {
  margin: 0;
  margin-top: 0.6rem;
  line-height: 1;
  text-align: center;
}

div.staff > div.item a {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  z-index: 1;
}









div.announcements {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 3.2rem;
}

div.announcements > div.card {
  flex: 0 1 auto;
  width: calc((100% / 2) - (1rem * 1 / 2));
  padding: 0;
  position: relative;
}

div.announcements > div.card:nth-child(n+4) {
  margin-top: 3.2rem;
}

div.announcements > div.card time {
  display: block;
  padding-bottom: 0.3rem;
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 0.12rem;
}

div.announcements > div.card div.picture {
  position: relative;
  background-size: cover;
  background-position: center center;
}

div.announcements > div.card div.picture:before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

div.announcements > div.card div.picture > div.matrix {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
}

/*div.announcements > div.card div.picture > div.matrix:before {
  content: "";
  width: 0;
  height: 0;
  border-top: 100px solid #82C6BE;
  border-left: 100px solid transparent;
  position: absolute;
  top: 0;
  right: 0;
}*/

div.announcements > div.card div.picture > div.matrix:after {
  content: "";
  width: 0;
  height: 0;
  border-bottom: 15px solid #ffffff;
  border-right: 15px solid transparent;
  position: absolute;
  bottom: 0;
  left: 0;
}

div.announcements > div.card h3 {
  padding-top: 1rem;
  display: block;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  color: #8b0000;
  transition: color 0.2s ease-in-out;
}

div.announcements > div.card:hover h3 {
  color: #d2b48c;
}

div.announcements > div.card a {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1;
}

div.announcements + a.all {
  display: block;
  width: calc((100% / 3) - (1rem * 3));
  margin: 0 auto;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: #8b0000;
  border: 0.1rem solid #8b0000;
}

div.announcements + a.all + a.archive {
  display: inline-block;
  float: right;
  margin: 0 1rem 0.6rem 0;
  font-weight: bold;
  font-size: 1.2rem;
  color: #d2b48c;
}









div.news {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 3.2rem;
}

div.news > div.card {
  flex: 0 1 auto;
  width: calc((100% / 3) - (1rem * 2 / 3));
  padding: 0;
  position: relative;
}

div.news > div.card:nth-child(n+4) {
  margin-top: 3.2rem;
}

div.news > div.card time {
  display: block;
  padding-bottom: 0.3rem;
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 0.12rem;
}

div.news > div.card div.picture {
  position: relative;
  background-size: cover;
  background-position: center center;
}

div.news > div.card div.picture:before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

div.news > div.card div.picture > div.matrix {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
}

/*div.news > div.card div.picture > div.matrix:before {
  content: "";
  width: 0;
  height: 0;
  border-top: 100px solid #82C6BE;
  border-left: 100px solid transparent;
  position: absolute;
  top: 0;
  right: 0;
}*/

div.news > div.card div.picture > div.matrix:after {
  content: "";
  width: 0;
  height: 0;
  border-bottom: 15px solid #ffffff;
  border-right: 15px solid transparent;
  position: absolute;
  bottom: 0;
  left: 0;
}

div.news > div.card h3 {
  padding-top: 1rem;
  display: block;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  color: #8b0000;
  transition: color 0.2s ease-in-out;
}

div.news > div.card:hover h3 {
  color: #d2b48c;
}

div.news > div.card a {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1;
}

div.news + a.all,
div.news + a.all + a.all,
div.exposure + a.all,
div.exposure + a.all + a.all {
  display: block;
  position: relative;
  width: calc((100% / 3) - (1rem * 3));
  margin: 0 auto;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: #8b0000;
  border: 0.1rem solid #8b0000;
}

div.news + a.all,
div.exposure + a.all {
  transform: translateX(calc(-50% - 0.5rem));
}

div.news + a.all + a.all,
div.exposure + a.all + a.all {
  transform: translateX(calc(50% + 0.5rem)) translateY(-100%);
  color: #d2b48c;
  background-color: rgba(210, 180, 140, 0.15);
  border-color: #d2b48c;
}

/*div.news + a.all + a.archive,
div.exposure + a.all + a.archive {
  display: inline-block;
  float: right;
  margin: 0 1rem 0.6rem 0;
  font-weight: bold;
  font-size: 1.2rem;
  color: #d2b48c;
}*/









div.video {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 3.2rem;
}

div.video > div.card {
  flex: 0 1 auto;
  width: calc((100% / 3) - (1rem * 2 / 3));
  padding: 0;
  position: relative;
}

div.video > div.card:nth-child(n+4) {
  margin-top: 3.2rem;
}

div.video > div.card time {
  display: block;
  padding-bottom: 0.3rem;
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 0.12rem;
}

div.video > div.card div.picture {
  position: relative;
  background-size: cover;
  background-position: center center;
}

div.video > div.card div.picture:before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

div.video > div.card div.picture > div.matrix {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
}

/*div.video > div.card div.picture > div.matrix:before {
  content: "";
  width: 0;
  height: 0;
  border-top: 100px solid #82C6BE;
  border-left: 100px solid transparent;
  position: absolute;
  top: 0;
  right: 0;
}*/

div.video > div.card div.picture > div.matrix:after {
  content: "";
  width: 0;
  height: 0;
  border-bottom: 15px solid #ffffff;
  border-right: 15px solid transparent;
  position: absolute;
  bottom: 0;
  left: 0;
}

div.video > div.card h3 {
  padding-top: 1rem;
  display: block;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  color: #8b0000;
  transition: color 0.2s ease-in-out;
}

div.video > div.card:hover h3 {
  color: #d2b48c;
}

div.video > div.card a {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1;
}

div.video + a.all {
  display: block;
  width: calc((100% / 3) - (1rem * 3));
  margin: 0 auto;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: #8b0000;
  border: 0.1rem solid #8b0000;
  margin-bottom: 3.2rem;
}



















div.sponsors {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 3.2rem;
}

/* Карточка */
div.sponsors > div.item {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  width: calc((100% / 3) - (1rem * 2 / 3));
  padding: 1rem;
  text-align: center;
  background-color: #fff;
}


div.sponsors > div.item:nth-last-child(1),
div.sponsors > div.item:nth-last-child(2) {
  width: calc((100% / 2) - (1rem * 1 / 2));
}


div.sponsors > div.item:nth-child(n+4) {
  margin-top: 1rem;
}



















div.navigation {
  display: block;
  width: 100%;
  margin-top: 3.2rem;
}

div.navigation > div.alignleft {
  display: block;
  width: 49%;
  float: left;
  padding: 10px;
  text-align: left;
}

div.navigation > div.alignright {
  display: block;
  width: 49%;
  float: right;
  text-align: right;
}

div.navigation a {
  color: #8b0000;
  display: block;
  padding: 10px 0;
}



















main {
  padding: 3.2rem;
}

main article {}

main h2 {
  margin-bottom: 3.2rem;
  font-weight: 300;
  font-size: 3.6rem;
  text-align: center;
}

article p img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

div.post__photo_gallery {
  display: block;
  overflow: hidden;
}

.back-button + h2.title {
  margin-top: 3rem;
}

.back-button {
  display: inline-block;
  color: #8b0000;
  font-size: 2.4rem;
  transition: color 0.2s ease-in-out;
}

.back-button:hover {
  color: #d2b48c;
}





























footer {
  display: block;
  width: 100%;
  position: relative;
  margin-bottom: 10rem;
  padding: 3.2rem;
  background-color: #000;
}

footer > p {
  margin: 2.3rem 0 0 0;
  color: #fff;
}



























div#dynasties div.item.soon {
  opacity: .5;
}

div#dynasties div.item.soon a {
  z-index: -100;
}

div#dynasties > div.item span.soon {
  position: absolute;
  z-index: 100;
  right: 0;
  bottom: 1.6rem;
  padding: 0.5rem;
  display: inline-block;
  text-align: center;
  line-height: 1;
  background-color: rgb(255, 255, 255);
  border-bottom-left-radius: .2rem;
  border-top-left-radius: 1.2rem;
}












