.tariff-page {
    font-family: 'Montserrat', sans-serif;
}

.tariff-page__banner {    
    background-size: cover;
}

.tariff-page__title {
    font-size: 48px;
    line-height: normal;
    color: #ffffff;
    font-weight: 400;
    text-align: center;
    padding: 70px 0 90px;
}

.tariff-container {
    width: 1115px;
    max-width: 80%;
    margin: 0 auto;
}

.tariff-advantages {
    color: #fff;
    font-size: 20px;
    font-weight: 400;    
}

.tariff-advantages__item {
    margin-bottom: 40px;
    position: relative;
    padding-left: 56px;
}

.tariff-advantages__item:before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 45px;
    height: 40px;
    background-image: url('../img/rent/list-point-star.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.tariff-page__show {
    padding: 60px 0 45px;
    color: #fff;
    font-size: 18px;
}

.tariff-page__show a {
    color: #fd6c1e;
    border-bottom: 1px solid;
}

.tariff-page__text {
    font-size: 19px;
    line-height: normal;
    color: #040507;
    margin-bottom: 50px;
}
.tariff-list {
    margin-bottom: 40px;
}

.tariff-list__table {
    font-size: 18px;
    color: #000000;
    font-weight: 600;
    border-collapse: collapse;
    border-left: none;
    border-top: none;
    width: 100%;
    font-weight: 400;  
    position: relative;  
}

.tariff-list__table:after {
    content: '';
    display: block;
    width: 3px;
    height: 100%;
    position: absolute;
    right: -2px;
    top: 0;
    background: white;
}

.tariff-list__table--middle {
    display: none;
}

.tariff-list__table--middle.js-active {
    display: table;
}

.tariff-list__table tr {
    border: 1px solid black;
    border-left: none;
    padding: 0;
    border-top: none;
    text-align: center;
}

.tariff-list__table td {
    border: 1px solid black;
    border-left: none;
    padding: 12px 5px;
    border-top: none;
}
.tariff-list__table tr td:nth-child(1) {
    font-weight: 700;
    width: 500px;
}
.tariff-list__table .tariff-list__row--bold td:last-child {
    word-break: break-all;
}

.tariff-list__table--middle tr:not(:first-child) td:nth-child(2),
.tariff-list__table--middle tr:not(:first-child) td:nth-child(3),
.tariff-list__table--middle tr:not(:first-child) td:nth-child(4) {
    width: 15%;
}

.tariff-list__table a {
    color: #fd6c1e;
    border-bottom: 1px solid #fd6c1e;
}

.tariff-list__row.tariff-list__row--orange,
.tariff-list__row.tariff-list__row--orange td {
    border-color: #fd6c1e;
    border-right: none;
}

.tarif-list__col--orange {
    color: #fd6c1e;
}

.tarif-list__col--orange span {
    color: black;
}

.tariff-list__row.tariff-list__row--no-border,
.tariff-list__row.tariff-list__row--no-border td {
    border: none;
    text-align: left;
}

.tariff-list__table.tariff-list__table--middle.js-open tr:last-child {
    border-bottom: 1px solid #fd6c1e;
}

.tariff-list__table.tariff-list__table--middle.js-open tr:last-child td {
    padding-bottom: 20px;
}

.tariff-list__row--bold {
    font-weight: 600;
}

.tariff-list__mounth {
    font-weight: 500;
}

.tariff-list__mounth span {
    font-weight: 700;
}

.tariff-list__row--no-border td {
    padding-bottom: 0;
}

.tariff-list__name::before,
.tariff-list__name::after {
    content:'';
    display: block;
    position: absolute;
    width: 19px;
    height: 12px;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAMCAMAAAC3DnawAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAADxQTFRFAAAA/Wsd/Wsd/Wsd/Wsd/Wsd/Wsd/Wsd/Wsd/Wsd/Wsd/Wsd/Wsd/Wsd/Wsd/Wsd/Wsd/Wsd/Wsd/WsdxYCGrwAAABR0Uk5TABBfUMD/gO9gMEAgoJDP0PDj8T1WkZ0EAAAAW0lEQVR4nG1P0RKAIAiTdCFpYfX//9qledKdexmMYwPnpqDFNJ4qBaxDAlNjxE8S7vMIbLVIjNw3drC8xgfCcM7VRqFk4hQHZRQrOVKcKPI/Ml09yEBuP3+p4QHR1gHmi9J0XAAAAABJRU5ErkJggg==');
    background-size: contain;
    top: calc(50% - 6px);
    transition: transform 0.3s;
}

.tariff-list__name::before {
    left: 10px;
}

.tariff-list__name::after {
    right: 10px;
}

.tariff-list__mobile {
    display: none;
}

.tariff-list__table.js-open .tariff-list__name::before,
.tariff-list__table.js-open .tariff-list__name::after {
    transform: rotate(-180deg);
    transition: transform 0.3s;
}

.tariff-list__table .tariff-list__name {
    padding: 12px 30px;
    position: relative;
}

.tariff-list__table tr:not(:first-child) {
    display: none;
}

.tariff-list__table.js-open tr:not(:first-child) {
    display: table-row;
    border-right: none;
}

.tariff-list__top {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    align-items: flex-start;
    margin: 20px 0 40px;
}

.tariff-sort {
    margin: 0 15px;
}

.tariff-driver.js-open,
.tariff-sort.js-open {
    position: relative;
}

.tariff-driver.js-open .tariff-driver__item--bottom,
.tariff-sort.js-open .tariff-sort__bottom {
    display: block;    
    position: absolute;
    top: 22px;
    width: calc(100% + 2px);
    left: -1px;
    z-index: 1;
}

.tariff-sort, .tariff-driver {   
    border: 2px solid #fd6c1e;
    border-radius: 40px;
    background-color: #fd6c1e;
    font-size: 19px;
    font-weight: 500;    
    transition: height 0.2s;
    margin-top: 10px;
    min-width: 279px;
}

.tariff-sort__top, .tariff-driver__item--top {
    background-color: white;
    border-radius: 40px;
    padding: 10px 0;
    text-align: center;
    color: #fd6c1e;
    cursor: pointer;
    z-index: 2;
    position: relative;
    width: 100%;
}

.tariff-sort__top::before, .tariff-driver__item--top::before {
    content:'';
    display: block;
    position: absolute;
    width: 19px;
    height: 12px;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAMCAMAAAC3DnawAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAADxQTFRFAAAA/Wsd/Wsd/Wsd/Wsd/Wsd/Wsd/Wsd/Wsd/Wsd/Wsd/Wsd/Wsd/Wsd/Wsd/Wsd/Wsd/Wsd/Wsd/WsdxYCGrwAAABR0Uk5TABBfUMD/gO9gMEAgoJDP0PDj8T1WkZ0EAAAAW0lEQVR4nG1P0RKAIAiTdCFpYfX//9qledKdexmMYwPnpqDFNJ4qBaxDAlNjxE8S7vMIbLVIjNw3drC8xgfCcM7VRqFk4hQHZRQrOVKcKPI/Ml09yEBuP3+p4QHR1gHmi9J0XAAAAABJRU5ErkJggg==');
    background-size: contain;
    top: calc(50% - 6px);
    transition: transform 0.3s;
    right: 20px;
}

.js-open .tariff-sort__top::before, .js-open .tariff-driver__item--top::before {
    transform: rotate(-180deg);
    transition: transform 0.3s;
}

.tariff-sort__bottom, .tariff-driver__item--bottom {
    padding: 35px 0 15px;
    cursor: pointer;
    color: white;
    text-align: center;
    display: none;
    border-radius: 0 0 20px 20px;
    background-color: #fd6c1e;
    border: 2px solid #fd6c1e;
}

.tariff-sort__bottom a {
    color: white;    
    display: block;
}

.tariff-sort__bottom a:first-child {
    margin-bottom: 10px;
}
.tariff-filter {
    position: relative;
}

.tariff-filter.js-open .tariff-filter__wrap{
    display: block;
}

.tariff-filter__wrap {
    display: none;
    border-radius: 20px;
    background-color: #ffffff;
    border: 2px solid #fd6c1e;
    min-width: 279px;
    text-align: center;
    font-size: 19px;
    font-weight: 500;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    box-shadow: 0 0 10px #808080c2;
    z-index: 2;
}

.tariff-filter__orange {
    background-color: #fd6c1e;
    padding: 10px 0;
    border-radius: 20px;
    margin: -2px 0;
}

.tariff-filter__white {
    padding: 10px 0;
    display: none;
}

.tariff-filter__white.js-open {
    display: block;
}

.tariff-filter__white .tariff-filter__item {
    text-decoration: underline;
}

.tariff-filter__orange .active {
    color: white;
}

.tariff-filter__white .active {
    color: #fd6c1e;
}

.tariff-filter__item {
    cursor: pointer;
    padding: 5px 0;
    cursor: pointer;
}

.tariff-filter__top {
    cursor: pointer;
}
@media screen and (max-width: 1200px) {
    .tariff-list__table {
        font-size: 14px;
    }

    .tariff-list__table tr td:nth-child(1) {
        width: 400px;
    }

    .tariff-sort, .tariff-driver {
         font-size: 14px;
    }

    .tariff-filter__wrap {
        font-size: 14px;
    }
}

@media screen and (max-width: 860px) {
    .tariff-page__title {
        font-size: 34px;
        padding: 50px 0 70px;
    }    

    .tariff-advantages {
        font-size: 16px;  
    }

    .tariff-page__show {
        padding-top: 100px;
    }

    .tariff-page__text {
       font-size: 14px;
    }

    .tariff-sort, .tariff-driver {
        min-width: 265px;
    }
}

@media screen and (max-width: 768px) { 
    .tariff-list__mobile {
        display: block;
    }

    .tariff-list__desktop {
        display: none;
    }

    .tariff-list__table tr td:nth-child(1),.tariff-list__table tr td:nth-child(2) {
        font-weight: 500;
        width: auto;
    }

    .tariff-list__table .tariff-list__row--bold,  .tariff-list__table .tariff-list__row--bold td {
        font-weight: 700!important;
    }

    .tariff-list__row--left {
        text-align: left;
    }

    .tariff-sort, .tariff-driver {
         font-size: 12px;
    }

    .tariff-list__table {
        font-size: 12px;
    }

    .tariff-sort, .tariff-driver {
        min-width: 180px;
    }

    .tariff-list__table td {
        padding: 10px 5px;
    }

    .tariff-filter__top img {
        max-width: 50px;
    }

    .tariff-filter__wrap {
        font-size: 12px;
        min-width: 190px;
    }

    .tariff-driver.js-open .tariff-driver__item--bottom, .tariff-sort.js-open .tariff-sort__bottom {
        top: 7px;
    }

    .tariff-list__name::before {
        display: none;
    }

    .tariff-list__table .tariff-list__name {
        padding-left: 0;
    }

    .tariff-list__row--bold.tariff-list__row--left span {
        font-weight: 500;
        display: block;
    }
}


@media screen and (max-width: 540px) {
    .tariff-page__title {
        font-size: 18px;
        padding: 60px 0 15px;
    }

    .tariff-advantages {
        font-size: 12px;
    }

    .tariff-advantages__item {
        margin-bottom: 15px;
        padding-left: 25px;
    }

    .tariff-advantages__item:before {
        width: 20px;
        height: 15px;
    }

    .tariff-container {
        width: 85%;
        max-width: 475px;
        margin: 0 auto;
    }

    .tariff-page__show {
        width: 100%;
        text-align: center;
        font-size: 12px;
        padding: 10px 0 20px;
    }

    .tariff-page__text {
       font-size: 12px;
    }

    .tariff-sort, .tariff-driver {
        font-size: 12px;
        min-width: inherit;
        width: 60%;
        margin-top: 3px;
    }

    .tariff-sort__top, .tariff-driver__item--top {
        padding: 5px 0;
    }

    .tariff-list__table {
        font-size: 12px;
    }

    .tariff-list__table td {
        padding: 5px 3px;
    }    

    .tariff-list__name::after, .tariff-sort__top::before, .tariff-driver__item--top::before {
        width: 10px;
        height: 7px;
        top: calc(50% - 3px);
        right: 10px;
    }

    .tariff-filter__top img {
        max-width: 30px;
    }

    .tariff-filter__wrap {
        font-size: 12px;
        min-width: 120px;
    }

    .tariff-filter__item {
        padding: 3px 0;
    }

    .tariff-driver.js-open .tariff-driver__item--bottom, .tariff-sort.js-open .tariff-sort__bottom {
        top: 3px;
    }

    .tariff-sort__bottom, .tariff-driver__item--bottom {
        padding: 23px 0 5px;
    }

    .tariff-sort {
        margin: 3px 5px 0;
    }

    .tariff-list__table .tariff-list__name {
        padding: 6px 22px 6px 0;
        position: relative;
    }

    .tariff-list__top {
        margin-bottom: 20px;
    }
}