*{
    margin: 0;
    padding: 0;
}

html{
    background: white;
}

html, body {
    font-size: var(--access-font-size, 20px) !important;
}

@font-face {
    font-family: "Jeko Light";
    src: url("/static/jeko/Jeko Light.ttf");
}

@font-face {
    font-family: "JekoVariable";
    src: url("/static/jeko/Jeko Variable.ttf");
}

@font-face {
    font-family: "Jeko-Medium";
    src: url("/static/jeko/Jeko Medium.ttf");
}

@font-face {
    font-family: "Jeko-Semibold";
    src: url("/static/jeko/Jeko Semi Bold.ttf");
}

@font-face {
    font-family: "Jeko Bold";
    src: url("/static/jeko/Jeko Bold.ttf");
}

@font-face {
    font-family: "Jeko Regular";
    src: url("/static/jeko/Jeko Regular.ttf");
}

.wrapper{
    position: relative;
    /* width: 80%; */
    max-width: 1140px;
    /* background: rgb(198, 198, 198); */
    margin: auto;
    padding: 10px;
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    min-height: 87px;
    background: #fff;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.header-inner{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1140px;
    padding: 10px 20px;
    gap: 15px;
}

.nav-toggle{
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid #345150;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
}

.nav-toggle-bar{
    display: block;
    width: 22px;
    height: 2px;
    background: #000;
    border-radius: 1px;
}

.nav-toggle:hover{
    background: #f0f0f0;
}

.nav-toggle:focus{
    outline: 2px solid #345150;
    outline-offset: 2px;
}

.container-row{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.navigation{
    height: 100%;
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
}

.nav-property{
    position: relative;
    color: #000;
    font-family: "Jeko Regular";
    font-size: 15px;
    font-style: normal;
    font-weight: 100;
    line-height: 1.2;
    white-space: nowrap;
}

a.nav-auth-link{
    color: inherit;
    text-decoration: none;
    font-family: inherit;
    font-size: inherit;
    display: inline-block;
}

a.nav-auth-link:hover{
    color: #345150;
}

span.logotext{
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 19px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.15;
}

.logo{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
    flex-grow: 0;
    flex-shrink: 0;
    min-width: 0;
    max-width: min(240px, 38vw);
}

.brdnav{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 0px;
    height: 2px;
    background: #000;
    transition: all 0.3s;
    translate: 0px 3px;

}

.nav-property:hover .brdnav{
    width: 100%;
}

.bgimg-wrap{
    position: relative;
    margin-top: 87px;
}

.bgimg{
    width: 100%;
    z-index: 1;
}

.text-conbg{
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 40%;
    padding: 5%;
}

.bgimgtextmain{
    color: white;
    z-index: 2;
    color: #FFF;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 3.5vw;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}

.bgimgtextpar{
    color: #C9C9C9;
    font-family: "Jeko Light";
    font-size: 1.2vw;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.title-text{
    position: relative;
    color: #000;
    font-family: Jeko-SemiBold;
    font-size: 29px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.title-text-border{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 79px;
    height: 3px;
    background: #537473;
}

.program-container{
    width: 100%;
    margin-top: 34px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.program-card{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 35px;
}

.content-card{
    max-width: 715px;
    min-width: 100px;
    min-height: 227px;
    background: #FFF;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    flex-grow: 1;
}

.title-card{
    color: #212A29;
    font-family: Jeko-SemiBold;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: left;
    margin-top: 31px;
    margin-left: 21px;
}

.description-card{
    color: #000;
    font-family: Jeko-Medium;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: left;
    margin-top: 8px;
    margin-left: 21px;
}

.option-card{
    display: flex;
    flex-direction: column;
    margin-left: 21px;
    margin-top: 21px;
    margin-bottom: 8px;
}

.option-text{
    color: #000;
    font-family: Jeko-Medium;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.dot-opt-card{
    width: 6px;
    height: 6px;
    background: #537473;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .program-card{
        flex-wrap: wrap;
    }
}

.line{
    width: 100%;
    background: #9E9E9E;
    height: 1px;
    margin-top: 35px;
}

.consultate-block{
    margin-top: 30px;
}

.parent-text{
    color: #000;
    font-family: Jeko Regular;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.button-block{
    display: flex;
    flex-direction: row;
    gap: 28px;
    flex-wrap: wrap;
}

.button-type1{
    width: 239px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #345150;
    color: #FFF;
    font-family: Jeko Regular;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.button-type2{
    width: 239px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid #345150;
    color: #000;
    font-family: Jeko Regular;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.consultate-block{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer{
    position: relative;
    margin-top: 100px;
    width: 100%;
    height: 417px;
    background: #345150;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}

.block-content{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 100px;
}

.footer-block{
    text-align: left;
    max-width: 376px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.title-footer-block{
    color: #FFF;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.text-footer-block{
    color: #CCC;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.down-block{
    position: relative;
    border-top: solid 1px #979797;
    max-width: 1046px;
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
}

.text-footer-down{
    max-width: 60%;
    margin-top: 10px;
    color: #D0D0D0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.watermark{
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.route-div{
    position: relative;
    margin-top: 87px;
    width: 100%;
    height: 185px;
    background: #f5f5f5;
    margin-bottom: 30px;
}

.parent-text{
    margin-top: 20px;
    color: #000;
    font-family: Jeko Regular;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.text-route{
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    margin-left: 10%;
    width: 100%;
    height: 127px;
}

.text-route{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.black-route{
    color: #000;
    font-family: Jeko Regular;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.gray-route{
    color: #6B6B6B;
    font-family: Jeko Regular;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.title-route{
    color: #000;    
    font-family: JekoVariable;
    font-size: 35px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.file-block{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 60px 40px;
    row-gap: 60px;
    column-gap: 40px;
    align-items: flex-start;
}
.file-card {
    width: 180px;
    min-height: 120px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    word-break: break-word;
}
.file-text{
    color: #000;
    font-family: Jeko-SemiBold;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-top: 10px;
    font-size: 1.1rem;
    line-height: 1.3;
    word-break: break-word;
}
@media (max-width: 900px) {
    .file-block {
        gap: 30px 10px;
    }
    .file-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}
@media (max-width: 600px) {
    .file-block {
        flex-direction: column;
        gap: 20px;
    }
    .file-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}
body.bvi-contrast .file-text {
    font-size: 1.5rem !important;
    line-height: 1.4 !important;
    margin-top: 10px !important;
}

.req-block{
    display: flex;
    flex-direction: column;
    margin-top: 30px;
}

.strong-text-r{
    color: #000;
    font-family: Jeko-SemiBold;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.light-text-r{
    color: #000;
    font-family: Jeko Regular;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.contact-block{
    display: flex;
    flex-direction: row;
}

.text-block{
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.header-text{
    color: #000;
    font-family: JekoVariable;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.img-program{
    width: 281px;
    height: 202px;
}

/* --- Responsive: планшеты и телефоны --- */
@media (max-width: 900px) {
    .wrapper{
        padding: 10px 16px;
    }
    .text-conbg{
        width: 55%;
        padding: 4%;
    }
    .bgimgtextmain{
        font-size: 4vw;
    }
    .bgimgtextpar{
        font-size: 1.4vw;
    }
    .block-content{
        gap: 50px;
    }
    .footer{
        height: auto;
        padding: 30px 20px 20px;
        min-height: auto;
    }
    .down-block{
        gap: 15px;
    }
}

/* Навигация переключается на гамбургер уже при 992px, чтобы не пропадать при сжатии */
@media (max-width: 992px) {
    .header{
        height: auto;
        min-height: 70px;
        overflow: visible;
    }
    .header-inner{
        flex-wrap: wrap;
        padding: 12px 16px;
    }
    .nav-toggle{
        display: flex;
        order: 2;
        position: relative;
        z-index: 12;
        min-width: 48px;
        min-height: 48px;
        -webkit-tap-highlight-color: transparent;
    }
    .logo{
        order: 1;
        min-width: auto;
        max-width: none;
    }
    .navigation{
        display: none;
        order: 3;
        width: 100%;
        flex: none;
        flex-basis: 100%;
        height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 15px 0 20px;
        border-top: 1px solid #e0e0e0;
        margin-top: 8px;
        background: #fff;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        position: relative;
        z-index: 11;
    }
    .header.nav-open .navigation{
        display: flex;
    }
    .nav-property{
        padding: 14px 0;
        font-size: 17px;
        border-bottom: 1px solid #eee;
        min-height: 48px;
        display: flex;
        align-items: center;
        -webkit-tap-highlight-color: transparent;
    }
    .nav-property:last-child{
        border-bottom: none;
    }
    .bgimg-wrap{
        margin-top: 70px;
    }
    .route-div{
        margin-top: 70px;
    }
}

body.nav-menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .text-conbg{
        width: 85%;
        padding: 6% 5%;
    }
    .bgimgtextmain{
        font-size: clamp(18px, 6vw, 28px);
    }
    .bgimgtextpar{
        font-size: clamp(12px, 2.5vw, 16px);
    }
    .wrapper{
        padding: 10px 14px;
    }
    .title-text{
        font-size: 24px;
    }
    .program-card{
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    .img-program{
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }
    .content-card{
        min-height: auto;
    }
    .title-card{
        font-size: 20px;
        margin-left: 16px;
        margin-top: 20px;
    }
    .description-card,
    .option-card{
        margin-left: 16px;
    }
    .button-block{
        flex-direction: column;
        gap: 14px;
    }
    .button-type1,
    .button-type2{
        width: 100%;
        max-width: 100%;
        min-height: 52px;
    }
    .footer{
        margin-top: 60px;
        height: auto;
        padding: 24px 16px 20px;
    }
    .block-content{
        flex-direction: column;
        gap: 30px;
        align-items: center;
        text-align: center;
    }
    .footer-block{
        text-align: center;
        max-width: 100%;
    }
    .down-block{
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 20px;
    }
    .text-footer-down{
        max-width: 100%;
        text-align: center;
    }
    .route-div{
        margin-top: 70px;
        height: auto;
        min-height: 120px;
        padding: 20px 16px;
        margin-bottom: 20px;
    }
    .text-route{
        position: static;
        margin-left: 0;
        height: auto;
        padding: 0;
    }
    .black-route,
    .gray-route{
        font-size: 16px;
    }
    .title-route{
        font-size: 26px;
    }
    .contact-block{
        flex-direction: column;
        gap: 24px;
    }
    .contact-block img{
        width: 100%;
        height: auto;
        max-width: 100%;
    }
    .req-block{
        gap: 8px;
    }
    .custom-bvi-btn{
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .header-inner{
        padding: 10px 12px;
    }
    .logo .logotext{
        font-size: 16px;
    }
    .logo img{
        max-width: 40px;
        height: auto;
    }
    .text-conbg{
        width: 92%;
        padding: 8% 4%;
    }
    .bgimgtextmain{
        font-size: 18px;
    }
    .bgimgtextpar{
        font-size: 13px;
    }
    .wrapper{
        padding: 8px 12px;
    }
    .title-text{
        font-size: 20px;
    }
    .title-text-border{
        width: 50px;
    }
    .title-card{
        font-size: 18px;
    }
    .description-card,
    .option-text{
        font-size: 15px;
    }
    .parent-text{
        font-size: 16px;
    }
    .header-text{
        font-size: 17px;
    }
    .strong-text-r,
    .light-text-r{
        font-size: 16px;
    }
    .title-route{
        font-size: 22px;
    }
    .footer-block .title-footer-block{
        font-size: 16px;
    }
    .text-footer-block{
        font-size: 14px;
    }
}

.site-flash-wrap{
    position: fixed;
    top: 87px;
    left: 0;
    right: 0;
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    pointer-events: none;
}

.site-flash{
    max-width: 640px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    font-family: "Jeko Regular", sans-serif;
    font-size: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    pointer-events: auto;
}

.site-flash-error{ background: #fde8e8; color: #9b1c1c; }
.site-flash-success{ background: #e8f5e9; color: #1b5e20; }
.site-flash-info{ background: #e3f2fd; color: #0d47a1; }

@media (max-width: 992px) {
    .site-flash-wrap{
        top: 70px;
    }
}

/* --- Вход / регистрация --- */
.auth-card{
    max-width: 440px;
    margin: 0 auto 40px;
    padding: 28px 24px;
    background: #fff;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
}

.auth-card-wide{
    max-width: 560px;
}

.auth-lead{
    font-family: "Jeko Regular", sans-serif;
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.45;
}

.auth-form{
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-label{
    font-family: "Jeko Medium", sans-serif;
    font-size: 15px;
    color: #212A29;
    margin-top: 14px;
    margin-bottom: 4px;
}

.auth-label:first-of-type{
    margin-top: 0;
}

.auth-input{
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #9E9E9E;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
}

.auth-input:focus{
    outline: none;
    border-color: #537473;
    box-shadow: 0 0 0 2px rgba(83, 116, 115, 0.2);
}

.auth-submit{
    margin-top: 22px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #345150;
    color: #fff;
    font-family: "Jeko Regular", sans-serif;
    font-size: 18px;
    cursor: pointer;
}

.auth-submit:hover{
    background: #2a4140;
}

.auth-footer-link{
    margin-top: 20px;
    text-align: center;
    font-family: "Jeko Regular", sans-serif;
    font-size: 16px;
}

.auth-footer-link a{
    color: #345150;
    font-weight: 600;
}

.auth-flash-list{
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.auth-flash{
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 15px;
}

.auth-flash-error{
    background: #fde8e8;
    color: #9b1c1c;
}

.auth-flash-success{
    background: #e8f5e9;
    color: #1b5e20;
}

.auth-flash-info{
    background: #e3f2fd;
    color: #0d47a1;
}

.auth-dl{
    margin: 0;
    font-family: "Jeko Regular", sans-serif;
}

.auth-dl dt{
    font-family: "Jeko-Semibold", sans-serif;
    font-size: 14px;
    color: #537473;
    margin-top: 16px;
}

.auth-dl dt:first-child{
    margin-top: 0;
}

.auth-dl dd{
    margin: 6px 0 0;
    font-size: 17px;
    color: #000;
}

.auth-account-actions{
    margin-top: 24px;
}

a.auth-submit,
a.bilety-lk-btn,
a.bilety-next-btn{
    display: inline-block;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

a.bilety-next-btn{
    margin-top: 16px;
    width: 100%;
}

/* --- Билеты (ЛК) --- */
.bilety-wrap{
    max-width: 720px;
}

.bilety-modes-hint{
    margin: 0 0 20px;
    padding-left: 1.2em;
    font-family: "Jeko Regular", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

.bilety-start-form{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bilety-fieldset{
    border: 1px solid #c5d0cf;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 0;
}

.bilety-legend{
    font-family: "Jeko-Semibold", sans-serif;
    font-size: 15px;
    padding: 0 8px;
    color: #345150;
}

.bilety-radio-line{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
    font-family: "Jeko Regular", sans-serif;
    font-size: 16px;
    cursor: pointer;
}

.bilety-radio-line input{
    margin-top: 4px;
}

.bilety-meta{
    font-size: 14px;
    color: #537473;
    margin-bottom: 12px;
    font-family: "Jeko Regular", sans-serif;
}

.bilety-section{
    font-size: 14px;
    color: #345150;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: "Jeko Medium", sans-serif;
}

.bilety-qtext{
    font-family: "Jeko-Semibold", sans-serif;
    font-size: 18px;
    line-height: 1.45;
    margin: 0 0 20px;
    color: #212A29;
}

.bilety-qtext-small{
    font-size: 16px;
}

.bilety-options-form{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bilety-option{
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.bilety-option:hover{
    border-color: #537473;
    background: #f8faf9;
}

.bilety-option-checked{
    border-color: #345150;
    background: #eef5f4;
}

.bilety-option input{
    margin-top: 4px;
    flex-shrink: 0;
}

.bilety-option-text{
    font-family: "Jeko Regular", sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: #000;
}

.bilety-answer-btn{
    margin-top: 8px;
}

.bilety-verdict{
    font-family: "Jeko Bold", Arial, sans-serif;
    font-size: 22px;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bilety-verdict-ok{
    background: #e8f5e9;
    color: #1b5e20;
}

.bilety-verdict-bad{
    background: #fde8e8;
    color: #9b1c1c;
}

.bilety-compare{
    font-family: "Jeko Regular", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.bilety-compare-label{
    color: #537473;
    font-weight: 600;
}

.bilety-score{
    font-size: 20px;
    font-family: "Jeko-Semibold", sans-serif;
    margin-bottom: 8px;
}

.bilety-results-list{
    margin: 20px 0 24px;
    padding-left: 1.2em;
}

.bilety-result-item{
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.bilety-result-ok{
    border-color: #a5d6a7;
    background: #f9fdf9;
}

.bilety-result-bad{
    border-color: #ef9a9a;
    background: #fff9f9;
}

.bilety-result-head{
    font-family: "Jeko Medium", sans-serif;
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.bilety-result-q{
    margin-left: 6px;
}

.bilety-result-body{
    font-size: 14px;
    line-height: 1.45;
    color: #333;
}

.bilety-results-page .bilety-start-btn{
    margin-top: 8px;
}

/* --- BVI override fix --- */
.bvi-panel, .bvi-link-fixed-top {
    z-index: 1000000 !important;
    position: fixed !important;
}
.bvi-panel {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
}
.bvi-link-fixed-top {
    top: 80px !important;
    right: 20px !important;
}

/* --- BVI custom mode: белый фон, чёрный текст --- */
html.bvi-contrast, body.bvi-contrast {
    background: #fff !important;
    color: #111 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    line-height: 1.6 !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}
body.bvi-contrast,
body.bvi-contrast .wrapper,
body.bvi-contrast .parent-text,
body.bvi-contrast .text-block,
body.bvi-contrast .file-text,
body.bvi-contrast .text-footer-block,
body.bvi-contrast .description-card,
body.bvi-contrast .option-text {
    font-size: 2rem !important;
}
body.bvi-contrast h1,
body.bvi-contrast .title-text {
    font-size: 2.5rem !important;
    font-weight: bold !important;
}
body.bvi-contrast .logo,
body.bvi-contrast .logo * {
    font-size: 1.2rem !important;
}
body.bvi-contrast .logo img {
    width: 48px !important;
    height: auto !important;
}
html.bvi-contrast a, body.bvi-contrast a {
    color: #0057b8 !important;
    text-decoration: underline !important;
    font-weight: bold !important;
}
html.bvi-contrast .logo img, body.bvi-contrast .logo img {
    filter: none !important;
}
html.bvi-contrast .bvi-images-eye {
    filter: none !important;
}
html.bvi-contrast .program-card, body.bvi-contrast .program-card {
    background: #fff !important;
    color: #111 !important;
    border: 2px solid #111 !important;
}
html.bvi-contrast .footer, body.bvi-contrast .footer {
    background: #fff !important;
    color: #111 !important;
    border-top: 2px solid #111 !important;
}
html.bvi-contrast img, body.bvi-contrast img {
    display: none !important;
}
.custom-bvi-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #232526 0%, #414345 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 18px 36px;
    font-size: 1.5rem;
    font-family: 'Jeko Bold', Arial, sans-serif;
    font-weight: 700;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12), 0 1.5px 4px rgba(0,0,0,0.10);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
    outline: none;
    margin: 0 0 0 20px;
    justify-content: center;
    align-items: center;
}
.custom-bvi-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.custom-bvi-btn:focus {
    box-shadow: 0 0 0 4px #0057b8, 0 4px 24px rgba(0,0,0,0.12);
    background: linear-gradient(90deg, #0057b8 0%, #232526 100%);
}
.custom-bvi-btn:hover {
    background: linear-gradient(90deg, #0057b8 0%, #232526 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.12);
}
.custom-bvi-btn .bvi-images-eye {
    background: url('/static/img/eye.svg') no-repeat center center / contain;
    width: 32px;
    height: 32px;
    display: inline-block;
    vertical-align: middle;
    filter: brightness(2);
}

/* BVI режим — кнопка тоже контрастная */
html.bvi-contrast .custom-bvi-btn, body.bvi-contrast .custom-bvi-btn {
    background: #111 !important;
    color: #fff !important;
    border: 2px solid #111 !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    box-shadow: 0 0 10px #111;
}
html.bvi-contrast .custom-bvi-btn .bvi-images-eye, body.bvi-contrast .custom-bvi-btn .bvi-images-eye {
    filter: brightness(10) invert(1) !important;
}
.custom-bvi-btn:hover, .custom-bvi-btn:focus {
    background: #232526 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transform: translateY(-2px) scale(1.03);
}

/* Цветовые схемы для BVI */
html.bvi-scheme-blackwhite, body.bvi-scheme-blackwhite {
    background: #fff !important;
    color: #111 !important;
}
html.bvi-scheme-whiteblack, body.bvi-scheme-whiteblack {
    background: #111 !important;
    color: #fff !important;
}
html.bvi-scheme-blue, body.bvi-scheme-blue {
    background: #e3f0ff !important;
    color: #002b5c !important;
}
html.bvi-scheme-brown, body.bvi-scheme-brown {
    background: #f7f3d6 !important;
    color: #4d4b43 !important;
}
/* --- END BVI custom mode --- */

.custom-bvi-btn::before, .custom-bvi-btn::after, .bvi-images-eye::before, .bvi-images-eye::after {
    content: none !important;
    display: none !important;
}

.custom-bvi-btn {
    padding: 6px 12px;
    min-width: unset;
    min-height: unset;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 400;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    background: linear-gradient(90deg, #353637 0%, #414345 100%);
    width: 44px;
    height: 44px;
}
.custom-bvi-btn .bvi-images-eye {
    width: 22px !important;
    height: 22px !important;
    filter: brightness(10) invert(1) !important;
}

.font-size-btn.active, .zoom-btn.active, .color-scheme-btn.active {
    background: #0057b8 !important;
    color: #fff !important;
    border: 2px solid #0057b8 !important;
    font-weight: bold;
}