:root {
  --header-height: 72px;
  --footer-height: 64px;
  --max-width: 1080px;
  --text-color: #111;
  --site-main-height: 10px;
  /* --yellow-gradient: linear-gradient(90deg, #FFD700, #FFC107);
  --black-gradient: linear-gradient(90deg, #0d0d0d, #1a1a1a); */

  --yellow-gradient: #FFC107;
  --black-gradient: #0d0d0d;

  --line-height:  2px solid #fff;
}


@font-face {
  font-family: 'LMTitle-Demibold';
  src: url('../_fonts/LMTitle-Demibold.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

*{box-sizing:border-box;margin:0;padding:0}
html,body,#root{height:100%}
body{
  margin:0;
  font-family: 'LMTitle-Demibold';
  color:var(--text-color);
  /* background-image: url('../_img/bg.webp'); */
  background-size: 100% auto;
  background-position: center;
  display:flex;
  flex-direction:column;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  will-change: background-position;
}

.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 200vh;
  background-image: url('../_img/bg.webp');
  background-size: cover;
  z-index: -1;
}

a{
    cursor: pointer;
    text-decoration: none;
}

.page{
  width:100%;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

/* header fixed */
.site_header{
  position:fixed;
  top:0; left:0; right:0;
  height:var(--header-height);
  display:flex;
  align-items:center;
  z-index:40;
  background: var(--black-gradient);
  border-bottom:1px solid rgba(255,255,255,0.08);
  box-shadow:0 2px 8px rgba(0,0,0,0.35);
  color:#fff;
}

.header_inner{
  width:100%;
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.logo
{
	width: 200px;
	transform:translate(-60px, 10px);
}

/* brand */


/* nav */
.site_nav {
  display: flex;
  gap: 16px;
  align-items: center;
  position: relative;
}

.nav_item {
  position: relative;
}

.nav_link {
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 16px;
  transition: all .25s ease;
  display: inline-block;
  font-weight: bold;
}

.nav_link:hover {
  /* background: rgba(255,255,255,0.18); */
  transform: translateY(-2px);
}

.submenu {
  position: absolute;
  top: 120%; /* чуть ниже ссылки */
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(0,0,0,0.85);
  padding: 10px 0;
  border-radius: 10px;
  min-width: 180px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 50;
}

/* стрелочка вверх */
.submenu::before {
  content: "";
  position: absolute;
  top: -6px; /* чуть выше блока */
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent rgba(0,0,0,0.85) transparent;
}

/* плавное появление при наведении */
.nav_item:hover .submenu {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ссылки внутри остаются прежними */
.submenu a {
  display: block;
  padding: 8px 20px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  transition: background .3s, color .3s;
}

.submenu a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}


/* показываем submenu при наведении */
.nav_item:hover .submenu {
  display: block;
}


/* main content spacing to avoid header overlap */
.site_main{
  margin-top: calc(var(--header-height));
  padding-bottom: calc(var(--footer-height) + 40px);
  flex: 1;

  background: linear-gradient(90deg, #0d0d0dc5, #1a1a1ac5);
}

/* hero */
.hero{
  width:100%;
  max-width:1100px;
  padding:60px 24px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.hero_heading{
  margin:0;
  font-size:64px;
  font-weight:800;
  color:#fff;
  /* backdrop-filter:blur(12px) saturate(160%);
  -webkit-backdrop-filter:blur(12px) saturate(160%); */
  background:rgba(0,0,0,0.35);
  padding:28px 48px;
  border-radius:20px;
  box-shadow:0 8px 30px rgba(0,0,0,0.55);
  text-align:center;
  letter-spacing:-0.5px;
}

.site_footer{
  margin-top:auto;
  width:100%;
  padding:30px 0;
  background:#0d0d0d;
  border-top:1px solid rgba(255,255,255,0.1);
  text-align:center;
  color:rgba(255,255,255,0.85);
  font-size:14px;
  letter-spacing:.2px;
}

.footer_inner{
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
}

.footer_logo img{
  max-height:40px;
  margin-bottom:15px;
}

.footer_nav{
  margin:15px 0;
}

.footer_nav a{
  margin:0 10px;
  color:rgba(255,255,255,0.85);
  text-decoration:none;
  transition:.3s;
}

.footer_nav a:hover{
  color:#fff;
}

.footer_socials{
  margin:15px 0;
}

.footer_socials a{
  display:inline-block;
  margin:0 8px;
  color:rgba(255,255,255,0.85);
  font-weight:600;
  text-decoration:none;
  transition:.3s;
}

.footer_socials a:hover{
  color:#fff;
}

.footer_text{
  margin-top:20px;
  font-size:13px;
  color:rgba(255,255,255,0.65);
}


/* responsive tweaks */
@media (max-width:1280px){
  .header_inner{padding:0 14px}
  .site_nav{display:none}
  .hero_heading{font-size:36px;padding:20px 28px}
}

/* Owl Carousel section */
.carousel_section{
  width:100%;
  margin:0;
}

.carousel_item{
  width:100%;
  height:100%;
}


.carousel_item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:brightness(0.8);
  border-radius: 15px;
}

.owl-carousel .owl-item {
  position: relative;
  transition: transform 1.5s ease;
  height: 200px;
}

@media (max-width: 479px) {
  .owl-carousel .owl-item {
    height: 100px;
  }
}

@media (min-width: 480px) and (max-width: 719px) {
  .owl-carousel .owl-item {
    height: 120px;
  }
}

@media (min-width: 720px) and (max-width: 1023px) {
  .owl-carousel .owl-item {
    height: 140px;
  }
}

@media (min-width: 1024px) {
  .owl-carousel .owl-item {
    height: 150px;
  }
}

section{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:40px 0px;
  max-width:var(--max-width);
}

@media (max-width:768px){
  .main-section{
    padding: 40px 0;
  }
}

.block_container{
  width: 100%;
  background: rgba(19, 28, 32, 0.5);
  /* backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%); */
  border-radius: 0px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
}

.block_header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  justify-content: center;
  padding:14px 18px;
  background: var(--yellow-gradient);
  border-bottom:1px solid rgba(255,255,255,0.08);
}

.block_title{
  font-size:32px;
  font-weight:500;
  color: #131d20;
      text-align: center;
}

.chat_container{
  width:100%;
  /* max-width:500px; */
  background:rgba(0,0,0,0.65);
  /* backdrop-filter:blur(12px) saturate(160%);
  -webkit-backdrop-filter:blur(12px) saturate(160%); */
  border-radius:18px;
  box-shadow:0 8px 28px rgba(0,0,0,0.6);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  color:#fff;
}

.chat_header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 18px;
  background:var(--black-gradient);
  border-bottom:1px solid rgba(255,255,255,0.08);
}

.chat_title{
  font-size:16px;
  font-weight:600;
}

.chat_close{
  background:none;
  border:none;
  color:rgba(255,255,255,0.8);
  font-size:22px;
  cursor:pointer;
  transition:.3s;
}



.chat_close:hover{
  color:#fff;
  transform:scale(1.2);
}

.chat_messages {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 320px;
  background: rgba(20, 20, 20, 0.8);
  color: #f5f5f5;
  backdrop-filter: blur(8px);

  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

/* Chrome/Edge/Safari */
.chat_messages::-webkit-scrollbar {
  width: 8px;
}

.chat_messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat_messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  backdrop-filter: blur(4px);
  transition: background 0.3s ease;
}

.chat_messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}


.message{
  padding:8px 12px;
  border-radius:12px;
  font-size:14px;
  line-height:1.4;
  background:rgba(255,255,255,0.08);
  word-wrap:break-word;
  width:fit-content;
  max-width:85%;
}

.message-me{
  background: linear-gradient(135deg,#ffcc0021,#ffb30082);
  align-self: flex-end;
}

.nickname{
  font-weight:600;
  color:#ffcc00;
  margin-right:6px;
}

.timestamp{
  display:inline-block;
  font-size:11px;
  color:rgba(255,255,255,0.5);
  vertical-align:bottom;
}

.timestamp-cont{
  display: flex;
  justify-content: end;
  margin-top: 11px;
}

.chat_input_area{
  display:flex;
  border-top:1px solid rgba(255,255,255,0.08);
  background:rgba(0,0,0,0.4);
  padding:10px;
}

.chat_input{
  flex:1;
  padding:10px 14px;
  border:none;
  /* border-radius:999px; */
  outline:none;
  font-size:14px;
  background:rgba(255,255,255,0.08);
  color:#fff;
}

.chat_input::placeholder{
  color:rgba(255,255,255,0.5);
}

.chat_send{
  margin-left:10px;
  width:42px;
  height:42px;
  border-radius:50%;
  border:none;
  cursor:pointer;
  background:linear-gradient(135deg,#ffcc00,#ff8800);
  color:#111;
  font-size:18px;
  font-weight:600;
  transition:.3s;
  box-shadow:0 2px 6px rgba(0,0,0,0.4);
}

.chat_send:hover{
  transform:translateY(-2px);
}

.popup_overlay{
  position:fixed;
  top:0; left:0; right:0; bottom:0;
  display:flex;
  justify-content:center;
  align-items:center;
  background:rgba(0,0,0,0.55);
  /* backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px); */
  z-index:100;

  opacity:0;
  pointer-events:none;
  transition: opacity 0.3s ease;
}

.popup_overlay.show{
  opacity:1;
  pointer-events:auto;
}

.popup_content{
  background:rgba(0,0,0,0.75);
  /* backdrop-filter:blur(12px) saturate(160%);
  -webkit-backdrop-filter:blur(12px) saturate(160%); */
  /* padding:20px 20px; */
  border-radius:16px;
  box-shadow:0 8px 28px rgba(0,0,0,0.6);
  width:auto;
  /* max-width:360px; */
  text-align:center;
  color:#fff;

  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.popup_overlay.show .popup_content{
  transform: scale(1);
}

.popup_title{
  margin-bottom:30px;
  font-size:32px;
  font-weight:600;
}

.popup_input{
  width:100%;
  padding:12px 14px;
  border:none;
  border-radius:999px;
  outline:none;
  font-size:14px;
  background:rgba(255,255,255,0.08);
  color:#fff;
  margin-bottom:18px;
}

.popup_input::placeholder{
  color:rgba(255,255,255,0.5);
}

.popup_btn{
  width:100%;
  padding:12px;
  border:none;
  border-radius:999px;
  background:var(--yellow-gradient);
  color:#111;
  font-weight:600;
  font-size:14px;
  cursor:pointer;
  transition:.3s;
  box-shadow:0 4px 10px rgba(0,0,0,0.4);
}

.popup_btn:hover{
  transform:translateY(-2px);
}

.mobile_menu {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--black-gradient);
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  z-index: 150;
  height: calc(100vh - 60px);

}

.mobile_menu_inner{
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  text-align: center;
  gap: 25px;
}

.menu_section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu_title {
  font-weight: bold;
  font-size: 16px;
  color: #fff;
  margin-bottom: 4px;
}

.mobile_menu a {
  font-weight: bold;
  font-size: 22px;
  color: #fff;
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

.mobile_menu a:hover {
    font-size: 24px;
    color: #fcc200  !important;
}

.mobile_menu a:hover {
  color: #fff;
}

.burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}
.burger span {
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* адаптив */
@media (max-width: 1280px) {
  .site_nav {
    display: none;
  }
  .burger {
    display: flex;
  }
}

.block_content{
    padding: 25px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.content{
    display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.main-block-header{
	text-align: center;
    color: #ffffff;
    font-size: 72px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -1.8px;
    background-position: center center;
    border-color: transparent;
    border-style: solid;
}

.main-block-text{
    color: #ffffff;
    font-size: 20px;
    line-height: 1.55;
    font-weight: 400;
    background-position: center center;
    border-color: transparent;
    border-style: solid;
}

@media (max-width: 768px) {
  .main-block-header{
    font-size: 10vw;
  }

  .main-block-text {
    font-size: 4vw;
  }
}

.card-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: calc(4 * 230px + 3 * 20px); /* ширина ряда: 4 карточки + 3 промежутка */
  margin: 0 auto;
}

.card-block > div {
  flex: 0 0 230px;
}

.card-item {
  background: var(--yellow-gradient);
  border-radius: 20px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  font-size: 20px;
  font-weight: 400;
  color: #131d20;
}

@media (max-width: 1020px) {
  .card-block {
    grid-template-columns: repeat(2, 1fr); /* два в ряд */
  }
}

@media (max-width: 480px) {
  .card-block {
    grid-template-columns: 1fr; /* один в ряд */
  }
}



.card-number{
    font-size: 65px;
}

.image-section {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

h2
{
	color:#FFC107;

}


.image-btn {
  position: relative;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  height: 300px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 768px) {
  .image-section {
    flex-direction: column;
  }

  .image-btn {
    width: 90vw;
    height: 55vw;
  }

}

.image-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 30px;
  font-weight: 400;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  pointer-events: none; /* текст не мешает клику */
}

.image-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.image-btn:active {
  transform: scale(0.95);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.image-number{
  font-size: 100px;
}

.carousel_section {
  max-width: none;
  height: 360px !important;
  padding:40px 0px !important;
}

.marathon {
  overflow: hidden;
  width: 100%;
}

.marathon__inner {
  display: flex;
  white-space: nowrap;
}

.marathon__slide {
  flex: 0 0 auto;
  width: 360px;
  height: 240px;
  margin-right: 20px;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
}

.marathon__slide:hover {
  transform: perspective(600px) rotateY(0deg) rotateX(16deg) scale(0.95);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.marathon__slide img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0px;
}

.marathon_popup_close {
    top: 12px;
  right: 12px;
  background: #f0f0f0;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-align: center;
  font-weight: 700;
  padding-bottom: 3px;
}

.marathon_popup_close:hover {
    background: #fcc200;
    color: #000;
}

.marathon_popup_content {
  width: 50vw;
  height: 30vw;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 0px;
  background: #000;
}

@media (max-width: 1500px) {
  .marathon_popup_content {
       width: 100vw;
       height: 75vw;
	     /* padding: 0; */

  }
}

@media (max-width: 768px) {
  .marathon_popup_content {
      width: 100vw;
      height: 75vw;
      /* padding: 0; */
  }
}


.marathon_popup_video_container {
  width: 100%;
  height: 80%;
  position: relative;
  overflow: hidden;
  border-radius: 0px
}

.marathon_popup_video_container video {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* сохраняем пропорции, растягиваем */
  display: block;
}

.marathon_popup_video_container img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
}

.marathon_popup_header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 20px 20px 0 20px;

}

.marathon_popup_title{
  margin: 0;
}

@media (max-width: 768px) {
  .marathon_popup_title {
    font-size: 5vw;
  }

  .marathon_popup_header{
  margin-bottom: 3vw;
}
}

.block_text{
  text-align: center;
}

.documnet_line{
  width: 100%;
  height: 1px;
  background-color: #131d20;
}

.document_item{
  /* background: linear-gradient(90deg,#fcc200,#fdab00);; */
  border-radius: 20px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  overflow: hidden;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.document_item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.document_item:active {
  transform: scale(0.95);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.block_documents_container{
  display: grid;
  grid-template-columns: repeat(4, 230px);
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

@media (max-width: 1020px) {
  .block_documents_container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .block_documents_container {
    grid-template-columns: 1fr;
  }
}

.document_item_title{
    padding: 0 10px;
	text-align: center;

}

.document_item_header{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  background: var(--yellow-gradient);
  color: #131d20;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  width: 100%;
  height: 40px;
}

.document_content{
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
background: var(--black-gradient);
}

.main-block-video-container video {
    width: 100%;
    height: auto;
    border-radius: 0px;
    display: block;
    object-fit: cover;
}



.text_popup_content {
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  background: rgba(0,0,0,0.85);
  border-radius: 16px;
  padding: 20px;
  color: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.text_popup_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.text_popup_close {
  background: #f0f0f0;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.text_popup_close:hover {
  background: #fcc200;
  color: #000;
}

.text_popup_body {
  overflow-y: auto;
  flex: 1;
  padding-right: 10px;
  line-height: 1.6;
}

.text_popup_body::-webkit-scrollbar {
  width: 8px;
}
.text_popup_body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 10px;
}
.text_popup_body::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.6);
}

.swiper-button-next, .swiper-button-prev{
    background-color: var(--yellow-gradient);
    border-radius: 99999px;
    width: calc(var(--swiper-navigation-size) / 27 * 27);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: cacl(var(--swiper-navigation-size) / 2);
    font-weight: 800;
    color: black;
}

.bracket {
  display: flex;
  gap: 60px;
  justify-content: flex-start;
  padding: 40px 20px;
  width: fit-content;
}
.bracket.add {
  gap: 10px;
}

.round {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.match {
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 240px;
  margin: 4px 0;
}

.match.final {
  background: var(--yellow-gradient);
  font-weight: bold;
  color: #000;
  justify-content: center;
}

.match.third {
  background: #cd7f32;
  font-weight: bold;
  color: #000;
  justify-content: center;
}

.match.empty {
  background: transparent;
  border: 1px dashed rgba(255,255,255,0.3);
  color: #aaa;
}

.score {
  font-weight: bold;
  margin-left: 10px;
}

.spacer {
  height: 35px;
}

.spacer.big {
  height: 40px;
}

.spacer.large {
  height: 100px;
}

.lines-cont{
  min-width: 60px;
  display: flex;
  flex-direction: column;
}

.line-element {
  width: 50%;
  height: 100%;
}

.lines-par{
  width: 100%;
  height: 30px;
  display: flex;
}