.tariff-page {
    font-family: 'Montserrat', sans-serif;
}

.tariff-page__banner {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: min(684px, calc(100vw * 684 / 1440));
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 52px;
}

.tariff-page__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.2) 42%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
}

.tariff-page__title {
  position: relative;
  z-index: 1;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.3;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 110px 20px 32px;
  margin: 0;
}

@media screen and (min-width: 861px) {
  .tariff-page__title {
    padding-top: 128px;
  }
}

.tariff-container {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 48px));
  max-width: none;
  margin: 0 auto;
}

.tariff-advantages {
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
}

.tariff-advantages__item {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 12px;
  align-items: start;
  margin-bottom: 14px;
  padding-left: 0;
}

.tariff-advantages__item:last-child {
  margin-bottom: 0;
}

.tariff-advantages__item b {
  font-weight: 700;
}

.tariff-advantages__text {
  grid-column: 2;
  min-width: 0;
}

.tariff-advantages__desc::before {
  content: "— ";
}

.tariff-advantages__item:before {
  content: "";
  display: block;
  grid-column: 1;
  grid-row: 1;
  width: 34px;
  height: 30px;
  margin-top: 1px;
  background-image: url("../assets/home/octane-rent/list-point-star.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

@media screen and (min-width: 992px) {
  .tariff-advantages__text {
    display: grid;
    grid-template-columns: 10.5rem 1fr;
    column-gap: 10px;
    align-items: baseline;
  }

  .tariff-advantages__label {
    white-space: nowrap;
  }

  .tariff-advantages__label::after {
    content: " —";
    font-weight: 400;
  }

  .tariff-advantages__desc::before {
    content: none;
  }
}

.tariff-page__show {
  padding: 22px 0 0;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 17px;
  line-height: 1.6;
}

.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: clamp(22px, 5vw, 34px);
        padding: 88px 16px 24px;
    }    

    .tariff-advantages {
        font-size: 16px;  
    }

    .tariff-page__show {
        padding-top: 18px;
        margin-top: 14px;
        font-size: 15px;
    }

    .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__banner {
        padding-bottom: 32px;
    }

    .tariff-page__title {
        font-size: clamp(17px, 4.8vw, 22px);
        padding: 72px 12px 18px;
        line-height: 1.25;
        letter-spacing: 0.08em;
    }

    .tariff-advantages {
        font-size: 13px;
        line-height: 1.45;
    }

    .tariff-advantages__item {
        grid-template-columns: 22px 1fr;
        column-gap: 8px;
        margin-bottom: 10px;
    }

    .tariff-advantages__item:before {
        width: 22px;
        height: 18px;
    }

    .tariff-container {
        width: min(100%, calc(100% - 28px));
    }

    .tariff-page__show {
        font-size: 13px;
        padding-top: 14px;
        margin-top: 12px;
    }

    .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;
    }
}

/* Titane — filter active + breadcrumb */
.tariff-filter__item.is-active {
  font-weight: 700;
  text-decoration: underline;
}

.tariff-page .breadcrumb {
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.tariff-page .breadcrumb li {
  display: inline;
}

.tariff-page .breadcrumb a {
  color: #fd6c1e;
  font-size: 15px;
  font-weight: 300;
  text-decoration: none;
}

.tariff-page .breadcrumb li + li::before {
  content: "/";
  margin: 0 15px;
  color: #000;
}

.tariff-page .breadcrumb span {
  font-size: 15px;
  font-weight: 300;
}

body.tariff-page.about-page {
  padding-top: 0;
}