:root {
--accent: #c9e0f4;
--dark: #1b1b1b;
--gray: #888888;
--text: #333333;
--smoky_white: #f2f2f2;
--hover: #2a2a2e;

--progress1: #DA9393;
--progress2: #ECA48E;
--progress3: #DAB47C;
--progress4: #E3CC87;
--progress5: #DCD598;
--progress6: #C5CA93;
--progress7: #B5C89F;
--progress8: #99B89A;
--progress9: #8EB19F;
}

b{
font-family: 'ZenKakuGothicNew-Medium', sans-serif;
}

@font-face {
font-family: 'Raleway';
src: url('/res/fonts/Raleway-Regular.woff2') format('woff2'),
 url('/res/fonts/Raleway-Regular.woff') format('woff');
font-weight: 400;
font-display: swap;
}

@font-face {
font-family: 'Raleway-Medium';
src: url('/res/fonts/Raleway-Medium.woff2') format('woff2'),
 url('/res/fonts/Raleway-Medium.woff') format('woff');
font-weight: 400;
font-display: swap;
}

@font-face {
font-family: 'ZenKakuGothicNew-Regular';
src: url('/res/fonts/ZenKakuGothicNew-Regular.woff2') format('woff2'),
 url('/res/fonts/ZenKakuGothicNew-Regular.woff') format('woff');
font-weight: 400;
font-display: swap;
}

@font-face {
font-family: 'ZenKakuGothicNew-Medium';
src: url('/res/fonts/ZenKakuGothicNew-Medium.woff2') format('woff2'),
 url('/res/fonts/ZenKakuGothicNew-Medium.woff') format('woff');
font-weight: bold;
font-display: swap;
}

@font-face {
font-family: 'ZenKakuGothicNew-Bold';
src: url('/res/fonts/ZenKakuGothicNew-Bold.woff2') format('woff2'),
 url('/res/fonts/ZenKakuGothicNew-Bold.woff') format('woff');
font-weight: bold;
font-display: swap;
}


body {
margin: 0;
font-family: "ZenKakuGothicNew-Regular", serif;
background: white;
transition: .5s;
-webkit-tap-highlight-color: transparent;
color: var(--text);
user-select: none;
font-optical-sizing: auto;
}

h1, h2, h3 {
font-family: "Raleway", serif;
font-weight: normal;
margin: 0;
}

p {
margin: 0;
}


#header {
height: 60px;
position: fixed;
background: rgb(255, 255, 255, 0.9);
width: 100%;
top: 0;
z-index: 100;
font-family: "Raleway", serif;
display: flex;
align-items: center;
justify-content: flex-end;
box-sizing: border-box;
padding: 0 20px;
transition:.25s;
}
#header:hover {
background: white;
}

#header:before {
content: "";
width: 100%;
position: absolute;
height: 0;
background: white;
left: 0;
transition:.2s linear;
top: 0;
}


.link{
height: 100%;
display: flex;
font-family: "Raleway-Medium", sans-serif;
align-items: center;
justify-content: center;
padding: 0 20px;
box-sizing: border-box;
color: var(--dark);
text-decoration: none;
position:relative;
font-size: 14px;
z-index: 1;
cursor: pointer;
transition: .2s;
}

.links {
display: flex;
height: 100%;
position: relative;
}

.link:before {
content: "";
position: absolute;
width: 0;
height: 2px;
background: var(--dark);
bottom: 10px;
transition:.2s;
left: 50%;
transform: translate(-50%);
}

.title_block {
margin: 100px auto 80px;
max-width: 900px;
text-align: center;
}

.title {
font-size: 52px;
font-family: "Raleway", serif;
}

.subtitle {
font-size: 19px;
margin-top: 40px;
}

.maintenance {
width: 100%;
top: 0;
height: 100vh;
background: white;
position: fixed;
text-align: center;
flex-direction: column;
display: flex;
align-items: center;
justify-content: center;
left: 0;
z-index: 51;
font-size: 20px;
}

.maintenance>img {
width: 120px;
}
.maintenance>div{
max-width: 800px;
margin-top: 40px;
}
@media (min-width: 901px) {
.link:hover:before {
width: 40px;
}
}

.logo {
position:absolute;
height: 60%;
left: 20px;
}
.logo>img {
height: 100%;
}
.theory>font,
.practice>font{
display: inline-flex;
position:relative;
}
.theory>font:after,
.practice>font:after{
content: "";
position: relative;
transition: .3s;
display: block;
border-right: 5px solid transparent;
border-top: 5px solid var(--dark);
border-bottom: 5px solid transparent;
border-left: 5px solid transparent;
margin-left: 10px;
margin-top: 6px;
}

.services {
position: absolute;
display: flex;
opacity:0;
visibility:hidden;
flex-direction: column;
padding-bottom:10px;
background: white;
top: 100%;
border-left: 1px solid #eaeaea;
border-right: 1px solid #eaeaea;
border-bottom: 1px solid #eaeaea;
transition:.3s;
}
.practice:hover>.services,
.theory:hover>.services {
opacity:1;
visibility:visible;
}

.services>a {
text-decoration: none;
position: relative;
color: var(--dark);
font-size: 13px;
width: max-content;
min-width: 100%;
box-sizing: border-box;
padding: 9px 30px;
text-align: center;
text-transform: uppercase;
}
.services>a:after {
content: "";
position: absolute;
width: 0;
height: 2px;
background: var(--accent);
bottom: 0;
transition:.2s;
left: 50%;
transform: translate(-50%);
}
.services>a:hover:after {
width: 40px;
}

.menu_icon {
width: 30px;
cursor: pointer;
height: 30px;
align-items: center;
justify-content: center;
overflow: hidden;
margin: 0 5px;
right: 7px;
position: absolute;
display: none;
}

.menu_icon>div {
width: 95%;
height: 7%;
background: var(--dark);
position: absolute;
transition: 0.25s ease;
}

.menu_icon>div:nth-child(1) {
margin-top: -52%;
}

.menu_icon>div:nth-child(2) {
transform-origin: 50% 50%;
}

.menu_icon>div:nth-child(3) {
transform-origin: 50% 50%;
opacity: 0;
transform: rotate(-45deg);
}

.menu_icon>div:nth-child(4) {
margin-top: 52%;
transform-origin: 100% 100%;
}

.menu_icon_active>div:nth-child(1) {
margin-left: -200%;
}

.menu_icon_active>div:nth-child(2) {
transform: rotate(-45deg);
}

.menu_icon_active>div:nth-child(3) {
transform: rotate(-135deg);
opacity: 1;
transition: .2s linear;
transition-delay: .2s;
}

.menu_icon_active>div:nth-child(4) {
margin-left: 200%;
}


footer {
box-sizing: border-box;
width: 100%;
overflow: hidden;
position: relative;
display: flex;
padding: 80px 40px;
background: #1b1b1b;
justify-content:space-between;
}

footer>div{
display:flex;
}

footer>div:nth-child(1)>.footer_services>div {
color:white;
font-size: 22px;
}
.logo_footer {
display: block;
max-width: 200px;
margin-bottom:10px;
}

.logo_footer>img {
width:100%;
}

.footer_services{
display: flex;
flex-direction: column;
margin: 0 30px;
max-width:350px;
}


.footer_services a,
.footer_text{
text-decoration: none;
color: white;
display: block;
padding: 5px 0;
font-size: 14px;
position: relative;
transition: .25s;
top:0;
}

.footer_services>a {
width:max-content;
}

.footer_text {
user-select: text;
}

.footer_services a:hover {
opacity:.7;
}

.title_footer {
font-family: "Raleway-Medium", serif;
font-size: 15px;
color: white;
margin-bottom: 10px;
position: relative;
padding-bottom: 10px;
text-transform: uppercase;
}

#picture_preview {
background: #ffffff38;
backdrop-filter: blur(4px);
height: 100%;
width: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 100;
opacity: 0;
visibility: hidden;
transition: .3s;
}

#picture_preview>img {
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
position: absolute;
width: 95%;
height: 95%;
object-fit: contain;
}

#report {
margin-bottom: -150px;
position: fixed;
bottom: 0;
background: white;
width: 100%;
left: 0;
z-index: 10000000000000000000;
box-sizing: border-box;
padding: 25px;
text-align: center;
font-size: 18px;
visibility: hidden;
}

.report {
animation: report 3s ease-in-out;
}

@keyframes report {
30% {
visibility: visible;
}

30% {
visibility: visible;
margin-bottom: 0px;
}

75% {
visibility: visible;
margin-bottom: 0px;
}

99% {
visibility: visible;
margin-bottom: -120px;
}

100%{
visibility: hidden;
}
}

#cookie_block {
display: flex;
position: fixed;
background: white;
border: 1px solid #eaeaea;
width: max-content;
left: 50%;
border-radius: 100px;
transform: translate(-50%);
bottom: 30px;
padding: 10px 10px 10px 20px;
box-sizing: border-box;
text-align: center;
align-items: center;
font-size: 19px;
justify-content: center;
z-index: 50;
}

#cookie_text>a {
color:inherit;
}

#accept_cookie {
color: white;
background: var(--dark);
border-radius: 100px;
margin-left: 20px;
cursor: pointer;
font-family: "Raleway-Medium", serif;
height: 45px;
width: 150px;
display: flex;
align-items: center;
font-size: 17px;
justify-content: center;
border: none;
}

#breadcrumbs {
width: max-content;
position: relative;
margin-bottom: 20px;
font-size: 14px;
padding: 10px 0;
white-space: pre-wrap;
}

#breadcrumbs>a {
color: var(--gray);
padding: 10px 0;
display: inline;
}

#breadcrumbs>a:last-child {
padding: 0;
}

#breadcrumbs>a:hover {
color: var(--text);
transition: .25s;
}

#pre_media {
text-align: center;
margin-top: 40px;
font-size: 15px;
}

#media {
width: max-content;
margin: 40px auto;
}

#media>a {
transition: .25s;
}

#media>a:hover {
transform: scale(1.03);
}

#media>a {
height: 50px;
margin: 0 5px;
display: inline-block;
}

#media>a>img {
height: 100%;
}

#material_author {
text-align: center;
font-size: 17px;
width: 300px;
margin: 80px auto;
}

#ivan {
color: inherit;
}

#heart {
width: 20px;
display: inline-block;
margin: 0 5px;
top: 4px;
position: relative;
}

#result {
position: relative;
width: 800px;
margin: 30px auto 25px;
transition: .4s;
opacity: 0;
}

#result_name {
font-size: 32px;
width: 63%;
}

#result_name>font {
display: block;
font-family: "Zen Kaku Gothic New", serif;
font-size: 19px;
color: var(--gray);
margin-top: 20px;
}

#score {
font-family: "Raleway", serif;
font-size: 120px;
vertical-align: top;
display: flex;
margin-top: -30px;
}

#score>font {
color: #CACACA;
font-size: 50px;
top: 35px;
margin-left: 10px;
position: relative;
}

#verbal_mark {
font-size: 22px;
margin-top: 50px;
}

#scale_block {
border-radius: 100px;
width: 100%;
height: 45px;
border: 2px solid #cdcdcd;
position: relative;
margin-top: 30px;
overflow: hidden;
}

#scale {
height: 100%;
border-radius: inherit;
transition: all 2.2s, background 0s;
display: flex;
align-items: center;
width: 0;
justify-content: end;
}

#percent {
color: white;
font-size: 19px;
opacity: 0;
transition: .4s;
margin-right: 20px;
}

#your_answer {
font-size: 32px;
font-family: "Raleway", serif;
margin-top: 50px;
text-align: center;
}


#mistake_list {
margin-top: 50px;
}

#actions {
display: flex;
margin-top: 80px;
width: 100%;
justify-content: center;
}

#actions>div,
#actions>a {
width: max-content;
position: relative;
background: var(--dark);
margin: 0 5px;
color: white;
padding: 15px 40px;
border-radius: 100px;
cursor: pointer;
text-decoration: none;
font-size: 17px;
font-family: "Raleway-Medium", serif;
text-align: center;
display: flex;
align-items: center;
transition: .25s;
}

#actions>div:hover,
#actions>a:hover {
background: var(--hover);
}


.button {
background: var(--dark);
color: white;
height: 50px;
text-align: center;
width: 120px;
border-radius: 100px;
cursor: pointer;
font-size: 17px;
font-family: "Raleway-Medium", serif;
display: flex;
align-items: center;
box-sizing: border-box;
justify-content: center;
transition: .3s;
}

.button:hover {
background: var(--hover);
}

#main_result {
display: flex;
justify-content: space-between;
}

.false_answer,
.true_answer {
width: 40px;
height: 40px;
min-width: 40px;
margin-right: 20px;
position: relative;
display: flex;
border: 3px solid var(--dark);
border-radius: 50%;
box-sizing: border-box;
align-items: center;
justify-content: center;
}

.true_answer {
background: var(--dark);
}

.true_answer:after,
.true_answer:before,
.false_answer:after {
content: "";
width: 50%;
height: 3px;
position: absolute;
background: var(--dark);
}

.true_answer:after,
.true_answer:before {
background: white;
}

.true_answer:before {
rotate: 90deg;
}

.line {
width: 150px;
background: var(--dark);
position: relative;
height: 3px;
margin: 0 auto;
display: flex;
align-items: center;
top: -80px;
}

.line:after,
.line:before {
content: "";
position: absolute;
width: 7px;
height: 7px;
background: var(--dark);
rotate: 45deg;
}

.line:after {
right: 0;
}

.end_line {
top: 0;
margin-top: 80px;
}

#start_task {
opacity: 1;
max-width: calc(100% - 40px);
min-height: calc(100vh - 200px);
margin: -10px auto 80px;
align-items: center;
justify-content: center;
transition: .3s;
display: flex;
}

.start-theme-image {
width: 500px;
margin-right: 40px;
position: relative;
}

#tilte_start_task {
font-family: "Raleway", serif;
font-size: 32px;
text-align: center;
}

#description_task {
margin-top: 50px;
font-size: 19px;
min-width: 600px;
}

#description_task>font {
font-family: "Raleway-Medium", serif;
margin-bottom: 5px;
display: inline-block;
}

#go_task {
background: var(--dark);
height: 50px;
color: white;
width: 150px;
padding: 0 40px;
margin: 50px auto 0;
border-radius: 100px;
cursor: pointer;
font-size: 17px;
font-family: "Raleway-Medium", serif;
display: flex;
align-items: center;
justify-content: center;
transition: .25s;
}

#go_task:hover {
background: var(--hover);
}

#see_else {
font-family: "Raleway-Medium", serif;
font-size: 22px;
margin: 80px 0 40px;
text-align: center;
}

.task_list {
width: 1200px;
margin: 40px auto 80px;
min-height: 400px;
}

.task {
position: relative;
width: calc(33.333% - 40px);
margin: 20px 20px 60px;
display: inline-block;
text-decoration: none;
vertical-align: top;
color: var(--dark);
transition: .25s;
cursor: pointer;
}

.task:hover {
scale: 1.01;
}

.task:hover::after {
content: attr(data-title);
}

.illustration {
width: 100%;
}

.task_name {
font-size: 22px;
margin-top: 10px;
}

.information {
width: max-content;
border-radius: 10px;
display: inline-flex;
margin: 20px 20px 0 0;
font-size: 19px;
}

.difficulty {
width: 50px;
height: 28px;
top: 8px;
display: inline-flex;
margin-right: 10px;
position: relative;
align-items: baseline;
}

.difficulty>div {
height: 33.33%;
width: 100%;
margin: 1.5px;
background: #f2f2f2;
border-radius: 10px;
}

.difficulty>div:nth-child(2) {
height: 66.66%;
}

.difficulty>div:nth-child(3) {
height: 100%;
}

.difficulty1>div:nth-child(1),
.difficulty2>div:nth-child(1),
.difficulty3>div:nth-child(1) {
background: var(--dark);
}

.difficulty2>div:nth-child(2),
.difficulty3>div:nth-child(2) {
background: var(--dark);
}

.difficulty3>div:nth-child(3) {
background: var(--dark);
}

.passed {
color: var(--gray);
margin-top: 10px;
position: relative;
width: max-content;
}

.mark {
margin-top: 10px;
}

.new {
position: absolute;
color: white;
font-family: "Raleway-Medium", serif;
display: flex;
font-size: 14px;
align-items: center;
justify-content: center;
background: var(--dark);
width: max-content;
padding: 10px 20px;
border-radius: 100px;
top: 10px;
right: 10px;
}

@media (min-width: 1600px) {

.start-theme-image {
width: 600px;
}
}

@media (max-width: 1240px) {
.task_list {
width: 900px;
}

.task {
width: calc(50% - 40px);
}
}

@media (max-width: 1200px) {
.start-theme-image {
width: 400px;
}


}

@media (max-width: 1100px) {
footer {
flex-direction: column;
}

footer>div:nth-child(2){
margin-top: 80px;
}

footer>div:nth-child(1)>div {
max-width: 100%;
}

#start_task {
flex-direction: column;
margin-top: 20px;
}

.start-theme-image {
width: 560px;
margin: 0 0 50px;
}
}

@media (max-width: 950px) {
.title_block,
.task_list{
max-width: calc(100% - 40px);
}

.task:hover {
scale: 1;
}

}

@media (max-width: 900px) {
#result {
max-width: calc(100% - 40px);
margin-top: 20px;
}

#start_task {
max-width: 100%;
margin-top: 0px;
}

#start_task>div {
margin: 0 20px;
width: calc(100% - 40px);
}

#main_result {
flex-direction: column;
align-items: center;
}

#pre_media {
width: calc(100% - 40px);
margin: 40px auto;
}

#score {
margin-top: 0;
}

#result_name {
font-size: 28px;
width: 100%;
}

#go_test:hover,
#previous:hover,
#next:hover,
#actions>div:hover,
#actions>a:hover,
#go_task:hover {
background: var(--dark);
}

footer {
padding: 80px 20px;
}

#header {
display: block;
height: auto;
padding: 0;
background:white;
position: relative;
}

.logo {
height: 36px;
top: 12px;
}

.links {
flex-direction: column;
top: 60px;
width: 100%;
opacity:0;
visibility: hidden;
overflow: hidden;
background: white;
max-height: 0;
transition: .5s;
}

.links>a:last-child {
margin-bottom:20px;
}
.links>div:nth-child(1){
margin-top:20px;
}

.links_active {
opacity:1;
visibility: visible;
max-height:max-content;
}
.link {
padding: 15px;
flex-direction: column;

}

.services_active>.services {
max-height: 300px;
text-align: center;
}
.services_active:before {
width: 40px;
}
.link:before {
top: 40px;
z-index: 1;
}
.theory>font:after, .practice>font:after {
position: absolute;
right: 0;
margin-right: -20px;
transition:.5s;
top:0;
}

.services_active>font:after{
rotate: 180deg;
top: -5px;
}

.services {
position: relative;
width: 100%;
opacity: 1;
visibility: visible;
border: none;
padding: 0;
max-height: 0;
overflow: hidden;
box-sizing: border-box;
transition: .5s;
}

.services>a:last-child:before{
display:none;
}
.services>a:nth-child(1){
margin-top:30px;
}
.services>a:last-child {
margin-bottom:10px;
}
.services>a {
padding: 11px 14px;
min-width: 100%;
}

.menu_icon {
display: flex;
top: 15px;
}
}

@media (max-width: 800px) {
footer>div:nth-child(2) {
display: block;
margin-top:30px;
}
.footer_services {
display: inline-flex;
max-width:100%;
margin-top: 50px;
}
footer>div:nth-child(1)>div {
margin-top: 0;
}
}


@media (max-width: 768px) {
#breadcrumbs>a {
text-dcoration: none;
}

.back-block {
display: none;
}

.logo {
display: flex;
}

.title {
font-size: 36px;
}

.false_answer, .true_answer {
margin: 0 0 20px;
}

.start-theme-image {
width: 100%;
margin-bottom: 20px;
}

#tilte_start_task {
font-size: 22px;
}

#result {
margin-top: 20px;
}

#picture_preview>img {
width: 100%;
height: 100%;
}

#cookie_block {
max-width: calc(100% - 40px);
font-size: 18px;
}

#accept_cookie {
font-size: 16px;
}

#material_author {
width: calc(100% - 40px);
}

#breadcrumbs {
width: calc(100% - 40px);
text-align: center;
}

#media>a:hover {
transform: scale(1);
}

#actions {
display: block;
text-align: center;
}

#actions>div,
#actions>a {
display: inline-flex;
width: calc(50% - 10px);
box-sizing: border-box;
margin-bottom: 10px;
justify-content: center;
}

#try_again {
padding: 12px 24px;
font-size: 17px;
}

#verbal_mark {
font-size: 19px;
}

.button:hover {
background: var(--dark);
}

#description_task {
margin-top: 30px;
font-size: 18px;
min-width: 100%;
}

.task {
width: 100%;
margin: 0 0 60px;
}

.maintenance {
box-sizing: border-box;
padding: 0 20px;
}
}


@media (max-width: 350px) {
#media>a {
height: 45px;
}
}




