*, :before, :after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box
}

* {
  margin: 0;
  padding: 0;
  outline: 0;
  border: none;
  -webkit-text-size-adjust: 100%
}

a {
  cursor: pointer
}

a:hover {
  text-decoration: none
}

img {
  display: block;
  max-width: 100%
}

ul, ol {
  list-style: none
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 1;
  background: -webkit-gradient(linear, left top, left bottom, from(#fbfbfd), to(#f4f4f7));
  background: -o-linear-gradient(top, #fbfbfd, #f4f4f7);
  background: linear-gradient(to bottom, #fbfbfd, #f4f4f7)
}

.wrapper {
  overflow: hidden;
  min-height: 100vh;
}

.container {
  max-width: 320px;
  padding: 0 10px;
  margin: 0 auto;
}

body.fix {
  overflow: hidden
}

header {
  padding: 15px 0
}

.header__item {
  position: relative;
}

.header__logo {
  background: url(../img/logo.png) center no-repeat;
  width: 187px;
  height: 32px;
  display: block;
}

.nav__button {
  position: absolute;
  width: 14px;
  height: 12px;
  bottom: 100%;
  right: 0;
  margin: 0 20px 10px 0;
  z-index: 4;
  cursor: pointer;
}

.nav__button:before {
  content: '';
  width: 100%;
  height: 2px;
  background: #000;
  position: absolute;
  top: 50%;
  margin-top: -1px;
  -webkit-transition: -webkit-transform .3s;
  transition: -webkit-transform .3s;
  -o-transition: transform .3s;
  transition: transform .3s;
  transition: transform .3s, -webkit-transform .3s;
}

.nav__button:after {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  border-top: 2px solid #000;
  -webkit-box-shadow: inset 0 -3px 0 -1px #000;
  box-shadow: inset 0 -3px 0 -1px #000;
  -webkit-transition: height .3s, -webkit-transform .3s;
  transition: height .3s, -webkit-transform .3s;
  -o-transition: transform .3s, height .3s;
  transition: transform .3s, height .3s;
  transition: transform .3s, height .3s, -webkit-transform .3s;
}

.nav__button.active:before {
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.nav__button.active:after {
  -webkit-transform: translate(-50%, -1px) rotate(-45deg);
  -ms-transform: translate(-50%, -1px) rotate(-45deg);
  transform: translate(-50%, -1px) rotate(-45deg);
  height: 0;
}

.nav__wrap {
  position: relative;
}

nav {
  font-size: 32px;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  text-align: center;
  z-index: 3;
  background: rgba(255, 255, 255, .9);
  padding: 60px 0 0;
  -webkit-transform: translateX(100%);
  -ms-transform: translateX(100%);
  transform: translateX(100%);
  -webkit-transition: -webkit-transform .4s;
  transition: -webkit-transform .4s;
  -o-transition: transform .4s;
  transition: transform .4s;
  transition: transform .4s, -webkit-transform .4s;
}

nav.open {
  -webkit-transform: translateX(0);
  -ms-transform: translateX(0);
  transform: translateX(0);
}

.nav__item {
  color: #A9A9A9;
  text-shadow: 0 0 0 #000;
  letter-spacing: 1px;
  padding: 20px 0;
  cursor: pointer;
}

.nav__item:hover,
.nav__item.active {
  color: #000;
  text-shadow: 1px 0 0 #000, 0 0 0 #000;
}

.history__pop,
.main__login {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.9);
  z-index: 4;
  overflow-y: auto;
}

.history__pop {
  visibility: hidden;
  opacity: 0;
  z-index: 0;
}

.main__wrap {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: table;
  vertical-align: middle;
}

.main__inner {
  display: table-cell;
  vertical-align: middle;
}

form {
  background: #fff;
  width: 290px;
  margin: 0 auto;
  padding: 65px 15px 60px;
  position: relative;
  border: 1px solid #ECEDF2;
  -webkit-box-shadow: 0 40px 160px #ECEDF2;
  -moz-box-shadow: 0 40px 160px #ECEDF2;
  box-shadow: 0 40px 160px #ECEDF2;
  border-radius: 16px;
}

.form__case {
  position: relative;
  width: 290px;
  margin: 0 auto
}

.form__close {
  position: absolute;
  width: 8px;
  height: 8px;
  top: 0;
  right: 0;
  margin: 15px 15px 0 0;
  cursor: pointer;
  border-radius: 50%;
  -webkit-transition: all .2s;
  -o-transition: all .2s;
  transition: all .2s;
  z-index: 2
}

.form__close:hover {
  -webkit-transform: scale(1.2, 1.2);
  -ms-transform: scale(1.2, 1.2);
  transform: scale(1.2, 1.2);
  -webkit-box-shadow: inset 0 0 2px rgba(4, 4, 64, 0.5), 0 0 5px rgba(4, 4, 64, 0.5);
  box-shadow: inset 0 0 2px rgba(4, 4, 64, 0.5), 0 0 5px rgba(4, 4, 64, 0.5)
}

.form__title {
  font-size: 30px;
  line-height: 1.1;
  padding-bottom: 25px;
  text-align: center
}

.form__field {
  background: #ECEDF2;
  border-radius: 8px;
  margin-bottom: 15px
}

input, textarea, select, option {
  display: block;
  width: 100%;
  position: relative;
  z-index: 1;
  background: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color: #040440;
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  resize: none;
  font-family: 'Roboto', sans-serif;
}

textarea::-webkit-input-placeholder {
  font-family: 'Roboto', sans-serif;
  color: #040440;
}

textarea::-moz-placeholder {
  font-family: 'Roboto', sans-serif;
  color: #040440;
}

textarea:-ms-input-placeholder {
  font-family: 'Roboto', sans-serif;
  color: #040440;
}

textarea::-ms-input-placeholder {
  font-family: 'Roboto', sans-serif;
  color: #040440;
}

textarea::placeholder {
  font-family: 'Roboto', sans-serif;
  color: #040440;
}

input:focus {
  -webkit-box-shadow: inset 0 0 0 1px #7175D8;
  box-shadow: inset 0 0 0 1px #7175D8;
}

input::-webkit-input-placeholder {
  color: #040440
}

input::-moz-placeholder {
  color: #040440
}

input:-ms-input-placeholder {
  color: #040440
}

input::-ms-input-placeholder {
  color: #040440
}

input::placeholder {
  color: #040440
}

button {
  display: block;
  width: 100%;
  padding: 20px;
  background-color: #040440;
  border-radius: 8px;
  color: #fff;
  text-align: center;
  cursor: pointer;
  -webkit-transition: background-color .2s;
  -moz-transition: background-color .2s;
  -ms-transition: background-color .2s;
  -o-transition: background-color .2s;
  transition: background-color .2s;
}

button:hover {
  background-color: #10105E;
}

.form__restore {
  padding: 15px 0;
  text-align: right;
  cursor: pointer
}

.form__restore:hover {
  text-decoration: underline
}

.main__restore {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  padding: 100px 0;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
}

.form__close:before, .form__close:after {
  content: '';
  width: 100%;
  height: 1px;
  background: #A9A9A9;
  position: absolute;
  top: 50%;
  left: 50%
}

.form__close:before {
  -webkit-transform: translate(-50%, -50%) rotate(-45deg);
  -ms-transform: translate(-50%, -50%) rotate(-45deg);
  transform: translate(-50%, -50%) rotate(-45deg)
}

.form__close:after {
  -webkit-transform: translate(-50%, -50%) rotate(45deg);
  -ms-transform: translate(-50%, -50%) rotate(45deg);
  transform: translate(-50%, -50%) rotate(45deg)
}

.user {
  color: #A9A9A9;
  padding: 0 15px;
  max-width: 720px;
  margin: 0 auto
}

.user > div {
  display: none;
}

.user.show > div {
  display: table;
}

.user__info {
  padding-bottom: 5px;
}

.user__point {
  padding-bottom: 10px
}

.user__point {
  color: #2B2A29
}

.user__case {
  width: 100%;
  padding-top: 15px
}

.user__cell {
  padding-bottom: 15px
}

.user__item {
  border: 1px solid #ECEDF2;
  background: #fff;
  border-radius: 16px;
  -webkit-box-shadow: 0 40px 160px #ECEDF2;
  box-shadow: 0 40px 160px #ECEDF2
}

.user__row {
  padding: 15px;
  font-size: 0
}

.user__row + .user__row {
  border-top: 1px solid #ECEDF2
}

.user__title {
  font-size: 14px;
  display: inline-block;
  vertical-align: middle;
  width: 45%;
  line-height: 1.3;
  padding-right: 10px
}

.user__data {
  font-size: 14px;
  display: inline-block;
  vertical-align: middle;
  width: 55%;
  font-weight: bold;
  color: #2B2A29;
  text-align: right
}

footer {
  padding: 25px 15px 0;
}

.footer__wrap {
  padding: 15px 0;
  border-top: 1px solid #A9A9A9;
  color: #A9A9A9
}

.footer__text {
  line-height: 1.3
}

.footer__link a {
  display: inline-block;
  padding: 15px;
  text-decoration: none;
  color: #A9A9A9
}

.error {
  text-align: center;
  font-weight: 700;
  color: red;
  padding-bottom: 10px;
}

.error.mes {
  color: green;
}

.history {
  padding: 0 0 70px;
  display: none;
}

.history__case {
  text-align: right;
  padding: 40px 0 25px;
}

.history__search {
  position: absolute;
  top: 50%;
  width: 0;
  left: 0;
  margin-top: -18px;
  overflow: hidden;
}

.history__search--wrap {
  padding-right: 40px;
}

.history__search input {
  padding: 10px 15px;
  color: #2B2A29;
  background: #ECEDF2;
  border-radius: 5px;
  text-align: left;
  width: 100%;
}

.button_search {
  display: none;
  padding: 3px;
  width: 20px;
  height: 20px;
  position: absolute;
  top: 50%;
  right: 10px;
  color: #2B2A29;
  margin-top: -10px;
  background: none !important;
  border-radius: 0;
  z-index: 1;
}

.button_search:hover {
  color: #00b1ff;
}

.filter,
.filter:hover {
  color: #4fe800;
}

.init .button_search {
  display: block;
}

.button_search svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
  transform: scale(1);
  -webkit-transition: fill .2s, transform .2s;
  -moz-transition: fill .2s, transform .2s;
  -ms-transition: fill .2s, transform .2s;
  -o-transition: fill .2s, transform .2s;
  transition: fill .2s, transform .2s;
}

.button_search:hover svg {
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -o-transform: scale(1.1);
  transform: scale(1.1);
}

.history__request {
  color: #040440;
  border: 1px solid #040440;
  padding: 10px 15px;
  background: none;
  border-radius: 8px;
  width: 100%;
  font-weight: bold;
  font-size: 13px;
}

.history__request:hover {
  color: #fff;
}

.history__wrap {
  border: 1px solid #ECEDF2;
  -webkit-box-shadow: 0 40px 160px #ECEDF2;
  box-shadow: 0 40px 160px #ECEDF2;
  border-radius: 16px;
  background: rgba(255, 255, 255, .25);
  position: relative;
}

.history__text {
  text-align: center;
  padding: 20px;
  background: #f6f6f9;
}

.history__table {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.history__dates {
  position: absolute;
  background: #fff;
  padding: 5px;
  border-radius: 10px;
  border: 1px solid #ECEDF2;
  -webkit-box-shadow: 0 40px 160px #ECEDF2;
  box-shadow: 0 40px 160px #ECEDF2;
  width: 200px;
  top: 50px;
  left: 15px;
  overflow: hidden;
  z-index: 1;
  font-size: 0;
}

.history__dates--but {
  height: 40px;
  text-align: center;
  display: table;
  width: 100%;
  table-layout: fixed;
  padding-bottom: 5px;
}

.history__dates--cell {
  display: table-cell;
  vertical-align: middle;
}

.history__dates--but button {
  display: inline-block;
  padding: 5px 10px;
  background: #136A9F;
  border: 1px solid #136A9F;
  color: #fff;
  font-weight: 700;
  width: 75px;
}

.history__dates--but button:hover {
  background: #fff;
  color: #136A9F;
}

.history__table--row {
  display: table-row;
}

.history__cell {
  position: relative;
  display: table-cell;
  vertical-align: middle;
}

.history__table--cell {
  position: relative;
  display: table-cell;
  vertical-align: middle;
  padding: 10px;
  border: solid transparent;
  border-width: 1px 0;
  border-bottom-color: #ECEDF2;
}

.title > .history__table--cell {
  -webkit-box-shadow: 0 4px 8px rgba(236, 237, 242, 0.5), inset 0 -1px 0 #ECEDF2;
  -moz-box-shadow: 0 4px 8px rgba(236, 237, 242, 0.5), inset 0 -1px 0 #ECEDF2;
  box-shadow: 0 4px 8px rgba(236, 237, 242, 0.5), inset 0 -1px 0 #ECEDF2;
  padding: 20px 10px;
}

.history__table--row:nth-child(even) .history__table--cell {
  background: #f6f6f9;
}

.history__item_main {
  display: block;
  position: relative;
}

.history__item {
  padding: 0 10px;
  -webkit-box-shadow: inset 0 -1px 0 #ECEDF2;
  box-shadow: inset 0 -1px 0 #ECEDF2;
}

.history__item p {
  line-height: 1.4;
}

.history__item:last-child {
  -webkit-box-shadow: none;
  box-shadow: none;
}

.history__title {
  font-size: 16px;
  padding: 5px 0;
  display: inline-block;
  vertical-align: middle;
}

.history__sort {
  display: none;
  vertical-align: middle;
  width: 12px;
  height: 20px;
  position: relative;
  margin-left: 10px;
}

.init .history__sort {
  display: inline-block;
}

.history__sort span {
  position: absolute;
  width: 100%;
  height: 50%;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  cursor: pointer;
}

.history__sort span:before {
  content: '';
  border: 5px solid transparent;
  border-bottom-color: #000;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  margin: -5px 0;
}

.history__sort span:hover:before {
  border-bottom-color: #b10006;
}

.history__sort span:first-child {
  top: 0;
}

.history__sort span:last-child {
  -webkit-transform: scale(1, -1) translateX(-50%);
  -ms-transform: scale(1, -1) translateX(-50%);
  transform: scale(1, -1) translateX(-50%);
  bottom: 0;
}

span.on:before {
  border-bottom-color: #00b1ff;
}

.history__date {
  font-size: 14px;
  width: 45%;
}

.history__date,
.history__sum {
  padding-right: 40px !important;
}

[data-value="true"] {
  color: #A9A9A9;
}

.history__comment {
  display: none;
}

.history__line {
  display: none;
  width: 100%;
  padding: 25px 0 0;
  color: #2B2A29;
}

.history__line.init {
  display: table;
}

.history__line span {
  display: inline-block;
  vertical-align: middle;
}

.history__next,
.history__prev {
  width: 15px;
  height: 15px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

.history__next {
  margin-left: 10px;
}

.history__prev {
  margin-right: 10px;
}

.history__next:before,
.history__prev:before {
  content: '';
  width: 10px;
  height: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -5px 0 0 -2px;
  border: 1px solid transparent;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
  -webkit-box-shadow: -22px 60px 30px rgba(224, 79, 49, 0.3);
  box-shadow: -22px 60px 30px rgba(224, 79, 49, 0.3);
}

.history__next:before {
  border-top-color: #2B2A29;
  border-right-color: #2B2A29;
}

.history__prev:before {
  border-bottom-color: #2B2A29;
  border-left-color: #2B2A29;
  margin-left: -2px;
}

.history__next:hover,
.history__prev:hover {
  background-color: #ECEDF2;
}

select.history__current,
.history__current span {
  min-width: 25px;
  height: 24px;
  background: #ECEDF2;
  border-radius: 8px;
  color: #2B2A29;
  display: block;
  font-size: 14px;
  text-align: center;
  line-height: 24px;
  padding: 0;
}

select.history__current {
  cursor: pointer;
  width: 35px;
  line-height: 1;
  padding: 0 5px
}

select.history__current,
.history__current {
  display: inline-block;
  vertical-align: middle;
}

.history__subtext {
  text-align: right;
  color: #A9A9A9;
}

.history__notification {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, .9);
  z-index: 2;
  display: none;
}

.history__form input,
.history__form select,
.history__form textarea {
  text-align: left;
  font-size: 14px;
  position: relative;
  z-index: 5;
  color: #040440;
}

.select__wrap {
  position: relative;
}

.select__wrap:before {
  content: '';
  border: 5px solid transparent;
  border-top-color: #040440;
  position: absolute;
  top: 50%;
  right: 0;
  margin: -2px 15px 0 0;
}

.form__inner {
  font-size: 0;
}

.form__field_mod {
  display: inline-block;
  width: 66%;
}

.form__field_mod:last-child {
  margin-left: 4%;
  width: 30%;
}

.history__message {
  background: #fff;
  max-width: 540px;
  margin: 0 auto;
  padding: 65px 15px 60px;
  position: relative;
  border: 1px solid #ECEDF2;
  -webkit-box-shadow: 0 40px 160px #ECEDF2;
  box-shadow: 0 40px 160px #ECEDF2;
  border-radius: 16px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

@media (min-width: 768px) {
  .container {
    max-width: 1120px;
    padding: 0 15px
  }

  .form__case {
    width: 415px;
  }

  form {
    width: 415px;
    padding: 65px;
  }

  .header__wrap {
    display: table;
    width: 100%;
  }

  .header__item {
    display: table-cell;
    vertical-align: middle;
  }

  nav {
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
    position: static;
    padding: 0;
    background: none;
    text-align: right;
  }

  .nav__item {
    font-size: 14px;
    display: inline-block;
    text-align: left;
    padding: 15px;
  }

  .nav__button {
    display: none;
  }

  .history__request {
    max-width: 165px;
    display: inline-block;
    vertical-align: top;
  }

  .history__request {
    margin-left: 40px;
  }

  .history__date,
  .history__sum {
    width: 22%;
  }

  .history__info {
    width: 80%;
    overflow: visible;
  }

  .history__comment {
    display: table-cell;
    min-width: 430px;
    max-width: 570px;
  }
}

@media (min-width: 991px) {
  header {
    font-size: 0;
    padding: 30px 0
  }

  .header__item {
    display: inline-block;
    vertical-align: middle;
    width: 50%
  }

  .header__logo {
    margin: 0
  }

  .user {
    max-width: 100%;
    padding: 30px 0 60px;
    position: relative
  }

  .user:before {
    content: '';
    background: url('../img/user_bg.png') right top no-repeat;
    width: 224px;
    height: 385px;
    position: absolute;
    top: 0;
    right: 0
  }

  .user__case {
    padding: 40px 0 0 0;
    display: table;
    width: 100%;
    table-layout: fixed;
    position: relative;
    z-index: 1
  }

  .user__cell {
    display: table-cell;
    vertical-align: top;
    padding-right: 50px
  }

  footer {
    padding: 0 15px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f5f5f8;
    z-index: 1;
  }

  .history__form {
    max-width: 780px;
  }

  .history__notification .case {
    max-width: 540px;
  }

  .history__date,
  .history__sum {
    width: 20%;
  }

}

@media (min-width: 1120px) {
  .user__case {
    padding-right: 60px
  }
}

.icon-sprite {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 10px;
  left: 10px;
  width: 0;
  height: 0;
}