* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-size: calc(10 / 320 * 100vw);
}

html {
    font-size: var(--font-size);
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    overflow-x: hidden;
    color: #CECECE;
    background: #24242F;
    font-weight: 400;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: #fff;
    padding: 1.5rem 0;

}

.header .container {
    display: flex;
    align-items: center;
}

img {
    display: block;
    object-fit: cover;
    max-width: 100%;
    border-radius: inherit;
}

a:-webkit-any-link {
    text-decoration: none;
    color: inherit;
}

.logo {
    display: block;
}

.header .logo {
    margin-left: auto;
    width: 10rem;
    filter: invert();
}

.menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #24242F;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 1.7rem 2rem;
    align-items: flex-start;
    font-size: 1.2rem;
    font-weight: 600;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.menu_btn:before {
    content: '';
    background: url(../img/burger.svg) no-repeat center center;
    background-size: cover;
    width: 2.2rem;
    height: 1.6rem;
    display: block;
    margin-right: 1.5rem;
}

.qr_btn {
    background: #ED1D24;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr_btn:before {
    content: '';
    background: url(../img/qr.svg) no-repeat center center;
    background-size: cover;
    width: 1.5rem;
    height: 1.5rem;
    display: block;
}

.menu.active {
    transform: translateX(0);
}

.close_btn {
    margin-bottom: 2rem;
}

.close_btn::before {
    content: '';
    background: url(../img/cross.svg) no-repeat center center;
    background-size: contain;
    width: 1.5rem;
    height: 1.5rem;
    display: block;
}

.menu_item {
    display: block;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.menu_nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-transform: uppercase;
}
.lang_select {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
}

a.lang_item {
    text-decoration: underline;
}

a.lang_item.active {
    color: #ED1D24;
    text-decoration: none;
}

.lang_item:last-child {
    border-bottom: none;
}

main {
    padding-top: 3.2rem;
    padding-bottom: 3.3rem;
    flex: 1 0 0;
}

footer {
    background: #fff;
    padding: 1.8rem 0 1.7rem;
    text-align: center;
    font-size: 1.2rem;
    color: #565656;
}

.text-md {
    font-size: 1.2rem;
    line-height: 100%;
}

.text-sm {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.4rem;
}

.text-xl {
    font-size: 1.6rem;
}

.fw-300 {
    font-weight: 300;
}

.fw-400 {
    font-weight: 400;
}


.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

.fw-800 {
    font-weight: 800;
}

.fw-900 {
    font-weight: 900;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-bold {
    font-weight: 600;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1.8rem 0;
}

ul, ol {
    list-style: none;
    list-style-position: inside;
}

.list-check {
    margin-top: 2rem;
    margin-bottom: 3.6rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.list-check li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.list-check li img {
    width: 2rem;
    height: auto;
}

.btn_container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    padding: 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 0.5rem;
    border: 1px solid #CECECE;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

a.btn_red, .btn_red {
    background: #ED1D24;
    color: #fff;
    border: none;
}

.filter_panel, .sort_panel {
    background-color: #24242F;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    margin-top: -2rem;
}

.filter_options, .sort_options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter_option, .sort_option {
    padding: 0.8rem 1.5rem;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.filter_option:hover, .sort_option:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.filter_option.active, .sort_option.active {
    background-color: #ED1D24;
    color: white;
    border-color: #ED1D24;
}

/* Стили для поисковой формы */
#search_form {
    align-items: center;
    margin-left: auto;
    display: none;
}

#search_form.visible {
    display: flex;
}

#search_form input {
    padding: 0.8rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    width: 250px;
}

#search_form button {
    background-color: #ED1D24;
    border: none;
    padding: 0.8rem;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

#search_form button img {
    width: 1.6rem;
    height: 1.6rem;
    filter: brightness(0) invert(1);
}

.search_btn {
    margin-left: auto;
}

/* Стили для кнопок в панели поиска */
.search_panel {
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.participant_car {
    line-height: 1.4;
}

.search_panel .container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.filter_btn:hover, .sort_btn:hover, .search_btn:hover {
    filter: brightness(0) invert(1);
}
/* Адаптивные стили */
@media (max-width: 768px) {
    .filter_options, .sort_options {
        flex-direction: column;
    }

    #search_form input {
        width: 100%;
    }

    .search_panel .container {
        flex-wrap: wrap;
    }
}


.participants_list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    row-gap: 3.4rem;
    margin-bottom: 3.4rem;
}

.participant_item_img {
    width: 100%;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    aspect-ratio: 130 / 93.5;
    position: relative;
    overflow: hidden;
}

.participant_item_img.active {
    border: 2px solid #ED1D24;
}

.participant_item_img_live {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    width: 5.8rem;
    height: 1.6rem;
}

.participant_item_img.active img {
    border-radius: 0;
}

.participant_item_img  img {
    width: 100%;
    height: 100%;
}

a.back_btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.6rem;
}

a.back_btn:before {
    content: '';
    background: url(../img/chevron_left.svg) no-repeat center center;
    background-size: cover;
    width: 0.5rem;
    height: 1rem;
    display: block;
}

.participant_img {
    width: 100%;
    margin-bottom: 1.2rem;
}

.participant_img img {
    width: 100%;
    height: auto;
}

.info {
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-top: 1.5rem;
    margin-bottom: 2.2rem;
    display: flex;
}

.info_block {
    flex: 1;
    text-align: center;
    border: 1px solid #cecece1f;
    border-left: none;
    padding: 1.3rem 0 1.7rem;
}

.text {
    line-height: 1.5;
}

.participant_single .btn {
    margin-top: 2.2rem;
}

input {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0.5rem;
    padding: 1.5rem 1.8rem;
    color: #fff;
    font-weight: 600;
}

.accent {
    color: #ED1D24;
}

.vote_page .page-title {color: #fff;margin-bottom: 2.4rem;}

.form_container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
}

.form_row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vote_page .btn_container {
    margin-top: 2.7rem;
}

.container .accordion {
    width: calc(100% + 4rem);
    margin-left: -2rem;
    margin-bottom: 2.2rem;
}

.accordion {
    color: #fff;
}

.accordion_head {
    display: flex;
    border-bottom: 1px solid #cecece1f;
    padding: 1.2rem 2rem 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.accordion_head:after {
    content: '';
    background: url(../img/chevron_down.svg) no-repeat center center;
    background-size: cover;
    height: 0.74rem;
    width: 1.2rem;
}

.accordion_content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.accordion.active .accordion_content {
    max-height: 100rem;
}

.accordion_content .info {
    margin-top: 0;
}

.vote_page__car .participant_img {
    margin-bottom: 0;
}

.accordion_content .text {
    padding: 0 2rem;
}


.votes_grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-top: 1.6rem;
}

.vote_item {
    border: 1px solid #cecece1f;
    border-radius: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    aspect-ratio: 1/1;
}

.title-xl {
    font-size: 5rem;
    font-weight: 600;
    text-transform: uppercase;
}

[color="light"] {
    color: #fff;
}

.vote_page__car_result .btn_container {
    margin-top: 2.7rem;
}

.vote_page__car_result_average .btn_container {
    margin-top: 2.7rem;
}

.results_grid {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
}

.results_grid tr {
    border-bottom: 1px solid #cecece1f;
    font-size: 1.2rem;
    line-height: 3.3;
}


.results_grid th {
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    color: #CECECE;

}


.results_grid td {
    font-weight: 600;
    text-align: center;
}



.results_grid td:nth-child(2), .results_grid th:nth-child(2) {
    padding-left: 2.4rem;
    padding-right: 1.6rem;
    text-align: start;
}

.menu .btn_red {
    margin-top: auto;
    margin-bottom: 2rem;
}


@media screen and (min-width: 1000px) {
    html {
        font-size: calc(10 / 1440 * 100vw);
    }

    .results_grid th {
        font-size: 1.6rem;
    }

    .results_grid tr {
        font-size: 1.8rem;
    }

}