@import url('assets/fonts/Ubuntu-Regular.ttf');

:root {
    --ink: #20231f;
    --muted: #858a83;
    --line: #e9ebe6;
    --soft: #f6f7f3;
    --green: #c8f169;
    --green-dark: #a7d943;
    --white: #fff;
    --radius: 16px;
    --shadow: 0 12px 36px rgba(28, 36, 20, .06)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    /*font-family: Manrope, Arial, sans-serif;*/
    font-family: "Ubuntu", sans-serif;
    color: var(--ink);
    background: #fff;
    font-size: 14px
}

.site-logo {
    width: 65px;
}

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

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

button {
    cursor: pointer
}

.content-width {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto
}

.site-header {
    background: rgb(0 0 0 / 84%);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    padding: 15px 0;
    margin-bottom: 25px;
    box-shadow: 0 0 18px -5px black;
}

.head-search-line {
    width: calc(100% - 300px);
    display: flex;
    align-items: stretch;
}

.head-search-line input:focus {
    outline: none;
}

.s-btn {
    background: var(--green);
    border-radius: 0 10px 10px 0;
    border: 0;
    padding: 0 15px;
}

.head-search-line input {
    width: 100%;
    border: 1px solid var(--green);
    border-radius: 10px 0 0 10px;
    padding: 8px;
}

.top-nav a {
    color: white;
    font-weight: 400;
    font-size: 15px;
}

.top-nav a:hover {
    color: var(--green);
}

.header-inner {
    height: 100%;
    width: min(1320px, calc(100% - 48px));
    margin: auto;
    display: flex;
    align-items: center;
    gap: 48px
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -1.2px;
    white-space: nowrap;
    color: var(--green);
}

.brand-mark {
    width: 31px;
    height: 31px;
    border-radius: 10px;
    background: var(--green);
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 800;
    color: #252b1d
}

.brand-dot {
    color: #9acb3b
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    color: #777d75;
    font-size: 14px;
    font-weight: 600
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 22px
}

.header-link, .avatar-link {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    color: white
}

.icon {
    font-size: 20px;
    font-weight: 400
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e7eddc;
    display: grid;
    place-items: center;
    color: #54643d;
    font-size: 13px;
    font-weight: 800;
    flex: none
}

.avatar-small {
    width: 29px;
    height: 29px;
    font-size: 12px
}

.button {
    border: 0;
    border-radius: 10px;
    padding: 13px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 800;
    font-size: 14px;
    transition: .2s
}

.button-primary {
    background: var(--green);
    color: #22291b
}

.button-primary:hover {
    background: var(--green-dark);
    transform: translateY(-1px)
}

.button-outline {
    background: white;
    border: 1px solid #dfe3da;
    color: #343a31
}

.button-outline:hover {
    border-color: #a6c66b;
    background: #fbfdf7
}

.button-dark {
    background: #20251d;
    color: white
}

.button-dark:hover {
    background: #343c2e
}

.header-post {
    padding: 7px 15px
}

.mobile-menu {
    display: none;
    background: none;
    border: 0;
    font-size: 22px
}

.hero {
    background: #f4f7ed;
    overflow: hidden;
    position: relative
}

.hero-inner {
    width: min(1200px, calc(100% - 48px));
    margin: auto;
    min-height: 410px;
    padding: 64px 0 58px;
    position: relative
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 1.6px;
    font-weight: 800;
    color: #66734e
}

.eyebrow-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #a9d94d;
    margin-right: 7px
}

.hero h1 {
    font-size: 54px;
    line-height: 1.12;
    letter-spacing: -3px;
    margin: 20px 0 12px;
    font-weight: 800;
    max-width: 600px
}

.hero h1 span {
    color: #8da94f
}

.hero-copy {
    color: #777e71;
    font-size: 14px;
    margin: 0 0 26px
}

.search-panel {
    height: 64px;
    width: min(760px, 100%);
    background: #fff;
    border: 1px solid #e9ede2;
    box-shadow: 0 12px 30px rgba(47, 61, 29, .07);
    border-radius: 13px;
    display: flex;
    align-items: center;
    padding: 7px 8px 7px 19px;
    position: relative;
    z-index: 2
}

.search-symbol {
    font-size: 27px;
    color: #8b9580;
    margin-right: 12px
}

.search-panel input {
    border: 0;
    outline: 0;
    min-width: 0;
    flex: 1;
    color: var(--ink);
    font-size: 14px
}

.search-panel input::placeholder {
    color: #a2a79d
}

.search-divider {
    height: 28px;
    width: 1px;
    background: var(--line);
    margin: 0 16px
}

.pin-symbol {
    font-size: 20px;
    color: #92998b;
    margin-right: 8px
}

.search-panel .location-input {
    flex: 0 1 140px
}

.search-panel .button {
    height: 48px;
    min-width: 100px
}

.popular-searches {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 16px;
    color: #969b90;
    font-size: 13px
}

.popular-searches button {
    border: 0;
    background: none;
    padding: 0;
    color: #6d7564;
    font-size: 13px
}

.popular-searches button:hover {
    color: #20231f;
    text-decoration: underline
}

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(151, 179, 105, .22);
    border-radius: 50%;
    pointer-events: none
}

.orbit-one {
    width: 410px;
    height: 410px;
    right: 10px;
    top: -115px
}

.orbit-two {
    width: 300px;
    height: 300px;
    right: 65px;
    top: -60px
}

.hero-sticker {
    position: absolute;
    right: 115px;
    top: 115px;
    width: 116px;
    height: 116px;
    border-radius: 50%;
    background: var(--green);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    transform: rotate(10deg);
    box-shadow: 0 10px 30px rgba(124, 160, 53, .18)
}

.hero-sticker span {
    font-size: 24px;
    margin-top: 4px
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin: 25px 0 15px 0;
}

.section-heading h2 {
    font-size: 25px;
    letter-spacing: -1px;
    margin: 8px 0 0
}

.muted {
    color: #9aa092
}

.text-link {
    font-size: 14px;
    font-weight: 800;
    color: #667b43;
    white-space: nowrap
}

.text-link span {
    margin-left: 5px
}

.category-strip {
    padding-top: 56px;
    padding-bottom: 60px
}

.category-grid {
    display: grid;
    grid-template-columns:repeat(6, 1fr);
    gap: 12px;
    margin-top: 25px
}

.category-tile {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 17px 13px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    transition: .2s;
    min-height: 130px
}

.category-tile:hover, .category-tile.selected {
    border-color: #c4db91;
    background: #fbfdf6;
    transform: translateY(-2px)
}

.category-emoji {
    width: 39px;
    height: 39px;
    border-radius: 12px;
    background: #f2f4ed;
    display: grid;
    place-items: center;
    font-size: 20px;
    margin-bottom: 5px
}

.category-emoji.all {
    background: var(--green);
    font-size: 23px
}

.category-tile b {
    font-size: 13px
}

.category-tile small {
    font-size: 12px;
    color: #9a9f96
}

.catalog-section {
    padding: 5px 0 70px
}

.catalog-heading {
    margin-bottom: 27px
}

.section-subtitle {
    color: #969b92;
    font-size: 13px;
    margin: 8px 0 0
}

.sort-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #92978f;
    font-size: 13px
}

.sort-wrap select, .filter-group select {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 10px 30px 10px 11px;
    color: #3c4339;
    font-size: 13px;
    outline: 0
}

.catalog-layout {
    display: grid;
    grid-template-columns:220px 1fr;
    gap: 27px
}

.filters {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 17px;
    height: max-content
}

.filter-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px
}

.filter-title b {
    font-size: 14px
}

.filter-title button {
    border: 0;
    background: none;
    color: #87936d;
    font-size: 13px
}

.filter-group {
    padding-bottom: 18px;
    margin-bottom: 17px;
    border-bottom: 1px solid #f0f1ed
}

.filter-label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 11px
}

.filter-group select {
    width: 100%
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 7px
}

.price-inputs input {
    width: calc(50% - 10px);
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 8px;
    font-size: 13px;
    outline: 0
}

.price-inputs span {
    color: #a6aa9f
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666d62;
    font-size: 13px;
    margin: 9px 0
}

.check-row input {
    accent-color: #a5d34e
}

.filter-note {
    display: flex;
    gap: 10px;
    background: #f6f8f0;
    padding: 12px;
    border-radius: 10px
}

.filter-note > span {
    font-size: 18px;
    color: #8aa64e
}

.filter-note b {
    font-size: 13px
}

.filter-note p {
    font-size: 12px;
    line-height: 1.6;
    color: #92988b;
    margin: 5px 0 0
}

.results-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 14px;
    color: #858b80;
    font-size: 13px
}

.view-toggle {
    color: #6d795a
}

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

.ad-card {
    border: 1px solid var(--line);
    border-radius: 13px;
    overflow: hidden;
    background: #fff;
    transition: .2s;
    min-width: 0;
    position: relative
}

.ad-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: #dce5cd
}

.ad-image-wrap {
    height: 275px;
    position: relative;
    background: #f1f2ee;
    overflow: hidden
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s
}

.ad-card:hover .ad-image {
    transform: scale(1.04)
}

.ad-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    background: rgba(255, 255, 255, .92);
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800
}

.favorite-button {
    position: absolute;
    right: 9px;
    top: 9px;
    border: 0;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    font-size: 17px;
    color: #6f7669;
    display: grid;
    place-items: center
}

.favorite-button.active {
    color: #e36d6d
}

.ad-card-body {
    padding: 12px 13px 13px
}

.ad-price {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.4px
}

.ad-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    margin: 6px 0 8px;
    display: block;
    min-height: 33px
}

.ad-location {
    font-size: 12px;
    color: #969c91
}

.ad-date {
    float: right
}

.ad-card-foot {
    border-top: 1px solid #f0f1ed;
    margin-top: 11px;
    padding-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #a0a59b;
    font-size: 12px
}

.f8{
    font-size: 8px;
}

.f10{
    font-size: 10px;
}

.seller-mini {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e9efde;
    display: grid;
    place-items: center;
    font-size: 7px;
    color: #607446;
    font-weight: 800
}

.empty-state {
    text-align: center;
    padding: 55px 15px
}

.empty-state > div {
    font-size: 40px;
    color: #a4b57e
}

.empty-state h3 {
    font-size: 18px;
    margin: 8px
}

.empty-state p {
    font-size: 14px;
    color: #92988b;
    margin-bottom: 18px
}

.hidden {
    display: none !important
}

.promo {
    background: #eaf2dc;
    border-radius: 18px;
    margin-bottom: 68px;
    padding: 29px 35px;
    display: flex;
    align-items: center;
    gap: 23px
}

.promo-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--green);
    display: grid;
    place-items: center;
    font-size: 26px
}

.promo h2 {
    font-size: 20px;
    margin: 6px 0
}

.promo p {
    font-size: 13px;
    color: #79836b;
    margin: 0
}

.promo .button {
    margin-left: auto
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 23px 0;
    background: black;
    margin-top: 25px;
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 25px
}

.footer-inner .brand {
    font-size: 18px
}

.footer-inner .brand-mark {
    width: 26px;
    height: 26px;
    font-size: 18px
}

.footer-inner > span {
    font-size: 12px;
    color: #a1a69d
}

.footer-inner > div {
    margin-left: auto;
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #7e8578
}

.breadcrumbs {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #a1a69c;
    font-size: 13px;
    margin: 27px 0 19px
}

.breadcrumbs a {
    color: #71796b
}

.detail-topline {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #9ba095;
    font-size: 13px;
    margin-bottom: 17px
}

.plain-action {
    margin-left: auto;
    border: 0;
    background: none;
    color: #70796a;
    font-size: 13px
}

.detail-layout {
    display: grid;
    grid-template-columns:minmax(0, 1fr) 320px;
    gap: 35px
}

.gallery-main {
    height: 50vh;
    background: #f4f5f1;
    border-radius: 14px;
    overflow: hidden;
    position: relative
}

.gallery-main img {
    width: 100%;
    height: 50vh;
    object-fit: contain;
}

.photo-count {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 7px 10px;
    background: rgba(25, 29, 23, .68);
    color: white;
    border-radius: 7px;
    font-size: 13px
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    font-size: 24px;
    color: #333
}

.gallery-arrow.prev {
    left: 13px
}

.gallery-arrow.next {
    right: 13px
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 11px
}

.gallery-thumbs button {
    width: 83px;
    height: 62px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background: #eee
}

.gallery-thumbs button.active {
    border-color: #9dc94c
}

.gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.detail-description {
    padding: 28px 0 0
}

.detail-category {
    font-size: 13px;
    color: #81935e;
    font-weight: 800
}

.detail-description h1 {
    font-size: 28px;
    letter-spacing: -1.2px;
    margin: 8px 0 13px
}

.detail-meta {
    display: flex;
    gap: 18px;
    color: #969c91;
    font-size: 13px;
    padding-bottom: 23px;
    border-bottom: 1px solid var(--line)
}

.detail-description h3 {
    font-size: 14px;
    margin: 23px 0 10px
}

.detail-description > p {
    font-size: 14px;
    line-height: 1.9;
    color: #6f766b;
    max-width: 720px
}

.specs {
    display: grid;
    grid-template-columns:repeat(2, 1fr);
    gap: 0 28px;
    margin-top: 20px;
    max-width: 600px
}

.spec-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f0f1ed;
    padding: 11px 0;
    font-size: 13px
}

.spec-row span:first-child {
    color: #969c91
}

.spec-row b {
    font-weight: 700
}

.detail-bottom-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px
}

.seller-column {
    position: relative
}

.price-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    position: sticky;
    top: 95px
}

.detail-price {
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -1px
}

.price-caption {
    font-size: 12px;
    color: #a0a59b;
    margin: 4px 0 18px
}

.button-wide {
    width: 100%;
    margin-top: 9px
}

.seller-divider {
    height: 1px;
    background: var(--line);
    margin: 21px 0
}

.seller-head {
    display: flex;
    align-items: center;
    gap: 11px
}

.avatar-large {
    width: 43px;
    height: 43px
}

.seller-head b {
    display: block;
    font-size: 14px
}

.seller-status {
    display: block;
    font-size: 12px;
    color: #8c9484;
    margin-top: 4px
}

.seller-status i {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8ec64a;
    margin-right: 4px
}

.seller-rating {
    font-size: 13px;
    color: #e8b84d;
    margin: 14px 0 8px
}

.seller-rating span {
    color: #9ba095;
    font-size: 12px;
    margin-left: 6px
}

.seller-facts {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #9ba095;
    font-size: 12px
}

.seller-profile {
    display: inline-block;
    margin-top: 17px
}

.safety-card {
    margin-top: 14px;
    background: #f7f8f4;
    border-radius: 12px;
    padding: 17px
}

.safety-icon {
    font-size: 19px;
    color: #8fae58;
    display: block;
    margin-bottom: 9px
}

.safety-card b {
    font-size: 13px
}

.safety-card p {
    font-size: 12px;
    line-height: 1.7;
    color: #858d7d
}

.safety-card a {
    font-size: 12px;
    color: #758a4c;
    font-weight: 800
}

.similar-section {
    padding: 55px 0;
}

.similar-section .section-heading {
    margin-bottom: 20px
}

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

.similar-grid .ad-image-wrap {
    height: 135px
}

.account-main {
    padding-bottom: 65px
}

.account-welcome {
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding: 20px 0 26px
}

.account-welcome .breadcrumbs {
    margin: 0 0 20px
}

.account-welcome h1 {
    font-size: 30px;
    letter-spacing: -1.2px;
    margin: 7px 0
}

.account-welcome p {
    color: #92988e;
    font-size: 13px;
    margin: 0
}

.account-layout {
    display: grid;
    grid-template-columns:245px minmax(0, 1fr);
    gap: 25px;
    align-items: start
}

.account-sidebar {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 17px 13px;
    background: #fff
}

.account-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px 3px 20px;
    border-bottom: 1px solid var(--line)
}

.avatar-profile {
    width: 42px;
    height: 42px;
    font-size: 14px
}

.account-user b {
    display: block;
    font-size: 13px
}

.account-user div span {
    display: block;
    font-size: 12px;
    color: #a0a59b;
    margin-top: 4px
}

.more-button {
    margin-left: auto;
    border: 0;
    background: none;
    font-size: 19px;
    color: #9da398
}

.sidebar-label {
    font-size: 12px;
    letter-spacing: 1.3px;
    font-weight: 800;
    color: #a0a69b;
    margin: 21px 7px 9px
}

.sidebar-label-spaced {
    margin-top: 24px
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 3px
}

.account-nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 9px;
    border-radius: 8px;
    font-size: 13px;
    color: #737b6d;
    font-weight: 600
}

.account-nav-link > span {
    width: 17px;
    text-align: center;
    font-size: 15px;
    color: #929c85
}

.account-nav-link.active, .account-nav-link:hover {
    background: #f2f7e9;
    color: #42522d
}

.account-nav-link em {
    font-style: normal;
    margin-left: auto;
    background: #edf0e9;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 12px;
    color: #7d8576
}

.account-nav-link em.unread {
    background: #d9efae;
    color: #526a2c
}

.account-nav-link small {
    margin-left: auto
}

.help-link {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #f7f8f4;
    border-radius: 9px;
    padding: 12px 9px;
    margin-top: 25px
}

.help-link > span:first-child {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e7efd9;
    display: grid;
    place-items: center;
    color: #6f8b40;
    font-weight: 800
}

.help-link b {
    font-size: 12px;
    display: block
}

.help-link small {
    font-size: 12px;
    color: #9ca294
}

.help-arrow {
    margin-left: auto;
    color: #909b7d
}

.logout-link {
    display: block;
    color: #a27c75;
    font-size: 12px;
    padding: 7px;
    width: 100%;
    border-radius: 7px;
    border: 0;
}

.account-workspace {
    min-width: 0
}

.workspace-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 3px 0 20px
}

.workspace-top h2 {
    font-size: 20px;
    letter-spacing: -.6px;
    margin: 6px 0
}

.workspace-top p {
    font-size: 13px;
    color: #9ba095;
    margin: 0
}

.date-chip {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 11px;
    color: #8c9387;
    font-size: 12px
}

.stat-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 17px
}

.stat-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 17px;
    position: relative;
    overflow: hidden
}

.stat-card > span:first-child {
    display: block;
    color: #92988e;
    font-size: 12px
}

.stat-card > b {
    display: block;
    font-size: 26px;
    letter-spacing: -1px;
    margin: 9px 0 4px
}

.stat-card small {
    font-size: 12px;
    color: #a0a59b
}

.stat-green {
    font-style: normal;
    color: #80a943;
    font-weight: 800
}

.stat-icon {
    position: absolute;
    right: 15px;
    top: 13px;
    font-size: 20px;
    color: #d5e6b7
}

.workspace-card {
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 19px;
    margin-bottom: 15px
}

.card-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 17px
}

.card-heading h3 {
    font-size: 14px;
    margin: 0
}

.card-heading p {
    font-size: 12px;
    color: #9ba095;
    margin: 5px 0 0
}

.account-ad-list {
    display: flex;
    flex-direction: column
}

.account-ad-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #f0f1ed
}

.account-ad-row:first-child {
    border-top: 0
}

.account-ad-row img {
    width: 65px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f2ee
}

.account-ad-info {
    min-width: 0;
    flex: 1
}

.account-ad-info b {
    display: block;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.account-ad-info small {
    display: block;
    color: #9da398;
    font-size: 12px;
    margin-top: 6px
}

.account-ad-price {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap
}

.status-pill {
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 20px;
    background: #edf6df;
    color: #718c43;
    white-space: nowrap
}

.status-pill.review {
    background: #fff3dd;
    color: #b38a3f
}

.row-more {
    border: 0;
    background: none;
    color: #9ca294;
    font-size: 17px
}

.quick-actions {
    padding-bottom: 17px
}

.quick-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 10px
}

.quick-grid a {
    border: 1px solid #edf0e8;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

.quick-grid a > span {
    font-size: 20px;
    color: #91b44d;
    margin-bottom: 9px
}

.quick-grid b {
    font-size: 12px
}

.quick-grid small {
    font-size: 12px;
    color: #9ca294;
    margin-top: 5px;
    line-height: 1.5
}

.ad-tabs {
    display: flex;
    gap: 17px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 5px
}

.ad-tabs button {
    border: 0;
    background: none;
    padding: 0 0 11px;
    color: #92988e;
    font-size: 12px
}

.ad-tabs button.active {
    color: #485b2e;
    border-bottom: 2px solid #a9d64f;
    font-weight: 800
}

.ad-tabs span {
    margin-left: 4px;
    color: #a1a69d
}

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

.favorites-grid .ad-image-wrap {
    height: 120px
}

.empty-inline {
    text-align: center;
    color: #9ba095;
    padding: 40px 10px;
    font-size: 13px
}

.message-list {
    display: flex;
    flex-direction: column
}

.message-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    border-top: 1px solid #f0f1ed
}

.message-row:first-child {
    border-top: 0
}

.message-copy {
    flex: 1;
    min-width: 0
}

.message-copy b {
    font-size: 13px
}

.message-copy b i {
    font-style: normal;
    color: #7b9e43;
    font-size: 12px;
    margin-left: 6px
}

.message-copy p {
    font-size: 12px;
    color: #6f776b;
    margin: 5px 0
}

.message-copy small {
    font-size: 12px;
    color: #a2a79e
}

.message-unread {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #dff0be;
    color: #627e37;
    display: grid;
    place-items: center;
    font-size: 12px
}

.avatar-alt {
    background: #e4eaf4;
    color: #65748d
}

.avatar-warm {
    background: #f4e9df;
    color: #94745e
}

.profile-form {
    display: grid;
    grid-template-columns:repeat(2, 1fr);
    gap: 15px
}

.profile-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 12px;
    font-weight: 800;
    color: #646c5e
}

.profile-form input, .profile-form select, .profile-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    outline: 0;
    font-size: 13px;
    font-weight: 500;
    color: #41483d;
    background: white
}

.profile-form input:focus, .profile-form textarea:focus {
    border-color: #b5d67b
}

.profile-form > button {
    justify-self: start
}

.full-field {
    grid-column: 1/-1
}

.upload-field {
    border: 1px dashed #d7dfca;
    border-radius: 9px;
    padding: 17px;
    color: #7c9256 !important
}

.upload-field input {
    border: 0;
    padding: 8px 0 0
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 0;
    border-top: 1px solid #f0f1ed
}

.setting-row b {
    font-size: 13px
}

.setting-row p {
    font-size: 12px;
    color: #9ba095;
    margin: 5px 0 0
}

.verified {
    font-size: 12px;
    color: #77994b
}

.switch {
    position: relative;
    width: 35px;
    height: 20px;
    flex: none
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0
}

.switch span {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: #e5e8e0;
    cursor: pointer;
    transition: .2s
}

.switch span:before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: .2s
}

.switch input:checked + span {
    background: #a8d650
}

.switch input:checked + span:before {
    transform: translateX(15px)
}

.button-small {
    padding: 9px 12px;
    font-size: 12px
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    background: #252b21;
    color: white;
    border-radius: 9px;
    padding: 12px 18px;
    font-size: 13px;
    z-index: 50;
    transition: .25s;
    box-shadow: var(--shadow)
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0)
}

@media (max-width: 1050px) {
    .header-inner {
        gap: 25px
    }

    .top-nav {
        gap: 17px
    }

    .header-actions {
        gap: 13px
    }

    .category-grid {
        grid-template-columns:repeat(3, 1fr)
    }

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

    .detail-layout {
        grid-template-columns:minmax(0, 1fr) 285px;
        gap: 22px
    }

    .account-layout {
        grid-template-columns:215px minmax(0, 1fr)
    }
}

@media (max-width: 760px) {
    .content-width, .hero-inner {
        width: calc(100% - 32px)
    }

    .site-header {
        height: 65px
    }

    .header-inner {
        width: calc(100% - 32px)
    }

    .top-nav, .header-actions {
        display: none
    }

    .mobile-menu {
        display: block;
        margin-left: auto
    }

    .hero-inner {
        min-height: 385px;
        padding: 48px 0
    }

    .hero h1 {
        font-size: 43px
    }

    .hero-orbit, .hero-sticker {
        opacity: .35;
        right: -160px
    }

    .search-panel {
        height: auto;
        min-height: 58px;
        flex-wrap: wrap;
        padding: 8px 9px
    }

    .search-panel input {
        font-size: 13px
    }

    .search-divider, .pin-symbol, .location-input {
        display: none
    }

    .search-panel .button {
        min-width: 75px;
        height: 42px;
        padding: 8px
    }

    .popular-searches {
        gap: 10px;
        flex-wrap: wrap
    }

    .category-strip {
        padding: 38px 0
    }

    .category-grid {
        grid-template-columns:repeat(2, 1fr);
        gap: 9px
    }

    .category-tile {
        min-height: 115px;
        padding: 13px
    }

    .section-heading h2 {
        font-size: 22px
    }

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

    .filters {
        display: grid;
        grid-template-columns:1fr 1fr;
        gap: 10px
    }

    .filter-title {
        grid-column: 1/-1;
        margin: 0
    }

    .filter-group {
        margin: 0;
        padding: 0;
        border: 0
    }

    .filter-note {
        display: none
    }

    .ad-grid {
        gap: 10px
    }

    .ad-image-wrap {
        height: 135px
    }

    .ad-card-body {
        padding: 10px
    }

    .ad-title {
        font-size: 13px
    }

    .ad-price {
        font-size: 14px
    }

    .ad-location {
        font-size: 12px
    }

    .promo {
        padding: 22px;
        flex-wrap: wrap;
        gap: 14px
    }

    .promo .button {
        margin-left: 0
    }

    .promo p {
        line-height: 1.6
    }

    .footer-inner {
        flex-wrap: wrap
    }

    .footer-inner > span {
        order: 3;
        width: 100%
    }

    .footer-inner > div {
        gap: 12px
    }

    .detail-main {
        width: calc(100% - 32px)
    }

    .detail-layout {
        grid-template-columns:1fr
    }

    .gallery-main {
        height: 300px
    }

    .seller-column {
        order: -1
    }

    .price-card {
        position: static
    }

    .seller-column {
        display: grid;
        grid-template-columns:1fr;
        gap: 10px
    }

    .safety-card {
        display: none
    }

    .detail-description h1 {
        font-size: 23px
    }

    .detail-meta {
        flex-wrap: wrap;
        gap: 10px
    }

    .account-welcome {
        align-items: flex-start;
        gap: 15px;
        flex-direction: column
    }

    .account-welcome h1 {
        font-size: 26px
    }

    .account-layout {
        grid-template-columns:1fr
    }

    .account-sidebar {
        padding: 12px
    }

    .account-user {
        padding-bottom: 12px
    }

    .sidebar-label, .sidebar-label-spaced, .account-nav:not(:first-of-type), .help-link, .logout-link {
        display: none
    }

    .account-nav {
        display: grid;
        grid-template-columns:repeat(4, 1fr);
        gap: 3px;
        margin-top: 12px
    }

    .account-nav-link {
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        padding: 9px 3px;
        font-size: 12px
    }

    .account-nav-link > span {
        font-size: 16px
    }

    .account-nav-link em, .account-nav-link small {
        display: none
    }

    .workspace-top {
        align-items: flex-start;
        gap: 10px
    }

    .workspace-top h2 {
        font-size: 17px
    }

    .date-chip {
        white-space: nowrap
    }

    .stat-grid {
        gap: 7px
    }

    .stat-card {
        padding: 11px
    }

    .stat-card > b {
        font-size: 21px
    }

    .stat-card > span:first-child {
        font-size: 12px
    }

    .stat-card small {
        font-size: 11px
    }

    .stat-icon {
        display: none
    }

    .workspace-card {
        padding: 14px
    }

    .quick-grid {
        grid-template-columns:1fr
    }

    .quick-grid a {
        padding: 11px
    }

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

    .favorites-grid .ad-image-wrap {
        height: 105px
    }

    .profile-form {
        grid-template-columns:1fr
    }

    .full-field {
        grid-column: auto
    }

    .account-ad-row {
        gap: 8px
    }

    .account-ad-row img {
        width: 52px;
        height: 45px
    }

    .account-ad-info b {
        font-size: 12px
    }

    .account-ad-price {
        font-size: 12px
    }

    .status-pill {
        font-size: 11px;
        padding: 4px 6px
    }

    .row-more {
        display: none
    }

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

@media (max-width: 390px) {
    .ad-grid {
        grid-template-columns:1fr 1fr
    }

    .ad-image-wrap {
        height: 112px
    }

    .ad-card-foot {
        font-size: 12px
    }

    .sort-wrap label {
        display: none
    }

    .stat-card small {
        display: none
    }

    .detail-bottom-actions {
        flex-direction: column
    }

    .detail-bottom-actions .button {
        width: 100%
    }
}

/* Yii2 integration additions */
.flash-message {
    max-width: 1280px;
    margin: 14px auto;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px
}

.flash-success {
    background: #edf8e8;
    color: #315d24
}

.flash-error, .form-error {
    background: #fff0ed;
    color: #9a3526;
    padding: 12px 14px;
    border-radius: 9px;
    margin: 12px 0
}

.footer-logout {
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0 8px
}

.pagination-wrap {
    margin-top: 28px
}

.pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0
}

.pagination li a, .pagination li span {
    display: block;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: inherit;
    text-decoration: none
}

.pagination li.active a {
    background: #d9f36a;
    border-color: #d9f36a
}

.auth-main {
    min-height: 65vh;
    display: grid;
    place-items: center;
    padding: 55px 20px
}

.auth-card {
    width: min(100%, 480px);
    padding: 38px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 15px 45px #17200d0b
}

.auth-card h1 {
    font-size: 32px;
    margin: 10px 0 24px
}

.auth-card > p {
    margin-top: 20px;
    color: #6f756c
}

.auth-card a {
    color: #465d13
}

.auth-card .profile-form {
    display: grid;
    gap: 17px
}

.auth-card .profile-form label, .modal-box label {
    display: grid;
    gap: 7px;
    font-size: 14px;
    font-weight: 700
}

.auth-card input, .modal-box textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 13px;
    font: inherit
}

.auth-card .button {
    width: 100%;
    justify-content: center
}

.profile-form .full-field {
    grid-column: 1/-1
}

.profile-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 13px;
    font: inherit;
    resize: vertical
}

.profile-form select, .profile-form input {
    min-width: 0
}

.gallery-thumbs button {
    cursor: pointer
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: #1119;
    display: grid;
    place-items: center;
    z-index: 1000;
    padding: 20px
}

.modal-backdrop.hidden {
    display: none
}

.modal-box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    width: min(100%, 480px)
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    border: 0;
    background: none;
    font-size: 26px;
    cursor: pointer
}

.modal-box textarea {
    min-height: 110px;
    margin: 8px 0 16px
}

.chat-card {
    max-width: 850px;
    margin: 35px auto
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 0;
    min-height: 240px
}

.chat-bubble {
    max-width: 75%;
    padding: 13px 16px;
    border-radius: 13px;
    background: #f3f4ef
}

.chat-bubble.mine {
    align-self: flex-end;
    background: #e8f5c5
}

.chat-bubble p {
    margin: 0 0 6px
}

.chat-bubble small {
    color: #7b8175
}

.chat-form {
    display: flex;
    gap: 12px;
    align-items: flex-end
}

.chat-form textarea {
    flex: 1;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 12px;
    font: inherit
}

.message-row {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    color: inherit;
    text-decoration: none
}

.message-row:hover {
    background: #fafbf7
}

.message-copy {
    flex: 1
}

.message-copy p {
    margin: 4px 0;
    color: #777
}

.message-copy small {
    color: #888
}

.category-tile {
    text-decoration: none;
    color: inherit
}

.favorite-button {
    cursor: pointer
}

.favorite-button.active {
    color: #d44
}

.seller-column {
    align-self: start
}

.price-card {
    position: relative;
    top: auto
}

.account-ad-row .row-more {
    border: 0;
    background: none;
    color: inherit;
    text-decoration: none;
    font-size: 20px
}

.sort-wrap select {
    font: inherit;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px
}

.empty-state {
    padding: 45px;
    text-align: center
}

.hidden {
    display: none !important
}

@media (max-width: 700px) {
    .auth-card {
        padding: 25px
    }

    .chat-form {
        flex-direction: column
    }

    .chat-form .button {
        width: 100%
    }

    .flash-message {
        margin: 10px
    }
}

/* Дополнительные состояния форм и кабинета */
.listing-form-card {
    padding: 28px
}

.listing-form {
    gap: 18px
}

.listing-form label {
    font-size: 13px
}

.listing-form input, .listing-form select, .listing-form textarea {
    font-size: 14px;
    padding: 13px
}

.field-optional {
    font-size: 12px;
    font-weight: 500;
    color: #a0a69a
}

.upload-hint {
    font-size: 12px;
    font-weight: 500;
    color: #92998c;
    line-height: 1.5
}

.current-photos > b {
    display: block;
    font-size: 13px;
    margin-bottom: 10px
}

.current-photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.current-photo-grid img {
    width: 90px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line)
}

.current-photos > small {
    display: block;
    color: #92998c;
    font-size: 12px;
    margin-top: 8px
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 5px
}

.form-actions .button {
    min-width: 145px
}

.form-error ul {
    margin: 5px 0 0;
    padding-left: 20px
}

.auth-card .profile-form label {
    font-size: 13px
}

.auth-card .profile-form input {
    font-size: 14px
}

.account-ad-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-top: 1px solid #f0f1ed
}

.account-ad-row:first-of-type {
    border-top: 0
}

.account-ad-row img {
    width: 66px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px
}

.account-ad-info {
    flex: 1;
    min-width: 0
}

.account-ad-info b {
    display: block;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.account-ad-info small {
    display: block;
    font-size: 12px;
    color: #9ba095;
    margin-top: 5px
}

.account-ad-price {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap
}

.status-pill {
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 20px;
    background: #edf6df;
    color: #607e32;
    white-space: nowrap
}

.status-pill.status-pending {
    background: #fff5dc;
    color: #94712a
}

.status-pill.status-closed {
    background: #f0f1ed;
    color: #777
}

.account-nav-link em {
    font-style: normal
}

.listing-form .button:focus-visible, .auth-card input:focus-visible {
    outline: 2px solid #a7d943;
    outline-offset: 2px
}

@media (max-width: 760px) {
    .listing-form-card {
        padding: 16px
    }

    .form-actions {
        flex-direction: column-reverse
    }

    .form-actions .button {
        width: 100%
    }

    .account-ad-row {
        flex-wrap: wrap
    }

    .account-ad-info {
        min-width: calc(100% - 90px)
    }

    .account-ad-price {
        margin-left: 80px
    }

    .status-pill {
        margin-left: auto
    }
}

.mt-15 {
    margin-top: 15px;
}

.listing-toolbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* ===== Homepage redesign: charcoal + lime palette from the header ===== */
:root {
    --home-black: #171914;
    --home-lime: #c8f169;
    --home-lime-dark: #a7d943;
    --home-paper: #f7f8f4;
    --home-muted: #777d71;
}

body {
    background: #fff;
}

.site-header {
    margin-bottom: 0;
}

.home-redesign {
    overflow: hidden;
}

.home-hero {
    background: var(--home-black);
    color: #fff;
    position: relative;
    isolation: isolate;
}

.home-hero:before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 650px;
    height: 650px;
    border: 1px solid rgba(200, 241, 105, .13);
    border-radius: 50%;
    right: -100px;
    top: -330px;
}

.home-hero-inner {
    min-height: 480px;
    position: relative;
    padding-top: 76px;
    padding-bottom: 26px;
}

.home-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #89917d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.65px;
}

.home-kicker i {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    background: var(--home-lime);
}

.home-hero h1 {
    margin: 23px 0 12px;
    font-size: clamp(48px, 6vw, 76px);
    line-height: .99;
    letter-spacing: -4px;
    font-weight: 800;
    color: #fff;
}

.home-hero h1 em, .hero-art-card-main em {
    color: var(--home-lime);
    font-style: normal;
}

.home-hero-copy > p {
    color: #a6ab9e;
    font-size: 15px;
    margin: 0 0 27px;
}

.home-search {
    width: min(620px, 100%);
    height: 62px;
    padding: 7px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 13px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, .22);
}

.home-search-icon {
    color: #92998b;
    font-size: 28px;
    line-height: 1;
    padding-left: 10px;
}

.home-search input {
    min-width: 0;
    flex: 1;
    height: 100%;
    border: 0;
    outline: 0;
    color: #242820;
    font-size: 14px;
    background: transparent;
}

.home-search input::placeholder {
    color: #a2a79d;
}

.home-search button {
    height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 9px;
    background: var(--home-lime);
    color: #20251a;
    font-weight: 800;
    transition: .2s;
}

.home-search button:hover, .home-cta-button:hover {
    background: var(--home-lime-dark);
    transform: translateY(-2px);
}

.home-search button span {
    margin-left: 10px;
    font-size: 17px;
}

.home-search-hint {
    display: flex;
    gap: 17px;
    align-items: center;
    margin: 15px 0 0 3px;
    color: #737a6c;
    font-size: 12px;
}

.home-search-hint a {
    color: #c5cbbd;
    border-bottom: 1px solid #51574b;
    padding-bottom: 2px;
}

.home-search-hint a:hover {
    color: var(--home-lime);
    border-color: var(--home-lime);
}

.home-hero-art {
    position: absolute;
    width: 410px;
    height: 360px;
    right: 20px;
    top: 65px;
}

.hero-art-ring {
    position: absolute;
    border: 1px solid rgba(200, 241, 105, .18);
    border-radius: 50%;
}

.hero-art-ring-one {
    width: 340px;
    height: 340px;
    right: 10px;
    top: 0;
}

.hero-art-ring-two {
    width: 250px;
    height: 250px;
    right: 55px;
    top: 45px;
}

.hero-art-card {
    position: absolute;
    border-radius: 20px;
}

.hero-art-card-back {
    width: 190px;
    height: 245px;
    right: 18px;
    top: 32px;
    padding: 20px;
    transform: rotate(9deg);
    background: #30352b;
    border: 1px solid #454c3c;
    color: #7e8970;
    display: flex;
    justify-content: space-evenly;
    font-size: 10px;
    letter-spacing: 2px;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    align-content: space-around;
}

.hero-art-card-back b {
    color: var(--home-lime);
    font-size: 23px;
}

.hero-art-card-main {
    width: 215px;
    height: 270px;
    left: 28px;
    top: 46px;
    padding: 25px;
    transform: rotate(-7deg);
    background: var(--home-lime);
    color: #20251a;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .28);
    display: flex;
    flex-direction: column;
}

.hero-art-card-main strong {
    margin-top: 28px;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-art-card-main em {
    color: #617c31;
}

.hero-art-card-main small {
    margin-top: auto;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #596d36;
}

.hero-art-spark {
    font-size: 25px;
}

.hero-art-chip {
    position: absolute;
    right: 0;
    bottom: 20px;
    z-index: 2;
    padding: 12px 16px;
    border: 1px solid #444b3c;
    border-radius: 30px;
    background: #22271e;
    color: var(--home-lime);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.hero-art-chip span {
    color: #e5e9df;
    font-size: 11px;
    margin-left: 7px;
}

.home-hero-bottom {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    color: #737a6c;
    font-size: 9px;
    letter-spacing: 1.7px;
    font-weight: 700;
}

.home-hero-bottom b {
    color: var(--home-lime);
    font-size: 15px;
    margin-left: 8px;
}

.home-categories {
    padding-top: 72px;
    padding-bottom: 58px;
}

.home-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 25px;
}

.home-section-head h2 {
    margin: 10px 0 7px;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--home-black);
}

.home-section-head p {
    margin: 0;
    color: #92988d;
    font-size: 13px;
}

.home-all-link {
    white-space: nowrap;
    color: #667b43;
    font-size: 13px;
    font-weight: 800;
    padding-bottom: 4px;
}

.home-all-link span {
    color: #849e50;
    margin-left: 8px;
    font-size: 17px;
}

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

.home-category-card {
    min-height: 125px;
    padding: 18px 19px;
    border: 1px solid #e9ebe5;
    border-radius: 14px;
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform .22s, border-color .22s, background .22s, box-shadow .22s;
}

.home-category-card:hover {
    transform: translateY(-4px);
    border-color: #c9df9b;
    background: #fbfdf7;
    box-shadow: 0 14px 32px rgba(35, 45, 24, .07);
}

.home-category-symbol {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 12px;
    background: #f0f4e7;
    color: #718b40;
    font-size: 22px;
    font-weight: 500;
}

.home-category-name {
    margin-top: 15px;
    padding-right: 22px;
    color: #272b23;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.home-category-arrow {
    position: absolute;
    right: 17px;
    bottom: 17px;
    color: #a6b68b;
    font-size: 17px;
    transition: .2s;
}

.home-category-card:hover .home-category-arrow {
    color: #6e8e36;
    transform: translate(2px, -2px);
}

.home-category-empty {
    padding: 25px;
    color: #8d9486;
    background: var(--home-paper);
    border-radius: 12px;
}

.home-fresh {
    padding-top: 25px;
    padding-bottom: 50px;
}

.home-fresh-head {
    margin-bottom: 25px;
}

.home-ad-grid {
    gap: 18px;
}

.home-ad-grid .ad-card {
    border-radius: 15px;
    border-color: #eaede6;
    box-shadow: 0 4px 18px rgba(24, 30, 18, .025);
}

.home-ad-grid .ad-card:hover {
    border-color: #d3e4b5;
    box-shadow: 0 15px 35px rgba(24, 30, 18, .09);
}

.home-ad-grid .ad-image-wrap {
    height: 190px;
    background: #f1f3ec;
}

.home-ad-grid .ad-card-body {
    padding: 15px 16px 16px;
}

.home-ad-grid .ad-price {
    color: #20251a;
    font-size: 18px;
}

.home-ad-grid .ad-title {
    color: #30352c;
    font-size: 14px;
    min-height: 42px;
}

.home-ad-grid .ad-card-foot {
    border-color: #eff1eb;
}

.home-empty {
    margin: 10px 0 25px;
    padding: 55px 20px;
    border: 1px dashed #dfe5d4;
    border-radius: 16px;
    text-align: center;
    background: #fbfcf9;
}

.home-empty > span {
    color: #8eaa55;
    font-size: 28px;
}

.home-empty h3 {
    margin: 10px 0 5px;
    font-size: 20px;
}

.home-empty p {
    color: #8b9285;
    margin: 0 0 18px;
}

.home-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 14px 19px;
    border-radius: 10px;
    background: var(--home-lime);
    color: #20251a;
    font-weight: 800;
    font-size: 13px;
    transition: .2s;
}

.home-cta-button b {
    font-size: 17px;
}

.home-promo {
    min-height: 245px;
    margin-top: 20px;
    margin-bottom: 65px;
    padding: 38px 45px;
    border-radius: 20px;
    background: var(--home-black);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 28px;
    position: relative;
    overflow: hidden;
}

.home-promo-mark {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: #656d50;
    color: #22271c;
    font-size: 39px;
    font-weight: 800;
}

.home-promo-copy {
    position: relative;
    z-index: 1;
}

.home-promo-copy .home-kicker {
    color: #8f9882;
}

.home-promo-copy h2 {
    margin: 10px 0;
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: -1px;
}

.home-promo-copy p {
    max-width: 430px;
    margin: 0;
    color: #a4aa9a;
    font-size: 13px;
    line-height: 1.7;
}

.home-promo .home-cta-button {
    margin-left: auto;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.home-promo-decoration {
    position: absolute;
    right: 180px;
    top: -75px;
    color: rgba(200, 241, 105, .07);
    font-size: 280px;
    line-height: 1;
    pointer-events: none;
}

@media (max-width: 900px) {
    .home-hero-art {
        right: -75px;
        opacity: .55;
    }

    .home-hero-copy {
        max-width: 590px;
    }

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

@media (max-width: 700px) {
    .home-hero-inner {
        min-height: 425px;
        padding-top: 58px;
    }

    .home-hero-art {
        width: 230px;
        height: 220px;
        right: -70px;
        top: 185px;
        opacity: .23;
        transform: scale(.8);
        transform-origin: top right;
    }

    .home-hero h1 {
        font-size: 54px;
        letter-spacing: -3px;
    }

    .home-hero-copy > p {
        max-width: 300px;
        font-size: 13px;
        line-height: 1.6;
    }

    .home-search {
        height: 57px;
        gap: 7px;
    }

    .home-search button {
        padding: 0 13px;
    }

    .home-search-hint {
        gap: 11px;
        flex-wrap: wrap;
    }

    .home-hero-bottom {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .home-categories {
        padding-top: 48px;
        padding-bottom: 35px;
    }

    .home-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .home-section-head h2 {
        font-size: 27px;
    }

    .home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .home-category-card {
        min-height: 112px;
        padding: 14px;
    }

    .home-category-name {
        font-size: 13px;
    }

    .home-fresh {
        padding-top: 10px;
    }

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

    .home-ad-grid .ad-image-wrap {
        height: 135px;
    }

    .home-ad-grid .ad-card-body {
        padding: 11px;
    }

    .home-ad-grid .ad-title {
        font-size: 12px;
    }

    .home-promo {
        padding: 25px 22px;
        min-height: 0;
        flex-wrap: wrap;
        gap: 17px;
        margin-bottom: 40px;
    }

    .home-promo-mark {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        font-size: 30px;
    }

    .home-promo-copy {
        flex: 1;
        min-width: 190px;
    }

    .home-promo-copy h2 {
        font-size: 25px;
    }

    .home-promo-copy p {
        font-size: 12px;
    }

    .home-promo .home-cta-button {
        margin: 5px 0 0;
        width: 100%;
    }
}

@media (max-width: 390px) {
    .home-hero h1 {
        font-size: 47px;
    }

    .home-ad-grid {
        grid-template-columns: 1fr;
    }

    .home-ad-grid .ad-image-wrap {
        height: 190px;
    }
}

/* =========================================================
   Главная: обновлённые категории и карточки объявлений
   ========================================================= */
.home-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-category-card {
    min-height: 112px;
    padding: 19px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    border: 1px solid #e9ece4;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(28, 36, 20, .025);
    text-decoration: none;
}

.home-category-card:hover {
    transform: translateY(-3px);
    border-color: #c9df9b;
    background: #fcfdf9;
    box-shadow: 0 13px 30px rgba(35, 45, 24, .075);
}

.home-category-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #566b36;
    background: #f0f5e6;
    transition: background .2s, color .2s, transform .2s;
}

.home-category-icon svg {
    width: 26px;
    height: 26px;
}

.home-category-card:hover .home-category-icon {
    color: #27311c;
    background: var(--home-lime, #c8f169);
    transform: scale(1.04);
}

.home-category-content {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 7px;
}

.home-category-name {
    margin: 0;
    padding: 0;
    color: #252a21;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.home-category-caption {
    color: #a0a697;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1px;
}

.home-category-arrow {
    position: static;
    align-self: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #899779;
    background: #f6f8f2;
    font-size: 15px;
    transition: .2s;
}

.home-category-card:hover .home-category-arrow {
    color: #252a21;
    background: var(--home-lime, #c8f169);
    transform: translate(1px, -1px);
}

/* Объявления */
.home-ad-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.home-ad-grid .ad-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #e9ece5;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 16px rgba(24, 30, 18, .035);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.home-ad-grid .ad-card:hover {
    transform: translateY(-4px);
    border-color: #d4e3bd;
    box-shadow: 0 16px 34px rgba(24, 30, 18, .10);
}

.ad-card-image-link {
    display: block;
    color: inherit;
}

.home-ad-grid .ad-image-wrap {
    height: auto;
    aspect-ratio: 1.48 / 1;
    position: relative;
    overflow: hidden;
    background: #f1f3ed;
}

.home-ad-grid .ad-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

.home-ad-grid .ad-card:hover .ad-image {
    transform: scale(1.055);
}

.home-ad-grid .ad-badge {
    left: 13px;
    top: 13px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 8px;
    color: #333b29;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15px;
}

.home-ad-grid .favorite-button {
    z-index: 2;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    color: #555d4c;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
    font-size: 21px;
    line-height: 1;
    transition: transform .2s, color .2s, background .2s;
}

.home-ad-grid .favorite-button:hover {
    transform: scale(1.08);
}

.home-ad-grid .favorite-button.active {
    color: #e05d68;
}

.home-ad-grid .ad-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 17px 18px 15px;
}

.ad-card-topline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.home-ad-grid .ad-price {
    color: #20251a;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.65px;
}

.home-ad-grid .ad-date {
    float: none;
    flex: 0 0 auto;
    color: #a4aa9e;
    font-size: 11px;
    font-weight: 500;
}

.home-ad-grid .ad-title {
    display: -webkit-box;
    min-height: 44px;
    margin: 9px 0 13px;
    overflow: hidden;
    color: #30352c;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-ad-grid .ad-title:hover {
    color: #617d35;
}

.home-ad-grid .ad-location {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin-top: auto;
    color: #92998c;
    font-size: 11px;
}

.home-ad-grid .ad-location svg,
.home-ad-grid .ad-views svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-ad-grid .ad-location span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-ad-grid .ad-card-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #f0f2ec;
    color: #858d7d;
    font-size: 11px;
}

.home-ad-grid .seller-mini {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    border-radius: 50%;
    color: #586d37;
    background: #edf3e3;
    font-size: 10px;
    font-weight: 800;
}

.ad-seller-name {
    min-width: 0;
    overflow: hidden;
    color: #737c6a;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ad-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    color: #a0a697;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 700px) {
    .home-category-grid {
        gap: 10px;
    }

    .home-category-card {
        min-height: 90px;
        padding: 13px;
        gap: 11px;
        border-radius: 14px;
    }

    .home-category-icon {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
        border-radius: 13px;
    }

    .home-category-icon svg {
        width: 22px;
        height: 22px;
    }

    .home-category-name {
        font-size: 12px;
    }

    .home-category-caption {
        font-size: 10px;
    }

    .home-category-arrow {
        width: 25px;
        height: 25px;
        font-size: 13px;
    }

    .home-ad-grid {
        gap: 12px;
    }

    .home-ad-grid .ad-image-wrap {
        height: auto;
        aspect-ratio: 1.25 / 1;
    }

    .home-ad-grid .ad-card-body {
        padding: 12px;
    }

    .home-ad-grid .ad-price {
        font-size: 17px;
    }

    .home-ad-grid .ad-title {
        min-height: 38px;
        margin: 7px 0 10px;
        font-size: 12px;
    }

    .home-ad-grid .ad-card-foot {
        margin-top: 11px;
        padding-top: 9px;
    }
}

@media (max-width: 390px) {
    .home-category-card {
        gap: 9px;
        padding: 11px 9px;
    }

    .home-category-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .home-category-caption {
        display: none;
    }

    .home-category-arrow {
        width: 22px;
        height: 22px;
    }

    .home-ad-grid {
        grid-template-columns: 1fr;
    }

    .home-ad-grid .ad-image-wrap {
        aspect-ratio: 1.55 / 1;
    }
}


/* Two-column messenger */
.messenger-page {
    padding-bottom: 48px;
}

.messenger-breadcrumbs {
    margin-bottom: 18px;
}

.messenger-shell {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    min-height: 650px;
    max-height: 760px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 12px 38px rgba(31, 40, 24, .06);
}

.messenger-sidebar {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border-right: 1px solid var(--line);
    background: #fff;
}

.messenger-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 22px 18px;
    border-bottom: 1px solid var(--line);
}

.messenger-sidebar-head h1 {
    margin: 5px 0 0;
    font-size: 25px;
    letter-spacing: -.7px;
}

.messenger-count {
    display: inline-flex;
    min-width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 20px;
    background: #f0f3e9;
    color: #65734e;
    font-size: 12px;
    font-weight: 700;
}

.messenger-conversation-list {
    overflow-y: auto;
}

.messenger-conversation {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid #f0f1ed;
    color: inherit;
    text-decoration: none;
    transition: background .18s ease;
}

.messenger-conversation:hover {
    background: #f8faf4;
}

.messenger-conversation.active {
    background: #f1f6e8;
    box-shadow: inset 3px 0 #a8ce55;
}

.messenger-avatar {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
}

.messenger-conversation-body {
    display: block;
    min-width: 0;
    flex: 1;
}

.messenger-conversation-top {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.messenger-conversation-top strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.messenger-conversation-top time {
    flex: 0 0 auto;
    color: #92978c;
    font-size: 11px;
}

.messenger-listing-title, .messenger-preview {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.messenger-listing-title {
    margin-top: 4px;
    color: #78816b;
    font-size: 11px;
}

.messenger-preview {
    margin-top: 5px;
    color: #858a80;
    font-size: 12px;
}

.messenger-dialog {
    display: flex;
    min-width: 0;
    flex-direction: column;
    background: #fbfcf9;
}

.messenger-dialog-head {
    display: flex;
    min-height: 82px;
    gap: 13px;
    align-items: center;
    padding: 14px 22px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.messenger-avatar-large {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
}

.messenger-dialog-person {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.messenger-dialog-person strong {
    font-size: 15px;
}

.messenger-dialog-person span {
    color: #92978c;
    font-size: 12px;
}

.messenger-listing-link {
    display: flex;
    max-width: 230px;
    flex-direction: column;
    gap: 4px;
    margin-left: auto;
    padding-left: 16px;
    border-left: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
}

.messenger-listing-link span {
    color: #92978c;
    font-size: 11px;
}

.messenger-listing-link strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.messenger-messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 13px;
    overflow-y: auto;
    max-height: 52vh;
    padding: 24px clamp(16px, 4vw, 42px);
}

.messenger-message-row {
    display: flex;
    width: 100%;
}

.messenger-message-row.mine {
    justify-content: flex-end;
}

.messenger-message-row.theirs {
    justify-content: flex-start;
}

.messenger-message {
    max-width: min(76%, 560px);
    padding: 11px 15px 8px;
    border: 1px solid #e9ece3;
    border-radius: 15px 15px 15px 4px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(30, 40, 20, .025);
}

.messenger-message-row.mine .messenger-message {
    border-color: #e4edcf;
    border-radius: 15px 15px 4px 15px;
    background: #edf5df;
}

.messenger-message p {
    margin: 0;
    color: #343a2e;
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.messenger-message time {
    display: block;
    margin-top: 5px;
    color: #969b90;
    font-size: 10px;
    text-align: right;
}

.messenger-compose {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    padding: 16px 20px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.messenger-compose textarea {
    display: block;
    min-height: 46px;
    max-height: 130px;
    flex: 1;
    resize: vertical;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcf9;
    color: inherit;
    font: inherit;
    font-size: 14px;
}

.messenger-compose textarea:focus {
    outline: 2px solid rgba(168, 206, 85, .28);
    border-color: #a8ce55;
}

.messenger-compose .button {
    min-height: 46px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.messenger-welcome, .messenger-list-empty, .messenger-no-messages {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.messenger-welcome {
    flex: 1;
    padding: 35px;
}

.messenger-welcome-icon, .messenger-empty-icon {
    display: flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #f0f5e6;
    color: #829d4b;
    font-size: 27px;
}

.messenger-welcome h2 {
    margin: 20px 0 8px;
    font-size: 22px;
}

.messenger-welcome p, .messenger-list-empty p, .messenger-no-messages p {
    max-width: 330px;
    margin: 0;
    color: #858b7d;
    font-size: 13px;
    line-height: 1.6;
}

.messenger-list-empty {
    gap: 12px;
    padding: 34px 22px;
}

.messenger-list-empty strong, .messenger-no-messages strong {
    font-size: 14px;
}

.messenger-list-empty .button {
    margin-top: 5px;
}

.messenger-no-messages {
    flex: 1;
    gap: 10px;
    color: #7e8c69;
}

.messenger-no-messages > span {
    font-size: 26px;
}

@media (max-width: 820px) {
    .messenger-shell {
        grid-template-columns: 285px minmax(0, 1fr);
        min-height: 620px;
    }

    .messenger-sidebar-head {
        padding-right: 16px;
        padding-left: 16px;
    }

    .messenger-conversation {
        padding-right: 12px;
        padding-left: 12px;
    }

    .messenger-dialog-head {
        padding-right: 15px;
        padding-left: 15px;
    }

    .messenger-listing-link {
        max-width: 150px;
    }
}

@media (max-width: 620px) {
    .messenger-shell {
        display: flex;
        min-height: 600px;
        max-height: none;
    }

    .messenger-sidebar {
        width: 100%;
        min-height: 600px;
        border-right: 0;
    }

    .messenger-dialog {
        display: none;
    }

    .messenger-shell:has(.messenger-dialog .messenger-compose) .messenger-sidebar {
        display: none;
    }

    .messenger-shell:has(.messenger-dialog .messenger-compose) .messenger-dialog {
        display: flex;
        width: 100%;
        min-height: 600px;
    }

    .messenger-message {
        max-width: 88%;
    }

    .messenger-compose {
        gap: 8px;
        padding: 12px;
    }

    .messenger-compose .button {
        padding-right: 13px;
        padding-left: 13px;
    }

    .messenger-compose .button span:first-child {
        display: none;
    }

    .messenger-listing-link {
        max-width: 115px;
    }
}

/* Меню категорий в фильтре /listings */
.category-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.category-menu a {
    display: block;
    padding: 9px 11px;
    border-radius: 8px;
    color: #5a6350;
    font-size: 13px;
    font-weight: 500;
    transition: background .15s, color .15s;
}

.category-menu a:hover {
    background: #f4f7ec;
    color: #3d4a2a;
}

.category-menu a.active {
    background: #eaf3d8;
    color: #3d4a2a;
    font-weight: 700;
}

/* Каскад категорий на /listing/create */
.category-path {
    font-size: 13px;
    color: #4a5340;
    padding: 7px 0;
    min-height: 20px;
}

.category-cascade {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.category-cascade select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    font-size: 13px;
    background: #fff;
    color: #41483d;
    outline: 0;
}

.category-cascade select:focus {
    border-color: #b5d67b;
}

/* ===== Выбор категории карточками на /listing/create ===== */
.cat-picker {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    margin-top: 6px;
}

.cat-picker .cat-path {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 24px;
    margin-bottom: 14px;
    font-size: 13px;
}

.cat-picker .cat-path .crumb {
    color: #667b43;
    cursor: pointer;
    padding: 4px 9px;
    border-radius: 7px;
    background: #f2f7e9;
    border: 0;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    transition: .15s;
}

.cat-picker .cat-path .crumb:hover {
    background: #e6efd6;
}

.cat-picker .cat-path .sep {
    color: #b9c0b1;
}

.cat-picker .cat-path .current {
    color: #3a422e;
    font-weight: 700;
    padding: 4px 9px;
    background: #f6f7f3;
    border-radius: 7px;
}

.cat-picker .cat-path .empty {
    color: #858a83;
    font-style: italic;
}

/* Поиск */
.cat-search {
    position: relative;
    margin-bottom: 14px;
}

.cat-search input {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: 11px;
    padding: 12px 40px 12px 40px;
    font: inherit;
    font-size: 14px;
    outline: 0;
    transition: border-color .15s, box-shadow .15s;
    background: #fcfdf9;
}

.cat-search input:focus {
    border-color: var(--green-dark);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(200, 241, 105, .25);
}

.cat-search .ico {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa393;
    font-size: 16px;
    pointer-events: none;
}

.cat-search .clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: #eef0e8;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    color: #6d7564;
    font-size: 14px;
    display: none;
    align-items: center;
    justify-content: center;
}

.cat-search.has-value .clear {
    display: flex;
}

/* Результаты поиска */
.search-results {
    display: none;
    margin-bottom: 4px;
}

.search-results.open {
    display: block;
}

.search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    border: 1px solid transparent;
    transition: .15s;
    text-align: left;
    font: inherit;
    width: 100%;
}

.search-result:hover {
    background: #f6f9ee;
    border-color: #d8e6bd;
}

.search-result .sr-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    background: #f0f5e6;
    color: #566b36;
    border-radius: 9px;
    font-weight: 800;
    font-size: 14px;
}

.search-result .sr-body {
    min-width: 0;
    flex: 1;
}

.search-result .sr-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #252a21;
    margin-bottom: 2px;
}

.search-result .sr-path {
    display: block;
    font-size: 11px;
    color: #9aa192;
}

.search-result mark {
    background: #e6f4c8;
    color: #2f3d1c;
    border-radius: 3px;
    padding: 0 2px;
}

.search-empty {
    padding: 16px;
    color: #8a9083;
    font-size: 13px;
    text-align: center;
    background: #fafbf7;
    border-radius: 10px;
}

/* Сетка карточек */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (min-width: 560px) {
    .cat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.cat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font: inherit;
    transition: transform .15s, border-color .15s, background .15s, box-shadow .15s;
    position: relative;
    min-height: 68px;
}

.cat-card:hover {
    border-color: #c9df9b;
    background: #fcfdf9;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(35, 45, 24, .06);
}

.cat-card.selected {
    border-color: var(--green-dark);
    background: #f7fce9;
    box-shadow: 0 0 0 3px rgba(200, 241, 105, .35);
}

.cat-card.selected::after {
    content: "✓";
    position: absolute;
    top: 8px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--green-dark);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
}

.cat-card .cat-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #f0f5e6;
    color: #566b36;
    font-size: 18px;
    font-weight: 800;
}

.cat-card:hover .cat-icon,
.cat-card.selected .cat-icon {
    background: var(--green);
    color: #27311c;
}

.cat-card .cat-body {
    min-width: 0;
    flex: 1;
}

.cat-card .cat-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #252a21;
    line-height: 1.3;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cat-card .cat-meta {
    display: block;
    font-size: 11px;
    color: #a0a697;
}

.cat-card .chev {
    color: #b8c2ab;
    font-size: 18px;
    flex: 0 0 auto;
}

/* Карточки подкатегорий на /listings */
.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

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

@media (max-width: 480px) {
    .subcategory-grid {
        grid-template-columns: 1fr;
    }
}

.subcategory-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 11px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
    min-height: 60px;
}

.subcategory-card:hover {
    border-color: #c9df9b;
    background: #fcfdf9;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(35, 45, 24, .06);
}

.subcategory-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #f0f5e6;
    color: #566b36;
    font-size: 15px;
    font-weight: 800;
}

.subcategory-card:hover .subcategory-icon {
    background: var(--green);
    color: #27311c;
}

.subcategory-body {
    min-width: 0;
    flex: 1;
}

.subcategory-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #252a21;
    line-height: 1.3;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subcategory-meta {
    display: block;
    font-size: 11px;
    color: #a0a697;
}

.subcategory-chev {
    color: #b8c2ab;
    font-size: 18px;
    flex: 0 0 auto;
}

.geo-city{
    color: white;
    cursor: pointer;
}