@font-face {
  font-family: "Graphik";
  src: url("../fonts/GraphikLCG-Regular.woff") format("woff"), url("../fonts/GraphikLCG-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Graphik";
  src: url("../fonts/GraphikLCG-Medium.woff") format("woff"), url("../fonts/GraphikLCG-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Graphik";
  src: url("../fonts/GraphikLCG-Bold.woff") format("woff"), url("../fonts/GraphikLCG-Bold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: "Druk";
  src: url("../fonts/DrukCyr-Medium.woff") format("woff"), url("../fonts/DrukCyr-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
}
html {
  max-width: 100%;
  position: relative;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  padding: 0;
  margin: 0;
  outline: none;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Graphik", sans-serif, arial;
  font-size: 16px;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: normal;
  background-color: #A40E0F;
  background-image: url("../img/bg.png");
  background-attachment: fixed;
  background-position: 50% 50%;
  background-size: cover;
}
@media (max-width: 767px) {
  body {
	background-image: url('../img/testHeader.png');
	background-position: 0% 0%;
	background-size: auto;
    background-repeat: no-repeat;
    /* background-position: 43% 50%; */
	/* background-size: inherit; */
  }
}

a {
  display: inline-block;
  outline: none;
  text-decoration: none;
  color: currentColor;
  cursor: pointer;
  -webkit-transition: 0.3s ease-in-out;
  -o-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}

p {
  margin: 0;
}

svg {
  display: block;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  fill: currentColor;
}

img {
  vertical-align: top;
  max-width: 100%;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

button {
  background-color: transparent;
  outline: none;
  border: none;
}
button:not([disabled]):hover, button:not([disabled]):focus, button:not([disabled]):active {
  -webkit-box-shadow: none;
          box-shadow: none;
  outline: none;
}

ul, ul li {
  list-style: none;
}

input, textarea {
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

.container {
  margin: 0 auto;
  width: 100%;
  max-width: 1114px;
  min-width: 320px;
  padding: 0 15px;
}
@media (max-width: 1280px) {
  .container {
    width: 1120px;
  }
}
@media (max-width: 1199px) {
  .container {
    width: 960px;
  }
}
@media (max-width: 991px) {
  .container {
    width: 720px;
  }
}
@media (max-width: 767px) {
  .container {
    width: 540px;
  }
}
@media (max-width: 575px) {
  .container {
    width: 100%;
  }
}

main {
  padding-top: 120px;
  padding-bottom: 64px;
}
@media (max-width: 1280px) {
  main {
    padding: 96px 0 48px;
  }
}
@media (max-width: 767px) {
  main {
    padding: 28px 0;
  }
}

.logo {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}
@media (max-width: 767px) {
  .logo {
    margin-bottom: 22px;
  }
  .logo img {
    max-width: 52px;
  }
}
.logo h1 {
  font-weight: 500;
  font-family: Druk;
  font-size: 56px;
  line-height: 0.9;
}
@media (max-width: 767px) {
  .logo h1 {
    font-size: 28px;
  }
}

.subtitle {
  line-height: 1.28;
  margin-bottom: 32px;
}
@media (max-width: 767px) {
  .subtitle {
    margin-bottom: 16px;
    font-size: 14px;
  }
  .subtitle br {
    display: none;
  }
}

.block {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 767px) {
  .block {
    gap: 8px;
  }
}
.block .item {
  -webkit-box-flex: 0;
      -ms-flex: 0 1 calc(25% - 12px);
          flex: 0 1 calc(25% - 12px);
  max-width: calc(25% - 12px);
  position: relative;
}
@media (max-width: 1280px) {
  .block .item {
    -webkit-box-flex: 0;
        -ms-flex: 0 1 calc(33.333333% - 10.666666px);
            flex: 0 1 calc(33.333333% - 10.666666px);
    max-width: calc(33.333333% - 10.666666px);
  }
}
@media (max-width: 991px) {
  .block .item {
    -webkit-box-flex: 0;
        -ms-flex: 0 1 calc(50% - 8px);
            flex: 0 1 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }
}
@media (max-width: 767px) {
  .block .item {
    -webkit-box-flex: 0;
        -ms-flex: 0 1 calc(50% - 4px);
            flex: 0 1 calc(50% - 4px);
    max-width: calc(50% - 4px);
  }
}
@media (max-width: 575px) {
  .block .item {
    -webkit-box-flex: 0;
        -ms-flex: 0 1 100%;
            flex: 0 1 100%;
    max-width: 100%;
  }
}
.block .item .close {
  position: relative;
  border: 2px solid #E31716;
  background: #C61213;
  -webkit-box-shadow: 0 6px 24px 0 rgba(53, 53, 53, 0.1);
          box-shadow: 0 6px 24px 0 rgba(53, 53, 53, 0.1);
  border-radius: 16px;
  padding: 16px;
  position: relative;
  height: 253px;
}
.block .item .close_number {
  position: absolute;
  left: 24px;
  top: 16px;
  font-size: 50px;
  font-family: Druk;
  font-weight: 500;
  line-height: 0.9;
}
.block .item .close_img {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}
.block .item .close_date {
  padding: 8px 24px;
  border-radius: 24px;
  background-color: #E14A4F;
  font-weight: bold;
  line-height: 1.28;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  position: absolute;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  bottom: 0;
}
.block .item .close_lock {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}

.card {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: none;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
}
.card.opened {
  display: block;
}
.card .front, .card .back {
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  position: absolute;
  -webkit-transition: 0.6s ease-in-out;
  -o-transition: 0.6s ease-in-out;
  transition: 0.6s ease-in-out;
  border-radius: 16px;
  border: 2px solid #FFF;
  -webkit-box-shadow: 0 6px 24px 0 rgba(53, 53, 53, 0.1);
          box-shadow: 0 6px 24px 0 rgba(53, 53, 53, 0.1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
}
.card .front {
  -webkit-transform: rotateY(0deg);
          transform: rotateY(0deg);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: 50% 50%;
}
@media(max-width: 575px) {
	.card .front {
		background-size: auto;
	}
}
.card .front_number {
  position: absolute;
  left: 24px;
  top: 16px;
  font-family: Druk;
  font-size: 50px;
  line-height: 0.9;
  font-weight: 500;
}
.card .front_text {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.28;
  padding: 0 10px;
  text-align: center;
}
.card .back {
  -webkit-transform: rotateY(180deg);
          transform: rotateY(180deg);
  padding: 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.card .back_text {
  line-height: 1.28;
}
.card .back a {
  margin-top: auto;
  border-radius: 24px;
  border: 1px solid #FFF;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.72;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  -webkit-transition: 0.3s ease-in-out;
  -o-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}
.card .back a:hover {
  background-color: #fff;
  color: #2F6031;
}

@media(min-width: 768px) {
	.card:hover .front {
	-webkit-transform: rotateY(-180deg);
			transform: rotateY(-180deg);
	}
	.card:hover .back {
	-webkit-transform: rotateY(0deg);
			transform: rotateY(0deg);
	}
}
@media(max-width: 767px) {
	.card.active .front {
		-webkit-transform: rotateY(-180deg);
				transform: rotateY(-180deg);
	}
	.card.active .back {
		-webkit-transform: rotateY(0deg);
				transform: rotateY(0deg);
	}
}

.item:nth-of-type(1) .front {
  background-image: url("../img/front_1.png");
}
.item:nth-of-type(1) .back {
  background-color: #2F6031;
}
.item:nth-of-type(2) .front {
  background-image: url("../img/front_2.png");
}
.item:nth-of-type(2) .back {
  background-color: #D0AD6B;
}
.item:nth-of-type(2) .back a:hover {
  color: #D0AD6B;
}
.item:nth-of-type(3) .front {
  color: #C61213;
  border-color: #D0AD6B;
  background-image: url("../img/front_3.png");
}
.item:nth-of-type(3) .back {
  background-color: #fff;
  border-color: #D0AD6B;
  color: #C61213;
}
.item:nth-of-type(3) .back a {
  border-color: #C61213;
}
.item:nth-of-type(3) .back a:hover {
  background-color: #C61213;
  color: #fff;
}
.item:nth-of-type(4) .front {
  background-image: url("../img/front_4.png");
  border-color: #D0AD6B;
}
.item:nth-of-type(4) .back {
  background-color: #DA2421;
  border-color: #D0AD6B;
}
.item:nth-of-type(4) .back a {
  color: #D0AD6B;
  border-color: #D0AD6B;
}
.item:nth-of-type(4) .back a:hover {
  color: #fff;
  background-color: #D0AD6B;
}
.item:nth-of-type(5) .front {
  background-image: url("../img/front_5.png");
}
.item:nth-of-type(5) .front_text {
  color: #C61213;
}
.item:nth-of-type(5) .back {
  background-color: #D0AD6B;
  color: #C61213;
}
.item:nth-of-type(5) .back a {
  color: #fff;
}
.item:nth-of-type(5) .back a:hover {
  color: #C61213;
}
.item:nth-of-type(6) .front {
  background-image: url("../img/front_6.png");
  border-color: #D0AD6B;
}
.item:nth-of-type(6) .back {
  background-color: #DA2421;
  border-color: #D0AD6B;
}
.item:nth-of-type(6) .back a:hover {
  color: #DA2421;
}
.item:nth-of-type(7) .front {
  background-image: url("../img/front_7.png");
}
.item:nth-of-type(7) .back {
  background-color: #2F6031;
}
.item:nth-of-type(8) .front {
  background-image: url("../img/front_8.png");
  color: #2F6031;
  border-color: #C61213;
}
.item:nth-of-type(8) .front_text {
  color: #C61213;
}
.item:nth-of-type(8) .back {
  border-color: #C61213;
  background-color: #fff;
  color: #C61213;
}
.item:nth-of-type(8) .back a {
  border-color: #C61213;
}
.item:nth-of-type(8) .back a:hover {
  background-color: #C61213;
  color: #fff;
}
.item:nth-of-type(9) .front {
  background-image: url("../img/front_9.png");
}
.item:nth-of-type(9) .back {
  background-color: #2F6031;
}
.item:nth-of-type(10) .front {
  background-image: url("../img/front_10.png");
  color: #D0AD6B;
  border-color: #D0AD6B;
}
.item:nth-of-type(10) .back {
  background-color: #fff;
  color: #D0AD6B;
  border-color: #D0AD6B;
}
.item:nth-of-type(10) .back a {
  border-color: #D0AD6B;
}
.item:nth-of-type(10) .back a:hover {
  background-color: #D0AD6B;
  color: #fff;
}
.item:nth-of-type(11) .front {
  background-image: url("../img/front_11.png");
}
.item:nth-of-type(11) .back {
  background-color: #D0AD6B;
}
.item:nth-of-type(11) .back a:hover {
  color: #D0AD6B;
}
.item:nth-of-type(12) .front {
  background-image: url("../img/front_12.png");
  border-color: #D0AD6B;
}
.item:nth-of-type(12) .back {
  border-color: #D0AD6B;
  background-color: #C61213;
}
.item:nth-of-type(12) .back a:hover {
  color: #C61213;
}