@charset "UTF-8";
/*** KazPIN — страницы для сайта: оформление под Bootstrap 5.3, классы разметки прежние ***/
/* ЦВЕТА ТЕМЫ (--theme-color, --theme-color-text, --ktf-color, --color-gray2, --bg-fon-*)
   приходят из /_templates2026/page/css/content/root.css — здесь их НЕ переопределяем,
   только используем. Внутренние алиасы --kp-* завязаны на переменные темы. */
:root {
	--kp-accent: var(--theme-color-text, #0d0c5c);   /* кнопка поиска, номер страницы, активная страница */
	--kp-link:   var(--theme-color-text, #2b28c6);   /* ссылки */
	--kp-lime:   var(--ktf-color, #b9fd00);          /* активная вкладка */
	--kp-panel:  #eef1f6;                            /* фон формы поиска и шапки таблицы */
	--kp-border: #e6e9ef;
	--kp-text:   #111;
	--kp-muted:  #8a8f99;
	--kp-radius: 0.5rem;
	--kp-field-h: 2.25rem;
}
/* цвета из темы сайта: в календаре (.div_forsite) — напрямую, в iframe (.content_for_ktt) — --theme-color передаёт скрипт шаблона */
:is(.div_forsite, .content_for_ktt) {
	--kp-accent: var(--theme-color-text, var(--theme-color, #0d0c5c));      /* кнопка поиска, выделение в списке, номер страницы */
	--kp-link: var(--theme-color-text, var(--theme-color, #2b28c6));
	--kp-panel: color-mix(in srgb, var(--theme-color, #0d0c5c) 6%, #f4f4f4);
	--kp-border: color-mix(in srgb, var(--theme-color, #0d0c5c) 10%, #e6e6e6);
}
body.blue :is(.div_forsite, .content_for_ktt) {--kp-link: #2b28c6;}      /* в синей теме ссылки — как на макете */
/* только внутри отдельной страницы KazPIN (iframe), на сайте не действует */
body:has(> .content_for_ktt) {--bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;--bs-body-font-size: 0.875rem;--bs-body-color: var(--kp-text);--bs-link-color-rgb: 17, 17, 17;--bs-link-hover-color-rgb: 13, 12, 92;background: transparent;}
.content_for_ktt {padding: 0.75rem 0;}
.content.content_for_ktt {min-height: 0;margin: 0;}
:is(.content_for_ktt, .div_forsite) .padding-bottom {padding-bottom: 0.75rem;}

/* ---------- форма поиска: .alert-search ---------- */
:is(.content_for_ktt, .div_forsite) .alert.alert-search {margin-bottom: 0.75rem;padding: 1rem;border: 0;border-radius: var(--kp-radius);background: var(--kp-panel);color: var(--kp-text);}
:is(.content_for_ktt, .div_forsite) .alert-search h4 {margin: 0 0 0.75rem !important;font-size: 0.9375rem;font-weight: 700;}
:is(.content_for_ktt, .div_forsite) .search-form {display: flex;flex-wrap: wrap;align-items: center;gap: 0.375rem;}
:is(.content_for_ktt, .div_forsite) .search-form > .input-group-select {flex: 1 1 auto;min-width: 7rem;padding-bottom: 0 !important;}      /* ширина из инлайн-стиля — как базовая */
/* блок, который подгружается ajax-ом (дата рейтинга): пока «загрузка» — выглядит как поле */
:is(.content_for_ktt, .div_forsite) .search-form > #div_ranking_date_ajax:not(:has(select, :is(.content_for_ktt, .div_forsite) input)) {display: flex;align-items: center;height: var(--kp-field-h);padding: 0 0.75rem !important;border: 1px dashed var(--kp-border);border-radius: 0.25rem;background: #fff;color: var(--kp-muted);font-size: 0.8125rem;}
:is(.content_for_ktt, .div_forsite) .search-form > .input-group-select > .row {--bs-gutter-x: 0.375rem;flex-wrap: nowrap;margin: 0;}
/* поле, внутри которого несколько полей (год + дата из ajax): ставим их в ряд */
:is(.content_for_ktt, .div_forsite) .search-form > .input-group-select:has(> .input-group-select) {display: flex;gap: 0.375rem;flex: 1.6 1 15rem;width: auto !important;}
:is(.content_for_ktt, .div_forsite) .search-form > .input-group-select > .input-group-select {flex: 1 1 0;min-width: 6rem !important;}
:is(.content_for_ktt, .div_forsite) .search-form > .input-group {flex: 2 1 16rem;flex-wrap: nowrap;width: auto;min-width: 0;}

/* поля */
:is(.content_for_ktt, .div_forsite) .alert-search .form-control, :is(.content_for_ktt, .div_forsite) .alert-search select.form-control {height: var(--kp-field-h);padding: 0 0.75rem;border: 1px solid var(--kp-border);border-radius: 0.25rem;background-color: #fff;color: var(--kp-text);font-size: 0.8125rem;font-weight: 500;box-shadow: none;}
:is(.content_for_ktt, .div_forsite) .alert-search .form-control::placeholder {color: var(--kp-muted);}
:is(.content_for_ktt, .div_forsite) .alert-search .form-control:focus {border-color: var(--kp-accent);box-shadow: 0 0 0 0.15rem color-mix(in srgb, var(--kp-accent) 20%, transparent);}
:is(.content_for_ktt, .div_forsite) .alert-search input[type="date"].form-control {padding-right: 0.5rem;}

/* поиск + кнопки (BS3-обёртка .input-group-btn внутри BS5 .input-group) */
:is(.content_for_ktt, .div_forsite) .search-form .input-group > .form-control {flex: 1 1 auto;border-radius: 0.25rem 0 0 0.25rem;}
:is(.content_for_ktt, .div_forsite) .search-form .input-group-btn {display: flex;align-items: center;gap: 0.25rem;}
:is(.content_for_ktt, .div_forsite) .search-form .input-group-btn .btn {display: inline-flex;align-items: center;justify-content: center;width: var(--kp-field-h);height: var(--kp-field-h);padding: 0;border: 0;box-shadow: none;}
:is(.content_for_ktt, .div_forsite) .search-form .btn-search {border-radius: 0 0.25rem 0.25rem 0;background: var(--kp-accent);color: #fff;}
:is(.content_for_ktt, .div_forsite) .search-form .btn-search:hover, :is(.content_for_ktt, .div_forsite) .search-form .btn-search:focus-visible {background: color-mix(in srgb, var(--kp-accent) 85%, #fff);color: #fff;}
:is(.content_for_ktt, .div_forsite) .search-form .btn-warning {width: 2rem;border-radius: 0.25rem;background: transparent;color: var(--kp-accent);font-size: 0.9375rem;}
:is(.content_for_ktt, .div_forsite) .search-form .btn-warning:hover {background: rgba(0,0,0,.05);color: #000;}

/* ---------- Chosen под стиль формы ---------- */
:is(.content_for_ktt, .div_forsite) .chosen-container {font-size: 0.8125rem;font-weight: 500;}
:is(.content_for_ktt, .div_forsite) .chosen-container-single .chosen-single {display: flex;align-items: center;height: var(--kp-field-h);padding: 0 1.75rem 0 0.75rem;border: 1px solid var(--kp-border);border-radius: 0.25rem;background: #fff;box-shadow: none;color: var(--kp-text);line-height: 1;}
:is(.content_for_ktt, .div_forsite) .chosen-container-single .chosen-single span {margin-right: 0;}
:is(.content_for_ktt, .div_forsite) .chosen-container-single .chosen-single.chosen-default {color: var(--kp-text);}
/* стрелка — как у form-select BS5 */
:is(.content_for_ktt, .div_forsite) .chosen-container-single .chosen-single div {right: 0.625rem;width: 10px;}
:is(.content_for_ktt, .div_forsite) .chosen-container-single .chosen-single div b {background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") center / 10px 8px no-repeat !important;}
:is(.content_for_ktt, .div_forsite) .chosen-container-single .chosen-single abbr {top: 50%;right: 1.75rem;margin-top: -6px;}
:is(.content_for_ktt, .div_forsite) .chosen-container-single .chosen-single.chosen-single-with-deselect {padding-right: 3rem;}
:is(.content_for_ktt, .div_forsite) .chosen-container-single .chosen-single span {overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}
:is(.content_for_ktt, .div_forsite) .chosen-container-active.chosen-with-drop .chosen-single {border-color: var(--kp-accent);border-radius: 0.25rem 0.25rem 0 0;background: #fff;box-shadow: none;}
:is(.content_for_ktt, .div_forsite) .chosen-container .chosen-drop {border-color: var(--kp-accent);border-radius: 0 0 0.25rem 0.25rem;box-shadow: 0 0.5rem 1rem rgba(0,0,0,.12);}
:is(.content_for_ktt, .div_forsite) .chosen-container .chosen-results li.highlighted {background: var(--kp-accent);color: #fff;}
:is(.content_for_ktt, .div_forsite) .chosen-container .chosen-results li.result-selected {font-weight: 700;}
:is(.content_for_ktt, .div_forsite) .chosen-container-single .chosen-search input[type="text"] {border-color: var(--kp-border);border-radius: 0.25rem;}
/* список Chosen: сбрасываем оформление списков контента сайта (галочки, отступы) */
:is(.content_for_ktt, .div_forsite) .chosen-container .chosen-results {margin: 0;padding: 0.25rem 0;list-style: none;}
:is(.content_for_ktt, .div_forsite) .chosen-container .chosen-results > li {position: static;margin: 0 !important;padding: 0.4375rem 0.75rem !important;line-height: 1.2;list-style: none;}
:is(.content_for_ktt, .div_forsite) .chosen-container .chosen-results > li::before, :is(.content_for_ktt, .div_forsite) .chosen-container .chosen-results > li::after {content: none !important;display: none !important;}

/* ---------- найдено / страница: .page_info ---------- */
:is(.content_for_ktt, .div_forsite) .page_info {display: flex;flex-wrap: wrap;gap: 0.875rem;font-size: 0.8125rem;}
:is(.content_for_ktt, .div_forsite) .page_info.select {justify-content: flex-end;}
:is(.content_for_ktt, .div_forsite) .page_info .badge {padding: 0;border-radius: 0;background: none;color: var(--kp-text);font-size: inherit;font-weight: 700;}
:is(.content_for_ktt, .div_forsite) .page_info.select .badge {color: var(--kp-accent);}

/* ---------- таблица: .table-scroll.table-forsite — общий вид в tables.css, здесь только особенности KazPIN ---------- */
:is(.content_for_ktt, .div_forsite) .table-forsite .table > thead a:hover {color: var(--kp-accent);}
:is(.content_for_ktt, .div_forsite) .table-forsite .table > thead .fa {margin-left: 0.125rem;color: var(--kp-muted);font-size: 0.75em;}       /* fa-sort, fa-sort-numeric-up и т.п. */
:is(.content_for_ktt, .div_forsite) .table-forsite abbr[title] {text-decoration: none;cursor: help;}
:is(.content_for_ktt, .div_forsite) .table-forsite .table td a {color: var(--kp-link);text-decoration: none;}
:is(.content_for_ktt, .div_forsite) .table-forsite .table td a:hover {color: color-mix(in srgb, var(--kp-link) 75%, #000);text-decoration: underline;text-underline-offset: 0.15em;}
:is(.content_for_ktt, .div_forsite) .table-forsite .center {text-align: center;}
:is(.content_for_ktt, .div_forsite) .table-forsite td.center, :is(.content_for_ktt, .div_forsite) .table-forsite td.left {white-space: nowrap;}   /* в одну строку; на узком экране — горизонтальная прокрутка */
:is(.content_for_ktt, .div_forsite) .table-forsite .left {text-align: left;}
:is(.content_for_ktt, .div_forsite) .table-forsite .num {color: var(--kp-muted);font-size: 0.8125rem;}

/* ---------- пагинация: li.paginate_button > a (без классов BS5) ---------- */
:is(.content_for_ktt, .div_forsite) .pagination {display: flex;flex-wrap: wrap;gap: 0.25rem;margin: 1rem 0 0 !important;padding: 0;list-style: none;}
:is(.content_for_ktt, .div_forsite) .pagination > li > a, :is(.content_for_ktt, .div_forsite) .pagination > li > span {display: inline-flex;align-items: center;justify-content: center;min-width: 2.25rem;height: 2.25rem;padding: 0 0.5rem;border: 1px solid var(--kp-border);border-radius: 0.25rem;background: #fff;color: var(--kp-text);font-size: 0.8125rem;text-decoration: none;transition: background-color .15s ease, color .15s ease;}
:is(.content_for_ktt, .div_forsite) .pagination > li > a:hover {background: var(--kp-panel);color: var(--kp-accent);}
:is(.content_for_ktt, .div_forsite) .pagination > li.active > a, :is(.content_for_ktt, .div_forsite) .pagination > li.active > span {border-color: var(--kp-accent);background: var(--kp-accent);color: #fff;}
:is(.content_for_ktt, .div_forsite) .pagination > li.disabled > a {color: var(--kp-muted);pointer-events: none;}
:is(.content_for_ktt, .div_forsite) .left-sm {display: flex;justify-content: flex-end;}

/* ---------- подсказки ---------- */
body:has(> .content_for_ktt) .tooltip {--bs-tooltip-bg: var(--kp-accent);--bs-tooltip-font-size: 0.75rem;}

/* ---------- вкладки страниц KazPIN: любые .nav-tabs (ссылки-разделы или переключатели, разметка BS3) — как подменю сайта ---------- */
:is(.content_for_ktt, .div_forsite) .nav-tabs-custom1 {margin: 0;border: 0;background: none;box-shadow: none;}
:is(.content_for_ktt, .div_forsite) .nav-tabs {display: flex;flex-wrap: wrap;margin: 0 0 0.75rem;padding: 0;border: 0;border-radius: var(--kp-radius);background: var(--color-gray2, #efeeee);overflow: hidden;list-style: none;}
:is(.content_for_ktt, .div_forsite) .nav-tabs > li {margin: 0;float: none;}
:is(.content_for_ktt, .div_forsite) .nav-tabs > li > a {display: flex;align-items: center;height: 2.625rem;margin: 0;padding: 0 1rem;border: 0;border-radius: 0;background: none;color: var(--theme-color-text, var(--kp-accent));font-size: 1rem;font-weight: 700;line-height: 1.1;text-decoration: none;white-space: nowrap;transition: background-color .15s ease;}
:is(.content_for_ktt, .div_forsite) .nav-tabs > li > a:hover {background: rgba(0,0,0,.06);color: var(--theme-color-text, var(--kp-accent));}
:is(.content_for_ktt, .div_forsite) .nav-tabs > li.active > a, :is(.content_for_ktt, .div_forsite) .nav-tabs > li.active > a:hover, :is(.content_for_ktt, .div_forsite) .nav-tabs > li.active > a:focus, :is(.content_for_ktt, .div_forsite) .nav-tabs > li > a.active {border: 0;background: var(--ktf-color, var(--kp-lime));color: var(--theme-color-text, var(--kp-accent));cursor: default;}   /* сильнее .nav-tabs > li.active > a:hover из style.css */
:is(.content_for_ktt, .div_forsite) .nav-tabs-custom1 > .tab-content {padding: 0;border: 0;background: none;}

:is(.content_for_ktt, .div_forsite) .tab-content .tab-content {--p-x: 0;}

/* заголовок внутри вкладки повторяет название вкладки — прячем */
:is(.content_for_ktt, .div_forsite) .nav-tabs-custom1 > .tab-content > .tab-pane > h4:first-child {display: none;}

/* ---------- штрафники: строка-группа «Период дисквалификации» ---------- */
:is(.content_for_ktt, .div_forsite) .table-forsite .table > tbody > tr.colspan > td {padding-top: 0.5rem;padding-bottom: 0.5rem;--bs-table-bg-state: #fff;}
:is(.content_for_ktt, .div_forsite) .table-forsite .table > tbody > tr.colspan > td.disqual {color: #ff3d00;font-size: 0.8125rem;font-weight: 600;}

/* ---------- форма без поля поиска (календарь): только кнопки ---------- */
:is(.content_for_ktt, .div_forsite) .search-form > .input-group:not(:has(.form-control)) {flex: 0 0 auto;width: auto !important;}
/* на широком экране все фильтры в одну строку: поля сжимаются (текст — с многоточием), кнопки не уезжают вниз */
@media (min-width: 1200px) {
	:is(.content_for_ktt, .div_forsite) .search-form {flex-wrap: nowrap;}
	:is(.content_for_ktt, .div_forsite) .search-form > .input-group-select {min-width: 6.25rem;}
	:is(.content_for_ktt, .div_forsite) .search-form > .input-group-select:has(> .input-group-select) {min-width: 11.5rem;}
	:is(.content_for_ktt, .div_forsite) .search-form > .input-group-select > .input-group-select {min-width: 5.5rem !important;}
}
:is(.content_for_ktt, .div_forsite) .search-form > .input-group:not(:has(.form-control)) .btn-search {border-radius: 0.25rem;}

/* ссылки в iframe без подчёркивания из старых стилей сайта */
:is(.content_for_ktt, .div_forsite) .chosen-single, :is(.content_for_ktt, .div_forsite) .chosen-single span {text-decoration: none !important;}
:is(.content_for_ktt, .div_forsite) .table-forsite .table td a {text-decoration: none !important;}
:is(.content_for_ktt, .div_forsite) .table-forsite .table td a:hover {text-decoration: underline !important;}

/* ---------- календарь турниров ---------- */
:is(.content_for_ktt, .div_forsite) .table-forsite .table td.tournament a {color: var(--kp-link);}
:is(.content_for_ktt, .div_forsite) .table-forsite .table td.tournament a:hover {color: var(--kp-accent);}
:is(.content_for_ktt, .div_forsite) .table-forsite td.tournament {white-space: normal;}
/* строка-месяц */
:is(.content_for_ktt, .div_forsite) .table-forsite .table > tbody > tr.colspan > td.month {padding: 0.625rem 0.5rem;--bs-table-bg-state: #fff;color: #6b6f76;font-size: 1.125rem;font-weight: 700;text-align: center;text-transform: none;}
/* «Отменён» */
:is(.content_for_ktt, .div_forsite) .tournament-canceled {display: inline-block;margin-left: 0.5rem;padding: 0.1875rem 0.5rem;border-radius: 0.25rem;background: #ff3d00;color: #fff;font-size: 0.6875rem;font-style: italic;font-weight: 800;line-height: 1;text-transform: uppercase;vertical-align: 0.1em;}
/* дедлайн прошёл */
:is(.content_for_ktt, .div_forsite) .red {color: #ff3d00 !important;}
:is(.content_for_ktt, .div_forsite) .abbr[title] {cursor: help;}

/* узкие экраны: строки календаря превращаются в карточки */
@media (max-width: 991.98px) {
	:is(.content_for_ktt, .div_forsite) .table-forsite.table-scroll:has(tr.match) {overflow: visible;}
	:is(.content_for_ktt, .div_forsite) .table-forsite .table:has(tr.match) {display: block;min-width: 0 !important;}
	:is(.content_for_ktt, .div_forsite) .table-forsite .table:has(tr.match) > thead {display: none;}
	:is(.content_for_ktt, .div_forsite) .table-forsite .table:has(tr.match) > tbody {display: grid;grid-template-columns: repeat(2, minmax(0, 1fr));gap: 0.625rem;}
	:is(.content_for_ktt, .div_forsite) .table-forsite .table > tbody > tr.colspan {display: block;grid-column: 1 / -1;}
	:is(.content_for_ktt, .div_forsite) .table-forsite .table > tbody > tr.colspan > td {display: block;border: 0 !important;}

	:is(.content_for_ktt, .div_forsite) .table-forsite .table > tbody > tr.match {display: grid;grid-template-columns: 1fr auto;grid-template-areas: "date week" "title title" "city city" "cat cat" "dl dl";align-content: start;gap: 0.25rem 0.5rem;padding: 0.75rem 0.875rem;border-radius: var(--kp-radius);background: #fff;box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,.08);}
	:is(.content_for_ktt, .div_forsite) .table-forsite .table > tbody > tr.match > td {display: block;padding: 0 !important;border: 0 !important;background: none !important;box-shadow: none !important;text-align: left !important;white-space: normal;}
	:is(.content_for_ktt, .div_forsite) .table-forsite .table > tbody > tr.match > td.num {display: none;}
	:is(.content_for_ktt, .div_forsite) .table-forsite .table > tbody > tr.match > td.date_begin {grid-area: date;font-weight: 700;}
	:is(.content_for_ktt, .div_forsite) .table-forsite .table > tbody > tr.match > td.week {grid-area: week;color: var(--kp-muted);font-size: 0.75rem;}
	:is(.content_for_ktt, .div_forsite) .table-forsite .table > tbody > tr.match > td.week::before {content: attr(aria-label) " ";}
	:is(.content_for_ktt, .div_forsite) .table-forsite .table > tbody > tr.match > td.tournament {grid-area: title;margin: 0.25rem 0 0.375rem;font-size: 1rem;font-weight: 700;line-height: 1.25;}
	:is(.content_for_ktt, .div_forsite) .table-forsite .table > tbody > tr.match > td:is(.city, .tcategory, .last_claim) {display: flex;justify-content: space-between;gap: 0.5rem;font-size: 0.8125rem;}
	:is(.content_for_ktt, .div_forsite) .table-forsite .table > tbody > tr.match > td:is(.city, .tcategory, .last_claim)::before {content: attr(aria-label);color: var(--kp-muted);}
	:is(.content_for_ktt, .div_forsite) .table-forsite .table > tbody > tr.match > td.city {grid-area: city;}
	:is(.content_for_ktt, .div_forsite) .table-forsite .table > tbody > tr.match > td.tcategory {grid-area: cat;}
	:is(.content_for_ktt, .div_forsite) .table-forsite .table > tbody > tr.match > td.last_claim {grid-area: dl;}
}
@media (max-width: 575.98px) {
	:is(.content_for_ktt, .div_forsite) .table-forsite .table:has(tr.match) > tbody {grid-template-columns: minmax(0, 1fr);}
}

/* ---------- страница турнира: прежние стили (до редизайна) ---------- */
:is(.content_for_ktt, .div_forsite) .box {position: relative;border-radius: 3px;background: #ffffff;border-top: 3px solid #d2d6de;margin-bottom: 20px;width: 100%;box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);}
:is(.content_for_ktt, .div_forsite) .box-widget {border: 1px solid rgba(0, 0, 0, 0.1);position: relative;}
:is(.content_for_ktt, .div_forsite) .box .border-right {border-right: 1px solid #e5e5e5;}
:is(.content_for_ktt, .div_forsite) .widget-user .widget-user-header {padding: 20px;height: 120px;border-top-right-radius: 3px;border-top-left-radius: 3px;}
:is(.content_for_ktt, .div_forsite) .bg-sportbase {background: url('/kazpin/templates/adminlte/img/fon.jpg');background-size:cover;}
:is(.content_for_ktt, .div_forsite) .widget-bg {position:absolute;left:0;top:0;background:rgba(0,0,0,0.5);width:100%;height:120px;}
:is(.content_for_ktt, .div_forsite) .widget-bg-up {position:absolute;z-index:100;}

:is(.content_for_ktt, .div_forsite) .widget-user-desc {line-height:1.5em;}
:is(.content_for_ktt, .div_forsite) .widget-user-desc a {color:#fff !important;text-decoration:underline}
:is(.content_for_ktt, .div_forsite) .widget-user-desc a:hover {color:#fff !important;text-decoration:none}


:is(.content_for_ktt, .div_forsite) .bg-aqua-active, :is(.content_for_ktt, .div_forsite) .modal-info .modal-header, :is(.content_for_ktt, .div_forsite) .modal-info .modal-footer {background-color: #00a7d0 !important;color:#fff!important}
:is(.content_for_ktt, .div_forsite) .widget-user .widget-user-username {font-size:20px;font-weight:bold}
:is(.content_for_ktt, .div_forsite) .widget-user .widget-user-image {position: absolute;top: 65px;left: 50%;margin-left: -45px;border-radius: 100%;overflow: hidden;width:96px;height: 96px;border:3px solid #ddd;margin-left: -48px;background:#fff}
:is(.content_for_ktt, .div_forsite) .widget-user .widget-user-image > img {border: 0;}
:is(.content_for_ktt, .div_forsite) .widget-user .box-footer {padding-top: 50px;background: #f6f6f6;}
:is(.content_for_ktt, .div_forsite) .description-block {display: block;margin: 10px 0;text-align: center;}
:is(.content_for_ktt, .div_forsite) .description-block > .description-header {margin: 0;padding: 0;font-weight: 600;font-size: 16px;}
:is(.content_for_ktt, .div_forsite) .description-block > .description-header2 {margin: 0;padding: 0;font-weight: 600;font-size: 24px;}
:is(.content_for_ktt, .div_forsite) h3.widget-user-username {margin:0;}
:is(.content_for_ktt, .div_forsite) .box-footer .block-info {min-height:100px;}

:is(.content_for_ktt, .div_forsite) .description-block > .description-text {color: #5f5f5f;font-size: 13px;margin-top: 7px;text-transform: uppercase;}

@media only screen and (max-width: 767px) {
:is(.content_for_ktt, .div_forsite) .widget-user .widget-user-image {position: inherit;top:0;left:0;margin:20px auto;}
:is(.content_for_ktt, .div_forsite) .widget-user .box-footer {padding-top:20px;}
}

/* ---------- ссылки на документы над формой (Календарь КТТ в PDF) ---------- */
.docs-ktt {--docs-color: #8ca612;display: flex;flex-wrap: wrap;gap: 0.5rem 2rem;margin: 0 0 1.25rem !important;padding: 0 !important;list-style: none;}
.docs-ktt > li {position: static;margin: 0 !important;padding: 0 !important;list-style: none;}
.docs-ktt > li::before, .docs-ktt > li::after {content: none !important;display: none !important;}      /* галочки списков контента сайта */
.docs-ktt a {position: relative;display: inline-block;padding: 0 1.75rem 0 2rem;color: var(--docs-color) !important;font-size: 1rem;font-weight: 700;line-height: 1.3;text-decoration: underline !important;text-decoration-color: color-mix(in srgb, var(--docs-color) 35%, transparent) !important;text-decoration-thickness: 1px !important;text-underline-offset: 0.3em;transition: text-decoration-color .2s ease, color .2s ease;}
/* иконки — абсолютно, чтобы подчёркивание шло только под текстом */
.docs-ktt a::before {content: '\f15c';position: absolute;left: 0;top: 50%;transform: translateY(-50%);font-family: 'Font Awesome 5 Pro';font-size: 1.375em;font-weight: 300;line-height: 1;}
.docs-ktt.pdf a::before {content: "\f1c1";}
.docs-ktt.xls a::before {content: "\f1c3";}
.docs-ktt.doc a::before {content: "\f1c2";}




.docs-ktt a::after {content: '\f33d';position: absolute;right: 0;top: 50%;transform: translateY(-50%);font-family: 'Font Awesome 5 Pro';font-size: 1.125em;font-weight: 900;line-height: 1;transition: transform .2s ease;}
.docs-ktt a:hover {color: color-mix(in srgb, var(--docs-color) 80%, #000) !important;text-decoration-color: currentColor !important;}
.docs-ktt a:hover::after {transform: translateY(calc(-50% + 2px));}
.docs-ktt a::before, .docs-ktt a::after {text-decoration: none;}

/* ---------- заголовки на страницах KazPIN в iframe — как .content h2/h3 на сайте ---------- */
.content_for_ktt h2, .content_for_ktt h3 {margin: 0 0 var(--h2-mb, 1.375rem);color: var(--color-black, #000);font-family: var(--bs-body-font-family);font-weight: 700;line-height: 1;}
.content_for_ktt h2 {font-size: var(--h2-size, 1.9375rem);}
.content_for_ktt h3 {margin-bottom: var(--h3-mb, 1.25rem);font-size: var(--h3-size, 1.625rem);}
.content_for_ktt h4 {margin: 0 0 1rem;color: var(--color-black, #000);font-size: 1.375rem;font-weight: 700;line-height: 1.1;}
.content_for_ktt :is(.table-scroll, .table-responsive, table) + h3, .content_for_ktt .tab-pane h3:not(:first-child) {margin-top: 2.5rem;}

/* ---------- таблица начисления очков: ячейки с очками — лайм темы с прозрачностью 50% ---------- */
:is(.content_for_ktt, .div_forsite) td.td-points {background-color: color-mix(in srgb, var(--ktf-color, #b9fd00) 50%, transparent);}
/* в таблицах Bootstrap 5 фон ячейки рисуется через --bs-table-bg-state — красим им, чтобы цвет не наложился дважды */
:is(.content_for_ktt, .div_forsite) .table > :not(caption) > * > td.td-points {background-color: var(--bs-table-bg);--bs-table-bg-state: color-mix(in srgb, var(--ktf-color, #b9fd00) 50%, transparent);}

/* кнопки Bootstrap (например «Скачать в excel») — цветом темы */
:is(.content_for_ktt, .div_forsite) .btn-primary {--bs-btn-bg: var(--kp-accent);--bs-btn-border-color: var(--kp-accent);--bs-btn-hover-bg: color-mix(in srgb, var(--kp-accent) 85%, #fff);--bs-btn-hover-border-color: color-mix(in srgb, var(--kp-accent) 85%, #fff);--bs-btn-active-bg: var(--kp-accent);--bs-btn-active-border-color: var(--kp-accent);border-radius: 0.375rem;font-weight: 600;}

/* ---------- .table-small — компактная таблица для широких таблиц (на table или на обёртке) ---------- */
:is(.content_for_ktt, .div_forsite) :is(table.table-small, .table-small table) {font-size: 0.75rem !important;}
:is(.content_for_ktt, .div_forsite) :is(table.table-small, .table-small table) > :not(caption) > * > * {padding: 0.375rem 0.3125rem !important;font-size: 0.75rem;line-height: 1.2;}
:is(.content_for_ktt, .div_forsite) :is(table.table-small, .table-small table) > thead > tr > th {font-size: 0.6875rem !important;}

/* ---------- вертикальная подпись в ячейке (категория в таблице очков) ----------
   transform: rotate() поворачивает только картинку, а место в таблице остаётся горизонтальным —
   поэтому длинный текст залезал на соседние ячейки. writing-mode меняет саму раскладку текста. */
/* вариант с разметкой: <td rowspan="6" class="td-vertical"><span>Высшая</span></td> */
:is(.content_for_ktt, .div_forsite) .table td.td-vertical {width: 2.5rem;padding: 0.5rem 0.25rem !important;font-weight: 700;text-align: center;vertical-align: middle;}
:is(.content_for_ktt, .div_forsite) .table td.td-vertical > span {display: inline-block;writing-mode: vertical-rl;transform: rotate(180deg);line-height: 1.15;}
/* вариант без правки разметки: старые ячейки с inline transform: rotate(-90deg) */
:is(.content_for_ktt, .div_forsite) .table td[style*="rotate(-90deg)"] {transform: none !important;width: 2.5rem;padding: 0.5rem 0.25rem !important;writing-mode: sideways-lr;text-align: center;vertical-align: middle !important;line-height: 1.15;}
@supports not (writing-mode: sideways-lr) {
	:is(.content_for_ktt, .div_forsite) .table td[style*="rotate(-90deg)"] {writing-mode: vertical-rl;}
}

/* =================== СТРАНИЦА ИГРОКА (.player-page) =================== */
.player-page .player-back {display: inline-flex;align-items: center;gap: 0.375rem;margin-bottom: 0.75rem;color: var(--kp-accent);font-size: 0.875rem;font-weight: 700;text-decoration: none;}
.player-page .player-back:hover {text-decoration: underline;}

/* шапка: фон цвета темы с диагональными «линиями корта» */
.player-hero {
	--hero-bg: var(--theme-color, #01439e);
	position: relative;
	margin-bottom: 1.5rem;
	padding: 2rem 2.5rem 1.5rem;
	border-radius: 1rem;
	overflow: hidden;
	color: #fff;
	background:
		linear-gradient(115deg, transparent 52%, rgba(255,255,255,.08) 52.2%, rgba(255,255,255,.08) 53%, transparent 53.2%),
		linear-gradient(160deg, transparent 70%, rgba(255,255,255,.06) 70.2%, rgba(255,255,255,.06) 71%, transparent 71.2%),
		radial-gradient(120% 140% at 15% 0%, color-mix(in srgb, var(--hero-bg) 75%, #fff) 0%, var(--hero-bg) 45%, color-mix(in srgb, var(--hero-bg) 70%, #000) 100%);
}
.player-hero__top {display: grid;grid-template-columns: auto 1fr auto;align-items: center;gap: 1.5rem 2.5rem;padding-bottom: 1.5rem;border-bottom: 1px solid rgba(255,255,255,.35);}

.player-hero__photo {width: 9.5rem;height: 9.5rem;padding: 3px;border-radius: 50%;background: #fff;}
.player-hero__photo img {display: block;width: 100%;height: 100%;border-radius: 50%;object-fit: cover;object-position: center top;background: #e3e5ea;}

.player-hero__chips {display: flex;flex-wrap: wrap;align-items: center;gap: 0.5rem 1rem;margin-bottom: 0.875rem;}
.player-hero__chip {padding: 0.375rem 0.75rem;border: 1px solid rgba(255,255,255,.6);border-radius: 0.5rem;font-size: 0.875rem;line-height: 1.2;}
.player-hero__chip + .player-hero__chip {position: relative;}
.player-hero__chip + .player-hero__chip::before {content: '';position: absolute;left: -0.5625rem;top: 0;bottom: 0;width: 1px;background: rgba(255,255,255,.5);}

.player-hero__name {margin: 0;color: #fff;font-size: clamp(1.75rem, 3.2vw, 2.75rem);font-style: italic;font-weight: 900;line-height: 1.05;}
/*.player-hero__name span {display: block;}*/

/* WTN-виджет справа */
.player-hero__wtn {text-align: center;}
.player-hero__wtn-title {font-size: 0.9375rem;font-weight: 500;}
.player-hero__wtn #wtn-ranking {display: flex;justify-content: center;min-height: 1rem;}
.player-hero__wtn #wtn-ranking > * {margin: 0.25rem auto 0.5rem !important;}
.player-hero__wtn-type {font-size: 0.6875rem;opacity: .8;}
/* виджета нет (у игрока нет WTN) — показываем только тип рейтинга */
.player-hero__wtn:has(#wtn-ranking:empty) .player-hero__wtn-title {display: none;}

/* нижняя строка: город, дата рождения, возраст, KazPIN */
.player-hero__stats {display: flex;justify-content: space-between;gap: 1rem;margin: 0;padding: 1.25rem 0 0;list-style: none;}
.player-hero__stats li {display: flex;flex: 1 1 0;align-items: center;justify-content: center;gap: 0.75rem;min-width: 0;margin: 0;padding: 0 0.5rem;}
.player-hero__stats li:first-child {justify-content: flex-start;padding-left: 0;}
.player-hero__stats li:last-child {justify-content: flex-end;padding-right: 0;}
.player-hero__stats li + li {border-left: 1px solid rgba(255,255,255,.35);}
.player-hero__stats li::before {content: none !important;}
.player-hero__stats i {flex-shrink: 0;font-size: 2.25rem;line-height: 1;}
.player-hero__stats li > span:last-child {display: flex;flex-direction: column;min-width: 0;font-size: 0.8125rem;line-height: 1.25;opacity: .85;}
.player-hero__stats b {font-size: 0.9375rem;font-weight: 700;opacity: 1;color: #fff;}
.player-hero__kazpin {display: inline-flex;align-items: center;justify-content: center;width: 2.75rem;height: 2.75rem;border: 2px solid #fff;border-radius: 0.375rem;font-size: 0.75rem;font-weight: 800;line-height: 1;letter-spacing: 0.08em;text-align: center;}

.player-page .player-note {margin: 0 0 1.25rem;font-size: 0.9375rem;font-weight: 700;text-align: center;}

/* таблицы турниров: зелёная / оранжевая плашка-заголовок */
.player-page .box {margin: 0 0 1.5rem;border: 0;border-radius: 0;background: none;box-shadow: none;}
.player-page .box > .box-header {padding: 0.625rem 0.75rem;border: 0;border-radius: 0.5rem 0.5rem 0 0;color: #fff;}
.player-page .box-success > .box-header {background: #5cd60b;}
.player-page .box-danger > .box-header {background: #ff6a00;}
.player-page .box-title {margin: 0;color: inherit;font-size: 0.9375rem;font-weight: 700;line-height: 1.2;}
.player-page .box-body {padding: 0;border: 0;}
.player-page .box .table-scroll {border-radius: 0 0 0.5rem 0.5rem;}
.player-page .table > tbody > tr.total > td {--bs-table-bg-state: #ffc266;font-weight: 700;}
.player-page .table > tbody > tr.last_year > td {--bs-table-bg-state: #fff1d6;}
.player-page .table > tbody > tr.dbl > td.left {color: #555;}
.player-page .row:has(> .form-btn:only-child:empty) {display: none;}

@media (max-width: 991.98px) {
	.player-hero {padding: 1.5rem;}
	.player-hero__top {grid-template-columns: auto 1fr;}
	.player-hero__wtn {grid-column: 1 / -1;}
	.player-hero__stats {display: grid;grid-template-columns: 1fr 1fr;gap: 1rem;}
	.player-hero__stats li, .player-hero__stats li:first-child, .player-hero__stats li:last-child, .player-hero__stats li + li {justify-content: flex-start;padding: 0;border: 0;}
}
@media (max-width: 575.98px) {
	/* телефон: фото + имя рядом, под ними плашки, список данных, WTN внизу */
	.player-hero {display: grid;grid-template-columns: auto 1fr;grid-template-areas: "photo name" "chips chips" "stats stats" "wtn wtn";align-items: center;gap: 1.25rem 1rem;padding: 1.25rem 1rem 1.5rem;}
	.player-hero__top, .player-hero__main {display: contents;}
	.player-hero__photo {grid-area: photo;width: 6.5rem;height: 6.5rem;}
	.player-hero__name {grid-area: name;font-size: 1.5rem;}
	.player-hero__chips {position: relative;grid-area: chips;display: grid;grid-template-columns: 1fr 1fr;gap: 0 2rem;margin: 0;}
	.player-hero__chips > :first-child {justify-self: start;}
	.player-hero__chips > :last-child {justify-self: end;}
	.player-hero__chip + .player-hero__chip::before {content: none;}
	.player-hero__chips:has(> :nth-child(2))::after {content: '';position: absolute;left: 50%;top: 0;bottom: 0;width: 1px;background: rgba(255,255,255,.5);}
	.player-hero__stats {grid-area: stats;display: flex;flex-direction: column;gap: 0;padding: 0;}
	.player-hero__stats li, .player-hero__stats li:first-child, .player-hero__stats li:last-child, .player-hero__stats li + li {justify-content: flex-start;padding: 0.875rem 0;border: 0;}
	.player-hero__stats li + li {border-top: 1px solid rgba(255,255,255,.35);}
	.player-hero__stats i {width: 2.75rem;font-size: 2.25rem;text-align: center;}
	.player-hero__kazpin {width: 2.75rem;height: 2.75rem;font-size: 0.75rem;}
	.player-hero__wtn {grid-area: wtn;}
}

@media (max-width: 575.98px) {
	:is(.content_for_ktt, .div_forsite) .alert.alert-search {padding: 0.75rem;}
	:is(.content_for_ktt, .div_forsite) .search-form > .input-group-select {flex-basis: calc(50% - 0.375rem);width: auto !important;}
	:is(.content_for_ktt, .div_forsite) .search-form > .input-group {flex-basis: 100%;}
	:is(.content_for_ktt, .div_forsite) .search-form > .input-group-select:has(> .input-group-select) {flex-basis: 100%;}
	:is(.content_for_ktt, .div_forsite) .page_info.select {justify-content: flex-start;}
	:is(.content_for_ktt, .div_forsite) .left-sm {justify-content: center;}
	/* вкладки: длинные названия переносятся, строка делится по содержимому */
	:is(.content_for_ktt, .div_forsite) .nav-tabs > li {flex: 1 1 auto;}
	:is(.content_for_ktt, .div_forsite) .nav-tabs > li > a {justify-content: center;height: 100%;min-height: 2.625rem;padding: 0.375rem 0.5rem;font-size: 0.75rem;text-align: center;white-space: normal;}
}



/* Турниры */
/*** СТРАНИЦА ТУРНИРА (календарь → турнир): шапка, «О турнире», «Положение» ***/
/* --tr-* — локальные переменные страницы турнира; --tr-text тянет цвет темы из root.css */
:is(.div_forsite, .content_for_ktt) {
	--tr-card-bg: #fff;
	--tr-card-radius: 0.75rem;
	--tr-card-shadow: 0 0.125rem 0.75rem rgba(0,0,0,.07);
	--tr-text: var(--theme-color-text, var(--theme-color, #0d0c5c));
	--tr-line: #e3e6ea;
	--tr-muted: #6b6f76;
}

/* ---------- шапка ---------- */
.tour-hero {position: relative;margin-bottom: 1.5rem;padding: 1.75rem 2rem 1.25rem;overflow: hidden;border-radius: var(--img-border-radius, 1.25rem);color: #fff;background: var(--theme-color) var(--bg-fon-tournament, none) center / cover no-repeat;}
.tour-hero::before {content: '';position: absolute;inset: 0;background: linear-gradient(100deg, rgba(0,0,0,.25), transparent 60%);pointer-events: none;}
.tour-hero > * {position: relative;}
.tour-hero__top {display: grid;grid-template-columns: 1fr auto;align-items: end;gap: 1.5rem 2rem;padding-bottom: 1.25rem;border-bottom: 1px solid rgba(255,255,255,.4);}
.tour-hero__chips {display: flex;flex-wrap: wrap;gap: 0.5rem 1.25rem;margin-bottom: 1rem;}
.tour-hero__chip {position: relative;padding: 0.3125rem 0.625rem;border: 1px solid rgba(255,255,255,.55);border-radius: 0.5rem;font-size: 0.8125rem;line-height: 1.2;}
.tour-hero__chip + .tour-hero__chip::before {content: '';position: absolute;left: -0.6875rem;top: 0;bottom: 0;width: 1px;background: rgba(255,255,255,.5);}
.tour-hero__chip:has(b:empty) {display: none;}
/* палочка только если предыдущий чип реально виден */
.tour-hero__chip:has(b:empty) + .tour-hero__chip::before {content: none;}
.tour-hero__title {margin: 0;color: #fff !important;font-size: clamp(1.75rem, 3.6vw, 3rem);font-style: italic;font-weight: 900;line-height: 1.05;}
.tour-hero__site:empty {display: none;}
.tour-hero__site a {color: var(--ktf-color);font-size: 0.875rem;font-weight: 600;}
.tour-hero__logos {display: flex;gap: 1.5rem;}
.tour-hero__logo {display: flex;flex-direction: column;align-items: center;gap: 0.5rem;margin: 0;padding-left: 1.5rem;border-left: 1px solid rgba(255,255,255,.4);font-size: 0.8125rem;}
.tour-hero__logo > span {display: flex;align-items: center;justify-content: center;width: 6.5rem;height: 6.5rem;overflow: hidden;border-radius: 50%;background: #fff;}
.tour-hero__logo img {max-width: 80%;max-height: 80%;object-fit: contain;}
/*.tour-hero__logo:has(img[src$="/0.png"]) {display: none;}*/      /* нет логотипа — заглушку не показываем */

.tour-hero__stats {display: flex;margin: 0;padding: 1.125rem 0 0;list-style: none;}
.tour-hero__stats li {display: flex;flex: 1 1 auto;align-items: center;gap: 0.75rem;min-width: 0;margin: 0;padding: 0 1rem;}
.tour-hero__stats li::before {content: none !important;}
.tour-hero__stats li:first-child {padding-left: 0;}
.tour-hero__stats li + li {border-left: 1px solid rgba(255,255,255,.4);}
.tour-hero__stats i {display: inline-flex;align-items: center;justify-content: center;flex-shrink: 0;width: 2rem;height: 2rem;color: #fff;}
.tour-hero__stats i svg {width: 100%;height: 100%;}
.tour-hero__stats li > span {display: flex;flex-direction: column;font-size: 0.75rem;line-height: 1.3;opacity: .85;}
.tour-hero__stats .v {font-size: 0.875rem;opacity: 1;color: #fff;}
.tour-hero__stats .v > div {display: inline;}
.tour-hero__stats li:has(.v:empty) {display: none;}

/* ---------- вкладки: заголовок раздела ---------- */
.div_forsite .tab-pane h2 {margin: 0 0 1rem;color: var(--tr-text);font-size: 1.375rem;font-style: italic;font-weight: 800;}
.div_forsite .tab-pane .tab-pane > h2.noprint {display: none;}


.ktt-print {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border: 0;
	border-radius: var(--tr-card-radius, 0.5rem);
	background: var(--tr-text, var(--theme-color-text, #0d0c5c));
	color: #fff !important;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .15s ease;
}
.ktt-print:hover, .ktt-print:focus-visible {
	background: color-mix(in srgb, var(--tr-text, #0d0c5c) 85%, #fff);
	color: #fff !important;
}
.ktt-print i {font-size: 1em;}
/* обёртка кнопки печати — отступ снизу */
.ktt-print-wrap {margin-bottom: 1rem;}



/* ---------- О турнире: карточки характеристик ---------- */
.char-cards {display: grid;grid-template-columns: repeat(2, minmax(0, 1fr));gap: 1rem;}
.char-card {padding: 1rem 1.25rem;background: var(--tr-card-bg);}
.char-card__head {display: flex;align-items: center;gap: 1rem;margin-bottom: 0.625rem;}
.char-card__icon {display: flex;flex-shrink: 0;align-items: center;justify-content: center;width: 3rem;height: 3rem;color: var(--tr-text);}
.char-card__icon svg {width: 100%;height: 100%;}
.char-card--female .char-card__icon {color: color-mix(in srgb, var(--tr-text) 70%, #c2185b);}
.char-card__title {flex: 1;color: #111;font-size: 1.125rem;font-weight: 700;line-height: 1.2;}
.char-card__type {flex-shrink: 0;padding: 0.5rem 1rem;border-radius: 0.5rem;background: var(--ktf-color);color: var(--tr-text);font-size: 0.875rem;font-weight: 700;}
.char-card__params {margin: 0;font-size: 0.8125rem;}
.char-card__params > div {display: flex;justify-content: space-between;gap: 1rem;padding: 0.4375rem 0;}
.char-card__params > div + div {border-top: 1px solid var(--tr-line);}
.char-card__params dt {color: var(--tr-muted);font-weight: 600;}
.char-card__params dd {margin: 0;font-weight: 600;text-align: right;}
.char-card__params .abbr {cursor: help;}

/* ---------- Положение ---------- */
.reg__actions {display: flex;flex-wrap: wrap;align-items: center;gap: 0.5rem 1.5rem;margin-bottom: 1rem;}
.reg__actions:not(:has(> *)) {display: none;}
.reg-grid {display: grid;grid-template-columns: 1fr 1fr;gap: 1rem;}
.reg-stack {display: grid;gap: 1rem;}
.reg-card {padding: 1.125rem 1.5rem;background: var(--tr-card-bg);box-shadow: none;display: flex;gap: 1.25rem;}
.reg-card--wide {grid-column: 1 / -1;}
.reg-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.75rem;
	height: 2.75rem;
	color: var(--tr-text);
}
.reg-card__icon svg {width: 100%; height: 100%;}
.reg-card__body {flex: 1;min-width: 0;}
.reg-card__title {margin: 0.25rem 0 0.375rem !important;color: var(--tr-text);font-size: 1.125rem !important;font-weight: 700;line-height: 1.25;}
.reg-card__name {margin: 0 0 0.375rem;color: #111;font-size: 0.9375rem;}
.reg-card__text {font-size: 0.8125rem;line-height: 1.5;}
.reg-card__text p {margin: 0 0 0.5rem;}
.reg-card__text p:last-child {margin-bottom: 0;}

/* контакты: значки телефона/почты/адреса, пустые строки не показываем */
.reg-contacts {margin: 0 !important;padding: 0;list-style: none;font-size: 0.75rem;color: var(--tr-muted);}
.reg-contacts li {position: relative;margin: 0 0 0.25rem !important;padding-left: 1.25rem !important;}
.reg-contacts li::before {content: '\f095' !important;position: absolute !important;left: 0 !important;top: 0;display: block !important;width: auto !important;height: auto !important;margin: 0 !important;border: 0 !important;background: none !important;color: var(--tr-text) !important;font-family: 'Font Awesome 5 Pro' !important;font-weight: 300 !important;}
.reg-contacts li.email::before {content: '\f0e0' !important;}
.reg-contacts li.address::before {content: '\f3c5' !important;}
.reg-contacts li:empty {display: none;}

/* параметры: колонки с разделителями */
.reg-cols {display: grid;grid-template-columns: auto auto 1fr;gap: 0;padding-top: 0.75rem;border-top: 1px solid var(--tr-line);font-size: 0.8125rem;}
.reg-cols > div {padding: 0 1.25rem;}
.reg-cols > div:first-child {padding-left: 0;}
.reg-cols > div + div {border-left: 1px solid var(--tr-line);}
.reg-cols h4 {margin: 0 0 0.375rem !important;color: var(--tr-text);font-size: 0.875rem !important;font-weight: 700;}
.reg-cols h5 {margin: 0 0 0.25rem !important;color: var(--tr-text);font-size: 0.75rem !important;font-weight: 700;}
.reg-cols p {margin: 0;color: var(--tr-muted);}
.reg-cols--inner {grid-template-columns: 1fr 1fr;padding-top: 0.5rem;}
.reg-cols--inner > div {padding: 0 1rem;}
.reg-cols__grid > h4 {padding-bottom: 0.25rem;}

/* ключевые даты */
.key-dates {display: grid;grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));padding-top: 0.75rem;border-top: 1px solid var(--tr-line);}
.key-date {display: flex;flex-direction: column;align-items: center;gap: 0.375rem;padding: 0.25rem 0.75rem;text-align: center;}
.key-date + .key-date {border-left: 1px solid var(--tr-line);}
.key-date b {color: var(--tr-text);font-size: 0.9375rem;line-height: 1.25;}
.key-date span {color: var(--tr-muted);font-size: 0.75rem;line-height: 1.3;}
.key-date:has(b:empty) {display: none;}

/* взнос и штраф */
.reg-card--fees {flex-direction: column;gap: 0;}
.reg-fee {display: flex;align-items: center;gap: 1.25rem;padding: 0.75rem 0;}
.reg-fee + .reg-fee {border-top: 1px solid var(--tr-line);}
.reg-fee .reg-card__icon {width: 3.5rem; height: 3.5rem;}
.reg-fee span {flex: 1;color: var(--tr-text);font-size: 1.125rem;font-weight: 700;}
.reg-fee b {color: var(--tr-text);font-size: 1.25rem;font-weight: 800;white-space: nowrap;}

@media (max-width: 991.98px) {
	.tour-hero {padding: 1.5rem;}
	.tour-hero__top {grid-template-columns: 1fr;}
	.tour-hero__logos {justify-content: center;}
	.tour-hero__logo:first-child {padding-left: 0;border-left: 0;}
	.tour-hero__stats {display: grid;grid-template-columns: 1fr 1fr;gap: 1rem;}
	.tour-hero__stats li, .tour-hero__stats li + li {padding: 0;border: 0;}
	.reg-grid, .char-cards {grid-template-columns: 1fr;}
}
@media (max-width: 575.98px) {
	.tour-hero {padding: 1.25rem 1rem;}
	.tour-hero__logo > span {width: 4.5rem;height: 4.5rem;}
	.tour-hero__stats {grid-template-columns: 1fr;}
	.reg-card {padding: 1rem;gap: 0.875rem;}
	.reg-card__icon {width: 2rem;font-size: 1.75rem;}
	.reg-cols, .reg-cols--inner {grid-template-columns: 1fr;gap: 0.75rem;}
	.reg-cols > div, .reg-cols--inner > div {padding: 0;border: 0 !important;}
	.key-dates {grid-template-columns: 1fr 1fr;row-gap: 0.75rem;}
	.key-date + .key-date {border-left: 0;}
	.char-card__head {flex-wrap: wrap;}
}

/* ---------- Организаторы ---------- */
/* главная карточка: лого + инфо */
.org-main {gap: 1.5rem;}
.org-main__logo {flex-shrink: 0;width: 7.5rem;display: flex;align-items: flex-start;}
.org-main__logo img {width: 100%;height: auto;border-radius: 0.75rem;object-fit: contain;}
.org-main__body {flex: 1;min-width: 0;}
.org-main .reg-card__title {font-size: 1.25rem !important;text-transform: uppercase;}
.org-main__dir {margin: 0 0 1rem;color: #111;font-size: 0.9375rem;}
.org-main__dir span {color: var(--tr-muted);font-weight: 600;}
/* если директора нет — строку прячем */
.org-main__dir:has(span:only-child) {display: none;}

/* строка контактов организатора: 4 колонки с разделителями */
.org-contacts {display: flex;flex-wrap: wrap;gap: 0;padding-top: 1rem;border-top: 1px solid var(--tr-line);}
.org-contact {display: flex;align-items: center;gap: 0.75rem;padding: 0.25rem 1.25rem;flex: 0 1 auto;}
.org-contact + .org-contact {border-left: 1px solid var(--tr-line);}
.org-contact:first-child {padding-left: 0;}
.org-contact__val {display: flex;flex-direction: column;min-width: 0;}
.org-contact__val b {color: #111;font-size: 0.9375rem;font-weight: 600;white-space: nowrap;}
.org-contact__val small {color: var(--tr-muted);font-size: 0.75rem;}
.org-contact__icon {display: inline-flex;flex-shrink: 0;width: 2rem;height: 2rem;color: var(--tr-text);}
.org-contact__icon svg {width: 100%;height: 100%;}
/* пустой контакт (нет значения) — скрыть ячейку целиком */
.org-contact:has(b:empty) {display: none;}

/* подзаголовок «Ответственные лица» */
.org-subtitle {margin: 1.75rem 0 1rem !important;color: var(--tr-text);font-size: 1.375rem;font-style: italic;font-weight: 800;}

/* роль над именем в карточке ответственного лица */
.org-role {margin: 0.25rem 0 0.125rem;color: var(--tr-muted);font-size: 0.8125rem;}
.reg-card:has(.org-role) .reg-card__title {margin-top: 0 !important;padding-bottom: 0.5rem;border-bottom: 1px solid var(--tr-line);margin-bottom: 0.625rem !important;}

/* факс-иконка в списке контактов (как телефон/почта) */
.reg-contacts li.fax::before {content: '\f1ac' !important;}

@media (max-width: 767px) {
	.org-main {flex-direction: column;gap: 1rem;}
	.org-main__logo {width: 5rem;}
	.org-contact, .org-contact:first-child {flex: 1 1 100%;padding: 0.5rem 0;border-left: 0;}
	.org-contact + .org-contact {border-top: 1px solid var(--tr-line);}
}

/* ---------- Арена ---------- */
/* контакты арены: 3 колонки × 2 ряда (переопределяем flex организатора) */
.arena-contacts {display: grid !important;grid-template-columns: repeat(3, 1fr);row-gap: 0;}
.arena-contacts .org-contact {padding: 0.625rem 1.25rem;}
/* вертикальные разделители: убираем border от flex-версии, ставим по колонкам */
.arena-contacts .org-contact {border-left: 1px solid var(--tr-line);}
.arena-contacts .org-contact:nth-child(3n+1) {border-left: 0;padding-left: 0;}
/* горизонтальный разделитель между рядами */
.arena-contacts .org-contact:nth-child(n+4) {border-top: 1px solid var(--tr-line);}
.arena-contacts .org-contact__val b {white-space: normal;}   /* адрес/email могут переноситься */

/* карточка описания */
#arena .owl-carousel {padding-top: 1.125rem}
.arena-descr .reg-card__text {font-size: 0.875rem;line-height: 1.6;}
.arena-descr .reg-card__text ul {margin-bottom:0;}


/* карусель фото: скругление и единый вид */
.arena-photos {border-radius: var(--img-border-radius, 1.25rem);overflow: hidden;}
.arena-photos .item img {display: block;width: 100%;height: auto;object-fit: cover;}

@media (max-width: 767px) {
	.arena-contacts {grid-template-columns: 1fr !important;}
	.arena-contacts .org-contact, .arena-contacts .org-contact:nth-child(3n+1) {padding: 0.5rem 0;border-left: 0;}
	.arena-contacts .org-contact:not(:first-child) {border-top: 1px solid var(--tr-line);}
}

/* ---------- Списки (заявочные листы) ---------- */
/* строка-заголовок группы: «Основной турнир», «Квалификационный турнир», «Дозаявленные игроки».
   Фон красим через --bs-table-bg-state, иначе в полосатой таблице BS5 цвет наложится на полосу. */
:is(.content_for_ktt, .div_forsite) .table > tbody > tr > td.spiski-claim-name {
	--bs-table-bg-state: color-mix(in srgb, var(--theme-color, #c6d9f0) 30%, #fff);
	color: var(--tr-text);
	font-weight: 600;
	text-align: center;
	text-transform: none;
	padding: 0.5rem;
}
/* строка позднего отказа — оранжевый статус (не зависит от темы) */
:is(.content_for_ktt, .div_forsite) .table > tbody > tr.spiski-late_repudiation > td {
	--bs-table-bg-state: #ffd9c7;
	color: #7a2e00;
}
/* ячейка «место» (№) — крупная, по центру по вертикали */
:is(.content_for_ktt, .div_forsite) .table > tbody > tr > td.place {vertical-align: middle;font-size: 1.25rem;font-weight: 700;}
:is(.content_for_ktt, .div_forsite) .table.table-middle > tbody > tr > td {vertical-align: middle;}

/* ---------- Сетки: обёртка PDF ---------- */
.pdf-frame {border-radius: var(--img-border-radius, 1.25rem);overflow: hidden;box-shadow: var(--tr-card-shadow, 0 0.125rem 0.75rem rgba(0,0,0,.07));background: #fff;}
.pdf-frame iframe, .pdf-frame embed, .pdf-frame object {display: block;width: 100%;height: 80vh;min-height: 600px;border: 0;}

/* отступ у ссылки «Скачать» над PDF */
#setki .docs-ktt {margin-bottom: 1rem !important;}








/* старые блоки характеристик (если где-то ещё используются) */
:is(.content_for_ktt, .div_forsite) .character {margin-bottom: 1.875rem;padding: 0.9375rem;overflow: hidden;border-radius: var(--tr-card-radius, 0.75rem);background: var(--tr-card-bg, #fff);box-shadow: 0 0.125rem 0.75rem rgba(0,0,0,.07);}
:is(.content_for_ktt, .div_forsite) .character-title {padding-bottom: 0.9375rem;color: var(--tr-text);font-size: 1.25rem;font-weight: 700;}
:is(.content_for_ktt, .div_forsite) .character-param {float: left;width: 50%;overflow: hidden;font-size: 0.875rem;line-height: 1.875rem;}


/* ---------- печать «Положения»: только карточки, без сайта и других вкладок ---------- */

/* ======================================================================
   ЕДИНАЯ ПЕЧАТЬ (Положение + Сетки + любая вкладка турнира).
   Печать со страницы САЙТА. display:none на сайтовый хром (без visibility).
   Сетки: показываем ВСЕ стадии активной категории постранично.
   ====================================================================== */
@media print {
	@page {margin: 10mm;}

	/* ---- сайтовый хром и служебное — убрать ---- */
	header, footer,
	.breadcrumb, .partners, .noprint,
	.tour-hero, .sportcms-podmenu, .nav-tabs,
	.content > .container > h1, .theme-switcher {display: none !important;}

	/* сброс отступов контейнеров — чтобы контент был наверху без пустот */
	main, .content, .content-padding, .sportcms-content, .container, .div_forsite {padding: 0 !important; margin: 0 !important;}

	/* печатаем только АКТИВНУЮ верхнюю вкладку турнира */
	.div_forsite > .tab-content > .tab-pane:not(.active) {display: none !important;}

	/* ===================== СЕТКИ ===================== */
	/* только активная категория (Юноши/Девушки, одиночка/пара) */
	.setki-ploff:not(.active) {display: none !important;}
	/* показываем ВСЕ стадии активной категории, каждую с новой страницы */
	.setki-ploff.active .tab-content.not-group > .tab-pane {display: block !important; opacity: 1 !important;}
	.setki-ploff.active .tab-content.not-group > .tab-pane + .tab-pane {page-break-before: always;}
	.playoff {padding-top: 0 !important; min-height: 0 !important;}

	/* ===================== ПОЛОЖЕНИЕ ===================== */
	/* вернуть экранные карточки в печать (на них класс .noprint) */
	#polojenie .reg-screen {display: block !important;}

	/* бланк с лого/подписью — показать */
	#polojenie .d-none.d-print, #polojenie .d-print {display: block !important; margin-bottom: 8px !important; font-size: 11px !important;}
	#polojenie .d-print img {max-height: 70px !important;}

	/* контакты в 2 колонки, компактно */
	#polojenie .reg-grid {display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 5px !important; align-items: start !important;}
	#polojenie .reg-stack {gap: 5px !important;}
	#polojenie .reg-card--wide {grid-column: 1 / -1 !important;}

	#polojenie .reg-screen {font-size: 0.625rem; line-height: 1.2;}
	#polojenie .reg-card {box-shadow: none !important; break-inside: avoid; padding: 0.3rem 0.55rem !important; gap: 0.75rem !important; margin-bottom: 4px !important;}
	#polojenie .reg-card__icon {width: 2rem !important; height: 2rem !important;}
	#polojenie .reg-fee .reg-card__icon {width: 2.25rem !important; height: 2.25rem !important;}
	#polojenie .reg-card__title, #polojenie .reg-cols h4 {font-size: 0.625rem !important; margin: 0 0 0.1875rem !important;}
	#polojenie .reg-card__name {font-size: 0.625rem !important; margin-bottom: 0.375rem !important;}
	#polojenie .reg-fee {padding: 0.375rem 0 !important;}
	#polojenie .reg-fee span, #polojenie .reg-fee b {font-size: 0.625rem !important;}
	#polojenie .key-date b {font-size: 0.625rem !important;}
	#polojenie .key-dates, #polojenie .reg-cols {padding-top: 0.25rem !important;}
	#polojenie .reg-card__text, #polojenie .reg-cols p {line-height: 1.2; font-size: 0.625rem;}
	#polojenie .reg-card__text p {margin-bottom: 0.1rem !important;}
	#polojenie .reg-card__text p:last-child {margin-bottom: 0 !important;}
	#polojenie .reg-contacts, #polojenie .reg-contacts li {margin: 0 !important; line-height: 1.3 !important;}
	#polojenie .reg-contacts li::before {line-height: 1.3 !important;}
}
