/* COMMON START */
  main {
    position: relative;
    margin: 0 auto;
    aspect-ratio: 9/16;
    width: 1080px;
    height: 1920px;
    max-height: 1920px;
    padding:
      env(safe-area-inset-top, 0px)
      env(safe-area-inset-right, 0px)
      env(safe-area-inset-bottom, 0px)
      env(safe-area-inset-left, 0px);
    overflow: hidden;
  }

  section {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
/* COMMON END */

/* PROBIRKA START */
  .probirka {
    position: absolute;
    bottom: 604px;
    left: 50%;
    width: 147px;
    height: 800px;
    background: url('../img/svg/probirka.svg') no-repeat 50%/contain  ;
    border-radius: 100px 100px 160px 160px;
    transform: translate(-50%, 0);
    overflow: hidden;
  }

  .probirka__zhidkost {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transition: 0.6s;
  }

  /*.probirka__zhidkost::before {
    content:'';
    position: absolute;
    top: -54px;
    left: 0;
    width: 100%;
    height: 103px;
    background: url('../img/svg/probirka-top.svg') no-repeat 50%/contain;
  }*/

  .probirka__up-circle {
  	position: absolute;
    top: -54px;
    left: 0;
    width: 100%;
    height: 103px;
    background: url('../img/svg/probirka-top.svg') no-repeat 50%/contain;
  }

  .probirka__bubbles  {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .bubble {
      position: absolute;
      bottom: -50px;
      border-radius: 50%;
      animation-timing-function: linear;
      pointer-events: none;
      transition: 0.5s;
  }

  .bubble.size-1 { width: 20px; }
  .bubble.size-2 { width: 36px; }
  .bubble.size-3 { width: 70px; }
  .bubble.size-4 { width: 96px; }
  .bubble.size-5 { width: 120px; }
  .bubble.size-6 { width: 156px; }
  .bubble.size-7 { width: 172px; }
/* PROBIRKA END */

/* WAVES START */
  .waves {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
  }

  .waves i {
    display: block;
    display: block;
    position: absolute;
    left: 0;
    height: 100%;
    background-repeat: no-repeat;
    background-position: 50% 100%;
    background-size: contain;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    transition: transform 0.1s linear;
  }

  .waves .wave-1 {
    bottom: -600px;
    width: 2321px;
    background-image: url('../img/svg/bg-wave-1.svg');
    z-index: 1;
  }

  .waves .wave-2 {
    bottom: -345px;
    width: 2293px;
    background-image: url('../img/svg/bg-wave-2.svg');
    z-index: 0;
  }
/* WAVES END */

/* BEGINNING START */
  .beginning__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    padding-top: 3vh;
    width: 100%;
    text-align: center;
  }

  .beginning__title p {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 42px;
    width: 241px;
    height: 86px;
    font-size: 47px;
    background: linear-gradient(90deg, #a87f36 0%, #f8d490 37.5%, #f8d490 59.5%, #a87f36 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .beginning__title p::before {
    content:'';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/svg/beginning-game.svg') no-repeat 50%/contain;
    pointer-events: none;
  }

  .beginning__title h1 {
    margin: 0;
    font-size: 128px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #a87f36 0%, #f8d490 37.5%, #f8d490 59.5%, #a87f36 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .beginning__loading {
    position: absolute;
    bottom: 626px;
    left: 50%;
    padding: 22px 26px;
    width: 733px;
    height: 153px;
    border: 1px solid #FEF3B7;
    transform: translateX(-50%);
  }

  .beginning__loading::before {
    content:'';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(21, 19, 13, 1);
    z-index: 1;
    pointer-events: none;
  }

  .beginning__loading .wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    box-shadow: 0 4px 98px rgba(255, 254, 205, 0.68);
  }

  .beginning__loading .bar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
    text-align: center;
    background: linear-gradient(90deg, #a87f36 0%, #f8d490 37.5%, #f8d490 59.5%, #a87f36 100%);
    overflow: hidden;
    z-index: 1;
  }

  .beginning__loading .bar p {
    margin: 0;
    color: #000;
    font-size: 48px;
  }

  .beginning__start .probirka { bottom: 470px; }

  .beginning__start .button {
    position: absolute;
    bottom: 206px;
    left: 50%;
    transform: translateX(-50%);
  }
/* BEGINNING END */

/* RULES START */
  .rules {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    padding-top: 3vh;
    width: 100%;
    text-align: center;
  }

  .rules h4 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 42px;
    width: 241px;
    height: 86px;
    font-size: 47px;
    background: linear-gradient(90deg, #a87f36 0%, #f8d490 37.5%, #f8d490 59.5%, #a87f36 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .rules h4::before {
    content:'';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/svg/beginning-game.svg') no-repeat 50%/contain;
    pointer-events: none;
  }

  .rules h3 {
    margin-bottom: 62px;
    font-size: 96px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #a87f36 0%, #f8d490 37.5%, #f8d490 59.5%, #a87f36 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .rules ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3vh;
  }

  .rules ul li:last-child { margin-bottom: 0; }

  .rules ul li p {
    margin-bottom: 48px;
    font-size: 48px;
    text-transform: uppercase;
  }

  .rules ul li img {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 174px;
    border-radius: 50%;
    box-shadow: 0 5px 64px 0 rgba(248, 212, 144, 0.58);
  }

  .rules .button {
    position: absolute;
    bottom: 206px;
    left: 50%;
    transform: translateX(-50%);
  }
/* RULES END */

/* GAME START */
  .game__btns {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: absolute;
    bottom: 110px;
    left: 0;
    width: 100%;
  }

  .game__btns li { margin: 0 37px; }

  .game__btns .icon {
    position: relative;
    margin: 0 auto 50px;
    width: 236px;
    height: 236px;
    border-radius: 50%;
    box-shadow: 0 5px 64px 0 rgba(248, 212, 144, 0.58);
    cursor: pointer;
  }

  .game__btns .icon svg {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
  }

  .game__btns .icon .icon__start { opacity: 0; }
  .game__btns .icon .icon__full { opacity: 1; }

  .game__btns p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 38px;
    text-align: center;
  }

  .game__btns .icon .icon__start,
  .game__btns .icon .icon__full {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease;
  }
/* GAME END */

/* SATURATION START */
  .saturation {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
  }

  .saturation li {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 40px;
    text-align: center;
  }

  .saturation li .top {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
  }

  .saturation li .top img { margin-right: 18px; }

  .saturation li .top img.ver { width: 15px; }
  .saturation li .top img.hor { height: 15px; }

  .saturation li .top h3 {
    margin: 0;
    font-size: 71px;
    background: linear-gradient(90deg, #a87f36 0%, #f8d490 37.5%, #f8d490 59.5%, #a87f36 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .saturation li p {
    margin: 0 0 38px;
    height: 70px;
    font-size: 30px;
    background: linear-gradient(90deg, #a87f36 0%, #f8d490 37.5%, #f8d490 59.5%, #a87f36 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .saturation__bar {
    position: relative;
    margin: 0 auto;
    width: 260px;
    height: 18px;
    background: url('../img/svg/saturation-bar.svg') no-repeat 50%/contain;
  }

  .saturation__bar i {
    display: block;
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid #fff;
    border-radius: 50%;
  }

  .saturation__bar i b {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 17px rgba(255, 255, 255, 1.0);
    transform: translate(-50%, -50%);
  }
/* SATURATION END */

/* CATONOMETR START */
  .catonometr {
    position: absolute;
    top: 400px;
    left: 100px;
    width: 223px;
    height: 218px;
  }

  .catonometr__dashboard {
    width: 223px;
    height: 191px;
  }

  .catonometr__arrow {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 20px;
    height: 134px;
    transform: translate(-50%, 0%) rotate(0deg);
    transform-origin: 50% 80%;
  }

  .catonometr__arrow.position-1 { transform: translate(-50%, 0%) rotate(-130deg); }
  .catonometr__arrow.position-2 { transform: translate(-50%, 0%) rotate(-85deg); }
  .catonometr__arrow.position-3 { transform: translate(-50%, 0%) rotate(-45deg); }
  .catonometr__arrow.position-4 { transform: translate(-50%, 0%) rotate(0deg); }
  .catonometr__arrow.position-5 { transform: translate(-50%, 0%) rotate(45deg); }
  .catonometr__arrow.position-6 { transform: translate(-50%, 0%) rotate(85deg); }

  .catonometr__arrow.position-1 .cat-color { fill: #ff0000; }
  .catonometr__arrow.position-2 .cat-color { fill: #ff6666; }
  .catonometr__arrow.position-3 .cat-color { fill: #ff9999; }
  .catonometr__arrow.position-4 .cat-color { fill: #ffcccc; }
  .catonometr__arrow.position-5 .cat-color { fill: #ffe6e6; }
  .catonometr__arrow.position-6 .cat-color { fill: #ffffff; }

  .catonometr__arrow svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: 50% 100%;
  }

  .catonometr__arrow svg.arrow { z-index: 1; }
  .catonometr__arrow svg.shadow { z-index: 0; }

  .catonometr__cat {
    position: absolute;
    bottom: 16px;
    left: 50%;
    width: 83px;
    transform: translate(-50%, 0);
  }
/* CATONOMETR END */

/* VORTEX START */
  .vortex {
    position: absolute;
    bottom: 36vh;
    left: 50%;
    width: 645px;
    height: 340px;
    transform: translateX(-50%);
    z-index: 1;
  }

  .vortex img {
    position: absolute;
    transform-origin: center center;
  }

  .vortex__1 { top: -24px; left: 174px; width: 377px; }
  .vortex__2 { top: 0; left: -26px; width: 278px; }
  .vortex__3 { top: 4px; right: -24px; width: 345px; }
  .vortex__4 { top: 66px; left: -10px; width: 437px; }
  .vortex__5 { top: 124px; left: 184px; width: 397px; }
  .vortex__6 { top: 156px; left: 168px; width: 397px; }
  .vortex__7 { bottom: -14px; left: 130px; width: 60px; }
  .vortex__8 { bottom: -14px; right: 100px; width: 68px; }
/* VORTEX END */

/* MODAL START */
  .modal-backdrop.show { display: none; }

  .modal-dialog { margin-left: auto; margin-right: auto; max-width: 852px; }

  .modal-content {
    background: rgba(0, 0, 0, 0.79);
    box-shadow: 0 19px 159px 0 rgba(255, 232, 148, 0.36);
    border-width: 2px;
    border-style: solid;
    border-image: linear-gradient(90deg, #a87f36 0%, #f8d490 37.5%, #f8d490 59.5%, #a87f36 100%) 1;
    backdrop-filter: blur(16px);
  }

  .modal-body { padding: 78px 60px; }
  .modal-ph .modal-body { padding: 90px 85px 100px; }

  .modal-body :last-child { margin-bottom: 0 !important; }

  .modal-ico {
    margin: 0 auto 50px;
    width: 165px;
    height: 165px;
    border-radius: 50%;
    box-shadow: 0 4px 34px 0 rgba(254, 243, 183, 0.5);
  }

  .modal-ico img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .modal-title {
    margin-bottom: 50px;
    font-weight: 700;
    font-size: 48px;
    text-transform: uppercase;
    text-align: center;
  }

  .modal-text {
    margin-bottom: 50px;
    color: #fff;
    font-size: 48px;
    text-align: center;
  }

  .modal-text-small {
  	margin-bottom: 50px;
    color: #fff;
    font-size: 48px;
    text-align: center;
  }

  .modal-text b { font-weight: 800; }

  .modal .button { margin-bottom: 70px; }

  .modal-foot {
    margin: 0;
    font-size: 16px;
    text-align: center;
    opacity: 0.58;
  }

  .ph {
    margin: 0 auto 78px;
    width: 352px;
  }

  .ph h3 {
    margin-bottom: 20px;
    font-size: 18px;
    text-align: right;
  }

  .ph__table ul { display: flex; }

  .ph__table .numbers { margin-bottom: 16px; }

  .ph__table .numbers li {
    margin: 0 5px;
    width: 40px;
    font-size: 18px;
    text-align: center;
  }

  .ph__table .colors { position: relative; }

  .ph__table .colors::before {
    content:'';
    position: absolute;
    top: 0;
    left: 50%;
    width: calc(100% + (10px * 2));
    height: 100%;
    border: 2px solid #FEF3B7;
    transform: translate(-50%, 0);
    z-index: 1;
  }

  .ph__table .colors li {
    position: relative;
    margin: 0 5px;
    width: 40px;
    height: 40px;
  }

  .ph__table .colors li::before {
    content:'';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: calc(100% + (10px * 2));
    border: 2px solid #FEF3B7;
    transform: translate(0, -50%);
    z-index: 1;
  }

  .ph__table .colors li i {
    display: block;
    width: 100%;
    height: 100%;
    background: #fff;
  }

  .modal-probirka {
    display: flex;
    justify-content: center;
    position: relative;
    margin-bottom: 90px;
  }

  .modal-probirka .probirka {
    position: relative;
    bottom: 0;
    left: 0;
    width: 89px;
    height: 483px;
    transform: translate(0, 0);
  }

  .modal-probirka .vortex { top: 116px; }
/* MODAL END */