:root { 
  --bg-color: #eee;
  --text-col: #000;
  --bg-clo2: #fff;
  --block-col: #fff;
  --boto: #ddd;
  --comboxtext: #fff;
  --inpt: #fff;
  --btn-bg: #fff;
  --ssilk-color: #0000CF;
  --border-input: #bbb;
  --radius: 12px;
}

.dark-theme {
  --bg-color: #0E0E11;
  --text-col: #f0f0f0;
  --block-col: #202022;
  --bg-clo2: #333;
  --boto: #9b9b9c;
  --comboxtext: #9b9b9c;
  --inpt: #333;
  --btn-bg: #333;
  --ssilk-color: #f7f21a;
  --border-input: #555;
}

body{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-clo2);
    color: var(--text-col);
    line-height: 1.6;
}

.head{
  position: absolute;
  top: 0;
  max-width: 1300px;
  width: 100%;
  margin:0 auto;
  left:0;
  right:0;
  height: 100vh;
}

.content{
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 1000px;
  width: calc(98% - 20px);
  margin: 0 auto;
  left: 0;
  right:0;
  overflow: auto;
  top: 38px;
  z-index: 1;
}

/* Тонкая кастомная полоса прокрутки */
.content::-webkit-scrollbar {
  width: 6px;
}
.content::-webkit-scrollbar-track {
  background: transparent;
}
.content::-webkit-scrollbar-thumb {
  background: var(--boto);
  border-radius: 3px;
}

.fBtn2{
  position: fixed;
  top: 0;
  max-width: 1000px;
  width: calc(98% - 20px);
  left: 0;
  right: 0;
  margin: 0 auto;
  font-size: calc(10px + (4 + 4 * 0.7) * ((100vw - 320px)/1000));
  padding: 3px 0;
  border-bottom: 1px solid #aaa;
  font-weight: bold;
  background: var(--bg-clo2);
  z-index: 2;
  text-indent: 20px;
  color: var(--text-col);
}

.mySwiper{
  position: fixed;
  display: inline-flex;
  flex-direction: column;
  align-content: center;
  justify-content: space-between;
  z-index: 5;
  top: 0px;
  padding: 0 6px;
  right: 0px;
  height: 100%;
  overflow-x: auto;
  background: var(--block-col);
  color: #333;
  align-items: stretch;
  box-shadow: -1px 0px 2px 1px rgba(133, 133, 133, 0.2);
}

.mySwiper::-webkit-scrollbar {
  display: none;
}

.slidys{
  position: relative;
  display: flex;
  text-align: center;
  flex-direction: column;
  margin-top: 3px;
  background: #fff;
  border-radius: var(--radius);
  padding: 5px 9px;
}
.zap{
  font-size: calc(16px + (4 + 4 * 0.7) * ((100vw - 320px)/1000));
}

.namezapblock{
  position: relative;
  display: flex;
}
.namezap{
  font-size: calc(10px + (4 + 4 * 0.7) * ((100vw - 320px)/1000));
}
.catBloc{
  position: relative;
  display: flex;
  flex-direction: column;
  top: 5px;
  align-items: flex-start;
  height: calc(100% - 0px);
  padding: 0 20px 0 5px;
}

/* Кнопки категорий стали плоскими с легким hover-подъемом */
.catBlocone{
  position: relative;
  display: flex;
  align-items: baseline;
  padding: 6px 8px;
  border-radius: var(--radius);
  font-size: calc(8px + (4 + 4 * 0.7) * ((100vw - 320px)/1000));
  cursor: pointer;
  margin-bottom: 7px;
  width: 100%;
  color: var(--text-col);
  background: var(--block-col);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.catBlocone:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.catBloconevg{
  font-size: calc(6px + (4 + 4 * 0.7) * ((100vw - 320px)/1000));
  font-weight: bold;
  text-shadow: 0px 1px 2px #555;
  margin-right: 5px;
}

.catBloconetext{
  font-size: calc(8px + (4 + 4 * 0.7) * ((100vw - 320px)/1000));
}

.dob{
  position: relative;
  display: inline-flex;
  text-align: center;
  flex-wrap: nowrap;
  font-size: calc(10px + (4 + 4 * 0.7) * ((100vw - 320px)/1000));
  white-space: nowrap;
  background: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
  color: #333;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(0);
  transition: all 0.2s ease-out;
}

.dob:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dob:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slidyArowLeft{
  position: absolute;
  display: block;
  font-size: calc(22px + (6 + 6 * 0.7) * ((100vw - 320px)/1000));
  top: 50%;
  transform: translateY(-50%);
  left: 3px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.slidyArowRight{
  position: absolute;
  display: block;
  font-size: calc(22px + (6 + 6 * 0.7) * ((100vw - 320px)/1000));
  top: 50%;
  transform: translateY(-50%);
  right: 3px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.slidyArowLeft:hover,
.slidyArowRight:hover {
  opacity: 1;
}

.curs,
.dobBook,
.boxProb,
.allVar,
.vdeZad,
.boxDay{
  position: relative;
  display: none;
  top:0;
  left: 0;
  width: 100%;
  padding-bottom: 160px;
  animation-name: fadeIn;
  animation-duration: 1s;
  animation-fill-mode: both;
}

.createVar{
  position: fixed;
  display: block;
  max-width: 1000px;
  width: 90%;
  margin:0 auto;
  left:0;
  right:0;
  bottom: 0;
  border-radius: var(--radius);
  font-size: calc(20px + (4 + 4 * 0.7) * ((100vw - 320px)/1000));
  color: #fff;
  background: #b63b4d;
  text-align: center;
  cursor: pointer;
  animation-name: fadeIn;
  animation-duration: 1s;
  animation-fill-mode: both;
  transition: background 0.2s ease;
}
.createVar:hover {
  background: #a03342;
}

.vdeZad,
.boxDay{
  width: 98%;
  display: none;
  animation-name: fadeIn;
  animation-duration: 1s;
  animation-fill-mode: both;
}

@-webkit-keyframes fadeIn {
  0% {opacity: 0;}
  100% {opacity: 1;}
}
@keyframes fadeIn {
  0% {opacity: 0;}
  100% {opacity: 1;}
} 

#bibliotext{
  position: relative;
  display: block;
  top: 40px;
  margin: auto;
  width: calc(50% - 30px);
  outline: 0;
  border: 1px dashed #000;
  border-radius: var(--radius);
  font-size: calc(14px + (2 + 2 * 0.7) * ((100vw - 320px)/1000));
  color: #000;
  background: transparent;
  font-family: inherit;
  padding-left: 15px;
  padding-right: 15px;
  text-align: center;
  transition: border-color 0.2s ease;
}

#bibliotext::placeholder{
  color: #000;
  opacity: 0.5;
  text-align: center;
}

#bibliotext:focus {
  border-color: var(--ssilk-color);
}

#inputfile {
  position: relative;
  display: block;
  top: 70px;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  font-size: calc(14px + (2 + 2 * 0.7) * ((100vw - 320px)/1000));
  color: #000;
  text-align: center;
  left: 0;
  right: 0;
  background-color: transparent;
  margin: auto;
}

input[type=file]::file-selector-button { 
   display: none; 
}
input[type=file]::before {
  content: 'загрузить PDF';
  display: inline-block;
  background: transparent;
  color: #000;
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px dashed #000;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}
input[type=file]:hover::before {
  background: #f5f5f5;
}

.biblionurty{
  position: relative;
  display: block;
  top: 96px;
  margin: auto;
  left: 0;
  right: 0;
  outline: 0;
  font-size: calc(14px + (2 + 2 * 0.7) * ((100vw - 320px)/1000));
  color: #000;
  background: transparent;
  font-family: inherit;
  border: 1px dashed #000;
  border-radius: var(--radius);
  padding: 0 25px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.biblionurty:hover,
.biblionurty:focus {
  border-color: var(--ssilk-color);
}

.btnbibl{
   position: absolute;
  display: block;
  bottom: 0;
  margin: auto;
  left: 0;
  right: 0;
  width: 40%;
  border: 0;
  border-radius: var(--radius);
  outline: 0;
  font-size: calc(16px + (4 + 4 * 0.7) * ((100vw - 320px)/1000));
  color: #000;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}
.btnbibl:hover{
  color: #b63b4d;
}

.asdert{
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: calc(14px + (4 + 4 * 0.7) * ((100vw - 320px)/1000));
  outline: none;
  text-decoration: none;
  color: #000;
  font-weight: normal;
  font-family: inherit;
  left: 3px;
  border-radius: var(--radius);
  text-align: left;
  line-height: 1.2em;
  transition: opacity 0.2s ease;
}
.asdert:hover{
  opacity: 0.7;
}

.gifgif{
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}

.typeF{
  position: relative;
  display: inline-flex;
  align-items: center;
  right: 0;
  top: 0;
  margin-right: 3px;
  font-size: calc(8px + (4 + 4 * 0.7) * ((100vw - 320px)/1000));
  z-index: 2;
  background: #fff;
  border-radius: 5px;
  padding: 3px 4px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.fBtn{
    position: relative;
    font-size: calc(10px + (4 + 4 * 0.7) * ((100vw - 320px)/1000));
    padding: 5px 10px;

    color: var(--text-col);
    text-decoration: none;
    transition: background 0.2s ease;
}
.fBtn:hover{
  background: var(--bg-color);
}