:root {
  touch-action: pan-x pan-y;
  height: 100%l;
  --background-color: #0f172a; /* ← ДОБАВЛЕНО ДЛЯ ТЁМНОЙ ТЕМЫ */
  --card-background: #1e293b; /* ← ДОБАВЛЕНО ДЛЯ ТЁМНОЙ ТЕМЫ */
  --text-primary: #f1f5f9; /* ← ДОБАВЛЕНО ДЛЯ ТЁМНОЙ ТЕМЫ */
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  display: flex;
  flex-direction: column;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  background-color: var(--background-color); /* ← ИЗМЕНЕНО */
  height: 100dvh;
  color: var(--text-primary); /* ← ИЗМЕНЕНО */
}
h1, h2, h3, h4, h5, h6, p, li {
  color: #e2e5ec;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

input[type='number'],
input[type="number"]:hover,
input[type="number"]:focus {
    appearance: none;
    -moz-appearance: textfield;
}

#avatarInput {
  display: none;
}

ul {
  list-style-type: none;
}

img {
  display: block;
}

button {
  cursor: pointer;
  background: none;
  outline: none;
  border: none;
  color: #000;
}

a {
  color: #fff;
  text-decoration: none;
}

select {
  outline: none;
  width: 100%;
  height: auto;
  border-radius: 10px;
  color: #d3d3d3;
  padding: 1rem .8rem;
  appearance: none;
  background: url('../icons/arrow-down.svg') no-repeat right;
  background-position-x: calc(100% - .8rem);
  margin-bottom: 1rem;
  border: 1px solid #d3d3d3;
  font-size: 17px;
}

option {
  background-color: #171b24;
  color: #d3d3d3;
  font-size: 17px;
  padding: 3rem 0;
  height: 40px;
}

input {
  outline: none;
  background-color: transparent;
  border: none;
  color: #d3d3d3;
}

input[type=text],
input[type=number],
input[type=date] {
  outline: none;
  background-color: transparent;
  border: 1px solid #d3d3d3;
  font-size: 17px;
  color: #d3d3d3;
  padding: 1rem .8rem;
  border-radius: 10px;
  width: 100%;
}

input[type=text]::placeholder,
input[type=number]::placeholder,
input[type=date]::placeholder {
  color: #d3d3d3;
  font-size: 17px;
}

main {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 60px 16px;
  background-color: var(--background-color);
  position: relative;
}

main.notifications {
  padding-left: 10px;
  padding-right: 10px;
}

main.no_footer {
  padding-bottom: 10px;
}

main.no_header {
  padding-top: 1rem;
}

/* Стили шапки */
.header {
  top: 0;
  left: 0;
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 60px;
  background-color: #2c3345;
  padding: 10px;
  z-index: 2;
}

.header__wrapper {
  display: flex;
  gap: 32px;
}

.header .row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header__button-auto {
  cursor: pointer;
  padding: 8px 11px;
  color: #fff;
  border-radius: 30px;
  background-color: #f05354;
  text-decoration: line-through;
  font-weight: 600;
}

.header__button-auto.on {
  text-decoration: none;
  background-color: #1b922b;
}

.header__button-back {
  display: flex;
  align-items: center;
}

/* Если кнопка включена, то */
.header__button-auto.active {
  text-decoration: none;
}

.header .money {
  font-size: 1.5rem;
}

.page__title {
  font-size: 24px;
}

.section {
  border-bottom: 1px solid #343a4a;
}

.section:last-child {
  border-bottom: none;
}

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 4px 0;
}

.section__header .close_page {
  color: #fff;
  margin-top: 12px;
  margin-bottom: 12px;
  width: 40px;
  height: 40px;
}

.section__header .section__header-title {
  margin: 0;
}

.section__header-title {
  font-size: 16px;
  margin-top: .8rem;
  margin-bottom: .2rem;
}

.section__title {
  color: #22AAB5;
  text-transform: uppercase;
  margin-top: 16px;
  margin-bottom: 12px;
  font-size: 17px;
}

.section__header .row {
  display: flex;
  gap: 1rem;
}

.section__list-item--link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  position: relative;
  font-weight: 400;
  font-size: 1.4rem;
  color: #e2e5ec;
}

.section__list-item.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: -15px;
  height: 100%;
  width: 3px;
  background-color: #ffc400;
}

.section__list-item {
  position: relative;
}

.section__list--outline .section__list-item {
  border-bottom: 1px solid #343a4a;
}

.section__list-item:last-child {
  border-bottom: none;
}

.section__list-item__big--link {
  display: block;
  padding: 12px 0;
}

.section__list-item__big--link.row {
  display: flex;
  gap: 1rem;
  font-size: 1.2rem;
}
.section__list-item__big--link.row .section__list-item__title {
  font-size: 1.2rem;
}

.section__list-item.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.section__list-item--link.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section__list-item--link.row .section__list-item__value {
  font-weight: 500;
  color: #e2e5ec;
  font-size: 1.3rem;
  width: 45px;
  display: flex;
  justify-content: flex-end;
}

.section__dropdown {
  display: flex;
  flex-direction: column;
}

.section__dropdown-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 16px;
  background-color: #1b202b;
  margin-top: 12px;
  border-radius: 4px;
}

.section__dropdown-header svg {
  transition: 0.2s transform;
  transform: rotate(0);
}

.section__dropdown-header svg.open {
  transform: rotate(180deg);
}

.section__dropdown-list {
  background-color: #1b202b;
  transition: 0.2s all;
  height: 0px;
  z-index: -5;
  border-radius: 4px;
}

.info_sum .section__dropdown-list.open {
  height: 85px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: transparent;
}

.info_sum .section__dropdown-list .section__dropdown-item {
  font-size: 1rem;
  padding: 4px 12px;
  color: #8F95A3;
}

.section__dropdown-list.open {
  z-index: 1;
  height: 215px;
  margin-top: 4px;
}

.section__dropdown-list.notifications.open {
  height: 98px;
}

.section__description a {
  color: #22AAB5;
}

.section__dropdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  font-size: 18px;
  user-select: none;
}

.switch {
  display: flex;
  align-items: center;
}

.info_sum .section__dropdown-name {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: .6rem;
}

.info_sum .section__dropdown-description {
  color: #8F95A3;
  font-weight: 500;
}

.section__dropdown-name {
  pointer-events: none;
  user-select: none;
  font-size: 18px;
}

.section__wrapper-btns {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.section__input {
  margin-top: 1rem;
}

.section__list.border .section__list-item {
  border-bottom: 1px solid #343a4a;
}

.buttons-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.section__button--outline,
.section__button {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  width: 100%;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 400;
}

.section__button--outline {
  border: 1px solid #1AAABF;
  color: #1AAABF;
}

.section__button {
  background-color: #1AAABF;
  color: #fff;
}

.content-wrapper {
  flex-grow: 1;
}

.profile__user {
  margin-top: 16px;
  padding: 20px 30px;
  gap: 30px;
  display: flex;
  background-color: #1b202b;
  width: 100%;
  border-radius: 4px;
}

.profile__user .col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.profile__user-info {
  font-weight: 400;
}

.profile .section__list {
  width: 100%;
  background-color: #242a3a;
  padding: 12px 16px;
  margin-top: 12px;
}

.switch input[type="checkbox"] {
  height: 0;
  width: 0;
  visibility: hidden;
}

.switch label {
  cursor: pointer;
  text-indent: -9999px;
  width: 50px;
  height: 25px;
  background: #2d2b3b;
  display: block;
  border-radius: 100px;
  position: relative;
}

.switch label:after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  background: #fff;
  border-radius: 90px;
  transition: 0.3s;
}

.switch input:checked + label {
  background: #9cb647;
}

.switch input:checked + label:after {
  left: calc(100% - 2px);
  transform: translateX(-100%);
}

.switch label:active:after {
  width: 30px;
}

.service__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.service__item-link {
  display: block;
  color: #e2e5ec;
  background-color: #1b202b;
  padding: 16px;
  border-radius: 4px;
}

.service__price {
  display: block;
  font-size: 18px;
  margin-top: 6px;
}

.service__info_auto {
  position: relative;
  margin-top: 8px;
  padding: 12px 16px 12px 32px; /* Добавил отступ слева для точки */
  background: rgba(148, 163, 184, 0.1);
  border-radius: 10px;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.service__info_auto.online,
.service__info_auto.offline {
  padding-left: 32px; /* Увеличил отступ для точек */
}

.service__online,
.service__offline {
  margin-top: 8px;
  display: block;
}

.service__online {
  color: #10b981; /* Использовал переменную успеха */
}

.service__offline {
  color: #ef4444; /* Использовал переменную ошибки */
}

.service__info_auto.online::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  left: 16px; /* Сдвинул точку правее */
  width: 10px; /* Увеличил размер */
  height: 10px;
  border-radius: 50%;
  background-color: var(--success-color, #10b981); /* Использовал переменную */
  box-shadow: 0 0 8px var(--success-color, #10b981); /* Добавил свечение */
}

.service__info_auto.offline::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  left: 16px; /* Сдвинул точку правее */
  width: 10px; /* Увеличил размер */
  height: 10px;
  border-radius: 50%;
  background-color: var(--error-color, #ef4444); /* Использовал переменную */
  box-shadow: 0 0 8px var(--error-color, #ef4444); /* Добавил свечение */
}

.footer {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  box-sizing: border-box;
  background-color: #2c3345;
  position: fixed;
  margin-top: 12px;
  z-index: 999999;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
}

.footer__item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__item.active {
  background-color: #202634;
}

.footer__item-inner {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  color: #9ba1af;
  gap: 3px;
}

.footer__item.active .footer__item-inner {
  color: #fff;
}

.footer__item-inner svg {
  width: 30px;
  height: 30px;
  stroke: #9ba1af;
  fill: transparent;
  stroke-width: 1.5;
  stroke-miterlimit: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 400;
}

.footer__item.active .footer__item-inner svg {
  stroke: #fff;
}

.section__list-item__title {
  font-weight: 400;
  font-size: 1.4rem;
  color: #e2e5ec;
}

.section__list-item__value {
  color: #8F95A3;
  font-size: 15px;
  margin-top: 4px;
  font-weight: 500;
}

.section__list-item__balance {
  font-size: 1.4rem;
}

.parameters {
  padding-bottom: 0;
}

/* Всплывающее окно "о приложении" */
.modal__info_app-wrapper,
.modal__exit-wrapper,
.modal__delete_car-wrapper,
.modal__change_number-wrapper {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 4;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  background-color: rgba(0, 0, 0, 0.37);
  height: 100vh;
  width: 100vw;
}

.modal__info_app,
.modal__exit,
.modal__delete_car,
.modal__change_number {
  content: '';
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: auto;
  padding: 2rem;
  width: 330px;
  background-color: #232B38;
  border-radius: 12px;
}

.modal__exit,
.modal__delete_car,
.modal__change_number {
  align-items: flex-start;
  padding: 1rem;
}

.modal__info_app-wrapper.show,
.modal__exit-wrapper.show,
.modal__delete_car-wrapper.show,
.modal__change_number-wrapper.show {
  display: flex;
}

.modal__info_app__img {
  width: 80px;
  height: 80px;
  border-radius: 4px;
}

.modal__info_app__title {
  margin-top: 8px;
  font-weight: 400;
}

.modal__info_app__version {
  font-weight: 400;
  font-size: 16px;
  margin-bottom: 4px;
}

.modal__info_app__link {
  margin-top: 8px;
  color: #88C4C1;
  text-decoration: underline solid #7fcfcb;
}

.card_system__list-item {
  display: flex;
  align-items: center;
  font-size: 1.4rem;  
  width: 100%;
}

.card_system__radio {
  display: block;
  margin-right: 1rem;
  padding: 1rem 0;
}

.card_system__label {
  display: block;
  width: 100%;
  padding: 1rem 0;
}

.card_system__label-input {
  display: block;
  margin-top: 1rem;
  font-size: 1.4rem;
}

.modal__exit .row,
.modal__change_number .row,
.modal__delete_car .row {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.modal__exit-button--outline,
.modal__exit-button {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  width: 50%;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 400;
}

.modal__exit-button--outline {
  color: #1AAABF;
  border: 1px solid #667eea;
}

.modal__exit-button {
  background-color: #1AAABF;
  color: #fff;
}

.modal__exit-title {
  font-weight: 500;
  margin-bottom: 1rem;
}

.modal__exit-description {
  margin-bottom: 1.5rem;
}

.no_padding {
  padding-left: 0;
  padding-right: 0;
}

.main__rating .section {
  margin-left: 16px;
  margin-right: 16px;
}

.rating {
  background-color: #2c3345;
  padding: 16px;
}

.rating-main .section {
  padding-left: 16px;
  padding-right: 16px;
}

.rating__list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.rating__list-item {
  display: flex;
  justify-content: space-between;
}

.rating__list-item__title,
.rating__list-item__value {
  font-weight: 400;
  font-size: 1.2rem;
}

.rating_bar {
  width: 100%;
  height: 5px;
  border-radius: 6px;
  background-color: #e2e5ec;
  margin-bottom: .6rem;
}

.rating_bar__active-line {
  background-color: #1BA9C1;
  height: 100%;
  width: 90%;
  border-radius: 6px;
}

.get_permission__description {
  font-size: 1.4rem;
  margin-top: 1rem;
}

.get_permission__description--link {
  color: #68A5A0;
  text-decoration: solid underline #68A5A0;
}

.profile__avatar-wrapper {
  position: relative;
  width: fit-content;
  margin: 1rem auto;
}

.profile__avatar-input {
  opacity: 0;
  position: absolute;
  z-index: -1;
  width: 40px;
  height: 40px;
  left: 0;
  top: 0;
}

.profile__avatar-input__label {
  position: absolute;
  cursor: pointer;
  border-radius: 50%;
  right: 0;
  bottom: 0;
}

.profile__avatar-description {
  text-align: center;
  margin-bottom: 1rem;
  color: #8F95A3;
}

.modal__wrapper-input {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal__wrapper-input span {
  display: block;
  position: relative;
  font-size: 1.2rem;
}

.modal__wrapper-input span::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  width: 100%;
  height: 1px;
  background-color: #e2e5ec;
  margin: auto;
}

.notifications__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0 0 0;
}

.notifications__list-item {
  padding: 16px;
  background-color: #1b202b;
}

.notifications__list-item__text {
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.2;
}

.notifications__list-item__date {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
  color: #8F95A3;
}

.no_footer {
  padding-bottom: 16px;
}

.router__list {
  display: flex;
  flex-direction: column;
  margin: 1rem 0;
  user-select: none;
}

.router__list.info-order {
  gap: 1rem;
}

.router__list.info-order .router__list-item {
  font-size: 1rem;
  font-weight: 500;

  padding-left: 35px;
}

.router__list.info-order .router__list-item::before {
  width: 6px;
  height: 6px;
}

.router__list-item {
  position: relative;
  padding: .75rem 0;
  font-size: 1.4rem;
  padding-left: 40px;
}

.router__list-item::before {
  content: '';
  position: absolute;
  right: calc(100% - 18px);
  top: 0;
  bottom: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 4px solid #e2e5ec;
}

.router__list-item:first-child::before {
  background-color: transparent;
  border-color: #22AAB5;
}

.router__list-item:last-child::before {
  background-color: transparent;
  border-color: #22AAB5;
  background-color: #22AAB5;
}

.order .section__header .section__title {
  margin: 0;
}

.order .section__title {
  color: #e2e5ec;
  font-size: 1.4rem;
}

.order .section__list-item--link.row .section__list-item__value {
  width: auto;
  font-weight: 400;
  text-align: end;
}

.zone {
  padding-left: 10px;
  padding-right: 10px;
  margin-top: 10px;
}

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

.zone__list-item {
  position: relative;
  background-color: #202634;
  border-radius: 5px;
  padding: 1rem 15px;
}

.zone__list-item::before {
  position: absolute;
  content: '';
  left: 0;
  height: 100%;
  top: 0;
  bottom: 0;
  width: 5px;
  background-color: #ffc400;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.zone__list-item .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.zone__list-item__title {
  font-weight: 400;
  font-size: 1rem;
  color: #8F95A3;
}

.zone__list-item__price {
  font-weight: 400;
  font-size: 1.4rem;
}

.zone__list-item__route__list {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-bottom: 1rem;
  color: #e2e5ec;
}

.zone__list-item__wrapper-state {
  color: #e2e5ec;
  font-size: .9rem;
}

.zone__list-item__route__list-item {
  position: relative;
  padding-left: 30px;
}

.zone__list-item__route__list-item::before {
  content: '';
  position: absolute;
  right: calc(100% - 18px);
  top: 0;
  bottom: 0;
  margin: auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 4px solid #e2e5ec;
}

.zone__list-item__route__list-item:first-child::before {
  background-color: transparent;
  border-color: #22AAB5;
}

.zone__list-item__route__list-item:last-child::before {
  background-color: transparent;
  border-color: #22AAB5;
  background-color: #22AAB5;
}

.todo__list-title,
.todo__list-price {
  margin-top: 1rem;
  font-size: 1rem;
}

.todo__list {
  margin-top: .5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.todo__list-description {
  margin-top: .5rem;
  line-height: 1.4;
}

.router__wrapper__info-blocks {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.router__info-block {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.order__wrapper__add-blocks {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.order__add-block {
  padding: 4px;
  background-color: rgb(161, 161, 161);
  border-radius: 4px;
}

#comment {
  margin-bottom: 1rem;
}

.section__radio__list {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.section__radio__list-item {
  display: flex;
  align-items: center;
  margin: 1rem 0 .5rem 0;
}

.section__radio__list-item .card_system__radio {
  margin-right: 10px;
}

.section__radio__list-item .card_system__label {
  font-size: 1.4rem;
  padding: 0;
}

.rating__chose-bad__list-item {
  display: flex;
}

.rating__chose-bad__list-item--label {
  display: block;
  padding: .5rem 0 .5rem 1rem;
  font-size: 1.4rem;
}

.rating__chose-bad__list-item--input {
  transform: scale(1.2);
  padding-right: 1rem;
}

.rating__chose-bad__list {
  display: none;
}

.rating__chose-bad__list.show {
  display: block;
}

.wrapper-modal.show {
  z-index: 4;
  visibility: visible;
}

.wrapper-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.37);
  display: flex;
  align-items: flex-end;
  z-index: -4;
  visibility: hidden;
}

.modal__action {
  width: 100%;
  padding: 16px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  background-color: #232B38;
}

.modal__action .section__list-item {
  border-bottom: 1px solid #343a4a;
}

.section__input-info {
  margin-top: .4rem;
  color: #8F95A3;
}

.notice {
  background-color: #223543;
  padding: 1rem;
  color: #4099a3;
  border-radius: 10px;
  margin-top: 1rem;
}

#changePassword {
  margin-top: 1rem;
}

.table__auto {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1rem;
}

.table__auto tr{
  height: 45px;
  border-bottom: 1px solid white;
}

.table__auto-title {
  font-weight: 600;
}

.table__auto-bin {
  padding-left: 5px;
}

#addAuto {
  margin-bottom: 1rem;
}

main.completion {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.completion__price-value {
  font-size: 46px;
  font-weight: 400;
}

.completion__price-description {
  font-size: 18px;
  margin-top: .3rem;
  color: #8F95A3;
}

.completion__price {
  display: flex;
  align-items: center;
  flex-direction: column;
  background-color: #1b202b;
  padding: 1.5rem 0;
}

.completion__info {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
}

.completion__info-value {
  font-size: 22px;
  font-weight: 400;
}

.completion__info-description {
  margin-top: .3rem;
  color: #8F95A3;
}

.completion__sidebar {
  background-color: #1b202b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem .5rem 1rem;
}

.active-order .completion__sidebar {
  display: block;
}

.completion__sidebar-value {
  font-size: 42px;
  font-weight: 400;
}

.completion__sidebar-description {
  font-size: 18px;
  margin-bottom: .5rem;
}

.allowances__sidebar {
  padding-top: 1rem;
  border-top: 1px solid #343a4a;
}

.checkbox__list {
  margin-top: 1rem;
}

.checkbox__list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkbox__list-item--label {
  font-size: 1.4rem;
  padding: .6rem 0;
  width: 100%;
}

.checkbox__list-item--input {
  display: block;
  transform: scale(1.4);
}

.add_router--button {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.4rem;
  color: #18ACC0;
  margin-top: 2rem;
}

.section__route {
  background-color: #1b202b;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 1rem;
  padding-top: .1rem;
}

.allowances__sidebar {
  padding: 1rem 1rem 0 1rem;
}

.wrapper__load_bar {
  position: relative;
}

.load_bar {
  width: 100%;
  height: 25px;
  background-color: #18ACC0;
}

.load_bar__title {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
}

main.active-order {
  padding-bottom: 0;
}

.active-order .section {
  padding-left: 16px;
  padding-right: 16px;
}

.stats__wrapper-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 10px;
  background-color: #232B38;
}

.wrapper__toggle-btn {
  display: flex;
  width: 100%;
}

.toggle-btn {
  width: 50%;
  height: 55px;
  border: 3px solid #323D4F;
  color: #e2e5ec;
  font-size: 1rem;
  margin-bottom: .5rem;
}

.toggle-btn.active {
  background-color: #138C9B;
}

.toggle-btn:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  border-right: 0;
}

.toggle-btn:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-left: 0;
}

.stats__wrapper-value {
  margin: .5rem 0 .3rem 0;
}

.stats__description {
  font-size: 1rem;
  color: #8F95A3;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.stats__price {
  font-size: 36px;
}

.stats__card-finance, .stats__card-orders {
  display: none;
}

.stats__card-finance.show, .stats__card-orders.show {
  display: block;
}

.stats__card-orders .row {
  display: flex;
  margin-top: 1rem;
}

.stats__card-orders .stats__wrapper-value {
  width: 50%;
}

.stats__wrapper-distance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #171b24;
}

.stats__distance-title {
  font-weight: 400;
  font-size: 1rem;
}

.cards__wrapper-card {
  background-color: #232B38;
  border-radius: 10px;
  padding: 16px;
  margin-top: 1rem;
}

.cards__wrapper-card:first-child {
  background-color: red;
}

.cards__wrapper-value {
  margin-top: 1rem;
}

.cards__wrapper-card .stats__price {
  font-size: 1.4rem;
}

.cards__wrapper-card .stats__description {
  font-weight: 400;
}

.cards__card-link {
  display: block;
  color: #e2e5ec;
  font-size: 1rem;
  padding: 10px;
  border-radius: 6px;
  background-color: #2c5c68;
  margin-top: 1rem;
  width: fit-content;
}

.section__route .radio__list-item {
  display: flex;
}

.section__route .radio__list-item--label {
  display: block;
  padding-left: 1rem;
  font-size: 1.2rem;
}

.radio__list-item--input {
  scale: 1.4;
}

.reverse__checkboxes .checkbox__list-item--label {
  padding-left: 1rem;
}

.reverse__checkboxes .checkbox__list-item {
  border-bottom: 1px solid #343a4a;
}

.reverse__checkboxes .checkbox__list-item:last-child {
  border-bottom: none;
}


.fixed-sidebar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #171b24;
  padding: 1rem 1rem 10px 1rem;
}

main:has(.reverse__checkboxes) {
  padding-bottom: 76px;
}

.auth__title {
  font-size: 18px;
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth__subtitle {
  line-height: 1.6;
  text-align: center;
  font-size: 28px;
}

.auth__description {
  margin-top: 1.5rem;
  line-height: 1.4;
  font-weight: 400;
  text-align: center;
}

.auth__description-code {
  line-height: 1.4;
  font-weight: 400;
  text-align: center;
}

.auth__form {
  margin-top: 2rem;
}

.auth__form .section__button {
  margin-top: 2rem;
}

.auth .section__input {
  margin-bottom: 0;
}

.auth__form .section__input{
  margin-top: .5rem;
  margin-bottom: 2rem;
}

.auth .auth__small-description {
  margin-top: 1rem;
}

.auth__sidebar {
  margin-top: 1rem;
  margin-bottom: 6px;
}

.auth__back-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #1AAABF;
}

.wrapper-input {
  position: relative;
  width: 140px !important;
  margin: 0 auto;
  transform: translateX(10px);
  margin-top: 3rem;
}

.auth__code--input {
  font-weight: 400;
  letter-spacing: 1rem;
  font-size: 2rem !important;
  border: none !important;
  width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important; 
}

.wrapper-input::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 120px;
  height: 1px;
  background-color: #707279;
}

.auth__repeat-code {
  color: #e2e5ec;
  line-height: 1.4;
  margin-top: 5rem;
}

.wrapper-auth {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth .checkbox__list-item label{
  margin-left: 1rem;
}

.auth .page {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.auth .page .auth__title{
  text-align: left;
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0;
  letter-spacing: 0;
}

.step-bar {
  position: relative;
  width: 100%;
  height: 60px;
  margin-bottom: 3rem;
}

.step-bar::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 100%;
  height: 1px;
  background-color: #fff;
}

.step-bar .step {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 0;
  top: 0;
  margin: auto;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  border: #fff 1px solid;
  font-size: 1.2rem;
  color: #fff;
  background-color: #171b24;
}

.step-bar .step.active {
  background-color: #18ACC0;
  border: none;
}

.step-bar #firstStep {
  left: 0;
}

.step-bar #secondStep {
  left: auto;
  right: 70px;
}

.step-bar #thirdStep {
  left: auto;
  right: 0;
}

.step-bar #lastStep {
  right: 0;
}

.step-bar .step.active::after {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  font-size: 1rem;
  white-space: nowrap;
  color: #e2e5ec;
}

.step-bar #firstStep.active,
.step-bar #firstStep.complete {
  right: auto;
  left: 0;
}

.step-bar #firstStep.active::after {
  content: 'Личная информация';
}

.step-bar #secondStep.active,
.step-bar #secondStep.complete {
  left: 70px;
  right: auto;
}

.step-bar #secondStep.active::after {
  content: 'Транспорт';
}

.step-bar #thirdStep.active,
.step-bar #thirdStep.complete {
  left: 140px;
  right: auto;
}

.step-bar #thirdStep.active::after {
  content: 'Доп. параметры';
}

.step-bar .step.complete {
  background-color: #34373b;
}

.step-bar .step.complete::after {
  content: '';
}

.auth .page .checkbox__list-item--input {
  transform: scale(1.1);
}

.auth .page .checkbox__list-item--label {
  font-size: 1.2rem;
}

.auth .page#thirdPage .checkbox__list-item--input {
  transform: scale(1.4);
}

.auth .page#thirdPage .checkbox__list-item--label {
  font-size: 1.4rem;
}

.auth .page .section__input[type=date] {
  padding-right: 1rem;
}

input[type="date"]::before { 
  content: attr(data-placeholder);
  width: 100%;
}

input[type=date] {
  -webkit-appearance: none;
  background: url('../icons/arrow-down.svg') no-repeat right;
  background-position-x: calc(100% - .8rem);
}
input[type=date]::-webkit-inner-spin-button,
input[type=date]::-webkit-calendar-picker-indicator {
  display: none;
  -webkit-appearance: none;
}

input[type="date"]:focus::before,
input[type="date"]:valid::before { display: none }

.auth__login-form {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth__login-form #authPhone{
  margin-bottom: 1.5rem;
}

.auth__login-form #regBtn {
  margin-top: 1.5rem;
}

.auth__login-form .auth__small-description {
  text-align: center;
}

.auth__logo {
  margin: 0 auto 1rem auto;
  width: 80px;
  height: 80px;
}

.auth__logo-text {
  display: block;
  width: 270px;
  height: auto;
  margin: 0px auto 2rem auto;
  background: no-repeat;
}

.first_screen {
  height: 100%;
  width: 100%;
  background-image: url('../img/background.png');
  background-size: 100%;
}

.first_screen main {
  background: none;
}

.deleteCar {
  width: 20px;
}

/* Стили для модального окна активации предварительного заказа (используются на странице order-view) */
.modal__pre-order-activation-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
    display: none;
}

.modal__pre-order-activation-wrapper[style*="flex"],
.modal__pre-order-activation-wrapper.show {
    display: flex !important;
}

.modal__pre-order-activation {
    background: #1e293b;
    border-radius: 20px;
    padding: 30px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid #334155;
    animation: modalAppear 0.3s ease;
}

.modal__pre-order-activation-header {
    margin-bottom: 20px;
}

.modal__pre-order-activation-header i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 10px;
    display: block;
}

.modal__pre-order-activation-title {
    font-size: 24px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

.modal__pre-order-activation-body {
    margin-bottom: 25px;
    text-align: left;
}

.modal__pre-order-activation-text {
    font-size: 16px;
    color: #cbd5e1;
    margin-bottom: 15px;
    line-height: 1.6;
}

.minutes-remaining {
    font-weight: 600;
    color: #667eea;
    font-size: 16px;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.modal__pre-order-activation-question {
    font-size: 16px;
    color: #f1f5f9;
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0;
}

.modal__pre-order-activation-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.modal__pre-order-activation-button--cancel,
.modal__pre-order-activation-button--confirm {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.modal__pre-order-activation-button--cancel {
    background: transparent;
    color: #cbd5e1;
    border: 2px solid #334155;
}

.modal__pre-order-activation-button--cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #94a3b8;
}

.modal__pre-order-activation-button--confirm {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.modal__pre-order-activation-button--confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px #667eea;
}

.modal__pre-order-activation-button--confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
