/*
 Theme Name:   Twenty Twenty-One Child
 Description:  Дочерняя тема для Twenty Twenty-One
 Template:     twentytwentyone
 Version:      1.0.0
*/


body.single-tournaments {
    background-color: #1D1D1B;
    color: #fff;
}


/* Обертка всей секции таблицы (чтобы ограничить ширину) */
.tm-table-section {
    max-width: 100%;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    border-top: 3px solid #0097B3;
    border-left: 3px solid #0097B3;
    border-right: 3px solid #F54FA5;
    border-bottom: 3px solid #F54FA5;
    padding: 50px;
    background: #f8f8f833;
}

/* Общий Grid для заголовка и строк (определяем ширину колонок) */
.tm-front-grid {
    display: grid;
    /* 1.Место | 2.Игрок (занимает всё место) | 3.Очки */
    grid-template-columns: 100px 1fr 100px;
    gap: 15px; /* Отступы между колонками */
    align-items: center;
}

/* --- Заголовок Таблицы --- */
.tm-grid-header {
    margin-bottom: 20px;
}

/* Синие ячейки заголовка */
.tm-header-cell {
    background-color: #0099b2; /* Голубой цвет из рендера */
    padding: 12px 20px;
    border-radius: 8px; /* Скругление, как на рендере */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

/* --- Строки с Данными --- */
.tm-grid-row {
    margin-bottom: 12px; /* Отступы между строками */
}

/* Ячейки строк */
.tm-cell {
    background-color: #2c2c2c; /* Темный фон ячейки из рендера */
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px; /* Скругление */
    font-size: 0.95rem;
    min-height: 50px;
    display: flex;
    align-items: center;
}

/* Специфичное выравнивание текста для ячеек */
.tm-cell-left {
    justify-content: flex-start;
}

.tm-cell-right {
    justify-content: center; /* Очки центрируем, как на рендере */
    font-weight: 400; /* Делаем цифры тоньше */
}

/* Ячейка с номером места */
.tm-rank-cell {
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
}

/* Респонсивность для мобилок */
@media (max-width: 600px) {
    .tm-front-grid {
        grid-template-columns: 60px 1fr 70px; /* Уменьшаем боковые колонки */
        gap: 10px;
    }
    .tm-header-cell, .tm-cell {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
}
.wp-custom-logo .site-header {
    max-width: 1312px !important;
    padding: 0px 15px !important;
}
.site-main {
    padding: 0px !important;
}
.containertabl {
    max-width: 1312px;
    margin: 0 auto;
    padding: 0px 15px;
}
.league-male .site-content {
    background-image: url('/wp-content/uploads/2026/04/malebg-scaled.webp'); 
    background-size: cover; 
    background-position: center top; 
    background-repeat: no-repeat; 
    min-height: 60vh; 
    background-color: #1a1a1a; 
}
.league-male-archive .site-content {
    background-image: url('/wp-content/uploads/2026/04/malebg-scaled.webp'); 
    background-size: cover; 
    background-position: center top; 
    background-repeat: no-repeat; 
    min-height: 60vh; 
    background-color: #1a1a1a; 
}
.league-female .site-content {
    background-image: url('/wp-content/uploads/2026/04/fmalebg-scaled.webp'); 
    background-size: cover; 
    background-position: center top; 
    background-repeat: no-repeat; 
    min-height: 60vh; 
    background-color: #1a1a1a; 
}
.league-female-archive .site-content {
    background-image: url('/wp-content/uploads/2026/04/fmalebg-scaled.webp'); 
    background-size: cover; 
    background-position: center top; 
    background-repeat: no-repeat; 
    min-height: 60vh; 
    background-color: #1a1a1a; 
}
.league-male .entry-header {
    border-bottom: 0px !important;
    padding-bottom: 0px !important;
	text-align: center !important;
    text-transform: uppercase !important;
}
.league-male-archive .entry-header {
    border-bottom: 0px !important;
    padding-bottom: 0px !important;
	text-align: center !important;
    text-transform: uppercase !important;
}
.league-female .entry-header {
    border-bottom: 0px !important;
    padding-bottom: 0px !important;
	text-align: center !important;
    text-transform: uppercase !important;
}
.league-female-archive .entry-header {
    border-bottom: 0px !important;
    padding-bottom: 0px !important;
	text-align: center !important;
    text-transform: uppercase !important;
}
.league-male .tm-grid-header .tm-cell {
    background-color: #0097B3;
}
.league-male-archive .tm-grid-header .tm-cell {
    background-color: #0097B3;
}
.league-female .tm-grid-header .tm-cell {
    background-color: #F54FA5;
}
.league-female-archive .tm-grid-header .tm-cell {
    background-color: #F54FA5;
}
.league-female .tm-table-section {
    border-top: 3px solid #F54FA5;
    border-left: 3px solid #F54FA5;
    border-right: 3px solid #0097B3;
    border-bottom: 3px solid #0097B3;
}
.league-female-archive .tm-table-section {
    border-top: 3px solid #F54FA5;
    border-left: 3px solid #F54FA5;
    border-right: 3px solid #0097B3;
    border-bottom: 3px solid #0097B3;
}

.site-content {
    padding-bottom: 90px !important;
}

/* ==========================================================================
   CUSTOM TOURNAMENT NAVIGATION (TM-NAV) - ULTIMATE VERSION
   ========================================================================== */

/* 1. Общие настройки контейнера */
.tm-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    z-index: 1000;
}

/* 2. Стили для ПК (Desktop - от 992px) */
@media (min-width: 992px) {
    .tm-burger-btn {
        display: none !important;
    }

    .tm-menu-container {
        display: block !important;
    }

    .tm-menu-list {
        display: flex !important;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 35px;
    }

    .tm-menu-list > li {
        position: relative;
        padding-left: 20px;
        display: flex;
        align-items: center;
    }

    /* Маркер-точка: Белая и идеально центрированная */
    .tm-menu-list > li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 6px;
        height: 6px;
        background-color: #ffffff;
        border-radius: 50%;
    }

    .tm-menu-list a {
        text-decoration: none;
        color: #fff;
        font-weight: 600;
        font-size: 14px;
        text-transform: uppercase;
        transition: 0.3s ease;
        line-height: 1;
    }

    .tm-menu-list a:hover {
        color: #009cb4;
    }

    /* Выпадающее меню (Sub-menu) на ПК */
    .tm-menu-list .sub-menu {
        position: absolute;
        top: 100%;
        /* ПРАВКА: Выпадает влево от правого края, чтобы не было скролла */
        right: 0; 
        left: auto;
        
        background: #2b2b2b;
        min-width: 220px;
        list-style: none;
        padding: 15px 0;
        margin: 10px 0 0 0;
        border-radius: 4px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: 0.3s ease;
        box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    }

    .tm-menu-list li:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .tm-menu-list .sub-menu li {
        padding: 8px 20px;
        display: block;
    }

    .tm-menu-list .sub-menu li::before {
        display: none; /* У подпунктов точек нет */
    }

    .tm-menu-list .sub-menu a {
        text-transform: none;
        font-size: 14px;
        color: #ccc;
        display: block;
    }

    .tm-menu-list .sub-menu a:hover {
        color: #fff;
    }
}

/* 3. Стили для Мобильных (Mobile - до 991px) */
@media (max-width: 991px) {
    
    /* Кнопка бургера - ВСЕГДА ПОВЕРХ МЕНЮ */
    .tm-burger-btn {
        display: flex !important;
        align-items: center;
        gap: 30px;
        background: none !important;
        border: none;
        cursor: pointer;
        padding: 10px 0;
        color: #fff;
        position: relative;
        z-index: 10001 !important; /* На 1 выше, чем контейнер меню */
    }

    .tm-burger-inner-box {
        width: 25px;
        height: 18px;
        position: relative;
    }

    .tm-burger-inner, 
    .tm-burger-inner::before, 
    .tm-burger-inner::after {
        width: 25px;
        height: 2px;
        background-color: #fff;
        position: absolute;
        transition: 0.3s;
        border-radius: 2px;
    }

    .tm-burger-inner { top: 50%; transform: translateY(-50%); }
    .tm-burger-inner::before { content: ''; top: -8px; left: 0; }
    .tm-burger-inner::after { content: ''; bottom: -8px; left: 0; }

    .tm-burger-text {
        font-size: 16px;
        font-weight: 700;
        text-transform: uppercase;
        color: #fff;
    }

    /* Анимация Крестика */
    .tm-nav.is-open .tm-burger-inner { background-color: transparent; }
    .tm-nav.is-open .tm-burger-inner::before { transform: rotate(45deg); top: 0; }
    .tm-nav.is-open .tm-burger-inner::after { transform: rotate(-45deg); bottom: 0; }

    /* Полноэкранный мобильный контейнер */
    .tm-menu-container {
        display: none;
        position: fixed; /* Фиксация относительно окна */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #1a1a1a;
        /* Отступ сверху 80px, чтобы не перекрывать кнопку Меню */
        padding: 100px 25px 40px 25px; 
        box-sizing: border-box;
        overflow-y: auto; /* Скроллится только меню */
        z-index: 10000;
    }

    .tm-nav.is-open .tm-menu-container {
        display: block !important;
    }

    .tm-menu-list {
        display: flex !important;
        flex-direction: column;
        list-style: none;
        padding: 0;
        margin: 0;
        gap: 20px;
    }

    .tm-menu-list li::before {
        display: none !important;
    }

    .tm-menu-list a {
        color: #fff;
        font-size: 20px;
        font-weight: 600;
        text-transform: uppercase;
        display: block;
    }

    /* Подменю на мобилке */
    .tm-menu-list .sub-menu {
        display: block !important;
        list-style: none;
        padding: 10px 0 0 20px;
        margin: 0;
    }

    .tm-menu-list .sub-menu a {
        font-size: 16px;
        text-transform: none;
        color: #009cb4;
        padding: 8px 0;
    }
}

/* 4. Вспомогательный класс для блокировки скролла body (добавлять через JS) */
body.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

.singular .entry-title {
    font-size: 74px !important;
}
footer {
    margin: 0px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0px !important;
}
.footerwrap {
    display: flex;
}
.footerleft {
    width: 50%;
    border-top: 3px solid #F54FA5;
	border-bottom: 3px solid #F54FA5;
    border-right: 3px solid #0097B3;
	padding-right: 60px;
	padding-top: 50px;
}
.footerleft img {
    width: 100% !important;
    max-width: 400px !important;
}
.footerleft .site-name {
    max-width: 405px;
    margin-left: auto;
}
.footerleft .footerleftipn {
    max-width: 405px;
    margin-left: auto;
	padding-top: 165px;
}
.footerright {
    width: 50%;
    border-top: 3px solid #0097B3;
	border-bottom: 3px solid #0097B3;
}
.footerrightwrap {
    display: flex;
    align-items: end;
    gap: 80px;
    padding-left: 60px;
    padding-top: 50px;
    padding-bottom: 50px;
}
.footerrightphone {
    padding-left: 60px;
    padding-top: 50px;
    padding-bottom: 50px;
    border-bottom: 3px solid #F54FA5;
}
.footerrightphone span {
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}
.footerrightphone a {
    text-decoration: none !important;
    background: none !important;
    font-size: 45px;
}
.footerleftipn span {
    display: block;
    font-size: 22px;
    font-weight: 600;
    line-height: 43px;
}
.footerrightwrapmenu p {
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.footerrightwrapmenu .footer-navigation {
    margin: 0px !important;
}
.footerrightwrapmenu .footer-navigation-wrapper {
    display: block !important;
}
.footerrightwrapmenu .footer-navigation-wrapper li {
    display: flex !important;
    font-size: 22px;
    line-height: 10px;
    font-weight: 600;
    align-items: center;
}
.footerrightwrapmenu .footer-navigation-wrapper li::before {
    content: '';
    left: 0;
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    display: block;
}
.footerrightwrapmenu .footer-navigation-wrapper a {
    background: none !important;
    text-decoration: none !important;
}
.footerwrap {
    margin: 0px !important;
}
.footpolicy {
    margin: 0px !important;
    display: flex;
}
.footpolicyleft {
    width: 50%;
    border-right: 3px solid #0097B3;
    padding: 50px 60px 50px 0px;
}
.footpolicyleft span {
    display: block;
    font-size: 22px;
    font-weight: 600;
    line-height: 38px;
	max-width: 405px;
    margin-left: auto;
}
.footpolicyright {
    width: 50%;
    padding: 50px 0px 50px 60px;
}
.footpolicyright a {
    display: block;
    text-decoration: none !important;
    background: none !important;
    font-size: 22px;
    font-weight: 600;
    line-height: 38px;
}
.footsetka h3 {
    font-size: 74px;
    text-transform: uppercase;
    padding: 50px 15px;
    text-align: center;
}
.footsetkawrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1312px;
    margin: 0 auto;
    padding: 0px 15px;
    padding-bottom: 60px;
}
.footsetkablok {
    background: #2E2E2E;
    text-align: center;
    padding: 30px 40px;
    border-radius: 10px;
}
.footsetkabloktext h4 {
    font-size: 46px;
    margin-bottom: 10px;
}
.footsetkabloktext span {
    display: block;
    font-size: 24px;
	line-height: 29px;
}
.footsetkabloktext {
    height: 245px;
}
.footsetkablok a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 24px;
    background: transparent !important;
    border: none;
    cursor: pointer;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
    text-decoration: none !important;
}
.footsetkablok a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #00bfff 0%, #ff69b4 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 2px;
  box-sizing: border-box;
}
@media (max-width: 970px) {
.footerwrap {
    display: block;
    margin: 0 auto !important;
    max-width: 435px;
    padding: 0px 15px;
}
.footerleft {
    width: 100%;
    padding-right: 0px;
    padding-top: 15px;
    border: 0px !important;
}
.footerleft .site-name {
    margin: 0 auto;
}
.footerleft .footerleftipn {
    padding-top: 15px;
    margin: 0 auto;
}
.footerright {
    width: 100%;
    border: 0px !important;
}
.footerrightphone {
    padding-left: 0px;
    padding-top: 30px;
    padding-bottom: 30px;
    border-bottom: 0px solid #F54FA5;
}
.footerrightwrap {
    gap: 30px;
    padding-left: 0px;
    padding-top: 0px;
    padding-bottom: 25px;
}
.footpolicy {
    margin: 0 auto !important;
    display: block;
    max-width: 435px;
    padding: 0px 15px;
}
.footpolicyleft {
    width: 100%;
    border-right: 0px;
    padding: 20px 0px 0px 0px;
}
.footpolicyright {
    width: 100%;
    padding: 20px 0px 50px 0px;
}
}
@media (max-width: 482px) {
.site-logo {
    position: inherit !important;
}
.singular .entry-header {

    margin: 0px !important;
}
.singular .entry-title {
    font-size: 28px !important;
    margin-top: 30px !important;
    margin-bottom: 30px !important;
}
.tm-header-cell, .tm-cell {
    padding: 10px 15px;
    font-size: 0.5rem;
}
.footpolicyright a {
    font-size: 12px;
    font-weight: 600;
    line-height: 30px;
}
.footpolicyleft span {
    font-size: 12px;
    font-weight: 600;
    line-height: 30px;
}
.footerrightwrapmenu .footer-navigation-wrapper li {
    font-size: 12px;
    line-height: 0px;
}
.footerrightwrapmenu p {
    font-size: 16px;
}
.footerrightphone span {
    font-size: 16px;
}
.footerrightphone a {
    font-size: 30px;
}
.footerleftipn span {
    font-size: 16px;
    font-weight: 600;
    line-height: 30px;
}
.footerrightwrapsoc img {
    height: 37px;
    width: auto;
}
.footsetka h3 {
    font-size: 57px;
}
}