/* SWEETALERT2 OVERRIDE — 100% АДАПТИВТІ МОБИЛКА ЖӘНЕ КОМПЬЮТЕР */
.swal2-container {
  z-index: 999999 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  left: 0 !important;
  right: 0 !important;
  padding: 12px !important;
  box-sizing: border-box !important;
}

.swal2-popup {
  max-width: calc(100vw - 24px) !important;
  box-sizing: border-box !important;
  border-radius: 20px !important;
  margin: 0 auto !important;
}

@media (max-width: 640px) {
  .swal2-container {
    padding: 10px !important;
  }
  .swal2-popup {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    padding: 18px 14px 20px 14px !important;
    border-radius: 18px !important;
    font-size: 14px !important;
  }
  .swal2-title {
    font-size: clamp(17px, 4.8vw, 21px) !important;
    line-height: 1.3 !important;
    padding: 8px 4px 0 4px !important;
    word-break: break-word !important;
  }
  .swal2-html-container {
    font-size: 13.5px !important;
    line-height: 1.45 !important;
    margin: 10px 0 6px 0 !important;
    padding: 0 2px !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    word-break: break-word !important;
  }
  .swal2-actions {
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 14px !important;
  }
  .swal2-actions button {
    min-height: 44px !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
    max-width: 100% !important;
  }
  .swal2-icon {
    transform: scale(0.85);
    margin: 8px auto 4px auto !important;
  }
}


/* HEADER LOGOS COLOR  #0ab827  */
body {
  font-family: 'Roboto', sans-serif;
  position: relative;
  background-color: #aad2eb;
  font-size: 16px;
  line-height: 1.4;
  color:#000;
  min-width: 320px;
  overflow-x: hidden;
  height: 100%;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  margin: 0;

}

.body {
  background-color: #e2e2dd;
}

.header{
  position:fixed;
  width: 100%;
  height: 70px;
  top: 0;
  left: 0;
  z-index: 50;
  box-shadow: 0 4px 10px rgba(224, 233, 238, 0.892);
  display: flex; 
}
.header::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;   
  width: 100%;
  height: 100%;
  background-color: rgb(255, 255, 255);  
}
.header_body{
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  height: 80px;
  align-items: center;
}
.header_logo{
  flex: 0 0 120px ;
}
.header_logo, .header_menu{
  display: inline-block;
  margin-top: 0px ;
  padding-bottom: 10px;
}

.img_logo{
width: 180px;
height: 98px;
display:flex;
position: relative;
bottom: 20px;
right: 20px;
}

.logo{
  margin-top: 10px;
  height: 100px;
  display:flex;
  overflow: hidden;
}     
.logo_contain{
display: inline-block;
}
.gear{
display: inline-block;
}
.wrapper1{
width: 60px;
height: 60px;
padding-top: 15px;
padding-left: 1px;
}

.wrapper1 .gear{
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 75%;
  margin: 0 20px;
  background: radial-gradient(transparent 55%, #2abd67 30%);
  animation: gear1 7.5s linear infinite;
}
@keyframes gear1{
  0%{
      transform: rotate(0deg);
  }
  100%{
      transform: rotate(360deg);
  }
}
.wrapper1 .gear span{
  display: block;
  position: absolute;
  background: linear-gradient(to top,transparent 75%, #2abd67 30%);
  height: 32px;
  width: 10px;
  top: -7px;
  left: 50%;
  border-radius: 2px;
  transform-origin: bottom;
  transform: translateX(-50%) rotate(calc(var(--i)* 40deg));    
}


.wrapper2{
width: 6px;
height: 6px;
padding-top: 55px;
}
.wrapper2 .gear2{
position: relative;
right: 10px;
width: 15px;
height: 15px;
border-radius: 75%;
margin: 0 20px;
background: radial-gradient(transparent 45%, #2abd67 50%);
animation: gear2 3.5s linear infinite;
}
@keyframes gear2{
0%{
    transform: rotate(0deg);
}
100%{
    transform: rotate(-360deg);
}
}
.wrapper2 .gear2 span{
display: block;
position: absolute;
background: linear-gradient(to top,transparent 70%, #2abd67 30%);
height: 9.6px;
width: 4.2px;
top: -2.1px;
left: 50%;
border-radius: 0.5px;
transform-origin: bottom;
transform: translateX(-50%) rotate(calc(var(--i)* 60deg));    
}

.header_logo img{
  max-width: 80%;
  display: block;
  margin-top: 35px;
  margin-left: 35px;
  
}
.callback {
  font-family: 'Roboto', sans-serif;
  margin-left: 15px;
  padding: 10px 20px;
  background-color: #0751ffca;
  border-radius: 100px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(255, 127, 80, .2);
  transition: all .1s ease-out;
  display: flex;
}

.callback:hover {
transform:scale(1.04);
color: #fff;
box-shadow: 0 9px 9px rgb(30, 161, 255);
}

.header_list{
  display: flex;  
}
.header_list li {
  list-style:none;
  margin-top: 10px;
  margin-left: 20px;
  font-size: 1.5rem;
  font-family: 'Merriweather', sans-serif;  
}
.header_list li:hover {
transform: scale(1.05);
}
.header_list li img{
max-width: 32px;
}

.link{
  text-decoration: none; 
  color: #27ae60;
}

.container{
  max-width: 1180px;
  margin: 0px auto;
  padding: 0px 10px;
  background-color: #000;
}
.content-text-algebra{
  height: 200px;
}
.body_block{
width:100%;
margin-top: 120px;
padding-top: 7px;
padding-bottom: 15px;
background-image :  url("../src/bgfont.png" );
background-repeat: repeat-y;
background-size: cover;
background-position-x: center;
}

.body_block_pages{
width:100%;
height:100%;
min-height: 100vh;
padding-top: 7px;
padding-bottom: 15px;
background-image :  url("../src/bgfont.png" );
background-repeat: repeat-y;
background-size: cover;
background-position-x: center;

}
.content_block{
max-width: 800px;
margin-left: auto;
margin-right: auto;
background-color: #ffffffef;
padding-left: 10px;
padding-right: 10px;
padding-bottom: 2px;
padding-top: 5px;
border-radius: 7px;
}
/* АЛГЕБРА Шапка Раздела Классов */
.block_head {
  margin-top: 0.5%;
  height: auto;
  max-height: 300px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
}
.block_head_image_main {
  font-family: 'Roboto', sans-serif;
  font-size: 30px;
  box-shadow: 0 5px 5px rgb(196, 202, 196);
  margin-top: 70px;
  padding-left:60%;
  padding-top: 1%;
  width: 100%;
  height: 50px;
  position:fixed;
  display: flex;
  align-items:center;
  background: #27ae60;
  background-repeat: no-repeat;
  background-size: cover ;
}
.header_byttons_text {
font-family: 'Merriweather';
width: auto;
color: #ffffff;
box-shadow: 0 0px 0px rgb(255, 255, 255);
display: flex;
margin-right: 55px;
justify-content:center;
}
.href_header_buttons{
text-decoration: none;
color: white;
}

.header_byttons_text p:hover {
transform:scale(1.09);
text-decoration-line: underline;
}

.header_byttons{
color: #ffffff;
font-size: 20px;
margin-left: 10px;
margin-right: 10px;
}

.block_head_image {
  font-family: 'Roboto', sans-serif;
  font-size: 30px;
  box-shadow: 0 5px 5px rgb(196, 202, 196);
  margin-top: 71px;
  height: 80px;
  position:static ;
  display: flex;
  align-items:center;
  justify-content: center;
  background: #27ae60;
  background-repeat: no-repeat;
  background-size: cover ;
}

.block_head_image b{
  text-shadow: 0 5px 5px rgb(30, 34, 30);
}
.block_head_image_geo{
  background: #299fbd;
}
.block_head_image img{
  height: 200px;
  width: 400px;
}
.algebra_img{
  display: flex;
  align-content: center;
  background-repeat: no-repeat;
  background-size: cover ; 
}
.block_head {
  margin-top: 1.0%;
  margin-bottom: auto;
  text-align: justify;
}
.block_head_icon img{
  margin-top: 25px;
  width: 155px;
  margin-right: 10px;
  border-radius: 30px;
}
.block_head_icon img:hover {
  transform:scale(1.04);
  color: #fff;
  box-shadow: 0 9px 9px rgb(158, 199, 165);
}

.wrapper_text_head{
  align-items: end;
  justify-content: end;
  margin-top: 2%;
  white-space: nowrap;
  margin-bottom: 10%;
  display: flex;
  margin: auto;
}

.wrapper {
 font-family: 'Roboto', sans-serif;
  max-width: 900px;
  /* max-height: 165px;  мұны алып тастаймыз */
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;    /* элементтерді жоғарғыдан бастау */
  border: 0.5px solid #d1d1d0;
  box-shadow: 5px 5px 2px #d1d1d0;
  border-radius: 30px;
  margin-top: 10px;
  margin-bottom: 10px;
  background: rgb(253, 255, 252);
}

.block_icon_9{
  margin-top: 1%;
  margin-bottom: 1%;
  display: flex; 
}
.block_icon_9 img{
  height: 140px;
  width: 140px;
  margin-left: 10px;
  margin-right: auto;
  border: 0.5px solid #45a1ff;
  border-radius: 30px;
}
.block_icon_9 img:hover{
transform: scale(1.05);
}
.block_content{
  width: 60%;
  font-family: 'Inter', sans-serif;
}
.cross_line{
  font-family: 'Merriweather';
  width: auto;
  display: flex;
  display: grid;

}
.cross_line p{
font-size: 17px;
}
.text{
  margin-bottom: 0px;
}
a.text{
text-decoration-line:none;
color: #000000;

}
a.text :hover{ 
border: 0.5px solid #24b142;
box-shadow: 5px 5px 2px #c3c9b2;
border-radius: 5px;
}
.content_header{
  margin-top: 5%;
}
.content_header img{
  width: 150px;
  margin-right: 30px;
  border: 3px solid #45a1ff;
  border-radius: 30px;
}
.wrapper_text{
  margin-top: 2%;
  margin-bottom: 10%;
}
.content_header{
margin-left: 5px;
padding-left: 25px;
}
.wrapper_text{
  margin-left: 5px;
  padding-left: 15px;
}
.block_button{
margin-left: 3%;
}
.block_button button{
  margin-top: 50px; 
  margin-bottom: 20px;
  height: 30%;
  font-size: 20px;
  
}
.block_button button:hover {
  transform:scale(1.04);
  color: #fff;
  box-shadow: 0 9px 9px rgb(29, 211, 59);
}

.accordion {    
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  overflow: hidden;
  font-family: 'Roboto', sans-serif;
  background: #b5f3b5;
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  justify-content: left;
  border: 0.5px solid #ffffff;
  border-radius: 30px;
  margin-top: 10px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.bg_color{
  background: #b5f3eb
}

.accordion__label,.accordion__content {
  padding: 14px 20px;
  margin-bottom: 8px;
  font-family: 'Merriweather', sans-serif;
}

.accordion__label {
  font-family: 'Merriweather', sans-serif;
  display: block;
  color: #ffffff;
  font-weight: 500;
  font-size: 17px;
  cursor: pointer;
  position: relative;
  transition: background 0.1s;
}
/*  
.accordion__label::after {
  content: "";
  font-family: 'Roboto', sans-serif;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 20px;
  width: 12px;
  height: 6px;
  background-image: url('data:image/svg+xml;utf8,<svg width="100" height="50" xmlns="http://www.w3.org/2000/svg"><polygon points="0,0 100,0 50,50" style="fill:%23FFFFFF99;" /></svg>');
  background-size: contain;
  transition: transform 0.4s;
  margin-bottom: 0px;
} */

.accordion__content {
  font-family: 'Roboto', sans-serif;
  background: #fffbfb;
  line-height: 1.6;
  font-size: 0.85em;
  display: none;
}

.accordion__input {
  display: none;
}

.accordion__input:checked ~ .accordion__content {
  display: block;
}

.accordion__input:checked ~ .accordion__label::after {
  transform: translateY(-50%) rotate(0.5turn);
}
.collapsible{
  margin-top: 0.5%;
  font-family: 'Merriweather', sans-serif;
  margin-bottom: 0.5%;
  border: 0.5px solid #475b8e;
  border-radius: 30px;
  background-color: #29bd67d3;
  color: white;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  font-size: 16px;
}

.collapsible_g{
  font-family: 'Merriweather', sans-serif;
  margin-top: 0.5%;
  margin-bottom: 0.5%;
  border: 0.5px solid #475b8e;
  border-radius: 30px;
  background-color: #299fbd;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  height: 70px;
  border: none;
  outline: none;
  font-size: 16px;
}

.active,.collapsible:hover {
  background-color: #24a359;
}

.content{
  border: 0.5px solid #27ae60;
  border-radius: 30px;
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  background-color: #ffffff;
}
.content_list{
  font-family: 'Roboto', sans-serif;
  margin-top: 25px;
  margin-bottom: 25px;
}

.lessons_block{
  width: 900px;
  align-content: center;
  margin: 0 auto;
  padding-top: 10px;
  padding-left: 20px;
  font-family: 'Roboto', sans-serif;
  background-color: #ffffff;
 }

 /* .lessons_block_test{
  width: 900px;
  align-content: center;
  margin: 0 auto;
  padding-top: 10px;
  padding-left: 20px;
  font-family: 'Roboto', sans-serif;
  background-color: #ffffff;
 } */

.text_header_text{
font-family: 'Merriweather';
  font-size: 22px;
  text-align: center;
  padding-right: 50px;
  }
.text_second_header_text{
  font-size: 16px;
  text-align: center;
  }
.text_main{
  font-size: 18px;
  margin-bottom: 20px;
}
.video_player {
  margin-top: 15px;
  margin-bottom: 15px;
  text-align: center;
  border-radius: 12px;
}
.video_player iframe{
  border-radius: 12px;
}
.tapsyrma_block {
  height: 520px;
}
.tapsyrma_block img{
  display: block;
  max-width: 100%;
}
.lessons_answer{
  display: none;
  height: 180px;
}
.lessons_answer img{
  height:90%;
  width: auto;	
}

 article {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
 }
 footer {
  display: flex;
  justify-content: center;
  padding: 3px;
  background-color: #45a1ff;
  color: #fff;
 }
 
.container_test{
  font-family: 'Roboto';
  font-size: 20px;
  margin-right: 20px;
  margin-bottom: 5px;

}
h3.vopros_head {
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 10px;
  margin-top: 10px;
  margin-left: 25px;
  text-align: left;
}
h2.vopros_text {
  overflow:hidden;
  font-size: 20px;
  background-color: #ffffff;
  border-radius: 15px;
  color: #3e3d3d;
  text-decoration: none;
  box-shadow: 0px 0px 2px 2px rgba(49, 171, 81, 0.748);
  font-weight: 500;
  margin-bottom: 10px;
  margin-top: 10px;
  padding-top: 7px;
  padding-bottom: 7px;
  text-align: center;
}
.vopros_text img{
  max-width: auto !important;
}
label.lb_otvet {
  display: flex;
  margin: 2px;
  /* background-color: #ffffff; */
  /* border-radius: 25px; */
  color: #252525;
  /* box-shadow: 1px 2px 2px 2px rgba(49, 171, 81, 0.748); */
  cursor: url('../src/click.png'), auto;
}
.cbx{
  cursor: url('../src/click.png'), auto;
}

.otvety_contain {
box-shadow: 0px 1px 10px 2px #31ab51bf;
}
.text_main_lessons{
font-family: 'Merriweather';
}

.ck_div_main{   
background-color: rgba(212, 216, 212, 0.486);
height: auto;
width: 1000px;
padding-left: 5%;
padding-right: 5%;
padding-bottom: 5%;
}
.vopros {
padding-left: 5%;
padding-right: 5%;
}
.otvet_1 {
position: static;
height: 50px;
width: 450px;
}
.otvet_2 {
margin-top: 80px;
position: static;
height: 50px;
width: 450px;
}
.otvet_3 {
position: static;
height: 100px;
width: 450px;
}
.otvet_4 {
margin-top: 80px;
position: static;
height: 100px;
width: 450px;
}
.ul_class_css {
display: flex;
flex-wrap: wrap;
width: 860px;
}
/* .pagination{
} */
.test_head{
font-family: Merriweather;
}

div.list-group button:hover {
background-color: #34db66c5;
}
div.list-group label:hover {
background-color: #6be690c5;
}
ul.ul_class_css li a:hover {
background-color: #30ade7c5;
}
.header_byttons{ 
cursor: pointer;
/* cursor: url('../src/finger.png'), auto; */
}
.vopros_page{
cursor: pointer;
}
.check_test {
cursor: progress;
} 
.login_icon{
border: white;
background-color: white !important;
}

.acount_status{
height: auto;
width: auto;
}
.btn{
  margin-left: 15px;
}
.block_2buttons{
display: flex;
flex-direction:row;
margin-right: 5px;
}
.swal-wide{
width:60% !important;
}

/* ------------------- */
@media (max-width: 360px) {
  .body{
    width: 100%;
    max-width: 360px;
  }
  .block_head {
    display: flex;            /* если нужно выравнивать содержимое */
    flex-direction: column;   /* текст и изображения идут сверху вниз */
    justify-content: center;  /* центрируем содержимое вертикально, если нужно */
    align-items: flex-start;  /* выравнивание текста слева */
    width: 100%; 
    height: 100%;             /* занимает всю ширину контейнера */
    max-width: 100%; 
    max-height: 100%;         /* гарантируем, что не выйдет за пределы */
    box-sizing: border-box;   /* padding не ломает ширину */
    background-color: #ffffff; /* для наглядности можно оставить */
    border-radius: 10px;      /* опционально */
    position: relative;       /* чтобы внутренние элементы позиционировать при необходимости */
    overflow: hidden;         /* чтобы текст не вылезал за блок */
  }
   .header{
    max-width: 360px;
  }
  .header_byttons_text{
    max-width: 100%;
    width: 360px;
  }
  .header_list li {
    list-style: none;
    margin-top: 25px;
    margin-left: 20px;
    font-size: 0px;
    font-family: 'Merriweather', sans-serif;
  }
  .block_lessonbg{
    max-width: 100%;
  }
  .lessons_block{
      max-width: 360px;
      align-content: center;
      margin: 0 auto;
      padding-top: 10px;
      padding-left: 20px;
      font-family: 'Roboto', sans-serif;
      background-color: #ffffff;
    }
  .btn-success{
    font-size: 15px !important;
    width: 100%; 
    height: 100%;
    align-items: center;
  }
   .container{
      max-width: 360px;
      margin: 0px auto;
      padding: 0px 10px;
      background-color: #000;
    }
  .block_head_image_main{
    max-width: 360px;
  }
  .accordion {    
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    background: #b5f3b5;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    justify-content: left;
    border: 0.5px solid #ffffff;
    border-radius: 30px;
    margin-top: 5px;
    padding-top: 5px;
    padding-bottom: 5px;
    
  }
  .collapsible{
    height: 30%;
    font-size: 13px;
    align-items: center;
  }
  .block_info {
      display: flex;
      justify-content: center; 
      align-items: center;     
      height: 100%;           
  }
}

/* --------------------- */
@media (max-width: 400px) {
  .block_head {
    display: flex;            /* если нужно выравнивать содержимое */
    flex-direction: column;   /* текст и изображения идут сверху вниз */
    justify-content: center;  /* центрируем содержимое вертикально, если нужно */
    align-items: flex-start;  /* выравнивание текста слева */
    width: 100%; 
    height: 100%;             /* занимает всю ширину контейнера */
    max-width: 100%; 
    max-height: 100%;         /* гарантируем, что не выйдет за пределы */
    box-sizing: border-box;   /* padding не ломает ширину */
    padding: 20px;            /* внутренние отступы */
    margin-bottom: 20px;      /* расстояние до следующего wrapper */
    background-color: #ffffff; /* для наглядности можно оставить */
    border-radius: 10px;      /* опционально */
    position: relative;       /* чтобы внутренние элементы позиционировать при необходимости */
    overflow: hidden;         /* чтобы текст не вылезал за блок */
  }
  .btn{
    margin-left: 5px;
  }
  .accordion {    
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    background: #b5f3b5;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    justify-content: left;
    border: 0.5px solid #ffffff;
    border-radius: 30px;
    margin-top: 5px;
    padding-top: 5px;
    padding-bottom: 5px;
    
  }
  .collapsible{
    height: 30%;
    font-size: 13px;
    align-items: center;
  }
  .block_head p {
    height: 100%;
    margin: 0;                /* убираем лишние отступы */
    font-size: 16px;          /* удобочитаемый размер */
    line-height: 1.4;
    word-break: break-word;   /* длинные слова не ломают блок */
  }
  .body_block{
    width: 100%;
  }
  .block_info {
      display: flex;
      justify-content: center; 
      align-items: center;     
      height: 100%;           
  }
  .cross_line p {
        font-family: 'Merriweather';
        font-size: 14px;
        width: 100%;
        height: 100%;
      }
  .block_end {
      display: flex;
      flex-direction: row; /* весь блок горизонтально: левый столб + правая кнопка */
      justify-content: space-between; /* левый блок слева, кнопка справа */
      width: 100%;
      padding: 10px;
      box-sizing: border-box;
      position: relative;
  }

/* Левый блок: icon + текст вертикально */
  .block_end .top_row {
      display: flex;
      flex-direction: column; /* icon над текстом */
      gap: 10px; /* расстояние между icon и текстом */
  }
  .wrapper_text_test .nis_test_btn {
      flex: 1;                  /* каждая кнопка занимает равную ширину */
      max-width: none;          /* снимаем ограничения ширины */
  }
  .block_icon_9{
        align-items: center !important;
        display: grid; 
        place-items: center;
      }
  .block_icon_9 img{
        align-items: center;
        height: 80px;
        width: 80px;
      }
  .block_2buttons {

      display: flex;
      flex-direction: column; /* делаем кнопки вертикально */
      gap: 1px; /* расстояние между кнопками, можно менять */
      align-items: center; /* по центру горизонтально */
  }

  .block_2buttons .nis_test_btn {
      width: 100%; 
      height: 100%;
      max-width: 140px; /* можно подогнать под дизайн */
      align-items: center;
  }
  .header{
    max-width: 400px;
  }
  .block_head_image_main {
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 5px 5px rgb(196, 202, 196);
    margin-top: 70px;
    padding-left: 1%;
    padding-top: 1%;
    max-width: 400px;          /* было 420 */
    height: 55px;
    position: fixed;
    display: flex;
    align-items: center;
    background: #27ae60;
    background-repeat: no-repeat;
    background-size: cover;
  }
  .block_head_image_main p {
    font-size: 14px;       /* чуть меньше для 400 */
  }
  .container{
      max-width: 400px;
      margin: 0px auto;
      padding: 0px 10px;
      background-color: #000;
    }
  .header_byttons_text{
    max-width: 100%;
    width: 400px;
  }
  .header_list li {
    list-style: none;
    margin-top: 25px;
    margin-left: 20px;
    font-size: 0px;
    font-family: 'Merriweather', sans-serif;
  }
}

/* ------------------------------- */

@media (max-width: 548px) {
  
    .body_block {
      width: 100%;
    }
    .header{
      max-width: 548px;
    }
    .test_vopros_text img{
      max-width: 350px;
    }
    .test_vopros_text_img img {
      max-width: 350px;
    }
    iframe{
      width: 274px;
      height: 315px;
    }
    .ul_class_css {
      display: flex;
      flex-wrap: wrap;
      width: 350px;
    }
    .container{
      max-width: 548px;
      margin: 0px auto;
      padding: 0px 10px;
      background-color: #000;
    }
    .header{
      position:fixed;
      width: 100%;
      height: 70px;
      top: 0;
      left: 0;
      z-index: 50;
      box-shadow: 0 4px 10px rgba(224, 233, 238, 0.892);
      display: flex; 
    }
    .header_byttons_text{
      width: 548px;
    }
    .lessons_block{
      width: 400px;
      align-content: center;
      margin: 0 auto;
      padding-top: 10px;
      padding-left: 20px;
      font-family: 'Roboto', sans-serif;
      background-color: #ffffff;
    }
    .header_body{
      position: relative;
      z-index: 2;
      display: flex;
      justify-content: space-between;
      height: 60px;
      margin-right: 55px;
      align-items: center;
    }
    .header_logo{
      flex: 0 0 50px;
    }
    .header_logo, .header_menu{
        display: inline-block;
        margin-top: 0px ;
        padding-bottom: 0px;
    }
    .img_logo{
      width: 120px;
      height: 90px;
      display:flex;
      position: relative;
      bottom: 20px;
      right: 20px;
    }

    .logo{
        height: 80px;
        display:flex;
        overflow: hidden;
    }     
    .logo_contain{
      display: inline-block;
    }
    .block_head_image_main {
      font-family: 'Roboto', sans-serif;
      box-shadow: 0 5px 5px rgb(196, 202, 196);
      margin-top: 70px;
      padding-left:1%;
      padding-top: 1%;
      width: 548px;
      height: 55px;
      position:fixed;
      display: flex;
      align-items:center;
      background: #27ae60;
      background-repeat: no-repeat;
      background-size: cover ;
    }
    .block_head_image_main p{
    font-size: 16px;
    }
    .header_list li {
      list-style:none;
      margin-top: 25px;
      margin-left: 20px;
      font-size: 0px;
      font-family: 'Merriweather', sans-serif;  
    }
    .block_head{
      width: 100%;
      display: inline-block;
    }
    .block_info {
    display: flex;
    justify-content: center; 
    align-items: center;     
    height: 100%;           
}
    .cross_line{
      max-width: 100%;
      width: 100%;
      display: inline-block;
    }

    .block_head_icon img {
      width: 100px;
      height: 100px;
    }
    .cross_line p {
      font-family: 'Merriweather';
      font-size: 14px;
      width: 100%;
      height: 100%;
    }
    .block_icon_9{
      align-items: center !important;
    }
    .block_icon_9 img{
      align-items: center;
      height: 80px;
      width: 80px;
    }
    .content_header {
      display: none;
    }
    .block_content {
      align-items: center;
    }
    .wrapper_text{
      padding-top: 15%;
    }

    .block_button button{
      display: flex;
    }
    .block_2buttons{
      display: flex;
      flex-direction:column;
    }
    .block_2buttons button{
      height: 40px;
      margin-top: 30px;
      margin-bottom: 10px;
      text-align: center;  
    }
    .swal-wide{
      width: min(548px, calc(100vw - 20px)) !important;
      max-width: calc(100vw - 20px) !important;
    }
}

/* ------------------------------ */

.left_img{
float:left
}

/* ============================================================
   БІЗ ЖАЙЛЫ (ABOUT US) ЖАҢАРТЫЛҒАН ДИЗАЙН 2026
   ============================================================ */
.about-page {
    background: #f8fafc;
    color: #1e293b;
    font-family: 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding-bottom: 70px;
    min-height: 80vh;
}

.about-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* HERO SECTION */
.about-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
    color: #ffffff;
    padding: 60px 0 70px 0;
    text-align: center;
    border-radius: 0 0 32px 32px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.15);
}

.about-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.about-hero-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.about-hero-lead {
    font-size: 18px;
    line-height: 1.6;
    max-width: 820px;
    margin: 0 auto 14px auto;
    color: #f8fafc;
    font-weight: 400;
}

.about-hero-lead strong {
    color: #fed7aa;
    font-weight: 700;
}

.about-hero-sub {
    font-size: 15px;
    line-height: 1.6;
    max-width: 760px;
    margin: 0 auto;
    color: #cbd5e1;
}

/* STATS SECTION */
.about-stats-section {
    margin-top: -38px;
    position: relative;
    z-index: 10;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.about-stat-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 22px 18px;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px -5px rgba(0, 0, 0, 0.12);
}

.about-stat-icon {
    font-size: 32px;
    margin-bottom: 8px;
    line-height: 1;
}

.about-stat-value {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.about-stat-label {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

/* AUTHORS SECTION */
.about-team-section {
    padding: 60px 0 40px 0;
}

.about-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.about-section-tag {
    display: inline-block;
    color: #ff6b35;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.about-section-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.about-section-desc {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

.about-authors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.about-author-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 34px 28px;
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.25s ease;
}

.about-author-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
}

.about-author-photo-wrapper {
    position: relative;
    margin-bottom: 22px;
}

.about-author-photo {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #eff6ff;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.18);
    display: block;
}

.about-author-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.about-author-badge.badge-coral {
    background: #ff6b35;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.about-author-name {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 12px 0 4px 0;
}

.about-author-role {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.about-author-divider {
    width: 48px;
    height: 3px;
    background: #e2e8f0;
    border-radius: 3px;
    margin: 0 auto 18px auto;
}

.about-author-bio {
    list-style: none;
    padding: 0;
    margin: 0 0 26px 0;
    text-align: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.about-author-bio li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.bio-bullet {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.about-author-contacts {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    justify-content: center;
}

.author-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.author-contact-btn.wa-btn {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.author-contact-btn.wa-btn:hover {
    background: #10b981;
    color: #ffffff;
}

.author-contact-btn.phone-btn {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.author-contact-btn.phone-btn:hover {
    background: #2563eb;
    color: #ffffff;
}

.contact-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* VALUES SECTION */
.about-values-section {
    padding: 40px 0 50px 0;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.about-value-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 22px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px -6px rgba(0, 0, 0, 0.1);
}

.about-value-num {
    font-size: 28px;
    font-weight: 900;
    color: #cbd5e1;
    margin-bottom: 10px;
    line-height: 1;
}

.about-value-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.about-value-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

/* CTA SECTION */
.about-cta-section {
    padding: 10px 0 40px 0;
}

.about-cta-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 24px;
    padding: 36px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.2);
}

.about-cta-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: #ffffff;
}

.about-cta-desc {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

.about-cta-btns {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.about-btn-primary {
    background: #ff6b35;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.about-btn-primary:hover {
    background: #ea580c;
    transform: translateY(-2px);
}

.about-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    display: inline-block;
}

.about-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================================
   ABOUT US RESPONSIVE / АДАПТАЦИЯ
   ============================================================ */
@media (max-width: 900px) {
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .about-authors-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
        gap: 24px;
    }
    .about-values-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .about-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 24px;
    }
    .about-cta-btns {
        width: 100%;
        flex-direction: column;
    }
    .about-btn-primary, .about-btn-secondary {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

@media (max-width: 600px) {
    .about-hero {
        padding: 40px 0 45px 0;
        border-radius: 0 0 24px 24px;
    }
    .about-hero-title {
        font-size: 28px;
    }
    .about-hero-lead {
        font-size: 15px;
    }
    .about-hero-sub {
        font-size: 13px;
    }
    .about-stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .about-stat-card {
        padding: 16px 14px;
    }
    .about-author-card {
        padding: 24px 18px;
    }
    .about-author-photo {
        width: 140px;
        height: 140px;
    }
    .about-author-name {
        font-size: 20px;
    }
    .about-author-contacts {
        flex-direction: column;
        width: 100%;
    }
    .author-contact-btn {
        width: 100%;
        box-sizing: border-box;
    }
}

* {
box-sizing: border-box;
}
.block_page{
  text-align: center;
}
.wrap {
  position: relative;
}
.block_avtor_bg:before{ 
  background-color: #ffffff;
  content: "";
  display: block;
  padding-bottom: 20px;
  font-family: 'Roboto', sans-serif;
  font-size: 30px;
  justify-content: center;
  height: auto;
  width: 100vw;
  height: 100vh;
}

/* Modal background */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

/* Modal content box */
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

/* Close button */
.close {
  position: absolute;
  top: 8px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
/* карточки */
.element_1,
.element_2 {
  width: 100%;
  max-width: 380px;
  height: auto;          /* убираем фикс 790px */
}

/* текст */
.text_autor {
  height: auto;
  padding: 20px;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
.site-footer {
  text-align: center;
  padding: 15px;
  margin-top: 2px;
  background-color: #27ae60; /* Жобадағы жасыл түске сәйкестендір */
  color: white;
  font-size: 14px;
  border-top: 2px solid #1e874b;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.site-footer a:hover {
  text-decoration: underline;
}
#pageLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(3px);
}

.loader_spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #e0e0e0;
    border-top: 6px solid #28a745;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}
/* ============================================================
   НОВЫЙ ДИЗАЙН — HEADER / FOOTER / GRADE CARDS (v2)
   Заменяет старые стили .header, .body_block, .wrapper, 
   .block_icon_9, .block_button и т.д. для index/header/footer
   ============================================================ */

/* --- ОБЩИЙ ФОН --- */
.body {
  background: #f5f7fa !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  /* ФИКС ФУТЕРА: делаем body flex-контейнером на весь экран */
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
}

.body_block {
  width: 100%;
  margin-top: 130px;
  padding: 1.5rem 1rem 3rem;
  background-image: none !important;
  background-color: transparent;
  /* ФИКС ФУТЕРА: заставляем контент занимать всё пустое пространство */
  flex-grow: 1 !important;
}

.content_block {
  max-width: 1100px;
  margin: 0 auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

/* --- HEADER --- */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 99990 !important;
  height: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  background: transparent;
}

.header::before {
  display: none;
}

/* Верхняя строка хедера */
.hdr-inner {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.img_logo {
  width: 140px;
  height: 70px;
  display: flex;
  align-items: center;
  position: static;
  bottom: auto;
  right: auto;
}

.img_logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo {
  margin-top: 0;
  height: auto;
  overflow: visible;
  display: flex;
  align-items: center;
}

.header_logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header_logo img {
  margin: 0;
  max-width: 100%;
  display: block;
}

/* Навигация (телефон, whatsapp, кіру) */
.header_menu {
  display: inline-flex;
  align-items: center;
  margin-top: 0;
  padding-bottom: 0;
}

.header_list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header_list li {
  list-style: none;
  margin: 0;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.header_list li:hover {
  transform: none;
}

.header_list li a,
.header_list li button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  color: #444;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.header_list li a:hover,
.header_list li button:hover {
  background: #f0f4ff;
  color: #003d99;
}

.header_list li img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.acount_status button,
.acount_status_out button,
.acount_status > button,
.acount_status_out > button {
  background: linear-gradient(135deg, #003d99, #0057dd) !important;
  color: #fff !important;
  border-radius: 8px;
  padding: 7px 18px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,61,153,0.2);
}

.acount_status button:hover,
.acount_status_out button:hover,
.acount_status > button:hover,
.acount_status_out > button:hover {
  background: linear-gradient(135deg, #002d77, #003daa) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(0,61,153,0.3);
}

/* ============================================================
   🏆 ЖАСҚАНАТ: МИНИ-ПРОФИЛЬ ЖӘНЕ ДӘРЕЖЕЛЕР (RANKS DROPDOWN)
   ============================================================ */

.profile_dropdown_wrapper {
  position: relative !important;
}

.profile-toggle-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  cursor: pointer;
  user-select: none;
}

.hdr-rank-badge {
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.hdr-user-name {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hdr-dropdown-chevron {
  font-size: 9px;
  opacity: 0.85;
  transition: transform 0.25s ease;
  margin-left: 2px;
}

.hdr-profile-dropdown {
  position: fixed;
  top: 74px;
  right: 2rem;
  width: 330px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.08);
  z-index: 999999;
  overflow: hidden;
  animation: hpdFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  box-sizing: border-box;
}

@keyframes hpdFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hpd-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hpd-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.hpd-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.hpd-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 2px solid #bfdbfe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.15);
}

.hpd-user-meta {
  flex: 1;
  min-width: 0;
}

.hpd-username {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hpd-rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  margin-top: 4px;
}

.hpd-score-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}

.hpd-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.hpd-score-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.hpd-score-value {
  font-size: 16px;
  font-weight: 800;
  color: #003d99;
}

.hpd-progress-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.hpd-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.hpd-tests-count-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #475569;
  margin-bottom: 8px;
}

.hpd-rank-tip {
  font-size: 11px;
  line-height: 1.4;
  color: #0369a1;
  background: #f0f9ff;
  border-left: 3px solid #0284c7;
  padding: 6px 9px;
  border-radius: 4px;
}

.hpd-subjects-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hpd-sub-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
}

.hpd-subjects-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hpd-subject-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 7px 10px;
  transition: background 0.15s;
}

.hpd-subject-item:hover {
  background: #f8fafc;
}

.hpd-sub-left {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: #334155;
}

.hpd-sub-icon {
  font-size: 14px;
}

.hpd-sub-score {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.hpd-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.hpd-btn-roadmap {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
  transition: transform 0.15s, box-shadow 0.15s !important;
}

.hpd-btn-roadmap:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35) !important;
  color: #ffffff !important;
}

.hpd-btn-logout {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  background: #fff0f0 !important;
  color: #dc2626 !important;
  border: 1px solid #fecaca !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 8px 12px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: background 0.15s, color 0.15s, border-color 0.15s !important;
}

.hpd-btn-logout:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #b91c1c !important;
}

@media (max-width: 768px) {
  .hdr-profile-dropdown {
    position: fixed;
    top: 66px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: 360px;
    margin: 0 auto;
    max-height: 85%;
    max-height: calc(100% - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
    box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(15, 23, 42, 0.1);
    z-index: 999999;
  }
}


/* Зелёная нижняя полоска навигации */
.hdr-nav-bar {
  background: #16a34a;
  height: 46px;
  display: flex;
  align-items: center;
}

.hdr-nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 2rem;
}

/* Старый .block_head_image_main — скрываем */
.block_head_image_main {
  display: none !important;
}

.hdr-nav-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.hdr-nav-btn:hover {
  background: rgba(255,255,255,0.15);
}

/* --- ОПИСАНИЕ САЙТА (block_head) --- */
.block_head {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border: 1px solid #eee;
}

.block_head_icon {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.block_head_icon img.left_img {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 0;
}

.block_head_icon p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

/* --- КАРТОЧКИ КЛАССОВ --- */
.grades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 2rem;
}

.gc {
  border-radius: 18px;
  padding: 1.5rem 1.25rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
  box-shadow: 0 4px 14px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gc:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

/* Картинка иконки внутри карточки */
.gc-img {
  width: 110px;
  height: 110px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.3);
}

.gc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gc-cls {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 5px;
  opacity: 0.75;
}

.gc-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 14px;
  flex: 1;
}

/* Кнопки внутри карточки */
.gc-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.gc-buttons form {
  margin: 0;
}

.gc-btn {
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 7px 16px !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer;
  transition: all 0.2s !important;
  white-space: nowrap;
}

.gc-btn:hover {
  transform: scale(1.04) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Цвета карточек */
.g5  { background: linear-gradient(145deg, #fff8ec, #ffe4a0); border-color: #ffb347; }
.g5 .gc-cls, .g5 .gc-name { color: #7d3e00; }
.g5 .gc-btn { background: #ffb347 !important; color: #7d3e00 !important; }

.g6  { background: linear-gradient(145deg, #eaf3ff, #c0dcff); border-color: #4fa3ff; }
.g6 .gc-cls, .g6 .gc-name { color: #002d80; }
.g6 .gc-btn { background: #4fa3ff !important; color: #002d80 !important; }

.gent { background: linear-gradient(145deg, #fff2ec, #ffc8a0); border-color: #ff6b35; }
.gent .gc-cls, .gent .gc-name { color: #7d2200; }
.gent .gc-btn { background: #ff6b35 !important; color: #fff !important; }

.g7  { background: linear-gradient(145deg, #fff0f8, #ffd0ee); border-color: #ff6bb6; }
.g7 .gc-cls, .g7 .gc-name { color: #7d004d; }
.g7 .gc-btn { background: #ff6bb6 !important; color: #fff !important; }

.g8  { background: linear-gradient(145deg, #ebfaf4, #b8f0d8); border-color: #4fdab3; }
.g8 .gc-cls, .g8 .gc-name { color: #00402e; }
.g8 .gc-btn { background: #4fdab3 !important; color: #003d2a !important; }

.g9  { background: linear-gradient(145deg, #f5f0ff, #dcc8ff); border-color: #a855f7; }
.g9 .gc-cls, .g9 .gc-name { color: #3d007a; }
.g9 .gc-btn { background: #a855f7 !important; color: #fff !important; }

.gmat { background: linear-gradient(145deg, #fffbe6, #ffe88a); border-color: #f59e0b; }
.gmat .gc-cls, .gmat .gc-name { color: #7d4a00; }
.gmat .gc-btn { background: #f59e0b !important; color: #fff !important; }

/* --- FOOTER --- */
.site-footer {
  text-align: center;
  padding: 1.25rem 2rem;
  background: #1a1a2e;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  border-top: none;
  /* ФИКС ФУТЕРА: автоматический отступ сверху толкает футер в самый низ */
  margin-top: auto !important;
  flex-shrink: 0 !important;
  width: 100%;
}

.site-footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-footer .footer-copy {
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.site-footer a {
  color: #4ade80;
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* --- АДАПТИВ --- */
@media (max-width: 768px) {
  .hdr-inner {
    padding: 0 1rem;
    height: 58px;
  }

  .header_list {
    gap: 0;
  }

  .header_list li:first-child {
    display: none;
  }

  .img_logo {
    width: 110px;
    height: 56px;
  }

  .hdr-nav-inner {
    padding: 0 1rem;
    gap: 0;
  }

  .hdr-nav-btn {
    font-size: 13px;
    padding: 6px 12px;
  }

  .body_block {
    margin-top: 115px;
  }

  .grades-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .gc {
    padding: 1.1rem 1rem;
  }

  .gc-img {
    width: 85px;
    height: 85px;
  }

  .gc-name {
    font-size: 13px;
  }

  .gc-btn {
    font-size: 12px !important;
    padding: 5px 12px !important;
  }

  .block_head_icon img.left_img {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .grades-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gc-img {
    width: 70px;
    height: 70px;
  }
}
/* ============================================================ */


/* ============================================================
   HERO БЛОК + ОБНОВЛЁННЫЙ ХЕДЕР (v3)
   ============================================================ */

/* --- ХЕДЕР: одна строка, белый фон, логотип + центр. нав + правая часть --- */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 99990 !important;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.hdr-inner {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  gap: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Убираем старую зелёную полоску */
.hdr-nav-bar {
  display: none !important;
}

/* Логотип */
.img_logo {
  width: 130px;
  height: 60px;
  display: flex;
  align-items: center;
}

.img_logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Центральная навигация */
.hdr-nav-center {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.hdr-nav-link {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
}

.hdr-nav-link:hover {
  background: #f0f4ff;
  color: #003d99;
}

/* body_block теперь без отступа под зелёную полоску */
.body_block {
  margin-top: 0 !important;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  background: transparent;
}

/* --- HERO SECTION --- */
.hero-section {
  padding: 80px 2rem 60px;
  text-align: center;
  background: linear-gradient(180deg, #eef4ff 0%, #f5f7fa 100%);
  margin-top: 70px; /* высота хедера */
  position: relative;
  overflow: hidden;
}

/* фоновые круги как в V1 */
.hero-section::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  background: rgba(0,61,153,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  background: rgba(22,163,74,0.04);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(22,163,74,0.08);
  border: 1px solid rgba(22,163,74,0.2);
  color: #16a34a;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-family: 'Inter', sans-serif;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  color: #1a1a2e;
  margin-bottom: 1.25rem;
  letter-spacing: -1.5px;
  font-family: 'Inter', sans-serif;
}

.hero-blue {
  color: #003d99;
}

.hero-green {
  color: #16a34a;
}

.hero-sub {
  font-size: 17px;
  color: #666;
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-family: 'Inter', sans-serif;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #003d99, #0057dd);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,61,153,0.28);
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,61,153,0.38);
}

.btn-hero-outline {
  background: #fff;
  border: 2px solid #e0e0e0;
  color: #1a1a2e;
  padding: 14px 36px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.btn-hero-outline:hover {
  border-color: #003d99;
  color: #003d99;
}

/* Статистика под кнопками */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(0,0,0,0.07);
  max-width: 480px;
  margin: 0 auto;
}

.hero-stat-num {
  font-size: 36px;
  font-weight: 800;
  color: #003d99;
  font-family: 'Inter', sans-serif;
}

.hero-stat-lbl {
  font-size: 11px;
  color: #aaa;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-family: 'Inter', sans-serif;
}

/* --- АДАПТИВ HERO + HEADER --- */
@media (max-width: 900px) {
  .hdr-nav-center {
    display: none;
  }

  .hdr-inner {
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 56px 1.25rem 40px;
    margin-top: 70px;
  }

  .hero-title {
    font-size: 34px;
    letter-spacing: -0.5px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-stats {
    gap: 2rem;
  }

  .hero-stat-num {
    font-size: 28px;
  }

  .btn-hero-primary,
  .btn-hero-outline {
    padding: 12px 24px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .btn-hero-primary,
  .btn-hero-outline {
    width: 100%;
    max-width: 300px;
  }
}
/* ============================================================ */

/* ============================================================
   🌟 БАСТЫ БЕТТЕГІ ЖОҒАРҒЫ «БІЗДІҢ ЖЕТІСТІКТЕР» БАТЫРМАСЫ (ОРТАДА)
   ============================================================ */
.results-link-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 110px !important; /* 70px (высота шапки) + 40px (свободное пространство) */
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
    width: 100%;
}

.btn-results-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #b8860b, #d4aa00, #f5d800);
    color: #1a1000 !important;
    font-size: 15.5px;
    font-weight: 850;
    padding: 13px 34px;
    border-radius: 16px;
    text-decoration: none !important;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 6px 20px rgba(212, 170, 0, 0.28);
    transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    min-height: 48px;
}

.btn-results-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(212, 170, 0, 0.42);
    color: #1a1000 !important;
    text-decoration: none !important;
}

.btn-results-link:active {
    transform: translateY(0);
}

/* ============================================================
   🌿 НЗМ 2 БАТЫРМАСЫ: БАННЕРДІҢ ҮСТІНДЕ, ТҰРАҚТЫ (БЕЗ РАСКАЧКИ)
   ============================================================ */
.home-nis-header-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    width: 100%;
    text-align: center;
    gap: 8px;
}

.home-nis-group-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15.5px;
    font-weight: 850;
    color: #065f46;
    background: linear-gradient(135deg, #f0fdf4 0%, #e6fcf0 100%);
    border: 1.5px solid #a7f3d0;
    border-radius: 9999px;
    padding: 7px 22px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
    letter-spacing: 0.1px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    user-select: none;
    line-height: 1.3;
    transition: all 0.22s ease;
}

.home-nis-group-label:hover {
    border-color: #6ee7b7;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.14);
}

.home-nis-buttons-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
}

.btn-nis-header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14.5px;
    font-weight: 850;
    padding: 10px 22px;
    border-radius: 14px;
    text-decoration: none !important;
    font-family: 'Inter', sans-serif;
    transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    min-height: 44px;
}

/* Фирменный бейдж НЗМ внутри кнопки */
.btn-nis-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 6px;
    margin-right: 8px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    line-height: 1.2;
    flex-shrink: 0;
}

/* 1. Барлық оқушылар (Корольдік көк градиент — спокойная, без анимации раскачки) */
.btn-nis-all-students {
    background: linear-gradient(135deg, #0057dd 0%, #003ea8 100%);
    border: 1.5px solid #2563eb;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 87, 221, 0.25);
}

.btn-nis-all-students:hover {
    background: linear-gradient(135deg, #0066ff 0%, #004ecc 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 87, 221, 0.38);
    border-color: #60a5fa;
    color: #ffffff !important;
}

.btn-nis-all-students:active {
    transform: translateY(0);
}

/* 2. Жетістіктер картасы (Изумруд жасыл градиент — спокойная, без анимации раскачки) */
.btn-nis-roadmap {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1.5px solid #047857;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.btn-nis-roadmap:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.38);
    border-color: #34d399;
    color: #ffffff !important;
}

.btn-nis-roadmap:active {
    transform: translateY(0);
}

.btn-nis-header-action:active {
    transform: translateY(0);
}

/* Мобильдік бейімделу (Правило 9: Android WebView & Mobile) */
@media (max-width: 768px) {
    .results-link-wrap {
        padding-top: 85px !important;
        margin-bottom: 1.25rem;
    }

    .btn-results-link {
        font-size: 14.5px;
        padding: 11px 24px;
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .home-nis-group-label {
        font-size: 13.5px;
        padding: 6px 16px;
    }

    .home-nis-buttons-row {
        gap: 8px;
        max-width: 420px;
        margin: 0 auto;
    }

    .btn-nis-header-action {
        flex: 1 1 calc(50% - 6px);
        font-size: 12.5px;
        padding: 9px 8px;
        min-height: 44px;
        text-align: center;
    }

    .btn-nis-tag {
        font-size: 10px;
        padding: 2px 5px;
        margin-right: 5px;
    }
}

@media (max-width: 360px) {
    .home-nis-buttons-row {
        flex-direction: column;
    }

    .btn-nis-header-action {
        width: 100%;
    }
}

/* ============================================================
   📦 1. НЗМ ДАЙЫНДЫҚ БӨЛІМІ (ОБВОДКАМЕН ҚОРШАЛҒАН НЗМ БЛОГЫ)
   ============================================================ */
.home-nis-classes-box {
    margin-bottom: 22px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 26px;
    padding: 22px 20px 24px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    width: 100%;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.home-nis-classes-box:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.home-nis-classes-box .cls-banner-nis-wrap {
    margin-bottom: 0 !important;
}

/* ============================================================
   📦 2. ЖАЛПЫ СЫНЫПТАР МЕН ҰБТ БӨЛІМІ (ОБВОДКАМЕН 6 КАРТОЧКА)
   ============================================================ */
.home-general-classes-box {
    margin-bottom: 2rem;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 26px;
    padding: 22px 20px 24px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    width: 100%;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.home-general-classes-box:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.home-general-header-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    width: 100%;
    text-align: center;
}

.home-general-group-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 850;
    color: #1e40af;
    background: linear-gradient(135deg, #eff6ff 0%, #e0effe 100%);
    border: 1.5px solid #bfdbfe;
    border-radius: 9999px;
    padding: 8px 24px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
    letter-spacing: 0.1px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    user-select: none;
    text-align: center;
    line-height: 1.35;
    transition: all 0.22s ease;
}

.home-general-group-label:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.14);
}

.home-general-classes-box .grades-grid.class-banners-grid {
    margin: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    gap: 16px !important;
}

@media (max-width: 768px) {
    .home-nis-classes-box,
    .home-general-classes-box {
        margin-bottom: 1.25rem;
        padding: 16px 12px 18px 12px;
        border-radius: 20px;
    }

    .home-general-group-label {
        font-size: 13px;
        padding: 6px 16px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .home-general-classes-box .grades-grid.class-banners-grid {
        gap: 12px !important;
    }
}

/* ============================================================
   SVG ИКОНКИ В КАРТОЧКАХ + ЗАМОК НА DISABLED КНОПКАХ (v3)
   ============================================================ */

/* SVG иконка вместо PNG */
.gc-img {
    width: 110px;
    height: 110px;
    border-radius: 20px;
    overflow: visible;
    margin-bottom: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
}

.gc-img svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.10));
    transition: transform 0.2s;
}

.gc:hover .gc-img svg {
    transform: scale(1.06);
}

/* --- ЗАБЛОКИРОВАННАЯ КНОПКА --- */
.gc-btn-locked {
    background: #e0e0e0 !important;
    color: #999 !important;
    border: 1.5px dashed #bbb !important;
    cursor: not-allowed !important;
    opacity: 0.8 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 7px 14px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

/* Для карточки gent когда заблокирована — слегка затемнить */
.gent .gc-btn-locked {
    background: rgba(200,200,200,0.4) !important;
    color: #888 !important;
    border-color: #ccc !important;
}

/* Tooltip при наведении на заблокированную кнопку */
.gc-btn-locked[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
}

/* ============================================================ */


/* ============================================================
   ВЫРАВНИВАНИЕ КНОПОК В КАРТОЧКАХ (v4)
   Одна кнопка встаёт на уровень первой кнопки в карточках с двумя
   ============================================================ */

/* Все карточки — flex колонка, кнопки прижаты к низу */
.gc {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Блок кнопок всегда внизу карточки */
.gc-buttons {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 80px; /* высота двух кнопок — все карточки одинаковые */
    justify-content: flex-start;
    padding-top: 0;
}

/* ============================================================ */


/* ============================================================
   КАРТОЧКИ v4 — мобильная адаптация, кликабельные карточки,
   убраны лишние gc-name, пропорции иконок
   ============================================================ */

/* ГРИД — строго 2 колонки на мобиле */
.grades-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 1.5rem;
    padding: 0 4px;
}

/* На десктопе — авто колонки */
@media (min-width: 640px) {
    .grades-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 16px !important;
    }
}

/* Карточка — одинаковая высота в строке */
.gc {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 16px;
    padding: 14px 10px 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    height: 100%;
    width: 100%;
}

/* Форма-обёртка для кликабельных карточек */
.gc-form {
    margin: 0;
    padding: 0;
    display: contents; /* не влияет на грид */
}

/* Кликабельная карточка — кнопка на весь блок */
.gc.gc-clickable {
    cursor: pointer;
    border: none;
    text-align: center;
    font-family: 'Inter', sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    height: 100%;
}

.gc.gc-clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.gc.gc-clickable:active {
    transform: translateY(-1px);
}

/* Иконка SVG — крупнее, меньше отступов */
.gc-img {
    width: 90px;
    height: 90px;
    margin-bottom: 10px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    flex-shrink: 0;
}

.gc-img svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.10));
    transition: transform 0.2s;
}

.gc:hover .gc-img svg {
    transform: scale(1.05);
}

/* Название класса */
.gc-cls {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
    opacity: 0.7;
}

/* Убираем gc-name — он скрыт стилем */
.gc-name {
    display: none !important;
}

/* Блок кнопок */
.gc-buttons {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-height: 72px;
    justify-content: flex-start;
    padding-top: 0;
}

/* Обычные кнопки — крупнее */
.gc-btn {
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 9px 18px !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.2s !important;
    white-space: nowrap;
    width: 100%;
    max-width: 160px;
}

/* Псевдо-кнопка внутри кликабельной карточки */
.gc-btn-inner {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 10px;
    width: 100%;
    max-width: 160px;
    text-align: center;
    transition: all 0.2s;
}

/* Цвета псевдо-кнопок */
.g5-btn  { background: #ffb347; color: #7d3e00; }
.g6-btn  { background: #4fa3ff; color: #002d80; }
.gmat-btn { background: #f59e0b; color: #fff; }

/* Мобиль — адаптация размеров */
@media (max-width: 480px) {
    .gc {
        padding: 12px 8px 12px;
        border-radius: 14px;
    }

    .gc-img {
        width: 72px;
        height: 72px;
        margin-bottom: 8px;
    }

    .gc-cls {
        font-size: 10px;
        margin-bottom: 5px;
    }

    .gc-btn,
    .gc-btn-inner {
        font-size: 12px !important;
        padding: 8px 12px !important;
        border-radius: 8px !important;
        max-width: 140px;
    }

    .gc-buttons {
        min-height: 60px;
        gap: 6px;
    }
}

/* ============================================================ */


/* ============================================================
   ФИКС v4.1 — кнопки по центру, текст не выезжает, отступы
   ============================================================ */

/* Кнопки — по центру карточки, текст переносится */
.gc-buttons {
    align-items: center !important;
    padding: 0 6px !important;
}

.gc-btn {
    white-space: normal !important;
    word-break: break-word !important;
    text-align: center !important;
    width: calc(100% - 0px) !important;
    max-width: 100% !important;
    line-height: 1.3 !important;
    padding: 8px 10px !important;
}

.gc-btn-inner {
    white-space: normal !important;
    word-break: break-word !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    line-height: 1.3 !important;
    padding: 8px 10px !important;
}

/* Заблокированная кнопка — тоже по ширине */
.gc-btn-locked {
    white-space: normal !important;
    word-break: break-word !important;
    width: calc(100% - 0px) !important;
    max-width: 100% !important;
    text-align: center !important;
    padding: 8px 10px !important;
}

/* Карточки с одной кнопкой — меньше отступа снизу */
.gc.gc-clickable {
    padding-bottom: 14px !important;
}

.gc.gc-clickable .gc-buttons {
    min-height: auto !important;
    margin-top: 8px !important;
}

/* Карточки с двумя кнопками — прижать к левому краю внутри */
.gc:not(.gc-clickable) .gc-buttons {
    padding: 0 4px !important;
    align-items: stretch !important;
}

.gc:not(.gc-clickable) .gc-buttons form {
    width: 100%;
}

.gc:not(.gc-clickable) .gc-btn {
    width: 100% !important;
}

/* ============================================================ */


/* ============================================================
   ФИКС v4.2 — обводка для кликабельных карточек
   ============================================================ */

.gc.gc-clickable {
    border: 2px solid transparent !important;
}

/* Цвета обводки под каждый класс */
.g5.gc-clickable  { border-color: #ffb347 !important; }
.g6.gc-clickable  { border-color: #4fa3ff !important; }
.gmat.gc-clickable { border-color: #f59e0b !important; }

/* ============================================================ */


/* ============================================================
   ФИКС v4.3 — кнопки по центру на десктопе
   ============================================================ */

@media (min-width: 640px) {
    .gc:not(.gc-clickable) .gc-buttons {
        align-items: center !important;
        padding: 0 12px !important;
    }

    .gc:not(.gc-clickable) .gc-buttons form {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .gc:not(.gc-clickable) .gc-btn {
        width: auto !important;
        min-width: 130px;
        max-width: 100%;
    }
}
/* ============================================================ */


/* ============================================================
   ФИКС v4.4 — убираем смещение формы внутри gc-buttons
   ============================================================ */

.gc-buttons form,
.gc-buttons form.loginform,
.gc-buttons form.nis_test_btn {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

/* ============================================================ */


/* ============================================================
   ФИКС v4.5 — кнопка внутри формы строго по центру, без bootstrap margin
   ============================================================ */

.gc-buttons form .gc-btn,
.gc-buttons form.loginform .gc-btn,
.gc-buttons form.nis_test_btn .gc-btn {
    margin: 0 auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

/* ============================================================ */


/* ============================================================
   CLASS_.TWIG — стиль страницы класса (v1)
   ============================================================ */

.class-page-wrap {
    background: #f5f7fa;
    min-height: 100vh;
    padding-bottom: 3rem;
}

/* --- HERO БЛОК --- */
.class-hero {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 60%, #f0fdf4 100%);
    border-bottom: 1px solid #e8e8e8;
    padding: 2rem 2rem 2rem;
    margin-top: 70px; /* высота хедера */
}

.class-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 1.75rem;
}

/* SVG иконка */
.class-hero-icon {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.class-hero-icon svg {
    width: 100%;
    height: 100%;
}

/* Контент справа от иконки */
.class-hero-content {
    flex: 1;
}

.class-hero-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #003d99, #0057dd);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

.class-hero-desc {
    font-size: 15px;
    color: #444;
    line-height: 1.75;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

/* --- АККОРДЕОН --- */
.class-sections-wrap {
    padding: 2rem 2rem 3rem;
}

.class-sections-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.class-sections-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.25rem;
    font-family: 'Inter', sans-serif;
}

.class-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Один элемент аккордеона */
.ca-item {
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ca-item:hover {
    border-color: #003d99;
    box-shadow: 0 4px 14px rgba(0,61,153,0.08);
}

/* Кнопка заголовка */
.ca-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
    gap: 1rem;
}

.ca-header:hover {
    background: #f5f7fa;
}

.ca-header.active {
    background: #f0f4ff;
    border-bottom: 1.5px solid #e0e0e0;
}

.ca-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    font-family: 'Inter', sans-serif;
    flex: 1;
}

.ca-arrow {
    color: #999;
    transition: transform 0.3s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.ca-header.active .ca-arrow {
    transform: rotate(180deg);
    color: #003d99;
}

/* Тело аккордеона */
.ca-body {
    max-height: 0;
    overflow: hidden;
    background: #fafbff;
    transition: max-height 0.35s ease;
}

.ca-body .content_list {
    padding: 1rem 1.25rem;
}

/* Элементы списка уроков внутри аккордеона */
.ca-body .m_six_test {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* --- АДАПТИВ --- */
@media (max-width: 768px) {
    .class-hero {
        padding: 1.25rem 1rem;
        margin-top: 70px;
    }

    .class-hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .class-hero-icon {
        width: 80px;
        height: 80px;
    }

    .class-hero-desc {
        font-size: 14px;
    }

    .class-sections-wrap {
        padding: 1.5rem 1rem 2rem;
    }

    .ca-title {
        font-size: 14px;
    }

    .ca-header {
        padding: 0.875rem 1rem;
    }
}
/* ============================================================ */


/* ============================================================
   ФИКС class_.twig — стили через оригинальные классы JS
   ============================================================ */

/* Тело аккордеона — через оригинальный класс .content */
.ca-item .content {
    background: #fafbff;
    border-top: 1px solid #eee;
}

.ca-item .content .content_list {
    padding: 1rem 1.25rem;
}

/* Убираем старые стили .ca-body если остались */
.ca-body { display: none !important; }

/* ============================================================ */


/* ============================================================
   CLASS_.TWIG v2 — поверх оригинальных классов
   ============================================================ */

/* Убираем старый зелёный фон body_block_pages */
.body_block_pages {
    background: #f5f7fa !important;
    background-image: none !important;
    padding: 1.5rem 2rem 3rem !important;
	flex-grow: 1 !important;
}

/* Шапка с названием класса */
.class-page-header {
    background: linear-gradient(135deg, #003d99 0%, #0057dd 100%);
    padding: 1.5rem 2rem;
    text-align: center;
    margin-top: 70px;
}

.class-page-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 24px;
    font-family: 'Inter', sans-serif;
}

/* Блок описания */
.class-info-block {
    background: #fff !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05) !important;
    border: 1px solid #eee !important;
}

/* SVG иконка */
.class-svg-icon {
    width: 90px;
    height: 90px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.class-svg-icon svg {
    width: 100%;
    height: 100%;
}

/* Обёртка иконки — flex как в оригинале */
.class-icon-wrap {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1.25rem !important;
}

/* Текст описания */
.class-desc-text {
    font-size: 15px !important;
    color: #444 !important;
    line-height: 1.75 !important;
    font-family: 'Inter', sans-serif !important;
    margin: 0 !important;
}

/* Заголовок разделов */
.class-sections-title-wrap {
    margin-bottom: 1rem;
}

.class-sections-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

/* Аккордеон — новый стиль поверх оригинального */
.ca-item.accordion {
    background: #fff !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 14px !important;
    margin-bottom: 10px !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ca-item.accordion:hover {
    border-color: #003d99 !important;
    box-shadow: 0 4px 14px rgba(0,61,153,0.08) !important;
}

/* Кнопка заголовка */
.ca-header.collapsible {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1rem 1.25rem !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.ca-header.collapsible:hover {
    background: #f5f7fa !important;
}

.ca-header.collapsible.active {
    background: #f0f4ff !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

/* Текст заголовка */
.ca-title.accordion__label {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer;
    flex: 1;
    margin: 0 !important;
}

/* Стрелка */
.ca-arrow {
    color: #999;
    transition: transform 0.3s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.ca-header.collapsible.active .ca-arrow {
    transform: rotate(180deg);
    color: #003d99;
}

/* Тело — оригинальный класс content */
.ca-item .content {
    background: #fafbff;
}

.ca-item .content .content_list {
    padding: 1rem 1.25rem;
}

/* Мобиль */
@media (max-width: 768px) {
    .class-page-header {
        margin-top: 70px;
        padding: 1.25rem 1rem;
    }

    .class-page-badge {
        font-size: 15px;
    }

    .body_block_pages {
        padding: 1rem 1rem 2rem !important;
    }

    .class-icon-wrap {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .class-desc-text {
        font-size: 14px !important;
        text-align: center !important;
    }

    .ca-title.accordion__label {
        font-size: 13px !important;
    }
}
/* ============================================================ */


/* ============================================================
   ФИКС class_.twig v3 — стили через .collapsible напрямую
   JS ищет точно class="collapsible active" — не добавляем лишних классов!
   ============================================================ */

.ca-item .collapsible {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1rem 1.25rem !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.ca-item .collapsible:hover {
    background: #f5f7fa !important;
}

.ca-item .collapsible.active {
    background: #f0f4ff !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.ca-item .collapsible.active .ca-arrow {
    transform: rotate(180deg);
    color: #003d99;
}

.ca-item .accordion__label {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer;
    flex: 1;
    margin: 0 !important;
}

/* ============================================================ */


/* ============================================================
   CLASS_.TWIG v4 — тени, hover синий, обводка
   ============================================================ */

/* Блок описания — тень */
.class-info-block,
.body_block_pages .block_head {
    box-shadow: 0 4px 16px rgba(0, 61, 153, 0.08) !important;
    border: 1.5px solid #e8eef8 !important;
}

/* Аккордеон карточка — тень + обводка */
.ca-item.accordion {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06) !important;
    border: 1.5px solid #e0e8f5 !important;
}

/* Hover на кнопке раздела — синий фон */
.ca-item .collapsible:hover {
    background: linear-gradient(90deg, #f0f4ff, #f5f8ff) !important;
    border-radius: 12px !important;
}

.ca-item .collapsible:hover .accordion__label {
    color: #003d99 !important;
}

.ca-item .collapsible:hover .ca-arrow {
    color: #003d99;
}

/* Active — синяя левая полоска */
.ca-item .collapsible.active {
    background: #f0f4ff !important;
    border-left: 3px solid #003d99 !important;
    border-radius: 0 !important;
}

.ca-item .collapsible.active .accordion__label {
    color: #003d99 !important;
}

.ca-item.accordion:has(.collapsible.active) {
    border-color: #003d99 !important;
    box-shadow: 0 4px 16px rgba(0, 61, 153, 0.12) !important;
}

/* ============================================================ */


/* ============================================================
   CLASS_.TWIG v5 — стиль кнопок уроков + тень SVG иконки
   ============================================================ */

/* Кнопки уроков — заменяем зелёный на синий */
.click_href_tolesson {
    background: linear-gradient(90deg, #e8f0fe, #f0f4ff) !important;
    color: #003d99 !important;
    border: 1px solid #c5d5f5 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.2s !important;
}

.click_href_tolesson:hover {
    background: linear-gradient(90deg, #003d99, #0057dd) !important;
    color: #fff !important;
    border-color: #003d99 !important;
    box-shadow: 0 4px 12px rgba(0, 61, 153, 0.25) !important;
    transform: translateY(-1px);
}

/* Заблокированные кнопки — серые, без hover эффекта */
.non_click_href_tolesson {
    background: #f5f5f5 !important;
    color: #999 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-family: 'Inter', sans-serif !important;
}

.non_click_href_tolesson:hover {
    background: #f0f0f0 !important;
    color: #999 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* SVG иконка — тень под цвет каждого класса */
.class-svg-icon {
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.10),
        0 2px 6px rgba(0, 0, 0, 0.06) !important;
    border-radius: 18px !important;
}

/* 5 сынып — оранжевая тень */
.body_block_pages[data-class="8"] .class-svg-icon {
    box-shadow: 0 6px 20px rgba(255,179,71,0.35) !important;
}

/* Универсально — мягкая тень на SVG через обёртку */
.class-icon-wrap .class-svg-icon {
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.12));
}

/* ============================================================ */


/* ============================================================
   CLASS_.TWIG v6 — убираем зелёную рамку content, тень вместо неё
   ============================================================ */

/* Убираем старую зелёную рамку content блока */
/* Стиль content ТОЛЬКО внутри ca-item аккордеона — не глобально */
.ca-item .content {
    border: none !important;
    border-top: 1px solid #e8eef8 !important;
    box-shadow: inset 0 2px 8px rgba(0, 61, 153, 0.04) !important;
    background: #fafbff !important;
}

/* ============================================================ */


/* ============================================================
   ФИНАЛЬНЫЙ ФИКС — class_nis.twig кнопки кликабельны
   ============================================================ */

/* Кнопки в class_nis.twig — форма и кнопка всегда кликабельны */
.remove_div .lessons_form,
.remove_div .lessons_form button,
.list-group.remove_div {
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

/* Замочек на disabled — через emoji */
.non_click_href_tolesson[disabled] {
    position: relative !important;
}

.non_click_href_tolesson[disabled]::after {
    content: '🔒';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    background-image: none !important;
}

/* Убираем старую картинку замка */
button[disabled].click_href_tolesson,
button[disabled].non_click_href_tolesson {
    background-image: none !important;
}
.block_head_image {
    display: none !important;
}

.block_lessonbg {
    background: #f5f7fa !important;
    min-height: 100vh;
    padding: 2rem 1rem 4rem;
    margin-top: 70px;
}

.lessons_block {
    max-width: 1000px !important;
    width: 100% !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #eaeaea !important;
    padding: 3rem !important;
    margin: 0 auto !important;
    font-family: 'Inter', sans-serif !important;
}

.text_header_text b {
    font-size: 28px;
    color: #1a1a2e;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: block;
    margin-bottom: 10px;
}

.text_main_lessons {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    margin-top: 15px;
}

.video_player {
    margin: 30px 0 !important;
}

.video_player iframe {
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 800px;
    height: 450px; 
    border: none;
}

.test_head {
    font-family: 'Inter', sans-serif !important;
    font-size: 22px;
    color: #1a1a2e;
    margin-top: 40px;
    display: inline-block;
}

.ul_class_css {
    gap: 8px;
    justify-content: center;
    margin-bottom: 30px !important;
}

.vopros_page .btnQuest {
    border-radius: 12px !important;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    background-color: #fff;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
}

.vopros_page .btnQuest:hover {
    background-color: #003d99;
    color: #fff !important;
    border-color: #003d99 !important;
    box-shadow: 0 4px 12px rgba(0, 61, 153, 0.2) !important;
}

.vopros_page .btnQuest.active {
    background-color: #003d99 !important;
    color: #fff !important;
    border-color: #003d99 !important;
    box-shadow: 0 4px 12px rgba(0, 61, 153, 0.2) !important;
}

.vopros_page .btnQuest.active_checked:not(.active) {
    background-color: #e0f2fe;
    color: #0284c7 !important;
    border-color: #bae6fd !important;
}

.vopros_page .btnQuest[style*="background-color"] {
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transform: scale(1.08);
}

.container_test {
    background: #f8fafc;
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
}

h2.vopros_text {
    box-shadow: none !important;
    background: transparent !important;
    color: #1e293b !important;
    text-align: left !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    padding: 0 !important;
    margin-bottom: 25px !important;
    overflow: visible !important;
}

/* Формулалар мен мәтін ішіндегі кішкентай суреттер (қиылып қалмауы үшін border-radius: 0) */
.test_vopros_text img {
    border-radius: 0 !important;
    margin: 2px 4px !important;
    vertical-align: middle !important;
    display: inline-block !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Жеке блоктағы тапсырма суреттері (диаграммалар, сызбалар, хабарландырулар мен белгілер) */
.test_vopros_text_img {
    display: block !important;
    margin-top: 16px !important;
    margin-bottom: 18px !important;
    text-align: left !important;
}

/* Барлық сынақ тестілерінде сұраққа тіркелген суреттер анық әрі сапалы көрінуі үшін */
.test_vopros_text_img img {
    border-radius: 12px !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    cursor: zoom-in !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.test_vopros_text_img img:hover {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.14) !important;
    transform: translateY(-2px);
}

/* Тілдік пәндерде (Ағылшын тілі, Қазақ тілі, Орыс тілі т.б.): */
/* Notice, Signs, Posters ішіндегі жазулар мен мәліметтер анық оқылуы үшін өлшемі арнайы үлкейтілді */
.nis-lang-test .test_vopros_text_img img,
.test_img_lang img,
.nis_english_test .test_vopros_text_img img {
    width: auto !important;
    min-width: min(100%, 460px) !important;
    max-width: 100% !important;
    max-height: 540px !important;
    object-fit: contain !important;
    border-radius: 14px !important;
    border: 1.5px solid #cbd5e1 !important;
    padding: 4px !important;
}

@media (max-width: 548px) {
    .test_vopros_text_img img,
    .nis-lang-test .test_vopros_text_img img,
    .test_img_lang img {
        min-width: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Модальді үлкейту (Lightbox zoom) стилі */
.nis-img-zoom-popup {
    max-width: 92vw !important;
    padding: 8px !important;
    border-radius: 16px !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
}
.nis-img-zoom-img {
    max-width: 90vw !important;
    max-height: 82vh !important;
    object-fit: contain !important;
    border-radius: 10px !important;
    margin: 8px auto !important;
    display: block !important;
}

/* Жауап нұсқаларындағы формулалар мен суреттер (қиылмай, ортаға түзу орналасуы) */
label.lb_otvet img {
    border-radius: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    vertical-align: middle !important;
    display: inline-block !important;
    margin: 0 4px !important;
}

.otvety_contain {
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

label.lb_otvet {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 16px 20px !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    line-height: 1.4 !important;
}

label.lb_otvet p {
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
    line-height: inherit !important;
}

label.lb_otvet span,
label.lb_otvet div {
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
    line-height: inherit !important;
}

.otvet_text_content {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    vertical-align: middle !important;
    flex: 1;
}

.otvet_text_content p {
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
    line-height: inherit !important;
}

label.lb_otvet:hover {
    border-color: #003d99 !important;
    background: #f0f4ff !important;
}

.form-check-input.cbx {
    width: 22px;
    height: 22px;
    margin: 0 !important;
    cursor: pointer;
    border-radius: 6px !important; 
    border: 1.5px solid #cbd5e1;
}

.form-check-input.cbx:checked {
    background-color: #003d99 !important;
    border-color: #003d99 !important;
}

.check_test {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 14px 36px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.25) !important;
    transition: all 0.2s !important;
    font-family: 'Inter', sans-serif !important;
}

.check_test:hover:not([disabled]) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.35) !important;
}

.check_test[disabled] {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

@media (max-width: 768px) {
    .lessons_block {
        padding: 1.5rem !important;
        border-radius: 20px !important;
    }
    .text_header_text b {
        font-size: 24px;
    }
    .container_test {
        padding: 1.5rem;
    }
    .video_player iframe {
        height: 250px;
    }
    .vopros_page .btnQuest {
        width: 38px;
        height: 38px;
        font-size: 14px !important;
    }
    label.lb_otvet {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
}
.vopros_page .btnQuest:not(.current_quest)[style*="3be281"],
.vopros_page .btnQuest:not(.current_quest)[style*="59, 226, 129"],
.vopros_page .btnQuest:not(.current_quest).quest_correct {
    background-color: #22c55e !important;
    border-color: #22c55e !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3) !important;
    transform: scale(1.08) !important;
    animation: none !important;
}

.vopros_page .btnQuest:not(.current_quest)[style*="ffa4a4"],
.vopros_page .btnQuest:not(.current_quest)[style*="255, 164, 164"],
.vopros_page .btnQuest:not(.current_quest).quest_wrong {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
    transform: scale(1.08) !important;
    animation: none !important;
}

/* ==========================================================================
   Анимация затухания и пульсации для текущего выбранного вопроса (.current_quest)
   ========================================================================== */

/* Неактивные кружки не анимируются */
.vopros_page .btnQuest:not(.current_quest) {
    animation: none !important;
}

/* 1. Текущий вопрос в процессе решения теста (синяя мягкая пульсация) */
.vopros_page .btnQuest.current_quest {
    background-color: #003d99 !important;
    border-color: #003d99 !important;
    color: #ffffff !important;
    z-index: 2 !important;
    transition: none !important;
    animation: questPulseBlue 1.8s infinite ease-in-out !important;
}

/* 2. Текущий вопрос после проверки теста — Дұрыс / Правильный (зеленая пульсация) */
.vopros_page .btnQuest.current_quest.quest_correct,
.vopros_page .btnQuest.current_quest[style*="3be281"],
.vopros_page .btnQuest.current_quest[style*="59, 226, 129"] {
    background-color: #22c55e !important;
    border-color: #22c55e !important;
    color: #ffffff !important;
    z-index: 2 !important;
    transition: none !important;
    animation: questPulseGreen 1.8s infinite ease-in-out !important;
}

/* 3. Текущий вопрос после проверки теста — Қате / Неправильный (красная пульсация) */
.vopros_page .btnQuest.current_quest.quest_wrong,
.vopros_page .btnQuest.current_quest[style*="ffa4a4"],
.vopros_page .btnQuest.current_quest[style*="255, 164, 164"] {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    z-index: 2 !important;
    transition: none !important;
    animation: questPulseRed 1.8s infinite ease-in-out !important;
}

/* Плавная, спокойная анимация затухания и возврата цвета (breathing effect) */
@keyframes questPulseBlue {
    0%, 100% {
        opacity: 1;
        transform: scale(1.12);
        box-shadow: 0 0 0 4px rgba(0, 61, 153, 0.35), 0 4px 14px rgba(0, 61, 153, 0.25);
    }
    50% {
        opacity: 0.42;
        transform: scale(0.98);
        box-shadow: 0 0 0 1px rgba(0, 61, 153, 0.1), 0 2px 4px rgba(0, 61, 153, 0.08);
    }
}

@keyframes questPulseGreen {
    0%, 100% {
        opacity: 1;
        transform: scale(1.12);
        box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.4), 0 4px 14px rgba(34, 197, 94, 0.3);
    }
    50% {
        opacity: 0.42;
        transform: scale(0.98);
        box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.15), 0 2px 4px rgba(34, 197, 94, 0.08);
    }
}

@keyframes questPulseRed {
    0%, 100% {
        opacity: 1;
        transform: scale(1.12);
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.4), 0 4px 14px rgba(239, 68, 68, 0.3);
    }
    50% {
        opacity: 0.42;
        transform: scale(0.98);
        box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.15), 0 2px 4px rgba(239, 68, 68, 0.08);
    }
}
/* --- ФИКС ОТСТУПОВ И КНОПКИ НӘТИЖЕ --- */

/* Уменьшаем гигантские дыры внутри блока вопроса */
.container_test {
    padding: 2rem !important; 
    margin-bottom: 20px !important;
}

h2.vopros_text {
    margin-bottom: 1.5rem !important;
}

/* Красиво центрируем заголовок перед пагинацией */
.test_head {
    margin-top: 20px !important; 
    margin-bottom: 10px !important;
    display: block !important;
    text-align: center !important; 
}

/* Ставим кнопку Нәтиже ровно по центру и делаем аккуратнее */
.check_test {
    display: block !important;
    margin: 40px auto 20px auto !important; 
    min-width: 220px !important; 
}

/* Планшеты и стандартные смартфоны */
@media (max-width: 768px) {
    .container_test {
        padding: 1.5rem !important;
    }
    .lessons_block {
        padding: 1.5rem 1rem !important;
    }
    /* Кнопка Нәтиже на 100% ширины, чтобы удобно нажимать пальцем */
    .check_test {
        width: 100% !important; 
        margin-top: 25px !important;
        padding: 14px 20px !important;
    }
    /* Заголовки чуть меньше, чтобы не занимали пол экрана */
    h3.vopros_head {
        font-size: 20px !important;
        margin-left: 0 !important;
    }
    h2.vopros_text {
        font-size: 16px !important;
    }
}

/* Узкие смартфоны (старые iPhone, компактные Android) */
@media (max-width: 480px) {
    .container_test {
        padding: 1.2rem 1rem !important;
    }
    .lessons_block {
        padding: 1rem 0.5rem !important;
    }
    /* Уменьшаем кнопки пагинации, чтобы больше вмещалось в ряд */
    .ul_class_css {
        gap: 5px !important; 
    }
    .vopros_page .btnQuest {
        width: 36px !important; 
        height: 36px !important;
        font-size: 13px !important;
    }
    /* Варианты ответов делаем чуть компактнее */
    label.lb_otvet {
        padding: 12px 14px !important;
        font-size: 14px !important;
    }
    .form-check-input.cbx {
        width: 20px;
        height: 20px;
    }
}
/* 1. Уменьшаем поля внутри главной белой карточки */
.lessons_block {
    padding: 2rem !important; /* Было 3rem */
}

/* 2. Подтягиваем видео поближе к тексту сверху и снизу */
.video_player {
    margin: 15px 0 25px 0 !important; /* Было 30px */
}

/* 3. Прижимаем заголовок "Тест сұрақтары:" ближе к видео и пагинации */
.test_head {
    margin-top: 10px !important; /* Было 40px или 20px */
    margin-bottom: 15px !important;
}

/* 4. Подтягиваем кнопку "Нәтиже" ближе к последнему вопросу */
.check_test {
    margin-top: 20px !important; /* Было 40px */
    margin-bottom: 10px !important; 
}

/* 5. Делаем отступы на мобильных устройствах еще аккуратнее */
@media (max-width: 768px) {
    .lessons_block {
        padding: 1.25rem 1rem !important;
    }
    .video_player {
        margin: 10px 0 20px 0 !important;
    }
    .check_test {
        margin-top: 15px !important;
    }
    .test_head {
        margin-top: 5px !important;
    }
}

@media (max-width: 480px) {
    /* Сжимаем края главной карточки почти до минимума */
    .lessons_block {
        padding: 1rem 0.5rem !important; 
    }
    /* Видео ставим вплотную к тексту */
    .video_player {
        margin: 5px 0 15px 0 !important; 
    }
    /* Заголовок тестов прижимаем к видео */
    .test_head {
        margin-top: 0px !important;
        margin-bottom: 10px !important;
    }
    /* Кнопку "Нәтиже" ставим сразу под последним ответом */
    .check_test {
        margin-top: 10px !important;
        margin-bottom: 0px !important;
    }
}
/* Прячем переносы строк, которые создавали пустую дыру */
#shj_btn + br,
#shj_btn + br + br {
    display: none !important;
}

/* Прижимаем саму карточку вопроса снизу */
.container_test {
    margin-bottom: 15px !important; 
}

/* Подтягиваем кнопку "Нәтиже" вплотную к карточке */
.check_test {
    margin-top: 10px !important; 
}

/* Красивый светло-синий стиль для кнопки "Шығару жолы" */
#shj_btn {
    background: linear-gradient(135deg, #60a5fa, #3b82f6) !important; /* Светло-синий градиент */
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 12px 28px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25) !important;
    transition: all 0.2s ease !important;
    margin-top: 15px !important; 
    display: inline-block !important;
}

/* Эффект при наведении (hover) */
#shj_btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35) !important;
    background: linear-gradient(135deg, #93c5fd, #60a5fa) !important;
}
/* Планшеты и стандартные смартфоны (до 768px) */
@media (max-width: 768px) {
    .container_test {
        margin-bottom: 10px !important;
    }
    .check_test {
        margin-top: 5px !important;
    }
    #shj_btn {
        width: 100% !important; /* На телефоне кнопка на всю ширину */
        padding: 12px 20px !important;
    }
}

/* Узкие экраны (до 480px) */
@media (max-width: 480px) {
    .container_test {
        margin-bottom: 5px !important; /* Максимально жмём пустоту */
    }
    .check_test {
        margin-top: 0px !important; /* Прижимаем Нәтиже вплотную */
    }
    #shj_btn {
        margin-top: 10px !important;
        padding: 10px 15px !important;
        font-size: 14px !important; /* Чуть уменьшаем шрифт, чтобы было аккуратно */
    }
}
#shj_btn[hidden] {
    display: none !important;
}

/* ============================================================
   МОДАЛЬНОЕ ОКНО: НЗМ 6-СЫНЫП (6 ПӘН ТАҢДАУ)
   ============================================================ */
.gent.gc-clickable {
    border-color: #ff6b35 !important;
}
.gent-btn {
    background: #ff6b35 !important;
    color: #fff !important;
}

.nis-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nis-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.nis-modal-dialog {
    position: relative;
    z-index: 10000;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.28);
    width: 100%;
    max-width: 860px;
    min-height: min-content;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    margin: auto;
    padding: 24px 26px;
    animation: nisModalPop 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    font-family: 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@keyframes nisModalPop {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(12px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.nis-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
    flex-shrink: 0;
}

.nis-modal-header > div {
    flex: 1 1 auto;
    min-width: 0;
}

.nis-modal-pill {
    display: inline-block;
    background: #fff2ec;
    color: #ff6b35;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.nis-modal-heading {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.nis-modal-sub {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.nis-modal-close-btn {
    border: none;
    background: #f1f5f9;
    color: #64748b;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.nis-modal-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.nis-modal-body {
    padding: 18px 0 10px 0;
    width: 100%;
    flex: 1 1 auto;
}

.nis-modal-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    width: 100%;
}

@media (max-width: 680px) {
    .nis-modal-overlay {
        align-items: flex-start;
        padding: 14px 10px;
    }
    .nis-modal-dialog {
        padding: 16px 14px;
        border-radius: 18px;
        margin: 10px auto;
        width: 100%;
        max-width: 100%;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }
    .nis-modal-heading {
        font-size: 17px;
    }
    .nis-modal-sub {
        font-size: 12px;
    }
    .nis-modal-cards-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .nis-card-btn {
        padding: 10px 12px;
        gap: 10px;
    }
    .nis-card-btn-icon {
        width: 38px;
        height: 38px;
    }
    .nis-card-btn-icon svg {
        width: 20px;
        height: 20px;
    }
    .nis-card-btn-title {
        font-size: 14px;
    }
    .nis-card-btn-meta {
        font-size: 11px;
    }
    .nis-card-btn-action {
        font-size: 11px;
        padding: 5px 10px;
    }
    .nis-card-badge-status {
        font-size: 10px;
        padding: 4px 8px;
    }
}

.nis-card-form {
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
}

/* Общий стиль карточек-кнопок предметов */
.nis-card-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1.5px solid transparent;
    width: 100%;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-sizing: border-box;
    outline: none;
    background: #f8fafc;
    position: relative;
    user-select: none;
}

.nis-card-btn:hover:not(.nis-btn-disabled):not(.nis-btn-locked) {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.nis-card-btn:active:not(.nis-btn-disabled):not(.nis-btn-locked) {
    transform: translateY(0);
}

/* Иконка предмета */
.nis-card-btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
}
.nis-card-btn-icon svg {
    width: 22px;
    height: 22px;
}

/* Текстовая информация */
.nis-card-btn-info {
    flex-grow: 1;
    min-width: 0;
}
.nis-card-btn-title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nis-card-btn-meta {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.84;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Кнопка "Бастау" и бейджи */
.nis-card-btn-action {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
    letter-spacing: 0.2px;
}
.nis-card-btn:hover .nis-card-btn-action {
    transform: translateX(2px);
}

.nis-card-badge-status {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}
.nis-status-locked {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}
.nis-status-soon {
    background: #f8fafc;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
}

/* Сатып алу батырмасы мен ссылкасы */
.nis-card-buy-link {
    text-decoration: none !important;
    cursor: pointer !important;
    opacity: 1 !important;
}
.nis-card-buy-link:hover {
    transform: translateY(-2px);
}
.nis-btn-buy {
    background: linear-gradient(135deg, #F14635 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(241, 70, 53, 0.3);
    font-weight: 700;
}
.nis-card-buy-link:hover .nis-btn-buy {
    background: linear-gradient(135deg, #e03221 0%, #b91c1c 100%) !important;
    box-shadow: 0 6px 14px rgba(241, 70, 53, 0.45);
}
.nis-exp-badge {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 4px;
    padding: 2px 4px;
    margin-top: 4px;
    text-align: center;
    white-space: nowrap;
}

/* 1. Математика (оранжевый акцент) */
.nis-btn-math {
    background: linear-gradient(145deg, #fff9f6 0%, #fff0e7 100%);
    border-color: #ffd4c2;
}
.nis-btn-math .nis-card-btn-icon {
    background: #ff6b35;
    color: #ffffff;
}
.nis-btn-math .nis-card-btn-title {
    color: #7d2200;
}
.nis-btn-math .nis-card-btn-meta {
    color: #b43806;
}
.nis-btn-math .nis-card-btn-action {
    background: #ff6b35;
    color: #ffffff;
}
.nis-btn-math:hover:not(.nis-btn-locked) {
    border-color: #ff6b35;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.2);
}

/* 2. Сандық сипаттама (мятно-зеленый акцент) */
.nis-btn-sypat {
    background: linear-gradient(145deg, #f4fdf9 0%, #e3f8f0 100%);
    border-color: #b2ebd7;
}
.nis-btn-sypat .nis-card-btn-icon {
    background: #10b981;
    color: #ffffff;
}
.nis-btn-sypat .nis-card-btn-title {
    color: #00402e;
}
.nis-btn-sypat .nis-card-btn-meta {
    color: #047857;
}
.nis-btn-sypat .nis-card-btn-action {
    background: #10b981;
    color: #ffffff;
}
.nis-btn-sypat:hover:not(.nis-btn-locked) {
    border-color: #10b981;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

/* 3. Ағылшын тілі (синий акцент) */
.nis-btn-eng {
    background: linear-gradient(145deg, #f4f8ff 0%, #e6efff 100%);
    border-color: #bcd7ff;
}
.nis-btn-eng .nis-card-btn-icon {
    background: #3b82f6;
    color: #ffffff;
}
.nis-btn-eng .nis-card-btn-title {
    color: #002d80;
}
.nis-btn-eng .nis-card-btn-meta {
    color: #1d4ed8;
}
.nis-btn-eng .nis-card-btn-action {
    background: #3b82f6;
    color: #ffffff;
}
.nis-btn-eng:hover:not(.nis-btn-locked) {
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

/* 4. Орыс тілі (фиолетовый акцент) */
.nis-btn-rus {
    background: linear-gradient(145deg, #faf7fd 0%, #f3ebfc 100%);
    border-color: #e3d2f8;
}
.nis-btn-rus .nis-card-btn-icon {
    background: #a855f7;
    color: #ffffff;
}
.nis-btn-rus .nis-card-btn-title {
    color: #4a044e;
}
.nis-btn-rus .nis-card-btn-meta {
    color: #701a75;
}
.nis-btn-rus .nis-card-btn-action {
    background: #a855f7;
    color: #ffffff;
}
.nis-btn-rus:hover:not(.nis-btn-locked) {
    border-color: #a855f7;
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.2);
}

/* 5. Қазақ тілі (бирюзовый акцент - Coming soon) */
.nis-btn-kaz {
    background: linear-gradient(145deg, #f3fcfb 0%, #e3f7f5 100%);
    border-color: #b7ebe6;
    opacity: 0.85;
}
.nis-btn-kaz .nis-card-btn-icon {
    background: #06b6d4;
    color: #ffffff;
}
.nis-btn-kaz .nis-card-btn-title {
    color: #084c61;
}
.nis-btn-kaz .nis-card-btn-meta {
    color: #0e7490;
}

/* 6. Жаратылыстану (лаймово-зеленый акцент - Coming soon) */
.nis-btn-science {
    background: linear-gradient(145deg, #f7fdf4 0%, #ecf9e6 100%);
    border-color: #cbeabf;
    opacity: 0.85;
}
.nis-btn-science .nis-card-btn-icon {
    background: #84cc16;
    color: #ffffff;
}
.nis-btn-science .nis-card-btn-title {
    color: #365314;
}
.nis-btn-science .nis-card-btn-meta {
    color: #4d7c0f;
}

/* Состояния Disabled & Locked */
.nis-btn-disabled {
    cursor: not-allowed;
    filter: grayscale(12%);
}
.nis-btn-locked {
    cursor: pointer;
    opacity: 0.88;
}
.nis-btn-locked:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nis-modal-footer {
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
}
.nis-modal-cancel-btn {
    border: none;
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.nis-modal-cancel-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ============================================================
   НЗМ 6-СЫНЫП: 3D АНИМЕ-КАРТОЧКАЛАР (BANNER CARDS)
   ============================================================ */
.nis-banner-form {
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
}

.nis-banner-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 810 / 292;
    border-radius: 18px;
    overflow: hidden;
    border: none;
    padding: 0;
    background: #e2e8f0;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.nis-banner-card:hover:not(.nis-banner-disabled) {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.nis-banner-card:active:not(.nis-banner-disabled) {
    transform: translateY(0) scale(0.99);
}

.nis-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transition: transform 0.35s ease;
}

.nis-banner-card:hover:not(.nis-banner-disabled) .nis-banner-img {
    transform: scale(1.025);
}

.nis-banner-meta {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #1e293b;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.2px;
    pointer-events: none;
}

.nis-banner-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    font-family: 'Nunito', 'Inter', -apple-system, sans-serif;
    font-size: 13.5px;
    font-weight: 800;
    padding: 7px 18px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    pointer-events: none;
}

.nis-banner-card:hover:not(.nis-banner-disabled) .nis-banner-btn {
    transform: scale(1.06);
}

/* Цвета кнопок под стиль предметов */
.nis-btn-act-math {
    background: linear-gradient(135deg, #ff7a18 0%, #ea580c 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.5);
}

.nis-btn-act-sypat {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
}

.nis-btn-act-eng {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5);
}

.nis-btn-act-rus {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.5);
}

.nis-btn-act-kaz {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.5);
}

.nis-btn-act-science {
    background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(101, 163, 13, 0.5);
}

.nis-btn-act-soon {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #64748b;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nis-btn-act-locked {
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.nis-banner-disabled {
    cursor: not-allowed;
    filter: saturate(0.92);
}

.nis-banner-disabled:hover {
    transform: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.nis-banner-disabled:hover .nis-banner-img {
    transform: none;
}

.nis-banner-disabled:hover .nis-banner-btn {
    transform: none;
}

.nis-banner-locked {
    cursor: pointer;
}

@media (max-width: 680px) {
    .nis-banner-card {
        border-radius: 14px;
    }
    .nis-banner-btn {
        font-size: 12px;
        padding: 5px 14px;
        right: 8px;
        bottom: 8px;
    }
    .nis-banner-meta {
        font-size: 10px;
        padding: 2px 8px;
        top: 6px;
        right: 8px;
    }
}

@media (max-width: 400px) {
    .nis-banner-btn {
        font-size: 11px;
        padding: 4px 12px;
        right: 6px;
        bottom: 6px;
    }
    .nis-banner-meta {
        font-size: 9.5px;
        padding: 2px 6px;
        top: 5px;
        right: 6px;
    }
}


/* ============================================================
   СТИЛИ ДЛЯ ТЕСТОВ НЗМ (Мәтіндер, Пассаж, Бөлімдер, Хабарландырулар)
   ============================================================ */
.nis-part-badge {
    display: inline-block;
    background: #eaf3ff;
    color: #1e40af;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #bfdbfe;
    letter-spacing: 0.3px;
}

.nis-passage-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-left: 5px solid #3b82f6;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 18px;
    line-height: 1.75;
    font-size: 15px;
    color: #1e293b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}
.nis-passage-box img {
    max-width: 100%;
    height: auto;
}

.nis-passage-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 14px;
    color: #1e40af;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nis-passage-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.35;
}

.nis-passage-content {
    font-size: 15px;
    line-height: 1.75;
    color: #334155;
    word-break: break-word;
    overflow-wrap: break-word;
}

.nis-passage-content p {
    margin-bottom: 12px;
}
.nis-passage-content p:last-child {
    margin-bottom: 0;
}

/* Карточки объявлений и записок в вопросах (Part 1) */
.nis-notice-card {
    border-radius: 12px;
    padding: 16px 20px;
    margin: 10px 0 16px 0;
    font-size: 15px;
    line-height: 1.6;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}

.notice-yellow {
    background: #fffbeb;
    border: 2px solid #fde68a;
    color: #92400e;
}
.notice-yellow .notice-title {
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: #78350f;
}

.notice-special {
    background: #eff6ff;
    border: 2px solid #bfdbfe;
    color: #1e3a8a;
}
.notice-title-red {
    font-weight: 900;
    font-size: 16px;
    color: #dc2626;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.notice-pink {
    background: #fdf2f8;
    border: 2px solid #fbcfe8;
    color: #831843;
    font-weight: 600;
}

.notice-note {
    background: #fefce8;
    border: 1.5px dashed #ca8a04;
    color: #713f12;
    padding: 18px 22px;
}
.notice-sign {
    text-align: right;
    margin-top: 8px;
    font-weight: 700;
}

.notice-sms {
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    padding: 14px 18px;
}
.sms-bubble {
    background: #ffffff;
    border-radius: 16px 16px 16px 4px;
    padding: 12px 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

/* Мобильная адаптация тестов НЗМ (max-width: 620px) */
@media (max-width: 680px) {
    .nis-part-badge {
        font-size: 12px;
        padding: 4px 10px;
        margin-bottom: 8px;
    }
    .nis-passage-box {
        padding: 13px 14px;
        margin-bottom: 14px;
        font-size: 14px;
        line-height: 1.6;
        border-left-width: 4px;
    }
    .nis-passage-title {
        font-size: 15px;
        margin-bottom: 8px;
    }
    .nis-passage-content {
        font-size: 14px;
        line-height: 1.6;
    }
    .nis-notice-card {
        padding: 12px 14px;
        font-size: 14px;
        margin: 6px 0 10px 0;
    }
    .notice-yellow .notice-title,
    .notice-title-red {
        font-size: 14px;
    }
    .notice-note {
        padding: 12px 14px;
    }
    .notice-sms {
        padding: 10px 12px;
    }
    .sms-bubble {
        padding: 10px 12px;
    }
}


/* ======================================================== */
/* --- Таблицы в вопросах тестов (Сандық сипаттама и др.) --- */
/* ======================================================== */
.test_vopros_text figure.table {
    display: block !important;
    width: 100% !important;
    max-width: 680px !important;
    margin: 16px auto !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.test_vopros_text figure.table table,
.test_vopros_text table {
    width: 100% !important;
    max-width: 680px !important;
    border-collapse: collapse !important;
    background: #ffffff !important;
    border: 2px solid #334155 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    margin: 8px auto !important;
    table-layout: auto !important;
}

.test_vopros_text table td,
.test_vopros_text table th {
    border: 1px solid #cbd5e1 !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    text-align: center !important;
    vertical-align: middle !important;
    color: #1e293b !important;
}

.test_vopros_text table th,
.test_vopros_text table tr:first-child th,
.test_vopros_text table thead td {
    background-color: #f1f5f9 !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

/* Изображения внутри ячеек сравнительной таблицы (А бағаны / В бағаны) */
.test_vopros_text table td img,
.test_vopros_text table th img {
    max-width: 100% !important;
    max-height: 220px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 6px auto !important;
    border-radius: 6px !important;
    background: #ffffff !important;
}

@media (max-width: 576px) {
    .test_vopros_text figure.table {
        margin: 10px auto !important;
    }
    .test_vopros_text table td,
    .test_vopros_text table th {
        padding: 8px 6px !important;
        font-size: 14px !important;
    }
    .test_vopros_text table td img,
    .test_vopros_text table th img {
        max-height: 160px !important;
    }
}


/* ======================================================== */
/* --- Карточка салыстыру (А және В бағандары) ---         */
/* ======================================================== */
.sypat_compare_card {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 16px;
    max-width: 760px;
    margin: 18px auto 24px auto;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    position: relative;
}

.sypat_side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 14px 16px;
    min-width: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sypat_side:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.sypat_side_a {
    border-color: #93c5fd;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.sypat_side_b {
    border-color: #c4b5fd;
    background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
}

.sypat_side_badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.sypat_badge_a {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.sypat_badge_b {
    background: #7c3aed;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.sypat_side_body {
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #1e293b;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 60px;
}

.sypat_side_body img {
    max-width: 100% !important;
    max-height: 220px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 6px auto !important;
    border-radius: 8px !important;
}

.sypat_divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sypat_divider span {
    background: #e2e8f0;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

@media (max-width: 576px) {
    .sypat_compare_card {
        padding: 10px 8px;
        gap: 8px;
        margin: 12px auto 16px auto;
    }
    .sypat_side {
        padding: 10px 8px;
    }
    .sypat_side_badge {
        font-size: 11px;
        padding: 3px 10px;
        margin-bottom: 8px;
    }
    .sypat_side_body {
        font-size: 14px;
        min-height: 45px;
    }
    .sypat_side_body img {
        max-height: 150px !important;
    }
    .sypat_divider span {
        font-size: 10px;
        padding: 4px 6px;
    }
}

/* Компактный заголовок с номером вопроса для Сандық сипаттама (без лишнего текста вопроса) */
h2.vopros_text.sypat_vopros_header {
    margin-bottom: 6px !important;
}
.sypat_vopros_header .test_vopros_text {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    display: inline-block;
    padding: 0 4px;
}


/* ============================================================
   3D DISNEY/PIXAR CLASS BANNER CARDS (Главный экран)
   ============================================================ */
.grades-grid.class-banners-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    max-width: 1100px !important;
    margin: 0 auto 2.5rem auto !important;
    padding: 0 4px !important;
}

.cls-banner-form {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

button.cls-banner-card {
    border: none;
    padding: 0;
    margin: 0;
    background: none;
    font: inherit;
    color: inherit;
    text-align: left;
    display: block;
    width: 100%;
    cursor: pointer;
}

.cls-banner-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 499 / 169;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.cls-banner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14), 0 3px 8px rgba(0, 0, 0, 0.06);
}

.cls-banner-card.cls-clickable {
    cursor: pointer;
}

/* Модуль НЗМ во главе списка — размер увеличен, картинка видна полностью без обрезки */
.cls-banner-nis-wrap {
    grid-column: 1 / -1 !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-bottom: 8px !important;
}
.cls-banner-nis {
    max-width: 760px !important;
    width: 100% !important;
    aspect-ratio: 1024 / 344 !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    background: transparent !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}
.cls-banner-nis .cls-banner-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

.cls-banner-wide {
    grid-column: 1 / -1 !important;
    max-width: 540px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

.cls-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    image-rendering: -webkit-optimize-contrast;
}

/* Кнопки в ПРАВОЙ стороне — не перекрывают текст и плашку на картинке слева */
.cls-actions-right {
    position: absolute;
    right: 14px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 24px);
    z-index: 5;
    transition: gap 0.22s ease, right 0.22s ease, bottom 0.22s ease;
}

.cls-actions-right form {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.cls-banner-actions {
    position: absolute;
    right: 14px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.cls-banner-actions form {
    display: inline-block;
    margin: 0;
    padding: 0;
}

/* Плавная парящая анимация кнопок «как облака» — по очереди вверх и вниз */
@keyframes floatCloud1 {
    0%, 100% {
        transform: translateY(-5px);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), 0 0 12px rgba(255, 255, 255, 0.6);
    }
    50% {
        transform: translateY(3px);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22), 0 0 4px rgba(255, 255, 255, 0.25);
    }
}

@keyframes floatCloud2 {
    0%, 100% {
        transform: translateY(3px);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22), 0 0 4px rgba(255, 255, 255, 0.25);
    }
    50% {
        transform: translateY(-5px);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), 0 0 12px rgba(255, 255, 255, 0.6);
    }
}

.cls-btn-core {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 900;
    line-height: 1.2;
    color: #ffffff !important;
    border: 2.5px solid #ffffff !important;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease, filter 0.22s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.3px;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    will-change: transform, box-shadow;
}

.cls-btn-core.btn-float-1 {
    animation: floatCloud1 2.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite !important;
}

.cls-btn-core.btn-float-2 {
    animation: floatCloud2 2.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite !important;
}

.cls-btn-core:hover {
    animation-play-state: paused !important;
    filter: brightness(1.18);
    transform: translateY(-4px) scale(1.08) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 1) !important;
}
.cls-btn-core:active {
    transform: translateY(1px) scale(0.95);
}

.cls-btn-single {
    padding: 8px 18px;
    font-size: 13px;
    letter-spacing: 0.2px;
}

.cls-btn-dual {
    padding: 8px 18px;
    font-size: 13.5px;
    min-width: 86px;
    transform-origin: center bottom;
}

.cls-actions-right form:last-child .cls-btn-dual {
    transform-origin: right bottom;
}

/* При наведении на карточку 7–9 классов обе кнопки (Алгебра / Геометрия) плавно увеличиваются, не выходя за рамки карточки */
.cls-banner-card:hover .cls-actions-right {
    right: 16px;
    bottom: 13px;
    gap: 11px;
}

.cls-banner-card:hover .cls-btn-dual {
    animation-play-state: paused !important;
    filter: brightness(1.12);
    transform: translateY(-2px) scale(1.07) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), 0 0 14px rgba(255, 255, 255, 0.55) !important;
}

.cls-banner-card .cls-btn-dual:hover {
    animation-play-state: paused !important;
    filter: brightness(1.2);
    transform: translateY(-3px) scale(1.11) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 18px rgba(255, 255, 255, 0.9) !important;
}

/* Gradients for grade cards */
.btn-g5 {
    background: linear-gradient(135deg, #ff8a00 0%, #e65100 100%);
}
.btn-g6 {
    background: linear-gradient(135deg, #00c853 0%, #1b5e20 100%);
}
.btn-gnis {
    background: linear-gradient(135deg, #0091ea 0%, #01579b 100%);
}
.btn-g7a {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
}
.btn-g7g {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
}
.btn-g8a {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
}
.btn-g8g {
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%) !important;
}
.btn-g9a {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
}
.btn-g9g {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
}
.btn-gubt {
    background: linear-gradient(135deg, #00bfa5 0%, #004d40 100%);
}

/* 🌟 БАСТЫ БЕТТЕГІ ЖЕКЕ КАРТОЧКАЛАРДЫҢ БАТЫРМАЛАРЫ (БАСТАУ →) */
.cls-banner-action-btn {
    position: absolute;
    right: 14px;
    bottom: 12px;
    z-index: 5;
    font-family: 'Nunito', 'Inter', -apple-system, sans-serif;
    font-size: 13.5px;
    font-weight: 850;
    padding: 7px 18px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, filter 0.22s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    line-height: 1.2;
    transform-origin: right bottom;
    animation: floatCloud1 2.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite !important;
    will-change: transform, box-shadow;
}

.cls-banner-card:hover .cls-banner-action-btn {
    animation-play-state: paused !important;
    transform: translateY(-3px) scale(1.07) !important;
    filter: brightness(1.15);
}

/* НЗМ баннері кең болғандықтан батырмасы да сәл ірілеу */
.cls-banner-nis .cls-banner-action-btn {
    right: 20px;
    bottom: 16px;
    padding: 8px 22px;
    font-size: 14.5px;
}

/* 🎨 Пәндердің өз фонына сәйкес градиенттер: */
/* 1. 5-сынып Математика — қызғылт-сары / Orange */
.cls-act-g5 {
    background: linear-gradient(135deg, #ff7a18 0%, #ea580c 100%) !important;
    box-shadow: 0 5px 16px rgba(234, 88, 12, 0.52) !important;
}

/* 2. 6-сынып Математика — жасыл / Green */
.cls-act-g6 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 5px 16px rgba(16, 185, 129, 0.52) !important;
}

/* 3. НЗМ 6-сынып — корольдік көк / Royal Blue */
.cls-act-gnis {
    background: linear-gradient(135deg, #0057dd 0%, #003ea8 100%) !important;
    box-shadow: 0 5px 16px rgba(0, 87, 221, 0.52) !important;
}

/* 4. ҰБТ Дайындық — сауыттылық көк-бирюза / Ocean Cyan */
.cls-act-gubt {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    box-shadow: 0 5px 16px rgba(2, 132, 199, 0.52) !important;
}

/* Mobile & Tablet Adaptation (Rule 9) */
@media (max-width: 768px) {
    .grades-grid.class-banners-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        margin-bottom: 1.5rem !important;
    }
    .cls-banner-nis-wrap {
        margin-bottom: 0 !important;
    }
    .cls-banner-nis {
        max-width: 100% !important;
    }
    .cls-banner-wide {
        max-width: 100% !important;
    }
    .cls-actions-right,
    .cls-banner-actions {
        right: 10px;
        bottom: 10px;
        gap: 6px;
    }
    .cls-btn-core {
        padding: 6px 12px;
        font-size: 11.5px;
    }
    .cls-btn-dual {
        min-width: 68px;
    }
    .cls-banner-action-btn {
        right: 10px;
        bottom: 10px;
        padding: 5px 14px;
        font-size: 11.5px;
    }
    .cls-banner-nis .cls-banner-action-btn {
        right: 12px;
        bottom: 12px;
        padding: 6px 16px;
        font-size: 12.5px;
    }
}
@media (max-width: 420px) {
    .cls-actions-right,
    .cls-banner-actions {
        right: 8px;
        bottom: 8px;
        gap: 5px;
    }
    .cls-btn-core {
        padding: 5px 10px;
        font-size: 11px;
    }
    .cls-btn-dual {
        min-width: 60px;
    }
    .cls-banner-action-btn {
        right: 8px;
        bottom: 8px;
        padding: 4px 11px;
        font-size: 10.5px;
        border-width: 1.5px !important;
    }
}

/* ============================================================
   💬 МОДУЛЬГЕ ҚОЛЖЕТІМДІЛІК АЛУ SWAL (WHATSAPP + ҚОҢЫРАУ + КІРУ)
   ============================================================ */
.jq-access-swal-popup,
.jq-access-swal-popup *,
.jq-access-btn,
.jq-access-login-btn {
    font-family: 'Nunito', 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}
.jq-access-swal-popup {
    border-radius: 24px !important;
    padding: 26px 24px 22px 24px !important;
    max-width: min(460px, calc(100vw - 24px)) !important;
    box-sizing: border-box !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22) !important;
}
.jq-access-swal-popup .swal2-close:focus {
    outline: none !important;
    box-shadow: none !important;
}
.jq-access-swal-title {
    font-family: 'Nunito', 'Inter', sans-serif !important;
    font-size: 21px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    padding: 0 28px !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.25 !important;
}
.jq-access-swal-html {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.jq-access-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: center;
}
.jq-access-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 5px 14px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2px;
}
.jq-access-desc {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: #334155;
    font-weight: 600;
}
.jq-access-phone-note {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 12px;
}
.jq-access-phone-note b {
    color: #0f172a;
    font-weight: 900;
}
.jq-access-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.jq-access-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    color: #ffffff !important;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}
.jq-access-btn svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}
.jq-access-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    color: #ffffff !important;
}
.jq-access-btn-wa {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.32);
}
.jq-access-btn-call {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.32);
}
.jq-access-login-wrap {
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.jq-access-login-hint {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 600;
}
.jq-access-login-btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 12px;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.jq-access-login-btn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}
@media (max-width: 480px) {
    .jq-access-swal-popup {
        padding: 20px 16px 18px 16px !important;
        border-radius: 20px !important;
    }
    .jq-access-swal-title {
        font-size: 18.5px !important;
    }
    .jq-access-actions {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   📐 КЕҢ ЖӘНЕ ЫҚШАМ САБАҚ ПЕН ТЕСТ ТЕРЕЗЕСІ (ПК + МОБИЛКА)
   ============================================================ */
.m5-lesson-back-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 7px 16px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    color: #1d4ed8 !important;
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none !important;
    font-family: 'Nunito', 'Roboto', 'Inter', sans-serif !important;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.m5-lesson-back-pill:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af !important;
    transform: translateY(-1px);
}
.jq-back-nav-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.jq-back-nav-lesson {
    margin-bottom: 12px;
}
.jq-back-nav-roadmap {
    margin-bottom: 10px;
}
.jq-back-post-form {
    display: inline-flex;
    margin: 0;
}
@media (max-width: 768px) {
    .cls-banner-card:hover .cls-btn-dual,
    .cls-banner-card .cls-btn-dual:hover {
        transform: none !important;
    }
    .m5-lesson-back-pill {
        min-height: 44px;
        max-width: 100%;
        padding: 9px 16px;
        font-size: 13.5px;
        white-space: normal;
        text-align: center;
    }
    .jq-back-nav-roadmap {
        justify-content: center;
        margin-bottom: 12px;
    }
}

.block_lessonbg.school-lesson-bg {
    padding: 1.1rem 1rem 2.5rem !important;
    margin-top: 70px !important;
    box-sizing: border-box !important;
}
.block_lessonbg.school-lesson-bg .lessons_block {
    max-width: 1180px !important;
    width: 100% !important;
    padding: 1.35rem 1.85rem !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
    font-family: 'Nunito', 'Roboto', 'Inter', sans-serif !important;
}
.block_lessonbg.school-lesson-bg .text_header_text {
    margin-bottom: 4px !important;
}
.block_lessonbg.school-lesson-bg .text_header_text b {
    font-size: 22px !important;
    margin-bottom: 4px !important;
    line-height: 1.25 !important;
}
.block_lessonbg.school-lesson-bg .text_main_lessons {
    margin-top: 6px !important;
    margin-bottom: 8px !important;
    font-size: 14.5px !important;
    line-height: 1.55 !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}
.block_lessonbg.school-lesson-bg .video_player {
    margin: 10px auto 12px auto !important;
    text-align: center !important;
}
.block_lessonbg.school-lesson-bg .video_player iframe {
    width: 100% !important;
    max-width: 820px !important;
    height: 460px !important;
    margin: 0 auto !important;
    display: block !important;
    border-radius: 16px !important;
}
.block_lessonbg.school-lesson-bg .test_head {
    margin-top: 6px !important;
    margin-bottom: 8px !important;
    font-size: 17px !important;
}
.block_lessonbg.school-lesson-bg .lessons_block > .pagination,
.block_lessonbg.school-lesson-bg .nav_css {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}
.block_lessonbg.school-lesson-bg .ul_class_css {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
    padding-left: 0 !important;
    list-style: none !important;
    box-sizing: border-box !important;
}
.block_lessonbg.school-lesson-bg .vopros_page .btnQuest {
    width: 38px !important;
    height: 38px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
}
.block_lessonbg.school-lesson-bg .container_test {
    padding: 1.35rem 1.55rem !important;
    margin-bottom: 12px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
}
.block_lessonbg.school-lesson-bg h2.vopros_text,
.block_lessonbg.school-lesson-bg .test_vopros_text {
    font-family: 'Nunito', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.55 !important;
    color: #0f172a !important;
    letter-spacing: -0.005em !important;
    -webkit-font-smoothing: antialiased;
}
.block_lessonbg.school-lesson-bg h2.vopros_text {
    margin-bottom: 14px !important;
}
.block_lessonbg.school-lesson-bg .test_vopros_text p,
.block_lessonbg.school-lesson-bg .test_vopros_text span:not(.katex *),
.block_lessonbg.school-lesson-bg .test_vopros_text font {
    font-family: 'Nunito', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    font-size: inherit !important;
    font-weight: 600 !important;
    line-height: 1.55 !important;
    color: #0f172a !important;
}
.block_lessonbg.school-lesson-bg .test_vopros_text p {
    margin: 6px 0 0 0 !important;
}
.block_lessonbg.school-lesson-bg .otvety_contain {
    gap: 10px !important;
}
.block_lessonbg.school-lesson-bg label.lb_otvet {
    padding: 11px 15px !important;
    font-family: 'Nunito', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    font-size: 16.5px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    color: #1e293b !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
}
.block_lessonbg.school-lesson-bg label.lb_otvet span:not(.katex *),
.block_lessonbg.school-lesson-bg label.lb_otvet p,
.block_lessonbg.school-lesson-bg label.lb_otvet font {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}
.block_lessonbg.school-lesson-bg .check_test {
    margin: 12px auto 6px auto !important;
    padding: 11px 30px !important;
}

@media (max-width: 768px) {
    .block_lessonbg.school-lesson-bg {
        margin-top: 58px !important;
        padding: 0.65rem 0.5rem 2rem !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    .block_lessonbg.school-lesson-bg .lessons_block {
        padding: 0.9rem 0.75rem !important;
        border-radius: 16px !important;
        overflow-x: hidden !important;
    }
    .block_lessonbg.school-lesson-bg .text_header_text b {
        font-size: 17.5px !important;
    }
    .block_lessonbg.school-lesson-bg .video_player {
        margin: 8px 0 12px 0 !important;
    }
    .block_lessonbg.school-lesson-bg .video_player iframe {
        max-width: 100% !important;
        width: 100% !important;
        height: 230px !important;
        border-radius: 12px !important;
    }
    .block_lessonbg.school-lesson-bg .vopros_page .btnQuest {
        width: 34px !important;
        height: 34px !important;
        font-size: 12.5px !important;
    }
    .block_lessonbg.school-lesson-bg .container_test {
        padding: 0.9rem 0.75rem !important;
        border-radius: 14px !important;
    }
    .block_lessonbg.school-lesson-bg h2.vopros_text,
    .block_lessonbg.school-lesson-bg .test_vopros_text {
        font-size: 17.5px !important;
        line-height: 1.5 !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
    .block_lessonbg.school-lesson-bg .text_main_lessons img,
    .block_lessonbg.school-lesson-bg .test_vopros_text img {
        max-width: 100% !important;
        height: auto !important;
    }
    .block_lessonbg.school-lesson-bg h2.vopros_text {
        margin-bottom: 12px !important;
    }
    .block_lessonbg.school-lesson-bg label.lb_otvet {
        padding: 11px 13px !important;
        min-height: 44px !important;
        font-size: 15.5px !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
    .block_lessonbg.school-lesson-bg .check_test {
        width: 100% !important;
        min-height: 46px !important;
        margin-top: 10px !important;
    }
}

/* ==========================================================================
   Сұрақ мәтіні бар салыстырмалы тапсырмалар (А және В бағандары) — Desktop + Mobile
   ========================================================================== */
.vopros_text.sypat_with_text {
    box-shadow: none !important;
    background: transparent !important;
    color: #0f172a !important;
    text-align: left !important;
    font-family: 'Nunito', 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 18.5px !important;
    font-weight: 600 !important;
    line-height: 1.55 !important;
    padding: 0 !important;
    margin: 0 0 14px 0 !important;
    overflow: visible !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.vopros_text.sypat_with_text .test_vopros_text.sypat_vopros_rich {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    color: #0f172a !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.vopros_text.sypat_with_text .sypat_q_num {
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15.5px !important;
    font-weight: 800 !important;
    color: #1e3a8a !important;
    background: #eff6ff !important;
    border: 1.5px solid #bfdbfe !important;
    border-radius: 10px !important;
    padding: 3px 12px !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
}

.vopros_text.sypat_with_text .sypat_q_body {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    text-align: center !important;
    background: #ffffff !important;
    border: 1.5px solid #dbeafe !important;
    border-radius: 14px !important;
    padding: 14px 20px !important;
    font-family: 'Nunito', 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 19px !important;
    font-weight: 600 !important;
    line-height: 1.62 !important;
    color: #0f172a !important;
    letter-spacing: -0.005em !important;
    -webkit-font-smoothing: antialiased;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

.vopros_text.sypat_with_text .sypat_q_body p,
.vopros_text.sypat_with_text .sypat_q_body span:not(.katex *),
.vopros_text.sypat_with_text .sypat_q_body font,
.vopros_text.sypat_with_text .sypat_q_body div {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: 1.62 !important;
    color: inherit !important;
    text-align: center !important;
    max-width: 100% !important;
}

.vopros_text.sypat_with_text .sypat_q_body p {
    margin: 0 0 8px 0 !important;
}

.vopros_text.sypat_with_text .sypat_q_body p:last-child {
    margin-bottom: 0 !important;
}

.vopros_text.sypat_with_text .sypat_q_body img {
    max-width: 100% !important;
    height: auto !important;
    vertical-align: middle !important;
}

.vopros_text.sypat_with_text + .sypat_compare_card {
    margin-top: 8px !important;
}

@media (max-width: 576px) {
    .vopros_text.sypat_with_text {
        font-size: 17px !important;
        line-height: 1.55 !important;
        margin-bottom: 12px !important;
    }
    .vopros_text.sypat_with_text .test_vopros_text.sypat_vopros_rich {
        gap: 8px !important;
    }
    .vopros_text.sypat_with_text .sypat_q_num {
        font-size: 14px !important;
        padding: 2px 10px !important;
    }
    .vopros_text.sypat_with_text .sypat_q_body {
        padding: 11px 14px !important;
        font-size: 17px !important;
        line-height: 1.55 !important;
    }
}
