@font-face {
  font-family: "ABCM";
  src: url("./font/awesome-ABCMonumentGroteskCyrillic-Regular-Trial.woff")
    format("woff");
  font-weight: normal; /* Насыщенность (normal, bold, 700 и т. д.) */
  font-style: normal; /* Стиль (normal, italic) */
  font-display: swap;
}
@font-face {
  font-family: "ABCA";
  src: url("./font/ABCAsfalt-CompressedLight-Trial.woff") format("woff");
  font-weight: normal; /* Насыщенность (normal, bold, 700 и т. д.) */
  font-style: normal; /* Стиль (normal, italic) */
  font-display: swap;
}

body {
  width: 100%;
  padding: 0px;
  margin: 0px;
  font-family: "ABCM", sans-serif;
}
.head {
  width: 50vw;
  height: 150vh;
  display: flex;
}

.headcat {
  height: 100px;
}
.head .hblock {
  width: 50%;
  height: 100vh;
}
.head .hback {
  background-image: url("../img/b.png");
  background-size: cover;
  background-repeat: no-repeat;
  width: 100vw;
  height: 150vh;
  cursor: pointer;
}
.menu {
  display: table;
}
.menu ul {
  display: table-row;
}
.menu li {
  display: table-cell;
}
.menu ul li:hover,
.menu a:hover {
  text-decoration: underline;
}
.menu li a {
  display: block;
  color: #1e1e1e;
  text-align: left;
  padding-right: 24px;
  text-decoration: none;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}
.hlogo img {
  cursor: pointer;
}

.htop {
  /*display: flex;
  justify-content: space-between;*/
  padding: 32px;
}
.hleft {
  display: flex;
}

.hmain {
  /*
  padding: 32px;
  margin-top: 75vh;
  height: 200px;
  overflow: hidden;
  */

  position: absolute;
  bottom: 10px;
  padding: 32px;
  overflow: hidden;
}
.htitle {
  font-size: 40px;
  color: #3c3c3c;
  font-weight: 300;
  margin-bottom: 22px;
  font-family: "ABCA", sans-serif;
}

.hdesc {
  font-size: 32px;
  color: #1e1e1e;
  font-weight: 400;
}

.main {
  padding: 16px;
  display: flex;
  width: calc(100% - 32px);
  min-height: 100vh;
  overflow: hidden;
  /*position: relative;*/
  z-index: 2;
}

.mleft {
  width: 65%;
}

.mright {
  margin-left: 2%;
  width: 33%;
}

.fblock {
  margin-bottom: 16px;
  border-bottom: 1px solid #d8d8d8;
  cursor: pointer;
}

.mright .fblock {
  border-bottom: 1px solid #d8d8d8;
}

.mright .fdesc {
  padding-bottom: 16px;
}

.fimg {
  width: 100%;
}

.fimg img {
  width: 100%;
}

.ftitle {
  font-size: 40px;
  color: #3c3c3c;
  font-weight: 300;
  margin-bottom: 22px;
  margin-top: 22px;
  font-family: "ABCA", sans-serif;
}

.fdesc {
  font-size: 32px;
  color: #1e1e1e;
  font-weight: 400;
  padding-bottom: 16px;
}

.mright .fdesc {
  font-size: 23px;
}

.mright .ftitle {
  font-size: 40px;
}

.footer {
  background: #e2fd34;
  width: 100%;
}

.fcontainer {
  padding: 16px;
}

.ftop {
  display: flex;
  justify-content: space-between;
}

.fmail a {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-decoration: none;
  color: #3c3c3c;
}

.fpmenu {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  margin-bottom: 15px;
}

.fpmenu a {
  font-size: 177px;
  font-weight: 300;
  text-decoration: none;
  color: #3c3c3c;
  font-family: "ABCA", sans-serif;
  letter-spacing: 0px;
  line-height: 100%;
}

.fplogo {
  text-align: center;
  font-family: "ABCA", sans-serif;
  font-size: 38px;
  font-weight: 300;
}
/** category */

.category .main {
  display: block;
  text-align: center;
  margin-top: 64px;
}

.category .head .hblock,
.category .head {
  width: 100%;
  height: 1vh !important;
}

.chtitle {
  font-size: 40px;
  font-weight: 300;
  text-decoration: none;
  color: #3c3c3c;
  font-family: "ABCA", sans-serif;
  letter-spacing: 3%;
  line-height: 100%;
  margin-bottom: 8px;
}

.chdesc {
  font-size: 32px;
  font-weight: 400;
  text-decoration: none;
  color: #3c3c3c;
  font-family: "ABCM", sans-serif;
  letter-spacing: 0%;
  line-height: 100%;
}

.chdesc::first-letter {
  text-transform: uppercase;
}

.cheader {
  margin-bottom: 38px;
}

.clist {
  width: 100%;
  min-height: 100px;
  display: flex;
  flex-wrap: wrap;
}
.ccol4 {
  width: calc(25% - 24px);
  margin-right: 12px;
  margin-left: 12px;
  max-height: 724px;
  text-align: left;
  overflow: hidden;
  padding-bottom: 16px;
  cursor: pointer;
}

.ccol6 {
  width: calc(50% - 24px);
  margin-right: 12px;
  margin-left: 12px;
  max-height: 724px;
  text-align: left;
  overflow: hidden;
  padding-bottom: 16px;
  cursor: pointer;
}

.ccimg {
  max-height: 576px;
  overflow: hidden;
}

.ccimg img {
  width: 100%;
}

.cchead {
  font-size: 32px;
  font-weight: 300;
  text-decoration: none;
  color: #1e1e1e;
  font-family: "ABCA", sans-serif;
  letter-spacing: 3%;
  line-height: 100%;
  margin-top: 16px;
}

.ccdesc {
  font-size: 25px;
  font-weight: 400;
  text-decoration: none;
  color: #3c3c3c;
  font-family: "ABCM", sans-serif;
  letter-spacing: 0%;
  line-height: 100%;
  margin-top: 16px;
  border-bottom: 1px solid #d8d8d8;
  padding-bottom: 16px;
}

/** letter */

.letter .main {
  display: block;
  text-align: center;
  margin-top: 64px;
}

.ltitle {
  font-size: 40px;
  font-weight: 300;
  text-decoration: none;
  color: #3c3c3c;
  font-family: "ABCA", sans-serif;
  letter-spacing: 3%;
  line-height: 100%;
  margin-bottom: 8px;
}

.ldesc {
  font-size: 32px;
  font-weight: 400;
  text-decoration: none;
  color: #3c3c3c;
  font-family: "ABCM", sans-serif;
  letter-spacing: 0%;
  line-height: 100%;
}

.lheader {
  margin-bottom: 38px;
}

.lbigimg {
  max-width: 956px;
  margin: auto;
  margin-bottom: 32px;
}

.lbigimg img {
  width: 100%;
}

.ltextv1 {
  max-width: 468px;
  margin: auto;
  font-size: 16px;
  font-weight: 400;
  color: #1e1e1e;
  font-family: "ABCM", sans-serif;
  letter-spacing: 0%;
  line-height: 24px;
  text-align: left;
  margin-bottom: 32px;
}

.lhv1 {
  max-width: 468px;
  margin: auto;
  font-size: 32px;
  font-weight: 400;
  color: #1e1e1e;
  font-family: "ABCM", sans-serif;
  letter-spacing: 0%;
  line-height: 100%;
  text-align: left;
  margin-bottom: 32px;
}

.lbigimgv2 {
  margin-bottom: 32px;
}

.lbigimgv2 img {
  width: 100%;
}

.lslider {
  margin-bottom: 32px;
  width: 100%;
  max-height: 520px;
  display: flex;
  overflow: hidden;
}

.lslider img {
  width: calc(25% - 16px);
  margin-right: 16px;
  overflow: hidden;
  height: 100%;
}

.hwrapper {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

/**
style for anime
*/
@media (min-width: 911px) {
  .htop {
    position: fixed;
    width: calc(50% - 65px);
    z-index: 999999;
  }
  .topm {
    position: fixed;
    margin-left: 50%;
  }
}

.pads {
  position: absolute;
  height: 150vh !important;
}

.header_130 {
  margin-top: calc(150vh - 200px + 28px);
}

.fixmenuscrol {
  width: calc(100% - 65px);
  margin-left: -50%;
  background-color: #ffffff;
  height: 25px;
  display: flex;
  justify-content: end;
  animation: 0.2s show ease;
}

@keyframes show {
  from {
    background-color: #ffffff00;
  }
  to {
    background-color: #ffffff;
  }
}

.fixmenuscrol .hwrapper {
  width: calc(50% - 32px);
}

.head404 {
  font-size: 16px;
  color: #1e1e1e;
  font-weight: 400;
  line-height: 24px;
  font-family: "ABCM", sans-serif;
  margin-top: 100px;
}
.body404 {
  font-size: 177px;
  color: #3c3c3c;
  font-weight: 300;
  line-height: 100%;
  font-family: "ABCA", sans-serif;
  margin-top: 30px;
}

.minitexti {
  font-size: 16px;
  color: #8e8e8e;
  font-weight: 400;
  line-height: 24px;
  font-family: "ABCM", sans-serif;
  max-width: 468px;
  margin: auto;
  margin-top: 5px;
  text-align: left;
}

/* sliders */

.slider-container {
  width: calc(100% + 64px);
  margin-left: -32px;
  position: relative;
  overflow: hidden;
  min-width: 960px;
  margin-bottom: 32px;
}

.slider-wrapper {
  display: flex;
  height: 572px;
  transition: transform 0.5s ease;
}

.slide {
  flex: 0 0 23%;
  height: 100%;
  margin-right: 1.75%; /* Изменил отступ для сохранения общего размера */
  position: relative;
}

.slide:last-child {
  margin-right: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  display: none;
}

.slider-nav button {
  background: rgba(255, 255, 255, 0.5);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.slider-nav button:hover {
  background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 960px) {
  .slider-container {
    width: 960px;
    margin-left: calc(50% - 480px);
  }
}

.letter .topm {
  z-index: 9;
}
/*

.marquee-container {
  margin-bottom: 30px;
  -webkit-overflow-scrolling: touch;
}

.marquee {
  width: calc(100% + 64px);
  margin-left: -32px;
  overflow: hidden;
  position: relative;
  cursor: grab;
  padding: 10px 0;
  touch-action: pan-y;
}

.marquee.grabbing {
  cursor: grabbing;
}

.marquee-content {
  display: flex;
  width: max-content;
  user-select: none;
  will-change: transform;
}

.marquee img {
  height: 580px;
  margin-right: 20px;
  pointer-events: none;
  object-fit: cover;
  flex-shrink: 0;
}
*/

.marquee-wrap {
  margin: 40px 0px 40px 0px;
}
.marquee {
  width: calc(100vw + 64px);
  height: 580px;
  margin: auto;
  position: relative;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  margin-left: -32px;
}
.marquee:active {
  cursor: grabbing;
}
.track {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  height: 580px;
  gap: 20px;
}
.track img {
  height: 580px;
  width: auto;
  flex-shrink: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.track img.loaded {
  opacity: 1;
}
@media (max-width: 960px) {
  .marquee {
    height: 380px !important;
  }
  .track img {
    height: 380px !important;
  }
}

/* Контейнер видео */
.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 24px auto;
  border-radius: 12px;
  overflow: hidden;
  background: #000; /* чтобы видео и зона под ним всегда были тёмные */
}

.video-container video {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.controls-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  transition: opacity 0.25s ease, background 0.25s ease;
  cursor: pointer;
}

.play-button {
  width: 110px;
  height: 110px;
  pointer-events: auto;
}

/* Кнопка звука — по центру над видео на десктопе */
.sound-button-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  justify-content: center;
  width: auto;
}

.sound-button {
  width: 84px;
  height: 84px;
  pointer-events: auto;
}

/* --- Мобильные правки --- */
@media (max-width: 768px) {
  /* На мобильных: позиционируем кнопку звука СНИЗУ и центрируем её как блок под видео.
                 Это исключит сдвиг влево и гарантирует центрирование. */
  .sound-button-container {
    position: static; /* становится частью потока */
    transform: none;
    margin: -75px auto 0; /* отступ сверху от видео */
    width: 100%;
    justify-content: center; /* центрирование */
  }

  /* Делаем фон контейнера видимым до нижней безопасной зоны,
                 чтобы не оставалось "чёрной полосы" системного меню */
  .video-container {
    aspect-ratio: 16/9;
    height: auto;
  }

  /* Небольшое уменьшение размера кнопок для компактности */
  .play-button {
    width: 96px;
    height: 96px;
  }
  .sound-button {
    width: 72px;
    height: 72px;
  }
}
