@font-face {
    font-family: 'DINPro';
    src: url('./font/dinpro-light.otf');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DINPro';
    src: url('./font/dinpro-medium.otf');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DINPro';
    src: url('./font/dinpro-bold.otf');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DINPro';
    src: url('./font/dinpro-black.otf');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'FuturaRound';
    src: url('./font/AFuturaRoundBold.ttf');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* RESET CSS */
/* http://meyerweb.com/eric/tools/css/reset/
   v2.0-modified | 20110126
   License: none (public domain)
*/
*{
    box-sizing: border-box;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* make sure to set some focus styles for accessibility */
:focus {
    outline: 0;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
    margin: 0;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

input[type=search]::-webkit-search-cancel-button,
input[type=search]::-webkit-search-decoration,
input[type=search]::-webkit-search-results-button,
input[type=search]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    -moz-appearance: none;
}

input[type=search] {
    -webkit-appearance: none;
    -moz-appearance: none;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

textarea {
    overflow: auto;
    vertical-align: top;
    resize: vertical;
}

/**
 * Correct `inline-block` display not defined in IE 6/7/8/9 and Firefox 3.
 */

audio,
canvas,
video {
    display: inline-block;
    *display: inline;
    *zoom: 1;
    max-width: 100%;
}

/**
 * Prevent modern browsers from displaying `audio` without controls.
 * Remove excess height in iOS 5 devices.
 */

audio:not([controls]) {
    display: none;
    height: 0;
}

/**
 * Address styling not present in IE 7/8/9, Firefox 3, and Safari 4.
 * Known issue: no IE 6 support.
 */

[hidden] {
    display: none;
}

/**
 * 1. Correct text resizing oddly in IE 6/7 when body `font-size` is set using
 *    `em` units.
 * 2. Prevent iOS text size adjust after orientation change, without disabling
 *    user zoom.
 */

html {
    font-size: 100%; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
    -ms-text-size-adjust: 100%; /* 2 */
}

/**
 * Address `outline` inconsistency between Chrome and other browsers.
 */

a:focus {
    outline: thin dotted;
}

/**
 * Improve readability when focused and also mouse hovered in all browsers.
 */

a:active,
a:hover {
    outline: 0;
}

/**
 * 1. Remove border when inside `a` element in IE 6/7/8/9 and Firefox 3.
 * 2. Improve image quality when scaled in IE 7.
 */

img {
    border: 0; /* 1 */
    -ms-interpolation-mode: bicubic; /* 2 */
}

/**
 * Address margin not present in IE 6/7/8/9, Safari 5, and Opera 11.
 */

figure {
    margin: 0;
}

/**
 * Correct margin displayed oddly in IE 6/7.
 */

form {
    margin: 0;
}

/**
 * Define consistent border, margin, and padding.
 */

fieldset {
    border: 1px solid #c0c0c0;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em;
}

/**
 * 1. Correct color not being inherited in IE 6/7/8/9.
 * 2. Correct text not wrapping in Firefox 3.
 * 3. Correct alignment displayed oddly in IE 6/7.
 */

legend {
    border: 0; /* 1 */
    padding: 0;
    white-space: normal; /* 2 */
    *margin-left: -7px; /* 3 */
}

/**
 * 1. Correct font size not being inherited in all browsers.
 * 2. Address margins set differently in IE 6/7, Firefox 3+, Safari 5,
 *    and Chrome.
 * 3. Improve appearance and consistency in all browsers.
 */

button,
input,
select,
textarea {
    font-size: 100%; /* 1 */
    margin: 0; /* 2 */
    vertical-align: baseline; /* 3 */
    *vertical-align: middle; /* 3 */
}

/**
 * Address Firefox 3+ setting `line-height` on `input` using `!important` in
 * the UA stylesheet.
 */

button,
input {
    line-height: normal;
}

/**
 * Address inconsistent `text-transform` inheritance for `button` and `select`.
 * All other form control elements do not inherit `text-transform` values.
 * Correct `button` style inheritance in Chrome, Safari 5+, and IE 6+.
 * Correct `select` style inheritance in Firefox 4+ and Opera.
 */

button,
select {
    text-transform: none;
}

/**
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *    and `video` controls.
 * 2. Correct inability to style clickable `input` types in iOS.
 * 3. Improve usability and consistency of cursor style between image-type
 *    `input` and others.
 * 4. Remove inner spacing in IE 7 without affecting normal text inputs.
 *    Known issue: inner spacing remains in IE 6.
 */

button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
    -webkit-appearance: button; /* 2 */
    cursor: pointer; /* 3 */
    *overflow: visible;  /* 4 */
}

/**
 * Re-set default cursor for disabled elements.
 */

button[disabled],
html input[disabled] {
    cursor: default;
}

/**
 * 1. Address box sizing set to content-box in IE 8/9.
 * 2. Remove excess padding in IE 8/9.
 * 3. Remove excess padding in IE 7.
 *    Known issue: excess padding remains in IE 6.
 */

input[type="checkbox"],
input[type="radio"] {
    box-sizing: border-box; /* 1 */
    padding: 0; /* 2 */
    *height: 13px; /* 3 */
    *width: 13px; /* 3 */
}

/**
 * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
 * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
 *    (include `-moz` to future-proof).
 */

input[type="search"] {
    -webkit-appearance: textfield; /* 1 */
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box; /* 2 */
    box-sizing: content-box;
}

/**
 * Remove inner padding and search cancel button in Safari 5 and Chrome
 * on OS X.
 */

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/**
 * Remove inner padding and border in Firefox 3+.
 */

button::-moz-focus-inner,
input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/**
 * 1. Remove default vertical scrollbar in IE 6/7/8/9.
 * 2. Improve readability and alignment in all browsers.
 */

textarea {
    overflow: auto; /* 1 */
    vertical-align: top; /* 2 */
}

/**
 * Remove most spacing between table cells.
 */

table {
    border-collapse: collapse;
    border-spacing: 0;
}

html,
button,
input,
select,
textarea {
    color: #222;
}


::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

img {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* END RESET CSS */

/* START TOGGLE CSS */
.dspNone{
    display: none !important;
}

.toggle *{
    box-sizing: content-box;
}
.toggle {
    position: relative;
    display: block;
    width: 36px;
    height: 16px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transform: translate3d(0, 0, 0);
    margin-top: 10px;
}
.toggle:before {
    content: "";
    position: relative;
    top: 3px;
    left: 3px;
    width: 32px;
    height: 10px;
    display: block;
    background: #6a3e78;
    border-radius: 8px;
    transition: background 0.2s ease;
}
.toggle span {
    position: absolute;
    top: 0;
    left: 0;
    width: 11px;
    height: 11px;
    display: block;
    background: #371f3f;
    border-radius: 10px;
    transition: all 0.2s ease;
    border: 2px solid #6a3e78;
}

#cbx{display:none}
#cbx:checked + .toggle:before {
    background: #6a3e78;
    transition: background 0.2s ease;
}
#cbx:checked + .toggle span {
    background: #371f3f;
    transform: translateX(20px);
    transition: all 0.2s cubic-bezier(0.8, 0.4, 0.3, 1.25), background 0.15s ease;
}

.top .toggle:before{
    background: #fff;
}
.top .toggle span{
    background: #777;
    border-color: #fff;
}
.top #cbx:checked + .toggle:before {
    background: #fff;
}
.top #cbx:checked + .toggle span {
    background: #777;
}
/* Mobile */
@media (max-width: 685px) {
    .top .toggle:before{
        background: #ddd;
    }
    .top .toggle span{
        background: #777;
        border-color: #ddd;
    }
    .top #cbx:checked + .toggle:before {
        background: #ddd;
    }
    .top #cbx:checked + .toggle span {
        background: #777;
    }
}

/* END TOGGLE CSS */

html{
    scroll-behavior: smooth;
    background: #777;
    min-width: 420px;
}
body{
    min-width: 420px;
    font-family: 'DINPro', sans-serif;
    color: #000;
    position: relative;
}
@media (min-width: 1920px) {
    body{
        box-shadow: 0 0 60px #371f3f;
        /* max-width: 1920px; */
        margin: 0 auto;
    }
}
p{
    font-size: 24px;
    line-height: 111.8%;
    letter-spacing: -.7px;
    margin-bottom: 24pt;
}
a{
    text-decoration: none;
}
h2{
    display: block;
    font-size: 32pt;
    font-weight: bold;
    padding: 38pt 0;
    font-style: normal;
}
small{
    font-size: 60%;
}
a:hover, a:active{
    text-decoration: underline;
}
.text-center{
    text-align: center;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}
.container.wide {
    max-width: 1664px;
    margin: 0 auto;
}
section{
    overflow: hidden;
    position: relative;
    z-index: 2;
}
#header{
    position: fixed;
    left: 0;
    right: 0;
    z-index: 3;
    width: 100%;
    background: #371f3f;
    color: #fff;
    height: 58px;
    transition: background 0.2s ease, height 0.2s ease;
    /* max-width: 1920px; */
    margin: 0 auto;
}
#header.top{
    background: transparent;
    height: 80px;
}
#header-logo{
    position: absolute;
    z-index: 4;
    transition: margin .2s ease;
    margin: -2px 11px;
}
#header-logo img{
    width: 188px;
}
.top #header-logo{
    margin: 5px 11px;
}
#menu-btn{
    display: none;
    float: right;
    padding: 6px 12px 6px;
    margin-top: -9px;
}
#menu-btn div {
    width: 35px;
    height: 5px;
    background-color: #fff;
    margin: 6px 0;
    position: relative;
}
.top #header-menu.active #menu-btn{
    background: #fff;
}
.top #header-menu.active #menu-btn div{
    background-color: #371f3f;
}
#header-menu{
    float: right;
    height: 32px;
    margin-top: 13px;
    font-weight: 400;
    font-size: 102%;
    transition: margin-top .2s ease;
}
.top #header-menu{
    margin-top: 26px;
}
#header-menu ul{
    list-style: none;
    display: inline-block;
    border-right: 1px solid #fff;
    height: 32px;
    vertical-align: middle;
}
#header-menu ul li{
    display: inline-block;
    line-height: 32px;
    margin-right: 34px;
    letter-spacing: 0.5px;
}
#header-menu ul li a{
    position: relative;
    color: #fff;
}
#header-menu ul li a figure{
    position: absolute;
    width: 19px;
    height: 15px;
    background: url("/img/union.png") center no-repeat;
    right: -17px;
    top:-7px;
    font-size: 11px;
    line-height: 14px;
    padding: 0 1px 0 5px;
    color: #000;
    text-align: center;
}

#lang-select{
    position: relative;
    display: inline-block;
    vertical-align: middle;
    height: 32px;
    margin-left: 15px;
    width: 120px;
}
#lang-select .lngName{
    line-height: 32px;
    height: 32px;
    display: block;
    float: left;
    text-align: center;
}
#cbx-toggle{
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: 35px;
}


/* FIRST SCREEN */
#firstScreen{
    min-height: 400px;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    max-height: 250vw;
    position: relative;
    /*background: url("../img/top-background.jpg") top center no-repeat;*/
}
.device-ios #firstScreen{
    height: 100vh;
}
/*@media (min-width: 173vh) {
    #firstScreen {
        background-size: 100% auto;
    }
}
html:not(.device-ios) #firstScreen {
    background-size: cover !important;
    -webkit-background-size: cover !important;; !* safari may need this *!
    background-attachment:fixed !important;;
}

#firstScreen:before{
    content: '';
    display: block;
    position: absolute;
    left:0;
    right: 0;
    top: 0;
    bottom: 0;
    background: #371f3f;
    opacity: .6;
}
#big-logo{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate3d(-50%, -50%, 0);
    min-width: 250px;
    width: 80%;
    max-width: 500px;
    min-height: 200px;
    height: 60%;
    max-height: 615px;
}
#big-logo #logo-image{
    min-height: 200px;
    height: calc(100% - 74px);
    max-height: 615px;
    background: url(../img/big-logo.png) center no-repeat;
    background-size: contain;
    -webkit-background-size: contain;
}
#big-logo span{
    display: block;
    text-align: center;
    font-size: 39px;
    font-weight: 800;
    line-height: 64px;
    height: 64px;
    background: #9ed74e;
    width: 50vh;
    min-width: 190px;
    max-width: 100%;
    margin: 10px auto 0;
}*/

#firstScreen .center{
    position: absolute;
    top: 58px;
    bottom: 0;
    left: 20%;
    right: 20%;
    background: url(/img/first-center-bg.jpg) center;
    background-size: cover;
}
#firstScreen .firstLeft{
    position: absolute;
    left: 0;
    width: 30%;
    height: 100%;
}
#firstScreen .firstLeft div{
    width: 140%;
    height: 108%;
    border-right: 14px solid #FFFFFF;
    transform: rotate(0.96turn);
    position: absolute;
    right: 0;
    overflow: hidden;
    background: #fff;
}
#firstScreen .firstLeft div:before{
    content: '';
    display: block;
    width: 95%;
    height: 100%;
    transform: rotate(0.04turn);
    background: url(/img/first-left-bg.jpg) right center;
    background-size: cover;
    position: absolute;
    right: -20%;
}
#firstScreen .firstRight{
    position: absolute;
    right: 0;
    width: 30%;
    height: 100%;
}
#firstScreen .firstRight div{
    width: 140%;
    height: 108%;
    border-left: 14px solid #FFFFFF;
    transform: rotate(0.04turn);
    position: absolute;
    left: 0;
    overflow: hidden;
    background: #fff;
}
#firstScreen .firstRight div:before{
    content: '';
    display: block;
    width: 95%;
    height: 100%;
    transform: rotate(0.96turn);
    background: url(/img/first-right-bg.jpg) left center;
    background-size: cover;
    position: absolute;
    left: -20%;
}

#firstScreen figure{
    position: absolute;
    bottom: 0;
    display: block;
    width: 100vh;
}
#firstScreen .center figure{
    background: url("/img/first-center-char.png") center bottom no-repeat;
    background-size: contain;
    bottom: 100px;
    width: 100%;
    height: 60vh;
    transition: bottom .7s ease;
}
#firstScreen .center span{
    display: block;
    position: absolute;
    width: 100%;
    height: 55%;
    top: -33%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: height .5s ease .7s, width .5s ease .7s, top .5s ease .7s;
    left: 0;
    right: 0;
    margin: auto;
}
#firstScreen .center figure.start span{
    height: 0;
    width: 0;
    top: 0;
}
#firstScreen .center i{
    /*DEBUG*/
    display: block;
    font-size: 50px;
    color: #000;
    font-weight: bold;
    text-shadow: 0 0 15px #fff, 0 0 15px #fff, 0 0 15px #fff, 0 0 15px #fff, 0 0 15px #fff, 0 0 15px #fff, 0 0 15px #fff;
    text-align: center;
}
#firstScreen .firstLeft figure{
    transform: rotate(0.04turn);
    background: url("/img/first-left-char.png") right bottom no-repeat;
    background-size: contain;
    right: -15vh;
    height: 74vh;
    transition: right .7s ease;
}
#firstScreen .firstRight figure{
    transform: rotate(0.96turn);
    background: url("/img/first-right-char.png") left bottom no-repeat;
    background-size: contain;
    left: -15vh;
    height: 72vh;
    transition: left .7s ease;
}

#firstScreen .center figure.start{
    bottom: -100%;
}
#firstScreen .firstLeft figure.start{
    right: 100%;
}
#firstScreen .firstRight figure.start{
    left: 100%;
}
@media (max-width: 150vh) {
    #firstScreen .firstLeft figure {
        right: -20vh;
    }
    #firstScreen .firstRight figure {
        left: -25vh;
    }
}
@media (max-height: 400px) {
    #firstScreen .firstLeft figure {
        height: 320px;
        min-width: 400px;
    }
    #firstScreen .firstRight figure {
        height: 300px;
        min-width: 400px;
    }
    #firstScreen .center figure{
        height: 250px;
    }
}
@media (min-height: 250vw) {

    #firstScreen .center figure{
        height: 625px;
    }
}
@media (max-width: 110vh) {
    #firstScreen .firstRight,
    #firstScreen .firstLeft{
        display: none !important;
    }
    #firstScreen .center{
        left: 0;
        right: 0;
    }
}
/* MAIN */

main{
    position: relative;
    background: #fff;
}

#counters{
    text-align: center;
    width: 100%;
    color:#fff;
    position: absolute;
    top: -115px;
    height: 115px;
}
#counters hr{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border: 4px solid #fff;
    z-index: 1;
    margin: 0;
}
#counters .container{
    max-width: 985px;
    height: 115px;
    position: relative;
    border-top: 8px solid #fff;
    background: #371f3f;
    word-spacing: 30px;
    z-index: 2;
}
#counters .container:before,
#counters .container:after{
    content: '';
    display: block;
    width: 65px;
    height: 115px;
    position: absolute;
    background: url("/img/couter-corner-l.png") right top no-repeat;
    left: -64px;
    top:-8px;
}
#counters .container:after{
    background: url("/img/couter-corner-r.png") left top no-repeat;
    left: auto;
    right: -64px;
}
#counters .counter{
    display: inline-block;
    width: 220px;
    margin: 21px 0;
    font-size: 45px;
    text-align: left;
    font-weight: 800;
    position: relative;
    z-index: 2;
    overflow: hidden;
    word-spacing: 0;
}
#counters .counter b{
    display: inline-block;
}
#counters .counter span{
    display: block;
    font-size: 14px;
    margin-top: 6px;
}
#counters .counter i img{
    float: left;
    margin: 12px 25px 0 0;
    height: 46px;
}
@media (max-width: 1540px) {
    #counters .container{
        width: calc(100% - 450px);
    }
}
@media (max-width: 1180px) {
    #counters .counter{
        width: 175px;
        font-size: 37px;
    }
    #counters .counter span{
        font-size: 12px;
    }
    #counters .counter i img{
        margin: 12px 20px 0 0;
        height: 38px;
    }
}
@media (max-width: 1050px) {
    #counters .container{
        width: calc(100% - 330px);
    }
}
@media (max-height: 770px) {
    #firstScreen .center figure {
        bottom: 50px;
    }
    #counters{
        top: -87px;
    }
    #counters .container{
        max-width: 750px;
    }
    #counters hr{
        bottom: 28px;
    }
    #counters .counter {
        margin: 15px 0;
        font-size: 32px;
        width: 160px;
    }
    #counters .counter span{
        font-size: 11px;
    }
    #counters .counter i img{
        margin-top: 8px;
        height: 34px;
    }
}
@media (max-width: 960px) {
    #firstScreen .center figure {
        bottom: 50px;
    }
    #counters{
        top:-87px
    }
    #counters hr{
        bottom: 28px;
    }
    #counters .container{
        word-spacing: 15px;
    }
    #counters .counter{
        margin: 15px 0;
        width: 150px;
        font-size: 32px;
    }
    #counters .counter span{
        font-size: 11px;
    }
    #counters .counter i img{
        margin: 8px 15px 0 0;
        height: 34px;
    }
}
@media (max-width: 860px) {
    #counters .counter{
        width: 110px;
        font-size: 29px;
    }
    #counters .counter span{
        font-size: 10px;
    }
    #counters .counter i img{
        margin: 8px 11px 0 0;
        height: 30px;
    }
}
@media (max-width: 750px) {
    #counters .counter{
        width: 100px;
        font-size: 26px;
    }
    #counters .counter span{
        font-size: 9px;
    }
    #counters .container{
        word-spacing: 5px;
        width: 400px;
    }
}
@media (max-width: 450px) {
    #counters .container{
        width: calc(100% - 40px);
    }
}

#games{
    text-align: center;
    background: url("/img/games-bg.jpg") center top no-repeat #fff;
    padding-top: 60px;
    background-size: cover;
}
#games .container{
    margin-bottom: 150px;
}
#games h2{
    display: inline-block;
    margin: 0 auto 27px;
    position: relative;
}

#games h2:before{
    content: '';
    display: block;
    position: absolute;
    background: url("/img/buterfly_games.png") center no-repeat;
    width: 111px;
    height: 124px;
    left: -270px;
    top:-10px
}
#games .flex-grid{
    text-align: left;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    align-content: stretch;
    position: relative;
    overflow: hidden;
}
#games .flex-grid .game{
    width: 200px;
    min-height: 285px;
    margin: 0 50px 50px;
    position: relative;
    /*overflow: hidden;*/
    top: 0;
    opacity: 1;
    transition: top .4s ease, opacity .5s ease;

}
#games .flex-grid .game.hide{
    top: 270px;
    opacity: 0;
}
#games .flex-grid .game img{
    width: 100%;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.35);
    border-radius: 35px;
}
#games .flex-grid .game h3{
    font-weight: bold;
    font-size: 19px;
    line-height: 26px;
    margin-top: 14px;
    padding: 5px;
    color: #1B3762;
}
#games .flex-grid .game .game-links{
    padding: 2px;
    font-size: 0;
    color: #fff;
    letter-spacing: 5px;
}
#games .flex-grid .game .game-links a{
    display: inline-block;
    width: 25px;
    height: 25px;
    margin: 3px;
    /*background-size: contain;*/
    background-position: center;
    background-repeat: no-repeat;
}
#games .flex-grid .game .game-links .gplay{
    background-image: url("/img/game-icon/PlayMarket.png");
}
#games .flex-grid .game .game-links .appstore{
    background-image: url("/img/game-icon/AppStore.png");
}
#games .flex-grid .game .game-links .yandex{
    background-image: url("/img/game-icon/Yandex.png");
}
#games .flex-grid .game .game-links .ok{
    background-image: url("/img/game-icon/Ok.png");
}
#games .flex-grid .game .game-links .youtube{
    background-image: url("/img/game-icon/YouTube.png");
    float: right;
}
@media (max-width: 750px) {
    #games h2:before{
        display: none;
    }
}

#about{
    margin-bottom: 150px;
}
#about .container{
    padding: 0 135px;
}
#about h2{
    display: inline-block;
    width: 418px;
    background: #F9CD3A;
    font-weight: bold;
    font-size: 42px;
    line-height: 68px;
    padding: 0;
    text-align: center;
    margin-bottom: 75px;
    padding-bottom: 5px;
}
#about p{
    max-width: 700px;
    font-size: 24px;
    line-height: 27px;
    font-weight: 200;
}
#about > div > img{
    float: right;
    margin: 0 0 20px 100px;
}
@media (max-width: 900px) {
    #about > div > img{
        display: none;
    }
    #about h2{
        display: block;
        width: 100%;
    }
}
@media (max-width: 700px) {
    #about .container {
        padding: 0 50px;
    }
}

#about #gallery{
    position: relative;
    margin-top: 100px;
}
#about #gallery .slick-arrow{
    background: url("/img/left.png") center no-repeat;
    width: 50px;
    height: 52px;
    border: none;
    font-size: 0;
    position: absolute;
    top: 100px;
    left: -100px;
}
#about #gallery .slick-arrow.slick-next {
    transform: rotate(180deg);
    left: auto;
    right: -100px;
}
#about #gallery img{
}
#about #gallery a:focus{
    outline: none;
}
.slick-slide{
    position: relative;
    height: 260px;
}
.slick-slide img{
    position: absolute;
    top:5px;bottom:5px;right:5px;left:5px;
    max-width: calc(100% - 10px);
    max-height: 100%;
    height: auto;
    margin: auto;
}
@media (max-width: 700px) {
    #about #gallery{
        margin: 100px 15px 0;
    }
    #about #gallery .slick-arrow{
        background-size: 60%;
        left: -45px;
    }
    #about #gallery .slick-arrow.slick-next {
        right: -45px;
    }
}


#jobs{
    margin: 0 auto /*150px*/;
    padding: 40px 0 100px;
}
#jobs .jobs-style{
    background: #F8F8F8;
    border-radius: 34px;
    position: relative;
    padding: 100px 135px;
}
#jobs .jobs-style:before{
    content: '';
    display: block;
    width: 322px;
    height: 329px;
    background: url("/img/jobs-bird.png") center no-repeat;
    position: absolute;
    top:-184px;
    left: -92px;
}
#jobs .jobs-style:after{
    content: '';
    display: block;
    width: 227px;
    height: 321px;
    background: url("/img/jobs-bee.png") center no-repeat;
    position: absolute;
    right:-88px;
    bottom: -100px;
}
#jobs .jobs-style .wrap{
    overflow: hidden;
}
#jobs .jobs-left{
    width: 50%;
    float: left;
    padding-right: 70px;
    font-weight: 200;
}
#jobs .jobs-left h3{
    font-weight: bold;
    font-size: 26px;
    line-height: 33px;
    margin-bottom: 34px;
}
#jobs .jobs-left button:before{
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    vertical-align: middle;
    background: url('/img/msgBtn.png') center center no-repeat;
    margin-right: 10px;
    margin-bottom: 2px;
}
#jobs .jobs-left button{
    display: inline-block;
    text-align: center;
    font-weight: bold;
    font-family: 'DINPro', sans-serif;
    font-size: 24px;
    line-height: 57px;
    width: 305px;
    background: #F1A420;
    border-radius: 15px;
    color: #000000;
    border: none;
    font-style: normal;
    padding-bottom: 3px;
}
#jobs .jobs-right{
    width: 50%;
    float: right;
}
#jobs .jobs-right .job{
    overflow: hidden;
    position: relative;
    padding-left: 10px;
    margin-bottom: 20px;
}
#jobs .jobs-right .job img{
    width: 105px;
    float: right;
    margin: 0 0 25px 25px;
}
#jobs .jobs-right .job h3{
    font-weight: bold;
    font-size: 24px;
    line-height: 31px;
    margin: 5px 0;
}
#jobs .jobs-right .job h3 u{
    display: none;
}
#jobs .jobs-right .job a{
    font-size: 16px;
    line-height: 21px;
    text-decoration: underline;
    color: #8E8E8E;
}
#jobs .jobs-right .job a:hover{
    text-decoration: none;
}
#jobs .jobs-right .job hr{
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 130px);
    background: none;
    border: none;
    border-bottom: 2px solid #000;
}
@media (max-width: 1460px) {
    #jobs .container {
        margin: 0 85px;
    }
}
@media (max-width: 1100px) {
    #jobs{
        padding: 0;
        margin-bottom: 50px;
    }
    #jobs .container {
        margin: 0 auto;
    }
    #jobs .jobs-style .wrap{
        overflow: visible;
    }
    #jobs .jobs-left,
    #jobs .jobs-right{
        float: none;
        width: 100%;
    }

    #jobs .jobs-style{
        background: none;
        padding: 0 135px;
    }
    #jobs .jobs-style:before,
    #jobs .jobs-style:after{
        display: none;
    }

    #jobs .jobs-left{
        position: relative;
        margin-top: 50px ;
        background: #F8F8F8;
        border-radius: 34px;
        padding: 50px 70px;
    }
    #jobs .jobs-right .job:last-child hr{
        display: none;
    }
}
@media (max-width: 700px) {
    #jobs .container {
        padding: 0 30px;
    }
    #jobs .jobs-style{
        padding: 0;
    }
}
@media (max-width: 550px) {
    #jobs .jobs-left{
        padding: 30px;
    }
    #jobs .jobs-left button{
        display: block;
        width: 100%;
        font-size: 20px;
        line-height: 55px;
    }
}

#students{
    position: relative;
    padding-bottom: 660px;
    background: url("/img/stud-bg.png") bottom center no-repeat;
    background-size: cover;
    padding-top: 55px;
    font-weight: 200;
}
#students:before{
    content: '';
    position: absolute;
    display: block;
    width: 733px;
    height: 733px;
    background:url("/img/witch.png") center no-repeat;
    background-size: contain;
    bottom: 0;
    left: calc(50% - 733px);
}
#students:after{
    content: '';
    position: absolute;
    display: block;
    height: 225px;
    background:url("/img/footer-radius.png") bottom center no-repeat;
    background-size: contain;
    bottom: 0;
    left: 0;
    right: 0;
}
#students .container{
    position: relative;
    z-index: 2;
}
#students .container .absolute{
    position: absolute;
    padding: 0 130px 0 550px;
}
#students .container .absolute:before{
    content: '';
    display: block;
    position: absolute;
    background: url("/img/buterfly_stud.png") center no-repeat;
    width: 111px;
    height: 124px;
    right: 20px;
    top: 100px;
}
#students a{
    display: block;
    font-weight: bold;
    font-size: 26px;
    line-height: 33px;
    color: #000;
    margin-bottom: 15px;
}
#students a:hover{
    color: #F1A420;
    text-decoration: none;
}
@media (min-width: 1900px) {
    #students:after{
        height: 500px;
        background-size: 100%;
    }
}
@media (max-width: 1300px) {
    #students .container .absolute {
        padding: 0;
        left: calc(50% - 100px);
        right: 100px;
    }
    #students .container .absolute:before{
        top: auto;
        bottom: 0;
    }
}
@media (max-width: 1100px) {
    #students {
        padding-bottom: 600px;
        background-size: contain;
    }
    #students .container .absolute {
        left: 350px;
        right: 100px;
    }
    #students:before{
        width: 600px;
        height: 600px;
        left: -150px;
    }
}
@media (max-width: 860px) {
    #students h2{
        padding-bottom: 20pt;
    }
    #students p{
        margin-bottom: 17pt;
        font-weight: 200;
    }
    #students a {
        margin-bottom: 10px;
        font-size: 16pt;
    }
}
@media (max-width: 740px) {
    #students:after{
        background-size: 865px;
    }
    #students {
        padding-top: 55px;
        padding-bottom: 625px;
        background-size: 740px;
        background-position: center bottom -5px;
    }
    #students:before{
        width: 400px;
        height: 400px;
        left: auto;
        right: -30px;
    }
    #students .container .absolute {
        left: 50px;
        right: 50px;
    }
    #students .container .absolute:before{
        display: none;
    }
}
@media (max-width: 540px) {
    #students:after{
        background-size: 700px;
    }
    #students {
        padding-top: 15px;
        padding-bottom: 600px;
    }
    #students:before{
        width: 300px;
        height: 300px;
        left: auto;
        right: -20px;
    }
    #students .container .absolute {
        left: 50px;
        right: 50px;
    }

}



.yellowBtn{
    display: inline-block;
    margin: 10pt 20pt 35pt;
    width: 300px;
    height: 58pt;
    padding: 0 20pt;
    border-radius: 20px;
    background: #F0A620;
    color: #000;
    font-size: 21pt;
    font-weight: bold;
    line-height: 58pt;
}
@media (min-width: 1100px) {
    #students a.yellowBtn:not(:last-child){
        margin-right: 150pt !important;
    }
}



footer{
    background: #371f3f;
    position: relative;
    z-index: 2;
    border: 1px solid #371f3f;
}
footer:before,
footer:after{
    background: #371f3f;
    content: '';
    display: block;
    position: absolute;
    right: 0;left: 0;
    height: 3px;
    top: -2px;
}
footer:after{
    top: auto;
    bottom: -2px;
}
#contacts{
    max-width: 542px;
    height: 210px;
    margin: 85px auto;
    padding: 85px 0 0 220px;
    background: url("../img/footer-logo.png?v=1") center no-repeat;
    background-size: contain;
    overflow: hidden;
}
#contacts .icon.fb{
    background: url("../img/fb.png") center no-repeat;
}
#contacts .icon.in{
    background: url("../img/in.png") center no-repeat;
}
#contacts .icon.vk{
    background: url("../img/vk.png") center no-repeat;
}
#contacts .icon.li{
    background: url("../img/li.png") center no-repeat;
}
#contacts .icon.fb:hover{
    background: url("../img/fb-hover.png") center no-repeat;
}
#contacts .icon.in:hover{
    background: url("../img/in-hover.png") center no-repeat;
}
#contacts .icon.vk:hover{
    background: url("../img/vk-hover.png") center no-repeat;
}
#contacts .icon.li:hover{
    background: url("../img/li-hover.png") center no-repeat;
}
#contacts .icon{
    display: inline-block;
    width: 66px;
    height: 65px;
    background-size: contain !important;
    transition: background .2s ease;
    font-size: 1px;
    font-size: 0;
    color: transparent;
}
#contacts .icon:not(:first-child){
    margin-left: 15px;
}
#contacts a:last-child{
    font-size: 19pt;
    color: #fff;
    display: block;
    margin-top: 18px;
}
#contacts a:last-child b{
    font-family: 'FuturaRound', sans-serif;
}

#copyrights{
    background: #371f3f;
    overflow: hidden;
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    font-weight: 200;
    font-size: 11px;
    line-height: 15pt;
    height: 15pt;
}
#copyrights a{
    color: #fff;
}


@media (max-height: 770px), (max-width: 555px){
    #big-logo span{
        font-size: 30px;
        height: 40px;
        line-height: 40px;
    }
}
@media (max-height: 570px), (max-width: 370px){
    #big-logo span{
        font-size: 24px;
        height: 32px;
        line-height: 32px;
    }
}
@media (max-height: 450px){
    #big-logo span{
        font-size: 20px;
        height: 28px;
        line-height: 28px;
    }
}


#debug{
    position: fixed;
    left: 0;
    top: 0;
    z-index: 999;
    color: #fff;
}
@media (max-width: 555px){
    #contacts{
        max-width: 380px;
        margin: 50px auto;
        height: auto;
        padding: 70px 0 0 150px;
        background-size: contain;
    }
    #contacts .icon{
        width: 42px;
        height: 42px;
    }
    #contacts a:last-child{
        font-size: 13.2pt;
        margin: 10px 0;
    }
}

/* Mobile menu */
@media (max-width: 900px) {
    p{
        font-size: 16pt;
    }
    #header-menu{
        float: right;
        height: auto;
        margin-top: 13px;
        font-weight: 400;
        font-size: 102%;
        transition: margin-top .2s ease;
        position: relative;
    }
    #menu-btn{
        display: block;
    }
    #header-menu ul{
        display: none;
        background: #371f3f;
        position: relative;
        margin-top: 44px;
        list-style: none;
        border-right: none;
        vertical-align: middle;
        /*height: auto;*/
        text-align: center;
        width: calc(100vw + 1px);
        height: calc(80vh - 44px);
        height: calc((var(--vh, 1vh) * 80) - 44px);
        max-height: 1000px;
        max-width: 425px;
    }
    /*.device-ios #header-menu ul{
        height: calc(70vh - 44px);
    }*/
    #menu-btn div{
        transition: transform .2s ease;
    }
    #header-menu.active #menu-btn div{
        display: none;
    }
    #header-menu.active #menu-btn div:first-child{
        display: block;
        transform: rotate(45deg);
        top: 11px;
    }
    #header-menu.active #menu-btn div:last-child{
        display: block;
        transform: rotate(-45deg);
    }
    .top #header-menu ul{
        background: #fff;
        color: #371f3f;
    }
    #header-menu.active ul{
        display: block;
    }
    #header-menu ul li{
        display: flex;
        height: 20%;
        line-height: 32px;
        margin-right: 0;
        width: 100%;
        text-align: center;
        letter-spacing: 0.5px;
        border-bottom: 1px solid #6A3E78;
        font-size: 30px;
	    justify-content: center;
    }
    #header-menu ul li a{
        color: #fff;
        margin: auto;
    }
    .top #header-menu ul li a{
        color: #371f3f;
    }
    #lang-select .lngName {
	font-size: 30px;
    }

    #lang-select{
        position: relative;
        display: none;
        vertical-align: middle;
        /*height: 42px;*/
        height: 20vh;
        height: calc((var(--vh, 1vh) * 20));
        margin: -1px 0 0;
        width: 100%;
        padding: 0 12px;
        background: #371f3f;
        border-top: 1px solid #6A3E78;
    }
    /*.device-ios #lang-select{
        height: 30vh;
    }*/
    #lang-select .wraper{
        position: absolute;
        top: calc(50% - 27px);
    }
    /*.device-ios #lang-select .wraper{
        top: calc(10vh - 27px);
    }*/
    .top #lang-select{
        background: #fff;
        color: #371f3f;
    }
    #header-menu.active #lang-select{
        display: flex;
        justify-content: center;
        padding-top: 20px;
    }

    #header-menu ul li a figure {
    	position: absolute;
    	width: 27px;
    	height: 22px;
        right: -30px;
    	top: -12px;
    	font-size: 18px;
    	line-height: 22px;
    	text-align: center;
    	background-size: cover;
    	font-weight: bold;
    }

    #cbx-toggle{
        position: relative;
        display: inline-block;
        vertical-align: middle;
        margin-left: 10px !important;
    }
    .toggle:before {
        height: 14px;
    }
    .toggle span {
        width: 16px;
        height: 16px;
    }

    .hideMobile{display: none}
}


/* Contact Form */

.contact-me-modal .contact-form label {
    display: block;
    margin-bottom: 3px;
}

.contact-me-modal .contact-form .row {
    margin-bottom: 10px;
}

.contact-me-modal .contact-form input, .contact-me-modal .contact-form textarea {
    background: #F8F8F8;
}

#modal-overlay {
    position: fixed;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0);
    transition: background .3s ease .4s, z-index 0s ease .7s;
}

body.modal-opened{
    overflow: hidden !important;
    height: 100% !important;
}

body.modal-opened #modal-overlay {
    z-index: 100;
    background: rgba(0, 0, 0, 0.9);
    transition: background .3s ease, z-index 0s;
}

.modal {
    position: fixed;
    z-index: -1;
    background: #F8F8F8;
    max-width: 1141px;
    min-width: 300px;
    max-height: 100vh;
    overflow: auto;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    padding: 20px 30px;
    opacity: 0;
    transition: opacity .2s ease .2s, z-index 0s ease .5s;
    border-radius: 25px;
}
.modal *{
    opacity: 0;
    transition: opacity .2s ease .1s;
}

.modal-opened.contact-me .modal.contact-me-modal {
    opacity: 1;
    z-index: 101;
    transition: opacity .2s ease .3s, z-index 0s ease .5s;
}
.modal-opened.contact-me .modal.contact-me-modal *{
    opacity: 1;
    transition: opacity .2s ease .5s;
}
.modal-opened.job .modal.job-modal {
    opacity: 1;
    z-index: 101;
    transition: opacity .2s ease .3s, z-index 0s ease .5s;
}
.modal-opened.job .modal.job-modal *{
    opacity: 1;
    transition: opacity .2s ease .5s;
}
.job-modal{
    width: 1141px;
    max-width: 90%;
    padding: 40px 25px 40px 15px;
}
.job-modal.small{
    width: 400px;
    margin: 15px 0;
}
.modal-opened.youtube .modal.youtube-modal {
    opacity: 1;
    z-index: 101;
    transition: opacity .2s ease .3s, z-index 0s ease .5s;
}
.modal-opened.youtube .modal.youtube-modal *{
    opacity: 1;
    transition: opacity .2s ease .5s;
}

.youtube-modal{
    width: 1150px;
    max-width: 90%;
    padding: 0;
    border-radius: 0;
    background: none;
    overflow: visible;
}
.youtube-modal .inner{
    width: 100%;
}
.youtube-modal iframe{
    width: 100%;
    height: 70vh;
}

.modal button.close-btn {
    position: absolute;
    right: 13px;
    top: 10px;
    display: block;
    color: #C4C4C4;
    font-size: 25pt;
    font-weight: normal;
    border: none;
    background: transparent;
}
.modal.youtube-modal button.close-btn{
    right: -45px;
    top: -45px;
    font-size: 40px;
    color: #fff;
    font-weight: normal;
}
.contact-me-modal button[type="submit"] {
    display: block;
    margin: 0 auto;
    height: 42pt;
    padding: 0 19px;
    border-radius: 12px;
    background: #371f3f;
    color: #fff;
    font-size: 15pt;
    font-weight: bold;
}

.contact-me-modal h2{
    padding-top: 25px;
    text-align: center;
}

.contact-me-modal input, .contact-me-modal textarea {
    background: #fff;
    border: none;
    border-bottom: 1px solid #aaa;
    padding: 5px;
    width: 100%;
    margin-bottom: 10px;
}

.contact-me-modal textarea {
    height: 80px;
    min-height: 30px;
}

.modal .job-data{
    width: 100%;
    text-align: center;
}
.modal .job-data a:before{
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    vertical-align: middle;
    background: url('/img/msgBtn.png') center center no-repeat;
    margin-right: 10px;
    margin-bottom: 2px;
}
.modal .job-data a{
    display: inline-block;
    text-align: center;
    font-weight: bold;
    font-size: 24px;
    line-height: 57px;
    width: 305px;
    background: #F1A420;
    border-radius: 15px;
    color: #000000;
    padding-bottom: 3px;
}
.modal .job-data>div{
    display: table;
    width: 100%;
}
.modal .job-data>div>div{
    display: table-cell;
    vertical-align: middle;
    padding: 20px;
}
.modal .job-data>div>div:first-child{
    width: 40%;
    text-align: center;
}
.modal .job-data>div>div:last-child{
    width: 60%;
    font-family: 'DINPro', sans-serif;
    font-weight: 200;
    text-align: left;
    max-height: 35vh;
    overflow: auto;
    margin-bottom: 30px;
}
.modal .job-data>div>div:last-child *{
    font-size: 20px;
    line-height: 111.8%;
}
.modal .job-data>div>div:last-child b{
    font-weight: normal;
}
.modal .job-data>div>div:last-child ul{
    margin: -15px 0 15px;
    padding-left: 30px;
    list-style-type: disc;
}

.job-modal.small .job-data>div>div{
    text-align: center;
}

.modal .job-data h3{
    font-family: 'DINPro', sans-serif;
    font-weight: bold;
    font-size: 42px;
    line-height: 54px;
}
.modal .job-data u{
    font-family: 'DINPro', sans-serif;
    font-weight: bold;
    font-size: 35px;
    display: block;
    text-decoration: none;
    color: #aaa;
}
.modal .job-data img{
    padding: 15px 70px 15px;
}
.job-modal.small .job-data img{

    padding: 15px 0 15px;
}
@media (max-width: 960px) {
    .modal .job-data>div>div{
        display: block;
    }
    .modal .job-data>div>div:first-child {
        width: 25%;
        float: left;
    }
    .modal .job-data>div>div:first-child img{
        width: 100%;
        padding: 10px 25px;
    }
    .modal .job-data>div>div:last-child{
        width: 75%;
        float: right;
    }
    .modal .job-data h3{
        font-size: 30px;
        line-height: 39px;
    }
    .modal .job-data u {
         font-size: 24px;
         line-height: 30px;
     }
}
@media (max-width: 800px) {
    .modal .job-data>div>div:last-child,
    .modal .job-data>div>div:first-child {
        width: 100%;
        float: none;
    }
    .modal .job-data>div>div:first-child img{
        width: 200px;
    }
    .modal.youtube-modal button.close-btn{
        right: -15px;
        top: -40px;
        /*font-size: 16px;
        width: 21px;
        height: 21px;
        line-height: 21px;
        font-weight: normal;
        background: #000;
        word-spacing: 0;
        letter-spacing: 0;
        border-radius: 50%;
        z-index: 999;*/
    }
    .contact-me-modal{
        width: 90%;
    }
    .modal .job-data>div>div.u {
        max-height: 30vh;
    }
}


.new_label {
    position: absolute;
    width: 70px;
    transform: translate(-242px, -18px);
}

.device-ios .modal:not(.youtube-modal){
    overflow-x: hidden;
}
.device-ios .modal .job-data>div>div:last-child {
    max-height: 30vh;
}
.device-ios .modal button.close-btn {
    right: -15px;
}
@media (max-width: 800px){
    .device-ios .modal.youtube-modal button.close-btn {
        right: -40px;
        top: -50px;
    }
    .device-ios .modal{
        padding-right: 20px;
    }
}