*{margin: 0;padding: 0;box-sizing: border-box;}
body{background: #f5f5f5;}
ul,li{list-style: none;}
.container{padding: 0 10px;max-width: 600px;margin: 0 auto;}

textarea{resize: none;}
a{text-decoration:none}
/*javscript*/
.loaderCenterPage{width: 100%;height: calc(100vh - 160px);display: flex;align-items: center;justify-content: center;margin-top: 50px;font-size:14px;}
.transformScaleYes{transform: scale3d(1, 1, 1);transition: 0.3s;}
.transformScaleNot{transform: scale3d(0, 0, 0);transition: 0.3s;position: absolute;}
/*readyLoad*/
.ready-load{position: fixed;width: 100%;height: 100%;background-color: #fff;z-index: 105;display: flex;justify-content: center;align-items: center;top: 0;}
.ready-load>span{position: absolute;bottom: 30px;background: linear-gradient(45deg, #0076b1 33%, #00a300 66%, #990016);   -webkit-background-clip: text;-webkit-text-fill-color: transparent;display: table;font-weight: bold;}

.bc-standard{background-color: #336699;}
.cl-standard{color: #336699;}

/*flex*/
.flex{display: flex;}
.flex-column{flex-direction: column;}
.flex-y-center{align-items: center;}
.flex-x-center{justify-content: center;}
.flex-xy-center{justify-content: center;align-items: center;}
.flex-between{justify-content: space-between;}
.flex-wrap{flex-wrap: wrap;}
[data-href]{cursor: pointer;}

.xy45px{width: 45px;height: 45px;}
.bc-fff{background-color: #fff;}
/*header and nav*/
.header{height: 50px;position: fixed;width: 100%;top: 0;background-color: #f5f5f5;z-index: 99;}
.header ul{height: 50px;}
.header ul>li{padding: 12px;font-weight: bold;border-radius: 16px;}

.headerLiScroll{overflow-y: scroll;height: 50px;text-align: center;width: 75%;}

nav{position: fixed;width: 100%;background-color: #ffffff;bottom: 0;height: 56px;z-index: 99;text-align: center;}
nav div{display: flex;justify-content: space-around;align-items: center;height: 56px;}

nav .nav-li{display: flex;flex-direction: column;width: 100%;height: 100%;justify-content: center;margin: 0 -10px;color: #b0b2b8;}



nav .nav-li>i{font-size: 24px;}
nav .nav-li>span{font-size: 10px;margin-top: 4px;}


.content{margin: 55px 0;}

.desctop-nav>span{font-weight: bold;margin-left: 10px;cursor: pointer;}
.desctop-nav>span:hover{color: #336699;text-decoration: underline;}
/*main*/

.main-slider{padding: 10px 0 20px;overflow: hidden;position: relative;}
.main-slider>div{margin-top: 20px;display: flex;align-items: center;justify-content: center;}
.main-slider>div p{margin: 0 2.5px;height: 12.5px;width: 12.5px;display: block;border-radius: 50%;background: #fff;}
.main-slider>ul{padding: 20px 12px 16px;border-radius: 16px;line-height: 20px;}
.main-slider>ul>li>span{font-size: 12px;}

.transformTranslateRight{transform:translateX(300%);position: absolute;}
.transformTranslateLeft{transform:translateX(-300%);position: absolute;transition: 0.3s;}
.transformTranslateCenter{transform:translateX(0);transition: 0.3s;;}

.main-h4{ margin: 0 14px 12px; font-size: 20px; font-weight: 700; color: #1f2937; }
.main-discipline-list ul{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.main-discipline-list ul > li{ width:100%; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 18px; display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 110px; padding: 14px 10px; text-align: center; font-weight: 700; color: #1f2937; cursor: pointer; box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08); transition: .25s ease; }
.main-discipline-list ul > li:hover{ transform: translateY(-4px); box-shadow: 0 14px 30px rgba(17, 24, 39, 0.14); }
.main-discipline-list ul > li > span.title{ font-size: 14px; line-height: 1.35; }
.subject-icon{ width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.subject-icon i{ font-size: 24px; color: #fff; }
@media (max-width: 480px){ .main-discipline-list ul > li{ min-height: 98px; padding: 12px 8px; } .subject-icon{ width: 46px; height: 46px; } .subject-icon i{ font-size: 21px; } .main-discipline-list ul > li > span.title{ font-size: 13px; } }

.frac {
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  line-height: 1.2;
}
.frac .top {
  display: block;
  padding: 0 4px;
  border-bottom: 1px solid #000;
}
.frac .bottom {
  display: block;
  padding: 0 4px;
}

.eq-system{
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding:10px 14px;
  border-radius:14px;
  font-family:"Cambria","Times New Roman",serif;
  color:#3f4756;
}

.eq-brace{
  display:inline-block;
  font-size:72px;
  line-height:0.72;
  transform:scaleY(1.45);
  transform-origin:center;
  color:#2f3a4d;
  margin-top:-2px;
}

.eq-lines{
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:30px;
  line-height:1.12;
  letter-spacing:0.2px;
}

.eq-lines > div{
  white-space:nowrap;
}

.eq-lines sup,
.eq-lines sub{
  font-size:0.6em;
  line-height:0;
}
/*themes*/
.themes-cnt{margin-top: 5px;}
.themes-cnt ul{margin-top: 10px;}
.themes-cnt ul>li{flex-wrap: wrap;
	word-break:break-word;
	background-color: #842694;
    width: 30%;
    color: #fff;
    margin: 3px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-align: center;
    padding: 10px;
    border-radius: 10px;overflow-y: hidden;}

/*profile*/
.profile-info{text-align: center;margin-bottom: 50px;}
.profile-info>ul>li:first-child>span{color: #fff;font-size: 30px;width: 65px;height: 65px;margin: 0 auto;border-radius: 50%;}
.profile-info>ul>li:last-child{margin-top: 6px;font-weight: bold;}

.profile-other{background-color: #fff;border-radius: 16px;}
.profile-other ul>li{padding: 20px 10px;border-bottom: 1px solid #dddddd;}
.profile-other ul>li:last-child{border-bottom: none;}
.profile-other ul>li>span{flex: 1;margin-left:25px;}
.profile-other ul>li>i:nth-child(1){font-size: 20px;margin-left: 5px;}
.profile-other ul>li>*:nth-child(3){margin-right: 10px;}

.profile-other ul>li>p{margin: 0 2.5px;height: 16px;width: 16px;display: block;border-radius: 50%;background: #d1d1d1;}

.all-btn{outline: none;width: 100%;border-radius: 16px;height: 50px;font-size: 16px;color: #fff;border: none;position: relative;transition-duration: 0.2s;overflow: hidden;}
.all-btn:after {content: "";background: #f1f1f1;display: block;position: absolute;padding-top: 300%;padding-left: 350%;margin-left: -20px !important;margin-top: -120%;opacity: 0;transition: all 0.8s}
.all-btn:active:after {padding: 0;margin: 0;opacity: 1;transition: 0s}
.all-btn:hover{background-color: #2b5178;}

/*q*/
.mb-hdr-tm{background-color: #fff;padding: 12px;border-radius: 16px;margin: 0 -12px;font-size: 12px;}
.q-nm{color: #2372fa;text-align: center;font-weight: bold;margin-top:10px;display: flex;align-items: center;}

.q-qusn{padding:15px 10px;margin-top: 12px;border-radius: 12px;height: 30vh;font-size: 15px;text-align: center;background-color: #fff;}

.q-qusn>span{display: flex;align-items: center;justify-content: center;height: 100%;overflow:scroll;}

.q-qusn span[data-ask]:has(> table){
  flex-direction: column;
  align-items: flex-start; /* чтобы не растягивалось/не центрировалось */
}

.q-qusn span[data-ask]:has(> table) > table{
  margin-top: 8px; /* отступ от текста */
}
#timer{font-size: 12.5px;color: #000;}

.q-answ{margin-top:20px;}
.q-answ li{text-align: center;padding: 2vh;margin: 5px;border-radius: 5px;cursor: pointer;transition: .3s;background-color: #fff;}
.q-answ li:hover{border-color:#dcdcdc;}
.q-next-btn{width: 150px;margin: 10px auto;display: flex;align-items: center;justify-content: center;background-color: #336699;}

.q-qusn>span::-webkit-scrollbar { width: 6px; height: 6px; background-color: #ffffff; }
.shake{animation: shake 0.4s;}
.success{animation: success 0.8s;}
@keyframes shake { 0% { transform: translateX(3px); } 10% { transform: translateX(-3px); } 20% { transform: translateX(-6px); } 30% { transform: translateX(6px); } 40% { transform: translateX(3px); } 50% { transform: translateX(-3px); } 60% { transform: translateX(-6px); } 70% { transform: translateX(6px); } 80% { transform: translateX(-3px); } 90% { transform: translateX(3px); } 100% { transform: translateX(3px); }}
@keyframes success { 0% { transform: scale(1); } 20% { transform: scale(1.05); } 40% { transform: scale(1); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
.mb-hdr{display: none;}
.mb-hdr ul{background:#fff;height:60px;display: flex;align-items:center;justify-content: space-between;text-align: center;position: fixed;top: 0;width: 100%;margin-left: -10px;padding: 10px;box-shadow:0px 0px 5px 0px rgb(75 75 75 / 30%);}
.mb-hdr li{z-index:55;padding:12px;background-color: #edeef0;display: flex;align-items: center;justify-content: center;border-radius: 10px;flex-direction: column;}
.mb-hdr ul>p{width: 54%}
.mb-hdr li:nth-child(1){width: 15%;}
.mb-hdr li:nth-child(2){width: 15%;}
.mb-hdr li:nth-child(3){width: 15%;}

.mb-hdr>p{font-size: 14px;font-weight: bold;}

.q-nt-ans{position: absolute;bottom: 10px;z-index: 10000;background: #2372fa;color: #fff;padding: 12px;text-align: center;border-radius: 10px;width: 100%;margin-left: -10px;max-width:500px;}
.q-end-blk{text-align: center;}
.q-end-block{display: flex;justify-content: space-around;margin: 20px 0;font-size: 20px;}
.q-nm{
  color:#2372fa;
  text-align:center;
  font-weight:bold;
  margin-top:10px;
  display:flex;
  align-items:center;
}

.q-nm p{
  margin:0;
}

.q-qusn{
  padding:15px 12px;
  margin-top:12px;
  border-radius:14px;
  min-height:180px;
  max-height:30vh;
  font-size:15px;
  text-align:center;
  background-color:#fff;
  border:1px solid #e5e7eb;
}

.q-qusn > span{
  display:flex;
  align-items:center;
  justify-content:center;
  height:100%;
  overflow:auto;
  line-height:1.45;
  word-break:break-word;
}

#timer{
  font-size:12px;
  color:#000;
  font-weight:600;
}

.q-answ{
  margin-top:18px;
}

.q-answ ul{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.q-answ li{
  text-align:center;
  padding:13px 10px;
  margin:0;
  border-radius:10px;
  cursor:pointer;
  transition:.2s ease;
  background-color:#fff;
  border:1px solid #e5e7eb;
  font-size:14px;
  line-height:1.4;
}

.q-answ li:hover{
  border-color:#cfd6df;
  background:#fafafa;
}

.q-next-btn{
  width:150px;
  height:44px;
  margin:12px auto 0;
  display:flex;
  align-items:center;
  justify-content:center;
  background-color:#336699;
  border-radius:12px;
  font-size:14px;
  font-weight:700;
  color:#fff;
}

.q-next-btn:hover{
  background-color:#2b5a88;
}

.q-qusn > span::-webkit-scrollbar{
  width:6px;
  height:6px;
  background-color:#ffffff;
}

.q-qusn > span::-webkit-scrollbar-thumb{
  background:#d6d6d6;
  border-radius:10px;
}

.q-nt-ans{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:70px;
  z-index:10000;
  background:#2372fa;
  color:#fff;
  padding:12px;
  text-align:center;
  border-radius:10px;
  width:calc(100% - 20px);
  max-width:500px;
  font-size:14px;
}


/*cons*/
.cons-screen-head{ margin-bottom: 16px; }


.cons-screen-head p{ margin-top: 4px; font-size: 14px; color: #6b7280; line-height: 1.4; }

.cons-group{ margin-bottom: 18px; }

.cons-group-title{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding: 0 2px; }

.cons-group-title span:first-child{ font-size: 14px; font-weight: 800; color: #1f2937; }
.cons-group-title span:last-child{ font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; }

.cons-subject-list{ display: flex; flex-direction: column; gap: 10px; }

.cons-card{ display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; padding: 13px; cursor: pointer; box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }

.cons-card:hover{ transform: translateY(-2px); box-shadow: 0 14px 28px rgba(17, 24, 39, 0.10); border-color: #dbe3ee; }
.cons-card:active{ transform: scale(0.985); }
.cons-card-icon{ width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cons-card-icon i{ color: #fff; font-size: 20px; }

.cons-card-body{ flex: 1; min-width: 0; }

.cons-card-title{ display: block; font-size: 15px; font-weight: 800; color: #111827; line-height: 1.3; word-break: break-word; }

.cons-card-subtitle{ display: block; margin-top: 3px; font-size: 12px; font-weight: 600; color: #6b7280; line-height: 1.35; }

.cons-card-arrow{ width: 36px; height: 36px; border-radius: 12px; background: #f1f5f9; color: #336699; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; transition: background .2s ease, transform .2s ease; }

.cons-card:hover .cons-card-arrow{ background: #e2ecf7; transform: translateX(2px); }

/* color classes */
.bg-kz-history{background:#F97316;}
.bg-world-history{background:#6366F1;}
.bg-law{background:#F59E0B;}
.bg-reading{background:#FF4D9D;}
.bg-math-literacy{background:#22C55E;}

.bg-geography{background:#10B981;}
.bg-math{background:#0EA5E9;}
.bg-physics{background:#14B8A6;}
.bg-it{background:#3B82F6;}
.bg-biology{background:#84CC16;}
.bg-chemistry{background:#EF4444;}

.bg-english{background:#A855F7;}
.bg-kazakh{background:#06B6D4;}
.bg-kazakh-lit{background:#8B5CF6;}
.bg-russian{background:#EAB308;}
.bg-russian-lit{background:#D946EF;}

@media (max-width: 480px){

  .cons-card{ padding: 12px; border-radius: 16px; }

  .cons-card-icon{ width: 42px; height: 42px; border-radius: 12px; }

  .cons-card-icon i{ font-size: 18px; }
  .cons-card-title{ font-size: 14px; }
  .cons-card-subtitle{ font-size: 11px; }

  .cons-card-arrow{ width: 34px; height: 34px; border-radius: 10px; }
}

.lessons-list > ul{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lessons-list > ul > li{
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 16px;
  padding: 13px 14px;
  cursor: pointer;
  transition: .2s ease;
}

.lessons-list > ul > li:hover{
  border-color: #d7e2ee;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.06);
  transform: translateY(-1px);
}

.lessons-list > ul > li:active{
  transform: scale(0.99);
}

.lesson-num{
  min-width: 30px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #eef4fb;
  color: #336699;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.lesson-name{
  flex: 1;
  min-width: 0;
  color: #1f2937;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

.lesson-go{
  color: #336699;
  font-size: 20px;
  flex-shrink: 0;
  transition: .2s ease;
}

.lessons-list > ul > li:hover .lesson-go{
  transform: scale(1.08);
}

.lessons-empty{
  background: #fff;
  border: 1px dashed #d5dce5;
  border-radius: 16px;
  padding: 18px 14px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

@media (max-width: 480px){
  .lessons-list > ul{
    gap: 8px;
  }

  .lessons-list > ul > li{
    padding: 12px;
    border-radius: 14px;
    gap: 10px;
  }

  .lesson-num{
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 9px;
  }
}
.cons-page-text{border-radius: 16px;padding: 20px;background: #fff;overflow-wrap: break-word;overflow-x: scroll;margin-top: 10px;line-height: 24px;}
table{border-collapse: collapse;width: 100%;text-align: left;margin: 6px 0;}
th,td{border: 1px solid #336699;padding: 5px;}

/*qa*/
/*qa*/
.qa-ans-cnt h5{margin:10px;}

.qa-blocks>ul{
	line-height:24px;
	background:#fff;
	border-radius:16px;
	margin-bottom:10px;
	box-shadow:0 2px 10px rgba(0,0,0,0.04);
	overflow:hidden;
}

.qa-ans-blocks{margin:0;}

.qa-blocks i{font-size:18px;}

.qa-blocks>ul>li:nth-child(1){
	display:flex;
	align-items:center;
	padding:10px;
}

.qa-blocks>ul>li:nth-child(1)>.qa-ava{
	border-radius:50%;
	background:#336699;
	width:35px;
	height:35px;
	display:flex;
	color:#fff;
	align-items:center;
	justify-content:center;
	font-weight:bold;
	flex-shrink:0;
}

.qa-blocks>ul>li:nth-child(1)>span:nth-child(2){
	margin-left:10px;
	font-size:15px;
	color:#707579;
}

.qa-blocks>ul>li:nth-child(1)>span:nth-child(2)>b{
	color:#000;
}

.qa-blocks>ul>li:nth-child(2){
	padding:10px;
	margin-bottom:10px;
	color:#222;
	word-break:break-word;
}

.qa-footer{
	padding:12px 10px;
	border-top:1px solid #e3e3e3;
	display:flex;
	justify-content:space-between;
	align-items:center;
	gap:10px;
}

.qa-count{
	display:inline-flex;
	align-items:center;
	gap:8px;
	background:#f3f7fb;
	padding:6px;
	border-radius:12px;
}

.qa-count i{
	color:#336699;
	font-size:16px;
}

.qa-count-text{
	font-size:13px;
	color:#5f6b77;
	font-weight:600;
}

.qa-count b{
	background:#336699;
	color:#fff;
	border-radius:8px;
	padding:2px 8px;
	font-size:13px;
	line-height:1.4;
	min-width:28px;
	text-align:center;
}

.qa-reply-btn{
	color:#336699;
	font-weight:700;
	font-size:14px;
	white-space:nowrap;
}

.qa-add-ans{
	display:flex;
	justify-content:space-between;
	align-items:center;
	position:sticky;
	bottom:0;
	margin:0 -10px;
	background:#fff;
	border-top:2px solid silver;
	border-bottom:1px solid silver;
}

.qa-add-ans>input{
	width:85%;
	padding:15px;
	border-radius:16px;
	outline:none;
	border:none;
}

.qa-add-ans>i{
	width:15%;
	text-align:center;
	color:#336699;
	font-size:20px;
	padding:13px;
	display:block;
}

.qa-add-ans>i:hover{
	background-color:silver;
}

.qa-add-cnt textarea{
	outline:none;
	border-radius:16px;
	border:none;
	padding:10px;
	width:100%;
	font-size:16px;
	background:#fff;
}

.qa-add-cnt button{
	margin-top:10px;
}

.qa-blocks>ul>li:nth-child(1)>span:nth-child(2)>p{
	color:#000;
}

.qa-ans-blocks>li>span:nth-child(2){
	width:calc(100% - 35px);
}