
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0d0d2b;
    color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 60px;
}

.container-tab {
    display: flex;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 60px;
    justify-content: center;
}

.hero {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    padding-bottom: 180px;
    transition: background-image 0.5s ease-in-out;
}

.header {
    padding: 60px 0px 0;
}

.logo {
    width: 127px;
}

.main-content {
    text-align: center;
    padding-top: 0px; 
    padding-bottom: 10vh;
}

.main-content .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-title-img {
    display: block;
    max-width: 740px;
    width: 100%; 
    margin: 0 auto; 
}

.subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    margin-top: 20px;
    max-width: 450px;
}

.subtitle .accent-text {
    font-weight: 800;
}

.register-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px 40px;
    width: 184px;
    height: 84px;
    background: radial-gradient(73.44% 93.75% at 50% 6.25%, #FFFBB1 0%, #FFF200 100%), #F5F5F5;
    border-radius: 43px;
    border: none;
    cursor: pointer;
    margin-top: 40px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.register-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 242, 0, 0.5);
}


.mobile-btn {
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px 40px;
    width: 330px;
    height: 60px;
    background: radial-gradient(73.44% 93.75% at 50% 6.25%, #FFFBB1 0%, #FFF200 100%), #F5F5F5;
    border-radius: 43px;
    border: none;
    cursor: pointer;
    margin-top: 40px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 242, 0, 0.5);
}

.team-switcher-wrapper {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
}

.team-switcher {
    max-width: 687px;
    height: 180px;
    margin: 0 auto;
    background: url('../img/comand.png') no-repeat center center;
    background-size: contain;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Стили для стрелок */
.arrow {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0 25px;
    z-index: 10;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.arrow img {
    width: 60px;
    height: 60px;
}

.teams-viewport {
    width: 100%;
    height: 150px;
    overflow: hidden;
    margin-bottom: 15px;
    -webkit-mask-image: linear-gradient(to right, transparent, black 25%, black 75%, transparent);
    mask-image: linear-gradient(to right, transparent, black 25%, black 75%, transparent);
    position: relative;
}

.teams-container {
    display: flex;
    align-items: center;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.team-item {
    flex-shrink: 0;
    width: 156px;
    padding: 0 15px;
    cursor: pointer;
    opacity: 0.6;
    transform: scale(0.8);
    transition: all 0.5s ease-in-out;
}

.team-item img {
    width: 126px;
    height: 124px;
}


.team-item.active {
    opacity: 1;
    transform: scale(1);
}

.matches-section {
    display: flex;
    padding: 60px 0;
    background: url('../img/bg.webp') no-repeat center center;
    background-size: cover;
    flex-direction: column;
    align-items: center;
}

.container-tab {
    max-width: 1024px; 
    margin: 0 auto;   
    padding: 0 20px;  
}

.matches-table {
    background: radial-gradient(100% 100% at 50.05% 0%, rgba(193, 215, 255, 0.17) 0%, rgba(22, 58, 125, 0.17) 100%);
    border: 3px solid #FFF200;
    -webkit-backdrop-filter: blur(100px); /* Для Safari */
    backdrop-filter: blur(100px);
    border-radius: 28px;
    padding: 20px 0;
}

.matches-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 100%;
    margin-top: 20px;
    letter-spacing: 0%;
    margin-bottom: 30px;
    text-align: center;
    color: #fff;
}

.matches-list {
    list-style: none;
}

.match-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 100%;
    letter-spacing: 0%;
    transition: background-color 0.2s ease-in-out;
    position: relative; 
    cursor: pointer;
    z-index: 1; 
}

.match-item:hover {
    background-color: #0a102c; 
}

.match-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 0;
}

.match-time {
    color: #ffffff;
    margin-right: 10px;
    white-space: nowrap;
}



.team-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 10px;
    gap: 8px;
    width: 281px;
    height: 36px;
    background: #262B3F;
    border-radius: 8px;
    flex-shrink: 0;
}

.team-info img {
    width: 24px;
    height: 24px;
}

.team-name {
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-info-right {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.odds {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-grow: 1;
}

.odd-btn {
    width: 64px;
    height: 36px;
    background: #535770;
    border: none;
    color: #fff;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 13px;
    transition: background-color 0.2s ease;
    flex-shrink: 0; 
}

.odd-btn:first-child {
    border-radius: 8px 0 0 8px;
}

.odd-btn:last-child {
    border-radius: 0 8px 8px 0;
}

.odd-btn:hover {
    background-color: #6b708d;
}

/* Стили для модального окна */
/* ========== MODAL ========== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal.is-visible { display: flex; }
body.modal-open { overflow: hidden; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
}

/* Карточка */
.modal-content{
  position: relative;
  z-index: 1;
  width: min(90vw, 540px);
  border-radius: 28px;
  padding: 32px 28px 26px;
  background: #0b0f2f url('../img/popupbg.jpg') center/cover no-repeat;
  border: 2px solid #7e84ff;          /* ← простая обводка */
  box-shadow: 0 25px 80px rgba(0,0,0,.55);
  isolation: isolate;
}

/* Заголовок */
.modal-title{
  font-weight: 800;
  font-size: 28px;
  line-height: 1.15;
  text-align: center;
  color: #fff;
  margin: 6px 0 20px;
}

/* Кнопка закрытия — кружок 50×50 с иконкой */
.modal-close{
  position: absolute;
  top: -25px;
  right: -25px;
  width: 50px; height: 50px;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  background: #fff url('../img/close.png') center/50px 50px no-repeat;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}


/* Адаптив */
@media (max-width: 420px){
  .modal-content{ padding: 26px 18px 22px; }
  .modal-title{ font-size: 24px; }
  .modal-close{ top: -20px; right: -20px; width: 44px; height: 44px; }
}



@media (max-width: 1100px) {
.team-info {
    width: 148px;
}

.odd-btn {
    width: 60px;
}

.match-item {
    padding: 15px 20px;
}
}

.teams-row { display: contents; }

@media (max-width: 768px) {

    .mobile-btn {
        display: flex;
    }


    .header {
    padding: 40px 0px 0;
}

    .container {
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center; 
}

  .container-tab { padding: 0 16px; }

  .matches-table {
    border-radius: 24px;
    padding: 20px 0 8px;
  }

  .matches-title {
    font-size: 28px;
    margin: 6px 0 20px;
  }

  .match-item {
    display: block;
    padding: 16px 16px 20px;
    background: transparent;
    gap: 0;
  }

  .match-item:not(:last-child)::after {
    height: 1px;
    background: rgba(255,255,255,.15);
  }

  .match-time {
    display: block;
    margin: 0 0 10px 2px;
    font-size: 16px;
    opacity: .95;
  }

  .teams-row { 
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 14px;
    position: relative;
    margin-left: 6px;
    margin-right: 6px;
  }
  .teams-row::after { content: none !important; }

  .teams-row > .team-info       { grid-column: 1; min-width: 0; margin-left: -8px; margin-right: -8px;}
  .teams-row > .team-info-right { grid-column: 3; min-width: 0; }

 
  .vs-bubble{
    grid-column: 2;
    justify-self: center;
    align-self: center;
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 999px;
    background: #141b3e;
    font-weight: 600;
    font-size: 10px;
    line-height: 1;
    pointer-events: none;
    z-index: 10;
  }


  .team-info,
  .team-info-right{
    flex: 1 1 0;
    height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    width: auto;       
    background: #262B3F;
  }

  .team-info-right{
    flex-direction: row;
    justify-content: flex-start;
  }

  .team-info img,
  .team-info-right img{
    width: 22px;
    height: 22px;
  }

  .team-name{
    font-size: 14px;
  }

  .odds{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
  }

  .odd-btn{
    width: 100%;
    height: 44px;
    background: #535770;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
  }

  .odd-btn::before{
    content: attr(data-label);
    position: absolute;
    left: auto; 
    top: 5px;
    font-size: 10px;
    font-weight: 500;
    opacity: .75;
  }
  .team-switcher {
    max-width: 520px;
    height: auto;
}
.team-item img {
    width: 90px;
    height: 90px;
}

.team-item {
    width: 122px;
}
}

@media (max-width: 560px) {
    .team-switcher {
    max-width: 388px;
    height: auto;
}
.team-item img {
    width: 76px;
    height: 76px;
}

.team-item {
    width: 112px;
            margin-left: -10px;
        margin-right: -10px;
}
.teams-viewport {
    width: 260px;
    height: auto;
    margin-bottom: 10px;
}

.arrow img {
    width: 44px;
    height: 44px;
}
.arrow {
    margin-bottom: 10px;
}
}


@media (max-width: 420px) {

  .team-switcher {
    max-width: 340px;
    height: 82px;
    }
    
    .team-item img {
    width: 58px;
    height: 58px;
}

.team-item {
    flex-shrink: 0;
    width: 92px;
}
.arrow {

    margin-bottom: 8px;

}
.arrow img {
    width: 30px;
    height: 30px;
}

.teams-viewport {
    width: 260px;
    height: auto;
}
}


