:root {
  --ink: #17211b;
  --muted: #68726c;
  --line: #d9e1dc;
  --soft: #f4f7f5;
  --accent: #00a86b;
  --accent-dark: #087f59;
  --blue: #2277cc;
  --red: #e34234;
  --yellow: #ffd84d;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
  min-height: 42px;
  padding: 10px 16px;
}

button:hover {
  background: var(--accent-dark);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 8px;
  }

  body {
    font-size: 15px;
  }

  button,
  input,
  select,
  textarea {
    min-height: 44px;
    font-size: 16px;
  }

  .topbar,
  .searchbar,
  .categories,
  .page,
  footer {
    width: min(100% - 16px, 100%);
    margin: 0 8px;
  }

  .topbar {
    gap: 8px;
    padding: 8px 0;
  }

  .brand {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    font-size: 20px;
  }

  nav,
  .categories,
  .cabinet-tabs,
  .realty-deal-tabs,
  .realty-room-pills,
  .jobs-mode-tabs,
  .jobs-quick-row,
  .jobs-period-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar,
  .categories::-webkit-scrollbar,
  .cabinet-tabs::-webkit-scrollbar,
  .realty-deal-tabs::-webkit-scrollbar,
  .realty-room-pills::-webkit-scrollbar,
  .jobs-mode-tabs::-webkit-scrollbar,
  .jobs-quick-row::-webkit-scrollbar,
  .jobs-period-row::-webkit-scrollbar {
    display: none;
  }

  nav button,
  .categories button,
  .cabinet-tab,
  .filter-chip,
  .jobs-mode {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(44px, 1fr));
    gap: 6px;
  }

  .top-icon-group {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(44px, 1fr));
  }

  .top-actions > .top-icon-group {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  .top-actions > .top-icon-group > * {
    min-width: 0;
  }

  .top-icon-button,
  .profile-avatar-button {
    width: 100%;
    min-width: 44px;
  }

  .top-actions .publish-button,
  .top-actions > .ghost,
  .top-actions select {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .searchbar {
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 8px;
    padding-bottom: 10px;
  }

  .searchbar .city,
  .searchbar > button:last-child {
    grid-column: span 1;
  }

  .search-suggest-panel {
    position: fixed;
    left: 8px;
    right: 8px;
    top: 128px;
    max-height: min(58vh, 440px);
    overflow: auto;
  }

  .compose-panel,
  .favorites-panel,
  .orders-section,
  .billing-panel,
  .form-panel,
  .draft {
    padding: 14px;
  }

  .compose-head,
  .billing-head,
  .order-card-main,
  .collection-card-head,
  .chat-thread-head,
  .detail-section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .compose-head strong {
    font-size: 20px;
  }

  .compose-actions,
  .form-actions,
  .order-actions,
  .review-actions,
  .collection-actions,
  .payment-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .compose-actions button,
  .form-actions button,
  .order-actions button,
  .review-actions button,
  .collection-actions button {
    width: 100%;
  }

  .compose-grid,
  .form-grid,
  .field-rules,
  .checkboxes,
  .billing-payment-row,
  .notification-settings-grid,
  .collection-list-item,
  .favorite-item,
  .jobs-search-grid,
  .jobs-suggestion-grid,
  .jobs-top-row,
  .realty-filter-row,
  .realty-range {
    grid-template-columns: 1fr;
  }

  .category-picker-card,
  .picker-footer {
    align-items: stretch;
  }

  .upload-dropzone {
    min-height: 120px;
    padding: 14px;
  }

  .uploaded-photo-list,
  .upload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cabinet-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cabinet-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .cabinet-card-main {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
  }

  .cabinet-card-photo {
    width: 82px;
    min-width: 82px;
  }

  .cabinet-card-actions {
    padding-left: 92px;
  }

  .cabinet-card-actions button,
  .cabinet-action-menu summary {
    min-height: 38px;
    padding: 7px 12px;
    font-size: 14px;
  }

  .cabinet-action-menu-list {
    right: auto;
    left: 0;
  }

  .favorites-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .favorite-item {
    align-items: start;
  }

  .favorite-item-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .cards,
  .cards-list,
  .list-card {
    grid-template-columns: 1fr;
  }

  .car-card {
    min-width: 0;
  }

  .card-gallery,
  .list-card .card-gallery {
    border-radius: 12px;
  }

  .car-card > div:not(.card-gallery),
  .list-card > div:not(.card-gallery) {
    padding: 10px 0 0;
  }

  .card-meta-row {
    padding-right: 0;
  }

  .compare-chip.inline {
    position: static;
    width: fit-content;
    margin-top: 6px;
  }

  .card-seller {
    justify-items: start;
    padding-top: 0;
  }

  .card-seller-box,
  .seller-badges-card,
  .card-action-stack {
    justify-items: start;
  }

  .card-seller-name,
  .card-seller-type,
  .card-seller-phone,
  .seller-trust-line {
    text-align: left;
  }

  .detail-overlay,
  .modal-backdrop {
    align-items: end;
    place-items: end stretch;
    padding: 0;
  }

  .detail-modal,
  .modal,
  .storefront-modal,
  .auth-modal,
  .picker-modal,
  .profile-modal {
    width: 100%;
    max-height: 92dvh;
    border-radius: 14px 14px 0 0;
    overflow: auto;
  }

  .modal {
    padding: 20px 14px 14px;
  }

  .detail-page {
    padding: 10px 8px 24px;
  }

  .detail-modal-page {
    width: 100%;
    border-radius: 8px;
  }

  .detail-head,
  .detail-body {
    padding: 14px;
  }

  .detail-head {
    flex-direction: column;
  }

  .detail-title,
  .detail-head strong {
    font-size: 23px;
  }

  .detail-layout,
  .detail-top-row,
  .detail-ad-grid {
    grid-template-columns: 1fr;
  }

  .detail-image {
    height: clamp(260px, 72vw, 420px);
  }

  .detail-thumbs {
    grid-auto-flow: column;
    grid-auto-columns: 74px;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .detail-side-column,
  .detail-info-sidebar {
    position: static;
    max-width: none;
  }

  .detail-description-card,
  .detail-purchase-card,
  .detail-seller-card,
  .detail-contact-card {
    padding: 14px;
  }

  .detail-description-card p {
    font-size: 16px;
  }

  .detail-cta-row,
  .detail-inline-actions,
  .detail-contact-list > div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .image-lightbox {
    padding: 10px;
  }

  .lightbox-image {
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 88px);
  }

  .lightbox-nav {
    width: 44px;
    min-height: 44px;
  }

  .realty-filter-backdrop {
    align-items: end;
    padding: 0;
  }

  .realty-filter-modal,
  .jobs-filter-modal {
    width: 100%;
    max-height: 92dvh;
    border-radius: 14px 14px 0 0;
  }

  .realty-filter-modal-head,
  .realty-filter-actions,
  .realty-filter-modal-body {
    padding: 14px;
  }

  .realty-filter-actions {
    position: sticky;
    bottom: 0;
    background: var(--white);
  }

  .realty-toolbar,
  .realty-quick-filters,
  .realty-chip-row {
    gap: 8px;
  }

  .realty-quick-filters select,
  .realty-filter-button {
    width: 100%;
  }

  .jobs-search-panel h2,
  .jobs-suggestion-board h2 {
    font-size: 24px;
  }

  .jobs-search-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .jobs-search-actions button {
    width: 100%;
  }

  .jobs-match-board {
    display: grid;
    width: 100%;
  }

  .jobs-match-grid {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .chat-dialog-layout {
    grid-template-columns: 1fr;
  }

  .chat-dialog-list {
    max-height: 240px;
  }

  .chat-thread-panel {
    padding: 10px;
  }

  .chat-list,
  .chat-list-panel {
    max-height: 42dvh;
  }

  .chat-item {
    max-width: 94%;
  }

  .chat-compose,
  .chat-compose-message {
    grid-template-columns: 1fr;
    display: grid;
  }

  .chat-compose-actions {
    display: grid;
    grid-template-columns: 44px 1fr;
  }

  .chat-attach-button {
    width: 44px;
    padding: 0;
  }

  .chat-widget {
    right: 8px;
    left: 8px;
    bottom: 8px;
    width: auto;
  }

  .chat-widget-dock {
    min-height: 48px;
    font-size: 18px;
  }

  .chat-widget-badge {
    min-width: 32px;
    height: 26px;
    font-size: 18px;
  }

  .notification-channel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notification-channel-grid .check-row {
    width: 100%;
  }

  .notification-delivery-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .top-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-icon-group {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .top-actions > .top-icon-group {
    display: grid !important;
    grid-column: 1 / -1;
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  .top-actions > .top-icon-group > * {
    min-width: 0;
  }

  .top-icon-button,
  .profile-avatar-button {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0;
  }

  .top-actions > .top-icon-group .ghost {
    min-height: 38px;
    padding: 0 6px;
    font-size: 14px;
  }

  .top-actions .publish-button,
  .top-actions select {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 15px;
  }

  .top-actions > .top-icon-group {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  .searchbar {
    grid-template-columns: 1fr;
  }

  .searchbar .search-save-button,
  .searchbar .city,
  .searchbar > button:last-child {
    width: 100%;
  }

  .search-suggest-panel {
    top: 170px;
  }

  .uploaded-photo-list,
  .upload-grid,
  .cabinet-summary-grid,
  .notification-channel-grid,
  .storefront-stats-grid {
    grid-template-columns: 1fr;
  }

  .cabinet-card-main {
    grid-template-columns: 1fr;
  }

  .cabinet-card-photo {
    width: 100%;
  }

  .cabinet-card-actions {
    padding-left: 0;
  }

  .cabinet-action-menu-list {
    right: auto;
    left: 0;
  }

  .cabinet-card-photo img {
    aspect-ratio: 4 / 3;
  }

  .detail-title,
  .detail-head strong {
    font-size: 21px;
  }

  .jobs-search-panel,
  .auto-section,
  .personal-section {
    padding: 12px;
  }
}

textarea {
  resize: vertical;
}

header {
  position: sticky;
  top: 0;
  z-index: 120;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  overflow: visible;
}

@media (max-width: 720px) {
  header {
    position: static;
    top: auto;
  }
}

.site-header-compact .categories {
  display: none;
}

.site-header-home .categories {
  display: none;
}

.topbar,
.searchbar,
.categories,
.page,
footer {
  width: min(100% - 16px, 100%);
  margin: 0 8px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  border: 2px solid var(--ink);
  background: var(--white);
  font-size: 24px;
  font-weight: 800;
}

.brand:hover {
  background: var(--yellow);
}

.vv-logo {
  display: inline-flex;
  width: 44px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  line-height: 1;
}

.vv-logo span:first-child {
  transform: translateX(4px) skewX(-10deg);
}

.vv-logo span:last-child {
  margin-left: -3px;
  transform: translateX(-4px) skewX(10deg);
}

.brand-name {
  letter-spacing: 0;
}

nav {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  min-width: 0;
  flex-wrap: nowrap;
}

nav button,
.ghost,
.categories button,
.filters button,
.steps button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.filters button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 15px;
}

nav button:hover,
.ghost:hover,
.categories button:hover,
.filters button:hover,
.steps button:hover {
  border-color: var(--accent);
  background: var(--soft);
  color: var(--ink);
}

nav .active,
.steps .current,
.categories .category-active {
  border-color: var(--accent);
  background: #eaf8f2;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-left: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
  max-width: 100%;
}

.top-actions > * {
  flex: 0 0 auto;
}

.top-icon-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 2px;
  flex: 0 0 auto;
}

.top-actions .ghost,
.top-actions .publish-button,
.top-actions select {
  padding: 8px 12px;
  min-height: 40px;
}

.top-icon-button {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.line-icon {
  display: block;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.top-icon-button:hover {
  border-color: var(--accent);
  background: var(--soft);
}

.top-icon-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff5a5f;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  border: 2px solid var(--white);
}

.profile-avatar-button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-button:hover {
  border-color: var(--accent);
  background: var(--soft);
}

.profile-avatar-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar-fallback {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.publish-button {
  background: var(--accent);
  color: var(--white);
  flex-shrink: 0;
}

.publish-button:hover {
  background: var(--accent-dark);
}

.top-actions select {
  width: auto;
  min-width: 110px;
  max-width: 150px;
}

.searchbar {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 44px 120px;
  gap: 8px;
  padding-bottom: 8px;
}

.all-categories-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #0da5f2;
  border-radius: 14px;
  background: #12a8ef;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(18, 168, 239, 0);
}

.all-categories-button:hover,
.all-categories-button-open {
  background: #0c9fe8;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(18, 168, 239, 0.22);
}

.all-categories-dots {
  width: 22px;
  height: 22px;
  display: grid;
  grid-template-columns: repeat(3, 4px);
  grid-auto-rows: 4px;
  gap: 4px;
  align-content: center;
  justify-content: center;
}

.all-categories-dots span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.search-input-wrap {
  position: relative;
  min-width: 0;
}

.search-input-wrap input {
  width: 100%;
}

.search-suggest-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(18, 28, 24, 0.14);
}

.search-suggest-panel button {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.search-suggest-panel button:hover {
  background: var(--soft);
}

.search-suggest-panel span {
  color: var(--muted);
  font-size: 12px;
}

.search-suggest-panel strong {
  font-size: 14px;
  font-weight: 700;
}

.search-suggest-panel .search-correction {
  grid-template-columns: 1fr;
  background: #fff6cc;
}

.city {
  background: var(--blue);
}

.city:hover {
  background: #1761a8;
}

.category-mega-dropdown {
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  left: 8px;
  right: 8px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  max-height: min(64vh, 640px);
  overflow: auto;
  padding: 18px 28px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(17, 28, 23, 0.16);
}

.category-mega-sidebar {
  display: grid;
  align-content: start;
  gap: 4px;
}

.category-mega-top {
  min-height: 44px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111c17;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
}

.category-mega-top:hover,
.category-mega-top-active {
  background: #f1f3f2;
}

.category-mega-top img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 6px;
}

.category-mega-top b {
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.category-mega-content {
  min-width: 0;
}

.category-mega-title {
  min-height: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  font-size: clamp(28px, 3.1vw, 40px);
  font-weight: 900;
  line-height: 1.08;
  text-align: left;
}

.category-mega-columns {
  column-count: 3;
  column-gap: 36px;
  max-width: 980px;
}

.category-mega-group {
  display: grid;
  align-content: start;
  gap: 8px;
  break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 24px;
}

.category-mega-group-title,
.category-mega-group button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  text-align: left;
  line-height: 1.22;
}

.category-mega-group-title {
  margin-bottom: 2px;
  font-size: 19px;
  font-weight: 900;
}

.category-mega-group button:not(.category-mega-group-title) {
  font-size: 16px;
  font-weight: 500;
}

.category-mega-group button:hover,
.category-mega-title:hover {
  color: #0a8fd8;
}

.category-mega-more {
  color: #000 !important;
}

.search-save-button {
  min-width: 44px;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-save-button:hover {
  border-color: var(--accent);
  background: var(--soft);
}

.search-save-button .heart-icon {
  width: 22px;
  height: 22px;
}

.categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.categories button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 12px;
}

.page {
  padding: 8px 0 36px;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
}

.home-category-showcase {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 10px;
  align-items: stretch;
  margin: 6px 0 4px;
}

.home-category-card {
  position: relative;
  min-height: 92px;
  overflow: hidden;
  padding: 14px 38% 12px 14px;
  border: 0;
  border-radius: 8px;
  background: #f4f3f2;
  color: #000;
  text-align: left;
  isolation: isolate;
}

.home-category-card span {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.12;
}

.home-category-card img {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 0;
  width: 34%;
  height: 66%;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}

.home-category-card-wide {
  grid-column: auto;
}

.home-category-card:hover {
  background: #ecebea;
  color: #000;
}

.feed,
.cabinet-main,
.form-panel {
  min-width: 0;
}

.region-banner,
.region-confirmed,
.auto-section,
.personal-section,
.ad-wide,
.toolbar,
.questions,
.draft,
.tariff {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.region-banner,
.region-confirmed,
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.region-confirmed {
  margin-bottom: 16px;
  background: #eaf8f2;
}

.region-confirmed span {
  font-weight: 700;
}

.region-banner p,
.auto-section p,
.personal-section p,
.toolbar p,
.side-banner p,
.car-card p,
.draft p,
.tariff p,
footer span {
  color: var(--muted);
}

.auto-section,
.personal-section {
  margin: 6px 0 16px;
  padding: 4px 0 10px;
  background: var(--white);
}

.auto-section-head,
.personal-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  padding: 0;
}

.auto-section-head h1,
.personal-section-head h1 {
  margin-bottom: 4px;
}

.auto-section-head strong {
  color: #9a9f9c;
  font-size: 36px;
  line-height: 1;
  white-space: nowrap;
}

.auto-category-grid,
.personal-category-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.auto-category-grid-main {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.auto-tile,
.personal-category {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(92px, 32%, 150px);
  gap: 0;
  height: 132px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: #f3f5f4;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.auto-tile:hover,
.selected-auto-tile,
.personal-category:hover,
.selected-personal-category {
  border-color: var(--accent);
  background: #eaf8f2;
  color: var(--ink);
}

.auto-tile {
  width: 100%;
  align-items: stretch;
}

.auto-tile-copy {
  grid-column: 1;
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  min-width: 0;
  overflow: hidden;
  padding: 18px 14px 18px 18px;
}

.auto-tile-title {
  width: 100%;
  min-height: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.14;
  text-align: left;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.auto-tile-title:hover {
  background: transparent;
  color: var(--accent-dark);
}

.auto-tile img {
  grid-column: 2;
  position: relative;
  width: 100%;
  height: 100%;
  align-self: stretch;
  object-fit: cover;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0 8px 8px 0;
  pointer-events: none;
}

.all-auto-tile {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-content: space-between;
}

.all-auto-tile .auto-tile-copy {
  width: auto;
  padding-right: 18px;
}

.auto-tile-all {
  grid-template-columns: 1fr;
  align-items: start;
  padding: 18px;
}

.auto-tile-all span {
  align-self: start;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.08;
}

.truck-special-subsections {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 12px;
  margin: 8px 0 22px;
}

.equipment-rent-subsections {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.truck-special-tile {
  position: relative;
  min-height: 128px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #f3f5f4;
  cursor: pointer;
}

.truck-special-tile button {
  position: relative;
  z-index: 2;
  min-height: 0;
  padding: 18px 18px 0;
  border: 0;
  background: transparent;
  color: #111c17;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.14;
  text-align: left;
}

.truck-special-tile img {
  position: absolute;
  right: -8px;
  bottom: -12px;
  width: 60%;
  height: 82%;
  object-fit: contain;
  pointer-events: none;
}

.truck-special-tile:hover {
  background: #eaf8f2;
}

.truck-special-all {
  display: grid;
  align-content: start;
  min-height: 128px;
  padding: 18px;
  border: 0;
  color: #111c17;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.14;
  text-align: left;
}

.truck-category-overlay {
  align-items: center;
  padding: 32px;
}

.truck-category-modal {
  position: relative;
  width: min(900px, calc(100vw - 40px));
  max-height: calc(100vh - 64px);
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  padding: 24px 32px 30px;
  box-shadow: 0 16px 38px rgba(17, 28, 23, 0.18);
}

.truck-category-modal h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.1;
}

.truck-category-groups {
  column-count: 3;
  column-gap: 28px;
}

.truck-category-group {
  display: grid;
  align-content: start;
  gap: 5px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 14px;
}

.truck-category-group h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 2px;
  font-size: 18px;
  line-height: 1.15;
}

.electronics-category-group-title {
  display: flex !important;
  align-items: center;
  gap: 6px;
  margin: 0 0 2px;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
}

.truck-category-group button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111c17;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.18;
  text-align: left;
}

.truck-category-group button:hover {
  background: transparent;
  color: var(--accent-dark);
}

.auto-brand-board {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.auto-brand-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.auto-brand-board-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auto-brand-board-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.auto-brand-expand-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 14px;
  cursor: pointer;
}

.auto-brand-expand-btn:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.auto-brand-board-head span {
  color: #7d8481;
  font-size: 14px;
  white-space: nowrap;
}

.auto-brand-grid {
  column-count: 4;
  column-gap: 28px;
}

.auto-brand-row {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-height: 0;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 18px;
  line-height: 1.2;
  cursor: pointer;
  margin: 0 0 4px;
  break-inside: avoid;
}

.auto-brand-row strong {
  color: #8f9693;
  font-weight: 600;
  font-size: 18px;
  white-space: nowrap;
}

.auto-brand-row:hover {
  color: var(--accent-dark);
  background: transparent;
}

.auto-models-empty-note {
  margin: 8px 0 0;
  color: #6e7772;
  font-size: 15px;
}

.auto-brand-logo-strip {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.auto-brand-logo-item {
  border: 1px solid transparent;
  background: transparent !important;
  color: var(--ink) !important;
  padding: 6px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  cursor: pointer;
  transition: background-color .15s ease;
}

.auto-brand-logo-item:hover {
  background: #ffffff !important;
  border-color: var(--line);
}

.auto-brand-logo-item img {
  width: 100%;
  max-width: 130px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--soft);
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.load-more-row {
  display: flex;
  justify-content: center;
  padding: 12px 0 4px;
}

.compose-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.cabinet-panel {
  margin-top: 16px;
}

.orders-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.billing-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf3;
}

.billing-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.billing-head h3 {
  margin: 0;
}

.billing-stats,
.tariff-grid,
.promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.billing-payment-row {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.billing-payment-row label {
  margin: 0;
}

.billing-payment-row p {
  margin: 0;
}

.billing-stats span,
.tariff-card,
.promotion-card,
.billing-history {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.billing-stats b {
  display: block;
  font-size: 18px;
}

.tariff-card.active {
  border-color: #ffd24d;
  background: #fff8df;
}

.tariff-card p,
.promotion-card p {
  margin: 0;
  color: var(--muted);
}

.tariff-card span,
.promotion-card span {
  color: var(--muted);
  font-size: 14px;
}

.billing-history {
  gap: 8px;
}

.listing-stats-block {
  display: grid;
  gap: 8px;
  max-width: 520px;
  margin-top: 8px;
}

.listing-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.listing-stats-grid span {
  display: grid;
  gap: 2px;
  min-height: 54px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  font-size: 13px;
}

.listing-stats-grid b {
  color: var(--ink);
  font-size: 16px;
}

.listing-tips {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid #ffe08a;
  border-radius: 8px;
  background: #fff9df;
}

.listing-tips ul {
  margin: 0;
  padding-left: 18px;
  color: #5b5140;
  font-size: 14px;
}

.listing-tips li + li {
  margin-top: 4px;
}

.orders-section h3 {
  margin: 0;
  font-size: 18px;
}

.delivery-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.order-events {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.order-events span {
  color: var(--muted);
  font-size: 13px;
}

.delivery-step {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.delivery-step.done {
  border-color: #bfe8d6;
  background: #eaf8f2;
  color: #15573b;
}

.delivery-step.active {
  border-color: var(--ink);
  color: var(--ink);
}

.delivery-step.warning {
  border-color: #f0d784;
  background: #fff9e7;
  color: #7c5c00;
}

.delivery-step.muted {
  border-color: #e2e3e5;
  background: #f0f1f3;
  color: #4d5964;
}

.orders-grid {
  display: grid;
  gap: 10px;
}

.order-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.order-card-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.order-card-main p {
  margin: 4px 0;
}

.order-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.order-status-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--white);
  font-size: 13px;
}

.order-actions {
  justify-content: flex-start;
}

.card-seller-rating {
  color: #775f00;
  font-weight: 700;
}

.card-seller-rating.compact {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff6cc;
  font-size: 13px;
}

.seller-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seller-badges-card {
  justify-content: flex-end;
}

.seller-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff;
  color: #465550;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.seller-badge.verified {
  border-color: #bda236;
  background: #fff3b0;
  color: #241e08;
}

.seller-badge.compact {
  padding: 4px 8px;
  font-size: 13px;
}

.verification-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.compose-actions.compact-actions {
  margin-top: 10px;
  gap: 8px;
}

.seller-trust-line {
  color: #586862;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.review-compose {
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.review-compose textarea {
  min-height: 96px;
}

.review-actions {
  margin-top: 8px;
  justify-content: flex-start;
}

.compose-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.compose-head strong {
  display: block;
  margin-bottom: 4px;
  font-size: 22px;
}

.compose-form {
  display: grid;
  gap: 14px;
}

.compose-form label {
  display: grid;
  gap: 6px;
}

.compose-field {
  display: grid;
  gap: 6px;
}

.compose-form span {
  color: #53625d;
  font-size: 14px;
  font-weight: 700;
}

.compose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.compose-form textarea {
  min-height: 110px;
  resize: vertical;
}

.compose-form .wide-field {
  min-height: 130px;
}

.category-picker-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.category-picker-card strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.file-input-hidden {
  display: none;
}

.upload-dropzone {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 156px;
  padding: 18px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: var(--soft);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.upload-dropzone:hover,
.upload-dropzone.active {
  border-color: var(--accent);
  background: #eaf8f2;
}

.upload-dropzone strong {
  font-size: 20px;
}

.upload-dropzone p,
.upload-dropzone .muted-note {
  margin: 0;
}

.uploaded-photo-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.uploaded-photo-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.uploaded-photo-card img {
  width: 100%;
  height: 140px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--white);
}

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

.compose-notice {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.compose-notice.success {
  background: #eaf8f2;
  color: #15573b;
}

.compose-notice.error {
  background: #fff1f0;
  color: #8c2f2b;
}

.compose-notice.info {
  background: #eef5ff;
  color: #214f84;
}

.composer-promo-panel {
  gap: 22px;
  padding: 28px;
  border: 0;
}

.composer-promo-back {
  width: fit-content;
  min-height: 36px;
  padding: 0;
  background: transparent;
  color: #111;
  font-size: 18px;
}

.composer-promo-back:hover {
  background: transparent;
  color: #111;
}

.composer-promo-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.composer-promo-head h2 {
  margin: 0 0 8px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1;
}

.composer-promo-head p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.composer-promo-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 300px));
  width: fit-content;
  padding: 4px;
  border-radius: 18px;
  background: #f0efee;
}

.composer-promo-tabs button {
  min-height: 54px;
  border-radius: 14px;
  background: transparent;
  color: #111;
  font-size: 18px;
}

.composer-promo-tabs button.active {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.composer-promo-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 20px;
}

.composer-promo-plan {
  position: relative;
  min-height: 210px;
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 8px;
  padding: 22px;
  border: 2px solid transparent;
  border-radius: 24px;
  background: #f3f2f1;
  color: #111;
  text-align: left;
}

.composer-promo-plan.active {
  border-color: #111;
}

.composer-promo-plan strong {
  max-width: 270px;
  font-size: 28px;
  line-height: 1.08;
}

.composer-promo-plan b {
  font-size: 18px;
}

.composer-promo-plan small {
  color: #111;
  font-size: 16px;
}

.composer-promo-illustration {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 70px;
  line-height: 1;
}

.composer-promo-settings,
.composer-appearance-layout,
.composer-payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 34px;
  align-items: start;
}

.composer-promo-days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.composer-promo-days button {
  min-width: 72px;
  border-radius: 16px;
  background: #f0efee;
  color: #111;
}

.composer-promo-days button.active {
  background: #111;
  color: #fff;
}

.composer-promo-settings label {
  display: grid;
  gap: 12px;
  margin-top: 34px;
  max-width: 560px;
}

.composer-promo-settings input[type="range"] {
  padding: 0;
  accent-color: #111;
}

.composer-promo-forecast,
.composer-appearance-preview {
  display: grid;
  gap: 8px;
  padding: 28px;
  border-radius: 24px;
  background: #f3f2f1;
}

.composer-promo-forecast strong,
.composer-appearance-preview strong {
  font-size: 34px;
}

.composer-appearance-options {
  display: grid;
  gap: 18px;
}

.composer-appearance-option {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.composer-appearance-option strong {
  display: block;
  font-size: 20px;
}

.composer-appearance-option em {
  color: var(--muted);
  font-style: normal;
}

.composer-appearance-option small {
  display: block;
  margin-top: 4px;
  font-size: 17px;
}

.composer-appearance-option input {
  width: 42px;
  min-height: 26px;
  accent-color: #111;
}

.composer-appearance-badge {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #16a8f5;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.composer-appearance-badge.purple {
  background: #9b63f4;
}

.composer-promo-preview {
  display: grid;
  gap: 8px;
  transform-origin: top center;
  transition: width 0.18s ease, margin 0.18s ease, padding 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.composer-promo-preview.xl-preview {
  width: calc(100% + 28px);
  margin: 0 -14px 10px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.composer-promo-preview img,
.composer-promo-preview-empty {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  background: #e9ece9;
}

.composer-promo-preview-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
}

.composer-promo-preview-price {
  width: fit-content;
  border: 3px solid transparent;
  border-radius: 8px;
  padding: 2px 0;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, padding 0.18s ease;
}

.composer-promo-preview.price-highlight .composer-promo-preview-price {
  padding: 4px 10px;
  border-color: #ffd43b;
  background: #fff6b8;
  color: #111;
  font-weight: 900;
}

.composer-payment-summary {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.composer-payment-summary p {
  margin: 0;
  font-size: 18px;
}

.composer-payment-row,
.composer-payment-total {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  gap: 10px;
  align-items: baseline;
}

.composer-payment-row::after,
.composer-payment-total::after {
  content: "";
  grid-column: 2;
  border-bottom: 1px dotted #c7c7c7;
}

.composer-payment-row b,
.composer-payment-total b {
  grid-column: 3;
}

.composer-payment-total {
  margin-top: 80px;
  font-size: 34px;
  font-weight: 900;
}

.composer-payment-total strong {
  font-size: 34px;
}

.composer-payment-summary button,
.composer-promo-actions button {
  min-width: 220px;
  min-height: 58px;
  border-radius: 16px;
  background: #111;
}

.composer-payment-summary button:hover,
.composer-promo-actions button:hover {
  background: #222;
}

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

.composer-promo-actions .ghost {
  background: #f0efee;
  color: #111;
}

.composer-qr-layout {
  max-width: 900px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: center;
  margin: 60px auto 20px;
  padding: 28px;
  border-radius: 24px;
  background: #f3f2f1;
}

.composer-qr-layout strong {
  font-size: 26px;
}

.composer-qr-layout p {
  margin: 10px 0 0;
  font-size: 20px;
}

.composer-qr-layout button {
  grid-column: 1 / -1;
  width: fit-content;
  min-width: 240px;
  background: #111;
}

.composer-fake-qr {
  width: 220px;
  height: 220px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  padding: 12px;
  background: #fff;
}

.composer-fake-qr span {
  background: #111;
}

.composer-fake-qr span:nth-child(3n),
.composer-fake-qr span:nth-child(5n),
.composer-fake-qr span:nth-child(11n) {
  background: #fff;
}

.cabinet-list {
  display: grid;
  gap: 12px;
}

.cabinet-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.cabinet-summary-grid article {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.cabinet-summary-grid strong {
  font-size: 22px;
  line-height: 1;
}

.cabinet-summary-grid span {
  color: var(--muted);
  font-size: 13px;
}

.cabinet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.cabinet-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 14px;
}

.cabinet-tab.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.cabinet-tab b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
}

.cabinet-tab.active b {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.cabinet-settings-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.cabinet-reviews {
  max-width: 760px;
}

.favorites-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.favorites-standalone {
  margin-bottom: 16px;
}

.legal-panel {
  max-width: 1120px;
}

.legal-doc-grid {
  display: grid;
  gap: 12px;
}

.legal-doc-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.legal-doc-card h3 {
  margin: 0;
}

.legal-section-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.legal-section {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.legal-section p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.site-footer-note {
  display: block;
  margin-top: 26px;
  padding: 18px 20px 28px;
  color: #707070;
  font-size: 16px;
  line-height: 1.35;
}

.site-footer-note p {
  max-width: 980px;
  margin: 0;
}

.site-footer-note p + p {
  margin-top: 4px;
}

.site-footer-note button {
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #6b6b6b;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer-note button:hover {
  background: transparent;
  color: #111;
}

.favorites-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 12px;
}

.favorites-tab {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.favorites-tab:hover {
  border-color: var(--accent);
  background: var(--soft);
}

.favorites-tab.active {
  border-color: var(--accent);
  background: #eaf8f2;
}

.collection-board {
  display: grid;
  gap: 12px;
}

.collection-actions {
  justify-content: flex-start;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.collection-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.collection-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.collection-card-head div {
  display: grid;
  gap: 3px;
}

.collection-card-head span,
.collection-card p,
.collection-list-item span {
  color: var(--muted);
  font-size: 14px;
}

.collection-public-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.collection-list {
  display: grid;
  gap: 8px;
}

.collection-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.collection-list-item .link-title {
  margin: 0;
  font-size: 15px;
}

.public-collection-panel {
  margin-bottom: 16px;
}

.favorites-list {
  display: grid;
  gap: 8px;
}

.favorite-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  text-align: left;
  padding: 10px;
}

.favorite-item:hover {
  background: #eaf8f2;
  color: var(--ink);
}

.favorite-item-photo {
  width: 92px;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  background: var(--white);
}

.favorite-item strong,
.favorite-item span {
  color: inherit;
}

.favorite-item-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.favorite-item-copy p {
  margin: 0;
  color: var(--muted);
}

.cabinet-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 18px 22px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.cabinet-card-main {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
  align-items: start;
}

.cabinet-card-photo {
  display: block;
  width: 136px;
  min-width: 136px;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  align-self: start;
}

.cabinet-card-photo:hover {
  background: var(--white);
}

.cabinet-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.cabinet-card-copy {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.cabinet-card-actions {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  justify-self: stretch;
  padding-left: 0;
}

.cabinet-card-actions button,
.cabinet-action-menu summary {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 16px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.cabinet-card-actions .cabinet-action-primary {
  grid-column: 1 / -1;
  border-color: transparent;
  background: #0bb06d;
  color: #fff;
}

.cabinet-card-actions .cabinet-action-ghost {
  min-width: 0;
}

.cabinet-card-actions .cabinet-action-primary:hover {
  background: #07965d;
}

.cabinet-card-actions .cabinet-action-ghost:hover,
.cabinet-action-menu summary:hover {
  border-color: #cfd8d4;
  background: #f7f8f7;
}

.cabinet-action-menu {
  position: relative;
}

.cabinet-action-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 8px 14px;
  list-style: none;
  cursor: pointer;
}

.cabinet-action-menu summary::-webkit-details-marker {
  display: none;
}

.cabinet-action-menu[open] summary {
  border-color: #4dbcf6;
  box-shadow: 0 0 0 3px rgba(77, 188, 246, 0.18);
}

.cabinet-action-menu-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 230px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(17, 28, 23, 0.14);
}

.cabinet-action-menu-list button {
  justify-content: flex-start;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  background: transparent;
  color: #111;
  font-weight: 700;
  text-align: left;
}

.cabinet-action-menu-list button:hover {
  background: #f1f3f2;
}

.cabinet-action-menu-list button.danger {
  color: #b13a3a;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.status-draft {
  background: #fff7db;
  color: #7c5c00;
}

.status-moderation,
.status-scheduled,
.status-payment_pending {
  background: #eef5ff;
  color: #214f84;
}

.status-active {
  background: #eaf8f2;
  color: #15573b;
}

.status-archived,
.status-needs_revision,
.status-banned,
.status-rejected {
  background: #f0f1f3;
  color: #4d5964;
}

.moderation-note {
  border: 1px solid #f0d784;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff9e7;
}

.moderation-note strong {
  display: block;
  margin-bottom: 8px;
}

.moderation-note ul {
  margin: 0;
  padding-left: 18px;
}

.moderation-note.compact {
  margin-top: 10px;
}

.personal-category {
  align-items: center;
  width: 100%;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.14;
}

.personal-category::after {
  content: none;
}

.selected-personal-category::after,
.personal-category:hover::after {
  content: none;
}

.personal-category > span {
  position: relative;
  z-index: 1;
}

.personal-category > span:first-child {
  grid-column: 1;
  align-self: center;
  min-width: 0;
  overflow: hidden;
  padding: 16px 12px 16px 16px;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.personal-category img {
  grid-column: 2;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  align-self: stretch;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0 8px 8px 0;
  opacity: 0.86;
  filter: saturate(1.08) contrast(1.05);
  pointer-events: none;
}

.personal-category:hover img,
.selected-personal-category img {
  opacity: 0.94;
}

.compact-category-preview-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.compact-category-preview-list .personal-category {
  grid-template-columns: minmax(0, 1fr) clamp(74px, 30%, 118px);
  height: 94px;
}

.compact-category-preview-list .personal-category > span:first-child {
  padding: 12px 10px 12px 14px;
  font-size: 15px;
  line-height: 1.12;
  -webkit-line-clamp: 3;
}

.compact-category-preview-list .personal-category-all > span:first-child {
  align-self: center;
  padding: 12px 14px;
  font-size: 17px;
}

.personal-category-all {
  grid-template-columns: 1fr;
  background: #f3f5f4;
}

.personal-category-all > span:first-child {
  grid-column: 1;
  align-self: start;
  padding: 18px;
  font-size: 24px;
  line-height: 1.08;
}

.compact-category-modal {
  width: min(860px, calc(100vw - 48px));
}

.compact-category-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compact-category-modal-grid button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  text-align: left;
}

.category-back {
  min-height: 34px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  padding: 6px 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.category-back:hover {
  border-color: var(--accent);
  background: var(--soft);
  color: var(--ink);
}

.ad-wide {
  margin-top: 16px;
  min-height: 170px;
  padding: 28px;
  border-color: #111;
  background:
    linear-gradient(135deg, rgba(255, 216, 77, 0.92), rgba(0, 168, 107, 0.84)),
    url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1400&q=80");
  background-position: center;
  background-size: cover;
  color: var(--white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.32);
}

.ad-wide span,
.side-banner span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.ad-wide strong {
  display: block;
  font-size: 24px;
}

.ad-wide p {
  color: var(--white);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-size: 32px;
}

h2 {
  font-size: 24px;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.link-title {
  display: block;
  min-height: 0;
  margin: 0 0 8px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  text-align: left;
}

.link-title:hover {
  background: transparent;
  color: var(--accent-dark);
}

.card-subtitle {
  margin: 0 0 8px;
  color: #4f5f5a;
  font-size: 15px;
  line-height: 1.35;
}

.filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: min(220px, 100%);
  margin: 0;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.catalog-layout > .seo-landing-block {
  grid-column: 1 / -1;
}

.catalog-layout > .toolbar {
  grid-column: 1;
  grid-row: 2 / span 3;
}

.catalog-layout > .listing-controls {
  grid-column: 2;
  grid-row: 2;
}

.catalog-layout > .cards,
.catalog-layout > .cards-list {
  grid-column: 2;
  grid-row: 3;
}

.catalog-layout > .load-more-row {
  grid-column: 2;
  grid-row: 4;
}

.realty-catalog-layout {
  grid-template-columns: 1fr;
}

.parts-catalog-layout {
  grid-template-columns: 1fr;
}

.home-listings-layout {
  grid-template-columns: 1fr;
  gap: 18px;
}

.home-listings-layout > .seo-landing-block,
.home-listings-layout > .listing-controls,
.home-listings-layout > .cards,
.home-listings-layout > .cards-list,
.home-listings-layout > .load-more-row {
  grid-column: 1;
  grid-row: auto;
}

.home-listings-layout .listing-controls {
  margin-top: 8px;
}

.home-listings-layout .cards {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px 18px;
}

.home-listings-layout .card-gallery {
  border-radius: 14px;
}

.home-listings-layout .link-title {
  font-size: 21px;
  line-height: 1.08;
}

.parts-catalog-layout > .toolbar,
.parts-catalog-layout > .listing-controls,
.parts-catalog-layout > .cards,
.parts-catalog-layout > .cards-list,
.parts-catalog-layout > .load-more-row {
  grid-column: 1;
  grid-row: auto;
}

.realty-catalog-layout > .seo-landing-block,
.realty-catalog-layout > .listing-controls,
.realty-catalog-layout > .cards,
.realty-catalog-layout > .cards-list,
.realty-catalog-layout > .load-more-row {
  grid-column: 1;
  grid-row: auto;
}

.realty-catalog-layout .toolbar {
  position: static;
  grid-column: 1;
  grid-row: auto;
}

.realty-catalog-layout .toolbar-summary {
  width: 100%;
}

.toolbar {
  position: sticky;
  top: 150px;
  z-index: 2;
  display: grid;
  justify-content: start;
  align-items: start;
  gap: 12px;
  margin: 0;
  background: var(--white);
}

.toolbar-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: min(220px, 100%);
  min-width: 0;
  max-width: none;
  gap: 8px;
}

.toolbar-summary strong {
  display: block;
  line-height: 1.1;
}

.toolbar-summary p {
  margin: 0;
  line-height: 1.08;
}

.parts-toolbar {
  position: static;
  width: 100%;
  background: transparent;
}

.parts-search-panel {
  display: grid;
  gap: 22px;
  width: 100%;
  border-radius: 26px;
  padding: 34px 36px;
  background: #ffe177;
}

.parts-search-head {
  display: grid;
  gap: 6px;
}

.parts-search-head h2 {
  margin: 0;
  color: #000;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.05;
}

.parts-search-head p {
  margin: 0;
  color: rgba(0, 0, 0, 0.62);
  font-size: 18px;
}

.parts-search-form {
  display: grid;
  gap: 18px;
}

.parts-search-input-wrap {
  position: relative;
}

.parts-search-input-wrap input {
  width: 100%;
  min-height: 70px;
  border: 0;
  border-radius: 18px;
  padding: 0 58px 0 28px;
  background: #fff;
  color: #111;
  font-size: 24px;
}

.parts-search-input-wrap span {
  position: absolute;
  top: 50%;
  right: 26px;
  transform: translateY(-50%);
  color: #000;
  font-size: 30px;
  line-height: 1;
  pointer-events: none;
}

.parts-search-form button {
  justify-self: start;
  min-height: 64px;
  border: 0;
  border-radius: 16px;
  padding: 0 28px;
  background: #fff;
  color: #000;
  font-size: 22px;
  font-weight: 600;
  box-shadow: 0 14px 28px rgba(120, 82, 0, 0.14);
}

.filters input,
.filters select {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.auto-filter-panel {
  display: grid;
  gap: 18px;
  width: 100%;
  padding-bottom: 12px;
}

.auto-filter-block {
  display: grid;
  gap: 9px;
}

.auto-filter-block > strong,
.auto-filter-title-row > strong {
  font-size: 18px;
  line-height: 1.12;
}

.auto-filter-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.auto-filter-segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.auto-filter-segmented button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  padding: 0 13px;
  background: #f1f0ef;
  color: var(--ink);
  font-size: 15px;
}

.auto-filter-segmented button.active {
  background: #111;
  color: #fff;
}

.auto-filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.25;
}

.auto-filter-check.nested {
  padding-left: 22px;
}

.auto-filter-check input {
  appearance: none;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  border: 0;
  border-radius: 5px;
  padding: 0;
  background: #e1e0df;
}

.auto-filter-check input:checked {
  background: #111;
  box-shadow: inset 0 0 0 6px #e1e0df;
}

.auto-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #babbbc;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
}

.auto-link-button {
  width: fit-content;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #0b8ee8;
  font-size: 15px;
}

.auto-link-button:hover {
  background: transparent;
  color: #0574c5;
}

.auto-select-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  border-radius: 10px;
  padding: 0 13px;
  background: #f1f0ef;
  font-size: 15px;
}

.auto-select-chip.muted span:first-child {
  color: #777;
}

.auto-select-chip button {
  min-width: 26px;
  min-height: 26px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #111;
  font-size: 26px;
  line-height: 1;
}

.auto-filter-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.auto-filter-panel input[type="number"],
.auto-filter-panel input[type="text"],
.auto-filter-panel select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 0 13px;
  background: #f1f0ef;
  color: var(--ink);
  font-size: 15px;
}

.auto-filter-panel select {
  appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, #111 50%), linear-gradient(135deg, #111 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}

.truck-filter-heading,
.truck-filter-section-title h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}

.truck-filter-section-title {
  margin-top: 8px;
  gap: 0;
}

.auto-body-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 10px;
}

.auto-body-grid button {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 84px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #111;
  font-size: 15px;
  line-height: 1.12;
  text-align: center;
}

.auto-body-grid button.active {
  color: var(--accent-dark);
}

.auto-body-shape {
  position: relative;
  display: block;
  width: 72px;
  height: 30px;
  color: #d4d2d0;
}

.auto-body-shape span {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 7px;
  height: 14px;
  border-radius: 18px 20px 8px 8px;
  background: currentColor;
}

.auto-body-shape span::before {
  content: "";
  position: absolute;
  left: 18px;
  top: -8px;
  width: 34px;
  height: 12px;
  border-radius: 16px 18px 0 0;
  background: currentColor;
}

.auto-body-shape.suv span,
.auto-body-shape.van span {
  height: 20px;
  border-radius: 8px 8px 5px 5px;
}

.auto-body-shape.pickup span::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 4px;
  width: 22px;
  height: 10px;
  background: currentColor;
  border-radius: 2px;
}

.auto-body-shape.cabrio span::before {
  width: 22px;
  height: 6px;
  top: -4px;
}

.auto-body-shape b {
  position: absolute;
  bottom: 0;
  width: 13px;
  height: 13px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: currentColor;
}

.auto-body-shape b:nth-child(2) {
  left: 12px;
}

.auto-body-shape b:nth-child(3) {
  right: 12px;
}

.auto-color-list {
  display: grid;
  gap: 8px;
}

.auto-color-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 26px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #111;
  font-size: 15px;
}

.auto-color-list button.active {
  color: var(--accent-dark);
}

.auto-color-swatch {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
}

.auto-color-swatch.bordered {
  border: 1px solid #aaa;
}

.auto-filter-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  gap: 8px;
  padding: 10px 0 0;
  background: var(--white);
}

.auto-filter-actions button:first-child,
.auto-options-actions button:first-child {
  background: #111;
  color: #fff;
}

.rental-search-hints {
  gap: 8px;
}

.rental-search-hints button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
}

.rental-search-hints button:hover {
  background: transparent;
  color: var(--accent-dark);
}

.auto-options-overlay {
  z-index: 50;
  align-items: start;
  overflow: auto;
}

.auto-options-modal {
  position: relative;
  width: min(1060px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
}

.auto-options-close {
  position: fixed;
  top: 12px;
  right: 18px;
  z-index: 2;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 48px;
  line-height: 1;
}

.auto-options-head {
  padding: 34px 44px 18px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.auto-options-head h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1;
}

.auto-options-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 56px;
  max-height: calc(100vh - 190px);
  overflow: auto;
  padding: 28px 44px 120px;
}

.auto-options-group {
  display: grid;
  align-content: start;
  gap: 16px;
}

.auto-options-group h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.auto-options-list {
  display: grid;
  gap: 14px;
}

.auto-options-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 10px;
  padding: 18px 44px;
  background: #fff;
  box-shadow: 0 -2px 18px rgba(0, 0, 0, 0.08);
}

.realty-toolbar {
  display: grid;
  gap: 12px;
  width: min(720px, 100%);
}

.realty-deal-tabs,
.realty-quick-filters,
.realty-room-pills,
.realty-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.realty-quick-filters select,
.realty-filter-button,
.filter-chip {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  font-size: 15px;
}

.realty-quick-filters select {
  width: auto;
  min-width: 150px;
  padding: 0 12px;
}

.filter-chip,
.realty-filter-button {
  padding: 0 12px;
}

.filter-chip.active,
.realty-filter-button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.realty-filter-backdrop {
  z-index: 30;
  align-items: start;
  overflow: auto;
}

.realty-filter-modal {
  width: min(920px, 100%);
  max-height: calc(100vh - 36px);
  padding: 0;
  overflow: hidden;
}

.realty-filter-modal-head,
.realty-filter-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 28px;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}

.realty-filter-modal-head h2 {
  margin: 0;
  margin-right: auto;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--accent);
}

.realty-filter-modal-body {
  display: grid;
  gap: 20px;
  max-height: calc(100vh - 210px);
  padding: 24px;
  overflow: auto;
}

.realty-filter-row,
.realty-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.realty-filter-row select,
.realty-filter-block input,
.realty-range input {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--soft);
  font-size: 15px;
}

.realty-filter-block {
  display: grid;
  gap: 9px;
}

.realty-filter-block > strong {
  font-size: 18px;
  line-height: 1.1;
}

.realty-check-list {
  display: grid;
  gap: 9px;
}

.realty-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.realty-checkbox input {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  padding: 0;
  accent-color: var(--ink);
}

.realty-filter-actions {
  box-shadow: 0 -1px 0 var(--line);
}

.realty-filter-actions button:first-child {
  background: var(--accent);
  color: var(--white);
}

.realty-filter-button.map {
  background: var(--white);
}

.realty-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0;
}

.realty-card-specs span {
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
}

.jobs-section {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.jobs-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.jobs-section-head h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
}

.jobs-section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.jobs-toolbar {
  display: grid;
  gap: 14px;
  width: 100%;
}

.jobs-top-row {
  display: grid;
  grid-template-columns: minmax(560px, 760px) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
  width: 100%;
}

.jobs-top-row .jobs-popular-board {
  padding-top: 48px;
}

.seo-landing-block {
  display: grid;
  gap: 12px;
  padding: 16px 0 4px;
}

.seo-landing-block h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
}

.seo-landing-block p {
  max-width: 920px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.seo-query-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seo-query-list .ghost {
  padding: 10px 14px;
  font-size: 15px;
}

.jobs-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 2px 6px;
}

.jobs-mode {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  font-size: 17px;
}

.jobs-mode.active {
  font-weight: 800;
}

.jobs-search-panel {
  display: grid;
  gap: 12px;
  border-radius: 14px;
  padding: 18px;
  background: #ffe27a;
}

.jobs-search-panel h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.jobs-search-panel > input,
.jobs-select {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 16px;
}

.jobs-search-panel > input {
  padding: 0 18px;
}

.jobs-search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.jobs-dropdown {
  position: relative;
  min-width: 0;
}

.jobs-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  text-align: left;
}

.jobs-select.open {
  outline: 3px solid rgba(18, 72, 95, 0.22);
}

.jobs-dropdown-panel {
  position: absolute;
  z-index: 12;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 18px;
  border-radius: 18px;
  padding: 24px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(18, 24, 32, 0.16);
}

.jobs-search-actions,
.jobs-quick-row,
.jobs-period-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.jobs-search-actions button {
  min-height: 42px;
  font-size: 15px;
}

.jobs-search-actions button:first-child {
  background: var(--white);
  color: var(--ink);
}

.jobs-quick-row .filter-chip.active,
.job-card-specs span {
  background: #111;
  color: var(--white);
}

.jobs-filter-modal {
  width: min(760px, 100%);
}

.jobs-filter-body {
  gap: 24px;
}

.jobs-filter-body .realty-filter-block input,
.jobs-filter-body select {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 10px;
  background: var(--soft);
}

.jobs-radio-list {
  display: grid;
  gap: 14px;
}

.jobs-radio {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 19px;
}

.jobs-radio input {
  width: 28px;
  height: 28px;
  accent-color: var(--ink);
}

.jobs-suggestion-board {
  display: grid;
  gap: 14px;
  padding: 2px 0 16px;
}

.jobs-match-board {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  padding: 0 0 8px;
}

.jobs-suggestion-board h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.jobs-match-board h2 {
  flex: 0 0 auto;
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
}

.jobs-suggestion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 32px;
}

.jobs-top-row .jobs-suggestion-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

.jobs-suggestion-grid button,
.jobs-match-grid button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  text-align: left;
  font-size: 16px;
  line-height: 1.2;
}

.jobs-popular-item {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.jobs-popular-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.jobs-popular-parent b {
  font-size: 16px;
  line-height: 1;
}

.jobs-popular-sublist {
  display: grid;
  gap: 5px;
  padding: 0 0 4px 12px;
  border-left: 2px solid var(--line);
}

.jobs-popular-sublist button {
  color: #55605b;
  font-size: 14px;
}

.jobs-match-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: auto;
}

.jobs-match-grid button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--white);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.jobs-compose-fields {
  gap: 18px;
}

.job-spec-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.checkbox-row input {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  padding: 0;
}

.auto-filter-check input[type="checkbox"],
.realty-checkbox input[type="checkbox"],
.checkbox-row input[type="checkbox"] {
  max-width: 20px;
  max-height: 20px;
}

.realty-spec-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.realty-map-view {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  height: 100dvh;
  max-height: 100dvh;
  grid-template-columns: minmax(360px, 38vw) minmax(0, 1fr);
  background: #eef4e9;
}

.realty-map-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  min-height: 0;
  max-height: 100dvh;
  overflow: hidden;
  padding: 24px;
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 24px rgba(20, 31, 26, 0.18);
}

.realty-map-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.realty-map-panel-head span,
.realty-map-card small {
  color: #6f7873;
}

.realty-map-panel-head strong {
  display: block;
  font-size: 26px;
  line-height: 1.1;
}

.realty-map-panel-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.realty-map-back {
  min-height: 42px;
  border-color: var(--accent);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
}

.realty-map-filter-pill {
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.realty-map-panel .close {
  position: static;
}

.realty-map-city-row select {
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
}

.realty-map-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding-right: 4px;
}

.realty-map-card {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 0 10px;
  background: var(--white);
  cursor: pointer;
}

.realty-map-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 168, 107, 0.16);
}

.realty-map-card img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  border-radius: 8px;
  object-fit: cover;
}

.realty-map-card strong,
.realty-map-card span,
.realty-map-card b,
.realty-map-card small {
  padding: 0 8px;
}

.map-heart {
  position: absolute;
  right: 8px;
  top: calc(100% * 0.82 - 32px);
  min-height: 32px;
  width: 32px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.realty-map-canvas {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 58% 52%, rgba(255, 255, 255, 0.62) 0 10%, transparent 11%),
    radial-gradient(circle at 42% 46%, rgba(120, 194, 95, 0.22) 0 18%, transparent 19%),
    linear-gradient(120deg, rgba(231, 244, 220, 0.88), rgba(246, 250, 238, 0.94));
}

.realty-map-canvas.yandex {
  background: #e8efe5;
}

.realty-map-canvas.yandex::before {
  display: none;
}

.yandex-map-container {
  position: absolute;
  inset: 0;
}

.yandex-map-notice {
  position: absolute;
  z-index: 8;
  left: 24px;
  top: 24px;
  max-width: min(420px, calc(100% - 48px));
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(17, 28, 23, 0.16);
}

.realty-map-canvas::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(24deg, transparent 48%, rgba(250, 159, 54, 0.85) 49%, rgba(250, 159, 54, 0.85) 50%, transparent 51%),
    linear-gradient(104deg, transparent 49%, rgba(250, 159, 54, 0.64) 50%, transparent 51%),
    linear-gradient(164deg, transparent 49%, rgba(102, 173, 218, 0.48) 50%, transparent 51%);
  background-size: 420px 230px, 360px 280px, 520px 320px;
  opacity: 0.75;
}

.map-road {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 171, 55, 0.84);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.58);
}

.map-road-a {
  left: 8%;
  top: 48%;
  width: 88%;
  height: 6px;
  transform: rotate(-8deg);
}

.map-road-b {
  left: 48%;
  top: 2%;
  width: 6px;
  height: 96%;
  transform: rotate(14deg);
}

.map-road-c {
  left: 20%;
  top: 18%;
  width: 68%;
  height: 5px;
  transform: rotate(34deg);
}

.map-city-label {
  position: absolute;
  z-index: 1;
  color: rgba(27, 38, 33, 0.72);
  font-weight: 700;
  text-shadow: 0 1px 0 #fff;
}

.map-city-main {
  left: 48%;
  top: 47%;
  font-size: 28px;
}

.map-city-north {
  left: 46%;
  top: 25%;
}

.map-city-west {
  left: 26%;
  top: 58%;
}

.map-city-east {
  left: 68%;
  top: 39%;
}

.map-marker {
  position: absolute;
  z-index: 3;
  min-height: 18px;
  width: 18px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #0987e8;
  color: #fff;
  box-shadow: 0 2px 5px rgba(0, 55, 105, 0.24);
  transform: translate(-50%, -50%);
}

.map-marker.price {
  width: auto;
  min-width: 72px;
  padding: 0 10px;
  border-radius: 999px 999px 999px 2px;
  font-weight: 700;
  font-size: 14px;
  line-height: 26px;
  transform: translate(-50%, -100%);
}

.realty-map-popover {
  position: absolute;
  z-index: 5;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  width: min(420px, calc(100% - 48px));
  padding: 10px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(17, 28, 23, 0.22);
}

.realty-map-popover img {
  width: 112px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
}

.realty-map-popover div {
  display: grid;
  gap: 4px;
}

.map-controls {
  position: absolute;
  z-index: 6;
  right: 20px;
  top: 40%;
  display: grid;
  gap: 8px;
}

.map-controls button {
  width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 8px;
  background: var(--white);
  font-size: 24px;
  box-shadow: 0 3px 14px rgba(17, 28, 23, 0.14);
}

.listing-controls {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  width: 100%;
  margin: 6px 0 18px;
}

.listing-view-buttons {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.listing-view-button {
  width: 20px;
  min-height: 20px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #7e8582;
}

.listing-view-button:hover,
.listing-view-button.active {
  color: #111c17;
  background: transparent;
}

.listing-view-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.listing-view-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.listing-view-icon.list::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 3px;
  width: 5px;
  height: 5px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  box-shadow: 0 6px 0 -1.5px currentColor, 0 12px 0 -1.5px currentColor;
}

.listing-view-icon.list::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 4px;
  width: 8px;
  height: 1.5px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
}

.listing-view-icon.grid::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 5px;
  height: 5px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  box-shadow: 9px 0 0 -1.5px currentColor, 0 9px 0 -1.5px currentColor, 9px 9px 0 -1.5px currentColor;
}

.listing-view-icon.map::before,
.listing-view-icon.map::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 5px;
  height: 12px;
  border: 1.5px solid currentColor;
  transform: skewY(-12deg);
}

.listing-view-icon.map::before {
  left: 1px;
  border-right: 0;
}

.listing-view-icon.map::after {
  left: 10px;
  border-left: 0;
}

.listing-view-icon.map {
  border-left: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: skewY(12deg);
}

.listing-sort {
  position: relative;
}

.listing-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 0 4px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #000;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.listing-sort-button:hover,
.listing-sort-button.active {
  border-color: #85d2fb;
  background: transparent;
}

.listing-sort-button span {
  font-size: 16px;
}

.listing-sort-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 4px;
  z-index: 30;
  display: grid;
  gap: 0;
  min-width: 220px;
  padding: 14px 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 28, 23, 0.12);
}

.listing-sort-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #000;
  font-size: 18px;
  font-weight: 500;
  text-align: left;
}

.listing-sort-option:hover {
  background: #f5f7f6;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cards-list {
  grid-template-columns: 1fr;
  gap: 12px;
}

.car-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-height: 100%;
  border: 0;
  border-radius: 8px;
  overflow: visible;
  background: var(--white);
  cursor: pointer;
}

.card-gallery {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 0;
  padding: 0;
  background: var(--soft);
  overflow: hidden;
  border-radius: 18px;
}

.card-favorite {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #6b736f;
  font-size: 24px;
  line-height: 1;
}

.card-favorite:hover {
  background: transparent;
  color: var(--ink);
}

.card-favorite.active {
  background: transparent;
  color: #e34234;
}

.heart-icon {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.heart-icon.active {
  fill: currentColor;
}

.card-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  cursor: pointer;
}

.car-card > div:not(.card-gallery) {
  display: grid;
  align-content: start;
  gap: 0;
  padding: 12px 2px 6px;
}

.card-copy {
  position: relative;
  min-width: 0;
}

.list-card {
  grid-template-columns: 168px minmax(0, 1fr) minmax(120px, 160px);
  align-items: start;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  min-width: 0;
}

.list-card .card-gallery {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
}

.list-card > div:not(.card-gallery) {
  padding: 0;
}

.card-copy-list {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 4px;
}

.card-description {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta-stack {
  display: grid;
  gap: 6px;
}

.list-card-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-meta-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 20px;
  margin-top: 0;
  padding-right: 132px;
}

.card-city {
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-location-line {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}

.card-category,
.card-created-at {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.card-seller {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 10px;
  min-width: 0;
  min-height: 100%;
  padding-top: 6px;
}

.card-seller-box {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 0;
}

.card-seller-name {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  line-height: 1.25;
  word-break: break-word;
}

.card-seller-name-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: right;
}

.card-seller-name-button:hover {
  background: transparent;
  color: var(--accent-dark);
}

.card-seller-name-button strong {
  margin: 0;
}

.card-seller-type,
.card-seller-phone {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  line-height: 1.25;
  word-break: break-word;
}

.card-action-stack {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.compare-chip {
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.compare-chip:hover {
  border-color: var(--accent);
  background: #eaf8f2;
  color: var(--ink);
}

.compare-chip.active {
  border-color: var(--accent);
  background: #eaf8f2;
  color: var(--accent-dark);
}

.compare-chip.inline {
  position: absolute;
  right: 40px;
  bottom: -2px;
}

.card-favorite-corner {
  align-self: end;
  justify-self: end;
}

.list-card .link-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.list-card .card-price {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.05;
}

.card-bottom-actions {
  display: flex;
  justify-content: flex-end;
}

.card-favorite.inline {
  position: absolute;
  right: 0;
  bottom: 0;
  box-shadow: none;
}

@media (max-width: 1360px) {
  .list-card {
    grid-template-columns: 144px minmax(0, 1fr);
    gap: 12px;
  }

  .list-card .card-gallery {
    width: 144px;
  }

  .card-seller {
    grid-column: 2;
    justify-items: start;
    gap: 8px;
    padding-top: 0;
  }

  .card-seller-box {
    justify-items: start;
  }

  .card-seller-name,
  .card-seller-type,
  .card-seller-phone {
    text-align: left;
  }

  .card-seller-name-button {
    text-align: left;
  }

  .card-action-stack {
    justify-items: start;
  }
}

.saved-search-list {
  display: grid;
  gap: 10px;
}

.saved-search-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.saved-search-copy {
  display: grid;
  gap: 4px;
}

.saved-search-copy span {
  color: var(--muted);
  font-size: 14px;
}

.notifications-panel {
  max-width: 980px;
}

.notification-list {
  display: grid;
  gap: 10px;
}

.notification-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.notification-item.unread {
  border-color: rgba(255, 194, 66, 0.8);
  background: #fff8df;
}

.notification-copy {
  display: grid;
  gap: 4px;
}

.notification-copy p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.notification-copy small {
  color: var(--muted);
}

.notification-type {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.notification-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.notification-settings {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  margin-bottom: 12px;
}

.notification-settings-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.notification-settings-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.notification-channel-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.notification-channel-grid .check-row {
  width: auto;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.notification-channel-grid .check-row.disabled {
  opacity: 0.72;
}

.notification-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.notification-settings-grid label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
}

.notification-settings-grid input,
.notification-settings-grid select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.business-import-panel {
  gap: 14px;
}

.import-form {
  grid-template-columns: 160px minmax(220px, 1fr) auto;
  align-items: center;
}

.feed-textarea {
  min-height: 180px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
}

.import-spec {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.import-spec p {
  margin: 0;
  color: var(--muted);
}

.import-job-card {
  grid-template-columns: 1fr;
}

.publication-plan-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.publication-plan-note span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: #f8faf8;
  color: #52615c;
  font-size: 12px;
  font-weight: 700;
}

.listing-quality-hints {
  display: grid;
  gap: 6px;
  max-width: 520px;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid #f2d27a;
  border-radius: 8px;
  background: #fff9df;
}

.listing-quality-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quality-score {
  border-radius: 999px;
  padding: 4px 8px;
  background: #f1f4f2;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.quality-score.good {
  background: #e4f7ec;
  color: #0f7a3f;
}

.quality-score.medium {
  background: #fff0c2;
  color: #8a5b00;
}

.quality-score.bad {
  background: #ffe4e4;
  color: #a23434;
}

.listing-quality-hints ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quality-issue {
  display: block;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
}

.quality-issue b {
  color: var(--ink);
}

.quality-issue.info b {
  color: #2f6f9f;
}

.notification-deliveries {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.notification-delivery-row {
  display: grid;
  grid-template-columns: 120px 90px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 14px;
}

.notification-delivery-row small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-panel .compose-head {
  margin-bottom: 4px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.compare-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.compare-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  background: var(--white);
}

.compare-card strong {
  font-size: 16px;
}

.car-card strong,
.card-price {
  display: block;
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.05;
}

.car-card span {
  color: var(--blue);
}

.link-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.link-title mark,
.card-description mark {
  border-radius: 4px;
  padding: 0 2px;
  background: #fff0a8;
  color: inherit;
}

.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 18, 16, 0.48);
}

.detail-modal {
  width: min(980px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.detail-page {
  min-height: 100vh;
  padding: 18px 8px 32px;
  background: var(--white);
}

.detail-modal-page {
  width: min(1120px, calc(100vw - 16px));
  max-height: none;
  margin: 0 auto;
  box-shadow: none;
  border: 1px solid var(--line);
  overflow-x: clip;
}

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 0;
}

.detail-head-copy {
  display: grid;
  gap: 8px;
}

.detail-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #6d7b77;
  font-size: 14px;
}

.detail-breadcrumb-sep {
  color: #96a49f;
}

.link-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6d7b77;
  font-weight: 600;
}

.link-button:hover {
  color: var(--accent);
  background: transparent;
}

.detail-head strong,
.detail-title {
  display: block;
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.1;
}

.detail-subtitle {
  margin: 0;
  color: #51615c;
  font-size: 16px;
}

.detail-body {
  padding: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  gap: 16px;
  align-items: start;
}

.detail-gallery {
  display: grid;
  align-content: start;
  gap: 4px;
  justify-items: center;
}

.detail-image-button {
  width: 100%;
  padding: 0;
  min-height: 0;
  border: 0;
  background: transparent;
  margin: 0 auto;
}

.detail-image-button:hover {
  background: transparent;
}

.detail-image {
  width: 100%;
  height: 620px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
  cursor: zoom-in;
}

.detail-thumbs {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin-top: -2px;
}

.detail-thumb {
  padding: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.detail-thumb:hover,
.detail-thumb.active {
  border-color: var(--accent);
  background: #eaf8f2;
}

.detail-thumb img {
  width: 100%;
  height: 68px;
  display: block;
  object-fit: cover;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 24px;
  background: rgba(10, 14, 13, 0.88);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  min-height: 40px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(10, 14, 13, 0.44);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.16);
}

.lightbox-nav-prev {
  left: 20px;
}

.lightbox-nav-next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(10, 14, 13, 0.54);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.lightbox-image {
  max-width: min(1200px, calc(100vw - 48px));
  max-height: calc(100vh - 96px);
  border-radius: 8px;
  object-fit: contain;
  background: #101615;
}

.detail-main-column {
  display: grid;
  gap: 20px;
}

.detail-side-column {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 18px;
  min-width: 0;
  max-width: 360px;
  width: 100%;
  justify-self: end;
}

.detail-info-sidebar {
  max-width: 360px;
}

.detail-copy {
  display: grid;
  align-content: start;
  gap: 12px;
}

.detail-price {
  font-size: clamp(22px, 2.1vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
  display: block;
  width: 100%;
  text-align: left;
  word-break: normal;
  overflow-wrap: normal;
  max-width: 100%;
  min-width: 0;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #4f5f5a;
  font-size: 14px;
}

.detail-meta-block {
  margin-top: 8px;
}

.detail-description-card,
.detail-purchase-card,
.detail-seller-card,
.detail-contact-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  min-width: 0;
}

.detail-purchase-card {
  position: relative;
}

.detail-description-card h3,
.detail-section h3 {
  margin: 0;
  font-size: 20px;
}

.detail-description-card p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.detail-price-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-right: 0;
}

.detail-price-row > .detail-price {
  margin: 0;
}

.detail-inline-actions {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: 0;
  flex-shrink: 0;
}

.detail-actions-menu-wrap {
  position: relative;
}

.detail-actions-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(16, 24, 20, 0.18);
  z-index: 12;
  padding: 6px;
}

.detail-actions-menu-item {
  width: 100%;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  text-align: left;
  padding: 10px 12px;
  font-size: 16px;
}

.detail-actions-menu-item:hover {
  background: var(--soft);
}

.icon-button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.detail-more-button {
  font-size: 28px;
  line-height: 1;
}

.detail-favorite-button .heart-icon {
  width: 26px;
  height: 26px;
}

.detail-favorite-button.active {
  color: #e34234;
}

@media (max-width: 560px) {
  .detail-price-row {
    padding-right: 0;
    padding-top: 0;
  }

  .detail-inline-actions {
    top: auto;
    right: auto;
  }
}

.detail-status-badges {
  display: grid;
  gap: 10px;
}

.detail-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef7f3;
  color: var(--accent);
  font-weight: 700;
}

.detail-pill.verified {
  background: #fff3b0;
  color: #241e08;
}

.detail-pill.danger {
  background: #ffe8e5;
  color: #9a241a;
}

.detail-response {
  color: #384843;
  font-size: 16px;
}

.detail-cta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-cta-row button {
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-purchase-card .compose-notice {
  overflow-wrap: anywhere;
}

.primary-alt {
  background: #1f8df3;
  color: var(--white);
  border-color: #1f8df3;
}

.primary-alt:hover {
  background: #0e7ee4;
  border-color: #0e7ee4;
}

.detail-seller-card {
  gap: 14px;
}

.detail-contact-card {
  gap: 14px;
}

.detail-contact-card p {
  margin: 4px 0 0;
  color: #60706a;
}

.detail-contact-list {
  display: grid;
  gap: 10px;
}

.detail-contact-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.detail-contact-list span {
  color: #60706a;
}

.detail-contact-link {
  color: var(--accent);
}

.detail-seller-copy {
  display: grid;
  gap: 8px;
}

.detail-seller-copy strong {
  font-size: 28px;
  line-height: 1.1;
}

.detail-seller-copy p,
.detail-muted {
  margin: 0;
}

.detail-muted {
  color: #60706a;
  font-size: 15px;
}

.danger-text {
  color: #9a241a;
}

.detail-section {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-section-head span {
  color: #60706a;
  font-size: 14px;
}

.price-history-list {
  display: grid;
  gap: 8px;
}

.price-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.price-history-row span {
  color: #60706a;
  font-size: 14px;
}

.listing-change-row {
  align-items: stretch;
  flex-direction: column;
}

.listing-change-row > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.listing-change-lines {
  display: grid;
  gap: 4px;
}

.listing-change-lines span {
  color: var(--text);
  font-size: 13px;
}

.quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-question {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 16px;
  background: #111;
  color: var(--white);
  border-color: #111;
  font-weight: 600;
}

.quick-question:hover {
  background: #000;
  border-color: #000;
}

.detail-seller {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.profile-modal {
  width: min(1060px, calc(100vw - 24px));
}

.profile-modal-page {
  width: min(1100px, calc(100vw - 16px));
}

.profile-body {
  display: grid;
  gap: 16px;
}

.profile-hero {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.profile-avatar {
  width: 108px;
  height: 108px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e4ece8;
  display: grid;
  place-items: center;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar span {
  font-size: 28px;
  font-weight: 800;
  color: #3d4b47;
}

.profile-main {
  display: grid;
  gap: 10px;
}

.profile-main h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
}

.profile-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #41524d;
  font-size: 14px;
  font-weight: 600;
}

.profile-seller-badges {
  margin-top: -2px;
}

.profile-trust-card {
  display: grid;
  gap: 8px;
  max-width: 620px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.trust-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ece9;
}

.trust-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #f3c83f;
}

.profile-trust-factors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-trust-factors span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: #f8faf8;
  color: #40504b;
  font-size: 12px;
  font-weight: 700;
}

.profile-violation-history {
  display: grid;
  gap: 5px;
  padding-top: 4px;
}

.profile-violation-history strong {
  font-size: 13px;
}

.profile-violation-history span {
  color: #8a2d24;
  font-size: 12px;
  font-weight: 700;
}

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

.profile-short-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.profile-short-link span {
  color: #4f605b;
  font-size: 14px;
}

.profile-section {
  display: grid;
  gap: 10px;
}

.profile-section h3 {
  margin: 0;
}

.profile-reviews {
  display: grid;
  gap: 10px;
}

.profile-review-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.profile-review-card p {
  margin: 0;
  line-height: 1.45;
}

.profile-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-review-reply {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: var(--soft);
}

.profile-review-reply strong {
  font-size: 14px;
}

.detail-section {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.chat-box {
  display: grid;
  gap: 10px;
}

.chat-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding: 4px 0;
}

.chat-item {
  display: grid;
  gap: 6px;
  max-width: 85%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--soft);
  line-height: 1.4;
}

.chat-item.mine {
  justify-self: end;
  background: #eaf8f2;
}

.chat-photo {
  display: block;
  width: auto;
  max-width: min(100%, 320px);
  max-height: 240px;
  border-radius: 8px;
  object-fit: contain;
  background: #eef1ef;
}

.chat-item.mine .chat-photo {
  justify-self: end;
}

.chat-text {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chat-attachment-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8f7;
}

.chat-attachment-preview img {
  display: block;
  width: 72px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef1ef;
}

.chat-attachment-preview span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.chat-compose-message {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-compose-input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

.chat-compose-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.chat-file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.chat-attach-button {
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
}

.chat-search-input {
  width: 100%;
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 12px 14px;
}

.chat-file-link {
  display: inline-grid;
  gap: 2px;
  max-width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-decoration: none;
}

.chat-file-link strong,
.chat-file-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-file-link span {
  color: var(--muted);
  font-size: 13px;
}

.chat-file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.chat-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 4px;
}

.chats-panel .compose-head {
  margin-bottom: 10px;
}

.chat-dialog-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
}

.chat-dialog-list {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.chat-dialog-item {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 86px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-align: left;
  padding: 8px;
}

.chat-dialog-item.unread {
  border-color: rgba(31, 141, 243, 0.42);
  background: #eef6ff;
}

.chat-dialog-item.active,
.chat-dialog-item:hover {
  border-color: var(--accent);
  background: #eaf8f2;
  color: var(--ink);
}

.chat-dialog-unread {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #1f8df3;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.chat-dialog-item img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}

.chat-dialog-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.chat-dialog-copy strong,
.chat-dialog-copy span,
.chat-dialog-copy small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-dialog-copy span {
  color: var(--muted);
}

.chat-dialog-copy small {
  color: #8c9690;
}

.chat-status {
  color: #6d7b77;
  font-size: 12px;
}

.chat-thread-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 10px;
  min-width: 0;
  background: var(--white);
  overflow: hidden;
}

.chat-thread-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.chat-thread-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.chat-list-panel {
  max-height: 320px;
  min-height: 220px;
  min-width: 0;
}

.chat-widget {
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: min(360px, calc(100vw - 28px));
  z-index: 40;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  display: grid;
  gap: 0;
  box-shadow: 0 16px 32px rgba(23, 33, 27, 0.22);
}

.chat-widget.collapsed {
  width: min(360px, calc(100vw - 28px));
}

.chat-widget-dock {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  font-weight: 800;
  font-size: 24px;
}

.chat-widget-dock:hover {
  background: var(--soft);
}

.chat-widget-dock-title {
  white-space: nowrap;
}

.chat-widget-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ff4c63;
  color: var(--white);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.chat-widget-arrow {
  margin-left: auto;
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
  transition: transform 0.2s ease;
}

.chat-widget-arrow.open {
  transform: rotate(180deg);
}

.chat-widget-body {
  border-top: 1px solid var(--line);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.chat-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chat-widget-actions {
  display: inline-flex;
  gap: 6px;
}

.chat-widget-actions .ghost {
  min-height: 32px;
  padding: 0 10px;
}

.chat-widget-list {
  min-height: 180px;
  max-height: 240px;
}

.muted-note {
  color: var(--muted);
}

.similar-list {
  display: grid;
  gap: 10px;
}

.similar-item {
  align-items: flex-start;
}

.similar-item span {
  display: block;
  text-align: left;
}

.storefront-modal {
  width: min(860px, 100%);
}

.auth-modal {
  width: min(980px, calc(100vw - 16px));
  max-height: min(92vh, 980px);
  overflow: auto;
}

.picker-modal {
  width: min(760px, calc(100vw - 32px));
  max-height: min(78dvh, 760px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.picker-overlay {
  align-items: start;
  place-items: start center;
  overflow: auto;
  padding: clamp(126px, 16vh, 176px) 16px 24px;
}

.picker-modal .detail-head {
  flex: 0 0 auto;
}

.picker-body {
  display: grid;
  gap: 16px;
  padding: 0 18px 18px;
  overflow: auto;
  min-height: 0;
}

.picker-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.picker-item {
  display: grid;
  gap: 6px;
  justify-items: start;
  min-height: 88px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-align: left;
}

.picker-item strong,
.picker-item span {
  display: block;
  color: inherit;
}

.picker-item.active,
.picker-item:hover {
  border-color: var(--accent);
  background: #eaf8f2;
  color: var(--ink);
}

.picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
}

.auth-panel {
  margin-bottom: 0;
  border: 0;
  box-shadow: none;
}

.auth-legal-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.auth-legal-note button {
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-legal-note button:hover {
  background: transparent;
  color: var(--ink);
}

.storefront-body {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.storefront-banner {
  width: 100%;
  max-height: 220px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.storefront-company {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.storefront-logo {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--white);
}

.storefront-logo.placeholder {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-size: 28px;
  font-weight: 900;
  color: var(--ink);
}

.storefront-list {
  display: grid;
  gap: 10px;
}

.storefront-contacts {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  color: #2f3f3a;
  font-size: 14px;
}

.storefront-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.storefront-badges span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #e6f4ee;
  color: #1b6b4b;
  font-size: 13px;
  font-weight: 700;
}

.storefront-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.storefront-stats-grid article {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.storefront-stats-grid strong {
  font-size: 18px;
}

.storefront-stats-grid span {
  font-size: 13px;
  color: var(--muted);
}

.profile-business-card {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5faf7;
}

.profile-business-card p {
  margin: 0;
}

.profile-business-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-business-stats span {
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 13px;
}

.storefront-item {
  align-items: flex-start;
}

.storefront-item span {
  display: block;
  text-align: left;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  width: 34px;
  min-height: 42px;
  padding: 0;
  transform: translateY(-50%);
  background: rgba(23, 33, 27, 0.72);
  color: var(--white);
  font-size: 28px;
}

.gallery-arrow:hover {
  background: rgba(23, 33, 27, 0.9);
}

.gallery-arrow.prev {
  left: 8px;
}

.gallery-arrow.next {
  right: 8px;
}

.gallery-dots {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: 5px;
  justify-content: center;
  padding: 0;
}

.gallery-dots button {
  width: 26px;
  min-height: 5px;
  border-radius: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
}

.gallery-dots .active-dot {
  background: var(--white);
}

.sticky-ads {
  position: sticky;
  top: 172px;
  align-self: start;
  display: grid;
  gap: 14px;
}

.side-banner {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(160deg, rgba(23, 33, 27, 0.84), rgba(0, 168, 107, 0.7)),
    url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=900&q=80");
  background-position: center;
  background-size: cover;
  color: var(--white);
  box-shadow: 0 14px 36px rgba(23, 33, 27, 0.16);
}

.side-banner:nth-child(2) {
  background:
    linear-gradient(160deg, rgba(34, 119, 204, 0.82), rgba(23, 33, 27, 0.72)),
    url("https://images.unsplash.com/photo-1511919884226-fd3cad34687c?auto=format&fit=crop&w=900&q=80");
  background-position: center;
  background-size: cover;
}

.side-banner:nth-child(3) {
  background:
    linear-gradient(160deg, rgba(216, 51, 42, 0.76), rgba(23, 33, 27, 0.72)),
    url("https://images.unsplash.com/photo-1519641471654-76ce0107ad1b?auto=format&fit=crop&w=900&q=80");
  background-position: center;
  background-size: cover;
}

.side-banner strong,
.side-banner p {
  display: block;
  color: var(--white);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.32);
}

@media (max-width: 1180px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side-column {
    position: static;
  }

  .detail-image-button,
  .detail-thumbs {
    width: 100%;
  }
}

.questions,
.rules-panel {
  margin-top: 22px;
  padding: 20px;
}

.questions li,
.rules-panel li {
  margin-bottom: 10px;
  line-height: 1.45;
}

.rules-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.decision-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--white);
}

.decision-grid strong,
.decision-grid span {
  display: block;
}

.decision-grid span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.4;
}

.floating-login {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 33, 27, 0.48);
}

.modal {
  position: relative;
  width: min(520px, 100%);
  border-radius: 8px;
  padding: 28px;
  background: var(--white);
}

.region-modal {
  width: min(680px, 100%);
}

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

.selected-city {
  background: var(--accent);
  color: var(--white);
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  min-height: 36px;
  padding: 0;
  background: var(--soft);
  color: var(--ink);
}

.stack {
  display: grid;
  gap: 14px;
}

.fine {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-choice {
  min-height: 128px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-align: left;
}

.account-choice strong,
.account-choice span {
  display: block;
}

.account-choice span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.35;
}

.account-choice.selected {
  border-color: var(--accent);
  background: #eaf8f2;
}

.cabinet {
  max-width: 980px;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.dashboard div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.dashboard strong,
.dashboard span {
  display: block;
}

.dashboard strong {
  font-size: 26px;
}

.dashboard span {
  margin-top: 6px;
  color: var(--muted);
}

.feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.draft {
  padding: 20px;
}

.post-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
}

.steps {
  position: sticky;
  top: 172px;
  align-self: start;
  display: grid;
  gap: 8px;
}

.steps button {
  justify-content: flex-start;
  text-align: left;
}

.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.path {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--soft);
  font-weight: 700;
}

.required-note,
.masked-number {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--soft);
}

.required-note p,
.masked-number p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.field-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.field-rules div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
}

.field-rules li {
  margin-bottom: 8px;
  line-height: 1.35;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.upload-grid button,
.upload-tile {
  min-height: 110px;
  border: 1px dashed var(--accent);
  background: #eefaf5;
  color: var(--ink);
}

.upload-tile {
  display: grid;
  place-items: center;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.upload-tile input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.main-upload {
  border-style: solid;
  background: var(--yellow);
}

.photo-preview {
  position: relative;
  overflow: hidden;
  min-height: 110px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.photo-preview img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.photo-preview button {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-height: 32px;
  padding: 6px 9px;
  background: rgba(23, 33, 27, 0.82);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  font-weight: 700;
}

.checkboxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.checkboxes label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.checkboxes input {
  width: auto;
  min-height: auto;
}

.map-box {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 168, 107, 0.11) 1px, transparent 1px),
    linear-gradient(rgba(0, 168, 107, 0.11) 1px, transparent 1px),
    #f7fbf9;
  background-size: 28px 28px;
  color: var(--accent-dark);
  font-weight: 700;
}

.tariff {
  padding: 18px;
}

.payment-row,
.moderation-result {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-row span,
.moderation-result span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  background: var(--soft);
}

.moderation-result strong {
  width: 100%;
}

.back-button {
  margin-bottom: 16px;
}

.listing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.listing-main,
.listing-aside {
  min-width: 0;
}

.photo-viewer {
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

.photo-viewer img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.thumbs {
  display: flex;
  gap: 8px;
  margin: 10px 0 20px;
  overflow-x: auto;
}

.thumbs img {
  width: 92px;
  height: 66px;
  border-radius: 8px;
  object-fit: cover;
}

.listing-description {
  color: var(--muted);
  line-height: 1.55;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.spec-grid div,
.price-box,
.mini-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.spec-grid div {
  padding: 14px;
}

.spec-grid span,
.mini-card span {
  display: block;
  color: var(--muted);
}

.spec-grid strong {
  display: block;
  margin-top: 6px;
}

.listing-aside {
  position: sticky;
  top: 172px;
  align-self: start;
  display: grid;
  gap: 14px;
}

.price-box {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.price-box h2 {
  margin-bottom: 0;
  font-size: 30px;
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-card {
  overflow: hidden;
}

.mini-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.mini-card strong,
.mini-card span {
  padding: 0 12px;
}

.mini-card strong {
  display: block;
  padding-top: 10px;
}

.mini-card span {
  padding-bottom: 12px;
  margin-top: 6px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 18px 0 28px;
}

@media (max-width: 900px) {
  .home-category-showcase {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .home-category-showcase::-webkit-scrollbar {
    display: none;
  }

  .home-category-card {
    flex: 0 0 168px;
    min-height: 92px;
    padding: 14px 38% 12px 14px;
  }

  .home-category-card-wide {
    flex-basis: 260px;
  }

  .home-category-card span {
    font-size: 15px;
  }

  .home-category-card img {
    width: 30%;
    height: 62%;
  }

  .topbar,
  .region-banner,
  .region-confirmed,
  .toolbar,
  footer {
    align-items: stretch;
    flex-direction: column;
  }

  nav,
  .top-actions {
    flex-wrap: wrap;
  }

  .searchbar,
  .auto-category-grid,
  .personal-category-list,
  .catalog-layout,
  .chat-dialog-layout,
  .cards,
  .compose-grid,
  .picker-grid,
  .detail-body,
  .home-grid,
  .post-layout,
  .listing-layout,
  .dashboard,
  .choice-grid,
  .form-grid,
  .checkboxes,
  .decision-grid,
  .field-rules,
  .spec-grid,
  .mini-cards {
    grid-template-columns: 1fr;
  }

  .catalog-layout > .seo-landing-block,
  .catalog-layout > .cards,
  .catalog-layout > .cards-list,
  .catalog-layout > .listing-controls,
  .catalog-layout > .load-more-row {
    grid-column: 1;
  }

  .home-listings-layout .cards {
    grid-template-columns: 1fr;
  }

  .listing-controls {
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 4px;
  }

  .listing-sort-button,
  .listing-sort-option {
    font-size: 22px;
  }

  .listing-sort-menu {
    left: 0;
    min-width: min(280px, calc(100vw - 42px));
  }

  .parts-search-panel {
    border-radius: 18px;
    padding: 24px 18px;
  }

  .parts-search-input-wrap input {
    min-height: 58px;
    font-size: 18px;
  }

  .parts-search-form button {
    width: 100%;
    font-size: 18px;
  }

  .truck-special-subsections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .truck-category-overlay {
    align-items: flex-start;
    padding: 12px;
  }

  .truck-category-modal {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 16px;
    padding: 22px 18px 26px;
  }

  .truck-category-groups {
    column-count: 1;
    column-gap: 0;
  }

  .truck-category-group h3,
  .electronics-category-group-title {
    font-size: 18px !important;
  }

  .truck-category-group button {
    font-size: 15px;
  }

  .auto-filter-panel {
    gap: 22px;
  }

  .auto-filter-segmented button {
    flex: 1 1 auto;
  }

  .auto-body-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auto-options-modal {
    width: 100%;
    min-height: 100vh;
    max-height: none;
    border-radius: 0;
  }

  .auto-options-body {
    grid-template-columns: 1fr;
    max-height: none;
    padding: 24px 22px 120px;
  }

  .auto-options-head,
  .auto-options-actions {
    padding-left: 22px;
    padding-right: 22px;
  }

  .auto-options-close {
    color: #111;
  }

  .sticky-ads,
  .steps,
  .listing-aside {
    position: static;
  }

  .sticky-ads {
    grid-row: auto;
  }

  .compact-category-preview-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .compact-category-preview-list .personal-category {
    height: 86px;
  }

  .compact-category-preview-list .personal-category > span:first-child {
    padding: 10px 8px 10px 12px;
    font-size: 14px;
  }

  .car-card {
    grid-template-columns: 1fr;
  }

  .list-card {
    grid-template-columns: 1fr;
  }

  .realty-toolbar,
  .realty-quick-filters select,
  .realty-filter-button,
  .filter-chip {
    width: 100%;
  }

  .realty-deal-tabs .filter-chip,
  .realty-room-pills .filter-chip,
  .realty-chip-row .filter-chip {
    width: auto;
  }

  .realty-filter-modal-head,
  .realty-filter-actions {
    padding: 18px;
  }

  .realty-filter-modal-body {
    padding: 18px;
  }

  .realty-filter-row,
  .realty-range {
    grid-template-columns: 1fr;
  }

  .realty-map-view {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(45vh, 1fr) minmax(280px, 42vh);
  }

  .realty-map-panel {
    grid-row: 2;
    border-radius: 8px 8px 0 0;
    padding: 14px;
  }

  .realty-map-canvas {
    grid-row: 1;
  }

  .realty-map-list {
    grid-template-columns: 1fr;
  }

  .realty-map-popover {
    display: none;
  }

  .realty-spec-grid {
    grid-template-columns: 1fr;
  }

  .jobs-search-grid,
  .jobs-suggestion-grid,
  .jobs-match-grid,
  .job-spec-grid,
  .jobs-top-row,
  .jobs-top-row .jobs-suggestion-grid {
    grid-template-columns: 1fr;
  }

  .jobs-top-row .jobs-popular-board {
    padding-top: 0;
  }

  .jobs-search-panel {
    border-radius: 12px;
    padding: 14px;
  }

  .jobs-dropdown-panel {
    position: static;
    margin-top: 8px;
  }

  .cabinet-card {
    grid-template-columns: 1fr;
  }

  .cabinet-card-main {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .cabinet-card-photo {
    width: 88px;
    min-width: 88px;
  }

  .cabinet-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-picker-card,
  .picker-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-ad-grid {
    grid-template-columns: 1fr;
  }

  .detail-top-row {
    grid-template-columns: 1fr;
  }

  .detail-side-column {
    position: static;
  }

  .profile-hero {
    grid-template-columns: 1fr;
  }

  .storefront-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-avatar {
    width: 84px;
    height: 84px;
  }

  .toolbar-summary {
    flex: none;
    min-width: 0;
    max-width: none;
  }

  .toolbar {
    position: static;
  }

  .car-card > div:not(.card-gallery) {
    padding: 0 16px 16px;
  }

  .upload-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .city-grid {
    grid-template-columns: 1fr;
  }

  .chat-widget {
    right: 8px;
    left: 8px;
    width: auto;
    bottom: 8px;
  }

  .chat-widget-dock {
    min-height: 48px;
    font-size: 20px;
  }

  .auto-section-head,
  .personal-section-head {
    display: block;
  }

  .auto-section-head strong {
    display: block;
    margin-top: 8px;
    font-size: 28px;
  }

  .auto-category-grid-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auto-brand-grid {
    column-count: 2;
    column-gap: 16px;
  }

  .auto-brand-board-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .auto-brand-board-title-row {
    width: 100%;
    justify-content: space-between;
  }

  .auto-brand-board-head h2 {
    font-size: 24px;
  }

  .auto-brand-row,
  .auto-brand-row strong {
    font-size: 16px;
  }

  .auto-brand-logo-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 26px;
  }

  .truck-special-subsections {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .truck-special-tile {
    flex: 0 0 210px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .storefront-stats-grid {
    grid-template-columns: 1fr;
  }

  .auto-section,
  .personal-section {
    padding: 14px;
  }

  .personal-category {
    grid-template-columns: minmax(0, 1fr) clamp(84px, 34%, 108px);
    height: 132px;
  }

  .personal-category > span:first-child {
    padding: 16px 12px 16px 16px;
    font-size: 15px;
  }

  .personal-category img {
    width: 100%;
  }

  .auto-tile {
    grid-template-columns: minmax(0, 1fr) clamp(84px, 34%, 108px);
    height: 132px;
  }

  .auto-tile-copy {
    width: 100%;
    padding: 16px 12px 16px 16px;
  }

  .auto-tile img {
    width: 100%;
  }

  .auto-category-grid-main {
    grid-template-columns: 1fr;
  }

  .auto-brand-board {
    padding: 14px;
  }

  .auto-brand-grid {
    grid-template-columns: 1fr;
  }

  .auto-brand-row,
  .auto-brand-row strong {
    font-size: 14px;
  }

  .auto-brand-logo-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .auto-brand-logo-item {
    min-height: 60px;
    padding: 2px;
  }

  .auto-brand-logo-item img {
    max-width: 98px;
    height: 52px;
  }

  .notification-item {
    grid-template-columns: 1fr;
  }

  .notification-settings-head {
    flex-direction: column;
  }

  .notification-settings-grid,
  .notification-delivery-row {
    grid-template-columns: 1fr;
  }

  .billing-payment-row {
    grid-template-columns: 1fr;
  }

  .notification-actions {
    justify-content: flex-start;
  }

  .collection-list-item {
    grid-template-columns: 1fr;
  }

  .upload-grid {
    grid-template-columns: 1fr;
  }

  .floating-login {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 4;
    display: block;
  }
}

@media (max-width: 720px) {
  button,
  input,
  select,
  textarea {
    min-height: 44px;
    font-size: 16px;
  }

  .topbar,
  .searchbar,
  .categories,
  .page,
  footer {
    width: min(100% - 16px, 100%);
    margin-right: 8px;
    margin-left: 8px;
  }

  .brand {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    font-size: 20px;
  }

  nav,
  .categories,
  .cabinet-tabs,
  .realty-deal-tabs,
  .realty-room-pills,
  .jobs-mode-tabs,
  .jobs-quick-row,
  .jobs-period-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  nav button,
  .categories button,
  .cabinet-tab,
  .filter-chip,
  .jobs-mode {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(44px, 1fr));
    gap: 6px;
  }

  .top-icon-group {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(44px, 1fr));
  }

  .top-icon-button,
  .profile-avatar-button,
  .top-actions .publish-button,
  .top-actions > .ghost,
  .top-actions select {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .searchbar {
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 8px;
    padding-bottom: 10px;
  }

  .all-categories-button,
  .search-input-wrap,
  .searchbar > button[type="submit"] {
    grid-column: 1 / -1;
    width: 100%;
  }

  .category-mega-dropdown {
    position: fixed;
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: 1fr;
    gap: 16px;
    max-height: none;
    padding: 16px 14px 20px;
    border-radius: 16px;
  }

  .category-mega-sidebar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .category-mega-top {
    flex: 0 0 min(220px, 72vw);
  }

  .category-mega-columns {
    column-count: 1;
    column-gap: 0;
  }

  .category-mega-title {
    font-size: 28px;
  }

  .search-suggest-panel {
    position: fixed;
    left: 8px;
    right: 8px;
    top: 128px;
    max-height: min(58vh, 440px);
    overflow: auto;
  }

  .compose-panel,
  .favorites-panel,
  .orders-section,
  .billing-panel,
  .form-panel,
  .draft {
    padding: 14px;
  }

  .compose-head,
  .billing-head,
  .order-card-main,
  .collection-card-head,
  .chat-thread-head,
  .detail-section-head,
  .detail-head {
    flex-direction: column;
    align-items: stretch;
  }

  .compose-actions,
  .form-actions,
  .order-actions,
  .review-actions,
  .collection-actions,
  .payment-row,
  .jobs-search-actions,
  .detail-cta-row,
  .detail-inline-actions,
  .detail-contact-list > div {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .compose-actions button,
  .form-actions button,
  .order-actions button,
  .review-actions button,
  .collection-actions button,
  .jobs-search-actions button,
  .detail-cta-row button {
    width: 100%;
  }

  .compose-grid,
  .form-grid,
  .field-rules,
  .checkboxes,
  .billing-payment-row,
  .composer-promo-plan-grid,
  .composer-promo-settings,
  .composer-appearance-layout,
  .composer-payment-layout,
  .composer-qr-layout,
  .notification-settings-grid,
  .notification-delivery-row,
  .collection-list-item,
  .favorite-item,
  .jobs-search-grid,
  .jobs-suggestion-grid,
  .jobs-top-row,
  .jobs-top-row .jobs-suggestion-grid,
  .realty-filter-row,
  .realty-range,
  .chat-dialog-layout,
  .detail-layout,
  .detail-top-row,
  .detail-ad-grid {
    grid-template-columns: 1fr;
  }

  .uploaded-photo-list,
  .upload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cabinet-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cabinet-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .cabinet-card-main {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
  }

  .cabinet-card-photo {
    width: 82px;
    min-width: 82px;
  }

  .cabinet-card-actions {
    padding-left: 92px;
  }

  .list-card,
  .cards,
  .cards-list {
    grid-template-columns: 1fr;
  }

  .card-meta-row {
    padding-right: 0;
  }

  .compare-chip.inline {
    position: static;
    width: fit-content;
    margin-top: 6px;
  }

  .card-seller,
  .card-seller-box,
  .seller-badges-card,
  .card-action-stack {
    justify-items: start;
  }

  .card-seller-name,
  .card-seller-type,
  .card-seller-phone,
  .seller-trust-line {
    text-align: left;
  }

  .detail-overlay,
  .modal-backdrop,
  .realty-filter-backdrop {
    align-items: end;
    place-items: end stretch;
    padding: 0;
  }

  .detail-modal,
  .modal,
  .storefront-modal,
  .auth-modal,
  .picker-modal,
  .profile-modal,
  .realty-filter-modal,
  .jobs-filter-modal {
    width: 100%;
    max-height: 92dvh;
    border-radius: 14px 14px 0 0;
    overflow: auto;
  }

  .modal,
  .detail-head,
  .detail-body,
  .detail-description-card,
  .detail-purchase-card,
  .detail-seller-card,
  .detail-contact-card,
  .realty-filter-modal-head,
  .realty-filter-actions,
  .realty-filter-modal-body {
    padding: 14px;
  }

  .composer-promo-panel {
    padding: 14px 0;
  }

  .composer-promo-head {
    flex-direction: column;
  }

  .composer-promo-head h2 {
    font-size: 34px;
  }

  .composer-promo-tabs {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .composer-promo-plan {
    min-height: 170px;
  }

  .composer-promo-illustration {
    font-size: 48px;
  }

  .composer-appearance-option {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .composer-appearance-option b,
  .composer-appearance-option input {
    justify-self: start;
  }

  .composer-payment-total {
    margin-top: 24px;
  }

  .composer-qr-layout {
    margin: 18px 0;
  }

  .detail-title,
  .detail-head strong {
    font-size: 23px;
  }

  .detail-image {
    height: clamp(260px, 72vw, 420px);
  }

  .detail-thumbs {
    grid-auto-flow: column;
    grid-auto-columns: 74px;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .detail-side-column,
  .detail-info-sidebar {
    position: static;
    max-width: none;
  }

  .realty-filter-actions {
    position: sticky;
    bottom: 0;
    background: var(--white);
  }

  .realty-quick-filters select,
  .realty-filter-button {
    width: 100%;
  }

  .jobs-search-panel h2,
  .jobs-suggestion-board h2 {
    font-size: 24px;
  }

  .jobs-match-board {
    display: grid;
    width: 100%;
  }

  .jobs-match-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .chat-dialog-list {
    max-height: 240px;
  }

  .chat-list,
  .chat-list-panel {
    max-height: 42dvh;
  }

  .chat-item {
    max-width: 94%;
  }

  .chat-compose,
  .chat-compose-message {
    display: grid;
    grid-template-columns: 1fr;
  }

  .chat-compose-actions {
    display: grid;
    grid-template-columns: 44px 1fr;
  }

  .chat-attach-button {
    width: 44px;
    padding: 0;
  }

  .chat-widget {
    right: 8px;
    left: 8px;
    bottom: 8px;
    width: auto;
  }

  .chat-widget-dock {
    min-height: 48px;
    font-size: 18px;
  }

  .notification-channel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .top-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-icon-group {
    grid-template-columns: repeat(5, minmax(40px, 1fr));
  }

  .searchbar,
  .uploaded-photo-list,
  .upload-grid,
  .cabinet-summary-grid,
  .legal-section-list,
  .notification-channel-grid,
  .storefront-stats-grid,
  .cabinet-card-main {
    grid-template-columns: 1fr;
  }

  .search-suggest-panel {
    top: 170px;
  }

  .cabinet-card-photo {
    width: 100%;
  }

  .cabinet-card-actions {
    padding-left: 0;
  }

  .cabinet-action-menu-list {
    right: auto;
    left: 0;
  }

  .cabinet-card-photo img {
    aspect-ratio: 4 / 3;
  }

  .detail-title,
  .detail-head strong {
    font-size: 21px;
  }
}
