/* Стили публичной страницы shared-подборки /s/{token} (#273)
   и UI избранного на витрине тенанта (#274). */

/* ===== Кнопка ★ «в подборку» на карточках/деталке (#274) ===== */
.fav-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* #302: убирает 300ms tap delay и неоднозначность touch vs scroll на iOS. */
    touch-action: manipulation;
}
.fav-btn[aria-pressed="true"] {
    color: #ffb800;
    border-color: #ffb800;
}
.fav-btn:hover { color: #ffb800; border-color: #ffb800; }
/* Вариант кнопки поверх фото карточки — позиционирует родитель card-img-wrap. */
.fav-btn--corner {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.card-img-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Inline-кнопка внутри карточки — полноширинная, явная (#289).
   Размещается под адресом, не overlay. */
.fav-btn--inline {
    width: 100%;
    border-radius: 10px;
    height: auto;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-sec, #4B5563);
    background: var(--bg-filter, var(--bg-subtle, #fff));
    border: 1px solid var(--border, #E5E7EB);
    gap: 6px;
    margin-top: 8px;
}
.fav-btn--inline .fav-btn__icon {
    font-size: 14px;
    line-height: 1;
}
.fav-btn--inline .fav-btn__text {
    line-height: 1;
}
.fav-btn--inline[aria-pressed="true"] {
    background: var(--accent-bg, rgba(21, 153, 71, 0.08));
    border-color: var(--accent, #159947);
    color: var(--accent, #159947);
}
.fav-btn--inline:hover {
    background: var(--bg-card, #F9FAFB);
    border-color: var(--text-muted, #D1D5DB);
    color: var(--text, #111827);
}
.fav-btn--inline[aria-pressed="true"]:hover {
    background: rgba(21, 153, 71, 0.16);
    border-color: var(--accent, #159947);
    color: var(--accent, #117E3A);
}

/* ===== Плашка «Подборка (N) • Поделиться» (#274) ===== */
.fav-bar {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 8px 8px 8px 20px;
    display: flex;
    gap: 8px;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    z-index: 100;
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.fav-bar[hidden] { display: none; }
.fav-bar__count {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    touch-action: manipulation;
}
.fav-bar__count:hover { opacity: 0.85; }
.fav-bar__share {
    background: #159947;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    touch-action: manipulation;
}
.fav-bar__share:hover { background: #117E3A; }

/* ===== Общие классы модалки (с префиксом da-, чтобы не конфликтовать
   с inline-стилями шаблонов витрины — там уже есть .btn-primary/.btn-outline). ===== */
.da-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.da-modal[hidden] { display: none; }
.da-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.da-modal__panel {
    position: relative;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #111827;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}
.da-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #E5E7EB;
}
.da-modal__header h2 { margin: 0; font-size: 18px; font-weight: 600; }
.da-modal__close {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6B7280;
    line-height: 1;
    padding: 0 4px;
}
.da-modal__close:hover { color: #111827; }
.da-modal__footer {
    padding: 16px 20px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.da-btn {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    touch-action: manipulation;
}
.da-btn--primary { background: #159947; color: #fff; }
.da-btn--primary:hover { background: #117E3A; }
.da-btn--ghost { background: transparent; color: #6B7280; }
.da-btn--ghost:hover { color: #111827; }

/* ===== Список «Моя подборка» в модалке (#274 Task 20) ===== */
.da-fav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
}
.da-fav-list__item {
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    align-items: center;
}
.da-fav-list__photo {
    width: 56px;
    height: 56px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    background-color: #eee;
    flex-shrink: 0;
}
.da-fav-list__body { flex: 1; min-width: 0; }
.da-fav-list__title {
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.da-fav-list__price { font-size: 13px; color: #888; }
.da-fav-list__remove {
    background: transparent;
    border: none;
    color: #c00;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 4px 8px;
}
.da-fav-list__remove:hover { color: #800; }
.da-fav-list__empty {
    padding: 32px 24px;
    text-align: center;
    color: #888;
}

/* ===== Модалка «Поделиться подборкой» — форма + результат (#274 Task 21) ===== */
.da-share-form {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    flex: 1;
}
.da-share-form__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.da-share-form__field > span {
    font-size: 13px;
    color: #555;
}
.da-share-form__field input,
.da-share-form__field textarea {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
}
.da-share-form__field input:focus,
.da-share-form__field textarea:focus {
    outline: none;
    border-color: #159947;
}
.da-share-form__consent {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #6B7280;
    line-height: 1.4;
    align-items: flex-start;
    padding: 6px 0;
    cursor: pointer;
}
.da-share-form__consent input {
    width: 20px;
    height: 20px;
    margin-top: 0;
    flex-shrink: 0;
    cursor: pointer;
}
.da-share-form__error {
    color: #DC2626;
    font-size: 13px;
}

.da-share-result {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #111827;
}
.da-share-result p { margin: 0; font-size: 14px; color: #374151; }
.da-share-result input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 13px;
    color: #111827;
    background: #F9FAFB;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.da-share-result__actions {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

/* ===== Публичная подборка /s/{token} и объект /s/{token}/{id} (#273, #457, #676) =====
   Единый визуальный язык с витриной /price и карточкой /price/{id}. */
html.share-doc,
html.share-doc body,
body:has(.share-page) {
    background: #F5F6F8;
    color: #111827;
}

.share-page {
    --sh-bg: #F5F6F8;
    --sh-card: #FFFFFF;
    --sh-subtle: #F1F3F5;
    --sh-border: #E5E7EB;
    --sh-border-light: #EEF0F3;
    --sh-ink: #111827;
    --sh-body: #374151;
    --sh-muted: #6B7280;
    --sh-accent: #159947;
    --sh-accent-hover: #117E3A;
    --sh-accent-bg: rgba(21, 153, 71, 0.08);
    --sh-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    --sh-shadow-hover: 0 6px 20px -8px rgba(0, 0, 0, 0.10);
    max-width: 1200px;
    margin: 0 auto;
    padding: 4px 0 40px;
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--sh-ink);
}

/* ── Шапка-остров подборки (как .header-inner на /price) ── */
.share-header {
    background: var(--sh-card);
    border: 1px solid var(--sh-border);
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: var(--sh-shadow);
    margin-bottom: 16px;
}
.share-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.share-header__main { min-width: 0; flex: 1 1 320px; }
.share-header__title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.share-header h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--sh-ink);
    margin: 0;
}
.share-header__badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--sh-subtle);
    color: var(--sh-muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.share-header__sub {
    margin-top: 5px;
    font-size: 13.5px;
    color: var(--sh-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.share-header__sub strong { color: var(--sh-ink); font-weight: 600; }
.share-header__sep { opacity: 0.45; }
.share-header__phone {
    color: var(--sh-body);
    text-decoration: none;
    font-weight: 500;
}
.share-header__phone:hover { color: var(--sh-accent); }
.share-comment {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--sh-body);
    line-height: 1.45;
}
.share-header__cta { flex-shrink: 0; }
.share-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    background: var(--sh-accent);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
    white-space: nowrap;
}
.share-cta-btn:hover { background: var(--sh-accent-hover); }
.share-cta-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

/* Пояснение внутри острова шапки (спокойный разделитель вместо кричащей полосы) */
.share-intro {
    margin: 14px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--sh-border-light);
    color: var(--sh-muted);
    font-size: 13.5px;
    line-height: 1.5;
}
.share-intro strong { color: var(--sh-ink); font-weight: 600; }

/* ── Остров карты ── */
.share-map-wrap {
    margin: 0 0 18px;
    background: var(--sh-card);
    border: 1px solid var(--sh-border);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--sh-shadow);
}
.share-map {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--sh-subtle);
}
.share-map--detail { height: 280px; }
.share-map-note {
    font-size: 12px;
    color: var(--sh-muted);
    margin: 8px 4px 2px;
}

/* Компактный балун метки (#455) */
.share-map-bl {
    display: flex;
    gap: 10px;
    max-width: 260px;
    font-size: 13px;
    line-height: 1.3;
}
.share-map-bl__photo {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.share-map-bl__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.share-map-bl__price { font-size: 15px; font-weight: 700; color: #111; }
.share-map-bl__addr {
    color: #6B7280;
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.share-map-bl__open {
    align-self: flex-start;
    margin-top: 2px;
    padding: 5px 12px;
    border-radius: 7px;
    background: #159947;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
}

/* ── Сетка карточек /s/{token} (1 -> 2 -> 3 колонки, как на /price) ── */
.share-items { display: block; }
.share-items-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}
@media (min-width: 640px) {
    .share-items-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .share-items-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.share-empty {
    background: var(--sh-card);
    border: 1px solid var(--sh-border);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    color: var(--sh-muted);
    font-size: 14.5px;
}

/* ── Карточка объекта в подборке ── */
.share-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--sh-border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--sh-card);
    box-shadow: var(--sh-shadow);
    transition: border-color .18s, box-shadow .18s;
}
.share-item:hover {
    border-color: #9CA3AF;
    box-shadow: var(--sh-shadow-hover);
}

.share-item__gallery { position: relative; background: var(--sh-subtle); }
.share-item__main-photo {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    background: var(--sh-subtle);
    cursor: zoom-in;
}
.share-item__photo-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.68);
    color: #fff;
    font-size: 11.5px;
    font-weight: 500;
    pointer-events: none;
}
.share-item__placeholder {
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--sh-muted);
    font-size: 13px;
    background: var(--sh-subtle);
}

/* В сетке карточек миниатюры скрыты, чтобы не засорять карточку полосой 50x50;
   все кадры доступны по клику в полноэкранном lightbox и на деталке .share-detail. */
.share-items-grid .share-item__thumbs { display: none; }

.share-item__thumbs {
    display: flex;
    gap: 6px;
    padding: 8px 0 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.share-item__thumbs::-webkit-scrollbar { display: none; }
.share-item__thumb {
    width: 68px;
    height: 52px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.78;
    border: 2px solid transparent;
    border-radius: 8px;
    flex-shrink: 0;
    transition: opacity .15s, border-color .15s;
}
.share-item__thumb:hover { opacity: 1; }
.share-item__thumb.active { opacity: 1; border-color: var(--sh-accent); }

.share-item__body {
    padding: 14px 16px 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 5px;
    min-width: 0;
}
.share-item__meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}
.share-item__id {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--sh-subtle);
    color: var(--sh-muted);
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.share-item__tag {
    display: inline-flex;
    align-items: center;
    background: #FEF3C7;
    color: #92400E;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}
.share-item__price {
    font-size: 21px;
    font-weight: 700;
    color: var(--sh-ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.share-item__pills {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sh-body);
}
.share-item__title {
    font-size: 14px;
    font-weight: 500;
    color: var(--sh-ink);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.share-item__metro {
    font-size: 12.5px;
    color: var(--sh-accent);
    font-weight: 600;
}
.share-item__address {
    color: var(--sh-muted);
    font-size: 12.5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.share-item__desc {
    font-size: 13px;
    color: #4B5563;
    margin-top: 2px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.share-item__more {
    margin-top: auto;
    padding-top: 11px;
    border-top: 1px solid var(--sh-border-light);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    color: var(--sh-accent);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: color .15s;
}
.share-item__more:hover { color: var(--sh-accent-hover); }
.share-item__more svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

/* ─────── Детальная страница объекта /s/{token}/{id} (как /price/{id}) ─────── */
.share-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 7px 14px 7px 11px;
    border-radius: 999px;
    background: var(--sh-card);
    border: 1px solid var(--sh-border);
    color: var(--sh-body);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: var(--sh-shadow);
    transition: background .15s, border-color .15s, color .15s;
}
.share-back:hover { background: #F9FAFB; border-color: #D1D5DB; color: var(--sh-ink); }
.share-back svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

.share-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.share-detail__gallery-col,
.share-detail__aside,
.share-detail__sections {
    min-width: 0;
}
.share-detail__sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@media (min-width: 920px) {
    .share-detail__grid {
        grid-template-columns: minmax(0, 1.58fr) minmax(320px, 1fr);
        column-gap: 22px;
        row-gap: 18px;
    }
    .share-detail__gallery-col { grid-column: 1; }
    .share-detail__sections { grid-column: 1; }
    .share-detail__aside {
        grid-column: 2;
        grid-row: 1 / span 3;
        position: sticky;
        top: 20px;
    }
}

.share-detail__card {
    background: var(--sh-card);
    border: 1px solid var(--sh-border);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: var(--sh-shadow);
}
.share-detail__card--gallery { padding: 12px; }
.share-detail__no-photo {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sh-muted);
    background: var(--sh-subtle);
    font-size: 14px;
}

.share-detail .share-item__gallery { position: relative; background: transparent; }
.share-detail__photo { position: relative; }
.share-detail .share-item__main-photo {
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 460px;
    border-radius: 12px;
    cursor: zoom-in;
    background: var(--sh-subtle);
}
.share-detail .share-item__thumbs { padding: 10px 2px 2px; }

.share-detail__counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
}

.share-detail__head { display: flex; flex-direction: column; gap: 6px; }
.share-detail__price {
    font-size: 30px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--sh-ink);
    margin-top: 2px;
}
.share-detail .share-item__pills {
    font-size: 14px;
    font-weight: 600;
    color: var(--sh-body);
}
.share-detail__title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--sh-ink);
    margin: 2px 0 0;
}
.share-detail__address {
    color: var(--sh-muted);
    font-size: 13.5px;
    line-height: 1.45;
    margin-top: 2px;
}

.share-detail__actions {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--sh-border-light);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.share-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--sh-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}
.share-btn-primary:hover { background: var(--sh-accent-hover); }
.share-btn-primary svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

.share-detail__album {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--sh-border);
    background: var(--sh-card);
    color: var(--sh-ink);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.share-detail__album:hover { border-color: #9CA3AF; background: #F9FAFB; }
.share-detail__album svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

.share-detail__section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--sh-ink);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}
.share-detail__desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--sh-body);
    white-space: pre-line;
}

/* Характеристики: 2 колонки на широком экране (как в /price/{id}), 1 на узком */
.share-chars {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 28px;
}
@media (min-width: 640px) {
    .share-chars {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.share-chars__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--sh-border-light);
    font-size: 13.5px;
}
.share-chars__row dt { color: var(--sh-muted); flex: 0 0 auto; }
.share-chars__row dd {
    margin: 0;
    text-align: right;
    color: var(--sh-ink);
    font-weight: 600;
    min-width: 0;
}

/* ── Компактная плавающая плашка связи с агентом (#454, #676) ── */
.share-contact {
    position: sticky;
    bottom: 12px;
    z-index: 40;
    max-width: 640px;
    margin: 26px auto 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 14px;
    border: 1px solid var(--sh-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.share-contact__person {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.share-contact__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sh-accent-bg);
    color: var(--sh-accent);
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.share-contact__meta { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.share-contact__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--sh-ink);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.share-contact__phone {
    font-size: 12.5px;
    color: var(--sh-muted);
    line-height: 1.25;
    white-space: nowrap;
}
.share-contact__phone a { color: inherit; text-decoration: none; }
.share-contact__phone a:hover { color: var(--sh-ink); }
.share-contact__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}
.share-contact__btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    flex: 0 0 auto;
    -webkit-tap-highlight-color: transparent;
    transition: transform .08s ease, filter .15s ease;
}
.share-contact__btn:hover { filter: brightness(1.07); }
.share-contact__btn:active { transform: scale(.93); }
.share-contact__btn svg { width: 18px; height: 18px; display: block; flex-shrink: 0; }
.share-contact__btn--call { background: #159947; }
.share-contact__btn--wa { background: #25d366; }
.share-contact__btn--tg { background: #29a9eb; }
.share-contact__btn--max { background: #471aff; }

.share-disclaimer {
    max-width: 640px;
    margin: 18px auto 0;
    text-align: center;
    font-size: 11.5px;
    color: #9CA3AF;
    line-height: 1.5;
}
.share-disclaimer a { color: #6B7280; text-decoration: underline; }

@media (max-width: 600px) {
    .share-header { padding: 15px 16px; border-radius: 14px; }
    .share-header h1 { font-size: 20px; }
    .share-header__cta { width: 100%; }
    .share-cta-btn { width: 100%; justify-content: center; }
    .share-detail__card { padding: 16px; border-radius: 14px; }
    .share-detail__card--gallery { padding: 10px; }
    .share-detail__price { font-size: 26px; }
    .share-contact {
        padding: 9px 12px;
        gap: 8px;
        bottom: 8px;
    }
    .share-contact__avatar { display: none; }
    .share-contact__btn { width: 36px; height: 36px; }
    .share-contact__actions { gap: 6px; }
}
