:root {
  --bg: #05090f;
  --panel: rgba(10, 18, 29, 0.88);
  --panel-2: rgba(13, 24, 39, 0.92);
  --line: rgba(68, 105, 146, 0.28);
  --line-strong: rgba(0, 147, 255, 0.6);
  --blue: #0d6efd;
  --cyan: #00cfff;
  --green: #22c55e;
  --gold: #f4c542;
  --red: #ef4444;
  --text: #f7fbff;
  --soft: #c7d2e0;
  --muted: #8996a8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  --max: 1320px;
  font-family: Inter, Manrope, Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

img[src*="/assets/icons/ui/"] {
  filter:
    brightness(0) saturate(100%)
    invert(54%) sepia(94%) saturate(2458%)
    hue-rotate(164deg) brightness(104%) contrast(105%)
    drop-shadow(0 0 14px rgba(0, 207, 255, 0.45));
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.public-page {
  background: #05090f;
}

.public-header {
  height: 64px;
  padding: 0 38px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 5, 10, 0.96);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand img {
  width: 144px;
}

.public-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
}

.public-nav a {
  position: relative;
  padding: 23px 0 20px;
}

.public-nav a.active,
.public-nav a:hover {
  color: #fff;
}

.public-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 20px;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(13, 23, 38, 0.94);
  color: #fff;
}

.btn {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(84, 119, 160, 0.4);
  border-radius: 8px;
  background: rgba(10, 18, 29, 0.75);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.btn img {
  width: 18px;
  height: 18px;
}

.btn-primary {
  border-color: #0b7dff;
  background: linear-gradient(180deg, #1888ff, #0667ef);
  box-shadow: 0 10px 26px rgba(13, 110, 253, 0.34);
}

.btn-ghost,
.btn-dark {
  background: rgba(3, 8, 15, 0.72);
}

.landing-hero {
  min-height: 430px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #05090f url("/assets/images/city-cars-banner.png") center 50% / cover no-repeat;
}

.hero-bg {
  position: absolute;
  top: -6%;
  right: 0;
  bottom: 0;
  left: 37%;
  width: 63%;
  height: 112%;
  object-fit: contain;
  object-position: center bottom;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0) 4%, #000 18%, #000 92%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 10%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0) 4%, #000 18%, #000 92%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 10%, #000 92%, transparent 100%);
  mask-composite: intersect;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 6, 11, 0.98) 0%, rgba(3, 6, 11, 0.72) 30%, rgba(3, 6, 11, 0.04) 54%, rgba(3, 6, 11, 0.02) 100%),
    linear-gradient(180deg, rgba(3, 6, 11, 0.02) 0%, rgba(3, 6, 11, 0.06) 70%, #05090f 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 38px 24px;
}

.hero-content h1 {
  width: 560px;
  max-width: 100%;
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 900;
}

.hero-content h1 span,
.offer-card span,
.price-big {
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(0, 207, 255, 0.45);
}

.hero-content p {
  width: 520px;
  max-width: 100%;
  margin: 0 0 20px;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.55;
}

.hero-stats {
  width: 520px;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 20px;
}

.hero-stats div {
  min-height: 74px;
  padding: 8px 10px;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  border-left: 1px solid rgba(0, 207, 255, 0.25);
}

.hero-stats div:last-child {
  border-right: 1px solid rgba(0, 207, 255, 0.25);
}

.hero-stats img {
  width: 27px;
  height: 27px;
  filter: brightness(0) saturate(100%) invert(60%) sepia(98%) saturate(2274%)
    hue-rotate(150deg) brightness(103%) contrast(105%)
    drop-shadow(0 0 13px rgba(0, 207, 255, 0.8));
}

.hero-stats strong {
  font-size: 13px;
  line-height: 1.25;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.feature-deck {
  max-width: var(--max);
  margin: -18px auto 0;
  padding: 0 38px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  position: relative;
  z-index: 3;
}

.feature-card,
.offer-card,
.dash-card,
.cabinet-card,
.chat-panel,
.auth-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 25, 40, 0.94), rgba(7, 14, 24, 0.92));
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 124px;
  padding: 18px;
  border-radius: 7px;
}

.feature-card img {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
}

.feature-card h2 {
  margin: 0 0 7px;
  font-size: 16px;
  line-height: 1.18;
}

.feature-card p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.feature-card a {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.offer-row {
  max-width: var(--max);
  margin: 8px auto 18px;
  padding: 0 38px;
  display: grid;
  grid-template-columns: 1.2fr 0.75fr 0.75fr;
  gap: 10px;
}

.offer-card {
  min-height: 112px;
  padding: 18px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.offer-card img {
  width: 58px;
  height: 58px;
}

.offer-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.offer-card p {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 850;
}

.offer-card small {
  color: var(--soft);
}

.activation-card {
  display: block;
}

.public-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 38px 20px;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 0.8fr);
  gap: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 13px;
}

.public-footer img {
  width: 145px;
  margin-bottom: 10px;
}

.public-footer strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
}

.public-footer a,
.public-footer span {
  display: block;
  margin: 6px 0;
}

.home-page .public-header {
  height: 60px;
  padding: 0 42px;
  grid-template-columns: 210px 1fr auto;
  gap: 22px;
}

.home-page .brand img {
  width: 142px;
}

.home-page .public-nav {
  gap: 34px;
  font-size: 13px;
}

.home-page .public-nav a {
  padding: 21px 0 18px;
}

.home-page .public-nav a.active::after {
  bottom: 8px;
}

.home-page .header-actions {
  gap: 10px;
}

.home-page .header-actions .btn {
  min-height: 38px;
  padding: 0 17px;
  font-size: 13px;
}

.home-page .landing-hero {
  min-height: 430px;
  background-position: center 50%;
}

.home-page .hero-bg {
  left: 37%;
  width: 63%;
  object-position: center bottom;
}

.home-page .hero-overlay {
  background:
    linear-gradient(90deg, rgba(3, 6, 11, 0.98) 0%, rgba(3, 6, 11, 0.72) 32%, rgba(3, 6, 11, 0.06) 54%, rgba(3, 6, 11, 0.01) 100%),
    linear-gradient(180deg, rgba(3, 6, 11, 0) 0%, rgba(3, 6, 11, 0.02) 78%, #05090f 100%);
}

.home-page .hero-content {
  max-width: 1960px;
  padding: 34px 42px 28px;
}

.home-page .hero-content h1 {
  width: 650px;
  margin-bottom: 12px;
  font-size: 46px;
  line-height: 1.08;
}

.home-page .hero-content p {
  width: 560px;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.5;
}

.home-page .hero-stats {
  width: 560px;
  margin-bottom: 18px;
}

.home-page .hero-stats div {
  min-height: 68px;
  padding: 8px 10px;
  gap: 8px;
}

.home-page .hero-stats img {
  width: 28px;
  height: 28px;
}

.home-page .hero-stats strong {
  font-size: 12px;
  line-height: 1.18;
}

.home-page .hero-actions .btn {
  min-width: 150px;
  min-height: 42px;
  padding: 0 18px;
  font-size: 13px;
}

.home-page .feature-deck {
  max-width: 1960px;
  margin: -8px auto 0;
  padding: 0 42px;
  gap: 8px;
}

.home-page .feature-card {
  min-height: 126px;
  padding: 15px 16px;
  border-radius: 7px;
}

.home-page .feature-card img {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
}

.home-page .feature-card h2 {
  min-height: 36px;
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.14;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-page .feature-card p {
  min-height: 38px;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.36;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-page .feature-card a {
  font-size: 12px;
}

.home-page .offer-row {
  max-width: 1960px;
  margin: 8px auto 0;
  padding: 0 42px;
  grid-template-columns: 1.13fr 0.86fr 0.74fr;
  gap: 10px;
}

.home-page .offer-card {
  min-height: 96px;
  padding: 15px 18px;
  border-radius: 7px;
  gap: 16px;
}

.home-page .offer-card img {
  width: 54px;
  height: 54px;
}

.home-page .offer-card strong {
  margin-bottom: 3px;
  font-size: 15px;
}

.home-page .offer-card p {
  margin-bottom: 3px;
  font-size: 22px;
}

.home-page .offer-card small {
  font-size: 12px;
  line-height: 1.3;
}

.home-page .public-footer {
  max-width: 1960px;
  padding: 16px 42px 12px;
  grid-template-columns: 1.05fr 0.68fr 0.8fr 0.92fr 0.86fr;
  gap: 20px 28px;
  font-size: 12px;
  line-height: 1.28;
}

.home-page .public-footer img {
  width: 132px;
  margin-bottom: 8px;
}

.home-page .public-footer p {
  margin: 0;
  line-height: 1.3;
}

.home-page .public-footer strong {
  margin-bottom: 7px;
  font-size: 12px;
}

.home-page .public-footer a,
.home-page .public-footer span {
  margin: 4px 0;
  line-height: 1.24;
}

.home-page .public-footer nav:nth-of-type(1) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  align-content: start;
}

.home-page .public-footer nav:nth-of-type(1) strong {
  grid-column: 1 / -1;
}

.social-row {
  display: flex !important;
  gap: 10px;
  align-items: center;
}

.social-row img {
  width: 20px !important;
  height: 20px;
  margin: 1px 0 !important;
  padding: 4px;
  border: 1px solid rgba(68, 105, 146, 0.24);
  border-radius: 50%;
  background: rgba(12, 21, 34, 0.9);
  filter: none;
}

.footer-legal {
  grid-column: 1 / -1;
  min-height: 19px;
  padding-top: 4px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 10px;
}

.footer-legal span:last-child {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.footer-legal a {
  margin: 0;
}

.form-note {
  min-height: 18px;
  margin: -2px 0 12px !important;
  color: var(--cyan) !important;
  font-size: 12px !important;
}

.field-hint {
  margin: -5px 0 10px !important;
  color: var(--muted) !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.form-note.error {
  color: var(--red) !important;
}

.chat-empty {
  min-height: 178px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px dashed rgba(68, 105, 146, 0.42);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
  background: rgba(4, 10, 18, 0.32);
}

.is-hidden {
  display: none !important;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 12, 0.68);
  backdrop-filter: blur(8px);
}

.promo-dialog {
  position: relative;
  width: min(540px, calc(100vw - 36px));
  padding: 24px;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  border: 1px solid rgba(0, 147, 255, 0.58);
  border-radius: 10px;
  background:
    radial-gradient(circle at 18% 20%, rgba(0, 207, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(13, 24, 39, 0.98), rgba(5, 10, 18, 0.98));
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.72), 0 0 34px rgba(13, 110, 253, 0.28);
}

.promo-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 207, 255, 0.34);
  border-radius: 12px;
  background: rgba(13, 110, 253, 0.12);
}

.promo-icon img {
  width: 46px;
  height: 46px;
}

.promo-kicker {
  display: block;
  margin: 0 0 5px;
  color: var(--cyan);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.promo-dialog h2 {
  margin: 0 34px 8px 0;
  font-size: 26px;
  line-height: 1.12;
}

.promo-dialog p {
  margin: 0 0 16px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.45;
}

.promo-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.subscription-dialog {
  width: min(820px, calc(100vw - 36px));
  grid-template-columns: 1fr;
}

.subscription-head {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  align-items: center;
}

.subscription-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.subscription-option {
  position: relative;
  min-height: 168px;
  padding: 16px;
  border: 1px solid rgba(68, 105, 146, 0.36);
  border-radius: 8px;
  background: rgba(4, 10, 18, 0.62);
}

.subscription-option.is-featured {
  border-color: rgba(0, 207, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.18), 0 0 22px rgba(13, 110, 253, 0.15);
}

.option-tag {
  min-height: 22px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  border: 1px solid rgba(0, 207, 255, 0.3);
  border-radius: 5px;
  color: var(--cyan);
  background: rgba(13, 110, 253, 0.12);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.subscription-option.is-featured .option-tag {
  border-color: rgba(244, 197, 66, 0.45);
  color: var(--gold);
  background: rgba(244, 197, 66, 0.12);
}

.subscription-option h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.subscription-option .price-line {
  margin: 0 0 8px;
  font-size: 24px;
}

.subscription-option p {
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 1.4;
}

.subscription-option .btn {
  width: 100%;
  min-height: 36px;
  font-size: 12px;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #05090f;
}

.auth-main {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  min-height: calc(100vh - 180px);
}

.auth-visual {
  position: relative;
  min-height: 560px;
  padding: 70px 38px;
  overflow: hidden;
}

.auth-visual .hero-bg {
  opacity: 0.82;
}

.auth-copy {
  position: relative;
  z-index: 2;
  max-width: 480px;
}

.auth-devices {
  position: absolute;
  z-index: 1;
  right: -105px;
  bottom: 18px;
  width: min(610px, 72%);
  opacity: 0.9;
  filter: drop-shadow(0 24px 70px rgba(0, 0, 0, 0.72));
  -webkit-mask-image: radial-gradient(ellipse at 53% 58%, #000 62%, rgba(0, 0, 0, 0.68) 78%, transparent 100%);
  mask-image: radial-gradient(ellipse at 53% 58%, #000 62%, rgba(0, 0, 0, 0.68) 78%, transparent 100%);
}

.auth-copy h1 {
  margin: 0 0 20px;
  font-size: 42px;
  line-height: 1.08;
}

.auth-copy h1 span {
  color: var(--cyan);
}

.auth-copy p {
  color: var(--soft);
  line-height: 1.6;
}

.auth-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.auth-badges div {
  text-align: center;
  color: var(--soft);
  font-size: 12px;
}

.auth-badges img {
  width: 32px;
  height: 32px;
  margin: 0 auto 8px;
}

.auth-panel-wrap {
  display: grid;
  place-items: center;
  padding: 38px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-panel {
  width: min(100%, 670px);
  border-radius: 9px;
  overflow: hidden;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.auth-tabs a {
  padding: 18px;
  text-align: center;
  color: var(--soft);
  font-weight: 800;
  border-bottom: 2px solid transparent;
}

.auth-tabs a.active {
  color: var(--cyan);
  border-bottom-color: var(--blue);
  background: rgba(13, 110, 253, 0.08);
}

.auth-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-form {
  padding: 30px;
  border-right: 1px solid var(--line);
}

.auth-form:last-child {
  border-right: 0;
}

.auth-form h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.auth-form p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.field,
.textarea {
  width: 100%;
  min-height: 44px;
  margin-bottom: 12px;
  padding: 0 14px;
  border: 1px solid rgba(101, 129, 160, 0.26);
  border-radius: 5px;
  background: rgba(4, 10, 18, 0.62);
  color: #fff;
  outline: none;
}

.textarea {
  min-height: 118px;
  padding: 13px 14px;
  resize: vertical;
}

.field:focus,
.textarea:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.14);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 12px;
}

.app-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px 1fr;
  background:
    linear-gradient(180deg, rgba(6, 11, 18, 0.9), rgba(5, 9, 15, 0.98)),
    url("/assets/images/city-cars-full.png") center top / cover fixed;
}

.sidebar {
  min-height: 100vh;
  padding: 20px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 9, 16, 0.94);
}

.sidebar .brand img {
  width: 138px;
  margin: 0 0 28px;
}

.side-title {
  margin: 0 0 16px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav a {
  min-height: 43px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 800;
}

.side-nav a.active,
.side-nav a:hover {
  color: #fff;
  border-color: rgba(0, 147, 255, 0.44);
  background: linear-gradient(90deg, rgba(13, 110, 253, 0.28), rgba(0, 207, 255, 0.08));
  box-shadow: inset 3px 0 0 var(--cyan);
}

.side-nav img {
  width: 21px;
  height: 21px;
}

.side-promo,
.side-storage {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(8, 15, 26, 0.82);
}

.side-promo strong {
  display: block;
  color: var(--cyan);
  margin-bottom: 4px;
}

.side-promo small,
.side-storage small {
  color: var(--muted);
}

.app-main {
  min-width: 0;
  display: grid;
  grid-template-rows: 56px 1fr auto;
}

.app-topbar {
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 7, 13, 0.9);
}

.top-user,
.top-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(0, 207, 255, 0.32);
  border-radius: 6px;
  color: var(--cyan);
  background: rgba(13, 110, 253, 0.12);
  font-size: 12px;
  font-weight: 800;
}

.badge-danger {
  border-color: rgba(239, 68, 68, 0.5);
  color: #ff7a7a;
  background: rgba(239, 68, 68, 0.14);
}

.side-promo-inactive strong {
  color: #ff7a7a;
}

.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1a2b4d;
  font-weight: 900;
}

.app-content {
  padding: 28px 24px;
}

.dashboard-head {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}

.page-title {
  min-height: 96px;
  padding: 22px 24px;
  border: 1px solid rgba(68, 105, 146, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 9, 15, 0.98), rgba(5, 9, 15, 0.78) 52%, rgba(5, 9, 15, 0.42)),
    url("/assets/images/city-cars-dashboard-wide.png") center / cover;
  box-shadow: inset 0 0 0 1px rgba(0, 147, 255, 0.05);
}

.dashboard-head h1,
.page-title h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

.dashboard-head p,
.page-title p {
  margin: 0;
  color: var(--muted);
}

.special-offer {
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(0, 147, 255, 0.62);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(13, 110, 253, 0.22), rgba(12, 20, 34, 0.92));
  box-shadow: 0 0 32px rgba(13, 110, 253, 0.2);
}

.special-offer img {
  width: 54px;
}

.timer {
  display: grid;
  grid-template-columns: repeat(4, 48px);
  gap: 6px;
}

.timer div {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 12px;
  color: var(--muted);
}

.timer strong {
  display: block;
  color: #fff;
  font-size: 16px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1fr;
  gap: 14px;
}

.dash-card,
.cabinet-card,
.chat-panel {
  position: relative;
  min-height: 220px;
  padding: 22px;
  border-radius: 9px;
  overflow: hidden;
}

.dash-card h2,
.cabinet-card h2,
.chat-panel h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.dash-card p,
.cabinet-card p {
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.5;
}

.icon-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.icon-title img {
  width: 35px;
  height: 35px;
}

.list-check {
  padding: 0;
  margin: 16px 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--soft);
  font-size: 13px;
}

.list-check li::before {
  content: "✓";
  margin-right: 9px;
  color: var(--cyan);
}

.firmware-list {
  display: grid;
  gap: 11px;
  margin: 16px 0;
}

.guide-preview {
  min-height: 132px;
  margin: 12px 0 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 104px;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(68, 105, 146, 0.28);
  border-radius: 8px;
  background: rgba(4, 10, 18, 0.48);
}

.guide-preview p {
  margin: 7px 0 0;
  font-size: 13px;
}

.guide-preview img {
  height: 106px;
  width: 104px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}

.firmware-list div {
  display: flex;
  justify-content: space-between;
  color: var(--soft);
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}

.modal-demo {
  position: absolute;
  left: 50%;
  top: 59%;
  width: 320px;
  transform: translate(-50%, -50%);
  z-index: 5;
  padding: 28px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(9, 16, 27, 0.98);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.72);
}

.modal-demo img {
  width: 58px;
  margin: 0 auto 18px;
}

.app-footer {
  min-height: 64px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
}

.activation-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr 0.68fr;
  gap: 14px;
}

.price-line {
  margin: 8px 0 12px;
  color: var(--cyan);
  font-size: 30px;
  font-weight: 900;
}

.price-line span {
  color: var(--soft);
  font-size: 14px;
}

.chat-window {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.bubble {
  max-width: 72%;
  padding: 15px;
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
}

.bubble.user {
  margin-left: auto;
  background: #055dc9;
}

.bubble.system {
  background: rgba(23, 35, 52, 0.98);
}

.chat-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 18px;
}

.right-stack {
  display: grid;
  gap: 12px;
}

.mini-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--soft);
  font-size: 13px;
}

.page-panel {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 38px;
}

.simple-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

@media (max-width: 1080px) {
  .home-page .public-header {
    grid-template-columns: auto auto;
  }

  .home-page .public-nav,
  .home-page .header-actions {
    display: none;
  }

  .home-page .nav-toggle {
    display: inline-grid;
    place-items: center;
    justify-self: end;
  }

  .home-page .public-nav.open {
    display: grid;
  }

  .public-header {
    grid-template-columns: auto auto;
  }

  .public-nav,
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    justify-self: end;
  }

  .public-nav.open {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 70px;
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(3, 8, 15, 0.98);
  }

  .public-nav.open a {
    padding: 12px;
  }

  .feature-deck,
  .dashboard-grid,
  .activation-layout,
  .simple-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .offer-row,
  .dashboard-head,
  .auth-main {
    grid-template-columns: 1fr;
  }

  .app-page {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .home-page .public-nav,
  .home-page .header-actions {
    display: none;
  }

  .home-page .public-nav.open {
    display: grid;
  }

  .home-page .public-header {
    height: 64px;
    grid-template-columns: 1fr auto;
    padding-left: 18px;
    padding-right: 18px;
  }

  .home-page .nav-toggle {
    display: inline-grid;
    place-items: center;
    justify-self: end;
    width: 44px;
    height: 38px;
    font-size: 0;
  }

  .home-page .nav-toggle::before {
    content: "☰";
    font-size: 18px;
    line-height: 1;
  }

  .landing-hero {
    min-height: auto;
    background-position: 57% center;
  }

  .home-page .landing-hero {
    min-height: auto;
    background-position: 57% center;
  }

  .hero-bg {
    left: 14%;
    width: 110%;
    opacity: 0.34;
    object-position: 58% 58%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.15) 12%, #000 34%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.15) 12%, #000 34%, #000 100%);
  }

  .home-page .hero-bg {
    left: 14%;
    width: 110%;
    opacity: 0.34;
    object-position: 58% 58%;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(3, 6, 11, 0.98) 0%, rgba(3, 6, 11, 0.86) 56%, rgba(3, 6, 11, 0.42) 100%),
      linear-gradient(180deg, rgba(3, 6, 11, 0.10) 0%, rgba(3, 6, 11, 0.20) 70%, #05090f 100%);
  }

  .public-header,
  .hero-content,
  .feature-deck,
  .offer-row,
  .public-footer,
  .page-panel {
    padding-left: 18px;
    padding-right: 18px;
    width: 100%;
    box-sizing: border-box;
  }

  .public-header {
    width: 100%;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .hero-content {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    box-sizing: border-box;
  }

  .feature-deck,
  .offer-row,
  .public-footer,
  .page-panel {
    max-width: min(390px, 100vw);
    margin-left: 0;
    margin-right: 0;
  }

  .hero-content h1 {
    width: 100%;
    max-width: min(354px, calc(100vw - 36px));
    font-size: 30px;
    overflow-wrap: break-word;
  }

  .home-page .hero-content h1 {
    font-size: 30px;
  }

  .hero-content p {
    width: 100%;
    max-width: min(354px, calc(100vw - 36px));
  }

  .feature-deck,
  .offer-row,
  .public-footer,
  .auth-columns,
  .auth-badges,
  .dashboard-grid,
  .activation-layout,
  .simple-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    width: 100%;
    max-width: min(354px, calc(100vw - 36px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid rgba(0, 207, 255, 0.22);
    border-radius: 7px;
    background: rgba(4, 13, 24, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
  }

  .home-page .hero-stats {
    max-width: min(354px, calc(100vw - 36px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stats div {
    min-height: 76px;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 207, 255, 0.18);
  }

  .hero-stats div:nth-child(2n + 1) {
    border-right: 1px solid rgba(0, 207, 255, 0.18);
  }

  .hero-stats div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .hero-stats strong {
    display: block;
    max-width: 12ch;
    font-size: 12px;
    line-height: 1.2;
    overflow-wrap: break-word;
  }

  .feature-card {
    min-width: 0;
    max-width: min(354px, calc(100vw - 36px));
  }

  .home-page .feature-card {
    min-height: 0;
  }

  .home-page .offer-card {
    min-height: 0;
  }

  .feature-card p {
    overflow-wrap: break-word;
  }

  .app-content {
    padding: 18px;
  }

  .special-offer {
    grid-template-columns: 1fr;
  }

  .timer {
    grid-template-columns: repeat(4, 1fr);
  }

  .modal-demo {
    position: static;
    transform: none;
    width: auto;
    margin-top: 16px;
  }

  .promo-dialog {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .subscription-head,
  .subscription-options {
    grid-template-columns: 1fr;
  }

  .promo-icon {
    width: 62px;
    height: 62px;
  }

  .promo-dialog h2 {
    margin-right: 28px;
    font-size: 23px;
  }

  .promo-dialog p {
    font-size: 13px;
  }
}
