:root {
    color-scheme: light;
    --accent: #DF301C;
    --accent-hover: #b92715;
    --orange: #FF9100;
    --bg: #ffffff;
    --cream: #FFF1D1;
    --turquoise: #00B7CD;
    --text: #1a202c;
    --text-muted: #64748b;
    --white: #ffffff;
    --surface: #ffffff;
    --surface-alt: #f4f5f7;
    --surface-alt-2: #f8fafc;
    --border: #e2e8f0;
    --border-subtle: #eef1f5;
    --border-strong: #cbd5e1;
    --success-bg: #e6f7f0;
    --success-text: #0f7a52;
    --error-bg: #fdecea;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #12151c;
    --text: #e8ecf1;
    --text-muted: #9aa4b2;
    --surface: #1b202a;
    --surface-alt: #161a22;
    --surface-alt-2: #20262f;
    --border: #2c3340;
    --border-subtle: #262d38;
    --border-strong: #3a4353;
    --cream: #2a2418;
    --accent-hover: #f0452f;
    --success-bg: #12302a;
    --success-text: #4fd1a5;
    --error-bg: #3a1a18;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    background-color: var(--surface);
    color: var(--text);
}

.site-header {
    background-color: var(--surface);
    border-bottom: 2px solid var(--accent);
}

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
}

.site-nav__brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-nav__logo {
    display: block;
    height: 40px;
    width: auto;
}

.site-main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.site-footer {
    max-width: 1080px;
    margin: 1.5rem auto 0;
    padding: 1.5rem 1rem 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    text-align: center;
}

.site-footer__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.theme-toggle,
.install-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.theme-toggle {
    border-color: var(--border-strong);
    background-color: var(--surface);
    color: var(--text);
    transition: border-color 0.15s ease, color 0.15s ease;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.theme-toggle__icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.theme-toggle__icon--sun {
    display: none;
}

[data-theme="dark"] .theme-toggle__icon--moon {
    display: none;
}

[data-theme="dark"] .theme-toggle__icon--sun {
    display: block;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1rem;
}

.site-footer__link {
    color: var(--text);
    text-decoration: none;
    padding: 0.25rem 0;
    line-height: 1.4;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.site-footer__link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.site-footer__copy {
    margin: 0.35rem 0;
    font-size: 0.85rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}


h1 {
    color: var(--accent);
}

/* Статические текстовые страницы (articles/) */
.article {
    /* max-width: 760px; */
}

.article__placeholder {
    color: var(--text-muted);
}

/* Кнопка управления push-уведомлениями */
.site-nav__spacer {
    flex: 1;
}

.site-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.install-app {
    background: linear-gradient(135deg, var(--accent), var(--orange));
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(223, 48, 28, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.install-app__icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.install-app:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(223, 48, 28, 0.36);
    filter: brightness(1.03);
}

.install-app:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(223, 48, 28, 0.3);
}

.install-app:focus-visible {
    outline: 3px solid rgba(0, 183, 205, 0.5);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .install-app {
        width: 100%;
        max-width: 320px;
    }
}

/* Подсказка установки для iOS */
.install-hint {
    max-width: 420px;
    margin: 1rem auto 0;
    padding: 1rem 1.25rem;
    border: 2px solid var(--turquoise);
    border-radius: 12px;
    background-color: var(--cream);
    text-align: left;
}

.install-hint__title {
    margin: 0 0 0.5rem;
    font-weight: 700;
    color: var(--text);
}

.install-hint__steps {
    margin: 0 0 0.75rem;
    padding-left: 1.25rem;
}

.install-hint__steps li {
    margin-bottom: 0.25rem;
}

.install-hint__close {
    padding: 0.4rem 1rem;
    border: none;
    border-radius: 6px;
    background-color: var(--turquoise);
    color: var(--white);
    font: inherit;
    cursor: pointer;
}

.push-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border: 2px solid var(--accent);
    border-radius: 999px;
    background-color: var(--surface);
    color: var(--accent);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.push-toggle__icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.push-toggle:hover {
    background-color: var(--accent);
    color: var(--white);
}

.push-toggle[aria-pressed="true"] {
    border-color: var(--text-muted);
    color: var(--text-muted);
    background-color: var(--bg);
}

.push-toggle[aria-pressed="true"]:hover {
    border-color: var(--text-muted);
    color: var(--text-muted);
    background-color: var(--border);
}

.push-toggle:disabled,
.push-toggle.is-denied {
    border-color: var(--text-muted);
    color: var(--text-muted);
    background-color: var(--bg);
    cursor: not-allowed;
}

/* Ссылка входа/кабинета в шапке */
.auth-nav {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border: 2px solid var(--accent);
    border-radius: 999px;
    background-color: var(--surface);
    color: var(--accent);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.auth-nav:hover {
    background-color: var(--accent);
    color: var(--white);
}

/* Ссылка «Сообщения» с бейджем непрочитанных в шапке */
.auth-nav--messages {
    gap: 0.4rem;
}

.auth-nav__icon {
    font-size: 1rem;
    line-height: 1;
}

.auth-nav__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background-color: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.auth-nav--messages:hover .auth-nav__badge {
    background-color: var(--white);
    color: var(--accent);
}

/* Страница входа/регистрации */
.auth {
    max-width: 460px;
    margin: 0 auto;
}

.auth--card {
    max-width: 420px;
    padding: 1.5rem;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background-color: var(--surface);
}

.auth__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth__field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.auth__field > span {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth__field input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font: inherit;
}

.auth__field input:focus {
    outline: none;
    border-color: var(--turquoise);
    box-shadow: 0 0 0 2px rgba(0, 183, 205, 0.2);
}

.auth__hint {
    margin: -0.5rem 0 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth__notice {
    margin: 0;
    padding: 0.7rem 0.9rem;
    border-left: 4px solid var(--turquoise);
    border-radius: 6px;
    background-color: var(--cream);
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.45;
}

.auth > .auth__notice {
    margin-bottom: 1rem;
}

.auth__pass {
    display: flex;
    gap: 0.5rem;
}

.auth__pass-field {
    position: relative;
    flex: 1;
    display: flex;
    min-width: 0;
}

.auth__pass-field input {
    flex: 1;
    min-width: 0;
    padding-right: 2.2rem;
}

.auth__dice {
    position: absolute;
    top: 50%;
    right: 0.4rem;
    transform: translateY(-50%);
    padding: 0;
    border: none;
    background: none;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.auth__dice:hover {
    transform: translateY(-50%) scale(1.1);
}

.auth__pass input {
    flex: 1;
    min-width: 0;
}

.auth__toggle {
    flex: none;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background-color: var(--surface);
    color: var(--turquoise);
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.auth__toggle:hover {
    border-color: var(--turquoise);
}

.auth__check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.auth__submit {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    background-color: var(--accent);
    color: var(--white);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.auth__submit:hover {
    background-color: var(--accent-hover);
}

.auth__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth__link {
    align-self: flex-start;
    padding: 0;
    border: none;
    background: none;
    color: var(--turquoise);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.auth__code {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border: 1px dashed var(--turquoise);
    border-radius: 8px;
    background-color: var(--cream);
}

.auth__message {
    margin-top: 1.25rem;
    padding: 0.6rem 0.9rem;
    border-left: 4px solid var(--text-muted);
    background-color: var(--cream);
    overflow-wrap: anywhere;
}

.auth__message--error {
    border-left-color: var(--accent);
    color: var(--accent);
}

.auth__message--ok {
    border-left-color: var(--turquoise);
}

.auth__legal {
    margin: 1.25rem 0 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
}

.auth__legal a {
    color: var(--turquoise);
}

.auth__forgot {
    margin: 0.75rem 0 0;
    text-align: right;
    font-size: 0.85rem;
}

.auth__form .auth__forgot {
    margin-top: -0.5rem;
}

.auth__forgot a {
    color: var(--turquoise);
}

/* Переключатель способа входа: «По паролю» / «По e-mail» */
.auth__modes {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
    padding: 0.25rem;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background-color: var(--cream);
}

.auth__mode {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.auth__mode:hover {
    color: var(--text);
}

.auth__mode--active,
.auth__mode--active:hover {
    background-color: var(--accent);
    color: var(--white);
}

.auth__mode-icon {
    width: 18px;
    height: 18px;
    flex: none;
}

/* Вход через мессенджеры на странице входа (Telegram, MAX) */
.auth__providers {
    margin-top: 1.25rem;
}

.auth__providers-title {
    margin: 0 0 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth__providers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.auth__provider {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background-color: var(--surface);
    color: var(--text);
    font-size: 0.9rem;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.auth__provider:hover {
    border-color: var(--turquoise);
    color: var(--turquoise);
}

.auth__provider-icon {
    width: 20px;
    height: 20px;
    flex: none;
}

.auth__provider-icon--telegram {
    color: #229ED9;
}

.auth__provider-icon--max {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 20px;
    padding: 0 0.3rem;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--accent), var(--orange));
    color: var(--white);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.auth__provider-icon--vk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 20px;
    padding: 0 0.3rem;
    border-radius: 5px;
    background: #0077FF;
    color: var(--white);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

@media (max-width: 360px) {
    .auth--card {
        padding: 1rem;
    }

    .auth__mode {
        gap: 0.3rem;
        padding: 0.5rem 0.4rem;
        font-size: 0.82rem;
    }

    .auth__mode-icon {
        width: 16px;
        height: 16px;
    }
}

.auth__switch {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth__switch a {
    color: var(--turquoise);
}

.account-logout {
    margin: 0 0 1.5rem;
}

.account-logout button {
    padding: 0.4rem 1rem;
    border: 2px solid var(--text-muted);
    border-radius: 6px;
    background-color: var(--surface);
    color: var(--text-muted);
    font: inherit;
    cursor: pointer;
}

.account-logout button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Личный кабинет: меню и навигация */
.account-back {
    display: inline-block;
    margin: 0.5rem 0 1rem;
    color: var(--turquoise);
    font-size: 0.95rem;
    text-decoration: none;
}

.account-back:hover {
    text-decoration: underline;
}

.account-menu {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    max-width: 520px;
    margin: 0 auto;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: left;
}

.account-menu__item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
}

a.account-menu__item:hover {
    background-color: var(--cream);
    color: var(--accent);
}

.account-menu__item--disabled {
    color: var(--text-muted);
    cursor: default;
    opacity: 0.7;
}

.account-menu__group {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0.35rem;
}

.account-menu__group-title {
    padding: 0.4rem 0.6rem 0.2rem;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
}

.account-menu__group .account-menu__item {
    padding-left: 1.75rem;
}

.account-menu__warn {
    color: var(--orange);
}

.account-menu__hint {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.account-menu__item--alert {
    color: var(--accent);
    font-weight: 700;
}

.account-menu__warn--blink {
    color: var(--accent);
    animation: account-blink 1.2s ease-in-out infinite;
}

@keyframes account-blink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.15;
    }
}

.account-warning {

    margin-bottom:  1.5rem;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    background-color: var(--cream);
    text-align: left;
}

.account-warning p {
    margin: 0 0 0.5rem;
}

.account-warning p:last-child {
    margin-bottom: 0;
}

.account-warning a {
    color: var(--accent);
    font-weight: 600;
}

/* Личный кабинет: заметная ссылка на список объявлений */
.account-listings-link {
    display: inline-block;
    margin: 0 0 1.25rem;
    padding: 0.6rem 1.1rem;
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    background-color: var(--cream);
    font-size: 1.05rem;
    font-weight: 700;
}

.account-listings-link a {
    color: var(--accent);
    text-decoration: none;
}

.account-listings-link a:hover {
    text-decoration: underline;
}

/* Личный кабинет: страница «Аккаунт» */
.account-panel {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: left;
}

.account-danger {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.account-danger__toggle {
    padding: 0.4rem 1rem;
    border: 2px solid var(--accent);
    border-radius: 6px;
    background-color: var(--surface);
    color: var(--accent);
    font: inherit;
    cursor: pointer;
}

.account-danger__toggle:hover {
    background-color: var(--accent);
    color: var(--white);
}

.account-danger__confirm {
    margin-top: 1rem;
}

.account-danger__text {
    margin: 0 0 0.75rem;
    color: var(--accent);
}

.account-danger__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.account-danger__confirm-button {
    padding: 0.4rem 1rem;
    border: none;
    border-radius: 6px;
    background-color: var(--accent);
    color: var(--white);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.account-danger__confirm-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.account-danger__cancel {
    padding: 0.4rem 1rem;
    border: 2px solid var(--text-muted);
    border-radius: 6px;
    background-color: var(--surface);
    color: var(--text-muted);
    font: inherit;
    cursor: pointer;
}

.account-danger__note {
    margin: 0.75rem 0 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Личный кабинет: каналы связи */
.account-channel {
    margin: 0 0 1.75rem;
}

.account-channel__hint {
    margin: 0 0 0.75rem;
    color: var(--text-muted);
}

.account-channel__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 360px;
    margin: 0 0 0.75rem;
}

.account-channel__field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.account-channel__field span {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.account-channel__field input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font: inherit;
}

.account-channel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.account-button {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 2px solid var(--text-muted);
    border-radius: 6px;
    background-color: var(--surface);
    color: var(--text-muted);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.account-button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.account-button--primary {
    border-color: var(--accent);
    background-color: var(--accent);
    color: var(--white);
    font-weight: 600;
}

.account-button--primary:hover {
    border-color: var(--accent-hover);
    background-color: var(--accent-hover);
    color: var(--white);
}

/* Личный кабинет: выбор каналов уведомлений */
.account-notify-form {
    max-width: 420px;
}

.account-notify-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
}

.account-notify-option {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    cursor: pointer;
}

.account-notify-option:hover {
    border-color: var(--accent);
    background-color: var(--cream);
}

.account-notify-option input {
    margin: 0.15rem 0 0;
}

.account-notify-option__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.account-notify-option__hint {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Личный кабинет: моя организация */
.account-org {
    max-width: 480px;
    margin: 0 0 1.75rem;
}

.account-org__types {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0 0 1rem;
}

.account-org__type {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    cursor: pointer;
}

.account-org__type:hover {
    border-color: var(--accent);
    background-color: var(--cream);
}

.account-org__type input {
    margin: 0.15rem 0 0;
}

.account-org__type-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.account-org__type-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.account-org__details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0 0 1rem;
}

.account-org__details[hidden] {
    display: none;
}

.account-org__field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.account-org__field span,
.account-org__field label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.account-org__field input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font: inherit;
}

.account-org__field input:disabled {
    background-color: var(--cream);
    color: var(--text-muted);
}

.account-org__status {
    margin: 0;
    font-size: 0.9rem;
}

.account-org__status[hidden] {
    display: none;
}

.account-org__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.account-org__consent[hidden] {
    display: none;
}

.account-org__consent input {
    flex: 0 0 auto;
    margin-top: 0.2rem;
}

.account-org__consent a {
    color: var(--turquoise);
}

.account-org-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0 0 1.75rem;
}

.account-org__item {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background-color: var(--surface);
}

.account-org__item-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.account-org__item-meta {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Личный кабинет: выбор профессии («Меня интересует») */
.account-professions {
    margin: 0;
    text-align: left;
}

.account-professions__subtitle {
    margin: 1.5rem 0 0.75rem;
    color: var(--text);
    font-size: 1.05rem;
}

.account-professions__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.account-professions__chip {
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background-color: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.account-professions__chip:hover {
    border-color: var(--accent);
    background-color: var(--cream);
    color: var(--accent);
}

.account-professions__field {
    position: relative;
    max-width: 420px;
}

.account-professions__field--wide {
    max-width: 620px;
}

.account-professions__field--wide + .account-professions__field,
.account-professions__field--wide + .account-professions__field-hint {
    margin-top: 1.5rem;
}

.account-professions__org-label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.account-professions__org-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.account-professions__org-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background-color: var(--surface);
    cursor: pointer;
}

.account-professions__org-option:hover {
    border-color: var(--accent);
    background-color: var(--cream);
}

.account-professions__org-option input {
    flex: 0 0 auto;
    margin: 0.2rem 0 0;
}

.account-professions__input {
    width: 100%;
    padding: 0.5rem 5.75rem 0.5rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font: inherit;
}

.account-professions__clear {
    position: absolute;
    top: 50%;
    right: 0.4rem;
    transform: translateY(-50%);
    padding: 0.15rem 0.5rem;
    border: 0;
    border-radius: 6px;
    background-color: var(--cream);
    color: var(--accent);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
}

.account-professions__clear:hover {
    background-color: var(--accent);
    color: var(--surface);
}

.account-professions__clear[hidden],
.account-professions__popular[hidden],
.account-professions__conditions-wrap[hidden],
.account-professions__about-wrap[hidden],
.account-professions__conditions[hidden],
.account-professions__conditions-hint[hidden],
.account-professions__field[hidden],
.account-professions__unknown-link[hidden] {
    display: none;
}

.account-professions__profession-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.account-professions__profession-row .account-professions__field {
    flex: 1 1 auto;
}

.account-professions__unknown-link {
    padding: 0;
    border: 0;
    background-color: transparent;
    color: var(--text-muted);
    font-style: italic;

    cursor: pointer;
}

.accented {
     color: var(--accent);
     font: inherit;
}

.account-professions__unknown-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.account-professions__conditions-wrap,
.account-professions__about-wrap {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}

.account-professions__panel-head {
    display: flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.5rem;
}

.account-professions__conditions-toggle {
    padding: 0;
    border: 0;
    background-color: transparent;
    color: var(--accent);
    font: inherit;
    cursor: pointer;
}

.account-professions__conditions-toggle:hover {
    text-decoration: underline;
}

.account-professions__conditions-hint {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    animation: account-professions-hint-nudge 1.1s ease-in-out infinite;
}

.account-professions__conditions-hint-arrow {
    display: block;
}

@keyframes account-professions-hint-nudge {
    0%, 100% {
        transform: translateX(4px);
        opacity: 0.55;
    }
    50% {
        transform: translateX(-4px);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .account-professions__conditions-hint {
        animation: none;
    }
}

.account-professions__conditions {
    margin-top: 0.75rem;
}

.account-professions__conditions-note {
    max-width: 620px;
    margin: 0 0 0.75rem;
    padding: 0.6rem 0.8rem;
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    background-color: var(--cream);
    color: var(--text);
    font-size: 0.9rem;
}

.account-professions__terms {
    max-width: 620px;
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    background-color: var(--cream);
    color: var(--text);
    font-size: 0.9rem;
}

.account-professions__terms-list {
    margin: 0;
    padding-left: 1.25rem;
}

.account-professions__terms-list li + li {
    margin-top: 0.3rem;
}

.account-professions__conditions-table {
    max-width: 620px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: visible;
}

.account-professions__condition:first-child {
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

.account-professions__condition:last-child {
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}

.account-professions__condition {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.6rem 0.9rem;
}

.account-professions__condition:nth-child(even) {
    background-color: var(--cream);
}

.account-professions__condition-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.account-professions__condition-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 0.35rem 0.75rem;
}

.account-professions__condition-option {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.account-professions__salary {
    max-width: 160px;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font: inherit;
}

.account-professions__salary-range {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.account-professions__salary-range .account-professions__salary {
    flex: 1 1 110px;
}

.account-professions__condition-options--single {
    grid-template-columns: minmax(0, 1fr);
}

.account-professions__condition-options--checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
}

.account-professions__select,
.account-professions__text {
    width: 100%;
    max-width: 320px;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background-color: var(--surface);
    color: var(--text);
    font: inherit;
}

.account-professions__district {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.account-professions__extra {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 1.5rem;
    max-width: 620px;
}

.account-professions__extra-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.account-professions__extra-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font: inherit;
    resize: vertical;
}

.account-professions__save {
    align-self: flex-start;
    margin-top: 1.5rem;
}

.account-professions__media {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.4rem 0;
    padding: 0;
    list-style: none;
}

.account-professions__media-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
    width: 96px;
}

.account-professions__media-item img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    background-color: var(--cream);
}

.account-professions__media-remove {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
}

/* Метка «Есть фото» в карточках объявлений */
.listing-photo-flag {
    display: inline;
    color: var(--text-muted);
    white-space: nowrap;
}

.listing-photo-flag__icon {
    width: 14px;
    height: 14px;
    vertical-align: -0.15em;
    margin-right: 0.25rem;
}

/* Значок «Сердце»: избранное объявлений (публичная карточка и лента) */
.listing-favorite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.25rem;
    border: none;
    border-radius: 50%;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 0;
    -webkit-tap-highlight-color: transparent;
}

.listing-favorite:hover {
    color: var(--accent);
}

.listing-favorite:disabled {
    cursor: default;
    opacity: 0.6;
}

.listing-favorite__path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
}

.listing-favorite.is-active {
    color: var(--accent);
}

.listing-favorite.is-active .listing-favorite__path {
    fill: currentColor;
    stroke: currentColor;
}

.listing-card__head {
    position: relative;
    padding-right: 2.6rem;
}

.listing-card__head > .listing-favorite {
    position: absolute;
    top: 0;
    right: 0;
}

/* Шапка карточки в списке «Избранное»: бейдж статуса и сердце справа */
.account-listing__head-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.account-listing__favorite {
    margin: 0;
    display: inline-flex;
}

/* Подбор исполнителей: отметка «Просмотрено» (глаз) и дата визита */
.listing-candidate-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.25rem;
    border: none;
    border-radius: 50%;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 0;
    vertical-align: middle;
    -webkit-tap-highlight-color: transparent;
}

.listing-candidate-view:hover {
    color: var(--accent);
}

.listing-candidate-view:disabled {
    cursor: default;
    opacity: 0.6;
}

.listing-candidate-view__eye {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
}

.listing-candidate-view__pupil {
    fill: currentColor;
    stroke: none;
}

.listing-candidate-view.is-active {
    color: var(--accent);
}

.listing-candidate-view.is-active .listing-candidate-view__eye {
    fill: currentColor;
}

.listing-candidate-view.is-active .listing-candidate-view__pupil {
    fill: var(--bg, #fff);
}

/* Инициация переписки с кандидатом (подбор исполнителей) */
.account-listing__write-link {
    padding: 0;
    border: none;
    background: none;
    color: var(--accent);
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

.account-listing__write-link:hover {
    text-decoration: underline;
}

.candidate-write__form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.candidate-write__form[hidden] {
    display: none;
}

.candidate-write__field {
    display: block;
}

.candidate-write__field span {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.candidate-write__field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font: inherit;
    resize: vertical;
}

.account-professions__save[hidden] {
    display: none;
}

@media (max-width: 480px) {
    .account-professions__condition {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .account-professions__condition-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-professions__condition-options--single {
        grid-template-columns: minmax(0, 1fr);
    }

    .account-professions__condition-option {
        min-height: 40px;
    }
}

.account-professions__suggest {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    margin: 0.25rem 0 0;
    padding: 0.25rem;
    list-style: none;
    max-height: 15rem;
    overflow-y: auto;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background-color: var(--surface);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.account-professions__option {
    padding: 0.45rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
}

.account-professions__option:hover,
.account-professions__option.is-active {
    background-color: var(--cream);
    color: var(--accent);
}

/* Личный кабинет: «Мои объявления» */
.account-button--danger {
    border-color: var(--accent);
    color: var(--accent);
}

.account-button--danger:hover {
    background-color: var(--accent);
    color: var(--white);
}

.account-listings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

.listings-feed {
    margin-top: 2rem;
}

.listings-feed__title {
    max-width: 720px;
    margin: 0 auto 1rem;
    text-align: left;
}

.feed-tabs {
    max-width: 720px;
    margin: 0 auto 1rem;
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background-color: var(--surface);
    overflow-x: auto;
    scrollbar-width: none;
}

.feed-tabs::-webkit-scrollbar {
    display: none;
}

.feed-tabs__item {
    flex: 1 1 0;
    min-width: max-content;
    padding: 0.55rem 0.9rem;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: 9px;
    font-weight: 600;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.feed-tabs__item:hover {
    color: var(--text);
}

.feed-tabs__item.is-active {
    background-color: var(--accent);
    color: #fff;
}

.listings-feed__empty {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: 10px;
}

@media (max-width: 560px) {
    .feed-tabs__item {
        padding: 0.5rem 0.6rem;
        font-size: 0.9rem;
    }
}

.account-listing {
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-left: 4px solid var(--border-strong);
    border-radius: 10px;
    background-color: var(--surface);
}

.account-listing--active {
    border-left-color: var(--turquoise);
}

.account-listing--paused {
    border-left-color: var(--orange);
}

.account-listing--pending {
    border-left-color: var(--orange);
}

.account-listing--blocked {
    border-left-color: var(--accent);
}

.account-listing--expired {
    border-left-color: var(--text-muted);
}

.account-listing__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.account-listing__title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.account-listing__title a {
    color: var(--text);
    text-decoration: none;
}

.account-listing__title a:hover {
    color: var(--accent);
}

.account-listing__badge {
    flex-shrink: 0;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background-color: var(--surface-alt);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.account-listing__badge--active {
    background-color: var(--success-bg);
    color: var(--success-text);
}

.account-listing__badge--paused,
.account-listing__badge--pending {
    background-color: var(--cream);
    color: var(--orange);
}

.account-listing__badge--blocked {
    background-color: var(--error-bg);
    color: var(--accent);
}

.account-listing__badge--expired {
    background-color: var(--surface-alt);
    color: var(--text-muted);
}

.account-listing__branch {
    margin: 0.35rem 0 0;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
}

.account-listing__description {
    margin: 0.5rem 0 0;
    color: var(--text);
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

.account-listing__chips {
    margin: 0.5rem 0 0;
}

.account-listing__meta {
    margin: 0.5rem 0 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.account-listing__notice {
    max-width: 720px;
    margin: 0 auto 1rem;
    padding: 0.6rem 0.8rem;
    border-left: 3px solid var(--orange);
    border-radius: 6px;
    background-color: var(--cream);
    color: var(--text);
    text-align: left;
    font-size: 0.9rem;
}

.account-listing__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.9rem;
}

.account-listing__history {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.account-listing__history summary {
    cursor: pointer;
}

.account-listing__history ul {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
}

.account-listing__history li {
    margin: 0.2rem 0;
}

/* Удаление запроса в форме редактирования */
.account-listing__danger {
    margin: 1.5rem 0 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.account-listing-toggle__label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.account-listing-toggle__input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}

.account-listing-toggle__track {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background-color: var(--border-strong);
    transition: background-color 0.15s ease;
}

.account-listing-toggle__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--white);
    transition: transform 0.15s ease;
}

.account-listing-toggle__input:checked + .account-listing-toggle__track {
    background-color: var(--turquoise);
}

.account-listing-toggle__input:checked + .account-listing-toggle__track .account-listing-toggle__thumb {
    transform: translateX(18px);
}

.account-listing-toggle__input:focus-visible + .account-listing-toggle__track {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.account-listing-toggle__text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Личный кабинет: форма объявления */
.account-listing-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

.account-listing-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.account-listing-form__row > .account-listing-form__field {
    flex: 1 1 200px;
}

.account-listing-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.account-listing-form__label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.account-listing-form__input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background-color: var(--surface);
    color: var(--text);
    font: inherit;
}

.account-listing-form__input--error {
    border-color: var(--accent);
}

.account-listing-form__error {
    color: var(--accent);
    font-size: 0.85rem;
}

.account-listing-form__group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background-color: var(--surface-alt-2);
}

.account-listing-form__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.account-listing-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.account-professions--form {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.account-professions--form .account-professions__field {
    max-width: none;
}

/* Переписка в личном кабинете */
.account-messages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.account-message {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--turquoise);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.account-message--mine {
    border-left-color: var(--accent);
    background-color: var(--surface-alt-2);
}

.account-message__head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.account-message__body {
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.account-thread-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.account-thread-head > p {
    margin: 0;
}

.account-block-link {
    margin: 0;
    flex-shrink: 0;
}

.account-link-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
}

.account-link-button:hover {
    text-decoration: none;
}

/* Вложения-изображения к сообщениям */
.message-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.message-attachment {
    display: block;
    line-height: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.15s ease;
}

.message-attachment:hover {
    border-color: var(--accent);
}

.message-attachment img {
    display: block;
    width: 140px;
    height: 140px;
    object-fit: cover;
}

.message-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.85);
}

.message-lightbox[hidden] {
    display: none;
}

.message-lightbox__image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.message-lightbox__close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.message-lightbox__close:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

body.has-message-lightbox {
    overflow: hidden;
}

/* Кастомное подтверждение действий (form[data-confirm]) */
.r35-confirm {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.55);
}

.r35-confirm[hidden] {
    display: none;
}

.r35-confirm__dialog {
    width: 100%;
    max-width: 420px;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background-color: var(--surface);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.r35-confirm__message {
    margin: 0 0 1.1rem;
    color: var(--text);
    line-height: 1.5;
}

.r35-confirm__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    flex-wrap: wrap;
}

body.has-r35-confirm {
    overflow: hidden;
}

#thread-new-indicator {
    display: block;
    margin: 0.5rem 0 0;
}

.account-muted {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.account-pagination {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.account-channel textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font: inherit;
    resize: vertical;
}

/* Тест-страница push-уведомлений */
.push-test-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 480px;
}

.push-test-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.push-test-form__field span {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.push-test-form input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font: inherit;
}

.push-test-form button {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    background-color: var(--accent);
    color: var(--white);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.push-test-form button:hover {
    background-color: var(--accent-hover);
}

.push-test-result {
    max-width: 720px;
    margin-top: 2rem;
}

.push-test-result ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.push-test-result li {
    padding: 0.4rem 0.6rem;
    border-left: 3px solid var(--text-muted);
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.push-test-result__ok {
    border-left-color: var(--turquoise);
}

.push-test-result__error {
    border-left-color: var(--accent);
    color: var(--accent);
}



/* ==========================================================================
   Админ-панель (/shtab.php). Служебные стили, классы с префиксом .admin-.
   ========================================================================== */
.admin-body {
    background-color: var(--surface-alt);
}

.admin-header {
    background-color: var(--surface);
    border-bottom: 2px solid var(--accent);
}

.admin-header__inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.6rem 1rem;
}

.admin-header__brand {
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.admin-nav__item {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
}

.admin-nav__item:hover {
    background-color: var(--cream);
}

.admin-nav__item.is-active {
    background-color: var(--accent);
    color: var(--white);
}

.admin-header__user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
}

.admin-header__user form {
    margin: 0;
}

.admin-header__name {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-header__logout {
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: none;
    color: var(--accent);
    cursor: pointer;
    font: inherit;
}

.admin-header__logout:hover {
    background-color: var(--accent);
    color: var(--white);
}

.admin-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1rem 3rem;
}

.admin-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.admin-title {
    margin: 0 0 1rem;
    font-size: 1.5rem;
}

.admin-subtitle {
    margin: 1.75rem 0 0.75rem;
    font-size: 1.15rem;
}

.admin-muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-back {
    margin: 0 0 0.5rem;
}

.admin-link {
    color: var(--turquoise);
}

.admin-panel {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.admin-text {
    white-space: normal;
    overflow-wrap: anywhere;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem 1.25rem;
}

.admin-field-static {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.admin-field-static span {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.admin-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
}

.admin-card--accent {
    border-color: var(--orange);
    background-color: var(--cream);
}

.admin-card__value {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--accent);
}

.admin-card__label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-table-wrap {
    overflow-x: auto;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
    padding: 0.55rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: top;
}

.admin-table th {
    background-color: var(--surface-alt-2);
    font-weight: 600;
    white-space: nowrap;
}

.admin-table th a {
    color: inherit;
    text-decoration: none;
}

.admin-table th a:hover {
    text-decoration: underline;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table a {
    color: var(--turquoise);
}

.admin-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.admin-filters input[type="text"],
.admin-filters input[type="number"],
.admin-filters input[type="date"],
.admin-filters select,
.admin-select {
    padding: 0.4rem 0.55rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font: inherit;
}

.admin-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0.35rem 0.35rem 0;
}

.admin-button {
    padding: 0.4rem 0.85rem;
    border: 1px solid transparent;
    border-radius: 6px;
    background-color: var(--turquoise);
    color: var(--white);
    cursor: pointer;
    font: inherit;
}

.admin-button:hover {
    filter: brightness(0.95);
}

.admin-button--small {
    padding: 0.25rem 0.55rem;
    font-size: 0.85rem;
}

.admin-button--primary {
    background-color: var(--accent);
}

.admin-button--danger {
    background-color: var(--accent);
}

a.admin-button {
    display: inline-flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
}

a.admin-button:hover {
    color: var(--white);
}

/* В таблицах общая ссылочная окраска не должна перекрывать кнопку */
.admin-table a.admin-button {
    color: var(--white);
    text-decoration: none;
}

/* Действия в строке таблицы: заметный отступ, чтобы не промахнуться */
.admin-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
}

.admin-row-actions .admin-inline {
    margin: 0;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.admin-badge {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.82rem;
}

.admin-badge--ok {
    background-color: var(--success-bg);
    color: var(--success-text);
}

.admin-badge--off {
    background-color: var(--error-bg);
    color: var(--accent);
}

.admin-badge--warn {
    background-color: var(--cream);
    color: var(--orange);
}

.admin-alert {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-left: 3px solid var(--orange);
    background-color: var(--cream);
}

.admin-flash {
    margin: 0 0 1rem;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
}

.admin-flash--ok {
    background-color: var(--success-bg);
    color: var(--success-text);
}

.admin-flash--error {
    background-color: var(--error-bg);
    color: var(--accent);
}

.admin-pagination {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.admin-media {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-media img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.admin-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.admin-gallery__item {
    position: relative;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--surface);
}

.admin-gallery__link {
    display: block;
}

.admin-gallery__link img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background-color: var(--border);
}

.admin-gallery__zoom {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.55);
    color: #fff;
    text-decoration: none;
}

.admin-gallery__zoom:hover {
    background-color: rgba(0, 0, 0, 0.75);
}

.admin-gallery__caption {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.4rem 0.5rem;
}

.admin-gallery__badge {
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-gallery__date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.admin-login {
    display: flex;
    justify-content: center;
    padding: 3rem 1rem;
}

.admin-login__form {
    width: 100%;
    max-width: 340px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.admin-login__title {
    margin: 0;
    font-size: 1.3rem;
    text-align: center;
}

.admin-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-field span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.admin-field input {
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font: inherit;
}

/* Числовые поля выглядят как текстовые: без стрелок-счётчика */
.admin-filters input[type="number"],
.admin-field input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.admin-filters input[type="number"]::-webkit-outer-spin-button,
.admin-filters input[type="number"]::-webkit-inner-spin-button,
.admin-field input[type="number"]::-webkit-outer-spin-button,
.admin-field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Формы админки: явная сетка полей (карточка/список оплат) */
.admin-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem 1.25rem;
    align-items: start;
}

.admin-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.admin-form__field > span:first-child {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.admin-form__field input,
.admin-form__field select,
.admin-form__field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font: inherit;
}

.admin-form__hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.admin-form__field--wide {
    grid-column: span 2;
}

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

@media (max-width: 600px) {
    .admin-form {
        grid-template-columns: 1fr;
    }

    .admin-form__field--wide {
        grid-column: auto;
    }
}

/* Автодополнение пользователя в админке (форма ручной оплаты) */
.admin-user-picker {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.admin-user-picker input[type="text"] {
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font: inherit;
    width: 100%;
    box-sizing: border-box;
}

.admin-filters input[name="q"] {
    flex: 1 1 14rem;
}

.admin-filters .admin-user-picker {
    flex: 0 1 15rem;
}

.admin-field .admin-user-picker {
    font-size: 1rem;
    color: inherit;
}

.admin-user-picker__list {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0.25rem 0 0;
    padding: 0.25rem;
    list-style: none;
    max-height: 15rem;
    overflow-y: auto;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background-color: var(--surface);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.admin-user-picker__option {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.45rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
}

.admin-user-picker__option:hover,
.admin-user-picker__option.is-active {
    background-color: var(--cream);
    color: var(--accent);
}

.admin-user-picker__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Сообщения в админ-панели */
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
}

.admin-tab {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
}

.admin-tab.is-active {
    background-color: var(--turquoise);
    border-color: var(--turquoise);
    color: var(--white);
}

.admin-messages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.admin-message {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--turquoise);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.admin-message--admin {
    border-left-color: var(--accent);
    background-color: var(--surface-alt-2);
}

.admin-message__head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.admin-message__body {
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.admin-panel label {
   flex-direction: column;
    display: flex;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.admin-panel textarea {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font: inherit;
    resize: vertical;
}


/* Главная: выделенная плашка-приглашение над формой */
.landing__note {
    margin: 0 0 1.5rem;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    background-color: var(--cream); 
    line-height: 1.6;
   
}

.landing__lead {
    font-size: 1.1rem;
    line-height: 1.6;
}

.landing__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.landing__action {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    background-color: var(--accent);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
    transition: background-color 0.15s ease;
}

.landing__action:hover {
    background-color: var(--accent-hover);
}

.landing__action--muted {
    background-color: var(--cream);
    color: var(--text);
}

.landing__action--muted:hover {
    background-color: var(--turquoise);
    color: var(--white);
}

/* Главная: блок выбора и привязки контактов (анонимный пользователь) */
.landing-auth {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background-color: var(--surface);
}

.landing-auth__title {
    margin: 0 0 1rem;
    font-size: 1.15rem;
}

.landing-auth__subtitle {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.landing-auth__choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
}

.landing-auth__choice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background-color: var(--cream);
    cursor: pointer;
}

.landing-auth__hint {
    margin: 0.75rem 0 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.landing-auth__attach {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cream);
}

.landing-auth__form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.landing-auth__field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 200px;
}

.landing-auth__field > span {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.landing-auth__field input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font: inherit;
}

.landing-auth__field input:focus {
    outline: none;
    border-color: var(--turquoise);
    box-shadow: 0 0 0 2px rgba(0, 183, 205, 0.2);
}

/* Лендинг: согласие на обработку ПД */
.landing-auth__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.landing-auth__consent input {
    flex: 0 0 auto;
    margin-top: 0.2rem;
}

.landing-auth__consent-text a {
    color: var(--turquoise);
}

/* Лендинг: активные кнопки мессенджеров */
.landing-auth__providers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.landing-auth__provider {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background-color: var(--cream);
    color: var(--text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.landing-auth__provider:hover:not(:disabled) {
    border-color: var(--turquoise);
    color: var(--turquoise);
}

.landing-auth__provider:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Текстовые страницы: типографика и списки */
.article__meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article h2 {
    margin-top: 1.75rem;
    color: var(--text);
    font-size: 1.25rem;
}

.article h3 {
    margin-top: 1.25rem;
    font-size: 1.05rem;
}

.article p,
.article li {
    line-height: 1.6;
}

.article__note {
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--turquoise);
    background-color: var(--cream);
    border-radius: 0 6px 6px 0;
}

.legal-details {
    margin: 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.35rem 1.25rem;
}

.legal-details dt {
    color: var(--text-muted);
}

.legal-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

/* Услуги и цены */
.price-group {
    margin-top: 1.75rem;
}

.price-group h2 {
    font-size: 1.25rem;
}

.package-section__toggle {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0;
    border: 0;
    background-color: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.package-section__toggle::after {
    content: '▾';
    font-size: 0.85em;
    color: var(--text-muted);
    transition: transform 0.15s ease;
}

.package-section__toggle[aria-expanded="false"]::after {
    transform: rotate(-90deg);
}

.package-section__toggle:hover {
    color: var(--accent);
}

.package-section__body[hidden] {
    display: none;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.price-card {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background-color: var(--surface);
}

.price-card__name {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: var(--accent);
}

.price-card__description {
    margin: 0 0 0.75rem;
    color: var(--text);
}

.price-card__features {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.price-card__features li {
    margin-bottom: 0.25rem;
}

.price-card__price {
    margin: auto 0 0;
    padding-top: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

/* Блок оплаты тарифа (схематично) */
.payment-block {
    max-width: 420px;
    margin: 1rem 0;
}

.payment-block__button {
    width: 100%;
    margin-top: 0.75rem;
    text-align: center;
}

.payment-block__note {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Покупка пакета: выбор плательщика и способа оплаты */
.payment-payer {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.payment-payer legend {
    padding: 0 0.4rem;
    font-weight: 600;
}

.payment-payer__option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.4rem 0;
    cursor: pointer;
}

.payment-payer__option input {
    margin-top: 0.25rem;
}

.payment-methods {
    display: flex;
    gap: 0.5rem;
}

.payment-methods .payment-block__button {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    margin-top: 0;
    text-align: center;
}

/* Пакеты объявлений (ЛК): карточки активных пакетов */
.price-card--active {
    border-color: var(--accent);
}

.price-card__branch {
    margin: -0.25rem 0 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.price-card__meta {
    margin: auto 0 0;
    padding-top: 0.5rem;
}

.price-card__meta p {
    margin: 0.15rem 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Публичная карточка запроса (listing.php) */
.listing-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.25rem 1.4rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background-color: var(--surface);
}

.listing-card__head {
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.9rem;
}

.listing-card__branch {
    margin: 0 0 0.35rem;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
}

.listing-card__title {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.25;
}

.listing-card__price {
    margin: 0.6rem 0 0;
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 700;
}

.listing-card__meta {
    margin: 0.5rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.listing-card__section {
    margin-top: 1.25rem;
}

.listing-card__subtitle {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
}

.listing-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.listing-card__chip {
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background-color: var(--cream);
    color: var(--text);
    font-size: 0.85rem;
}

.listing-card__description {
    color: var(--text);
    overflow-wrap: anywhere;
}

.listing-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
}

.listing-card__tag {
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.listing-card__contact {
    margin-top: 1.5rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border-subtle);
}

.listing-card__hint {
    margin: 0 0 0.7rem;
    color: var(--text-muted);
}

.listing-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.listing-card__form {
    max-width: 560px;
}

.listing-card__field {
    display: block;
    margin-bottom: 0.7rem;
}

.listing-card__field span {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.listing-card__field textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font: inherit;
    resize: vertical;
}

/* Honeypot: скрытое поле антиспам-форм (заполняют только боты). */
.honeypot {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* Баннер режима «Войти как пользователь» (имперсонация администратором). */
.impersonation-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: var(--white);
    font-size: 0.9rem;
    text-align: center;
}

.impersonation-bar__text strong {
    font-weight: 700;
}

.impersonation-bar__form {
    margin: 0;
}

.impersonation-bar__button {
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    background: transparent;
    color: var(--white);
    font: inherit;
    cursor: pointer;
}

.impersonation-bar__button:hover {
    background: rgba(255, 255, 255, 0.15);
}
