:root{
  --daryn-ink:#132029;
  --daryn-steel:#526270;
  --daryn-steel-soft:#7c8b96;
  --daryn-line:#dbe3e6;
  --daryn-paper:#e9eef0;
  --daryn-card:#ffffff;
  --daryn-green:green;
  --daryn-green-deep:#12492e;
  --daryn-sun:#c99a2e;
  --daryn-sun-soft:#f4e6c4;
  --daryn-azure:#0a5872;
  --daryn-azure-deep:#083e51;
  --daryn-azure-bright:#1490b3;
}

body{
  margin:0;
  padding: 0;
  background-color: #eef1f0;
  background-image:
    radial-gradient(circle at 14% 18%, rgba(10,88,114,0.05), transparent 40%),
    radial-gradient(circle at 88% 78%, rgba(201,154,46,0.06), transparent 42%),
    repeating-linear-gradient(115deg, rgba(10,88,114,0.03) 0px, rgba(10,88,114,0.03) 1px, transparent 1px, transparent 7px);
  background-attachment: fixed;
  font-size: 16px;
  font-family: 'Open Sans', sans-serif;
  min-height: 100vh;
}
.bodycont{
  width: 100%;
  background-color: transparent;
}
h2{
margin: 15px 5px 5px 5px;
}

.textblock{
  width: 960px;
  min-height: 960px;
  padding: 0 20px 5px 20px;
  margin: 0 auto;
  background-color: transparent;
  box-sizing: border-box;
}
.textblock input[type=text]{
  font-size: 15px;
  width:250px;
  border: none;
  color: #595959;
  background-color: #e8e8e8;
  border-bottom: 2px solid #595959;
  padding: 12px 20px;
  margin: 8px 0;
  outline: none;
  box-sizing: border-box;
  max-width: 100%;
}
.flex{
  display: flex;
}


/*header*/
.centre-info-cont {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  height: 70px;
  -webkit-box-pack: center;
  -webkit-justify-content: space-around;
  -ms-flex-pack: center;
  justify-content: space-around;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  border-radius: 0 0 10px 10px;
  background-color: white;
  padding: 10px;
  box-sizing: border-box;
}
.logo-cont {
  width: 65px;
  height: 50px;
}
.logo-cont img{
   width: 100%;
   height: 100%;

}
.centre-name-cont {
  margin-left: 10px;
}
.centre-name {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 15px;
  display: flex;
  flex-direction: column;
}
.centre-name span{
   padding: 5px 0;
}
.menu-event{
   font-size: 14px;
   position: relative;
   padding: 10px;
}
.menu-event:hover{
   cursor: pointer;
}
.past-event-dropdown{
   display: none;
   background-color: white;
   position: absolute;
   flex-direction: column;
   top: 34px;
}
.past-event-menu{
   min-width: 290px;
   padding: 10px;
   border-bottom: 1px solid black;
   display: block;
   text-decoration: none;
   color: black;
}
.menu-event:hover .past-event-dropdown{
   display: flex;
}
.past-event-menu:hover{
   background-color: green;
   color: white;
}
.phonetext{
cursor: pointer;
padding: 10px;
border: 1px solid black;
border-radius: 5px;
position: relative;
z-index: 4;
background-color: white;
white-space: pre-wrap;
font-size: 14px;
}
.wrapphone{
position: relative;
z-index: 5;
}
.wrapphone:hover .number{
display: block;
}
.number{
position: absolute;
display: none;
padding: 15px;
width: 100%;
background-color: green;
border-radius: 0 5px 5px 5px;
color: white;
z-index: 3;
margin-top: -5px;
}
.number p{
   margin-bottom: 10px;
   line-height: 1.5em;
font-size: 14px;
}
.wrapphone:hover .number{
display: flex;
flex-direction: column;
}
.language a{
   text-decoration: none;
   color: black;
}
.lang{
   font-size: 14px;
}
/*header*/

.title{
  font-size: 16px;
  padding: 5px;
  margin-top: 5px;
}
.title:has(.yourevents){
  padding: 0;
  margin-top: 0;
}
.title.bold.flex{
  padding: 0;
  margin: 0;
}
.blink {
  font-size: 14px;
  font-style: italic;
  line-height: 1.6;
  padding: 5px;
  margin-top: 5px;
  animation: blink-red 5s infinite;
}

@keyframes blink-red {
  0% {
    color: blue;
  }
  50% {
    color: rgba(0, 0, 255, 0.3);
  }
  100% {
    color: blue;
  }
}
.titlestyle{
  width: 600px;
  font-weight: 600;
  color: #3b4d61;
}
.steps-notice{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
  font-size: 16px;
}
.steps-notice-link{
   line-height: 1.5em;
   text-decoration: none;
   text-align: center;
   width: 80%;
   margin: 0 auto;
   padding: 3px;
   border: 3px solid green;
   border-radius: 8px;
   color: green;
}
.steps-notice-link-span{
  color: red;
}
.answers-wrap{
  display: flex;
  flex-direction: row;
  justify-content: center;

}
.answers-btn{
  display: inline-block;
  padding: 10px 15px;
  box-sizing: border-box;
  border: 1px solid white;
  border-radius: 8px;
  margin-right: 10px;
  cursor: pointer;
  text-decoration: none;
  background-color: green;
  color: white;
  font-size: 16px;

}
.appeal-form{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.appeal-btn{
  background-color: green!important;
  border: 1px solid green!important;
}
.appeal-text{
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
  border: 1px solid green;
  border-radius: 8px;
  margin: 15px;
  font-size: 16px;
}
.welcome{
  margin: 25px 10px 10px !important;
}
.personal_data{
  width: 96%;
  margin-left: 2%;
  margin-right: 2%;
}
.fio{
  width: 190px;
  line-height: 1.5em;
}
.fiostyle{
  font-weight: 600;
  color: #3b4d61;
  margin-right: 20px;
  margin-left: 0;
  line-height: 1.5em;  
}
.profile-notice-wrap{
  display: flex;
  flex-direction: row;
}
.profile-ic-flex{
  display: flex;
  flex-direction: column;
}
.title.flex,
.title.change-grade-flex{
  border-bottom: 1px dashed var(--daryn-line);
  padding: 8px 0;
  margin-top: 0;
}
.fiostyle, .titlestyle{
  color: var(--daryn-ink);
}
.profile-notice{
  font-size: 16px;
  padding: 5px;
  box-sizing: border-box;
  color: green;
  font-weight: 500;
  font-style: italic;
}
.profile-notice-blink{
  animation-name: blinknotice;
  animation-duration: 1000ms;
  animation-iteration-count: infinite;
}

@keyframes blinknotice{
  0%{
    color: red;
  }
  50%{
    color: #FFB0B0;
  }
  100%{
    color: red;
  }

}
.reset-btn{
  min-width: 100px;
  padding: 10px 18px;
  margin-bottom: 10px;
  box-sizing: border-box;
  color: white;
  background-color: var(--daryn-green);
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 6px 14px -8px rgba(10,88,114,0.4);
  transition: background-color .15s ease;
}
.reset-btn:hover{
  background-color: var(--daryn-azure-deep);
}
.profile-edit-form{
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 16px 0 4px;
}
.reset-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.profile-new-event{
  border: 1px solid #E79834;
  padding: 10px;
  background-color: white;
  margin-top: 20px;
}
.teacher-price-button{
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}
.profile-event-maintext{
  padding-top: 10px;
  margin-bottom: 10px;
}
.input-pay-btn-2{
  margin: 0 auto!important;
}
.form-pay-mainbutton{
  position: relative;
}
.form-pay-mainbutton-noticeblock{
  width: 200px;
  height: 140px;
  background-color: white;
  border: 1px solid red;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
  position: absolute;
  bottom: 0;
  right: 0;
  transition: 500ms;
  cursor: pointer;
}
.form-pay-mainbutton-noticetext{
  font-style: italic;
  font-size: 16px;
  line-height: 1.5em;
  text-align: center;
}
.input-pay-btn{
  margin-top: 0!important;
}
.form-pay-mainbutton:hover .form-pay-mainbutton-noticeblock{
  display: flex!important;
}
.change-grade-flex{
  display: flex;
  align-items: center;
}
.profile-grade{
  margin-right: 10px;
}



.custom-select{
  position: relative;
  width: 115px;
  font-family: 'Open Sans', sans-serif;
  margin-right: 10px;
}

.custom-select-trigger{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 14px;
  box-sizing: border-box;
  border: 1.4px solid var(--daryn-line);
  border-radius: 8px;
  background-color: #fbfcfd;
  color: var(--daryn-ink);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.custom-select-trigger:hover{
  border-color: var(--daryn-azure);
}

.custom-select.is-open .custom-select-trigger{
  border-color: var(--daryn-azure);
  box-shadow: 0 0 0 3px rgba(20, 144, 179, 0.15);
}

.custom-select-arrow{
  color: var(--daryn-steel);
  flex-shrink: 0;
  margin-left: 10px;
  transition: transform .15s ease;
}

.custom-select.is-open .custom-select-arrow{
  transform: rotate(180deg);
}

.custom-select-options{
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--daryn-line);
  border-radius: 10px;
  box-shadow: 0 8px 24px -8px rgba(19,32,41,0.18);
  overflow: hidden;
  z-index: 20;
}

.custom-select.is-open .custom-select-options{
  display: block;
}

.custom-select-option{
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--daryn-ink);
  cursor: pointer;
  transition: background-color .12s ease;
}

.custom-select-option:hover{
  background-color: rgba(20, 144, 179, 0.08);
}

.custom-select-option.is-selected{
  background-color: var(--daryn-azure);
  color: #fff;
}

.custom-select-option.is-selected:hover{
  background-color: var(--daryn-azure-deep);
}




.profile-grade-number{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 8px 34px 8px 14px;
  margin-right: 10px;
  border: 1.4px solid var(--daryn-line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  color: var(--daryn-ink);
  background-color: #fbfcfd;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23526270' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.profile-grade-number:hover{
  border-color: var(--daryn-azure);
}

.profile-grade-number:focus{
  outline: none;
  border-color: var(--daryn-azure);
  box-shadow: 0 0 0 3px rgba(20, 144, 179, 0.15);
}

.profile-grade-number:disabled{
  background-color: #f0f2f3;
  color: var(--daryn-steel-soft);
  cursor: not-allowed;
  opacity: 0.7;
}

.profile-grade-number option{
  color: var(--daryn-ink);
  background-color: #fff;
  padding: 8px;
}

.profile-grade-number option:disabled{
  color: var(--daryn-steel-soft);
}

.change-grade-btn{
  padding: 7px 10px;
  box-sizing: border-box;
  cursor: pointer;
  background-color: #C7C7C7;
  border: none;
  color: #A6A6A6;
  border-radius: 5px;
}
.is-active-change{
  background-color: green;
  color: white;
}
.id-comment{
  font-size: 18px;
  font-style: italic;
  color: green;
  display: inline;
  line-height: 1.5em;
}
/*.yourevents{
  width: 100%;
  padding: 10px;
  margin: 5px auto 5px;
  background-color: green;
  text-align: center;
  color: white;
  font-size: 18px;
  font-weight: 600;
  box-sizing: border-box;
}*/
.yourevents{
  width: 100%;
  padding: 13px 18px;
  margin: 5px auto 5px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: white;
  background: var(--daryn-azure);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.active-events{
  margin: -30px 0 40px 0 !important;
}
.active-events-title{
  width: 100%;
  padding: 13px 0;
  margin: 0 auto;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: white;
  background: var(--daryn-azure);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  width: 100%;
  border-radius: 14px 14px 0 0;
}
.profile-select-nation-wrap{
  display: flex;
  font-size: 20px;
  line-height: 1.3em;
}
.profile-form-lang{
  width: 100%;
  padding: 5px;
}
.profile-nation{
  width: 200px;
}
.profile-nation-select-cont{
  width: 750px;
  display: flex;
  font-size: 18px;
  justify-content: space-between;
  align-items: center;
}
.profile-nation-select{
  width: 150px;
  padding: 10px;
  border-radius: 5px;
}
.profile-nation-select option{
  height: 30px;
}
.profile-select-confirm{
  width: 300px;
}
.profile-select-btn{
  padding: 10px;
  border-radius: 5px;
  background-color: green;
  color: white;
}
.profile-nation-select-shcool-cont{
  width: 750px;
  display: flex;
  flex-direction: column;
  font-size: 18px;
  justify-content: space-between;
}
.profile-nation-select-shcool-cont select{
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}
.confirm-school-cont{
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 10px;
}
.confirm-school-cont input{
  margin-right: 10px;
}
/*.table{
  border: 1px solid black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: white;
  padding: 10px;
  border-radius: 5px;
  box-sizing: border-box;
}*/
.table{
  border: 1px solid var(--daryn-line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(19,32,41,0.04), 0 14px 30px -18px rgba(10,58,74,0.18);
  padding: 0;
  overflow: hidden;
}
.table-cont{
  display: flex;
  font-size: 16px;
  width: 100%;
}
.table-cont-head{
  background: #c99a2e;
  color: #fff;
}
.table-cont-head .event-number,
.table-cont-head .event-name,
.table-cont-head .event-date,
.table-cont-head .event-status,
.table-cont-head .event-progress{
  border: none;
  border-right: 1px solid rgba(255,255,255,0.18);
  color: white;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.table-cont-head .event-progress{
  border-right: none;
}

.table-cont:not(.table-cont-head){
  border-bottom: 1px solid var(--daryn-line);
  transition: background-color .12s ease;
}
.table-cont:not(.table-cont-head):hover{
  background-color: #fbfcfd;
}
.table-cont:not(.table-cont-head):last-child{
  border-bottom: none;
}

.table-cont.event-row-active{
  background: rgba(20, 144, 179, 0.08);
  position: relative;
}
.table-cont.event-row-active:hover{
  background: rgba(20, 144, 179, 0.14);
}
.table-cont.event-row-active .event-status::before{
  background: var(--daryn-azure-bright);
}

.correct-answer-range{
  width: 809px;  
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.table-keng-range{
  display: block;
  color: green;
  font-size: 17px;
  line-height: 1.3em;
  text-align: center;
  text-decoration: none;
  border: 1px solid black;
  width: 50%;
  padding: 5px;
  box-sizing: border-box;
  overflow: hidden;
}
.table-yazik-range{
  display: block;
  color: green;
  font-size: 17px;
  line-height: 1.3em;
  text-align: center;
  text-decoration: none;
  border: 1px solid black;
  width: 809px;
  padding: 5px;
  box-sizing: border-box;
  overflow: hidden;
}
.table-yazik-range:first-child{
  display: none;
}
.bold{
  font-weight: 600;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.center{
  text-align: center;
}
.event-number,
.event-name,
.event-date,
.event-status,
.event-progress{
  border: none;
  border-right: 1px solid var(--daryn-line);
}
.event-number{
  width: 5%;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 10px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-name{
  width: 30%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  line-height: 1.2em;
  color: var(--daryn-ink);
  font-weight: 600;
}
.event-name span{
  margin-top: 10px;
  padding-top: 10px;
  line-height: 1.3em;
}
.event-date{
  width: 10%;
  padding: 5px;
  word-break: break-word;
  color: var(--daryn-steel);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-status{
  width: 13%;
  padding: 5px;
  font-size: 12px;
  word-break: break-word;
  background-color: green;
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 5px;
}
.table-cont:not(.table-cont-head) .event-status::before{
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--daryn-green);
  margin-right: 5px;
  flex-shrink: 0;
}
.event-progress{
  width: 42%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-right: none;
}
.progress-result{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.progress-item b{ color: var(--daryn-ink); }
.progress-badge{
  font-size: 12px;
  font-weight: 600;
  color: var(--daryn-green);
}
.progress-start-form{ margin: 0; }

.yazyk-grafik{  
  color: green;
  font-weight: 600;
  text-align: center;
}
.noresult{
  background: var(--daryn-paper);
  color: var(--daryn-azure-deep);
  text-align: center;
}
.noresult:hover{
  opacity: 0.85;
  color: var(--daryn-steel);
}
.noresult-text{
  margin: 0 10px;
  font-weight: 600;
  font-size: 17px;
}
.noresult-label{
  width: 80%;
  color: #673AB7;
  margin: 0 0 0 20px;
  border-left: 1px solid black;
}
.noresult-label span{
  padding: 5px 15px;
  /*border-radius: 5px;*/
  /*background-color: #673AB7;*/
  /*color: white;*/
  animation-name: blinknotice;
  animation-duration: 1000ms;
  animation-iteration-count: infinite;
}
.event-points{
  width: 40px;
  border: 1px solid black;
  padding: 5px;

}
.event-place{
  width: 45px;
  border: 1px solid black;
  padding: 5px;

}
.event-range{
  width: 100px;
  border: 1px solid black;
  padding: 5px;

}
.event-certlink{
  width: 100px;
  border: 1px solid black;
  padding: 5px;

}
.event-dipllink{
  width: 90px;
  border: 1px solid black;
  padding: 5px;

}
.event-paystatus{
  width: 95px;
  border: 1px solid black;
  padding: 5px;
}

.testlink:hover{
background-color: #FFDD00;
text-decoration: none;
color: #3b4d61;
box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.textblock input[type=submit]{
  margin-top: 20px;
  font-size: 18px;
  border: 1px solid red;
  border-radius: 10px;
  color: white;
  padding: 8px 15px;
  background-color: red;

}
.textblock input[type=submit]:hover{
  transition: 200ms;
  color: #f2f2f2;
  background-color: #7E0100;
  cursor: pointer;
}

.textblock input[type=text]{
  font-size: 2vw;
  width:250px;
  border: none;
  color: #595959;
  background-color: #e8e8e8;
  border-bottom: 2px solid #595959;
  padding: 12px 20px;
  margin: 8px 0;
  outline: none;
}

.testlink-blue{
background-color: #03adfc!important;
border: 1px solid #03adfc!important;
text-decoration: none;
color: #FFDD00;
padding: 5px 15px;
border-radius: 10px;
cursor: pointer;
font-size: 30px;
/*box-shadow: 0 0 10px rgba(0,0,0,0.5);*/
width: 250px;
white-space: pre-wrap;
line-height: 1.5em;
}

.testlink{
  background-color: green!important;
  border: 1px solid green!important;
  text-decoration: none;
  color: #FFDD00;
  padding: 5px 15px;
  border-radius: 10px !important;
  box-shadow: 0 6px 14px -8px rgba(18,73,46,0.45);
  cursor: pointer;
  font-size: 16px;
  width: 250px;
  white-space: pre-wrap;
  line-height: 1.5em;
}
.testlink:hover{
  color: var(--daryn-green-deep) !important;
  box-shadow: 0 6px 14px -8px rgba(201,154,46,0.5);
}

.textblock input[type=text]:focus{
  transition: 200ms;
  background-color: #595959;
  color: #f2f2f2;
}




/*.textblock select{
  border:0px;
  outline:0px;
  outline: none;
  color: #595959;
  background-color: #e8e8e8;
  width: 250px;
  padding: 5px 10px;
  border-bottom: 2px solid #595959;
}*/

/*.textblock select:focus{
  color: #f2f2f2;
  transition: 1s;
  background-color: #595959;
}*/

.formtext{
  color:#595959;
  font-weight: bold;
  font-family: Arial, sans-serif;
}

.mainpagelinks{
  font-size: 18px;
  color:#FFDD00;
  font-weight: bold;
  background-color: green;
  border: 1px solid #e8e8e8;
  padding: 14px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.mainpagelinks:hover{
  transition: 1.1s;
  background-color: #FFDD00;
  color:green;
}




@media screen and (max-width: 479px) {
  .mainpagelinks{
  font-size: 14px;
  padding: 8px 18px;
}
.blink{
  width:100%;
  font-size: 10px;
}
.correct-answer-range{
  width:330px;
}
body{
  font-size: 14px;
}
.logo-cont{
  display: none;
}
.menu-event{
  width: 90%;
  border: 1px solid black;
  border-radius: 5px;
  padding: 10px;
}
.wrapphone{
  width: 90%;
}
.locale-switcher{
  width: 90%;
  padding: 10px;
  border-radius: 5px;
  margin: 5px 0;
}
.locale-switcher option{
  width: 290px!important;
}
.bodycont{
/*  overflow: hidden;*/
}
.centre-info-cont{
  display: flex;
  flex-direction: column;
  height: auto;
}
.centre-name-cont{
  margin-left: 0;
}
.centre-name{
  display: flex;
  flex-direction: row;
}
.textblock{
  width: 100%;
}
.title{
  font-size: 14px;
}
.flex{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.testlink{
font-size: 14px;
}
.fio{
  text-align: center;
}
.fiostyle{
  font-weight: 600;
}
.pstyle{
display: flex;
flex-direction: column;
}
.titlestyle{
  width: 90%;
  text-align: center;
  font-weight: 600;
}
.table{
  align-items: unset;

}
.table-wrapper{
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}
.table-row{
  display: flex;
  flex-direction: row;
  border: 1px solid black;

}
.table-column-number{
  width: 50px;
  border: 1px solid black;
  padding: 5px;
}
.table-column-class{
  width: 200px;
  border: 1px solid black;
  padding: 5px;
}
.table-column-time"{
  width: 300px;
  border: 1px solid black;
  padding: 5px;
}

.red-notice{
  color: red;
}

.information-text{
  padding: 15px;
  font-size: 18px;
  font-style: italic;
  line-height: 1.2em;
}
.information-btn{
  padding: 10px 20px;
  border: 1px solid green;
  border-radius: 10px;
  background-color: green;
  color: white;
  text-decoration: none;
  display: block;
  width: 230px!important;
  margin-top: 30px;

}
.download-btn{
  padding: 5px 10px;
  color: white;
  background-color: green;
  border-radius: 8px;
  box-shadow: 0 4px 10px -6px rgba(18,73,46,0.4);
  margin-top: 10px;
  display: block;
  text-decoration: none;
  font-weight: bold;
}
.table-cont{
  display: flex;
/*  flex-direction: column;*/
}
/*
.table-cont div:nth-child(3){
  display: none;
}
.table-cont div:nth-child(7){
  display: none;
}
.table-cont div:nth-child(5){
  display: none;
}
.table-cont div:nth-child(6){
  display: none;
}*/


/* ---------- карточки: Ваши личные данные и Ваши мероприятия отдельно ---------- */
.profile-card{
  background: var(--daryn-card);
  border: 1px solid var(--daryn-line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(19,32,41,0.04), 0 14px 30px -18px rgba(10,58,74,0.18);
  padding: 0 0 0;
  margin: 0 0 50px;
  box-sizing: border-box;
}

.profile-card .yourevents{
  margin: 0 0 18px;
  width: 100%;
  border-radius: 14px 14px 0 0;
}

.profile-card:has(.table){
  padding: 0 0 0;
  margin: 0 0 5px;
}
.profile-card:has(.table) .yourevents{
  margin: -20px 0 0;
  width: 100%;
}
.profile-card .table{
  box-shadow: none;
  border: none;
  border-radius: 0 0 14px 14px;
  margin: 0;
}

.profile-card .title.flex:first-of-type{
  padding-top: 0;
}


.menu-event{
  font-size: 13px;
  font-weight: 600;
  color: var(--daryn-azure-deep);
  padding: 9px 16px;
  border: 1.4px solid var(--daryn-line);
  border-radius: 999px;
  background: #fbfcfd;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color .15s ease, background-color .15s ease;
}
.menu-event:hover{
  border-color: var(--daryn-azure);
  background: #fff;
}

.phonetext{
  padding: 9px 16px;
  border: 1.4px solid var(--daryn-azure);
  border-radius: 999px;
  color: var(--daryn-azure-deep);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: background .15s ease, color .15s ease;
}
.phonetext:hover{
  background: var(--daryn-azure);
  color: #fff;
}

.locale-switcher{
  padding: 9px 14px;
  border: 1.4px solid var(--daryn-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--daryn-steel);
  background: #fbfcfd;
  cursor: pointer;
}

.custom-select-option.is-disabled{
  cursor: not-allowed;
  opacity: 0.6;
}
.custom-select-option.is-disabled:hover{
  background-color: transparent;
}
.custom-select-option.is-selected.is-disabled{
  background-color: var(--daryn-steel-soft);
  color: #fff;
}
.custom-select-option.is-selected.is-disabled:hover{
  background-color: var(--daryn-steel-soft);
}

/* ================================
   Список мероприятии пустой
   ================================ */
.table-empty-state{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 10px;
  background: #fff;
}
.table-empty-icon{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--daryn-paper);
  color: var(--daryn-steel-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.table-empty-title{
  font-size: 14px;
  font-weight: 600;
  color: var(--daryn-ink);
  margin: 0;
}
.table-empty-text{
  font-size: 13px;
  color: var(--daryn-steel-soft);
  margin: 0;
  text-align: center;
  max-width: 280px;
}


.download-ready-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 8px;
  background: #e3f0f4;
  color: var(--daryn-paper);
  border: 1.4px solid var(--daryn-azure-bright);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  background: var(--daryn-azure);
  transition: background-color .15s ease, border-color .15s ease;
}
.download-ready-btn:hover{
  background: #d3e7ed;
  border-color: var(--daryn-azure);
  color: var(--daryn-azure-deep);
}


/* ================================
   Адаптивность — единый блок
   ================================ */

.textblock{
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ---------- планшет: 700–1000px ---------- */
@media screen and (max-width: 1000px){
  .textblock{
    padding: 0 16px 20px;
  }

  .centre-info-cont{
    flex-wrap: wrap;
    height: auto;
    row-gap: 10px;
    padding: 12px 10px;
  }
  .centre-name{
    font-size: 13px;
  }

  .profile-card{
    padding: 16px 16px 20px;
  }
  .profile-card .yourevents{
    margin: -16px -16px 14px;
    width: calc(100% + 32px);
  }
  .profile-card:has(.table) .yourevents{
    margin: 0 0 0;
    width: 100%;
  }

  .profile-card:has(.table) {
    padding: 0 0 0;
  }

  .active-events {
    padding: 0 0 0;
    margin: -30px 0 20px 0 !important;
  }

  .titlestyle{
    width: auto;
    max-width: 100%;
  }
  .fio{
    width: 170px;
  }
}

/* ---------- мобильные телефоны: до 600px ---------- */
@media screen and (max-width: 600px){
  html, body{
    overflow-x: hidden;
  }

  body{
    font-size: 14px;
  }

  .textblock{
    padding: 0 10px 20px;
    min-height: auto;
  }

  /* шапка сайта: аккуратная колонка вместо тесного ряда */
  .centre-info-cont{
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    border-radius: 12px;
    padding: 14px 12px;
    gap: 10px;
  }
  .logo-cont{
    width: 48px;
    height: 38px;
    margin: 0 auto;
  }
  .centre-name-cont{
    margin: 0;
  }
  .centre-name{
    flex-direction: column;
    font-size: 12.5px;
    align-items: center;
  }

  .menu-event,
  .wrapphone,
  .locale-switcher{
    width: 100%;
    box-sizing: border-box;
  }
  .phonetext{
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  .number{
    position: static;
    width: 100%;
    margin-top: 8px;
    box-sizing: border-box;
    border-radius: 8px;
  }
  .past-event-dropdown{
    position: static;
    width: 100%;
    box-sizing: border-box;
  }
  .past-event-menu{
    min-width: auto;
  }

  /* приветствие */
  .title.bold.center{
    font-size: 15px;
    margin: 15px 5px 10px 5px;
  }

  .title.bold.center:has(.yourevents){
    margin: 0;
  }

  .title{
    padding: 0;
  }

  /* карточки: личные данные / мероприятия */
  .profile-card{
    padding: 0;
    border-radius: 12px;
    margin-bottom: 16px;
  }
  .profile-card .yourevents{
    width: 100%;
    font-size: 12.5px;
    padding: 11px 14px;
    border-radius: 12px 12px 0 0;
    margin: 0;
  }
  .profile-card:has(.table) .yourevents{
    margin: 0;
    width: 93%;
  }
  .profile-card .table{
    border-radius: 0 0 12px 12px;
  }

  .profile-card:has(.table) {
    padding: 0 0 0;
  }

  .active-events{
    margin: 15px 0 !important;
  }

  .noresult-text{
    font-size: 14px;
  }

  /* строки личных данных — в колонку */
  .title.flex,
  .title.change-grade-flex{
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }
  .fio{
    width: auto;
    font-size: 13px;
    color: var(--daryn-steel);
  }
  .fiostyle, .titlestyle{
    font-size: 14px;
    width: auto;
    margin: 0;
  }
  .profile-notice{
    font-size: 12px;
    padding: 2px 0 0;
  }

  .profile-grade-number{
    max-width: 100%;
  }

  .profile-edit-form{
    margin: 14px 0 2px;
  }
  .reset-btn{
    width: 100%;
    justify-content: center;
    text-align: center;
    margin: 0 10px 10px 10px;
  }

  /* формы выбора нации / школы */
  .profile-select-nation-wrap,
  .profile-nation-select-cont,
  .profile-nation-select-shcool-cont{
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .profile-nation-select,
  .profile-nation-select-shcool-cont select{
    width: 100%;
    box-sizing: border-box;
  }
  .profile-select-confirm{
    width: auto;
  }
  .confirm-school-cont{
    flex-wrap: wrap;
  }

  /* таблица мероприятий -> карточки (дополняет уже существующее поведение) */
  .table-cont-head{
    display: none;
  }
  .table-cont:not(.table-cont-head){
    flex-direction: column;
    border: 1px solid var(--daryn-line);
    border-radius: 10px;
    margin: 10px;
  }
  .table-cont{
    width: 95%;
  }
  .event-number,
  .event-name,
  .event-date,
  .event-status,
  .event-progress{
    border-right: none;
    border-bottom: 1px dashed var(--daryn-line);
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    text-align: left;
  }
  .event-number{
    display:none;
  }
  .event-status{
    justify-content: flex-start;
  }
  .event-progress{
    border-bottom: none;
    align-items: flex-start;
  }
  .table{
    box-shadow: none;
    border: none;
    background: transparent;
  }

  .noresult, .testlink, .progress-result{
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .testlink{
    width: 100%;
  }

  .logout-form .logout{
    width: 100%;
    box-sizing: border-box;
  }

  .mainpagelinks{
    font-size: 14px;
    padding: 10px 18px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .noresult{
    background: transparent;
  }

  .custom-select{
    margin-bottom: 5px;
  }
}
/* ---------- десктоп: обёртка не влияет на раскладку ---------- */
.event-main-info{
  display: contents;
}

/* ---------- мобильный: "Олимпиада" слева, "Прогресс" справа ---------- */
@media screen and (max-width: 600px){
  .table-cont:not(.table-cont-head){
    flex-direction: row;
    align-items: stretch;
  }

  .event-main-info{
    display: flex;
    flex-direction: column;
    width: 70%;
    flex-shrink: 0;
    box-sizing: border-box;
    border-right: 1px solid var(--daryn-line);
  }

  .event-main-info::before{
    content: "ОЛИМПИАДА";
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #fff;
    background: var(--daryn-azure);
    padding: 6px 10px;
    border-radius: 10px 0 0 0;
  }

  .event-progress::before{
    content: "ПРОГРЕСС";
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #fff;
    background: var(--daryn-green);
    padding: 6px 10px;
    border-radius: 0 10px 0 0;
  }

  .event-progress{
    width: 30%;
    flex-shrink: 0;
    box-sizing: border-box;
    background: #f4faf6;
    border-radius: 0 10px 10px 0;
    padding-bottom: 10px;
    margin: 0;
    align-items: center;
  }

  .event-main-info .event-number,
  .event-main-info .event-name,
  .event-main-info .event-date,
  .event-main-info .event-status{
    border-right: none;
    border-bottom: 1px dashed var(--daryn-line);
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    text-align: center;
    padding: 6px 10px;
  }
  .event-main-info .event-status{
    border-bottom: none;
  }
  .event-main-info .event-number{
    display: none;
  }

  .event-progress .progress-result,
  .event-progress .noresult,
  .event-progress .testlink{
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
  }
}

.events-faq-card{
  background: #fbfcfd;
  border: 1px solid var(--daryn-line);
  border-radius: 14px;
  overflow: hidden;
  margin: 15px 0 20px;
}
.events-faq-head{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--daryn-line);
  color: var(--daryn-azure);
}
.events-faq-head p{
  font-size: 13.5px;
  font-weight: 700;
  color: var(--daryn-ink);
  margin: 0;
}
.events-faq-body{
  padding: 6px 20px 18px;
  display: flex;
  flex-direction: column;
}
.events-faq-item{
  padding: 12px 0;
  border-bottom: 1px dashed var(--daryn-line);
}
.events-faq-item:last-child{
  border-bottom: none;
}
.events-faq-q{
  font-size: 13.5px;
  font-weight: 600;
  color: var(--daryn-ink);
  margin: 0 0 4px;
}
.events-faq-a{
  font-size: 13px;
  color: var(--daryn-steel);
  margin: 0;
  line-height: 1.5;
}


.download-ready-btn{
  box-sizing: border-box;
  max-width: 100%;
}

@media screen and (max-width: 600px){
  .event-progress .download-ready-btn{
    align-self: stretch;
    margin: 0 6px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    word-break: break-word;
  }
}



/* Active events design start */
/* Карточка "Вы можете подключиться к мероприятиям" */
.profile-card.active-events {
  border: none !important;          /* убираем красную рамку */
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.profile-event-ultext {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-event-litext {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 20px;
}
.profile-event-litext + .profile-event-litext {
  border-top: 1px dashed #e2e6e8;
}

.profile-event-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #e3f0f3;
  color: #0d5c72;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-event-info {
  flex: 1;
  min-width: 0;
}

.profile-event-badge {
  display: inline-block;
  background: #fff4dd;
  color: #7a5200;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.profile-event-ptext {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  color: #1f2a2e;
  line-height: 1.4;
}

.profile-event-meta {
  font-size: 13px;
  color: #5c6b70;
}

.profile-event-action {
  flex-shrink: 0;
  min-width: 190px;
  text-align: center;
}

.profile-event-price {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #1f2a2e;
}

/* Кнопка из formManager — перекрашиваем из красной в золотую */
.profile-event-action form { margin: 0; }
.profile-event-action button,
.profile-event-action input[type="submit"],
.profile-event-action a {
  display: block;
  width: 100%;
  background: #c99a2e !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 11px 18px !important;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.profile-event-action button:hover,
.profile-event-action input[type="submit"]:hover,
.profile-event-action a:hover {
  background: #b0861f !important;
}

/* Мобильные */
@media (max-width: 600px) {
  .profile-event-litext {
    flex-wrap: wrap;
  }
  .profile-event-action {
    width: 100%;
    min-width: 0;
  }
}
/* Active events design end */

/* Active event row highlight start */
.table-cont.event-row-active{
  background: #fffaf0;
  box-shadow: inset 5px 0 0 var(--daryn-sun);
}
.table-cont.event-row-active:hover{
  background: #fdf3dc;
}

/* номер — золотой */
.table-cont.event-row-active .event-number{
  color: var(--daryn-sun);
  font-size: 20px;
  font-weight: 700;
}

.table-cont.event-row-active .event-name{
  color: var(--daryn-azure-deep);
}

/* даты — темнее и жирнее */
.table-cont.event-row-active .event-date{
  color: var(--daryn-ink);
  font-weight: 600;
}

/* статус — зелёный, пульсирующая точка */
.table-cont.event-row-active .event-status{
  color: var(--daryn-green-deep);
  font-weight: 700;
  font-size: 11.5px;
  word-break: normal;
  overflow-wrap: normal;
}
.table-cont.event-row-active .event-status::before{
  width: 9px;
  height: 9px;
  margin-right: 7px;
  background: #22a35a;
  animation: daryn-pulse 1.6s infinite;
}
@keyframes daryn-pulse{
  0%   { box-shadow: 0 0 0 0 rgba(34,163,90,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(34,163,90,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,163,90,0); }
}

/* прогресс — плашка с датами проведения */
.table-cont.event-row-active .event-progress,
.table-cont.event-row-active .noresult{
  background: transparent;
}
.table-cont.event-row-active .noresult:hover{
  opacity: 1;
}
.table-cont.event-row-active .noresult-text{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 16px;
  color: var(--daryn-azure-deep);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}
.table-cont.event-row-active .noresult-text::before{
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c99a2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* кнопка "Бастау / Начать" в активной строке — крупнее и заметнее */
.table-cont.event-row-active .testlink{
  width: auto;
  min-width: 200px;
  padding: 12px 28px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background-color: var(--daryn-sun) !important;
  border: none !important;
  box-shadow: 0 8px 18px -8px rgba(201,154,46,.7);
  animation: daryn-cta 2s ease-in-out infinite;
}
.table-cont.event-row-active .testlink:hover{
  background-color: #b0861f !important;
  color: #fff !important;
  animation: none;
}
@keyframes daryn-cta{
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

/* завершённые — приглушаем */
.table-cont:not(.table-cont-head):not(.event-row-active) .event-name{
  color: var(--daryn-steel);
}
.table-cont:not(.table-cont-head):not(.event-row-active) .event-status::before{
  background: var(--daryn-steel-soft);
}

@media screen and (max-width: 600px){
  .table-cont.event-row-active{
    box-shadow: inset 0 4px 0 var(--daryn-sun);
    border-color: var(--daryn-sun);
  }
  .table-cont.event-row-active .noresult-text{
    flex-direction: column;
    gap: 6px;
    margin: 8px 6px;
    font-size: 12px;
    text-align: center;
  }
}
/* Active event row highlight end */