html,
body {
    width: 100%;



}



html, body{
  background: #f7efe3; /* тёплый фон под odd-row */
}


table{
  background: #ffffff;
  border: 1px solid rgba(90, 60, 20, .12);
  box-shadow: 0 14px 35px rgba(30, 20, 10, .10);
  border-radius: 14px;
}



header {

    top: 0;
    width: 100%;
    z-index: 1000;
}

* { 
    padding: 0;
    margin: 0;
    box-sizing: border-box;
/*    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;*/

}
#burger-menu {
    display: none;
}
.container{
    margin-left: 2%;
    margin-right: 2%;
}
#h2id { margin-top: 130px; }


.language-switcher {
    display: flex;
}

.language-switcher a {
    font-size: 20px;
    background-color: #406f9d;
    color: white;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* Для псевдоэлементов */
    display: flex;
    align-items: center;
}

/* Флаг для KZ */
.language-switcher .lang-kz::after {
    content: "";
    background-image: url('image/kz.jpg'); /* Путь к изображению флага Казахстана */
    background-size: cover;
    width: 20px;
    height: 15px;
    margin-left: 8px;
}

/* Флаг для RU */
.language-switcher .lang-ru::after {
    content: "";
    background-image: url('image/ru.png'); /* Путь к изображению флага России */
    background-size: cover;
    width: 20px;
    height: 15px;
    margin-left: 8px;
}

/* Флаг для EN */
.language-switcher .lang-en::after {
    content: "";
    background-image: url('image/en.png'); /* Путь к изображению флага Великобритании */
    background-size: cover;
    width: 20px;
    height: 15px;
    margin-left: 8px;
}

.language-switcher a:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.language-switcher a:active {
    background-color: #003f7f;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.3);
}












.customNav-header-base {
    background-color: #34495e; /* Dark slate gray */
display: flex;
    justify-content: center;

}

.customNav-nav-menu, .customNav-nav-menu-base {
    padding-left: 0;
    list-style: none;
    text-align: center;
}

.customNav-dropdown-menu a, .customNav-dropdown-menu-base a {
    text-align: left;
}

.customNav-nav-menu li, .customNav-nav-menu-base li {
    display: inline-block;
    margin: 0 20px;
}

.customNav-nav-link, .customNav-dropdown-toggle, .customNav-nav-link-base, .customNav-dropdown-toggle-base {
    text-decoration: none;
    color: #ecf0f1; /* Light gray */
    padding: 10px 15px;
    font-weight: bold;
    display: block;
    transition: color 0.3s;
}

/* Hover effect for links */
.customNav-nav-link:hover, .customNav-dropdown-toggle:hover, .customNav-nav-link-base:hover, .customNav-dropdown-toggle-base:hover {
    color: #1abc9c; /* Soft teal */
    transition: color 0.3s;
}

/* Dropdown Menu Styling */
.customNav-dropdown-menu, .customNav-dropdown-menu-base {
    display: none;
    position: absolute;
    background-color: #2c3e50; /* Darker shade of blue */
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    width: 300px;
}

.customNav-dropdown-menu a, .customNav-dropdown-menu-base a {
    color: #ecf0f1;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.customNav-dropdown-menu a:hover, .customNav-dropdown-menu-base a:hover {
    background-color: #1abc9c;
}





.menu {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.menu > li > a {
    margin: 0 1rem;
    overflow: hidden;
    color: white;
    font-weight: 400;
    text-decoration: none;
}

.menu-button-container {
    display: none;
    height: 100%;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#menu-toggle {
    display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
    display: block;
    background-color: #fff;
    position: absolute;
    height: 4px;
    width: 30px;
    transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}

.menu-button::before {
    content: '';
    margin-top: -8px;
}

.menu-button::after {
    content: '';
    margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
    margin-top: 0px;
    transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
    background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
    margin-top: 0px;
    transform: rotate(-405deg);
}



h3 {
    font-size: 20px;
    margin: 20px;
    color: white;
}




h2 {
    vertical-align: center;
    text-align: center;
}






input {

    display: flex;
/*    margin: auto;*/
    width: 50%;
    font-size: 25px;
}



.select {
    margin: auto;
}







.select select {
    width: 100% !important; /* Устанавливаем ширину 100% */
    /*font-size: 20px !important;  Размер шрифта 20px */
    padding: 5px !important; /* Отступы внутри */
    box-sizing: border-box !important; /* Учет отступов и рамок */
}
.chosen-container {
    width: 100% !important; /* Устанавливаем ширину контейнера Chosen */
    /*font-size: 20px !important; /* Размер шрифта */
}

.chosen-container .chosen-single {
    height: auto !important; /* Устраняет ограничение по высоте */
    /*font-size: 20px !important; /* Размер шрифта для видимой части */
}
    


.select select {
    width: 100%; /* Устанавливаем одинаковую ширину для всех select */
    /*font-size: 20px; /* Размер шрифта 20px */
    padding: 5px; /* Добавляем отступы для внутреннего содержания */
    box-sizing: border-box; /* Учитываем отступы и рамки */
}

.chosen-container {
    width: 100% !important; /* Если используется Chosen, ширина контейнера */
    /*font-size: 20px !important; /* Устанавливаем размер шрифта */
}

.chosen-container .chosen-single {
    font-size: 20px !important;
    height: 30px !important; /* Увеличиваем высоту */
    line-height: 20px !important; /* Выравниваем текст */
    padding: 5px 10px !important; /* Добавляем отступы */
}







.rowSearch {
    margin: 5px;
    background-color: #bad1f1;
    border-style: solid;
    border-color: #161108;
    border-width: thin;
    border-top-left-radius: 5px 5px;
    border-bottom-left-radius: 5px 5px;
    border-top-right-radius: 5px 5px;
    border-bottom-right-radius: 5px 5px;

}

.rowFilter {
    display: flex;
    flex-direction: row;

    padding: 10px;
    display: flex;
    align-items: center;
    background-color: #2e5080;
    border-style: solid;
    border-color: #a59e91;
    border-width: thin;
    border-top-left-radius: 5px 5px;
    border-bottom-left-radius: 5px 5px;
    border-top-right-radius: 5px 5px;
    border-bottom-right-radius: 5px 5px;


}

.form-control {
    display: block;
/*    width: 600px;*/
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px
}

button {
    z-index: 0;
    display: flex;
    margin: auto;
    font-size: 18px;
    padding: 10px 25px;
    background-color: #2e5080; /* Bootstrap primary color */
     color: white;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 20px 20px 20px 20px; /* Only right corners rounded */
    transition: background-color 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    cursor: pointer;

/*  font-family: 'Ubuntu';*/
  padding: 12px 24px;
}

button:hover {
  background-color: #0056b3;
}




/* CSS */
.relative-button {
  position: relative;
  z-index: 0;
    top: 5px;
}



.search_panel {

margin: 10px;


}


tbody {
    background: #b8c9df;

}

#search{
  display: block;
  width: 80%;        /* или нужная ширина */
  margin: 0 auto;    /* центр */
}





tr{
    color: white;
}
td{
    color: black;
        border: 2px solid #cfcfcf;
}

.video {
    display: grid;
    place-items: center;
    cursor: pointer;
    padding-top: 1rem;
    padding-right: 2rem;
    padding-bottom: 1rem;
    padding-left: 2rem;
    background: #c7bead;
    border-radius: 15%;
    transition: all 0.3s ease-in;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.1),
        -10px -10px 10px rgba(255, 255, 255, 0.6);
    font-size: 2.5em;
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.video .fas {
    display: grid;
    place-items: center;
    font-size: 4rem;
    color: gray;
}

.video:active {
    box-shadow: inset 10px 10px 10px rgba(0, 0, 0, 0.1),
        inset -10px -10px 10px rgba(255, 255, 255, 0.6);
}

.video:active .fas {
    color: #721efa;
}


.www {
    margin: auto;
    padding: 10px;
}


.table thead th {

    z-index: 3;
    background: #2e5080;
    border: 2px solid #121b24;
   

}

td {
    padding: 5px;
    border-bottom: 2px solid #dee2e6;
    text-align: justify;
}
/* ===== Overlay ===== */
.sozModal{
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;

  display: none;        /* JS: display:flex қылады */
  align-items: center; justify-content: center;

  padding: 16px;
  background: rgba(17,24,39,0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 2000;
}

/* ===== Card ===== */
.sozCard{
  background:#fff; color:#111827;
  width: min(1000px, 94vw);
  max-height: 92vh;              /* ішінде скрол */
  border-radius:16px;
  border:1px solid rgba(0,0,0,.06);
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  overflow:hidden;               /* header бөлек, body бөлек */
}

/* Header */
.sozCard__header{
  position: relative;
  display:flex; align-items:center; justify-content:flex-start;
  gap: 8px;
  padding:14px 18px;
  background:#2e5080; color:#fff;
  border-bottom:1px solid rgba(0,0,0,.05);
}
.sozCard__header h3{ margin:0; font-size:18px; font-weight:700; }

/* Close: панельдің оң-жоғары бұрышы */
.sozCard__close{
  position:absolute; top:10px; right:12px;
  width:36px; height:36px;
  border:0; border-radius:8px;
  background:rgba(255,255,255,.15); color:#fff; font-size:20px;
  display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer; line-height:1; z-index:10;
}
.sozCard__close:hover{ background:rgba(255,255,255,.25); }

/* Body: тек ішкі контент скролдансын (скролбар көрсетпейміз) */
.sozCard__body{
  overflow:auto;
  max-height: calc(92vh - 56px);   /* header биіктігін шегеру */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 18px;
}
.sozCard__body::-webkit-scrollbar{ width:0; height:0; }
.sozCard__body{ scrollbar-width: none; }

/* Бөлім атауы */
.sozSectionTitle{
  font-size:18px; margin: 6px 0 10px; color:#34495e;
}

/* Кестелер – десктоп */
.setka{ width:100%; border-collapse: collapse; background:#fff; }
.setka thead th{
  background:#2e5080; color:#fff; text-align:left; padding:10px;
  border:1px solid #1f3554;
}
.setka tbody td{
  background:#f8fafc; color:#111827; padding:10px;
  border:1px solid #e5e7eb; vertical-align: top;
}

/* ===== Мобиль (≤600px): бағандарды тікке айналдыру ===== */
@media (max-width:600px){
    
    .sozCard__close {
        top: 0px;
        right: 0px;
    }
  /* thead жасырамыз; әр жол — «карточка» */
  .setka thead{ display:none; }
  .setka tbody tr{
    display:block; margin: 0 0 12px 0; border:1px solid #e5e7eb;
    overflow:hidden; background:#fff;
  }
  .setka tbody td{
    display:block; border:none; border-top:1px solid #eef2f7; padding:10px 12px;
  }
  /* Фонетика-фонология: 1-баған — әріп (title), 2-3-4 — тік */
  .setka--phon tbody td:nth-child(1){
    background:#eff6ff; font-weight:700; font-size:16px;
  }
  .setka--phon tbody td:nth-child(2)::before{
    content:"Жасалым"; display:block; font-weight:700; color:#34495e; margin-bottom:4px;
  }
  .setka--phon tbody td:nth-child(3)::before{
    content:"Айтылым"; display:block; font-weight:700; color:#34495e; margin-bottom:4px;
  }
  .setka--phon tbody td:nth-child(4)::before{
    content:"Естілім"; display:block; font-weight:700; color:#34495e; margin-bottom:4px;
  }

  /* Просодика: 1-2-3 баған да тік */
  .setka--pros tbody td:nth-child(1)::before{
    content:"Орфоэпия"; display:block; font-weight:700; color:#34495e; margin-bottom:4px;
  }
  .setka--pros tbody td:nth-child(2)::before{
    content:"Тембр"; display:block; font-weight:700; color:#34495e; margin-bottom:4px;
  }
  .setka--pros tbody td:nth-child(3)::before{
    content:"Буын"; display:block; font-weight:700; color:#34495e; margin-bottom:4px;
  }

  .sozCard{ width:96vw; border-radius:12px; }
  .sozCard__body{ padding:14px; max-height: calc(92vh - 56px); }
}

/* Қалауыңызбен: модал ашылғанда артқы парақ скролын құлыптау үшін */
.body-locked{ overflow:hidden !important; touch-action:none; }
.body-locked--fixed{ position:fixed; width:100%; }




.authorMetodanih {
    position: fixed;
    display: flex;
    margin: auto;
    height: 90%;
    align-items: center;
    justify-content: center;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 11;
    background: #c7bead;
    width: 98%;
    border: 1px solid;
    padding: 10px;
    box-shadow: 10px 10px 400px 400px #a59e91;

}


.closeButton {
    position: absolute;
    font-size: xx-large;
    display: flex;
    top: 2%;
    right: 1%;
    justify-content: center;
    align-items: center;
    width: 2%;
    height: 5.5%;
    z-index: 2;
    text-decoration: none;
}

.setka{
    width: 100%;
}
.authorContainer{
    
    display: none;
    
    
}


/* === Overlay (фон) === */
.authorContainerTest{
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;

  display: none;        /* JS: display:flex қылады */
  align-items: center; justify-content: center;

  padding: 24px;
  background: rgba(17,24,39,0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 2000;
}

/* === Card === */
.authorCard{
  background:#fff; color:#111827;
  width: min(1000px, 92vw);
  max-height: min(90vh, 940px);              /* карта өте биік болса да тасымау */
  border-radius:16px;
  border:1px solid rgba(0,0,0,.06);
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  overflow:hidden;                           /* бас/дене бөлек скролдансын */
}

/* Header */
.authorCard__header{
  position: relative;
  display:flex; align-items:center; justify-content:flex-start;
  gap: 8px;
  padding:14px 18px;
  background:#2e5080; color:#fff;
  border-bottom:1px solid rgba(0,0,0,.05);
}
.authorCard__header h3{ margin:0; font-size:18px; font-weight:700; }

/* Close — оң жақ жоғары */
.authorCard__close{
  position:absolute; right:5px;
  width:36px; height:36px; border:0; border-radius:8px;
  background:rgba(255,255,255,.15); color:#fff; font-size:20px;
  display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer; line-height:1;
}
.authorCard__close:hover{ background:rgba(255,255,255,.25); }

/* Body layout */
.authorCard__body{
  display:grid; gap:20px; padding:20px;
  grid-template-columns:300px 1fr;           /* сурет + ақпарат */
  overflow:auto;                             /* ішкі скрол (смартфонда да) */
  max-height: calc(90vh - 64px);             /* хедерді алып тастау */
}

/* Media */
.authorCard__media{
  background:#f3f4f6; border:1px solid #e5e7eb; border-radius:12px;
  min-height:240px; display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.authorCard__media img{ width:100%; height:auto; object-fit:cover; }

/* Meta grid */
.authorCard__meta{
  display:grid; gap:12px 16px; grid-template-columns:1fr 1fr;
}

/* Бір жол — «таңба + мән» */
.meta{ display:flex; flex-direction:column; gap:4px; }
.meta--wide{ grid-column:1 / -1; }
.meta .label{
  font-size:12.5px; color:#6b7280;
  letter-spacing:.2px;
}
.meta .value{                                  /* мәндерге unified стиль */
  font-size:15.5px; font-weight:600; color:#111827;
  white-space:normal; word-break:break-word;
}

/* Егер .value класс бермесеңіз — соңғы div-ті стильдеу */
.authorCard__meta .meta > div:last-child{ font-size:15.5px; font-weight:600; color:#111827; }

/* Tablet */
@media (max-width:1024px){
  .authorCard{ width:min(760px,94vw); }
  .authorCard__body{ grid-template-columns:1fr; } /* сурет үсті, мәтін асты */
  .authorCard__meta{ grid-template-columns:1fr; }
}

/* Small phones */
@media (max-width:420px){
  .authorCard{ width:96vw; border-radius:12px; }
  .authorCard__body{ padding:14px; gap:14px; max-height: calc(92vh - 56px); }
}

/* Body lock (артқы скролды құлыптау) */
.body-locked{
  overflow:hidden !important;
  touch-action:none;
}

/* iOS үшін қосымша: құлып кезінде контент секірмесін */
.body-locked--fixed{
  position: fixed; width:100%;
}



/* === Overlay === */
.videoContainerTest{
  position: fixed;      /* fixed — әрқашан экранға қатысты */
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;

  display: none;        /* JS: display:flex қылады */
  align-items: center; justify-content: center;

  padding: 16px;
  background: rgba(17,24,39,0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 2000;
}

/* === Card === */
.videoCard{
  background:#fff; color:#111827;
  display: flex; flex-direction: column;
  width: min(1000px, 96vw);
  max-height: 92svh;           /* ішінде скрол */
  border-radius:16px;
  border:1px solid rgba(0,0,0,.06);
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  overflow:hidden;
}

/* Header */
.videoCard__header{
  position: relative;
  display:flex; align-items:center; justify-content:flex-start;
  padding:14px 18px; background:#2e5080; color:#fff;
}
.videoCard__header h3{ margin:0; font-size:18px; font-weight:700; }

/* Жабу батырмасы */
.videoCard__close{
  position:absolute; right:12px;
  width:36px; height:36px; border:0; border-radius:8px;
  background:rgba(255,255,255,.15); color:#fff; font-size:20px;
  display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.videoCard__close:hover{ background:rgba(255,255,255,.25); }

/* Body layout — ішінде скрол */
.videoCard__body{
  flex: 1 1 auto;
  min-height: 0;
  overflow:auto;
  -webkit-overflow-scrolling: touch; /* iOS smooth */
  overscroll-behavior: contain;
  display:grid; gap:20px; padding:20px;
  grid-template-columns: 1fr 1fr;   /* сол — видео, оң — мәтін */
}

/* Media (video) */
.videoCard__media{
  background:#0b1220; border:1px solid #0b1220; border-radius:12px;
  min-height:240px; display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.videoCard__media video{ width:100%; height:auto; display:block; }

/* Text */
.videoCard__text{
  background:#f8fafc; border:1px solid #e5e7eb; border-radius:12px;
  padding:16px; font-size:15.5px; line-height:1.6;
  color:#111827; white-space:normal; word-break:break-word;
}

/* Tablet/phone */
@media (max-width:1024px){
  .videoCard{ width:min(760px,94vw); }
  .videoCard__body{ grid-template-columns:1fr; }
}

/* Small phones */
@media (max-width:420px){
  .videoCard{ width:96vw; border-radius:12px; }
  .videoCard__body{ padding:14px; gap:14px; }
  .videoCard__media video{ max-height:45svh; }
}

.cards{
    
    width: 100%;
    margin: 0 auto;
}

.metodanihToliqIshi {
    position: fixed;
    z-index: 5;
    width: 80%;
    height: 60%;
    display: grid;
    grid-template-columns: auto auto auto;
    background: #bad1f1;
    margin: auto;
/*    position: absolute;*/
    align-content: center;
    justify-content: center;
    align-items: start;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
  box-shadow: 0px 0px 8px 1000px #e1dbd3;
}

.metodanihSuret {

    background-color: antiquewhite;
    border: 1px solid;
    border-color: #65615b;
    padding: 10px;
    box-shadow: 5px 10px #827e75;
}

.image {

    width: 400px;
    height: 500px;
    float: right;
}

.metodanih {

    padding-left: 3%;
    float: left;
}

.metodanih_Text {

    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: 30px;
    justify-content: start;
    align-items: baseline;
}


.metodanih_Text h3 {
    font-weight: normal;
    color: #6e6451;
    font-size: 16px;
}
.VideoIshi {
    z-index: 6;
    position: fixed;
        display: grid;
    grid-template-columns: auto auto auto;
    background: #a59e91;
    margin: auto;
    /*position: absolute;*/
    width: 90%;
    height: 70%;
    justify-content: center;
    align-items: center;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.VideoPlayer {

    background-color: antiquewhite;
    border: 1px solid;
    border-color: #65615b;
    padding: 10px;
    box-shadow: 5px 10px #827e75;
}
.videoButton{
font-size: 50px;
}

 
.odd-row  { background-color: #fbf6ee; }
.even-row { background-color: #ffffff; }




        
        a:hover {
        cursor: pointer;
    }
        


.table th:nth-child(1), .table td:nth-child(1) { width: 150px; font-weight: bold; text-align: center; }  
.table th:nth-child(2), .table td:nth-child(2) { width: 200px; }
.table th:nth-child(3), .table td:nth-child(3) { width: 100px; text-align: center;
  vertical-align: middle; } 
.table th:nth-child(4), .table td:nth-child(4) { width: 600px; }  


/* Для видео кнопки */
.videoButton {
    display: inline-block;
    text-align: center;
    width: 100%;
}
        

        
   .orfo {
    border: 2px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    background-color: #f9f9f9;
/*    font-family: Arial, sans-serif;*/
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    max-width: 600px;
    margin: 50px auto;
    margin-left: 20px;
  }

  .videoContainer {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }       
       
  .closeButton {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: blue;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 50%;
  }

  .closeButton:hover {
    background-color: darkred;
  }
















/* PHONE/TABLET ≤1024px — ықшам өлшемдер */
@media only screen and (max-width: 1024px) {
    
    .fa {
        
        font-size: 44px;
    }
  /* iOS Safari мәтінді авто-үлкейтпеуі үшін */
  html { -webkit-text-size-adjust: 100%; }

  /* Тіл ауыстырғыш: тым үлкен емес */
  .language-switcher a { font-size: 18px; padding: 8px 12px; }

  /* Бургер телефонда бар */
  #burger-menu {
    display: block;
    font-size: 24px;
    position: absolute; top: 15px; right: 20px; z-index: 100;
    cursor: pointer;
  }

  /* Сайд-меню (жасырынды) */
  #customNav-nav-container-base {
    display: none;
    position: absolute; right: 0; top: 0;
    height: 100%; width: 80%;
    background-color: #2e5080;
    box-shadow: 0 4px 8px rgba(0,0,0,.2);
    z-index: 99;
  }
  #customNav-nav-container-base ul { display: flex; flex-direction: column; padding: 0; }
  #customNav-nav-container-base li { border-bottom: 1px solid #ddd; width: 100%; }
  #customNav-nav-container-base li a { display: block; font-size: 18px; padding: 12px 16px; }

  .customNav-dropdown-toggle-base,
  .customNav-nav-link-base { font-size: 18px; }

  /* Форма */
  .rowFilter {
    background-color: #fff;
    display: flex; flex-direction: column;
  }
  .form-group { display: flex; }
  .form-control,
  input { font-size: 16px; } /* <16px болса iOS фокус кезінде zoom жасайды */

  button { margin: 10px; font-size: 18px; padding: 10px 20px; }

  /* Select/Chosen */
  .select { width: 100%; margin: 10px 0; }
  .select select {font-size: 17px; padding: 6px 10px; width: 100%; box-sizing: border-box; }
  .chosen-container { width: 100% !important; }
  .chosen-container .chosen-single {
    font-size: 18px !important; height: 44px !important; line-height: 42px !important; padding: 0 12px !important;
  }
  .chosen-container .chosen-drop,
  .chosen-container .chosen-results li { font-size: 16px !important; }
  .chosen-container .chosen-single span {
    display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  }

  /* Кестені «карточка» режиміне ауыстыру, бірақ ұсақ шрифтпен */
  #authorsTable { width: 100%; display: block; }
  #authorsTable thead { display: none; }
  #authorsTable tbody { display: block; width: 100%; }
  #authorsTable tr {
    display: flex; flex-direction: column;
    border-bottom: 1px solid #ddd; padding: 10px; margin-bottom: 10px; background: #f9f9f9;
  }
  #authorsTable td {
    font-size: 16px; display: block; width: 100%; text-align: left; padding: 6px 8px; border-bottom: 1px solid #eee;
  }
  #authorsTable td:before {
    content: attr(data-label); font-weight: 600; color: #333; margin-bottom: 4px; display: block;
  }

  /* Ұзын элементтер жолдан асып кетпеуі үшін */
  .rowFilter { gap: 10px; }
  .rowFilter .select { min-width: 0; } /* flex overflow fix */
}


/* Десктопты бекіту: 1200px+ барлық құрылғыда (соның ішінде 1280×720 панель) */
@media (min-width: 1200px) {
  #burger-menu { display: none !important; }

  /* Навигация — қатарда, сайд-меню емес */
  #customNav-nav-container-base {
    display: block !important;
    position: static !important;
    height: auto !important;
    width: auto !important;
    box-shadow: none !important;
  }

  /* Кестені қайта «настоящая таблица» түріне */
  #authorsTable { display: table !important; width: 100% !important; }
  #authorsTable thead { display: table-header-group !important; }
  #authorsTable tbody { display: table-row-group !important; }
  #authorsTable tr { display: table-row !important; }
  #authorsTable td { display: table-cell !important; font-size: inherit !important; }
}


/* =========================
   THEME OVERRIDE (NEW UI)
   Вставить в конец файла
========================= */

/* Шрифт (можешь заменить Inter на Manrope/Roboto) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root{
  /* Palette */
  --bg: #f6f8ff;
  --surface: rgba(255,255,255,.78);
  --card: #ffffff;

  --text: #0f172a;
  --muted: #64748b;

  --primary: #2563eb;
  --primary2: #0ea5e9;
  --nav: #0b2a4a;

  --border: rgba(15, 23, 42, .12);

  --radius: 14px;
  --radius-sm: 10px;

  --shadow: 0 14px 35px rgba(2,6,23,.10);
  --shadow-sm: 0 8px 18px rgba(2,6,23,.08);

  --ring: 0 0 0 4px rgba(37,99,235,.16);
}

html, body{
  width:100%;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 520px at 18% -10%, rgba(14,165,233,.18), transparent 60%),
    radial-gradient(900px 480px at 82% 0%, rgba(37,99,235,.18), transparent 55%),
    linear-gradient(180deg, #f8fbff, var(--bg));
}

/* Контейнер — аккуратнее центр */
.container{
  width: min(1280px, 94%);
  margin: 0 auto;
}

/* ========== Header / Nav ========== */
.customNav-header-base{
  background: linear-gradient(90deg, var(--nav), #0a3a66);
  box-shadow: 0 10px 22px rgba(2,6,23,.18);
}

.customNav-nav-link,
.customNav-dropdown-toggle,
.customNav-nav-link-base,
.customNav-dropdown-toggle-base{
  color: rgba(255,255,255,.92);
  border-radius: 999px;
  transition: background-color .18s ease, transform .18s ease, color .18s ease;
}

.customNav-nav-link:hover,
.customNav-dropdown-toggle:hover,
.customNav-nav-link-base:hover,
.customNav-dropdown-toggle-base:hover{
  color: #ffffff;
  background: rgba(255,255,255,.12);
  transform: translateY(-1px);
}

.customNav-dropdown-menu,
.customNav-dropdown-menu-base{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(11,42,74,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ========== Language switcher ========== */
.language-switcher a{
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  box-shadow: 0 10px 22px rgba(37,99,235,.22);
  border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.language-switcher a:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37,99,235,.26);
  filter: saturate(1.05);
}

.language-switcher a:active{
  transform: translateY(0px);
  box-shadow: 0 8px 16px rgba(37,99,235,.22);
}

/* ========== Search panel / filters ========== */
.rowSearch{
  background: transparent;
  border: none;
}

.rowFilter{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  gap: 12px;
}

/* Унифицируем input / select / form-control */
input,
.form-control,
select,
.chosen-container .chosen-single{
  border-radius: 12px !important;
  border: 1px solid var(--border) !important;
  background: rgba(255,255,255,.92) !important;
  color: var(--text) !important;
  box-shadow: 0 6px 14px rgba(2,6,23,.05);
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}

/* У тебя есть общий input {display:flex;} — это ломает поведение.
   Переопределяем корректно: */
input{
  display: block;
  width: min(900px, 92%);
  margin: 10px auto;
  font-size: 18px;
  padding: 12px 14px;
}

/* конкретно #search */
#search{
  width: min(980px, 92%);
  margin: 12px auto;
}

/* Фокус */
input:focus,
.form-control:focus,
select:focus,
.chosen-container-active .chosen-single{
  outline: none !important;
  border-color: rgba(37,99,235,.55) !important;
  box-shadow: var(--ring), 0 12px 26px rgba(2,6,23,.10) !important;
}

/* Chosen dropdown */
.chosen-container .chosen-drop{
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* ========== Buttons ========== */
button{
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  color: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(37,99,235,.24);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
  letter-spacing: .2px;
}

button:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(37,99,235,.28);
  filter: saturate(1.06);
}

button:active{
  transform: translateY(0px);
  box-shadow: 0 10px 18px rgba(37,99,235,.22);
}

/* ========== Table (results) ========== */
table{
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.table thead th{
  background: linear-gradient(90deg, var(--nav), #0a3a66);
  border: 0;
  color: #fff;
}

tbody{
  background: transparent;
}

tbody td{
  border-color: rgba(15,23,42,.10);
  padding: 10px;
}

tbody tr:nth-child(even){
  background: rgba(37,99,235,.04);
}

tbody tr:hover{
  background: rgba(14,165,233,.10);
}

/* ========== Audio icon / video button polish ========== */
.video{
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(2,6,23,.08);
  transition: transform .16s ease, box-shadow .16s ease;
}

.video:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(2,6,23,.12);
}

/* ========== Modals (soz/author/video) —统一 header gradient ========== */
.sozCard__header,
.authorCard__header,
.videoCard__header{
  background: linear-gradient(90deg, var(--nav), #0a3a66);
}

/* ========== Smooth animations (optional) ========== */
@media (prefers-reduced-motion: no-preference){
  html{ scroll-behavior: smooth; }

}





/* Блокировка прокрутки фона при открытой модалке */
body.body-locked {
  overflow: hidden !important;
}


#toTopBtn{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  z-index: 2500;

  display: none;              /* скрыта, пока не проскроллили */
  align-items: center;
  justify-content: center;

  font-size: 22px;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(2,6,23,.18);
}

#toTopBtn.show{
  display: inline-flex;
}

/* на телефоне чуть больше */
@media (max-width: 600px){
  #toTopBtn{
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
    font-size: 24px;
  }
}


/* ===== Pagination (центр + красивый вид) ===== */
.pagerWrap{
  /* если где-то было absolute/fixed — это уберёт "в углу" */
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  top: auto;

  clear: both;
  width: 100%;
  max-width: 1100px;
  margin: 22px auto 40px;
  padding: 14px 16px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

.pagerMeta{
  font-size: 14px;
  line-height: 1.2;
  color: #0b2a3a;
}

.pager{
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.pagerBtn{
  min-width: 42px;
  height: 42px;
  padding: 0 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;
  text-decoration: none;

  border: 1px solid rgba(0,0,0,0.12);
  background: #ffffff;
  color: #0b2a3a;
  font-weight: 600;

  transition: transform 0.08s ease, box-shadow 0.12s ease, background-color 0.12s ease;
  user-select: none;
}

.pagerBtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.14);
}

.pagerBtn:active{
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.pagerBtn.isActive{
  background: #1e78ff;
  color: #fff;
  border-color: #1e78ff;
  box-shadow: 0 10px 22px rgba(30,120,255,0.35);
}

.pagerBtn.isDisabled{
  opacity: 0.45;
  pointer-events: none;
  box-shadow: none;
}

.pagerDots{
  padding: 0 6px;
  color: rgba(0,0,0,0.45);
  font-weight: 700;
}

/* Мобильная адаптация */
@media (max-width: 520px){
  .pagerWrap{
    margin: 16px auto 26px;
    padding: 12px;
    border-radius: 14px;
  }
  .pagerBtn{
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    font-weight: 600;
  }
}







