html {
    position: relative;
}

.type_browser {
    position: absolute;
    left: 50px;
    bottom: 27px;
    width: 22px;
    z-index: 99;
    cursor: pointer;
    width: 22px;
}
.bag_list .type_browser{
	left: auto;
  	right: 20px;
  	top: 22px;
	width: 13px;
	height: 13px;
	background: url('../img/x.png') no-repeat;
	transition: background 1s;
}
.bag_list .type_browser:hover{
	background: url('../img/x_hover.png') no-repeat;
	transition: background 0.2s;
}
.bag_list{
    width: 0;
    position: absolute;
    margin-left:0;
    background: #fff;
    color: #000000;
    font-size: 14px;
    transition: opacity 1s, width 1s 1s;
    top: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
  opacity: 0;
}
.bag_list .title{
	font-size: 18px;
  padding-bottom: 12px;
  padding-top: 5px;
}
.bag_list_content{
    margin: 15px 30px 70px 50px;
    position: relative;
  font-size: 14px;
  float: right;
  min-width: 225px;
}
.bag_list_content .one_day{
	padding-bottom: 16px;
}
.bag_list_content .one_day strong{
	font-weight: normal;
  	color:#909090;
  font-size :16px;
}

.bag_list.active{
    width: 280px;
  opacity: 1;
    transition: opacity 0.3s 0.5s;
  
}
@media screen and (min-width: 1600px){
    .bag_list.active{
        width: 300px;
    }
}


.refresh_bugs{
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: inline-block;
    cursor: pointer;
  	border: 1px solid #b26e9c;
  	border-radius: 3px;
  	font-size :14px;
    padding: 7px 24px 7px 32px;
	background: url('../img/push.png') 10px center no-repeat;
}
body {
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

#wrapper {
    position: relative;
    height: 100%;
    padding-top: 170px;
    font-family: 'PT Sans', sans-serif;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    transition-property: padding-top;
    -webkit-transition-property: padding-top;
    -moz-transition-property: padding-top;
    transition-duration: 1s;
    -webkit-transition-duration: 1s;
    -moz-transition-duration: 1s;
}

#page {
    text-align: center;
    position: relative;
}

.img {
    background-image: url('../img/eyes.png');
    background-position: 0 0;
    width: 170px;
    height: 100px;
    transition-property: left, top, margin-left, width, height, margin-top;
    -moz-transition-property: left, top, margin-left, width, height, margin-top;
    transition-duration: .7s;
    -moz-transition-duration: .7s;
    background-size: 100%;
    cursor: pointer;
    position: absolute;
    top: 50px;
    left: 50%;
    margin-left: -85px;
    opacity: 1;

}

.img.disabled {
    -webkit-animation: openclipeyes 0.3s steps(10) 1;
    -moz-animation: openclipeyes 0.3s steps(10) 1;
    animation: openclipeyes 0.3s steps(10) 1;
}

.img.active {
    opacity: 0;
    -webkit-animation: clipeyes 0.2s steps(10) 1;
    -moz--animation: clipeyes 0.2s steps(10) 1;
    animation: clipeyes 0.2s steps(10) 1;
}

@-webkit-keyframes clipeyes {
    0% {
        background-position: 0 0;
        opacity: 1;
    }
    100% {
        background-position: 0 -947px;
        opacity: 0;
    }
}

@-webkit-keyframes openclipeyes {
    0% {
        background-position: 0 -947px;
        opacity: 0;
    }
    50% {
        background-position: 0 -947px;
        opacity: 0;
    }
    100% {
        background-position: 0 0;
        opacity: 1;
    }
}

@-moz-keyframes clipeyes {
    0% {
        background-position: 0 0;
        opacity: 1;
    }
    100% {
        background-position: 0 -947px;
        opacity: 0;
    }
}

@-moz-keyframes openclipeyes {
    0% {
        background-position: 0 -947px;
        opacity: 0;
    }
    50% {
        background-position: 0 -947px;
        opacity: 0;
    }
    100% {
        background-position: 0 0;
        opacity: 1;
    }
}

@keyframes clipeyes {
    0% {
        background-position: 0 0;
        opacity: 1;
    }
    100% {
        background-position: 0 -947px;
        opacity: 0;
    }
}

@keyframes openclipeyes {
    0% {
        background-position: 0 -947px;
        opacity: 0;
    }
    50% {
        background-position: 0 -947px;
        opacity: 0;
    }
    100% {
        background-position: 0 0;
        opacity: 1;
    }
}

.mini {
    width: 90px;
    height: 52px;
    opacity: 0;
    position: absolute;
    top: 36px;
    left: 49px;
    background-size: 100%;
    background-image: url('../img/an-minieye.png');
    background-position: 0 0;
    cursor: default;
    transition-property: opacity;
    transition-duration: 1s;
	z-index: 1;
}

.mini:before {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    position: absolute;
    top: 50%;
    margin-top: -8px;
    left: 50%;
    margin-left: -6px;
    background: #fff;
    border-radius: 50%;
    transition-property: transform;
    transition-duration: .3s;
    transform: scale(1);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
}

.mini:hover:before {
    transition-property: transform;
    transition-duration: .3s;
    transform: scale(1.5);
    -webkit-transform: scale(1.5);
    -moz-transform: scale(1.5);
}

.mini.disabled {
    -webkit-animation: miniclipeyes 0.2s steps(14) 1;
    animation: miniclipeyes 0.2s steps(14) 1;
    -moz-animation: miniclipeyes 0.2s steps(14) 1;
}

.mini.active {
    opacity: 0.6;
    -webkit-animation: miniopenclipeyes 0.8s steps(14) 1;
    animation: miniopenclipeyes 0.8s steps(14) 1;
    -moz-animation: miniopenclipeyes 0.8s steps(14) 1;
}

.mini.active:hover {
    transition-property: opacity;
    transition-duration: 1s;
    opacity: 1;
    cursor: pointer;
}

@-webkit-keyframes miniclipeyes {
    0% {
        background-position: 0 0;
        opacity: 0.6;
    }
    100% {
        background-position: 0 -700px;
        opacity: 0;
    }
}

@-webkit-keyframes miniopenclipeyes {
    0% {
        background-position: 0 -700px;
        opacity: 0;
    }
    60% {
        background-position: 0 -700px;
        opacity: 0;
    }
    100% {
        background-position: 0 0;
        opacity: 0.6;
    }
}

@keyframes miniclipeyes {
    0% {
        background-position: 0 0;
        opacity: 0.6;
    }
    100% {
        background-position: 0 -700px;
        opacity: 0;
    }
}

@keyframes miniopenclipeyes {
    0% {
        background-position: 0 -700px;
        opacity: 0;
    }
    60% {
        background-position: 0 -700px;
        opacity: 0;
    }
    100% {
        background-position: 0 0;
        opacity: 0.6;
    }
}

@-moz-keyframes miniclipeyes {
    0% {
        background-position: 0 0;
        opacity: 0.6;
    }
    100% {
        background-position: 0 -700px;
        opacity: 0;
    }
}

@-moz-keyframes miniopenclipeyes {
    0% {
        background-position: 0 -700px;
        opacity: 0;
    }
    60% {
        background-position: 0 -700px;
        opacity: 0;
    }
    100% {
        background-position: 0 0;
        opacity: 0.6;
    }
}

.navi_block {
    position: absolute;
    top: 50%;
    margin-top: -45px;
    width: 100%;
    text-align: center;
}

.navi_block.stopped {
    top: 245px;
    margin-top: 0;
}

.audio_panel {
    display: inline-block;
    position: relative;
    margin-left: 24px;
}

.button {
    display: inline-block;
    border: 4px solid #fff;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
    padding: 12px 30px;
    transition-property: border;
    transition-duration: .1s;
}

.button:hover {
    border: 4px solid rgba(250, 250, 250, 0.4);
    color: #fff;
    transition-property: border;
    transition-duration: .1s;
}

.nav ul {
    padding: 0;
    text-align: center;
}

.nav li {
    display: inline;
    padding: 5px 10px;
}

.nav li a {
    text-decoration: none;
    color: #fff;
    border-bottom: 1px solid transparent;
    padding-bottom: 3px;
    transition-property: padding-bottom, border-bottom;
    transition-duration: .2s;
}

.nav li a:hover {
    border-bottom: 1px solid rgba(255, 255, 255, .4);
    padding-bottom: 0;
    transition-property: padding-bottom, border-bottom;
    transition-duration: 0.05s;
}

.footer {
    position: fixed;
    bottom: 0;
    height: 55px;
    width: 100%;
    color: #fff;
    text-align: center;
    z-index: 0;

}

.footer a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;

}

.mail {
    display: none;
    padding-top: 5px;
}

/******************* ***************************/

.header_block {
    width: 100%;
    height: 30px;
    background-image: linear-gradient(to top, #389e91, #2c7094);
}

/*******************************************/

.parent_animator {
    position: absolute;
  	top: 20px;
  	right: 20px;
  	left: 20px;
  	bottom: 20px;
}

.massiveBlock {
    display: none;
}

.massiveBlock .title {
    font-size: 34px;
    color: #fff;
    max-width: 400px;
    margin: 0 auto;
    line-height: 30px;
    text-align: center;
}

.massiveBlock .ex_text {
    color: #fff;
    font-size: 18px;
    text-align: center;
}

.massiveBlock.active {
    display: block;
}

.ex_text {
    max-width: 400px;
    margin: 0 auto;
}

.last .title {
    font-size: 30px;
    color: #fff;
    margin: 0 auto;
    max-width: 400px;
    text-align: center;

}

.extended_counter {
    width: 100%;
    color: #000;
    text-align: center;
    font-size: 37px;
    letter-spacing: -1px;
    display: none;
}

.extended_counter.active {
    display: block;
}

.extended_counter .time {
    display: inline-block;
    height: 50px;
    width: 55px;
    text-align: center;
    position: relative;
    margin-left: 5px;
    margin-right: 5px;
    color: #fff;

}

.extended_counter .time:first-child:before {
    content: '';
}

.extended_counter .time:before {
    content: ':';
    position: absolute;
    right: 100%;
    top: -3px;
    margin-right: 8px;
    color: #fff;
}

.timer {
    display: none;
    text-align: center;
    margin: 0 auto;
    font-size: 80px;
    color: #fff;
    position: relative;
    font-weight: bold;
    padding-top: 80px;
    padding-bottom: 90px;
}

.timer.active {
    display: block;
}

#start {
    position: relative;
    cursor: pointer;
  font-weight: normal;
}

.last {
    display: none;
}

.last.active {
    display: block;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'PT Sans', sans-serif;
    position: relative;
}

body.english .ru,
body.english .uk,
body.ukraine .eng,
body.ukraine .ru,
body .uk,
body .eng {
    display: none;
}


body.english .eng {
    display: inline-block;
}
body.ukraine .uk {
    display: inline-block;
}

html {
    height: 100%;
    background: #354c74;
    transition-property: background;
    transition-duration: 14s;
}

html.background {
    background: #527b9c;
    transition-property: background;
    transition-duration: 14s;
}

html.background2 {
    background: #c95b77;
    transition-property: background;
    transition-duration: 14s;
}

html.background3 {
    background: #895da0;
    transition-property: background;
    transition-duration: 14s;
}

html.background4 {
    background: #8adbb0;
    transition-property: background;
    transition-duration: 14s;
}

html.background5 {
    background: #9dc578;
    transition-property: background;
    transition-duration: 14s;
}

html.background6 {
    background: #e97e82;
    transition-property: background;
    transition-duration: 14s;
}

html.background7 {
    background: #c160a1;
    transition-property: background;
    transition-duration: 14s;
}

html.background8 {
    background: #3ac1a1;
    transition-property: background;
    transition-duration: 14s;
}

html.background9 {
    background: #985d83;
    transition-property: background;
    transition-duration: 14s;
}

.volume {
    display: inline-block;
    width: 26px;
    height: 24px;
    background: url('../img/icons.png') no-repeat;
    cursor: pointer;
    position: relative;
    top: 8px;
    opacity: .6;
}

.volume:hover {
    opacity: 1;
}

.volume.first {
    background-position: 0 0;
}

.volume.second {
    background-position: 0 -33px;
}

.volume.three {
    background-position: 0 -100px;
}

.volume.off {
    background-position: 0 -67px;
}

.muted {
    display: inline-block;
    width: 26px;
    height: 24px;
    cursor: pointer;
    position: relative;
    background: url('../img/icons.png') 0 -65px no-repeat;
}

.volume_list {
    position: absolute;
    margin: 0;
    padding: 0;
    list-style: none;
    top: 100%;
    left: 0;
    margin-top: 12px;
}
.volume_list.active .slide_line_volume{
    visibility: visible;
    opacity: 1;
    transition-property: visibility, opacity;
    transition-duration: 1s;
}
.volume_list .close {
    opacity: 0;
    transition-property: opacity, z-index;
    transition-duration: 0.5s;
    z-index: -1;
    position: relative;
}

.volume_list.active .close {
    opacity: 0.6;
    transition-property: opacity, z-index;
    transition-duration: 0.5s;
    z-index: 1;
}

.volume_list.active .close:hover {
    opacity: 1;
    transition-duration: 0.1s;
}

.volume_list li:first-child .close {
    transition-delay: 0.15s
}

.volume_list li:nth-child(2) .close {
    transition-delay: 0.1s
}

.volume_list li:nth-child(3) .close {
    transition-delay: 0.05s
}

.volume_list li:nth-child(4) .close {
    transition-delay: 0s
}

.volume_list.active li:first-child .close {
    transition-delay: 0s
}

.volume_list.active li:nth-child(2) .close {
    transition-delay: 0.02s
}

.volume_list.active li:nth-child(3) .close {
    transition-delay: 0.04s
}

.volume_list.active li:nth-child(4) .close {
    transition-delay: 0.06s
}

.volume_list .voices {
    display: inline-block;
    width: 26px;
    height: 24px;
    cursor: pointer;
    margin-bottom: 5px;
}

.volume_list .voices.first_voice {
    background: url('../img/icons.png') no-repeat;
}

.volume_list .voices.second_voice {
    background: url('../img/icons.png') 0 -35px no-repeat;
}

.volume_list .voices.three_voice {
    background: url('../img/icons.png') 0 -100px no-repeat;
}

.option_panel {
    position: absolute;
    right: 50px;
    top: 41px;
	z-index: 1;
}

@media screen and (max-width: 400px) {
    .option_panel {
        right: 5px;
    }
}

.option_panel .language_panel {
    display: inline-block;
    width: 24px;
    height: 20px;
    border: 1px solid #fff;
    color: #fff;
    text-align: center;
    padding-top: 3px;
    font-size: 14px;
    text-decoration: none !important;
    border-radius: 3px;
    opacity: .8;
    cursor: pointer;
    transition: 0.3s;
}

.option_panel .language_panel:hover {
    opacity: 1;
    border: 1px solid rgba(255, 255, 255, .6);
    transition: 0.1s;
}

.instruction_block {
    max-width: 600px;
    padding: 0 32px;
    margin: 0 auto;
    color: #fff;
    font-size: 16px;
    text-align: left;
}

.instruction_block .title {
    font-size: 40px;
    letter-spacing: -1px;
    line-height: 35px;
    max-width: 600px;
    text-align: left;
    padding-bottom: 32px;
}

.instruction_block .nav_info {
    padding-top: 12px;
}

.instruction_block .nav_info .button {
    margin-left: 24px;
}

#gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.instruction_block .nav_info input[type="checkbox"] {
    display: none;
}

.instruction_block .nav_info input[type="checkbox"] + label {
    display: inline-block;
    cursor: pointer;
}

.instruction_block .nav_info .check {
    position: relative;
    top: 2px;
}

.instruction_block .nav_info input[type="checkbox"] + label:hover .check {
    opacity: .4;
    transition-property: opacity;
    transition-duration: 0.2s;
}

.instruction_block .nav_info input[type="checkbox"] + label .check {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../img/checkbox_off1.png') 0 center no-repeat;
    opacity: 1;
    transition-property: opacity;
    transition-duration: 0.6s;
}

.instruction_block .nav_info input[type="checkbox"]:checked + label .check {
    -webkit-animation: checkboxOn 0.1s steps(27) 1;
    animation: checkboxOn 0.1s steps(26) 1;
    -moz-animation: checkboxOn 0.1s steps(26) 1;
    background: url('../img/checkbox_on1.png') 0 center no-repeat;

}

@keyframes checkboxOn {
    0% {
        background: url('../img/check1.png') 0 0 no-repeat;
    }
    100% {
        background: url('../img/check1.png') 0 -416px no-repeat;
    }
}

@-webkit-keyframes checkboxOn {
    0% {
        background: url('../img/check1.png') 0 0 no-repeat;
    }
    100% {
        background: url('../img/check1.png') 0 -432px no-repeat;
    }
}

@-moz-keyframes checkboxOn {
    0% {
        background: url('../img/check1.png') 0 0 no-repeat;
    }
    100% {
        background: url('../img/check1.png') 0 -432px no-repeat;
    }
}
.slide_line_volume{
    width: 20px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    position: absolute;
    right: 3px;
    top: 35px;
    visibility: hidden;
    opacity: 0;

    transition-property: visibility, opacity;
    transition-duration: 1s;
}

.slide_line_volume.active{
    visibility: visible;
    opacity: 0.6;

    transition-property: visibility, opacity;
    transition-duration: 1s;
}
.slide_line_volume.active:hover{
	opacity: 1;
}
.slide_line_volume .after{
    background :#fff;
    top: auto !important;
    height: 100%;
	z-index:1;

}
.slide_line_volume .after,
.slide_line_volume .before{
    content: '';
    position: absolute;
    displaY: block;
    width: 6px;
    top: 0px;
    bottom: 0;
    left: 0;
    margin-left: 7px;
    z-index:0;
    border:1px solid #fff;
    border-radius: 3px;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}
.point_volume{
    position: relative;
    z-index: 1;
    height: 10px;
}
.point_volume.active{
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
}
.volume_list_wrapper{
  margin-left: 10px;
  position: relative;
  top: 3px;
  displaY: inline-block;
}

.volume_panel{
   width: 24px;
  height: 19px;
  display: inline-block;
  background-image: url('../img/volume.png');
  background-position: 0 0;
  opacity: .6;
}
.volume_list_wrapper:hover .volume_panel{
	opacity: 1;
  cursor: pointer;
}

.volume_panel#minimum{
		background-position: 0 -53px;
         position: relative;
    	top:-1px;
}
.volume_panel#medium{
	background-position: 0 -36px;	
}
.volume_panel#middle{
	background-position: 0 -18px;
}
.volume_panel#maximum{
background-position: 0 0;	
}

/* --- Современное главное меню --- */
.main-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px 16px 40px;
  background: var(--menu-bg, #fff);
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.07);
  border-radius: 0 0 32px 32px;
  position: relative;
  z-index: 10;
  margin-bottom: 32px;
  transition: background 0.5s;
}

.menu-title {
  font-family: 'PT Sans', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--menu-title, #222);
  letter-spacing: 2px;
  text-align: center;
  flex: 1;
}
.menu-subtitle {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: var(--menu-subtitle, #888);
  margin-top: 2px;
  letter-spacing: 1px;
}

.eyes-container {
  display: flex;
  gap: 24px;
  align-items: center;
}
.eye {
  width: 48px;
  height: 48px;
  background: #fff;
  border: 3px solid #e0e0e0;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border 0.3s, background 0.3s;
}
.eyeball {
  width: 18px;
  height: 18px;
  background: #222;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s cubic-bezier(.4,2,.6,1), background 0.3s;
  box-shadow: 0 0 8px 2px rgba(0,0,0,0.12);
}

.theme-switcher {
  margin-left: 32px;
  margin-right: 8px;
}
.theme-switcher input[type="checkbox"] {
  display: none;
}
.switch-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  width: 48px;
  height: 28px;
  background: linear-gradient(90deg, #e0e0e0 0%, #bdbdbd 100%);
  border-radius: 16px;
  position: relative;
  transition: background 0.3s;
}
.switch-icon {
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 2px;
  top: 2px;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
  transition: left 0.3s, background 0.3s;
}
#theme-toggle:checked + .switch-label {
  background: linear-gradient(90deg, #222 0%, #444 100%);
}
#theme-toggle:checked + .switch-label .switch-icon {
  left: 22px;
  background: #222;
}

.colorful-bar {
  display: flex;
  gap: 8px;
  margin-left: 24px;
}
.colorful {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 12px 2px rgba(0,0,0,0.10);
  animation: shimmer 2.5s infinite linear;
}
.colorful.green {
  background: linear-gradient(135deg, #00ff99 0%, #00c853 100%);
  animation-delay: 0s;
}
.colorful.blue {
  background: linear-gradient(135deg, #00b0ff 0%, #2962ff 100%);
  animation-delay: 0.7s;
}
.colorful.red {
  background: linear-gradient(135deg, #ff1744 0%, #ff9100 100%);
  animation-delay: 1.4s;
}
@keyframes shimmer {
  0% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.5) saturate(2); box-shadow: 0 0 32px 8px rgba(0,0,0,0.18); }
  100% { filter: brightness(1) saturate(1); }
}

/* --- Темная тема --- */
body.dark-theme, html.dark-theme {
  --menu-bg: #181c24;
  --menu-title: #fff;
  --menu-subtitle: #b0b8c1;
  background: #10131a !important;
  color: #e0e6ef;
}
body.dark-theme .main-menu {
  background: var(--menu-bg, #181c24);
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.25);
}
body.dark-theme .menu-title,
body.dark-theme .menu-subtitle {
  color: var(--menu-title, #fff);
}
body.dark-theme .eye {
  background: #23293a;
  border: 3px solid #333b4d;
}
body.dark-theme .eyeball {
  background: #e0e6ef;
}
body.dark-theme .switch-label {
  background: linear-gradient(90deg, #222 0%, #444 100%);
}
body.dark-theme .switch-icon {
  background: #222;
}
body.dark-theme .colorful {
  box-shadow: 0 0 24px 4px rgba(0,0,0,0.25);
}

/* --- /Современное главное меню --- */

/* Интеграция с современным UI */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
    background-color: var(--background-primary, #0f172a);
    color: var(--text-primary, #f1f5f9);
}

/* Улучшенные стили для существующих элементов */
.massiveBlock {
    transition: all 0.3s ease;
}

.massiveBlock.active {
    opacity: 1;
    transform: translateY(0);
}

/* Анимации для глаз */
.eye {
    transition: transform 0.3s ease;
}

.eyeball {
    transition: transform 0.2s ease;
}

/* Улучшенные стили для кнопок */
.button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.button:hover::before {
    left: 100%;
}

/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color, #6366f1);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.notification.show {
    transform: translateX(0);
}

/* Звуковые эффекты */
.sound-effect {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--primary-color, #6366f1);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    animation: soundPulse 0.5s ease-out;
}

@keyframes soundPulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Адаптивность для новых элементов */
@media (max-width: 768px) {
    /* Основные контейнеры */
    body {
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }
    
    .app-container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    /* Хедер */
    .main-header {
        padding: 0.5rem !important;
        height: auto !important;
        min-height: 60px !important;
    }
    
    .header-container {
        flex-direction: column !important;
        gap: 0.5rem !important;
        padding: 0.5rem !important;
    }
    
    .logo-section {
        justify-content: center !important;
        width: 100% !important;
    }
    
    .header-controls {
        justify-content: center !important;
        width: 100% !important;
    }
    
    .control-group {
        gap: 0.5rem !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    /* Кнопки управления */
    .control-btn {
        min-width: 48px !important;
        height: 48px !important;
        padding: 12px !important;
        margin: 2px !important;
    }
    
    /* Основной контент */
    .main-content {
        padding: 0.5rem !important;
        margin: 0 !important;
    }
    
    .hero-section {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 0.5rem !important;
    }
    
    .hero-title {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
        text-align: center !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-description {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
    }
    
    /* Кнопка начала упражнений */
    .start-exercises-btn {
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        display: block !important;
    }
    
    /* Информационные блоки */
    .trust-indicators {
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: center !important;
        margin: 1rem 0 !important;
    }
    
    .trust-item {
        width: 100% !important;
        max-width: 280px !important;
        padding: 0.75rem !important;
        margin: 0.25rem 0 !important;
        justify-content: center !important;
    }
    
    .exercise-info {
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: center !important;
        margin: 1rem 0 !important;
    }
    
    .info-item {
        width: 100% !important;
        max-width: 250px !important;
        padding: 0.75rem !important;
        margin: 0.25rem 0 !important;
        justify-content: center !important;
    }
    
    /* Блоки упражнений */
    .main-hero-block,
    .massiveBlock {
        margin: 0.5rem !important;
        padding: 1rem !important;
        width: calc(100% - 1rem) !important;
        box-sizing: border-box !important;
    }
    
    /* Меню */
    .menu-container {
        padding: 0.5rem !important;
    }
    
    .menu-controls {
        gap: 0.5rem !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    
    .button {
        min-width: 48px !important;
        height: 48px !important;
        padding: 12px !important;
    }
}

@media (max-width: 480px) {
    /* Основные контейнеры */
    body {
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }
    
    .app-container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    /* Хедер */
    .main-header {
        padding: 0.25rem !important;
        height: auto !important;
        min-height: 50px !important;
    }
    
    .header-container {
        flex-direction: column !important;
        gap: 0.25rem !important;
        padding: 0.25rem !important;
    }
    
    .logo-section {
        justify-content: center !important;
        width: 100% !important;
    }
    
    .header-controls {
        justify-content: center !important;
        width: 100% !important;
    }
    
    .control-group {
        gap: 0.25rem !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    /* Кнопки управления */
    .control-btn {
        min-width: 44px !important;
        height: 44px !important;
        padding: 10px !important;
        margin: 1px !important;
    }
    
    /* Основной контент */
    .main-content {
        padding: 0.25rem !important;
        margin: 0 !important;
    }
    
    .hero-section {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
        padding: 0.25rem !important;
    }
    
    .hero-title {
        font-size: 1.25rem !important;
        line-height: 1.2 !important;
        text-align: center !important;
        margin-bottom: 0.25rem !important;
    }
    
    .hero-description {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        text-align: center !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Кнопка начала упражнений */
    .start-exercises-btn {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        padding: 0.875rem 1.25rem !important;
        font-size: 0.95rem !important;
        display: block !important;
    }
    
    /* Информационные блоки */
    .trust-indicators {
        flex-direction: column !important;
        gap: 0.25rem !important;
        align-items: center !important;
        margin: 0.5rem 0 !important;
    }
    
    .trust-item {
        width: 100% !important;
        max-width: 220px !important;
        padding: 0.5rem !important;
        margin: 0.125rem 0 !important;
        justify-content: center !important;
    }
    
    .exercise-info {
        flex-direction: column !important;
        gap: 0.25rem !important;
        align-items: center !important;
        margin: 0.5rem 0 !important;
    }
    
    .info-item {
        width: 100% !important;
        max-width: 200px !important;
        padding: 0.5rem !important;
        margin: 0.125rem 0 !important;
        justify-content: center !important;
    }
    
    /* Блоки упражнений */
    .main-hero-block,
    .massiveBlock {
        margin: 0.25rem !important;
        padding: 0.5rem !important;
        width: calc(100% - 0.5rem) !important;
        box-sizing: border-box !important;
    }
    
    /* Меню */
    .menu-container {
        flex-direction: column !important;
        gap: 0.5rem !important;
        padding: 0.25rem !important;
    }
    
    .menu-controls {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 0.25rem !important;
    }
    
    .button {
        min-width: 44px !important;
        height: 44px !important;
        padding: 10px !important;
    }
    
    /* Брендинг */
    .brand-name {
        font-size: 1.25rem !important;
    }
    
    .brand-subtitle {
        font-size: 0.85rem !important;
    }
}

.massiveBlock {
  background: rgba(255,255,255,0.96) !important;
  border: 1.5px solid #e0e6ef !important;
  box-shadow: 0 8px 40px 0 rgba(80,80,120,0.13), 0 1.5px 8px 0 rgba(80,80,120,0.10) !important;
}
[data-theme="dark"] .massiveBlock {
  background: rgba(24,28,36,0.98) !important;
  border: 1.5px solid #23293a !important;
}

/* ===== УЛУЧШЕННАЯ КОНТРАСТНОСТЬ И ВИДИМОСТЬ ===== */

/* Основные стили для блоков упражнений */
.massiveBlock {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 2px solid #e0e6ef !important;
  box-shadow: 
    0 8px 40px 0 rgba(80, 80, 120, 0.15),
    0 1.5px 8px 0 rgba(80, 80, 120, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .massiveBlock {
  background: rgba(24, 28, 36, 0.98) !important;
  border: 2px solid #23293a !important;
  box-shadow: 
    0 8px 40px 0 rgba(0, 0, 0, 0.3),
    0 1.5px 8px 0 rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Улучшенная видимость текста в упражнениях */
.instruction-text {
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.8),
    0 0 0 2px rgba(0, 0, 0, 0.05);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.02em;
}

[data-theme="dark"] .instruction-text {
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 2px rgba(255, 255, 255, 0.05);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.instruction-subtext {
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.6);
  font-weight: 500;
  color: var(--text-secondary);
  opacity: 0.9;
}

[data-theme="dark"] .instruction-subtext {
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  opacity: 0.8;
}

/* Дополнительная контрастность для всех текстовых элементов */
.title,
.exercise-title,
.hero-title {
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

[data-theme="dark"] .title,
[data-theme="dark"] .exercise-title,
[data-theme="dark"] .hero-title {
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Улучшенная видимость кнопок */
.button,
.start-exercises-btn,
.control-btn {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Дополнительная подсветка для важных элементов */
.massiveBlock::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 50%, 
    rgba(255, 255, 255, 0.1) 100%);
  pointer-events: none;
  z-index: 1;
}

[data-theme="dark"] .massiveBlock::after {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.05) 0%, 
    rgba(255, 255, 255, 0.02) 50%, 
    rgba(255, 255, 255, 0.05) 100%);
}

/* Улучшенная видимость прогресс-бара */
.progress-bar {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .progress-bar {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Улучшенная видимость иконок */
.info-icon {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

[data-theme="dark"] .info-icon {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Дополнительная подсветка для глаз в упражнениях */
.exercise-eye .eye-outer {
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .exercise-eye .eye-outer {
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

/* Улучшенная видимость уведомлений */
.notification {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Дополнительная контрастность для всех элементов */
* {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Улучшенная видимость в светлой теме */
@media (prefers-contrast: high) {
  .massiveBlock {
    background: #ffffff !important;
    border: 3px solid #000000 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
  }
  
  .instruction-text {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    text-shadow: none !important;
    font-weight: 900 !important;
  }
  
  .instruction-subtext {
    color: #333333 !important;
    text-shadow: none !important;
    font-weight: 600 !important;
  }
}

/* Дополнительные стили для лучшей видимости */
.exercise-content {
  position: relative;
  z-index: 2;
}

.exercise-instruction {
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .exercise-instruction {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Улучшенная видимость таймера */
.timer-display {
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
  font-size: 2rem;
  letter-spacing: 0.1em;
}

[data-theme="dark"] .timer-display {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Дополнительная подсветка для кнопок управления */
.pause-btn,
.skip-btn {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .pause-btn,
[data-theme="dark"] .skip-btn {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Улучшенная видимость прогресс-текста */
.progress-text {
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

[data-theme="dark"] .progress-text {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Дополнительная контрастность для всех SVG иконок */
svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

[data-theme="dark"] svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Улучшенная видимость в фокусе */
button:focus,
.control-btn:focus {
  outline: 3px solid var(--border-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Дополнительная анимация для привлечения внимания */
@keyframes attentionPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.9;
  }
}

.instruction-text.attention {
  animation: attentionPulse 2s ease-in-out infinite;
}

/* Улучшенная видимость для слабовидящих */
@media (prefers-reduced-motion: no-preference) {
  .massiveBlock {
    transition: all 0.3s ease;
  }
  
  .instruction-text,
  .instruction-subtext {
    transition: all 0.3s ease;
  }
}

/* Дополнительная контрастность для всех интерактивных элементов */
button:hover,
.control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] button:hover,
[data-theme="dark"] .control-btn:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Улучшенная видимость для всех текстовых элементов */
p, span, div {
  text-rendering: optimizeLegibility;
}

/* Дополнительная подсветка для важных элементов */
.hero-title,
.exercise-title,
.instruction-text {
  position: relative;
}

.hero-title::after,
.exercise-title::after,
.instruction-text::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    transparent 50%, 
    rgba(255, 255, 255, 0.1) 100%);
  pointer-events: none;
  z-index: -1;
  border-radius: 0.5rem;
}

[data-theme="dark"] .hero-title::after,
[data-theme="dark"] .exercise-title::after,
[data-theme="dark"] .instruction-text::after {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.05) 0%, 
    transparent 50%, 
    rgba(255, 255, 255, 0.05) 100%);
}

/* Финальные улучшения для максимальной видимости */
.massiveBlock {
  position: relative;
  isolation: isolate;
}

.massiveBlock > * {
  position: relative;
  z-index: 2;
}

/* Дополнительная подсветка для всех элементов в светлой теме */
@media (prefers-color-scheme: light) {
  .massiveBlock {
    background: #ffffff !important;
    border: 2px solid #e0e6ef !important;
    box-shadow: 
      0 8px 40px 0 rgba(80, 80, 120, 0.15),
      0 1.5px 8px 0 rgba(80, 80, 120, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.8),
      0 0 0 1px rgba(0, 0, 0, 0.05) !important;
  }
  
  .instruction-text {
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
    text-shadow: 
      0 2px 4px rgba(0, 0, 0, 0.1),
      0 0 0 1px rgba(255, 255, 255, 0.8) !important;
    font-weight: 900 !important;
  }
  
  .instruction-subtext {
    color: #4a4a4a !important;
    text-shadow: 
      0 1px 2px rgba(0, 0, 0, 0.1),
      0 0 0 1px rgba(255, 255, 255, 0.6) !important;
    font-weight: 600 !important;
  }
}
