/* Баунт-Локал — UI в духе супераппа (чистая сетка, заливка, Golos) */

:root {
  --panel-top: #f5f5f7;
  --font-body: "Golos Text", system-ui, sans-serif;
  --font-display: "Golos Text", system-ui, sans-serif;
  --bg-page: #f5f5f7;
  --ink: #1a1a1a;
  --muted: #8a8a8e;
  --line: rgba(0, 0, 0, 0.06);
  --accent: #ffcc00;
  --accent-ink: #1a1a1a;
  --yandex-blue: #3d7bf5;
  --yandex-purple: #8b5cf6;
  --yandex-orange: #ff8a00;
  --yandex-green: #22c55e;
  --radius-lg: 20px;
  --radius-md: 16px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
  --tabbar-h: 72px;
  --app-max: 720px;
}

body {
  background: var(--bg-page);
  color: var(--ink);
}

.ui-icon {
  width: 26px;
  height: 26px;
  display: block;
  color: currentColor;
}

/* ——— Hero ——— */
.hero--compact {
  min-height: min(50vh, 400px);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.hero__grain {
  display: none;
}

.hero__veil {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.hero__badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  border: none;
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 7vw, 2.35rem);
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
  letter-spacing: -0.03em;
}

.hero__title {
  font-weight: 600;
  font-size: 1.05rem;
  max-width: none;
  opacity: 0.95;
}

.hero__lead {
  font-size: 0.9rem;
  opacity: 0.8;
  max-width: 28ch;
}

.hero__wave path {
  fill: var(--bg-page);
}

.btn--glow {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 16px rgba(255, 204, 0, 0.35);
  border-radius: 14px;
}

.btn--glass {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  font-weight: 600;
}

/* ——— Панель сервисов (как у Яндекса) ——— */
.home-panel {
  margin-top: 0;
  padding: 16px 16px 8px;
  background: var(--bg-page);
}

.home-menu--yandex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 0 20px;
}

.home-menu--yandex .menu-tile {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  min-height: 92px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
  border: none;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.06),
    inset 0 0 0 1px rgba(0, 0, 0, 0.03);
  text-align: left;
  animation: tileIn 0.4s ease both;
  animation-delay: calc(var(--i, 0) * 50ms);
}

.home-menu--yandex .menu-tile::before {
  display: none;
}

.home-menu--yandex .menu-tile:nth-child(1) {
  --i: 0;
}
.home-menu--yandex .menu-tile:nth-child(2) {
  --i: 1;
}
.home-menu--yandex .menu-tile:nth-child(3) {
  --i: 2;
}
.home-menu--yandex .menu-tile:nth-child(4) {
  --i: 3;
}

.home-menu--yandex .menu-tile:active {
  transform: scale(0.98);
}

.menu-tile__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  grid-row: auto;
  opacity: 1;
  position: relative;
  overflow: hidden;
}

.menu-tile__icon .ui-icon {
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1;
}

.menu-tile__icon--ride {
  background: #e9f2ff;
  color: #3d7bf5;
  box-shadow: none;
}

.menu-tile__icon--tools {
  background: #efe8ff;
  color: #7c4dff;
  box-shadow: none;
}

.menu-tile__icon--box {
  background: #fff2e2;
  color: #ff9f1a;
  box-shadow: none;
}

.menu-tile__icon--shop {
  background: #e7fbef;
  color: #22c55e;
  box-shadow: none;
}

.menu-tile__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.menu-tile__label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #17181a;
}

.menu-tile__hint {
  font-size: 0.78rem;
  color: #6d7178;
  line-height: 1.25;
}

/* ——— Новости ——— */
.home-news {
  padding: 0 0 12px;
}

.home-news__title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  padding-left: 0;
}

.home-news__title::before {
  display: none;
}

.link-btn {
  font-weight: 600;
  color: var(--yandex-blue);
  background: transparent;
  padding: 6px 0;
}

.news-feed {
  gap: 10px;
}

.news-card {
  border: none;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.news-card--featured {
  border-radius: var(--radius-lg);
}

.news-card--featured .news-card__img {
  height: 152px;
}

.news-card__tag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 8px;
  background: #eef4ff;
  color: var(--yandex-blue);
}

.news-card__tag--event {
  background: #fff4e6;
  color: #c45f00;
}

.news-card__tag--community {
  background: #ecfdf3;
  color: #15803d;
}

.news-card__title {
  font-weight: 600;
  font-size: 1.02rem;
}

/* ——— Tabbar ——— */
.tabbar--yandex {
  left: 50%;
  right: auto;
  width: fit-content;
  bottom: calc(10px + var(--safe-bottom));
  transform: translateX(-50%);
  margin: 0;
  padding: 8px;
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 60;
}

.tabbar--yandex .tab {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  gap: 0;
  border-radius: 14px;
  color: #9aa0a6;
  justify-self: auto;
  padding: 0;
}

.tabbar--yandex .tab__icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  opacity: 1;
  transition: opacity 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.tabbar--yandex .tab__label {
  display: none;
}

.tabbar--yandex .tab.is-active {
  background: #eef4ff;
  color: var(--yandex-blue);
}

.tabbar--yandex .tab.is-active .tab__icon {
  opacity: 1;
  color: var(--yandex-blue);
  transform: none;
}

.tabbar--yandex .tab__label {
  color: inherit;
}

@media (min-width: 721px) {
  .tabbar--yandex {
    max-width: none;
  }
}

@media (max-width: 420px) {
  .tabbar--yandex {
    gap: 4px;
    padding: 7px;
  }
}

/* ——— Внутренние экраны ——— */
.page-head {
  background: var(--bg-page);
  padding-top: 12px;
}

.page-head__title {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.back {
  background: #fff;
  box-shadow: var(--shadow-card);
  border: none;
}

.row {
  background: #fff;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  border-radius: 14px;
  border: none;
}

.btn--small {
  background: var(--ink);
  border-radius: 14px;
}

.modal__panel {
  background: #fff;
  border-radius: 20px;
  border: none;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.modal__head h3 {
  font-weight: 700;
}

.app {
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 18px);
}

.toast {
  border-radius: 14px;
  background: var(--ink);
  font-weight: 500;
}

.info-hint {
  background: #eeeef0;
  border: none;
  color: var(--muted);
  font-weight: 600;
}

.hint-popover {
  border-radius: 14px;
  background: var(--ink);
}

.field input,
.field select,
.field textarea {
  border-radius: 12px;
  border: 1px solid #e5e5ea;
  background: #fff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--yandex-blue);
  box-shadow: 0 0 0 3px rgba(61, 123, 245, 0.15);
}

@media (max-width: 480px) {
  .hero--compact {
    min-height: 260px;
    border-radius: 0 0 18px 18px;
  }

  .hero__content {
    padding: 18px 16px 22px;
  }

  .hero__badge {
    margin-bottom: 8px;
    font-size: 0.62rem;
  }

  .hero__brand {
    font-size: 1.45rem;
    line-height: 1;
  }

  .hero__title {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .hero__lead {
    font-size: 0.82rem;
    max-width: 24ch;
    margin-bottom: 12px;
  }

  .hero__actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hero__actions .btn {
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.82rem;
    border-radius: 12px;
  }

  .home-panel {
    padding: 12px 12px 6px;
  }

  .home-menu--yandex {
    gap: 8px;
    padding-bottom: 14px;
  }

  .home-menu--yandex .menu-tile {
    gap: 10px;
    min-height: 78px;
    padding: 12px;
    border-radius: 16px;
  }

  .menu-tile__icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .menu-tile__icon .ui-icon {
    width: 20px;
    height: 20px;
  }

  .menu-tile__label {
    font-size: 0.88rem;
    line-height: 1.08;
  }

  .menu-tile__hint {
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .home-news__head {
    margin-bottom: 8px;
  }

  .home-news__title {
    font-size: 1.15rem;
  }

  .news-card {
    border-radius: 16px;
  }

  .news-card--featured .news-media--featured {
    height: 132px;
  }

  .news-card--button:not(.news-card--featured) .news-card__media {
    width: 72px;
    padding: 8px 0 8px 8px;
  }

  .news-media--thumb {
    width: 56px;
    height: 56px;
  }

  .news-card__title {
    font-size: 0.92rem;
    line-height: 1.2;
  }

  .news-card__text {
    font-size: 0.79rem;
    -webkit-line-clamp: 2;
  }

  .news-card__meta {
    font-size: 0.7rem;
  }

.news-card__link {
  display: none;
}

.news-card__meta {
  min-width: 0;
  flex: 1;
}

  .page-head {
    padding: 12px 12px 6px;
    grid-template-columns: 38px 1fr auto;
    gap: 10px;
  }

  .page-head__title {
    font-size: 1.2rem;
  }

  .page-head__sub {
    font-size: 0.8rem;
  }

  .back,
  .btn--small {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    border-radius: 12px;
  }

  .filters,
  .list,
  .trips-tabs-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  .row {
    padding: 12px;
    border-radius: 14px;
  }

  .row__title {
    font-size: 0.96rem;
    line-height: 1.2;
  }

  .row__meta,
  .row__car {
    font-size: 0.8rem;
  }

  .row--with-photo {
    grid-template-columns: 72px 1fr;
    gap: 10px;
  }

  .row__thumb {
    width: 72px;
    height: 72px;
  }

  .modal {
    width: min(100% - 18px, 520px);
  }

  .modal__panel {
    border-radius: 18px;
  }

  .modal__head {
    padding: 14px 14px 6px;
  }

  .modal__body {
    padding: 8px 14px 4px;
    max-height: 68vh;
  }

  .modal__foot {
    padding: 10px 14px 14px;
  }

  .modal__inline-actions {
    grid-template-columns: 1fr;
  }

  .confirm-dialog__panel {
    width: min(100vw - 20px, 420px);
    padding: 16px;
    border-radius: 16px;
  }
}


.btn--secondary {
  background: #111827;
  color: #fff;
  font-weight: 600;
}

.btn--ghost-dark {
  background: #eef2f7;
  color: #111827;
  font-weight: 600;
  border: 1px solid #d9dee8;
}

.modal__inline-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.vehicle-found {
  padding: 12px 14px;
  border-radius: 14px;
  background: #eff8ff;
  border: 1px solid #bfdbfe;
}

.vehicle-found[data-state="error"] {
  background: #fff4f4;
  border-color: #fecaca;
}

.vehicle-found[data-state="error"] .vehicle-found__title {
  color: #b91c1c;
}

.vehicle-found[data-state="error"] .vehicle-found__text {
  color: #7f1d1d;
}

.vehicle-found__title {
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 4px;
}

.vehicle-found__text {
  color: #1f2937;
  font-size: 0.92rem;
}

.confirm-dialog {
  border: 0;
  padding: 0;
  background: transparent;
}

.confirm-dialog::backdrop {
  background: rgba(9, 12, 16, 0.42);
  backdrop-filter: blur(3px);
}

.confirm-dialog__panel {
  width: min(420px, calc(100vw - 28px));
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.confirm-dialog__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}

.confirm-dialog__text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
  color: #4b5563;
}

.confirm-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.news-card {
  cursor: pointer;
  overflow: hidden;
}

.news-card--button {
  width: 100%;
  text-align: left;
  border: 0;
  font: inherit;
  color: inherit;
  background: #fff;
  padding: 0;
  display: flex !important;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  grid-template-columns: unset !important;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.list--news .news-card--button {
  padding: 0;
  grid-template-columns: unset !important;
}

.news-card--button.news-card--featured {
  flex-direction: column;
}

.news-card__media {
  flex-shrink: 0;
}

.news-card--featured .news-card__media {
  width: 100%;
}

.news-card--button:not(.news-card--featured) .news-card__media {
  width: 88px;
  padding: 10px 0 10px 10px;
}

.news-card__body {
  flex: 1;
  min-width: 0;
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-card--featured .news-card__body {
  padding: 12px 14px 14px;
}

.news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.news-card__cta {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--yandex-blue);
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef4ff;
}

.news-card--button:active .news-card__cta {
  background: #dce8ff;
}

/* ——— Медиа новостей (фото + заглушка) ——— */
.news-media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(145deg, #1e3a5f 0%, #3d7bf5 42%, #6ee7c8 100%);
}

.news-media--thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
}

.news-card--featured .news-media--featured {
  width: 100%;
  height: 168px;
  border-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.news-media--hero {
  width: 100%;
  height: min(42vw, 220px);
  min-height: 180px;
  border-radius: 0;
  margin: 0 -0px;
}

.news-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-media__placeholder {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.95);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 45%),
    linear-gradient(145deg, #1a3354 0%, #2f5fd4 50%, #4ecdc4 100%);
}

.news-media.is-empty .news-media__placeholder,
.news-media.is-broken .news-media__placeholder {
  display: flex;
}

.news-media__svg {
  width: 40px;
  height: 40px;
  opacity: 0.92;
}

.news-media--thumb .news-media__svg {
  width: 28px;
  height: 28px;
}

.news-media__badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

/* ——— Полная статья ——— */
.view-detail--article .page-head--article .page-head__detail-text {
  display: none;
}

.view-detail--article .page-head--article {
  grid-template-columns: 38px 1fr;
  padding-bottom: 0;
}

.view-detail--article .detail-content {
  padding: 0 0 8px;
}

.news-article {
  background: #fff;
}

.news-article__content {
  padding: 16px 16px 8px;
}

.news-article__tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 8px;
  background: #eef4ff;
  color: var(--yandex-blue);
  margin-bottom: 10px;
}

.news-article__tag--event {
  background: #fff4e6;
  color: #c45f00;
}

.news-article__tag--community {
  background: #ecfdf3;
  color: #15803d;
}

.news-article__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: #111827;
}

.news-article__meta {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: #6b7280;
}

.news-article__body {
  font-size: 1rem;
  line-height: 1.6;
  color: #1f2937;
}

.news-article__body p {
  margin: 0 0 0.85em;
}

.news-article__body--html img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 12px 0;
}

.news-article__source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--yandex-blue);
  text-decoration: none;
  border-radius: 12px;
  background: #f0f5ff;
}

.row--clickable {
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.detail-content {
  padding: 0 16px 12px;
}

.detail-content .news-article {
  margin: 0 -16px;
  width: calc(100% + 32px);
}

.detail-content__body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #1f2937;
}

.detail-content__body p {
  margin: 0 0 0.75em;
}

.detail-content__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--yandex-blue);
  text-decoration: none;
}

.reviews-panel {
  margin: 8px 16px 100px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.reviews-panel__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.reviews-summary {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 14px;
}

.reviews-summary strong {
  color: #111827;
  font-size: 1.1rem;
}

.reviews-form {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e7eb;
}

.reviews-form__label {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.star-input {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
}

.star-input__btn {
  border: 0;
  background: transparent;
  font-size: 1.65rem;
  line-height: 1;
  color: #d1d5db;
  padding: 2px 4px;
  cursor: pointer;
}

.star-input__btn.is-on {
  color: #f59e0b;
}

.reviews-form__comment {
  display: block;
  margin-bottom: 16px;
}

.reviews-form__comment textarea {
  margin-top: 6px;
  min-height: 88px;
  resize: vertical;
}

.reviews-form__submit {
  margin-top: 4px;
}

.reviews-thanks {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffbeb, #ecfdf5);
  border: 1px solid #fde68a;
}

.reviews-thanks[hidden] {
  display: none;
}

.reviews-thanks__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f59e0b;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.reviews-thanks strong {
  display: block;
  font-size: 0.95rem;
  color: #111827;
  margin-bottom: 2px;
}

.reviews-thanks p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #4b5563;
}

.btn--block {
  width: 100%;
}

.reviews-empty {
  margin: 0;
  font-size: 0.88rem;
  color: #9ca3af;
}

.reviews-list {
  display: grid;
  gap: 10px;
}

.review-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}

.review-card--mine {
  background: #fffbeb;
  border-color: #fde68a;
}

.review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #3d7bf5, #6366f1);
}

.review-card--mine .review-card__avatar {
  background: linear-gradient(145deg, #f59e0b, #f97316);
}

.review-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.review-card__name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #111827;
}

.review-card__you {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #92400e;
  background: #fde68a;
  vertical-align: middle;
}

.review-card__stars {
  color: #f59e0b;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.review-card__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #1f2937;
  font-weight: 500;
}

.review-card__text--muted {
  color: #9ca3af;
  font-weight: 400;
  font-size: 0.85rem;
}

.review-card__date {
  margin-top: 8px;
  font-size: 0.72rem;
  color: #9ca3af;
}

.review-item {
  display: none;
}

.reviews-panel--shop {
  margin: 12px 16px 100px;
}

.row__rating-hint {
  font-size: 0.78rem;
  color: var(--yandex-blue);
  margin-top: 6px;
}

/* ——— Личный кабинет ——— */
.page-head--profile {
  display: block;
  padding: 18px 16px 6px;
}

.page-head--profile .page-head__title {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.page-head--profile .page-head__sub {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.35;
  white-space: nowrap;
}

.profile {
  padding: 0 16px 100px;
}

.profile-card {
  display: block;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}

.profile-card__top {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.profile-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(145deg, #3d7bf5, #22c55e);
  overflow: hidden;
}

.profile-card__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card__name {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.profile-card__role {
  margin: 0;
  font-size: 0.85rem;
  color: #4b5563;
}

.profile-card__meta {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
}

.profile-card__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.profile-fact {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
}

.profile-fact.is-warn {
  background: #fff7ed;
}

.profile-fact__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 2px;
}

.profile-fact__value {
  font-size: 0.88rem;
  font-weight: 600;
  color: #111827;
  word-break: break-word;
}

.profile-card__tip {
  margin: 10px 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #9a3412;
}

.btn--small-text {
  font-size: 0.78rem;
  padding: 8px 12px;
  white-space: nowrap;
  min-height: 36px;
  border-radius: 10px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.profile-stat {
  text-align: center;
  padding: 10px 6px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.profile-stat__n {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.profile-stat__l {
  font-size: 0.65rem;
  color: #6b7280;
}

.profile-quota {
  display: none;
}

.profile-quota-line {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: #6b7280;
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.profile-action {
  border: 0;
  border-radius: 12px;
  padding: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1f2937;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  border: 1px solid #e8edf5;
  cursor: pointer;
}

.profile-action:active {
  background: #f8fafc;
}

.profile-action--accent {
  color: #1f2937;
  background: #fff;
  border-color: #e8edf5;
}

.vehicle-form__lead {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #4b5563;
}

.vehicle-form {
  display: grid;
  gap: 4px;
}

.vehicle-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field__optional {
  font-style: normal;
  font-weight: 500;
  color: #9ca3af;
  font-size: 0.78em;
}

@media (max-width: 380px) {
  .vehicle-form__row {
    grid-template-columns: 1fr;
  }

  .profile-card__facts {
    grid-template-columns: 1fr;
  }
}

.profile-section {
  margin-bottom: 14px;
}

.profile-section__title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.profile-section__empty {
  margin: 0;
  font-size: 0.85rem;
  color: #9ca3af;
  padding: 12px;
  border-radius: 12px;
  background: #f9fafb;
}

.profile-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  margin-bottom: 8px;
}

.profile-item--clickable {
  cursor: pointer;
}

.profile-item__title {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.profile-item__meta {
  font-size: 0.78rem;
  color: #6b7280;
}

.tabbar--yandex .tab {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
}

.tabbar--yandex {
  gap: 4px;
  padding: 6px;
}

/* ——— Загрузка + вход MAX ——— */
.app-splash {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 24px;
  background:
    radial-gradient(circle at 30% 20%, rgba(61, 123, 245, 0.22), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(34, 197, 94, 0.18), transparent 50%),
    linear-gradient(165deg, #0f172a 0%, #1e293b 50%, #0b2f36 100%);
}

.app-splash[hidden] {
  display: none !important;
}

.app-splash__logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
  animation: splash-logo-pulse 2.2s ease-in-out infinite;
}

.app-splash__brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.app-splash__status {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  max-width: 28ch;
}

.app-splash__spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffdb4d;
  border-radius: 50%;
  animation: splash-spin 0.85s linear infinite;
}

@keyframes splash-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes splash-logo-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.92;
  }
}

.auth-gate__logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: 0 auto 8px;
  display: block;
}

.auth-gate__btn + .auth-gate__btn {
  margin-top: 0;
}

.auth-gate__btn {
  margin-bottom: 10px;
}

/* ——— Экран входа через MAX ——— */
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(61, 123, 245, 0.25), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(34, 197, 94, 0.2), transparent 45%),
    linear-gradient(160deg, #0f172a 0%, #1e293b 55%, #0b2f36 100%);
}

.auth-gate[hidden] {
  display: none !important;
}

.auth-gate__card {
  width: min(400px, 100%);
  padding: 28px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.auth-gate__brand {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3d7bf5;
  margin-bottom: 12px;
}

.auth-gate__title {
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111827;
}

.auth-gate__text {
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4b5563;
}

.auth-gate__local {
  display: grid;
  gap: 0;
  margin-bottom: 4px;
}

.auth-gate__local[hidden] {
  display: none;
}

.auth-gate__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  text-decoration: none;
  margin-bottom: 14px;
}

.auth-gate__hint {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #6b7280;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton {
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.18) 0%,
    rgba(148, 163, 184, 0.32) 50%,
    rgba(148, 163, 184, 0.18) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.skeleton--media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
}

.skeleton--line {
  height: 14px;
  margin-top: 10px;
}

.skeleton--short {
  width: 55%;
}

.skeleton--avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton--stat {
  height: 48px;
  border-radius: 12px;
  flex: 1;
}

.skeleton--block {
  height: 72px;
  margin-top: 14px;
  border-radius: 14px;
}

.skeleton-card--news {
  margin-bottom: 14px;
}

.profile-skeleton__head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.profile-skeleton__lines {
  flex: 1;
}

.profile-skeleton__stats {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
