/* ============================================================
   SportScorpion — Modern CSS (test build)
   Подключается только для тест-аккаунта через TBasePage::Init()
   ============================================================ */

/* ── CSS Variables ── */
:root {
    --c-primary:     #1a56a0;
    --c-primary-d:   #103d7a;
    --c-accent:      #2d9cdb;
    --c-accent-l:    #e8f4fd;
    --c-bg:          #f0f2f5;
    --c-surface:     #ffffff;
    --c-border:      #d0dae8;
    --c-border-l:    #e8eef7;
    --c-text:        #1a2540;
    --c-text-2:      #4a5568;
    --c-text-3:      #8898a8;
    --c-header-bg:   #1a2f5a;
    --c-menu-bg:     #1e3a6e;
    --c-left-bg:     #f5f7fb;
    --c-th-bg:       #e8eef7;
    --c-tr-hover:    #f4f8ff;
    --c-success:     #27ae60;
    --c-success-l:   #eafaf1;
    --c-danger:      #c0392b;
    --c-danger-l:    #fdecea;
    --c-today:       #fff3cd;
    --c-hilev:       #fef9e7;
    --c-registered:  #e8faf0;
    --radius:        6px;
    --radius-lg:     10px;
    --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
    --shadow:        0 2px 12px rgba(0,0,0,.10);
    --shadow-lg:     0 4px 24px rgba(0,0,0,.13);
    --font:          'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-size:     14px;
    --transition:    0.18s ease;
}

@font-face {
  font-family: "Montserrat";
  src: local("O"),  url("Montserrat/Montserrat-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal; }
@font-face {
  font-family: "Montserrat";
  src: local("O"),  url("Montserrat/MontserratLight.ttf") format("truetype");
  font-weight: 300;
  font-style: normal; }
@font-face {
  font-family: "Montserrat";
  src: local("O"),  url("Montserrat/Montserrat-Medium.ttf") format("truetype");
  font-weight: 600;
  font-style: normal; }
@font-face {
  font-family: "Montserrat";
  src: local("O"),  url("Montserrat/Montserrat-Light.ttf") format("truetype");
  font-weight: 700;
  font-style: normal; }

/* ── Reset & Base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; min-height: 100%; }

body {
    font-family: var(--font);
    font-size: var(--font-size);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.5;
}

textarea {
    font-family: var(--font);
    font-size: var(--font-size);
    color: var(--c-text);
}

a, a:link, a:visited {
    color: var(--c-primary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover, a:active { color: var(--c-accent); text-decoration: underline; }

a.myself, a.myself:link, a.myself:visited { color: var(--c-success); }
a.myself:hover { color: #1a8449; }

.myself-cell { background: #f0fdf4; }

p { padding-top: 4px; }
img { border: none; max-width: 100%; }
table { border-collapse: collapse; }
select { min-width: 40px; }

input, textarea, select { box-sizing: content-box; }
input[type="text"], input[type="password"], textarea {
    background: #fff;
    border: 1px solid var(--c-border);
    color: var(--c-text);
    line-height: 1.4;
    padding: 4px 7px;
    border-radius: var(--radius);
    transition: border var(--transition), box-shadow var(--transition);
    vertical-align: baseline;
}
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: var(--c-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(45,156,219,.15);
}
input[type="text"], input[type="password"] { height: 28px; }

/* ── Layout ── */
#container {
    margin: 0 auto;
    max-width: 1200px;
    min-height: 100%;
    position: relative;
}

#content {
    width: 100%;
    height: 100%;
    background: var(--c-surface);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    table-layout: fixed;
}

.leftcol { width: 210px; }

/* ── Header ── */
#head {
    width: 100%;
    height: 160px;
     background: #002859;
    background-image: url('/pic/logo.jpg');
    background-repeat: no-repeat;
    background-position: center center;
	    
    position: relative;
    overflow: hidden;
	margin-bottom: 20px;
}
#head::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, transparent 60%);
    pointer-events: none;
}

.shapka { display: block; width: 100%; overflow: hidden; height: 0; overflow: visible; text-align: center; }
.shapka a { display: block; margin: 0 auto; width: 380px; height: 105px; position: relative; top: 28px; }
.shapka img { display: none; }

#headright {
    float: right;
    height: 160px;
    width: 380px;
    padding: 0;
    position: relative;
    z-index: 2;
}

#userinfo {
    position: relative;
    width: 290px;
    right: 0;
    left: 100px;
    top: 0;
    text-align: center;
    padding: 10px;
    color: #e8f0ff;
    z-index: 1000;
}
#userinfo a:link, #userinfo a:visited { color: #fbbf24; }
#userinfo a:hover { color: #fde68a; text-decoration: none; }

.plinks { padding-top: 5px; padding-bottom: 3px; }

.site-subname {
    position: absolute;
    left: 0; right: 0;
    z-index: 10;
    text-align: center;
    top: 126px;
}
.site-subname span {
    position: relative;
    left: 12px;
    font-size: 11px;
    color: rgba(200,220,255,.65);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .08em;
}

/* ── Top Menu ── */
#topmenu {
    padding: 0 16px;
    background: var(--c-menu-bg);
    clear: both;
    list-style: none;
    height: 40px;
    display: flex;
    align-items: stretch;
    position: relative;
    z-index: 100;
}
#topmenu li { position: relative; display: flex; align-items: stretch; }
#topmenu a:link, #topmenu a:visited, #topmenu a:active {
    display: flex;
    align-items: center;
    padding: 0 18px;
    text-decoration: none;
    font-weight: 600;
    color: #c8d8f0;
    font-size: 13px;
    letter-spacing: .01em;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
#topmenu a:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
    text-decoration: none;
}
#top { }

/* ── Left Sidebar ── */
#left {
    height: 100%;
    vertical-align: top;
    width: 210px;
    background: var(--c-left-bg);
    border-right: 1px solid var(--c-border-l);
}
#body { height: 100%; vertical-align: top; }
.body-inner { overflow: auto; padding-bottom: 20px; min-height: 530px; }
.print .body-inner { overflow: visible; }

#leftmenu { padding: 12px 8px; }

/* Left menu items */
.menu-block { margin-bottom: 20px; }
.menu-block ul { list-style: none; font-size: 13px; margin: 0; }
.menu-block .menu, .menu-block .mainmenu { margin: 1px 0; }
.menu-block li { display: block; }
.menu-block a {
    display: block;
    padding: 5px 8px 5px 12px;
    color: var(--c-text);
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
}
.menu-block a:hover, .menu-block a:active {
    background: var(--c-accent-l);
    color: var(--c-primary);
    text-decoration: none;
}
.menu-block li.act > a {
    background: #dbeafe;
    color: var(--c-primary-d);
    font-weight: 600;
}
.menu-block .submenu li.act > a { font-weight: 600; background: none; }
.menu-block .submenu {
    padding: 2px 0 0;
    margin: 0 0 2px 10px;
    border-left: 2px solid var(--c-border);
}

div.menuname {
    font-size: 12px;
    background: var(--c-primary);
    padding: 6px 10px;
    font-weight: 700;
    color: #fff;
    border-radius: var(--radius);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
	margin-top: 5px;
}

/* ── Main Content ── */
#main { padding: 16px 20px; }

#header, h1.header, h1#header {
    margin: 12px 12px 8px;
    color: #fff;
    background: var(--c-primary);
    font-weight: 700;
    font-size: 15px;
    padding: 8px 20px;
    border-radius: var(--radius);
    letter-spacing: .01em;
}

.subheader {
    margin: 12px 0 8px;
    color: #fff;
    background: var(--c-primary);
    font-weight: 700;
    font-size: 13px;
    padding: 7px 20px;
    border-radius: var(--radius);
}
.subheader a:link, .subheader a:visited { color: #e0eeff; }
.subheader a:hover { color: #fde68a; }
.subheader.hm25 { margin-bottom: 25px; }

a.fllink {
    display: block;
    float: right;
    font-size: 12px;
    font-weight: 600;
    padding: 1px 6px;
    color: rgba(255,255,255,.8);
}
a.fllink:hover { color: #fff; text-decoration: none; }

/* ── Footer ── */
#foot {
    border-top: 2px solid var(--c-border);
    background: var(--c-left-bg);
    padding: 16px;
    min-height: 60px;
}
.footer-info {
    text-align: right;
    font-size: 11px;
    color: var(--c-text-3);
    line-height: 1.8;
}
.footer-info a { color: var(--c-text-3); }
.footer-info a:hover { color: var(--c-primary); }

/* ── Tables — sTable (основные списки) ── */

/* Обёртка для горизонтального скролла на мобильных */
table.sTable {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    border: none;
    border-collapse: collapse;
    min-width: 0;
}

/* При обычном отображении возвращаем table */
@media (min-width: 700px) {
    table.sTable {
        display: table;
        overflow-x: visible;
        border: 1px solid var(--c-border);
        border-radius: var(--radius);
        overflow: hidden;
    }
}

table.sTable th {
    border: 1px solid var(--c-border);
    font-weight: 600;
    color: var(--c-text-2);
    background: var(--c-th-bg);
    text-align: center;
    padding: 8px 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
}
table.sTable td {
    border: 1px solid var(--c-border-l);
    padding: 7px 10px;
    font-weight: normal;
    font-size: 13px;
}
table.sTable tr:hover td { background: var(--c-tr-hover); }
table.sTable tr:nth-child(even) td { background: #fafbff; }
table.sTable tr:nth-child(even):hover td { background: var(--c-tr-hover); }

table.sTable td.sep {
    border-top: 2px solid var(--c-border);
    padding: 4px;
    font-size: 12px;
    background: var(--c-th-bg);
    font-weight: 700;
    color: var(--c-text-2);
    text-align: center;
}
table.sTable .stage-gr { font-weight: 700; font-size: 12px; }

/* Зарегистрирован */
tr.registered > td,
table.sTable tr.registered td {
    background: var(--c-registered) !important;
}
tr.registered:hover > td,
table.sTable tr.registered:hover td {
    background: #d5f5e3 !important;
}

/* Сегодня / высокий уровень */
.mainpage-block-item.today a,
.sTable .today a { font-weight: 700; color: #b45309; }

.mainpage-block-item.hilev a,
.sTable .hilev a { font-weight: 700; }

table.sTable .swr-best,
table.sTable td.swr-best { font-weight: 700; }

/* ── grTable / resTable ── */
table.grTable,
table.resTable {
    margin: 0 auto 20px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--c-border);
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
@media (min-width: 700px) {
    table.grTable { display: table; overflow-x: visible; width: 450px; }
    table.resTable { display: table; overflow-x: visible; }
}
.wide table.resTable { width: 95%; }

table.grTable th, table.resTable th {
    border: 1px solid var(--c-border);
    padding: 7px 10px;
    background: var(--c-th-bg);
    color: var(--c-text-2);
    font-size: 12px;
    text-align: center;
    font-weight: 700;
}
table.grTable th a, table.resTable th a { color: var(--c-text-2); font-size: 12px; font-weight: 700; }
table.grTable .but, table.resTable .but { padding: 3px 5px; width: 20px; text-align: center; }
table.grTable .xbut, table.resTable .xbut { padding: 3px 5px; text-align: center; }
table.grTable td, table.resTable td {
    padding: 5px 7px;
    color: var(--c-text);
    font-size: 13px;
    text-align: left;
    border: 1px solid var(--c-border-l);
}
table.resTable th { text-align: center; }
table.resTable td { text-align: center; }
table.resTable td.name { text-align: left; }

table.grTable th.smaller, table.resTable th.smaller {
    font-size: 11px; padding: 4px 5px; font-weight: normal;
}
table.grTable th.smaller a, table.resTable th.smaller a { font-size: 11px; font-weight: normal; }

/* ── miTable ── */
table.iTable, table.miTable {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
}
table.miTable { margin: 0 auto; }
table.iTable th, table.miTable th {
    border: 1px solid var(--c-surface);
    font-weight: 600;
    color: var(--c-text-2);
    background: var(--c-th-bg);
    text-align: left;
    padding: 7px 12px;
    font-size: 13px;
}
table.iTable td, table.miTable td {
    background: #f7f9ff;
    border: 1px solid var(--c-surface);
    padding: 6px 12px;
}
table.miTable th { width: 200px; font-size: 14px; }
table.miTable td { width: 15px; text-align: center; font-weight: 700; }
table.miTable .ma_name1 { text-align: right; }
table.miTable .ma_name2 { text-align: left; }
table.miTable .sm_info { font-weight: normal; text-align: right; }
table.miTable .overtime { padding-left: 15px; font-size: 12px; font-weight: normal; }
.ma_win { font-weight: 700; }
table.miTable .res { font-weight: 700; }

/* ── Messages / Alerts ── */
div.message {
    margin: 6px 12px 8px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: var(--radius);
    text-align: center;
    color: var(--c-primary);
    background: var(--c-accent-l);
    border: 1px solid #bcd9f0;
    clear: both;
}
div.message.error, .message.error {
    background: var(--c-danger-l);
    color: var(--c-danger);
    border-color: #f0c4c4;
}
div.accessdenied {
    margin: 6px 12px 8px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: var(--radius);
    text-align: center;
    color: var(--c-danger);
    background: var(--c-danger-l);
    border: 1px solid #f0c4c4;
    clear: both;
}
div.question {
    font-weight: normal;
    padding: 8px;
    text-align: center;
    color: var(--c-primary);
}
div.qbuttons { text-align: center; padding: 4px; }
div.qbuttons input[type="submit"],
div.qbuttons input[type="button"],
div.qbuttons input[type="reset"] {
    box-sizing: border-box;
    padding: 5px 14px;
    min-width: 80px;
    cursor: pointer;
}

/* ── Navigation (pagination) ── */
.navigation {
    margin: 18px auto;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}
.navigation a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    min-width: 32px;
    background: var(--c-th-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    color: var(--c-primary);
    text-decoration: none;
    font-size: 13px;
    transition: background var(--transition), border-color var(--transition);
}
.navigation a:hover {
    background: var(--c-accent-l);
    border-color: var(--c-accent);
    text-decoration: none;
}
.navigation span {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    font-size: 13px;
    color: var(--c-text-3);
}
.navigation a.nav-active {
    background: var(--c-primary);
    border-color: var(--c-primary-d);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

/* ── Order switches ── */
.order-switch-block { display: inline-block; padding: 0 10px; position: relative; }
.order-switch-block a { text-decoration: none; color: inherit; }
.order-switch { position: absolute; display: block; top: 50%; left: 0; }
.order-switch a {
    position: relative; top: -5px; display: block;
    width: 10px; height: 11px; color: inherit;
    font-size: 8px; line-height: 11px; text-align: left;
}
.order-switch a.order-switch-asc:before { content: "\25b2"; }
.order-switch a.order-switch-desc:before { content: "\25bc"; }

/* ── Filters ── */
.filter-block {
    border: 1px solid var(--c-border-l);
    border-radius: var(--radius);
    margin: 0 auto 16px;
    padding: 12px 16px;
    background: var(--c-left-bg);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
}
.filter {
    display: inline-block;
    padding: 6px 12px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    margin: 0;
}
.filter-name { display: block; padding-bottom: 3px; font-size: 11px; color: var(--c-text-2); font-weight: 600; }
.filter input[type="text"] {
    width: 180px;
    padding: 4px 7px;
    border: 1px solid var(--c-border);
    background: #fff;
    color: var(--c-text);
    font-size: 12px;
    border-radius: var(--radius);
    height: 28px;
}
.filter.filter-long input[type="text"] { width: 280px; }
.filter-buttons { display: flex; align-items: flex-end; gap: 6px; }
.filter-buttons input {
    cursor: pointer;
    display: inline-block;
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    padding: 5px 14px;
    font-size: 12px;
    color: var(--c-primary);
    border-radius: var(--radius);
    font-weight: 600;
    transition: background var(--transition), border-color var(--transition);
    height: 32px;
}
.filter-buttons input:hover {
    background: var(--c-accent-l);
    border-color: var(--c-accent);
    color: var(--c-primary-d);
}
.filter-buttons.but-w input { min-width: 120px; }
.after-table { text-align: right; margin-top: 6px; margin-right: 2px; font-size: 12px; }

/* ── Mainpage blocks ── */
.mainpage-table { margin: 24px 0; }
.mainpage-table td { vertical-align: top; width: 50%; }
.mainpage-table .mainpage-table-l { padding-right: 12px; }
.mainpage-table .mainpage-table-r { padding-left: 12px; }

.mainpage-block {
    background: var(--c-surface);
    border: 1px solid var(--c-border-l);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.mainpage-block .mainpage-block-name { margin: 0; }
.mainpage-block-content { padding: 8px 16px; min-height: 200px; }
.mainpage-block-item { padding: 5px 0; border-bottom: 1px solid var(--c-border-l); }
.mainpage-block-item:last-child { border-bottom: none; }
.mainpage-block-all {
    margin-top: 4px;
    border-top: 1px solid var(--c-border-l);
    padding: 6px 16px;
    text-align: right;
    font-size: 12px;
}
.mainpage-header-table { margin-top: 0; }
.mainpage-header-table .subheader {
    background: var(--c-primary);
    padding: 7px 16px 7px 20px;
    border-radius: 0;
}
.mainpage-header-table .mainpage-block-all { border-top: 1px solid var(--c-border-l); }
.mainpage-header-table .mainpage-block-item { min-height: 30px; padding: 4px 0; }
.mainpage-header-table .mainpage-block-extra { display: block; font-size: 11px; color: var(--c-text-3); }
.mainpage-header-table .mainpage-block-content { min-height: 360px; }

.mainpage-rating-table { display: table; width: 100%; }
.mainpage-rating-cell { display: table-cell; }
.mainpage-rating-cell.c1 { width: 22px; }
.mainpage-rating-cell.c3 { text-align: right; width: 45px; }
.mainpage-rating-block .mainpage-block-extra { margin-left: 22px; }

/* ── Forms ── */
table.form {
    min-width: 400px;
    margin: 0 auto;
}
table.loginform { min-width: 200px; width: 200px; margin: 0 auto; }
table.form th, div.ftitle {
    padding: 10px;
    border-bottom: 1px solid var(--c-border-l);
    color: var(--c-text-2);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    background: var(--c-th-bg);
}
table.form td { padding: 7px 4px 1px 4px; font-size: 13px; }
table.form td.buttons { padding: 16px 8px 8px; text-align: center; }
.buttons-inline-forms form { display: inline-block; }
.buttons-inline-forms input { min-width: 160px; }
.bs-but { box-sizing: content-box; padding: 4px 12px; }
.bs-spaced, table.form .buttons.bs-spaced { padding-bottom: 20px; }
table.form td.error {
    border-left: 3px solid var(--c-danger);
    background: var(--c-danger-l);
    padding: 7px 10px;
}
div.error { color: var(--c-danger); }

/* fgroup */
.fgroup { width: 80%; margin: 0 auto; }
table.fgroup .fgname th {
    border: none;
    background: #dbeafe;
    padding: 7px;
    font-weight: 700;
    color: var(--c-primary-d);
}
table.fgroup td.nm {
    width: 45%; padding: 5px 18px 5px 5px;
    text-align: right; vertical-align: middle;
}
table.fgroup td.vl { padding: 6px; }
table.fgroup td.geoselect-block { padding-top: 3px; padding-bottom: 3px; }
table.fgroup td.geoselect-block select { width: 90%; }
.form select.geoselect { width: 280px; }
table.fgroup td { background: #f8f9ff; vertical-align: middle; }
table.fgroup .odd td { background: #eef1fb; }
table.fgroup .star { position: absolute; margin-left: 2px; margin-right: 2px; color: var(--c-danger); }
table.form .star { margin-left: 2px; }
.star { color: var(--c-danger); }
input.fitext {
    font-size: 13px; border: 1px solid var(--c-border);
    padding: 4px 7px; width: 90%; color: var(--c-text);
    border-radius: var(--radius);
}
input.fitext:focus { border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(45,156,219,.15); }
input.ficheck { margin-top: 2px; margin-bottom: 2px; }
.fitext.dd, .fitext.dm { width: 28px; }
.fitext.dy { width: 44px; }
.fgroup .fcaptcha td { background: #eef1fb; }
.fgroup .fnote {
    border-top: 2px solid #dbeafe;
    background: #f8f9ff;
    padding: 6px 40px 8px;
    text-align: center;
}
.fgroup .fgbtn {
    background: #f8f9ff;
    padding: 12px 40px;
    text-align: center;
}
.fitext.captcha { width: 60px; margin-top: 5px; }
.fgroup .fgbtn input {
    border: 1px solid var(--c-border);
    background: var(--c-th-bg);
    padding: 7px 18px;
    font-weight: 700;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}
.fgroup .fgbtn input:hover { border-color: var(--c-accent); background: var(--c-accent-l); }
.fgroup .fgbtn input:active { background: #d0ecfa; }

.ferrorsh {
    margin-top: 20px; padding: 8px 40px;
    background: var(--c-danger-l); font-weight: 700;
    border-radius: var(--radius);
}
ul.ferrors {
    background: #fdf3f3; padding: 8px 40px;
    margin-bottom: 20px; list-style: disc outside;
    border-radius: var(--radius);
}
ul.ferrors li { color: var(--c-danger); padding: 2px 0 2px 2px; margin-left: 15px; }
ul.ferrors li span.ername { text-decoration: underline; }

/* fform */
table.fform { margin: 0 auto; width: 460px; }
table.fform.fform-l { width: auto; }
table.fform th { padding: 6px 4px; text-align: center; font-weight: 700; }
table.fform td { padding: 6px 4px; text-align: right; }
table.fform td.fname { text-align: left; width: 130px; }
table.fform td.fmes { color: var(--c-text-2); text-align: center; }
table.fform td.fpad { padding-bottom: 16px; }
table.fform td.fstate { color: var(--c-text-2); text-align: left; }
table.fform td.fstate label { display: block; cursor: pointer; }
table.fform input.fbutton { margin-left: 10px; width: 80px; }
table.fform td.fbutton { width: 100px; }

/* smallform / normalform */
.normalform { margin: 6px auto; padding: 6px 0 4px; background: #f0f2f5; border-radius: var(--radius); }
.smallform { margin: 6px auto; width: 520px; padding: 6px 0 4px; background: #f0f2f5; border-radius: var(--radius); }
.smallform.sftbl { display: table; }
.smallform.sftbl > form { display: table-row-group; }
.smallform.sftbl .sfline { display: table-row; }
.smallform.sftbl .sfline > div { float: none; width: auto; display: table-cell; vertical-align: middle; }
.sftbl input[type="text"] { width: 150px; }
.sftbl input[type="submit"], .sftbl input[type="button"] { box-sizing: border-box; padding: 0 5px; }
.smallform.sftbl .sfline > .sfbtn { width: 1%; white-space: nowrap; overflow: visible; }
.sfline { clear: both; margin: 4px 0; }
.sfline div { height: 22px; padding: 3px 10px; }
.sfline .sfnam { padding: 6px 10px; float: left; width: 155px; }
.sfval select { width: 50%; }
.cfform select { width: 155px; }

/* miniform */
.miniform { text-align: right; padding: 10px; }
.miniform .button, .smallform .button, .normalform .button, .miTable .button { margin: 0 10px; }
.fsett { margin: 6px auto; padding: 10px 30px 20px; width: 260px; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.fsett2 { margin: 6px auto; padding: 10px 30px 20px; width: 620px; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.fsett2 .nmvl-table { margin-left: 30px; margin-top: 4px; margin-bottom: 4px; padding: 0; }
.fsett2 i { font-style: normal; font-weight: 700; color: var(--c-danger); margin-left: 3px; }
.ppc-note { font-size: 11px; margin-left: 6px; margin-top: 6px; padding: 4px; }
.ppc-note i { margin-left: 0; }
.nmvl-table { display: table; }
.nmvl-table .nmvl { display: table-row; }
.nmvl-table .nm, .nmvl-table .vl { display: table-cell; vertical-align: top; padding-bottom: 5px; }
.nmvl-table .nm { padding-right: 10px; vertical-align: middle; }
.fsett input.checkbox, .fsett2 input.checkbox { position: relative; top: 1px; }
.fsett label, .fsett2 label { cursor: pointer; }

/* ── Login / iden ── */
.idenHead {
    font-weight: 700; padding: 6px 40px; text-align: left;
    color: #fff; background: var(--c-primary); clear: both;
    border-radius: var(--radius) var(--radius) 0 0;
}
.iden { padding: 6px 40px; background: #f7f9ff; border-bottom: 1px solid var(--c-border-l); }
.idenName { padding: 4px 0; font-size: 16px; font-weight: 700; }
.idenLink { padding: 3px 0; }
.idenBottom { margin-top: 20px; padding: 8px 40px; margin-bottom: 10px; background: var(--c-th-bg); border-radius: var(--radius); }

.newlogin { width: 90%; margin: 20px auto; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-border); }
.newlogin td, .newlogin th { padding: 6px; vertical-align: top; }
.newlogin th { padding: 7px; color: #fff; background: var(--c-primary); font-weight: 700; }
.newlogin td.l1 { border-right: 1px dashed var(--c-border); }
.newlogin th.l1 { border-right: 1px solid rgba(255,255,255,.3); }
.newlogin td.l2 { height: 300px; overflow: hidden; }
.newlogin iframe, .newlogin .iframe, #lz_loginza { width: 359px; height: 300px; overflow: hidden; margin: 0 auto; }
#lz_loginza.lz_loading { width: 349px; height: 100px; color: #666; padding: 10px; }
.newlogin .loginform th { display: none; }
.newlogin .loginform { margin-top: 20px; }
.newlogin .loginform td { padding: 4px; vertical-align: middle; }
.newlogin .buttons input { padding: 3px; width: 80px; }

#langs_block { height: 50px; clear: all; }
#langs { float: right; margin-top: 6px; margin-right: 10px; }
#langs td { padding: 2px 8px; border-right: 1px solid rgba(255,255,255,.2); }
#langs td.last { border-right: none; }
#langs td a:link, #langs td a:visited { color: #c8d8f0; }
#langs td a:hover { color: #fff; }
#langs td a.act { font-weight: 700; color: #fff; }

/* ── Match results ── */
.ma_name1, table.grTable .ma_name1 { text-align: right; border-right: none; }
.ma_name_sep, table.grTable .ma_name_sep {
    text-align: center; width: 6px;
    padding-left: 0; padding-right: 0;
    border-left: none; border-right: none;
}
.ma_name2, table.grTable .ma_name2 { text-align: left; border-left: none; }
.ma_result_a, table.grTable .ma_result_a { width: 80px; text-align: center; }
.ma_result_b, table.grTable .ma_result_b { width: 80px; text-align: center; background: #f0f2f5; }
.ma_result_c { width: 80px; }
.ma_result_c input { width: 28px; }
.ma_result_c input.checkbox { width: auto; position: relative; margin: 0 2px; top: 2px; }
.ma_result_c input.button {
    background: var(--c-border); border: 1px solid var(--c-border);
    width: 15px; font-size: 10px; margin-left: 1px;
}
.ma_date, table.grTable .ma_date { width: 75px; text-align: center; }
table.grTable .overtime, table.grTable .techdef, .ft_score .techdef {
    display: block; font-size: 8px; 
    font-weight: normal; color: var(--c-text-3);
    margin-top: -2px; line-height: 8px; width: 43px; text-align: right;
}
.gr_match table.grTable .techdef {
    display: inline; width: auto; margin-top: 6px; margin-left: 4px;
}
.ft_score .techdef { left: 0; right: 0; text-align: center; width: auto; }
.techdef-cell { font-size: 11px; position: relative; top: -4px; }
.techdef-cell a { text-decoration: none; color: var(--c-text); }
table.grTable a.ma_xlink {
    display: block; 
    margin-top: -6px; margin-left: 36px;
    width: 9px; height: 9px;
    background: url('/pic/view8x8.gif') left bottom no-repeat;
}
.gr_match .buttons {
    padding: 0 24px; text-align: right;
    position: relative; top: -15px; width: 95%;
}
.ma_win { font-weight: 700; }
td.ft_score { white-space: nowrap; }
td.ft_sep { background: #eef1fb; }
table.resTable .moved, .results .moved, .ma_result_b .moved {
    font-weight: 700; color: brown; cursor: default;
}
table.resTable .moved {
    position: relative; overflow: visible;
    display: inline-block; width: 4px;
}

/* ── Blocks & content ── */
.results { overflow: auto; }
.print .results { overflow: visible; }

.stage-errors {
    position: relative; top: -10px;
    padding: 8px 20px; border-radius: var(--radius);
    background: var(--c-danger-l);
    margin-bottom: 20px; color: var(--c-danger);
    border: 1px solid #f0c4c4;
}
.stage-error-main { font-weight: 700; }
.stage-error-one { padding-left: 10px; }

.full-dsc {
    clear: both; margin-bottom: 12px;
    background: #f0f2f5; padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--c-border-l);
    overflow: hidden;
}
.full-map { clear: both; margin-bottom: 12px; overflow: hidden; border-radius: var(--radius); }
.full-map iframe { max-height: 200px; width: 100%; border-radius: var(--radius); }
.dsc-logo { float: left; margin: 0 12px 4px 0; }
.full-textarea { width: 520px; height: 100px; resize: vertical; border-radius: var(--radius); }
.full-textarea.h-short { height: 44px; }
.long-input { width: 400px; }
input.file-input, .file-input input { width: 200px; background: #f0f2f5; margin-right: 10px; }
.image-upload a { margin-right: 10px; }
.image-upload label input { margin-right: 4px; position: relative; top: 2px; }

/* ── Breadcrumbs ── */
#breadcrumbs { margin: 10px 12px 4px; padding: 0 12px; }
.print #breadcrumbs { display: none; }
.breadcrumbs-list { list-style: none; padding: 0; margin: 0; display: block; }
.breadcrumbs-list li { display: inline; font-size: 12px; color: var(--c-text-3); }
.breadcrumbs-list li.sep { font-weight: 700; margin: 0 2px; }
.breadcrumbs-list li.last { font-weight: 700; color: var(--c-text-2); }
.breadcrumbs-list a.noa { text-decoration: none; }
.breadcrumbs-h {
    padding: 8px 12px; background: #e8faf0;
    line-height: 1.5; margin: 12px 0; clear: both;
    border-radius: var(--radius); border: 1px solid #c3f0d4;
}

/* ── Error page ── */
.error-page-message {
    font-size: 22px; margin: 6px 0 12px;
    padding: 12px; background: var(--c-danger-l);
    color: #333; border-radius: var(--radius);
    border: 1px solid #f0c4c4;
}
.error-page-message i { font-style: normal; color: var(--c-danger); }
.error-page-message b { font-weight: 700; }
.error-page-links {
    background: var(--c-left-bg); margin: 10px 0;
    padding: 6px 12px; border-radius: var(--radius);
    border: 1px solid var(--c-border-l);
}
.error-page-content { margin: 10px 0 40px; min-height: 0; padding: 0 12px; }
.error-page-links a i, .error-page-links i a { font-style: normal; text-decoration: none; }

/* ── Articles ── */
.articles-list-item { margin-bottom: 12px; }
.articles-list-sep { border-bottom: 1px solid var(--c-border-l); margin-bottom: 12px; }
.articles-list-item img { float: left; margin: 0 8px 4px 0; border-radius: 4px; }
.articles-list-item h3 { font-size: 15px; margin-bottom: 5px; }
.article-full h1 { font-size: 20px; clear: both; margin-bottom: 16px; }
.article-full .img img { float: left; margin: 0 12px 6px 0; border-radius: var(--radius); }
.article-full .txt p { padding: 0; margin-bottom: 12px; }
.article-full .txt { line-height: 1.55; }
.article-full .date { position: relative; top: -10px; margin-bottom: 6px; color: var(--c-text-3); font-size: 12px; }
.article-full .author { margin: 20px 0; font-style: italic; color: var(--c-text-3); }

.article-tags-block .article-tags { padding-top: 7px; font-weight: 700; margin-bottom: 20px; font-size: 13px; }
.article-tags-block .atag {
    background: var(--c-th-bg); border-radius: 20px;
    padding: 2px 10px; display: inline-block;
    font-weight: 600; font-size: 12px;
    text-decoration: none; color: var(--c-primary);
    margin-right: 4px; border: 1px solid var(--c-border);
    transition: background var(--transition);
}
.article-tags-block .atag:hover { background: var(--c-accent-l); text-decoration: none; }

/* ── Misc ── */
.line-form {
    background: var(--c-th-bg); clear: both;
    margin: 10px 0; overflow: hidden;
    padding: 8px 12px; font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid var(--c-border-l);
}
.line-form form { float: right; }
.line-form form input {
    padding: 0; margin: 0; box-sizing: content-box;
    background: transparent; cursor: pointer; border: none;
    color: var(--c-primary); font-weight: 600;
    text-decoration: underline; vertical-align: top; margin-top: -1px;
}
.line-form form input:hover { text-decoration: none; }

.ul-chbx label { display: block; cursor: pointer; padding: 0 10px; position: relative; top: 2px; }
.ul-chbx input { cursor: pointer; }
.fbutton3 { padding: 3px 12px; }

.totals-note { font-size: 12px; font-style: italic; font-weight: normal; text-align: center; }
table td.totals-menu { border: none; text-align: left; }
.totals-menu .totals-controls { float: right; }
.totals-form .buttons input { width: 160px; }
.totals-note input, .totals-controls input { width: 160px; margin-bottom: 2px; margin-top: 9px; }
.totals-admin-message {
    padding: 20px; border: 1px solid var(--c-border);
    background: #f0f2f5; margin: 20px 0;
    text-align: center; font-weight: 700; line-height: 1.4;
    border-radius: var(--radius);
}

.chosen-add-button {
    position: absolute; right: 4px; top: 4px;
    height: 26px; width: 26px;
    border: 1px solid var(--c-border);
    background: url('/pic/buttons/add.png') no-repeat center center #fff;
    cursor: pointer; border-radius: var(--radius);
}
.exp-pts { text-align: center; width: 56px; }

.user-agreement-checkbox { display: inline-block; cursor: pointer; margin: 4px 12px; }
.user-agreement-checkbox input { position: relative; margin: 0 3px; top: 1px; }
.user-agreement-popup-back {
    position: fixed; inset: 0; z-index: 9998;
    background: rgba(0,0,0,.5); backdrop-filter: blur(2px);
}
.user-agreement-popup {
    position: fixed; left: 20%; right: 20%; top: 25%;
    background: #fff; border: 1px solid var(--c-border);
    box-shadow: var(--shadow-lg); z-index: 9999;
    border-radius: var(--radius-lg); overflow: hidden;
}
.user-agreement-popup-h { padding: 28px 20px 32px; font-size: 16px; text-align: center; }
.user-agreement-form {
    margin: 20px 0; padding: 20px 0; text-align: center;
    border-top: 1px solid var(--c-border-l);
    border-bottom: 1px solid var(--c-border-l);
}
.user-agreement-button { display: inline-block; width: 200px; margin: 0 20px; padding: 4px 0; }

.top-bnr { text-align: center; overflow: hidden; padding-top: 6px; margin-bottom: 6px; }
.bnr-subtext { text-align: right; font-size: 10px; color: var(--c-text-3); padding: 0 20px; height: 16px; }
.bnr-subtext a { color: var(--c-text-3); font-weight: 700; }

.ranks-line-item i { font-style: normal; margin-right: 4px; }
.ranks-badge { margin-left: 1px; display: inline-block; vertical-align: middle; position: relative; top: -1px; }
.ranks-circle { margin-left: 2px; display: inline-block; height: 8px; width: 8px; border-radius: 50%; }
.tour-note { font-weight: normal; font-size: 11px; }

.notot { color: var(--c-danger); cursor: help; }
.tlevel-dropped-note { color: var(--c-danger); cursor: help; }
.tlist-level { float: right; font-style: italic; font-size: 10px; color: var(--c-text-3); }
.ulist-tbest { font-size: 10px; }
.ulist-pagelink { margin: 20px; text-align: center; }
.search-select-container { position: relative; }
.ppc-note { font-size: 11px; }
p.ppc, div.ppc { padding: 4px; margin-left: 6px; }
.control { float: right; clear: right; }

/* Grids / draws */
.gr_match { position: relative; }
.gr_preform { width: 95%; margin: 10px auto 20px; }
.preform td { padding: 1px 7px 1px 0; }
.subseries-popup {
    position: absolute; box-shadow: var(--shadow-lg);
    background: #fff; z-index: 4; border-radius: var(--radius);
    border: 1px solid var(--c-border);
}
.subseries-popup .gr_match table.grTable { width: 100%; margin: 0; }
.subseries-popup table.grTable th { padding: 5px; }
.subseries-popup table.grTable th.subseries-close { padding: 0; }
.subseries-popup th.subseries-close { cursor: pointer; }
.subseries-popup th.subseries-close span {
    background: url('/pic/delete10.png') center center no-repeat;
    width: 10px; height: 10px; display: inline-block; text-align: center;
}
.gr_match, table.grTable { page-break-inside: avoid; }
.print .gr_match table.grTable td { height: 30px; }
.print .gr_match table.grTable td.ma_result_b { width: 100px; }

input.ambut {
    font-size: 8pt; background: #dbeafe;
    border: 1px solid var(--c-border); padding: 1px 6px;
    border-radius: var(--radius);
}

table.selTable { width: auto; }
table.selTable td.ma_name1 { width: auto; }
table.selTable td.ma_name2 { width: auto; }
.gr_match table.grTable { width: 95%; }
.gr_match td.botem { border-bottom: none; border-left: none; border-right: none; }

/* totalbutton */
.totalbutton-plf input.button {
    font-size: 7pt; padding: 0; border: 0; cursor: pointer;
    width: 24px; height: 24px; position: relative; top: 6px; margin-top: -4px;
}
.forcefinish-plf input.button { background: url('/pic/stop24.png'); }
.cancelfinish-plf input.button { background: url('/pic/undo24.png'); }
table.grTable .ma_result_xa { width: 45px; text-align: center; padding: 6px 0 7px; }
table.grTable .ma_result_x0 { width: 45px; text-align: center; padding: 6px 0 7px; }
table.grTable .ma_result_xb { width: 45px; text-align: center; padding: 6px 0 7px; background: #f0f2f5; }
table.grTable .ma_result_xc { width: 45px; text-align: center; padding: 6px 0 9px; font-size: 7pt; }
table.grTable .ma_result_xc input { font-size: 7pt; width: 14px; padding: 0; }
table.grTable .ma_result_xc input.button {
    position: relative; top: 1px; font-size: 7pt;
    width: 13px; height: 13px; padding: 0; border: 0;
    background: url('/pic/ok.gif'); cursor: pointer;
}
table.grTable .ma_result_xc input.checkbox { position: relative; top: 3px; margin-right: 5px; }
table.grTable .ma_result_xc label.chbx_overtime {
    font-size: 5pt; position: absolute; margin-left: -17px; margin-top: 15px;
}
table.grTable .ma_result_xa span { margin: 0 2px; }
table.grTable .ma_result_xb span { margin: 0 2px; }
table.grTable .ma_result_x0 span { margin: 0 2px; }
textarea.table_html {
    font-size: 9pt; font-family: var(--font);
    display: none; margin: 6px auto; width: 80%;
}
.overtime2 { display: inline; margin-left: 4px; font-size: 8px; }
.team-ot { padding-top: 1px; }
.team-ot .chbx_overtime { font-size: 11px; padding: 0; margin: 0; }
.ma_result_c .team-ot .checkbox { margin-right: 3px; }

/* draws */
.draws-global-container { position: relative; }
.draws-global-wrapper { position: relative; overflow: auto; overflow-x: auto; overflow-y: visible; padding: 5px 0; }
.draws-editable .draws-global-wrapper { padding-bottom: 20px; }
.draws-editable .draws-global-content { padding-top: 20px; }
.draws-global-container table { border-collapse: collapse; border-spacing: 0; }
.draws-global-container .draws-line-container.draws-first { border-collapse: separate; }
.draws-global-container td { vertical-align: middle; }
.draws-line-container { width: 100%; }
.draws-prefix-container { vertical-align: middle; position: relative; }
.draws-match-container { vertical-align: middle; position: relative; }
.draws-content { display: table; }
.draws-content-extra { min-height: 180px; }
.draws-match-wrapper { display: table-cell; vertical-align: middle; }
.draws-match-content { position: relative; padding: 5px 20px; }
.draws-first .draws-match-content { padding-left: 0; }

/* iden login oauth */
.uidens, .uidens2 { margin: 20px 0; width: 100%; }
.uidens2 { margin-top: 0; }
.uidens th, .uidens2 th { background: var(--c-primary); color: #fff; padding: 7px; font-weight: 700; }
.uidens th.lz { border-left: 1px solid rgba(255,255,255,.3); padding: 7px 0; width: 359px; }
.uidens td { vertical-align: top; text-align: left; padding: 0; }
.uidens2 td { padding: 4px 17px; }
.uidens td.lz { border-left: 1px dashed var(--c-border); padding: 10px 17px; }
.idenNo { margin-top: 10px; padding: 5px 10px 5px 40px; }
.idenAdd { padding: 5px 40px; }
.uidens .iden { background: #f0f2f5; clear: both; padding-right: 10px; min-height: 47px; border-radius: 4px; margin: 2px 0; }
.uidens .idenDel { display: inline; float: right; }
.uidens .idenDel input {
    padding: 0; margin: 0; background: transparent; border: none;
    text-decoration: underline; color: var(--c-danger);
    font-size: 12px; font-weight: normal; cursor: pointer;
}
.uidens .idenDel input:hover { text-decoration: none; color: #922b21; }
.fgroup .lz2inner { background: transparent; }
.fgroup .lz2block #lz_loginza { height: auto; }
#lz_loginza iframe { width: 359px; height: 300px; }
.fgroup .lz2block #lz_loginza iframe { height: 180px; overflow: auto; }
#main .lz2tab { width: 85%; margin-bottom: 15px; }
#main .lz2h th { background: var(--c-primary); color: #fff; }

/* com-sel */
.com-sel { padding: 20px 5px; }
.com-sel.com-sel-b1 { border-bottom: 1px dashed var(--c-border); }
.com-sel input.button { box-sizing: content-box; padding: 0 8px; }
.com-sel-table td { vertical-align: top; }
.com-sel-table td.cfform { vertical-align: middle; }
.smallform .miniform input.button { box-sizing: content-box; padding: 0 8px; }
.com-sel select { margin-top: 4px; }

/* flinks */
div.flinks, div.flinks2, div.flinks3 {
    margin-top: 10px; padding: 10px;
    border-top: 1px dotted var(--c-border); text-align: center;
}
div.flinks3 { margin-top: 0; border-top: none; text-align: right; }
div.flinks4 { padding: 0 10px; margin-bottom: 15px; border-top: none; text-align: right; }
div.flinks3 a:link, div.flinks3 a:visited { font-weight: 700; color: var(--c-text-2); }

/* table.form small */
table.form td small.sm { color: #888; font-size: 11px; font-style: italic; display: block; }
table.iTable .stat-item-value { font-weight: 700; }
table.iTable .stat-item-title { font-weight: 700; }

/* tregform */
.tregform-consent { background: var(--c-th-bg); clear: both; margin: 10px 0; overflow: hidden; padding: 8px 12px; text-align: center; border-radius: var(--radius); }
.tregform-consent label { margin: 0 40px; }
.tregform-consent input { display: inline-block; vertical-align: middle; margin-right: 6px; }
.tregform-consent span { display: inline-block; vertical-align: middle; }

/* pay */
.pay-processing a { font-weight: 700; }

/* swr */
.swr-best, table.sTable td.swr-best { font-weight: 700; }

/* finp */
.finp-tx input { width: 200px; }
.finp-range input { width: 42px; }
table.fform .finp-tx, table.fform .finp-range { text-align: left; }

/* exitform */
.exitform { padding: 0 10px 10px 0; text-align: right; width: 130px; float: right; clear: left; }
.exitform input { padding: 3px 7px; }
img.captcha { width: 60px; height: 30px; border: 1px solid var(--c-border); float: left; margin-right: 6px; display: block; position: relative; }
input.captcha { width: 45px; display: block; position: relative; margin-top: 6px; }

/* miTable label */
.miTable label { font-size: 12px; font-weight: normal; }
.miTable label input { position: relative; top: 2px; }
.miTable .ma-xparam { text-align: left; margin: 3px 0; }
.miTable .ma-xparam label { font-size: 11px; }
table.miParams { width: 440px; }
table.miParams th, table.miParams td { width: auto; text-align: center; }

/* Print */
.print #container { width: auto; }
.print #content { box-shadow: none; }
body.print { background: #fff; }
table.print { border: none !important; }
.print a { text-decoration: none !important; color: #224 !important; font-weight: 700; }
.print .ma_win a { text-decoration: underline !important; }
.print .subheader a { color: #fff !important; }

/* ══════════════════════════════════════════
   БУРГЕР-МЕНЮ (чистый CSS через checkbox)

   DOM структура:
   #container
     input#burger-toggle       ← чекбокс (скрыт)
     div#burger-menu           ← выезжающая панель
       div#burger-menu-inner   ← mainmenu + langs
     table#content
       #top → #head → .burger-btn (label)
   ══════════════════════════════════════════ */

/* Чекбокс — всегда скрыт */
.burger-toggle-input { display: none; }

/* Кнопка бургера — скрыта на десктопе */
.burger-btn {
    display: none;
    position: absolute;
    top: 14px;
    left: 14px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    cursor: pointer;
    background: rgba(255,255,255,.12);
    border-radius: var(--radius);
    z-index: 1001;
    flex-shrink: 0;
    transition: background var(--transition);
}
.burger-btn:hover { background: rgba(255,255,255,.22); }
.burger-btn span {
    display: block;
    height: 2px;
    background: #c8d8f0;
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.22s ease;
    transform-origin: center;
}

/* Анимация кнопки при открытом меню */
.burger-toggle-input:checked ~ table #top .burger-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger-toggle-input:checked ~ table #top .burger-btn span:nth-child(2) {
    opacity: 0; transform: scaleX(0);
}
.burger-toggle-input:checked ~ table #top .burger-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Панель бургер-меню */
#burger-menu {
    display: none; /* скрыта на десктопе */
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    background: var(--c-header-bg);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 4px 0 20px rgba(0,0,0,.3);
}
.burger-toggle-input:checked ~ #burger-menu {
    transform: translateX(0);
}

#burger-menu-inner {
    padding: 60px 0 20px; /* отступ сверху под кнопку */
}

/* mainmenu внутри бургер-панели */
#burger-menu .menu-block { margin-bottom: 0; }
#burger-menu .menu-block ul { display: block; padding: 0; }
#burger-menu .menu-block li { display: block; }
#burger-menu .menu-block a {
    display: block;
    padding: 11px 20px;
    color: #c8d8f0;
    font-size: 15px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}
#burger-menu .menu-block a:hover { background: rgba(255,255,255,.1); color: #fff; }
#burger-menu .menu-block li.act > a { color: #fff; background: rgba(255,255,255,.15); font-weight: 700; }
#burger-menu div.menuname {
    background: rgba(255,255,255,.08);
    color: rgba(200,220,255,.6);
    padding: 8px 20px;
    font-size: 11px;
    border-radius: 0;
    margin-bottom: 0;
}

/* Языки внутри бургер-панели */
#burger-langs {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 14px 20px;
    margin-top: 10px;
}
#burger-langs #langs_block { height: auto; }
#burger-langs #langs { display: none; } /* таблица не нужна */
#burger-langs #langs-select {
    display: inline-block;
    width: 100%;
    padding: 7px 10px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #c8d8f0;
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
}

/* Оверлей при открытом меню */
.burger-toggle-input:checked ~ table::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 999;
}

/* ЯЗЫКИ в шапке — десктоп: таблица; мобайл: скрыта (есть в бургере) */
#langs-select { display: none; }

#left .menu-block ul.mainmenu { display: block; }
#left .menu-block .menuname{ display: block; }

/* ══════════════════════════════════════════
   ТАБЛИЦЫ — горизонтальный скролл
   Не ломаем строки, просто разрешаем скролл
   ══════════════════════════════════════════ */

/* Таблицы данных всегда остаются table */
table.sTable,
table.grTable,
table.resTable {
    display: table;
}

/* Скролл через родительский контейнер */
#main {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ══════════════════════════════════════════
   АДАПТИВ — мобильные устройства
   ══════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Шапка */
    #head { height: auto; min-height: 70px; padding: 10px 0 6px; background-size: 60% auto; background-position: center 10px;  }
    #headright { float: none; width: 100%; height: auto; }
    #userinfo {
        position: static; width: auto; left: auto; top: auto;
        text-align: right; padding: 6px 12px 4px; font-size: 12px;
    }
    .shapka a { width: auto; height: 60px; top: 0; }
    .site-subname { position: static; text-align: center; margin-top: 2px; }

    /* Языки — прячем таблицу, показываем селект */
    #langs { display: none; }
    #langs-select {
        display: inline-block;
        margin: 14px 10px 0 0;
        float: right;
        padding: 3px 6px;
        border: 1px solid rgba(255,255,255,.3);
        background: rgba(255,255,255,.1);
        color: #c8d8f0;
        border-radius: 4px;
        font-size: 12px;
        cursor: pointer;
    }

    /* Бургер-кнопка — показываем */
    .burger-btn { display: flex; }

    /* Панель бургер-меню — активируем на мобильных */
    #burger-menu { display: block; }

    /* Layout — таблица в блочную модель */
    #content, table#content { display: block !important; }
    #content > tbody,
    #content > tbody > tr { display: block !important; }
    #content > tbody > tr > td { display: block !important; width: 100% !important; }
    .leftcol { width: 100% !important; }

    /* Левая колонка — скрываем полностью (меню теперь в бургере) */
    #left { display: none !important; }

    #body { width: 100% !important; }
    #main { padding: 8px 10px; }

    /* Левое меню — горизонтальная лента */
    #leftmenu { padding: 6px 8px; }
    .menu-block { margin-bottom: 8px; }
    .menu-block ul { display: flex; flex-wrap: wrap; gap: 2px; padding: 0; }
    .menu-block li { display: inline-block; }
    .menu-block > ul > li > a { padding: 4px 10px; font-size: 12px; }
    .menu-block .submenu { display: none; }
    div.menuname { padding: 4px 8px; font-size: 11px; margin-bottom: 2px; }

    /* Mainpage — две колонки в одну */
    .mainpage-table { display: block; }
    .mainpage-table > tbody,
    .mainpage-table > tbody > tr { display: block !important; }
    .mainpage-table > tbody > tr > td { display: block !important; width: 100% !important; padding: 0 0 14px 0; }

    #header, h1.header, h1#header { font-size: 14px; margin: 8px; padding: 7px 14px; }
    .subheader { padding: 6px 14px; }
    #foot { min-height: auto; }
	/* ── Mainmenu: в десктоп-сайдбаре скрываем, она живёт в бургере ── */
	#left .menu-block ul.mainmenu { display: none; } 
	#left .menu-block .menuname{ display: none; }
	/* Заголовок блока mainmenu тоже скрыть если он пустой без пунктов */
	#left .menu-block:has(ul.mainmenu:only-child) { display: none; }	
}


/* ── Переключатель дизайна ── */
.theme-switch-wrap {
    text-align: right;
    padding: 4px 0 2px;
}
.theme-switch-btn {
    display: inline-block;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.3);
    color: rgba(200,220,255,.8);
    text-decoration: none;
    transition: all 0.18s ease;
    cursor: pointer;
    white-space: nowrap;
}
.theme-switch-btn:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
    text-decoration: none;
    border-color: rgba(255,255,255,.6);
}
.theme-switch-btn--new {
    color: #fbbf24;
    border-color: rgba(251,191,36,.5);
}
.theme-switch-btn--new:hover {
    background: rgba(251,191,36,.15);
    color: #fde68a;
}



/* ── Переключатель дизайна в plinks ── */
.theme-switch-link {
    color: rgba(200,220,255,.75);
    text-decoration: none;
    font-size: inherit;
    transition: color var(--transition);
    white-space: nowrap;
}
.theme-switch-link:hover {
    color: #fff;
    text-decoration: none;
}
.theme-switch-link--new {
    color: #fbbf24;
}
.theme-switch-link--new:hover {
    color: #fde68a;
}
/* ── Тест-баннер (только для тест-аккаунта) ── 
body::before {
    content: '🔧 TEST CSS';
    position: fixed;
    bottom: 12px;
    right: 12px;
    background: #1a56a0;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 99999;
    opacity: .75;
    pointer-events: none;
    font-family: monospace;
}*/

.mainpage-block-content {
    height: auto !important;
    min-height: 0 !important;
}


/* <draws> */
.draws-global-container {
    position:relative;
}
.draws-global-wrapper {
    position:relative;
    overflow:auto;
    overflow-x:auto;
    overflow-y:visible;
    padding:5px 0;
}
.draws-editable .draws-global-wrapper {
    padding-bottom:20px;
}
.draws-editable .draws-global-content {
    padding-top:20px;
}
.draws-global-container table {
    border-collapse:collapse;
    border-spacing:0;
}
.draws-global-container .draws-line-container.draws-first {
    border-collapse:separate;
}
.draws-global-container td {
    vertical-align:middle;
}
.draws-line-container {
    width:100%;
}
.draws-prefix-container {
    vertical-align:middle;
    position:relative;
}
.draws-match-container {
    vertical-align:middle;
    position:relative;
}
.draws-content {
    display:table;
}
.draws-content-extra {
    min-height:180px;
}
.draws-match-wrapper {
    display:table-cell;
    vertical-align:middle;
}
.draws-match-content {
    position:relative;
    padding-top:5px;
    padding-bottom:5px;
    padding-left:20px;
    padding-right:20px;
}
.draws-first .draws-match-content {
    padding-left:0;
}
.draws-match-rect {
    position:relative;
    display:inline-block;
    border:1px solid var(--c-border-l);
    background:#FFF;
    z-index:3;
}
.draws-match-content .draws-placeholder-in {
    border:1px solid var(--c-border-l);
    background:#FFF;
}
.draws-match-rect.draws-selected {
    border:1px solid var(--c-border-l);
}
.draws-match-rect.ui-draggable-dragging {
    z-index:4;
}
.draws-player.ui-draggable-dragging {
    z-index:4;
}
.draws-z-top {
    z-index:4;
}
.draws-bordered td {
    border-bottom:1px dotted var(--c-border-l);
}
.draws-bordered .draws-match-edit {
    border-right:1px dotted var(--c-border-l);
    border-bottom:none;
    cursor:move;
}
.draws-score-main {
    color:#000;
    padding:2px 4px;
    border-left:1px solid var(--c-border-l);
}
.draws-score-main.draws-finished {
    background-color: #f0f2f5;
}
.draws-arrow-v-up, .draws-arrow-v-dn, .draws-arrow-h {
    position:absolute;
    background:#999;
    z-index:2;
}
.draws-arrow-hlo {
    position:absolute;
    z-index:1;
    border-left:1px dashed var(--c-border-l);
    border-bottom:1px dashed var(--c-border-l);
    top:0;
    bottom:50%;
    left:0;
    width:20px;
}
.draws-arrow-vlo {
    position:absolute;
    z-index:2;
    border-left:1px dashed var(--c-border-l);
    width:0px;
    top:25%;
    bottom:25%;
    left:-10px;
    background:#FFF;
}
.draws-arrow-v-up {
    top:50%;
    bottom:0;
    width:1px;
    right:0;
}
.draws-arrow-v-dn {
    top:0;
    bottom:50%;
    width:1px;
    right:0;
}
.draws-arrow-h {
    top:50%;
    left:0;
    right:0;
    height:1px;
}
.draws-final .draws-arrow-h {
    right:auto;
    width:20px;
}
.draws-match-loosers {
    position:relative;
    overflow:visible;
    height:0px;
    left:-10px;
    top:20px;
    display:inline-block;
}
.draws-note {
    font-size:10px;
    font-style:italic;
    color:#666;
}
.draws-match-loosers .draws-note {
    left:0;
    right:0;
    top:-9px;
    text-align:center;
    position:absolute;
}
.draws-placeholder {
    position:relative;
    display:inline-block;
}
.draws-placeholder-in {
    position:absolute;
    z-index:2;
    top:0;
    bottom:0;
    right:0;
    left:0;
}
.draws-player {
    white-space:nowrap;
    padding:2px 8px;
    position:relative;
    background:#FFF;
}
.draws-winner {
    font-weight:bold;
}
.draws-text-ph {
    color:#666;
    font-size:11px;
    cursor:default;
}
.draws-edit {
    width:16px;
    height:16px;
    background:url('/pic/movearr16.png');
}
.draws-swap .draws-match-edit .draws-edit {
    background:url('/pic/swap16.png');
}
.draws-swap.draws-player .draws-edit {
    background:url('/pic/swap16.png');
}
.draws-selected .draws-match-edit .draws-edit {
    background:url('/pic/swap16.png');
}
.draws-selected-1 .draws-match-edit {
    vertical-align:top;
}
.draws-selected-2 .draws-match-edit {
    vertical-align:bottom;
}
.draws-insert-dn {
    border-bottom:1px dashed var(--c-border-l);
}
.draws-insert-up {
    border-top:1px dashed var(--c-border-l);
}
td > .draws-edit {
    margin:0 2px;
}
.draws-match-edit {
    padding:2px 0;
}
.draws-player-edit {
    padding-right:22px;
    cursor:move;
}
.draws-player-edit .draws-edit {
    position:absolute;
    right:2px;
}
.draws-error-popup {
    display:none;
    padding:4px 12px;
    text-align:center;
    font-weight:bold;
    background:#FDD;
    color:#770000;
    position:relative;
    top:10px;
}
.draws-error .draws-error-popup {
    display:block;
}
.draws-loading-popup {
    display:none;
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    z-index:9;
}
.draws-loading .draws-loading-popup {
    display:block;
}
.draws-loading.draws-global-container {
    overflow:hidden;
}
.draws-loading-popup i {
    opacity:0.7;
    background:#999;
    display:block;
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
}
.draws-loading-popup b {
    display:block;
    position:absolute;
    z-index:9;
    top:32px;
    left:32px;
    width:32px;
    height:32px;
    background-image:url('/pic/loading128.gif');
    background-size:32px;
}
/* </draws> */