.buttons {
    display: flex;
    flex-direction: row;
}
.buttons .button_white {
    margin: 0 5px;
}
#form {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
}

#form .input>span {
    line-height: normal;
    margin: 0px;
    padding-right: 5px;
    font-size: 18px;
    padding-top: 9px;
    padding-left: 11px;
}

#form .input{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex: 1;
    padding: 5px;
}
#form .input>input{
    border: 2px solid #00AEEF;
    padding: 6px 5px;
    width: 100% !important;
    outline: none;
    margin-bottom: 0px;
}
#form .input>input:focus, #form .input>input:active, #form .input>input:current{
    border: 2px solid #00AEEF;
}


.litle_buttons {
    display: flex;
    margin-top: 13px;
}
.litle_buttons a {
    font-size: 14px;
    padding: 7px 10px;
    height: 30px;
    margin-left: 5px;
    align-self: center;
    margin-bottom: 0;
    text-decoration: none;
}

.litle_buttons a:hover {
    color: #fff !important;
}

.litle_buttons.p.span {
    text-decoration: none;
}


.reslult_links {
    display: flex;
    flex-direction: row;
    justify-content: left;
    background: #fff;
}

.reslult_links .res-title {
    display: block;
    padding-top: 15px;

}
.information_block {
    padding-top: 0px;
}
.content .path {
    padding: 30px 0 10px;
    margin-bottom: 0;
}
.competition_block .competition_card .competition_title .title h3 {
    font-size: 30px;
    text-decoration: none;
    line-height: 28px;
}

.cert_download {
    color: #0a68b4;
    text-decoration: underline;
}

.person_register .card_person .content .input input[type="radio"] {
    width: 0 !important;
    height: 0 !important;
    overflow: hidden;
    border: 0;
}

.tab_content_grid {
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 15px 20px
}

.tab_content_grid .i_link {
    width: 100%;
    height: 144px;
}
.main_page .banner_global {
    margin-top: 0px;
}
.main_page .banner_global.main {
    margin-bottom: 36px;
}
.main_block.main_page {
    padding: 36px 0px;
}

.position_2 {
    margin-top: -84px;
}

.login_menu_li {
    float: right !important;
}
.banner_global {
    margin-top: 36px;
}

a.button_white_blue {
    height: 40px !important;
    border: 1px solid #00AEEF;
    background: #00AEEF !important;
    font-size: 16px !important;
    color: #FFF !important;
    line-height: normal;
    cursor: pointer;
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    padding: 0 30px;
    -webkit-transition: all .2s;
    transition: all .2s;
}
a.button_white_blue:hover {
    color: #000000 !important;
    background: #FFF !important;
}

.competition_card {
    border: 1px solid #efefef;
    -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.1);
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.1);
}
.index_blue_link {
    color: #00AEEF !important;
    text-decoration: underline;
}
.index_blue_link:hover {
    text-decoration: none !important;
}

.only_desctop {
    display: block;
}
.only_mobile {
    display: none;
}
.main_page .position_2 {
    margin-top: 40px;
}

.my-custom-label {
    display: inline-block;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    border: solid 1px #00AEEF;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    padding: 4.5px 5px 1px 4px;
    margin-right: 8px;
}

.my-custom-label > input[type=radio] {
    display: none;
}

.my-custom-label > span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 100%;
    vertical-align: middle;
    background: #fff;
}

.my-custom-label > input[type=radio]:checked + span {
    background: #00AEEF;
}

@media (max-width: 430px) {
    #form {
        flex-direction: column;
    }
    #form .input{
        margin-bottom: 5px;
    }

    #form .input>input{
        width: 50%;
    }
    #form .input>.global_select{
        width: 50%;
    }


    .login_menu_li {
        float: left !important;
    }
    .only_desctop {
        display: none !important;
    }
    .only_mobile {
        display: block;
    }

    .tab_content_grid {
        grid-template-columns: 1fr;
    }

    .position_2 {
        margin-top: 5px;
    }

    .not_flex {
        display: block !important;
    }

}
.tab_content_grid .i_link p:hover {
    color: #00AEEF;
}

.info_card .text .info a {
    color: #00AEEF !important
}
.info_card .text .info a:hover {
    text-decoration: none;
}


.competition_block .competition_card .compotition_info .detail_link {
    color: #00AEEF !important;
    text-decoration: underline;
}
.competition_block .competition_card .compotition_info .detail_link:hover {
    text-decoration: none;

}
.banner_global_mini {
    margin-top: 0 !important;
}
.slider_block {
    padding-top: 0 !important;
}

body {
margin: 0;
}

.grid-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
gap: 20px;
padding: 20px;
font-family: Montserrat;
}

.card {
position: relative;
padding: 30px;
border-radius: 8px;
color: #000;
display: flex;
flex-direction: column;
justify-content: space-between;
overflow: hidden;
transition: background 0.3s ease;
}
.red  { background-color: #FAA61A; color: white; }
.lime { background-color: #BED730; color: black; }
.blue { background-color: #00AEEF; color: white; }

/* ::before для фонового изображения */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-url);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.card:hover::before {
  opacity: 0.8;
}
.card.lime:hover {
    color: white;
    background-color: #000;
}

/* Контент поверх картинки */
.card * {
  position: relative;
  z-index: 1;
}

/* Дистанции */
.distances li {
  height: 28px;
  line-height: 28px;
}

.distances li.empty {
  color: transparent;
}

.card h1 {
font-size: 2.2em;
line-height: 1.1;
margin-bottom: 20px;
text-transform: uppercase;
}

.distances-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 10px;
    gap: 10px;
  }
  
  .distances-label {
    font-weight: bold;
    font-size: 1em;
    white-space: nowrap;
  }
  
  .distances-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .distances-list li {
    color: inherit;
    height: 28px;
    line-height: 28px;
  }
  
  .distances-list li.empty {
    color: transparent;
  }
  

.status {
font-size: 0.9em;
margin-bottom: 15px;
display: flex;
justify-content: space-between;
text-transform: uppercase;
}

.status .date {
font-weight: bold;
}

/* Цвета */
.red {
background-color: #FAA61A;
color: white;
}

.lime {
background-color: #BED730;
color: black;
}

.blue {
background-color: #00AEEF;
color: white;
}

.detail_link {
    color: inherit !important;
}
.distances li {
    height: 20px;
    line-height: 20px;
    overflow: hidden;
}

.distances li.empty {
    color: transparent;
}

/*more button*/
.more-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 10;
    transition: opacity 0.3s ease, left 0.3s ease, top 0.3s ease;
    pointer-events: none;
  }
  
  
  .card:hover .more-button {
    opacity: 1;
  }
  
  .more-button a {
    display: flex;
    align-items: center;
    background: white;
    color: #00AEEF;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    pointer-events: auto;
  }
  
  /* Красная точка слева */
  .more-button .dot {
    width: 10px;
    height: 10px;
    background: #00AEEF;
    border-radius: 50%;
    margin-right: 10px;
  }
  