@font-face {
    font-family: 'Source Sans Pro';
    src: url('/fonts/source-sans-pro/sourcesanspro-regular.woff') format('woff');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Source Sans Pro';
    src: url('/fonts/source-sans-pro/sourcesanspro-semibold.woff') format('woff');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Source Sans Pro';
    src: url('/fonts/source-sans-pro/sourcesanspro-bold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

:root {
    --slate: #364347;
    --yellow: #fad46b;
    --sky: #02baf2;
    --red: #f84545;
    --muted: #5e6969;
    --hint: #9aa7aa;
    --line: #d6e1e5;
    --bg: #ffffff;
    --bg-soft: #eef3f4;
    --radius: 6px;
    --maxw: 1100px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Manrope', 'Source Sans Pro', Helvetica, Arial, sans-serif;
    color: var(--slate);
    background: var(--bg);
    line-height: 1.5;
}

a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 16px;
}

main.container { padding-top: 20px; padding-bottom: 40px; }

/* header */
.site-header { background: var(--slate); }
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand__logo { width: 36px; height: auto; }
.brand__text { font-size: 22px; font-weight: 600; }
.brand__sub { font-size: 13px; font-weight: 400; color: #b2c6cd; margin-left: 4px; }

.site-header__user { display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 8px; color: #cfdadd; font-size: 14px; }
.user-chip:hover { text-decoration: none; color: #fff; }
.user-chip__avatar { border-radius: 50%; }
.logout-form { margin: 0; }

/* footer */
.site-footer {
    background: var(--bg-soft);
    color: var(--hint);
    font-size: 13px;
    padding: 14px 0;
    margin-top: 40px;
}

/* buttons */
.btn {
    display: inline-block;
    border: none;
    border-radius: var(--radius);
    padding: 8px 14px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    background: var(--sky);
    color: #fff;
}
.btn:hover { text-decoration: none; opacity: .92; }
.btn--ghost {
    background: rgba(255, 255, 255, .1);
    color: #cfdadd;
    font-weight: 400;
}
.btn--lg { padding: 11px 24px; font-size: 16px; }

/* forms */
.form { max-width: 640px; margin: 24px auto; }
.form__title { font-size: 24px; font-weight: 700; margin: 0 0 20px; }
.form__row { margin-bottom: 18px; }
.form__label { display: block; font-weight: 600; margin-bottom: 6px; }
.form__req { color: var(--red); }

.form__control {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--bg);
    color: var(--slate);
    font: inherit;
    transition: border-color .15s;
}
.form__control::placeholder { color: var(--hint); }
.form__control:focus { outline: none; border-color: var(--sky); }
textarea.form__control { min-height: 120px; resize: vertical; }

.form__hint { display: block; margin-top: 6px; color: var(--hint); font-size: 13px; }
.form__error { display: block; margin-top: 6px; color: var(--red); font-size: 13px; }

.form__photos { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.form__photo { position: relative; display: block; width: 100px; height: 100px; border-radius: 6px; overflow: hidden; background: var(--bg-soft); }
.form__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.form__photo-remove {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center; gap: 4px;
    padding: 4px 6px; font-size: 12px; color: #fff;
    background: rgba(0, 0, 0, .55); cursor: pointer;
}
.form__photo-remove input { accent-color: var(--red); }

/* tags */
.pill {
    display: inline-block;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg-soft);
    color: var(--muted);
}
.pill:hover { text-decoration: none; background: var(--sky); color: #fff; }
.pill--category { background: var(--yellow); color: var(--slate); }
.pill--category:hover { background: var(--yellow); color: var(--slate); opacity: .9; }
.pill--active { background: var(--sky); color: #fff; }

/* wall header: breadcrumb + search on one line */
.wall-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.wall-header .breadcrumb { flex: 1 1 auto; margin: 0; min-width: 0; }
.wall-search {
    position: relative;
    flex: 0 1 320px;
    min-width: 220px;
}
.wall-search__icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #a88cd5;
    pointer-events: none;
    display: inline-flex;
}
.wall-search__icon svg { width: 100%; height: 100%; display: block; }
.wall-search__input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px 10px 38px;
    font-size: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
}
.wall-search__input:focus { outline: none; border-color: #a88cd5; }

/* wall filter */
.wall-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.wall-tags__select,
.wall-tags .ts-wrapper { flex: 1 1 320px; min-width: 240px; }
.wall-tags__reset { font-size: 13px; color: var(--muted); }

/* axis chips */
.wall-axis-chips {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.wall-axis-chips__row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}
.wall-axis-chips__label {
    flex: 0 0 auto;
    min-width: 110px;
    padding: 5px 0;
    font-size: 13px;
    color: var(--muted);
}
.wall-axis-chips__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.wall-axis-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg);
    color: var(--slate);
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
}
.wall-axis-chip:hover { border-color: var(--sky); }
.wall-axis-chip.is-active {
    background: var(--sky);
    border-color: var(--sky);
    color: #fff;
}
.wall-axis-chip__count {
    font-size: 11px;
    color: var(--muted);
}
.wall-axis-chip.is-active .wall-axis-chip__count { color: rgba(255, 255, 255, 0.85); }

/* tom-select flat theme */
.ts-wrapper { font: inherit; }
.ts-control {
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 5px 8px;
    background: var(--bg);
    color: var(--slate);
    box-shadow: none;
}
.ts-wrapper.focus .ts-control { border-color: var(--sky); box-shadow: none; }
.ts-control input::placeholder { color: var(--hint); }
.ts-control .item {
    background: var(--yellow);
    color: var(--slate);
    border: none;
    border-radius: 4px;
    padding: 2px 6px;
}
.ts-control .item .remove { border: none; color: var(--slate); opacity: .6; }
.ts-control .item .remove:hover { background: transparent; opacity: 1; }
.ts-dropdown {
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    margin-top: 4px;
}
.ts-dropdown .active { background: var(--sky); color: #fff; }

/* breadcrumb */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb__sep { margin: 0 6px; color: var(--line); }

.page-title { font-size: 24px; font-weight: 600; margin: 0 0 16px; }
.empty { color: var(--muted); }

/* wall list */
.wall-list {
    column-count: 2;
    column-gap: 10px;
}

.wall-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    background: var(--bg);
    break-inside: avoid;
    margin-bottom: 10px;
}
.source-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: var(--slate);
    border-radius: 4px;
    vertical-align: middle;
    text-decoration: none;
    opacity: .55;
    transition: opacity .15s ease;
}
.source-badge:hover { opacity: 1; }
.specs__value--source { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.wall-row__image {
    display: block;
    margin: -12px -14px 0;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
}
.wall-row__image img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.wall-row__main { flex: 1; min-width: 0; }
.wall-row__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.wall-row__title { font-size: 17px; font-weight: 600; color: var(--slate); }
.wall-row__title:hover { color: var(--sky); }
.wall-row__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0; }
.wall-row__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--hint); }
.wall-row__media { color: var(--sky); }
.wall-row__price {
    background: var(--yellow);
    color: var(--slate);
    font-weight: 600;
    font-size: 16px;
    padding: 8px 14px;
    border-radius: var(--radius);
    white-space: nowrap;
}

/* pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    justify-content: flex-end;
}
.pagination li a {
    display: inline-block;
    padding: 3px 9px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--muted);
    font-size: 13px;
}
.pagination li a:hover { text-decoration: none; border-color: var(--sky); color: var(--sky); }
.pagination li.active a { background: var(--sky); border-color: var(--sky); color: #fff; }
.wall-list + .pagination { margin-top: 16px; }

@media (max-width: 600px) {
    .wall-list { column-count: 1; }
    .pagination { justify-content: flex-start; }
}

/* item detail */
.item-detail { max-width: 1040px; }
.item-detail__title { font-size: 26px; font-weight: 700; margin: 0 0 8px; }
.item-detail__meta { display: flex; gap: 14px; font-size: 13px; color: var(--hint); margin-bottom: 10px; }
.item-detail__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.item-detail__description { font-size: 16px; margin: 20px 0; }
.item-detail__description img { max-width: 100%; height: auto; }

/* фото-карусель с лайтбоксом */
.gallery { position: relative; margin: 12px 0 16px; }
.gallery__stage {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--bg-soft);
    border-radius: var(--radius);
    overflow: hidden;
}
.gallery__slide {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    background: var(--bg-soft);
    opacity: 0;
    transition: opacity .15s;
    cursor: zoom-in;
    pointer-events: none;
}
.gallery__slide--active { opacity: 1; pointer-events: auto; }
.gallery__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%;
    background: rgba(0, 0, 0, .45); color: #fff;
    font-size: 24px; line-height: 1; cursor: pointer;
    z-index: 2;
}
.gallery__nav:hover { background: rgba(0, 0, 0, .65); }
.gallery__nav--prev { left: 10px; }
.gallery__nav--next { right: 10px; }
.gallery__thumbs {
    display: flex; gap: 6px;
    margin-top: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 4px;
}
.gallery__thumb {
    flex: 0 0 64px;
    width: 64px; height: 64px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: var(--bg-soft);
    padding: 0; cursor: pointer;
    overflow: hidden;
}
.gallery__thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.gallery__thumb--active { border-color: var(--sky); }

.gallery__lightbox {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, .92);
    display: flex; align-items: center; justify-content: center;
    z-index: 100;
}
.gallery__lightbox[hidden] { display: none; }
.gallery__full {
    max-width: 92vw; max-height: 92vh;
    object-fit: contain;
    display: block;
}
.gallery__close {
    position: absolute; top: 16px; right: 16px;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .15); color: #fff;
    font-size: 20px; line-height: 1; cursor: pointer;
    z-index: 2;
}
.gallery__close:hover { background: rgba(255, 255, 255, .3); }
.gallery__counter {
    position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: 14px;
    background: rgba(0, 0, 0, .4);
    padding: 4px 10px; border-radius: 12px;
}

.item-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
    align-items: start;
}
.item-detail__main { min-width: 0; }
.item-detail__aside { position: sticky; top: 16px; }

.contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
    margin-top: 14px;
}
.contacts__btn { width: 100%; text-align: center; }
.contacts__btn--author { padding: 11px 14px; font-size: 15px; }
.contacts__hint { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.contacts .phone,
.contacts__row { display: flex; gap: 8px; align-items: center; }
.contacts .phone .btn,
.contacts__row .btn { flex: 1; min-width: 0; width: auto; }
.contacts .phone__number {
    flex: 1; min-width: 0;
    display: inline-flex; align-items: center; justify-content: center;
    height: 40px; padding: 0 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 18px; font-weight: 600;
    color: var(--slate);
}
.contacts [hidden] { display: none !important; }
.contacts .phone__copy,
.contacts__row .phone__copy { width: 40px; height: 40px; flex: 0 0 40px; }

.specs {
    list-style: none;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
    font-size: 14px;
}
.specs__row {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
}
.specs__row:last-child { border-bottom: 0; }
.specs__icon { width: 18px; height: 18px; color: var(--hint); }
.specs__label { color: var(--muted); }
.specs__value { color: var(--slate); font-weight: 600; text-align: right; }
a.specs__value { color: var(--sky); font-weight: 600; }

@media (max-width: 800px) {
    .item-detail__layout { grid-template-columns: minmax(0, 1fr); }
    .item-detail__aside { position: static; }
}

.embeds { margin: 20px 0; }
.embeds iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: var(--radius);
}

.item-detail__price {
    display: inline-block;
    background: var(--yellow);
    color: var(--slate);
    font-weight: 700;
    font-size: 22px;
    padding: 10px 18px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}
.phone { display: inline-flex; align-items: center; gap: 8px; }
.phone__number { font-size: 20px; font-weight: 600; color: var(--slate); }
.phone__copy {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border: 1px solid var(--line); border-radius: 6px;
    background: var(--bg); color: var(--muted);
    cursor: pointer;
    transition: color .15s, border-color .15s;
}
.phone__copy:hover { color: var(--sky); border-color: var(--sky); }
.phone__copy svg { width: 16px; height: 16px; }
.phone__copy--ok { color: #1f9d57; border-color: #1f9d57; }

.promo { background: var(--red); color: #fff; font-size: 13px; }
.promo .container { padding-top: 6px; padding-bottom: 6px; }

/* login */
.login-page { max-width: 420px; margin: 48px auto; }
.login-box__title { font-size: 22px; font-weight: 600; text-align: center; margin: 0 0 16px; }
.login-box__error { color: var(--red); text-align: center; margin: 0 0 12px; }

.login-providers { display: flex; flex-direction: column; gap: 12px; }
.login-provider {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--bg); color: var(--slate); font-weight: 600;
}
.login-provider:hover { background: var(--bg-soft); color: var(--slate); text-decoration: none; }
.login-provider__icon {
    width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 4px; font-size: 13px; font-weight: 700; color: #fff;
}
.login-provider__icon--yandex { background: #fc3f1d; }
.login-provider__icon--vk { background: #07f; font-size: 11px; }
.login-provider__icon--telegram { background: #29a3e0; }
.login-provider--btn { width: 100%; font: inherit; cursor: pointer; }
.login-tg { display: flex; flex-direction: column; gap: 8px; }
.login-tg__status { margin: 0; font-size: 13px; color: var(--muted, #6b7280); text-align: center; }
.login-tg__link { margin-left: 6px; }
.login-passkey { margin-top: 4px; text-align: center; }

/* profile */
.profile { max-width: 640px; margin: 0 auto; }
.profile__admin-link { display: inline-block; margin: 0 0 16px; }
.profile__flash { margin: 0 0 12px; }
.profile__flash--ok { color: #1f9d57; }
.profile__flash--err { color: var(--red); }

.profile-section { margin-top: 28px; }
.profile-section__title { font-size: 18px; font-weight: 600; margin: 0 0 12px; }

.profile-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.profile-list__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-top: 1px solid var(--line);
}
.profile-list__row:first-child { border-top: none; }
.profile-list__row--empty { color: var(--muted); justify-content: flex-start; }
.profile-list__name { display: flex; flex-direction: column; font-weight: 600; }
.profile-list__sub { font-weight: 400; font-size: 13px; color: var(--hint); }
.profile-list__aside { display: flex; align-items: center; gap: 12px; }
.profile-list__aside form { margin: 0; }

.badge {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg-soft);
    color: var(--muted);
}
.badge--ok { background: #e3f6ec; color: #1f9d57; }

.link-btn {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    color: var(--sky);
    cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }
.link-btn--danger { color: var(--red); }

/* modal */
.modal[hidden] { display: none; }
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1000;
}
.modal__backdrop { position: absolute; inset: 0; background: rgba(54, 67, 71, .6); }
.modal__dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px 24px 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}
.modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: none;
    background: none;
    font-size: 26px;
    line-height: 1;
    color: var(--hint);
    cursor: pointer;
}
.modal__close:hover { color: var(--slate); }

/* profile tabs */
.profile-tabs__nav {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
}
.profile-tabs__tab {
    border: none;
    background: none;
    font: inherit;
    font-weight: 600;
    color: var(--muted);
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.profile-tabs__tab:hover { color: var(--slate); }
.profile-tabs__tab.is-active { color: var(--slate); border-bottom-color: var(--sky); }
.profile-tabs__panel > .profile-section:first-child { margin-top: 8px; }

.profile-items__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.profile-items__head .profile-section__title { margin: 0; }
.profile-item { display: flex; flex-direction: column; gap: 6px; }
.profile-item__actions {
    display: flex;
    gap: 14px;
    padding-left: 2px;
}
.profile-item__actions form { margin: 0; }

/* notifications */
.profile-section__hint { color: var(--muted); font-size: 14px; margin: 8px 0 14px; }
.notifications-form { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.notifications-toggle { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.notifications-group { border: 1px solid var(--line, #e2e8f0); border-radius: 10px; padding: 12px 14px; margin: 0; }
.notifications-group legend { padding: 0 6px; font-weight: 600; }
.notifications-options { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.notifications-options--scroll { max-height: 220px; overflow-y: auto; }
.notifications-option { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.notifications-unlink { margin-top: 16px; }
.notifications-unlink form, .notifications-form { margin: 0; }

/* messages */
.messages-link { position: relative; color: #cfdadd; font-size: 14px; }
.messages-link:hover { color: #fff; text-decoration: none; }
.messages-link .badge { background: var(--sky); color: #fff; margin-left: 6px; }

.thread-list { display: flex; flex-direction: column; gap: 8px; margin: 20px 0; }
.thread-list__item {
    display: flex; flex-direction: column; gap: 2px;
    padding: 12px 14px; border-radius: var(--radius); background: var(--bg-soft);
    color: inherit;
}
.thread-list__item:hover { text-decoration: none; background: #eef3f5; }
.thread-list__top { display: flex; justify-content: space-between; gap: 12px; }
.thread-list__name { font-weight: 600; }
.thread-list__time { font-size: 12px; color: var(--hint); }
.thread-list__item-title { font-size: 13px; color: var(--muted); }
.thread-list__preview { font-size: 14px; color: var(--muted); }

.thread { max-width: 640px; margin: 24px auto; }
.thread__head { margin-bottom: 16px; }
.thread__messages { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.msg { max-width: 75%; padding: 8px 12px; border-radius: 12px; background: var(--bg-soft); }
.msg--mine { align-self: flex-end; background: var(--sky); color: #fff; }
.msg__time { display: block; font-size: 11px; opacity: .7; margin-top: 4px; }
.msg-form { display: flex; flex-direction: column; gap: 10px; }
.msg-form textarea { width: 100%; min-height: 80px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }

.item-message-form { display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.item-message-form textarea { width: 100%; min-height: 70px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }

/* Комментарии под объявлением */
.comments { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.comments__title { font-size: 1.25rem; margin: 0; }
.comments__error { color: var(--danger, #c0392b); margin: 0; }
.comments__empty { color: var(--muted, #777); margin: 0; }
.comments__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.comment { display: flex; gap: 12px; }
.comment__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.comment__avatar--initial { display: inline-flex; align-items: center; justify-content: center; background: var(--line, rgba(127,127,127,.25)); color: var(--ink, #333); font-weight: 700; }
.comment__body { flex: 1 1 auto; min-width: 0; }
.comment__head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.comment__author { font-weight: 600; }
.comment__date { color: var(--muted, #999); font-size: .85rem; }
.comment__text { margin-top: 2px; overflow-wrap: anywhere; }
.comment-form { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.comment-form__input { width: 100%; min-height: 70px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }
.comment-form .btn { align-self: flex-start; }

/* Разделы в шапке — выпадающий список */
.site-nav { position: relative; display: flex; align-items: center; margin-right: 20px; }
.site-nav__trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0; border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: inherit; font-weight: 600;
  color: var(--ink, #fff); opacity: .85; white-space: nowrap;
}
.site-nav__trigger:hover,
.site-nav__trigger.is-active,
.site-nav__trigger[aria-expanded="true"] { color: var(--accent-bright, #f2c572); opacity: 1; }
.site-nav__chevron { transition: transform .15s ease; }
.site-nav__trigger[aria-expanded="true"] .site-nav__chevron { transform: rotate(180deg); }
.site-nav__menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 70;
  min-width: 200px; padding: 6px; display: flex; flex-direction: column; gap: 2px;
  border-radius: 10px; background: var(--panel);
  box-shadow: 0 12px 30px rgba(0,0,0,.45), inset 0 0 0 1px var(--line-2);
}
.site-nav__menu[hidden] { display: none; }
/* Невидимый «мостик» перекрывает зазор между кнопкой и меню, чтобы курсор не
   покидал .site-nav по дороге к пунктам и меню не закрывалось преждевременно. */
.site-nav__menu::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.site-nav__item {
  display: block; padding: 9px 12px; border-radius: 7px;
  color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none;
}
.site-nav__item:hover { background: var(--accent-soft); color: var(--accent-bright); text-decoration: none; }
.site-nav__item.is-active { color: var(--accent-bright); }
@media (max-width: 720px) { .site-nav { display: none; } }

/* Каталоги студий и магазинов */
.place-filters { display: flex; flex-direction: column; gap: 16px; }
.place-filters__select,
.place-filters__search {
    width: 100%; padding: 8px 10px; font: inherit; color: inherit;
    background: transparent; border: 1px solid var(--line, rgba(127,127,127,.35));
    border-radius: var(--radius);
}
.place-filters__checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.place-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.place-check input { margin: 0; }
.place-filters__actions { display: flex; align-items: center; gap: 14px; }

.place-row__contacts a { color: var(--accent-bright, var(--sky)); }

.place-detail { max-width: 720px; }
.place-detail__head { display: flex; align-items: center; gap: 16px; margin: 10px 0 4px; }
.place-detail__logo { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; }
.place-row__header { display: flex; align-items: center; gap: 10px; }
.place-row__logo { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; flex: none; }
.place-detail__title { font-size: 24px; font-weight: 700; margin: 0 0 6px; }
.place-detail__addr { color: var(--muted); }
.place-detail__section { margin-top: 22px; }
.place-detail__section h2 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.place-detail__contacts { display: flex; flex-wrap: wrap; gap: 16px; }
.place-detail__contacts a { color: var(--accent-bright, var(--sky)); }
.place-detail__locations { display: flex; flex-direction: column; gap: 12px; }
.place-location { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.place-location__addr { flex: 1 1 240px; }
.place-location__phones { display: flex; flex-wrap: wrap; gap: 16px; }
.place-location__phones a { color: var(--accent-bright, var(--sky)); }

.phone { display: inline-flex; align-items: center; gap: 6px; }
.op { font-size: 9px; font-weight: 700; line-height: 1; padding: 3px 5px; border-radius: 4px; white-space: nowrap; letter-spacing: .01em; }
.op--a1 { background: #ff0028; color: #fff; }
.op--mts { background: #e2231a; color: #fff; }
.op--life { background: #8dc63f; color: #17330a; }
