@font-face {
  font-family: "Open Sans";
  src: url("../public/fonts/OpenSansC.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0 !important;
  color: #000;
  font: 14px/20px "Open Sans", Arial, sans-serif;
  background: #fff;
  overflow-x: hidden;
}

a {
  color: #b30000;
}

a:hover {
  text-decoration: none;
}

button,
input,
textarea,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea {
  font-family: "Open Sans", Arial, sans-serif;
}

#wrapper {
  position: relative;
  min-height: 100%;
  background: url("../public/images/wrap_bg.png");
}

#header {
  position: relative;
  background: url("../public/images/head_bg.png") center top repeat-x;
  z-index: 2;
}

#footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../public/images/foot_bg1.png") center bottom repeat-x;
  z-index: 1;
}

#page {
  position: relative;
  padding: 20px 20px 80px;
  text-align: center;
  text-shadow: 0 1px 0 #fff;
  overflow: hidden;
}

.content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.content::after {
  display: table;
  clear: both;
  content: "";
}

#header .content {
  padding: 0 0 4px;
}

#header .logo {
  float: left;
  width: 146px;
  height: 90px;
}

#header .logo a {
  display: block;
  width: 156px;
  height: 94px;
  background: url("../public/images/logo.png");
}

#header .menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
  white-space: nowrap;
  font-size: 0;
}

#header .menu li {
  display: inline-block;
  text-align: center;
  vertical-align: middle;
}

#header .menu .item {
  display: block;
  width: 88px;
  height: 92px;
  color: #fff;
  font: 12px/16px "Open Sans", Arial, sans-serif;
  text-decoration: none;
  text-shadow: 0 1px 0 #000;
  vertical-align: top;
  cursor: pointer;
  white-space: normal;
}

#header .menu .item.sm {
  width: 77px;
}

#header .menu .item.sel,
#header .menu .item:hover {
  color: #efbf51;
}

#header .menu .item .icon {
  display: block;
  width: 52px;
  height: 45px;
  margin: 0 auto;
  background: url("../public/images/menu_icons15.png") no-repeat;
}

#header .menu .item .num { background-position: 0 0; }
#header .menu .item .win { background-position: -52px 0; }
#header .menu .item .winvk { background-position: -104px 0; }
#header .menu .item .winig { background-position: -156px 0; }
#header .menu .item .pass { background-position: -208px 0; }
#header .menu .item .ask { background-position: -260px 0; }
#header .menu .item .qu { background-position: -312px 0; }
#header .menu .item .tick { background-position: -364px 0; }
#header .menu .item .fact { background-position: -416px 0; }
#header .menu .item .doings { background-position: -468px 0; }
#header .menu .item .say { background-position: -520px 0; }
#header .menu .item .profile { background-position: -573px 0; }
#header .menu .item .wintg { background-position: -678px 0; }
#header .menu .item .wheel { background-position: -736px 0; }
#header .menu .item .compliment { background-position: -789px 0; }
#header .menu .item .well { background-position: -845px 0; }

#header .menu .item.sel .num,
#header .menu .item:hover .num { background-position: 0 -52px; }
#header .menu .item:hover .win { background-position: -52px -52px; }
#header .menu .item:hover .winvk { background-position: -104px -52px; }
#header .menu .item:hover .winig { background-position: -156px -52px; }
#header .menu .item:hover .pass { background-position: -208px -52px; }
#header .menu .item:hover .ask { background-position: -260px -52px; }
#header .menu .item:hover .qu { background-position: -312px -52px; }
#header .menu .item:hover .tick { background-position: -364px -52px; }
#header .menu .item:hover .fact { background-position: -416px -52px; }
#header .menu .item:hover .doings { background-position: -468px -52px; }
#header .menu .item:hover .say { background-position: -520px -52px; }
#header .menu .item:hover .profile { background-position: -573px -52px; }
#header .menu .item:hover .wintg { background-position: -678px -52px; }
#header .menu .item:hover .wheel { background-position: -736px -52px; }
#header .menu .item:hover .compliment { background-position: -789px -52px; }
#header .menu .item:hover .well { background-position: -845px -52px; }

.mobile-only,
.menu-init {
  display: none;
}

@media screen and (min-width: 728px) {
  #header .menu li.mobile-only {
    display: none;
  }

  #header {
    height: 70px;
    overflow: hidden;
  }

  #header .content {
    width: 1200px;
    max-width: 1200px;
    height: 90px;
    padding: 0;
    transform: scale(.78);
    transform-origin: top center;
  }

  #header .logo {
    width: 146px;
    height: 90px;
  }

  #header .logo a {
    width: 156px;
    height: 94px;
    background-size: auto;
    background-position: 0 0;
  }

  #header .menu {
    height: 90px;
    overflow: hidden;
  }

  #header .menu .item {
    width: 88px;
    height: 92px;
    font: 12px/16px "Open Sans", Arial, sans-serif;
  }

  #header .menu .item.sm {
    width: 77px;
  }

  #header .menu .item .icon {
    width: 52px;
    height: 45px;
    background-size: auto;
  }

  #header .menu .item .num { background-position: 0 0; }
  #header .menu .item .win { background-position: -52px 0; }
  #header .menu .item .pass { background-position: -208px 0; }
  #header .menu .item .ask { background-position: -260px 0; }
  #header .menu .item .qu { background-position: -312px 0; }
  #header .menu .item .tick { background-position: -364px 0; }
  #header .menu .item .fact { background-position: -416px 0; }
  #header .menu .item .doings { background-position: -468px 0; }
  #header .menu .item .say { background-position: -520px 0; }
  #header .menu .item .profile { background-position: -573px 0; }
  #header .menu .item .wheel { background-position: -736px 0; }
  #header .menu .item .compliment { background-position: -789px 0; }
  #header .menu .item .well { background-position: -845px 0; }

  #header .menu .item.sel .num,
  #header .menu .item:hover .num { background-position: 0 -52px; }
  #header .menu .item:hover .win { background-position: -52px -52px; }
  #header .menu .item:hover .pass { background-position: -208px -52px; }
  #header .menu .item:hover .ask { background-position: -260px -52px; }
  #header .menu .item:hover .qu { background-position: -312px -52px; }
  #header .menu .item:hover .tick { background-position: -364px -52px; }
  #header .menu .item:hover .fact { background-position: -416px -52px; }
  #header .menu .item:hover .doings { background-position: -468px -52px; }
  #header .menu .item:hover .say { background-position: -520px -52px; }
  #header .menu .item:hover .profile { background-position: -573px -52px; }
  #header .menu .item:hover .wheel { background-position: -736px -52px; }
  #header .menu .item:hover .compliment { background-position: -789px -52px; }
  #header .menu .item:hover .well { background-position: -845px -52px; }
}

.rtb-t,
.rtb-b {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 0;
}

.rtb-td,
.rtb-bd {
  max-width: 728px;
  max-height: 90px;
  min-height: 90px;
}

.rtb-t {
  min-height: 90px;
  margin-bottom: 25px;
}

.rtb-b {
  min-height: 90px;
  margin-top: 25px;
}

#caption {
  margin: 0 auto 20px;
  max-width: 800px;
  font: 30px/34px "Open Sans", Arial, sans-serif;
}

#number.single {
  position: relative;
  margin: -10px auto 0;
  padding-bottom: 40px;
  font: 96px/normal "Open Sans", Arial, sans-serif;
  overflow: hidden;
}

#number.single .new {
  display: inline-block;
}

#number.single .new span {
  position: relative;
  bottom: 230px;
  display: inline-block;
  transition: bottom 200ms cubic-bezier(.23, 1, .32, 1);
}

#number.single .new span.drop-in {
  bottom: 0;
}

#number.multi {
  max-width: 650px;
  margin: -5px auto 0;
  padding-bottom: 40px;
  font: 50px/1.35 "Open Sans", Arial, sans-serif;
  font-weight: 400;
}

#number.multi .cur span {
  display: inline-block;
  margin: 0 10px;
}

#number-save {
  position: relative;
  height: 20px;
  margin: -15px 0 20px;
}

#number-save a {
  position: relative;
  top: -15px;
}

#number-save span {
  position: relative;
  top: -5px;
  border-bottom: dashed 1px #b30000;
  color: #b30000;
  cursor: pointer;
}

#number-save span:hover {
  border-bottom: solid 1px transparent;
}

#button {
  position: relative;
  width: 280px;
  height: 80px;
  margin: 0 auto;
  background: url("../public/images/but_sm_bg.png") left top no-repeat;
  border: none;
  cursor: pointer;
  user-select: none;
}

#button:active,
#button.active {
  background-position: left bottom;
}

#description {
  position: relative;
  padding-top: 10px;
  line-height: 25px;
}

.ui-slider-horizontal {
  position: relative;
  width: 260px;
  height: 11px;
  margin: 8px auto 5px;
  background: url("../public/images/slider_bg.png") top left no-repeat;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}

.ui-slider-range {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  height: 11px;
  background: url("../public/images/slider_range.png") top left no-repeat;
  z-index: 1;
}

.ui-slider-handle {
  position: absolute;
  top: -6px;
  width: 22px;
  height: 24px;
  margin-left: -11px;
  background: url("../public/images/slider_hand.png") top left no-repeat;
  cursor: grab;
  z-index: 4;
  touch-action: none;
}

.ui-slider-horizontal:active .ui-slider-handle {
  cursor: grabbing;
}

.slider-input {
  position: absolute;
  left: 0;
  top: -7px;
  width: 260px;
  height: 25px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
  pointer-events: none;
}

#slider-val {
  display: block;
  margin: 5px auto 8px;
  height: 20px;
}

#number-from label {
  cursor: pointer;
}

#number-from label input {
  position: relative;
  top: 2px;
  margin-right: 5px;
}

#number-from label.sel span {
  border-bottom: 1px dashed #000;
}

#number-from ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#number-from ul li {
  display: none;
}

#number-from ul li.sel {
  display: block;
}

#number-start,
#number-end,
#number-list,
#number-exclude-list {
  width: 74px;
  height: 16px;
  margin: 9px 5px;
  padding: 4px 3px 5px;
  background: url("../public/images/input_bg.png");
  border: solid 1px #b6b6b6;
  border-radius: 4px;
  box-shadow: 0 1px 0 #fff, inset 0 1px 6px -2px rgba(0, 0, 0, .5);
  color: #000;
  font: 14px/16px "Open Sans", Arial, sans-serif;
  vertical-align: middle;
}

#number-list,
#number-exclude-list {
  width: 260px;
  height: 120px;
  padding: 4px 5px 5px;
  margin: 9px auto;
  resize: vertical;
  box-sizing: border-box;
}

#number-list::placeholder,
#number-exclude-list::placeholder {
  text-align: center;
}

#number-exclude {
  margin-top: -3px;
}

#number-exclude label {
  display: block;
}

#number-exclude input,
#number-unique input {
  position: relative;
  top: -1px;
  margin: 0 0 0 12px;
  vertical-align: middle;
}

#number-exclude-list {
  display: none;
}

#number-exclude-list.sel {
  display: block;
}

#number-unique {
  height: 25px;
}

#number-unique label {
  display: none;
}

#number-unique.visible label {
  display: inline;
}

#number-record {
  display: block;
  margin-top: 15px;
  margin-bottom: 25px;
}

#number-record span {
  border-bottom: dashed 1px #b30000;
  color: #b30000;
  cursor: pointer;
  margin-right: 5px;
  margin-left: 10px;
}

#number-record span:hover {
  border-bottom: solid 1px transparent;
}

#number-record .fa {
  display: inline-flex;
  width: 12px;
  height: 12px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font: bold 9px/12px Arial, sans-serif;
  font-style: normal;
}

#extra {
  padding: 20px 0 0;
  text-align: center;
  text-shadow: 0 1px 0 #fff;
}

#number-app a {
  padding-right: 24px;
  background: url("../public/images/vk_icon.png") right 2px no-repeat;
  color: #000;
}

#number-api span {
  border-bottom: dashed 1px #b30000;
  color: #b30000;
  cursor: pointer;
}

#footer {
  height: 54px;
}

#footer .share {
  position: relative;
  float: left;
  width: 180px;
  margin: 9px 0 0;
  color: #fff;
  font: 11px/14px Arial, sans-serif;
  text-align: left;
  text-shadow: 0 1px 0 #000;
}

#footer .share .title {
  margin-bottom: 2px;
}

#footer .share .yashare {
  display: inline-flex;
  height: 31px;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border: 0;
  border-radius: 2px;
  background: #fff;
  box-shadow: none;
  box-sizing: border-box;
}

.share-btn {
  position: relative;
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font: bold 9px/21px Arial, sans-serif;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 17px 17px;
  text-shadow: none;
}

.share-btn.vk { background-color: #48729e; }
.share-btn.ok { background-color: #eb722e; }
.share-btn.mm { background-color: #168de2; }
.share-btn.tg { background-color: #2ca5e0; }
.share-btn.wa { background-color: #65bc54; }

.share-btn.vk {
  background-image: url("../public/icons/vk.svg");
}

.share-btn.ok {
  background-image: url("../public/icons/ok.svg");
  background-size: 17px 17px;
}

.share-btn.mm {
  background-image: url("../public/icons/mailru.svg");
}

.share-btn.tg {
  background-image: url("../public/icons/telegram.svg");
  background-size: 17px 17px;
}

.share-btn.wa {
  background-image: url("../public/icons/whatsapp.svg");
}

#footer .contacts {
  position: relative;
  float: right;
  width: 180px;
  margin: 9px 0 0;
  color: #fff;
  font: 11px/14px Arial, sans-serif;
  text-align: right;
  text-shadow: 0 1px 0 #000;
}

#footer .contacts .title {
  margin-bottom: 2px;
}

#footer .contacts .widget {
  display: inline-block;
  height: 26px;
  overflow: hidden;
}

#footer .contacts .widget-fix {
  display: flex;
  height: 26px;
  align-items: center;
  gap: 7px;
  padding: 0 10px 0 7px;
  border: 1px solid rgba(0, 0, 0, .35);
  border-radius: 3px;
  background: #fff;
  color: #000;
  font: 11px/26px Arial, sans-serif;
  text-decoration: none;
  text-shadow: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}

#footer .contacts img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

@media screen and (max-width: 1200px) {
  #header .menu .item {
    width: 85px;
  }
}

@media screen and (min-width: 728px) and (max-width: 980px) {
  #header .content {
    overflow-x: auto;
  }

  #header .logo {
    float: none;
    display: inline-block;
    vertical-align: top;
  }

  #header .menu {
    display: inline-block;
    min-width: 1060px;
    vertical-align: top;
  }

  #footer .content {
    width: calc(100% - 28px);
  }
}

@media screen and (max-width: 727px) {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  body {
    background: #302d40;
    overflow-x: hidden;
  }

  #wrapper {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
    background: url("../public/images/wrap_bg.png");
    overflow-x: hidden;
  }

  #header {
    min-height: 90px;
    background: url("../public/images/head_bg.png") center top repeat-x;
  }

  #header .content {
    max-width: none;
    padding: 0;
    overflow: visible;
  }

  #header .logo {
    float: left;
    width: 146px;
    height: 90px;
  }

  #header .logo a {
    width: 156px;
    height: 94px;
  }

  .menu-init {
    position: absolute;
    top: 29px;
    right: 18px;
    display: flex;
    width: 28px;
    height: 25px;
    padding: 0;
    border: 0;
    background: transparent;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
  }

  .menu-init span {
    display: block;
    width: 28px;
    height: 4px;
    background: #dfe6e6;
    box-shadow: 0 1px 0 #222;
  }

  #header.menu-open .menu-init span {
    background: #ff9d00;
  }

  #header .menu {
    display: none;
    clear: both;
    width: 100%;
    padding: 20px 0 24px;
    background:
      radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 1.5px) 0 0 / 4px 4px,
      linear-gradient(#595959, #3d3d3d);
    border-top: 1px solid rgba(255, 255, 255, .1);
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, .45);
  }

  #header.menu-open .menu {
    display: block;
  }

  #header .menu ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 0;
    white-space: normal;
  }

  #header .menu li {
    display: block;
  }

  #header .menu li.mobile-only {
    display: block;
  }

  #header .menu .item,
  #header .menu .item.sm {
    width: auto;
    height: auto;
    min-height: 75px;
    padding: 0 3px;
    font: 12px/15px "Open Sans", Arial, sans-serif;
  }

  #header .menu .item .icon {
    height: 42px;
  }

  .rtb-t {
    min-height: 290px;
    margin-bottom: 20px;
  }

  .rtb-b {
    min-height: 290px;
    margin-top: 20px;
  }

  .rtb-td,
  .rtb-bd {
    max-width: 320px;
    min-height: 290px;
  }

  #page {
    padding: 20px 0 80px;
  }

  #caption {
    margin-bottom: 19px;
    font: 30px/34px "Open Sans", Arial, sans-serif;
  }

  #number.single {
    margin-top: -10px;
    padding-bottom: 40px;
    font-size: 72px;
  }

  #number.multi {
    max-width: 350px;
    font-size: 42px;
  }

  #number-save {
    margin-bottom: 20px;
  }

  #button {
    width: 280px;
    height: 80px;
  }

  #description {
    padding-top: 10px;
  }

  #number-start,
  #number-end {
    width: 50px;
  }

  #extra {
    padding-top: 20px;
  }

  #footer {
    height: 60px;
    overflow: hidden;
  }

  #footer .content {
    width: auto;
    padding: 0 20px;
  }

  #footer .share {
    width: 145px;
    margin-top: 7px;
  }

  #footer .contacts {
    width: 165px;
    margin-top: 7px;
  }

  #footer .contacts .widget-fix {
    max-width: 145px;
    padding-right: 6px;
    gap: 5px;
  }
}
