/* Цвета: черный, белый, красный. Легкий, адаптивный сайт */
:root {
    --color-bg: #fff;
    --color-text: #1a1a1a;
    --color-accent: #c41e3a;
    --color-accent-hover: #a01830;
    --color-border: #e5e5e5;
    --color-muted: #666;
    --color-header-bg: #1a1a1a;
    --color-footer-bg: #1a1a1a;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 1.5; color: var(--color-text); background: var(--color-bg); overflow-x: hidden; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; min-width: 0; box-sizing: border-box; }
@media (min-width: 768px) { .container { padding: 0 1.5rem; } }

/* Шапка */
.site-header { background: var(--color-header-bg); color: #fff; padding: 0.75rem 0; position: sticky; top: 0; z-index: 100; }
.site-header a { color: #fff; }
.site-header a:hover { color: #fff; opacity: 0.9; text-decoration: none; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.logo-block { display: flex; flex-direction: column; gap: 0.15rem; }
.logo { font-weight: 700; font-size: 1.35rem; letter-spacing: 0.02em; }
.logo-city { font-size: 0.8rem; opacity: 0.85; }
.logo-city a { border-bottom: 1px dashed rgba(255,255,255,0.6); }
.header-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.header-actions .btn { padding: 0.4rem 0.75rem; font-size: 0.9rem; border-radius: 4px; border: 1px solid rgba(255,255,255,0.4); background: transparent; color: #fff; cursor: pointer; }
.header-actions .btn:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
.header-actions .btn-accent { background: var(--color-accent); border-color: var(--color-accent); }
.header-actions .btn-accent:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.fav-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.25rem; height: 1.25rem; padding: 0 0.35rem; font-size: 0.75rem; background: var(--color-accent); border-radius: 10px; }
.header-user-dropdown { position: relative; }
.header-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    opacity: 0.95;
}
.header-user-trigger:hover { opacity: 1; background: rgba(255,255,255,0.1); }
.header-user-trigger i { font-size: 1em; }
.header-email { font-size: inherit; }
@media (max-width: 767px) {
    .header-user-trigger .header-email { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 480px) {
    .header-user-trigger .header-email { display: none; }
    .header-user-trigger { padding: 0.5rem 0.75rem; }
    .header-user-trigger::after { content: 'Профиль'; }
}
.header-user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.35rem;
    min-width: 140px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    display: none;
    z-index: 200;
    border: 1px solid var(--color-border);
}
.header-user-menu.is-open { display: block; }
@media (max-width: 767px) {
    .header-user-menu { right: 0; left: auto; min-width: 180px; }
}
.header-user-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--color-text) !important;
    font-size: 0.95rem;
}
.header-user-menu a:hover { background: #f5f5f5; color: var(--color-accent) !important; text-decoration: none; }
.modal-auth .form-error { margin-top: 0.75rem; font-size: 0.9rem; color: var(--color-accent); }
.form-privacy-notice { margin: 0.75rem 0 1rem; font-size: 0.85rem; color: var(--color-muted); line-height: 1.4; }
.form-privacy-notice a { color: var(--color-accent); text-decoration: underline; }
.form-privacy-notice a:hover { text-decoration: none; }
.auth-message { padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 1.5rem; }
.auth-message-theme { margin: 0 0 0.5rem; font-size: 0.95rem; }
.auth-message-success { background: #d4edda; color: #155724; border: 1px solid rgba(21, 87, 36, 0.2); }
.auth-message-info { background: #e8f4fc; color: #0c5460; border-left: 4px solid var(--color-accent); }
.auth-message-error { background: #f8d7da; color: #721c24; border: 1px solid rgba(114, 28, 36, 0.2); }
.auth-message-error a { color: #721c24; text-decoration: underline; }
.page-account .auth-message { border-radius: 12px; padding: 1.15rem 1.35rem; }
.page-account .auth-message-success { box-shadow: 0 1px 4px rgba(21, 87, 36, 0.08); }
.page-account .auth-message-error { box-shadow: 0 1px 4px rgba(114, 28, 36, 0.08); }
/* Формы авторизации (регистрация, подтверждение, восстановление) */
.auth-form {
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--color-border);
}
@media (min-width: 480px) {
    .auth-form { padding: 2rem 2.25rem; }
}
.auth-form .form-group { margin-bottom: 1.25rem; }
.auth-form .form-group:last-of-type { margin-bottom: 1.5rem; }
.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.auth-form input::placeholder { color: var(--color-muted); }
.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.12);
}
.auth-form .btn-primary {
    width: 100%;
    padding: 0.85rem 1.5rem;
    margin-top: 0;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}
.auth-form .btn-primary:hover { background: var(--color-accent-hover); }
.auth-form .form-links {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
}
.auth-form .form-links a { display: inline-block; margin-right: 1rem; margin-bottom: 0.25rem; }
.auth-form .form-links a:hover { text-decoration: none; }

/* Модалки */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.is-open { display: flex; }
.modal-overlay-age { z-index: 10001; background: rgba(0,0,0,0.85); }
.modal-age {
    padding: 2rem;
    text-align: center;
    max-width: 400px;
}
.modal-age-text {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}
.modal-age-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.modal-age-buttons .btn { width: 100%; }

/* Панель Cookies */
.cookies-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--color-bg, #1a1a1a);
    color: var(--color-text, #fff);
    padding: 1rem 1.25rem;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
    display: none;
}
.cookies-bar.is-visible { display: block; }
.cookies-bar-inner {
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    position: relative;
}
.cookies-bar-text {
    flex: 1;
    min-width: 200px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.cookies-bar-text a { color: var(--color-accent, #4a9); text-decoration: underline; }
.cookies-bar-text a:hover { text-decoration: none; }
.cookies-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.cookies-bar-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-muted, #999);
    padding: 0.25rem;
}
.cookies-bar-close:hover { color: var(--color-text, #fff); }

.modal { background: #fff; border-radius: 8px; max-width: 500px; width: 100%; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; }
.modal-city { max-width: 600px; }
.modal-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--color-border); display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { margin: 0; font-size: 1.15rem; }
.modal-close { background: none; border: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--color-muted); padding: 0 0.25rem; }
.modal-close:hover { color: var(--color-text); }
.modal-body { padding: 1.25rem; overflow-y: auto; flex: 1; }
.modal-city .city-search { width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--color-border); border-radius: 4px; margin-bottom: 1rem; font-size: 1rem; }
.modal-city .city-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.modal-city .city-list a { display: block; padding: 0.5rem 0.6rem; border-radius: 4px; color: var(--color-text); font-size: 0.9rem; }
.modal-city .city-list a:hover { background: #f5f5f5; text-decoration: none; }
.modal-city .city-section { margin-bottom: 1rem; }
.modal-city .city-section-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-muted); margin-bottom: 0.5rem; }
.modal-auth .form-group { margin-bottom: 1.25rem; }
.modal-auth label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--color-text); }
.modal-auth input[type=email],
.modal-auth input[type=password] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.modal-auth input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.12);
}
.modal-auth .btn-primary {
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 0.25rem;
}
.modal-auth .form-links { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--color-border); font-size: 0.9rem; }
.modal-auth .form-links a { display: inline; }
.modal-auth .form-links-sep { margin: 0 0.35rem; color: var(--color-muted); }
.btn-primary { display: inline-block; padding: 0.75rem 1.5rem; background: var(--color-accent); color: #fff !important; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-primary:hover { background: var(--color-accent-hover); text-decoration: none; }

/* Контент */
.main { padding: 2rem 0; min-height: 50vh; overflow-x: hidden; }
.main h1 { margin: 0 0 1rem; font-size: 1.75rem; }
@media (min-width: 768px) { .main h1 { font-size: 2rem; } }
.content-text { max-width: 720px; }
.home-cities {
    margin-top: 1.75rem;
    margin-bottom: 1.5rem;
}
.home-cities h2 {
    margin: 0 0 0.8rem;
}
.reviews-list {
    margin-top: 2rem;
    padding: 1.5rem 1.75rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    max-width: 900px;
}
.reviews-list > h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}
.review-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--color-border);
}
.review-item:last-child {
    border-bottom: none;
}
.review-item-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: flex-start;
}
.review-item-object-block {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}
.review-item-photo {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}
.review-item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.review-item-photo-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: var(--color-bg);
    color: var(--color-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}
.review-item-object-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.review-item-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
}
.review-item-name {
    font-size: 1rem;
    display: block;
}
.review-item-city {
    font-size: 0.85rem;
    color: var(--color-muted);
}
.review-item-city i {
    margin-right: 0.25rem;
    font-size: 0.8em;
}
.review-item-content {
    flex: 1;
    min-width: 0;
}
.review-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 0.6rem;
}
.review-item-meta i {
    margin-right: 0.25rem;
    color: var(--color-accent);
}
.review-item-rating {
    font-weight: 600;
    color: var(--color-accent);
}
.review-quote {
    margin: 0 0 1rem;
    padding: 1rem 1.25rem 1rem 2rem;
    background: var(--color-bg);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    position: relative;
}
.review-quote-icon {
    position: absolute;
    left: 0.5rem;
    top: 0.85rem;
    font-size: 0.9rem;
    color: var(--color-accent);
    opacity: 0.7;
}
.review-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--color-accent);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}
.review-btn:hover {
    background: var(--color-accent-hover);
    text-decoration: none;
    color: #fff !important;
}
.review-btn i {
    font-size: 0.85em;
}
.breadcrumb { padding: 0.75rem 0; font-size: 0.9rem; color: var(--color-muted); }
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb span { margin: 0 0.35rem; }

/* Футер */
.site-footer { background: var(--color-footer-bg); color: rgba(255,255,255,0.85); padding: 2.5rem 0 1rem; margin-top: 3rem; }
.site-footer a { color: rgba(255,255,255,0.9); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-block h3 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 0.75rem; color: #fff; }
.footer-block ul { list-style: none; padding: 0; margin: 0; }
.footer-block li { margin-bottom: 0.4rem; }
.footer-disclaimer { font-size: 0.8rem; opacity: 0.9; padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,0.15); }
.footer-disclaimer-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .footer-disclaimer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-disclaimer-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.footer-disclaimer-item i { flex-shrink: 0; width: 1.5rem; text-align: center; color: var(--color-accent); font-size: 1.1rem; margin-top: 0.15rem; }
.footer-disclaimer-item span { line-height: 1.4; }
.footer-disclaimer a { text-decoration: underline; }
.footer-copyright { font-size: 0.8rem; opacity: 0.7; padding-top: 0.75rem; }

/* Форма обратной связи */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--color-border); border-radius: 4px; font-size: 1rem; font-family: inherit; }
.form-group textarea { min-height: 120px; resize: vertical; }
.alert { padding: 0.75rem 1rem; border-radius: 4px; margin-bottom: 1rem; }
.alert-success { background: #d4edda; color: #155724; }
.alert-danger { background: #f8d7da; color: #721c24; }

/* Страница городов — всё в одну вертикальную линию */
.cities-page { margin: 0; padding: 0; max-width: 100%; }
.cities-search-wrap { margin: 0 0 1.5rem; padding: 0; }
.cities-search-label { display: block; font-size: 0.9rem; font-weight: 500; margin: 0 0 0.5rem; padding: 0; color: var(--color-text); }
.cities-search-input {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
@media (min-width: 480px) { .cities-search-input { max-width: 360px; } }
.cities-search-input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.15); }
.cities-search-input::placeholder { color: var(--color-muted); }
.cities-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 0.5rem; margin: 0; padding: 0; }
@media (min-width: 480px) { .cities-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .cities-grid { grid-template-columns: repeat(3, 1fr); } }
.cities-grid-title { grid-column: 1 / -1; font-weight: 600; font-size: 0.95rem; margin: 0.75rem 0 0.25rem; padding: 0; }
.cities-grid-title:first-child { margin-top: 0; }
.cities-grid-link { display: block; padding: 0.75rem 1rem; border-radius: 8px; color: var(--color-text); transition: background 0.2s; margin: 0; }
.cities-grid-link:hover { background: rgba(196, 30, 58, 0.08); text-decoration: none; }

/* ---------- Страница аккаунта / профиль ---------- */
.page-account {
    --account-card-radius: 14px;
    --account-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --account-card-shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.page-account-greeting {
    margin: 0 0 1.25rem;
    font-size: 1.15rem;
    color: var(--color-muted);
    font-weight: 400;
}
.page-account-greeting strong {
    color: var(--color-text);
    font-weight: 600;
}

/* Профиль — сетка в две колонки на десктопе */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 0.5rem;
}
@media (min-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem;
    }
    .profile-card-data { grid-column: 1 / -1; }
    .profile-card-password { grid-row: span 1; }
}

.profile-card {
    margin-bottom: 0;
    min-height: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--account-card-radius, 14px);
    box-shadow: var(--account-card-shadow, 0 2px 12px rgba(0, 0, 0, 0.06));
    padding: 1.5rem 1.5rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.page-account .profile-card:hover {
    box-shadow: var(--account-card-shadow-hover, 0 8px 28px rgba(0, 0, 0, 0.08));
    border-color: rgba(196, 30, 58, 0.15);
}

.profile-section-title {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.profile-section-title::before {
    content: "";
    width: 4px;
    height: 1.1em;
    background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    border-radius: 2px;
    flex-shrink: 0;
}

.profile-card-data {
    background: linear-gradient(145deg, #fafbfc 0%, #fff 45%);
    border: 1px solid rgba(196, 30, 58, 0.12);
    padding: 1.5rem 1.75rem;
}
.profile-card-data-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}
.profile-card-data-head .profile-section-title { margin: 0; }
.profile-card-data-head .profile-section-title::before { display: none; }
.btn-outline-sm {
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
    border-radius: 10px;
    font-weight: 600;
}
.profile-data-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem 2.5rem;
}
.profile-data-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.profile-data-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
    font-weight: 600;
}
.profile-data-value {
    font-size: 1.05rem;
    color: var(--color-text);
    font-weight: 500;
}
.profile-data-pending em { font-size: 0.9rem; color: var(--color-muted); font-style: normal; font-weight: 400; }

.btn-outline {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: 10px;
    font-weight: 600;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: var(--color-accent); color: #fff !important; text-decoration: none; border-color: var(--color-accent); }

/* Формы на странице аккаунта — в одном стиле с карточками */
.page-account .auth-form {
    border-radius: var(--account-card-radius, 14px);
    box-shadow: var(--account-card-shadow, 0 2px 12px rgba(0, 0, 0, 0.06));
    padding: 1.5rem 1.5rem;
    border: 1px solid var(--color-border);
}
.page-account .auth-form .profile-section-title { margin-bottom: 1.25rem; }
.page-account .auth-form .btn-primary { border-radius: 10px; padding: 0.8rem 1.5rem; }

/* Страница города: блоки Салоны / Частные специалисты */
.city-main { padding: 0 0 2rem; }
.city-blocks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .city-blocks { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
.city-block {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: var(--color-text);
    min-width: 0;
}
.city-block-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.2s;
    text-align: left;
}
.city-block-header:hover {
    color: var(--color-accent);
    text-decoration: none;
}
.city-block-header:hover .city-block-icon {
    color: var(--color-accent);
    background: rgba(196, 30, 58, 0.12);
}
.city-block-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    color: var(--color-accent);
    font-size: 1.5rem;
    border-radius: 10px;
    background: rgba(196, 30, 58, 0.08);
    transition: color 0.2s, background 0.2s;
}
.city-block-header-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.city-block-title { font-weight: 700; font-size: 1.2rem; margin: 0; line-height: 1.2; }
.city-block-count { font-size: 0.95rem; color: var(--color-muted); margin: 0; }
.city-block-preview {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
}
@media (max-width: 767px) {
    .city-block-preview {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: flex-start;
        gap: 0.6rem;
    }
}
.city-block-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    width: 80px;
    text-decoration: none;
    color: var(--color-text);
    transition: opacity 0.2s;
}
@media (max-width: 767px) {
    .city-block-item {
        width: calc((100% - 0.6rem * 3) / 4);
        min-width: 64px;
        max-width: 80px;
    }
}
.city-block-item:hover {
    opacity: 0.85;
    text-decoration: none;
    color: var(--color-text);
}
.city-block-item-photo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
    display: block;
}
@media (max-width: 767px) {
    .city-block-item-photo {
        width: 100%;
        aspect-ratio: 1;
        max-width: 80px;
        max-height: 80px;
        margin: 0 auto;
    }
}
.city-block-item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.city-block-item-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    font-size: 1.75rem;
}
.city-block-item-name {
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.2;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 767px) {
    .city-block-item-name {
        max-width: 100%;
        font-size: 0.75rem;
    }
}
.city-block-more {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: var(--color-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.city-block-more:hover {
    background: var(--color-accent-hover);
    color: #fff;
    text-decoration: none;
}
@media (max-width: 767px) {
    .city-block-more {
        width: calc((100% - 0.6rem * 3) / 4);
        min-width: 64px;
        max-width: 80px;
        height: auto;
        aspect-ratio: 1;
    }
}
.city-body { margin-top: 0; }

/* Блоки «Популярные салоны» и «Популярные частные специалисты» на главной города */
.city-popular {
    margin-top: 2.5rem;
}
.city-popular-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.city-popular-header h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}
.city-popular-more {
    flex-shrink: 0;
}
.city-popular-more:hover {
    text-decoration: none;
}

/* Каталог салонов/специалистов в городе */
.catalog-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.catalog-item {
    display: block;
    padding: 0.75rem 1rem;
    background: #f9f9f9;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    transition: background 0.2s, border-color 0.2s;
}
.catalog-item:hover {
    background: #fff;
    border-color: var(--color-accent);
    text-decoration: none;
    color: var(--color-text);
}
.pagination { margin: 1.5rem 0 0; }
.pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.pagination li a,
.pagination li span {
    display: inline-block;
    min-width: 2.25rem;
    padding: 0.5rem 0.6rem;
    text-align: center;
    border-radius: 6px;
    font-weight: 500;
}
.pagination li a {
    background: #f5f5f5;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.pagination li a:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    text-decoration: none;
}
.pagination li span {
    background: var(--color-accent);
    color: #fff;
    border: 1px solid var(--color-accent);
}
.salon-view,
.specialist-view { padding: 0 0 1rem; }

/* Карточки салонов на странице города */
.salon-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
    min-width: 0;
}
.salon-card {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    align-items: flex-start;
    min-width: 0;
}
@media (max-width: 767px) {
    .salon-card {
        flex-direction: column;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
        padding: 1rem;
    }
    .salon-card-body {
        max-width: 100%;
        min-width: 0;
    }
    .salon-card-photo {
        width: 100%;
        max-width: none;
    }
}
@media (min-width: 768px) {
    .salon-card { flex-wrap: nowrap; padding: 1.5rem; gap: 1.5rem; }
}
.salon-card-photo {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
}
@media (min-width: 768px) {
    .salon-card-photo { width: 280px; }
}
.salon-card-fav {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: color 0.2s, background 0.2s;
}
.salon-card-fav:hover,
.salon-card-fav.is-active { color: var(--color-accent); }
.salon-card-fav.is-active i { font-weight: 900; }
.salon-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.salon-card-photo a { display: block; height: 100%; }
.salon-card-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #e8e8e8;
    color: var(--color-muted);
    font-size: 2.5rem;
    text-decoration: none;
}
.salon-card-photo-placeholder:hover { background: #ddd; color: var(--color-accent); }
.salon-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.salon-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}
.salon-card-title a { color: var(--color-text); text-decoration: none; }
.salon-card-title a:hover { color: var(--color-accent); text-decoration: underline; }
.salon-card-ico {
    width: 1em;
    margin-right: 0.35em;
    color: var(--color-muted);
    opacity: 0.9;
}
.salon-card-sep {
    margin: 0 0.25em;
    color: var(--color-border);
    font-weight: 300;
}
.salon-card-address {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15em;
    overflow-wrap: break-word;
    word-break: break-word;
}
.salon-card-address .salon-card-ico { flex-shrink: 0; }
.salon-card-contacts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}
@media (max-width: 767px) {
    .salon-card-contacts {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
.salon-card-phone {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
}
.salon-card-phone:hover { text-decoration: none; opacity: 0.9; }
@media (max-width: 767px) {
    .salon-card-phone { flex-wrap: wrap; }
}
.salon-card-socials {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 100%;
}
.salon-card-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: #f0f0f0;
    color: var(--color-text);
    font-size: 1.1rem;
    transition: background 0.2s, color 0.2s;
}
.salon-card-social:hover {
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
}
.salon-card-programs,
.salon-card-massage,
.salon-card-masters {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15em;
}
.salon-card-programs .salon-card-ico,
.salon-card-massage .salon-card-ico,
.salon-card-masters .salon-card-ico { flex-shrink: 0; }
.salon-card-masters-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}
.salon-card-master {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    width: 80px;
    flex-shrink: 0;
}
.salon-card-master img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.salon-card-master-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: #e8e8e8;
    color: var(--color-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}
.salon-card-master-name {
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.2;
    color: var(--color-text);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.salon-card-master-more {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: var(--color-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}
.salon-card-btn {
    align-self: flex-start;
    margin-top: 0.75rem;
    padding: 0.6rem 1.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    background: var(--color-accent);
    color: #fff !important;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}
.salon-card-btn:hover {
    background: var(--color-accent-hover);
    text-decoration: none;
    color: #fff !important;
}
.salon-card-btn i { font-size: 0.85em; }

/* Блок фильтра "Подобрать специалиста" на странице /cities/.../spec */
.spec-filter-block {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}
.spec-filter-title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}
.spec-filter-form { margin: 0; }
.spec-filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem 1.5rem;
}
@media (min-width: 640px) {
    .spec-filter-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .spec-filter-grid { grid-template-columns: repeat(3, 1fr); }
}
.spec-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}
.spec-filter-row-full {
    grid-column: 1 / -1;
}
.spec-filter-row-full .spec-filter-select {
    max-width: none;
    flex: 1;
    min-width: 0;
}
.spec-filter-row .spec-filter-label { margin-right: 0.35rem; }
.spec-filter-label {
    font-size: 0.9rem;
    color: var(--color-muted);
    flex-shrink: 0;
}
.spec-filter-input {
    width: 5rem;
    max-width: 100%;
    padding: 0.4rem 0.5rem;
    font-size: 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
}
.spec-filter-input::placeholder { color: #999; }
.spec-filter-checkboxes {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}
.spec-filter-check {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 400;
}
.spec-filter-check input { flex-shrink: 0; }
.spec-filter-select {
    min-width: 0;
    width: 100%;
    max-width: 220px;
}
.spec-filter-multiselect { min-height: 38px; }
.spec-filter-actions {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}
.spec-filter-actions .btn { margin-right: 0.5rem; }
/* Choices.js внутри блока фильтра */
.spec-filter-block .choices__inner { min-height: 38px; border-radius: 6px; border-color: var(--color-border); }
.spec-filter-block .choices__list--dropdown .choices__item--selectable { padding-right: 1rem; }
.spec-filter-row-full .choices { width: 100%; }
.spec-filter-row-full .choices__inner { width: 100%; }
.spec-filter-row-full .choices__list--dropdown { width: 100%; }

/* Карточки специалистов — 2 в строке */
.spec-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .spec-cards { grid-template-columns: repeat(2, 1fr); }
}
.spec-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
@media (min-width: 768px) {
    .spec-card { flex-direction: row; }
}
.spec-card-photo {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 3/4;
    max-height: 320px;
    background: #f0f0f0;
    overflow: hidden;
}
@media (min-width: 768px) {
    .spec-card-photo { width: 240px; max-height: none; aspect-ratio: 3/4; }
}
.spec-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.spec-card-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #e8e8e8;
    color: var(--color-muted);
    font-size: 3rem;
    text-decoration: none;
}
.spec-card-photo-placeholder:hover { background: #ddd; color: var(--color-accent); }
.spec-card-photo-count {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}
.spec-card-photo-count .fa-camera { margin-right: 0.25rem; }
.spec-card-fav {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: color 0.2s, background 0.2s;
}
.spec-card-fav:hover,
.spec-card-fav.is-active { color: var(--color-accent); }
.spec-card-fav.is-active i { font-weight: 900; }
.spec-card-body {
    flex: 1;
    min-width: 0;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.spec-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}
.spec-card-title a { color: var(--color-text); text-decoration: none; }
.spec-card-title a:hover { color: var(--color-accent); text-decoration: underline; }
.spec-card-badges,
.spec-detail-badges { margin: 0 0 0.5rem; }
.spec-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    line-height: 1.3;
}
.spec-badge-verified {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}
.spec-badge-offline {
    background: rgba(148, 163, 184, 0.18);
    color: #4b5563;
}
.spec-card-price {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-accent);
}
.spec-card-address {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.4;
}
.spec-card-actions {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.spec-card-phone-btn {
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    background: var(--color-accent);
    color: #fff !important;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}
.spec-card-phone-btn:hover {
    background: var(--color-accent-hover);
    color: #fff !important;
    text-decoration: none;
}
.spec-card-stats {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-muted);
}
.spec-card-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.spec-card-desc br { display: none; }
.spec-card-btn {
    align-self: flex-start;
    margin-top: auto;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    background: var(--color-accent);
    color: #fff !important;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}
.spec-card-btn:hover {
    background: var(--color-accent-hover);
    text-decoration: none;
    color: #fff !important;
}
.spec-card-btn i { font-size: 0.85em; }

/* ---------- Страница салона (salon detail) ---------- */
.salon-detail { margin-bottom: 2rem; }
.salon-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}
@media (max-width: 768px) {
    .salon-detail-layout { grid-template-columns: 1fr; }
}
.salon-detail-photos { position: relative; }
.salon-detail-main-photo {
    aspect-ratio: 4/3;
    background: var(--color-bg-muted);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    cursor: pointer;
}
.salon-detail-main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.salon-detail-carousel {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.salon-detail-carousel button {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-bg-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s, opacity 0.2s;
}
.salon-detail-carousel button:hover,
.salon-detail-carousel button.active { border-color: var(--color-accent); }
.salon-detail-carousel button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.salon-detail-info { display: flex; flex-direction: column; gap: 1rem; }
.salon-detail-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.salon-detail-fav,
.salon-detail-owner-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s;
}
.salon-detail-fav {
    background: #c62828;
    color: #fff !important;
}
.salon-detail-fav:hover { opacity: 0.9; color: #fff !important; text-decoration: none; }
.salon-detail-owner-btn {
    background: #e65100;
    color: #fff !important;
}
.salon-detail-owner-btn:hover { opacity: 0.9; color: #fff !important; text-decoration: none; }
.salon-detail-rating a[href="#salon-reviews"] { scroll-margin-top: 1rem; }
a.salon-detail-map-link { scroll-margin-top: 1rem; }
.salon-detail-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.salon-detail-rating .salon-detail-stars { color: var(--color-warning, #e6a800); }
.salon-detail-rating .salon-detail-stars-empty { color: rgba(0,0,0,0.2); }
.salon-detail-rating a { color: var(--color-text); text-decoration: none; }
.salon-detail-rating a:hover { text-decoration: underline; }
.salon-detail-address,
.salon-detail-metro,
.salon-detail-phone,
.salon-detail-site { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.salon-detail-map-link {
    margin-left: 0.25rem;
    font-size: 0.9rem;
    color: var(--color-accent);
    text-decoration: none;
}
.salon-detail-map-link:hover { text-decoration: underline; }
.salon-detail-phone a { color: var(--color-text); text-decoration: none; }
.salon-detail-phone a:hover { text-decoration: underline; }
.salon-detail-socials { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.salon-detail-socials a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    background: var(--color-bg-muted);
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.2s;
}
.salon-detail-socials a:hover { background: var(--color-border); text-decoration: none; color: var(--color-text); }
.salon-detail-socials .btn-social-telegram { background: #000; color: #fff !important; }
.salon-detail-socials .btn-social-telegram:hover { background: #333; color: #fff !important; }
.salon-detail-socials .btn-social-whatsapp { background: #25d366; color: #fff !important; }
.salon-detail-socials .btn-social-whatsapp:hover { background: #20bd5a; color: #fff !important; }
.salon-detail-socials .btn-social-vk { background: #0077ff; color: #fff !important; }
.salon-detail-socials .btn-social-vk:hover { background: #0066dd; color: #fff !important; }
.salon-detail-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.salon-detail-features .feature-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--color-bg-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--color-muted);
    cursor: help;
    border: none;
    padding: 0;
    transition: background 0.2s, color 0.2s;
}
.salon-detail-features .feature-icon:hover { background: var(--color-border); color: var(--color-text); }
.salon-detail-features .salon-detail-h3 { margin-bottom: 0.35rem; }
.salon-detail-features .salon-detail-features-icons { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.salon-detail-features .feature-icon-wrap { position: relative; display: inline-flex; }
.salon-detail-features .feature-icon-wrap[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%) translateY(-6px);
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    white-space: nowrap;
    max-width: 220px;
    white-space: normal;
    text-align: center;
    background: #1a1a1a;
    color: #fff;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.salon-detail-features .feature-icon-wrap[data-tooltip]::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    border: 5px solid transparent;
    border-top-color: #1a1a1a;
    transform: translateX(-50%) translateY(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    z-index: 10;
}
.salon-detail-features .feature-icon-wrap:hover::after,
.salon-detail-features .feature-icon-wrap:hover::before {
    opacity: 1;
    visibility: visible;
}
.salon-detail-features .feature-icon-wrap:hover::after { transform: translateX(-50%) translateY(-8px); }
.salon-detail-price-block {
    background: linear-gradient(135deg, rgba(230, 168, 0, 0.1) 0%, rgba(230, 168, 0, 0.05) 100%);
    border: 1px solid rgba(230, 168, 0, 0.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 0.5rem 0;
}
.salon-detail-price-block .salon-detail-h3 { margin-top: 0; margin-bottom: 0.5rem; }
.salon-detail-price-block p { margin: 0; font-size: 1rem; color: var(--color-text); }
.salon-detail-price-block .price-from { font-weight: 700; color: #b8860b; font-size: 1.1rem; }
.salon-detail-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.salon-detail-nav-buttons a {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #6c757d;
    color: #fff !important;
    text-decoration: none;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s;
}
.salon-detail-nav-buttons a:hover {
    background: #5a6268;
    color: #fff !important;
    text-decoration: none;
}
.salon-detail-nav-buttons a i { opacity: 0.9; }
.salon-detail-description {
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.salon-detail-description .content-text { margin: 0; }
.salon-masseuses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}
@media (max-width: 992px) { .salon-masseuses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .salon-masseuses-grid { grid-template-columns: 1fr; } }
.salon-masseuse-card {
    background: var(--color-bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
    cursor: pointer;
}
.salon-masseuse-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.salon-masseuse-photo-wrap {
    position: relative;
    height: 280px;
    background: var(--color-bg-muted);
    overflow: hidden;
}
.salon-masseuse-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.salon-masseuse-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem 0.75rem 0.75rem;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: #fff;
}
.salon-masseuse-overlay .salon-masseuse-name { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 0.25rem; }
.salon-masseuse-overlay .salon-masseuse-stats { font-size: 0.8rem; opacity: 0.95; }
.salon-masseuse-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-muted);
}
.salon-prog-tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.5rem; }
.salon-prog-variants-label { margin: 0.5rem 0 0.25rem; font-size: 0.85rem; color: var(--color-muted); font-weight: 500; }
.salon-prog-tab {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-muted);
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.salon-prog-tab:hover { background: var(--color-border); }
.salon-prog-tab.active { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
/* Дополнения салона — карточки (как на листинге) */
.salon-addons-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}
.salon-addon-card {
    padding: 1.25rem 1.25rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.salon-addon-card-title {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
}
.salon-addon-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-bottom: 0.5rem;
}
.salon-addon-card-item {
    font-size: 0.95rem;
    color: var(--color-text);
}
.salon-addon-card-label {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-right: 0.35rem;
}
.salon-addon-card-note {
    margin: 0.75rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.5;
}
.salon-addon-card-note .salon-addon-card-label {
    display: block;
    margin-bottom: 0.25rem;
}
.salon-promo-cards { margin-bottom: 2rem; }
.salon-promo-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-card);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 1rem;
    align-items: flex-start;
}
.salon-promo-card:last-child { margin-bottom: 0; }
.salon-promo-card .promo-img {
    width: 120px;
    min-width: 120px;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-bg-muted);
}
.salon-promo-card .promo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.salon-promo-card .promo-body { flex: 1; min-width: 0; }
.salon-promo-card .promo-title { font-weight: 600; margin-bottom: 0.35rem; }
.salon-promo-card .promo-dates { font-size: 0.85rem; color: var(--color-muted); margin-top: 0.35rem; }
.salon-programs-notice {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--color-bg-muted);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--color-muted);
}
.salon-programs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.salon-programs-table th,
.salon-programs-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-card);
}
.salon-programs-table th {
    background: var(--color-bg-muted);
    font-weight: 600;
    font-size: 0.9rem;
}
.salon-programs-table tr:last-child td { border-bottom: none; }
.salon-prog-desc { font-size: 0.85rem; color: var(--color-muted); margin-top: 0.35rem; line-height: 1.4; }

/* Таблица программ на мобильном — карточный вид, всё помещается */
@media (max-width: 767px) {
    .salon-programs-table-wrap {
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 0 1rem;
        overflow: visible;
    }
    .salon-programs-table {
        display: block;
    }
    .salon-programs-table thead { display: none; }
    .salon-programs-table tbody { display: block; }
    .salon-programs-table tr {
        display: block;
        border-bottom: 1px solid var(--color-border);
        padding: 1rem 0;
        margin-bottom: 0;
    }
    .salon-programs-table tr:last-child { border-bottom: none; }
    .salon-programs-table td {
        display: block;
        padding: 0.35rem 0;
        border: none;
        background: transparent;
    }
    .salon-programs-table td:first-child {
        padding-top: 0;
        padding-bottom: 0.5rem;
    }
    .salon-programs-table td[data-label]::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.8rem;
        color: var(--color-muted);
        display: block;
        margin-bottom: 0.15rem;
    }
    .salon-programs-table td:first-child[data-label]::before { display: none; }
    .salon-programs-table .salon-prog-masters,
    .salon-programs-table .salon-prog-duration,
    .salon-programs-table .salon-prog-price {
        display: inline-block;
        margin-right: 1rem;
        padding-right: 1rem;
        border-right: 1px solid var(--color-border);
        vertical-align: top;
        white-space: nowrap;
    }
    .salon-programs-table .salon-prog-price { border-right: none; margin-right: 0; padding-right: 0; }
}

.salon-map-container {
    height: 320px;
    background: var(--color-bg-muted);
    border-radius: 12px;
    margin-bottom: 0;
    overflow: hidden;
}
#salon-map { scroll-margin-top: 1rem; }
#salon-masseuses { scroll-margin-top: 1rem; }
#salon-programs { scroll-margin-top: 1rem; }
.salon-detail-map-section .salon-detail-generated {
    width: 100%;
    max-width: none;
    margin-top: 1rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
}
.salon-detail-generated-standalone { margin-bottom: 2rem; padding: 1rem 0; font-size: 0.95rem; line-height: 1.6; width: 100%; }
.salon-reviews-list { margin-bottom: 1.5rem; }
.salon-review-item {
    background: var(--color-bg-card);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid var(--color-border);
}
.salon-review-item:last-child { margin-bottom: 0; }
.salon-review-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.salon-review-author { font-weight: 600; color: var(--color-text); }
.salon-review-date { font-size: 0.9rem; color: var(--color-muted); }
.salon-review-stars { color: var(--color-warning, #e6a800); }
.salon-review-stars-empty { color: var(--color-border); }
.salon-review-body { font-size: 0.95rem; line-height: 1.55; color: var(--color-text); }
.salon-review-form-block-highlight {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.06) 0%, rgba(196, 30, 58, 0.02) 100%);
    border: 1px solid rgba(196, 30, 58, 0.2);
    padding: 1.5rem;
    margin-top: 1.5rem;
}
.salon-review-form-block { border-radius: 12px; }
.salon-detail-others { margin-bottom: 0; }
.salon-owner-cta {
    padding: 1.5rem;
    background: var(--color-bg-muted);
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}
.salon-owner-cta a { font-weight: 600; color: var(--color-accent); text-decoration: none; }
.salon-owner-cta a:hover { text-decoration: underline; }
.salon-other-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (max-width: 576px) { .salon-other-cards { grid-template-columns: 1fr; } }
.salon-other-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-bg-card);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}
.salon-other-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); text-decoration: none; color: inherit; }
.salon-other-card .photo-wrap {
    aspect-ratio: 16/10;
    background: var(--color-bg-muted);
    overflow: hidden;
}
.salon-other-card .photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.salon-other-card .name { padding: 0.75rem; font-weight: 600; display: block; }
/* Все лайтбоксы страницы салона скрыты по умолчанию */
.salon-lightbox {
    display: none !important;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}
.salon-lightbox.is-open { display: flex !important; }
/* Lightbox страницы салона */
#salonPhotoLightbox.salon-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    padding: 2rem;
    box-sizing: border-box;
}
#salonPhotoLightbox .salon-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
#salonPhotoLightbox .salon-lightbox-close:hover { background: rgba(255,255,255,0.35); }
#salonPhotoLightbox .salon-lightbox-prev,
#salonPhotoLightbox .salon-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
#salonPhotoLightbox .salon-lightbox-prev { left: 1rem; }
#salonPhotoLightbox .salon-lightbox-next { right: 1rem; }
#salonPhotoLightbox .salon-lightbox-prev:hover,
#salonPhotoLightbox .salon-lightbox-next:hover { background: rgba(255,255,255,0.35); }
#salonPhotoLightbox .salon-lightbox-photo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    max-width: 90vw;
    max-height: 90vh;
}
#salonPhotoLightbox #salonLightboxImg {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
}
#salonPhotoLightbox .salon-lightbox-caption {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    text-align: center;
}
/* Лайтбокс фото специалиста — те же кнопки, что у галереи салона */
#specPhotoLightbox .salon-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
#specPhotoLightbox .salon-lightbox-close:hover { background: rgba(255,255,255,0.35); }
#specPhotoLightbox .salon-lightbox-prev,
#specPhotoLightbox .salon-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
#specPhotoLightbox .salon-lightbox-prev { left: 1rem; }
#specPhotoLightbox .salon-lightbox-next { right: 1rem; }
#specPhotoLightbox .salon-lightbox-prev:hover,
#specPhotoLightbox .salon-lightbox-next:hover { background: rgba(255,255,255,0.35); }
#specPhotoLightbox .salon-lightbox-photo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
}
#specPhotoLightbox #specLightboxImg {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
}
/* Лайтбокс массажистки */
#masseuseLightbox.masseuse-lightbox { align-items: center; justify-content: center; padding: 1rem; }
#masseuseLightbox.masseuse-lightbox.is-open { display: flex; }
#masseuseLightbox .masseuse-lb-content {
    display: flex;
    flex-direction: column;
    max-width: 95vw;
    max-height: 90vh;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
@media (min-width: 768px) {
    #masseuseLightbox .masseuse-lb-content { flex-direction: row; max-width: 800px; }
}
#masseuseLightbox .masseuse-lb-photo-wrap {
    position: relative;
    flex: 0 0 auto;
    min-height: 280px;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
@media (min-width: 768px) {
    #masseuseLightbox .masseuse-lb-photo-wrap { min-width: 320px; max-height: 85vh; }
}
#masseuseLightbox .masseuse-lb-photo-wrap img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
}
#masseuseLightbox .masseuse-lb-info {
    padding: 1.25rem;
    color: #fff;
    overflow-y: auto;
    max-height: 40vh;
}
@media (min-width: 768px) {
    #masseuseLightbox .masseuse-lb-info { max-height: 85vh; max-width: 320px; }
}
#masseuseLightbox .masseuse-lb-name { margin: 0 0 0.75rem; font-size: 1.25rem; }
#masseuseLightbox .masseuse-lb-attrs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
#masseuseLightbox .masseuse-lb-attrs-table td {
  padding: 0.25rem 0.5rem 0.25rem 0;
  vertical-align: top;
}
#masseuseLightbox .masseuse-lb-attr-label { color: rgba(255,255,255,0.7); white-space: nowrap; }
#masseuseLightbox .masseuse-lb-attr-value { color: #fff; }
#masseuseLightbox .masseuse-lb-description { font-size: 0.9rem; line-height: 1.5; }
/* Кнопки лайтбокса массажистки — в одном стиле с галереей салона (круглые, полупрозрачные) */
#masseuseLightbox .salon-lightbox-close.masseuse-lb-close,
#masseuseLightbox .masseuse-lb-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
#masseuseLightbox .salon-lightbox-close.masseuse-lb-close:hover,
#masseuseLightbox .masseuse-lb-close:hover { background: rgba(255,255,255,0.35); }
#masseuseLightbox .salon-lightbox-prev.masseuse-lb-prev,
#masseuseLightbox .salon-lightbox-next.masseuse-lb-next,
#masseuseLightbox .masseuse-lb-prev,
#masseuseLightbox .masseuse-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}
#masseuseLightbox .masseuse-lb-prev,
#masseuseLightbox .salon-lightbox-prev.masseuse-lb-prev { left: 1rem; }
#masseuseLightbox .masseuse-lb-next,
#masseuseLightbox .salon-lightbox-next.masseuse-lb-next { right: 1rem; }
#masseuseLightbox .masseuse-lb-prev:hover,
#masseuseLightbox .masseuse-lb-next:hover,
#masseuseLightbox .salon-lightbox-prev.masseuse-lb-prev:hover,
#masseuseLightbox .salon-lightbox-next.masseuse-lb-next:hover { background: rgba(255,255,255,0.35); }

/* Страница избранного */
.favorites-page { margin-bottom: 2rem; }
.favorites-intro { margin-bottom: 1.25rem; color: #555; }
.favorites-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.favorites-city-wrap { display: flex; align-items: center; gap: 0.5rem; }
.favorites-city-wrap label { font-weight: 500; }
.favorites-city-select { min-width: 180px; padding: 0.4rem 0.6rem; border-radius: 8px; border: 1px solid #ccc; }
.favorites-tabs { display: flex; gap: 0.25rem; }
.favorites-tab {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: #f8f8f8;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}
.favorites-tab.is-active { background: var(--color-accent, #c45c5c); color: #fff; border-color: var(--color-accent, #c45c5c); }
.favorites-pane { margin-top: 0.5rem; }
.favorites-pane[aria-hidden="true"] { display: none !important; }
.favorites-empty { margin-top: 1.5rem; padding: 2rem; text-align: center; background: #f5f5f5; border-radius: 12px; color: #666; }

/* Профиль: навигация (табы) и мои отзывы */
.profile-nav { margin-bottom: 1.75rem; }
.profile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    background: #f2f2f2;
    padding: 0.35rem;
    border-radius: 12px;
    width: fit-content;
}
.profile-nav a,
.profile-nav span {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.profile-nav a {
    background: transparent;
    color: var(--color-muted);
    text-decoration: none;
}
.profile-nav a:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--color-text);
}
.profile-nav span {
    background: #fff;
    color: var(--color-text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.page-account .profile-card.profile-reviews {
    padding: 1.75rem 1.5rem;
}
.profile-reviews-list { list-style: none; margin: 0; padding: 0; }
.profile-review-item {
    padding: 1.25rem 1.35rem;
    margin-bottom: 0.85rem;
    background: #fafafa;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: background 0.2s, border-color 0.2s;
}
.profile-review-item:last-child { margin-bottom: 0; }
.profile-review-item:hover {
    background: #fff;
    border-color: rgba(196, 30, 58, 0.2);
}
.profile-review-head { margin-bottom: 0.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.profile-review-head a { font-weight: 600; color: var(--color-text); }
.profile-review-head a:hover { color: var(--color-accent); }
.profile-review-rating { color: #d4a017; font-weight: 500; }
.profile-review-status {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: 500;
    background: #eee;
    color: #555;
}
.profile-review-status-approved { background: #e8f5e9; color: #2e7d32; }
.profile-review-status-pending { background: #fff3e0; color: #ed6c02; }
.profile-review-status-hidden { background: #f5f5f5; color: #666; }
.profile-review-comment { margin: 0.5rem 0; font-size: 0.95rem; line-height: 1.55; color: var(--color-text); }
.profile-review-date { font-size: 0.85rem; color: var(--color-muted); }
.profile-reviews-empty {
    color: var(--color-muted);
    margin: 0;
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px dashed var(--color-border);
}

/* Профиль специалиста: анкета, фото, отзывы, верификация */
.profile-nav-specialist .profile-nav-active { font-weight: 600; }
.profile-specialist-application,
.profile-specialist-photos,
.profile-specialist-reviews,
.profile-specialist-verification { max-width: 960px; }
/* Анкета — используем ширину контейнера, не ограничиваем как обычную auth-form */
.profile-specialist-application .auth-form { max-width: none; width: 100%; }
/* Убираем горизонтальный скролл на странице анкеты */
.page-account .container { overflow-x: hidden; max-width: 100%; }
.profile-specialist-application { overflow-x: hidden; min-width: 0; max-width: 100%; }
.profile-specialist-application .choices__inner,
.profile-specialist-application .choices__list--multiple,
.profile-specialist-application .choices { max-width: 100%; }
.profile-specialist-application .spec-form-fields { min-width: 0; }
@media (max-width: 600px) {
    .profile-specialist-application .form-row-2 .form-group,
    .profile-specialist-application .form-row-3 .form-group { min-width: 0; }
}
.profile-spec-status { margin-bottom: 1.5rem; }
.profile-spec-status .spec-status-line { margin: 0 0 1rem; }
.spec-status { font-weight: 600; padding: 0.2rem 0.5rem; border-radius: 6px; }
.spec-status-pending { background: #fff3e0; color: #e65100; }
.spec-status-rejected { background: #ffebee; color: #c62828; }
.spec-status-ok { background: #e8f5e9; color: #2e7d32; }
.spec-toggle-active-form { margin-top: 0.75rem; }
.profile-spec-hint { color: var(--color-muted); font-size: 0.95rem; margin: 0 0 1.25rem; }
.form-block { margin-bottom: 1.75rem; padding: 1.25rem 0; border-bottom: 1px solid var(--color-border); }
.form-block:last-of-type { border-bottom: 0; }
.form-block-title { font-size: 1.05rem; margin: 0 0 1rem; font-weight: 600; }
.spec-application-block { background: var(--color-bg, #fafafa); border: 1px solid var(--color-border); border-radius: 12px; padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; }
.spec-application-block .form-block-title { margin-top: 0; }
.spec-application-block .form-block-title:not(:first-child) { margin-top: 1.25rem; }
.form-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.form-row-2 .form-group { flex: 1; min-width: 140px; }
.form-row-3 .form-group { flex: 1; min-width: 100px; }
.form-group-check { display: flex; align-items: center; }
.form-group-check .form-check-label { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.form-group-checks { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.form-group-checks .form-check-label { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.form-hint { font-size: 0.9rem; color: var(--color-muted); margin: 0.25rem 0 0.75rem; }
.form-actions { margin-top: 1.5rem; }
.spec-form-photo-row { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: flex-start; }
.spec-form-photo-preview {
    width: 120px; height: 160px; flex-shrink: 0;
    background: #f0f0f0; border-radius: 10px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.spec-form-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.spec-form-photo-placeholder { font-size: 0.9rem; color: var(--color-muted); }
.spec-form-fields { flex: 1; min-width: 260px; max-width: 100%; }
.spec-form-fields .form-group { margin-bottom: 1rem; }
.spec-form-fields .form-row .form-group { flex: 1; }
.spec-form-fields input[type="text"],
.spec-form-fields input[type="number"],
.spec-form-fields input[type="url"],
.spec-form-fields select { max-width: 100%; }
.input-file-hidden { position: absolute; width: 0.1px; height: 0.1px; opacity: 0; overflow: hidden; }
.spec-hours-table-wrap { overflow-x: auto; }
.spec-hours-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec-hours-table th, .spec-hours-table td { padding: 0.5rem 0.6rem; text-align: left; border-bottom: 1px solid var(--color-border); }
.spec-hours-table select, .spec-hours-table input { padding: 0.4rem; border: 1px solid var(--color-border); border-radius: 6px; width: 100%; max-width: 120px; }
.spec-prices-table-wrap { overflow-x: auto; }
.spec-prices-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; table-layout: fixed; }
.spec-prices-table th, .spec-prices-table td { padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: middle; }
.spec-prices-table th { font-weight: 600; }
.spec-prices-table td:first-child { width: 1%; white-space: nowrap; }
.spec-prices-table input[type="number"] { width: 100%; min-width: 0; padding: 0.5rem 0.6rem; border: 1px solid var(--color-border); border-radius: 6px; font-size: 1rem; box-sizing: border-box; }
.spec-prices-table .form-check-label { display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
#specApplicationForm select[name="metro[]"],
#specApplicationForm select[name="services[]"] { min-height: 80px; }
.photo-requirements-text { white-space: pre-line; font-size: 0.95rem; line-height: 1.6; color: var(--color-text); }
/* В одну строку: половина — требования к фото, половина — загрузка */
.profile-photos-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.profile-photos-top-row--upload-only .profile-photos-upload { grid-column: 1 / -1; }
@media (max-width: 768px) {
    .profile-photos-top-row { grid-template-columns: 1fr; }
}
.profile-photo-requirements { margin-bottom: 0; }
.profile-photos-top-row .profile-card { margin-bottom: 0; }
.profile-empty { color: var(--color-muted); margin: 0; padding: 1.5rem 0; }
.spec-photos-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.spec-photo-item { background: #fafafa; border: 1px solid var(--color-border); border-radius: 10px; overflow: hidden; }
.spec-photo-thumb { aspect-ratio: 1; background: #eee; }
.spec-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spec-photo-thumb.broken { display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: var(--color-muted); }
.spec-photo-meta { padding: 0.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.spec-photo-status { font-size: 0.8rem; padding: 0.2rem 0.45rem; border-radius: 6px; font-weight: 500; }
.spec-photo-status-pending { background: #fff3e0; color: #e65100; }
.spec-photo-status-approved { background: #e8f5e9; color: #2e7d32; }
.spec-photo-status-rejected { background: #ffebee; color: #c62828; }
.spec-photo-toggle-form { margin: 0; }
.spec-photo-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.35rem; }
.spec-photo-actions .spec-photo-form { margin: 0; }
.spec-photo-actions .btn { font-size: 0.8rem; }

/* Редактор фото: блок на странице, слева оригинал, справа превью */
.photo-editor-inline { margin-top: 2rem; padding: 1.25rem; background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 12px; }
.photo-editor-inline-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem; }
.photo-editor-inline-title { margin: 0; font-size: 1.25rem; }
/* Кнопка «Закрыть» в шапке редактора */
.photo-editor-btn-close {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.photo-editor-btn-close:hover {
    background: #f1f3f5;
    border-color: #adb5bd;
    color: #212529;
}
.photo-editor-btn-close-icon {
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0.85;
}
.photo-editor-inline-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 768px) { .photo-editor-inline-row { grid-template-columns: 1fr; } }
.photo-editor-col { min-width: 0; }
.photo-editor-label { margin: 0 0 0.5rem; font-size: 0.9rem; font-weight: 600; color: #495057; }
.photo-editor-original-wrap { background: #fff; border: 1px solid #dee2e6; border-radius: 8px; overflow: hidden; min-height: 200px; max-height: 70vh; display: flex; align-items: center; justify-content: center; }
.photo-editor-original-wrap img { max-width: 100%; max-height: 70vh; width: auto; height: auto; display: block; }
.photo-editor-original-wrap .cropper-container { max-height: 70vh; }
.photo-editor-toolbar-inline { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.photo-editor-preview-wrap { background: #fff; border: 1px solid #dee2e6; border-radius: 8px; overflow: hidden; min-height: 200px; }
.photo-editor-preview-wrap canvas { max-width: 100%; height: auto; display: block; cursor: crosshair; }
.photo-editor-tools { margin-top: 0.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.photo-editor-tool { display: flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; }
.photo-editor-hint { margin: 0.35rem 0 0; }
.photo-editor-inline-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #dee2e6; }
.photo-editor-inline-footer .btn-outline-secondary { border: 1px solid #6c757d; color: #6c757d; background: #fff; padding: 0.4rem 0.9rem; border-radius: 6px; font-size: 0.9rem; cursor: pointer; }
.photo-editor-inline-footer .btn-outline-secondary:hover { background: #6c757d; color: #fff; }
.photo-editor-inline-footer .btn-primary { padding: 0.4rem 0.9rem; font-size: 0.9rem; }
#photoEditorCropBtn.active, #photoEditorBlurBtn.active { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.spec-reviews-list { list-style: none; margin: 0; padding: 0; }
.spec-review-item {
    padding: 1.25rem; margin-bottom: 1rem;
    background: #fafafa; border: 1px solid var(--color-border); border-radius: 12px;
}
.spec-review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.spec-review-rating { color: #d4a017; }
.spec-review-date { font-size: 0.9rem; color: var(--color-muted); }
.spec-review-comment { margin: 0.5rem 0 1rem; line-height: 1.5; }
.spec-review-response-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--color-border); }
.spec-review-response-form textarea { width: 100%; padding: 0.6rem; border: 1px solid var(--color-border); border-radius: 8px; font-family: inherit; resize: vertical; }
.spec-review-response-date { font-size: 0.85rem; color: var(--color-muted); margin: 0.5rem 0 0; }
.verification-description { margin: 0 0 1rem; line-height: 1.55; }
.verification-status { margin-bottom: 1rem; padding: 0.6rem 1rem; border-radius: 8px; font-size: 0.95rem; }
.verification-status-approved { background: #e8f5e9; color: #2e7d32; }
.verification-status-pending { background: #e3f2fd; color: #1565c0; }
.verification-status-rejected { background: #ffebee; color: #c62828; }

/* Страница специалиста (частный специалист) */
.spec-detail { margin-bottom: 2rem; }
.spec-detail-layout {
    display: grid;
    grid-template-columns: 280px minmax(200px, 320px) 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}
@media (max-width: 991px) {
    .spec-detail-layout { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
    .spec-detail-layout { grid-template-columns: 1fr; }
}
.spec-detail-col { min-width: 0; }
.spec-detail-main-photo {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 1rem;
    cursor: pointer;
}
.spec-detail-main-photo img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}
.spec-detail-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    color: #999;
    font-size: 4rem;
}
.spec-detail-rating { margin: 0 0 1rem; }
.spec-detail-stars { color: #d4a017; }
.spec-detail-stars-empty { color: #ddd; }
.spec-detail-reviews-link { margin-left: 0.5rem; }
.spec-detail-attrs {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
}
.spec-detail-attrs td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #eee;
}
.spec-detail-attrs tr:last-child td { border-bottom: none; }
.spec-detail-attrs td:first-child {
    color: #555;
    font-weight: 500;
    width: 38%;
    background: #f8f9fa;
}
.spec-detail-attrs td:last-child { font-weight: 600; color: #1a1a1a; }
.spec-detail-phone { margin: 0 0 0.75rem; }
.spec-detail-phone a { font-weight: 600; color: var(--color-accent); }
.spec-detail-socials { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.spec-detail-address, .spec-detail-metro { margin: 0 0 0.25rem; font-size: 0.95rem; color: #555; }
.spec-detail-map-link { display: inline-block; margin-top: 0.5rem; font-size: 0.9rem; }
.spec-detail-side-col .salon-detail-owner-btn { margin-bottom: 1.25rem; }
.spec-detail-h3 { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 600; }
.spec-detail-hours-block, .spec-detail-prices-block { margin-bottom: 1.25rem; }
.spec-detail-hours {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
}
.spec-detail-hours tr:first-child td {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    padding: 0.5rem 0.35rem;
    text-align: center;
    border-bottom: 1px solid #e8e8e8;
}
.spec-detail-hours tr:last-child td {
    padding: 0.5rem 0.35rem;
    text-align: center;
    border-bottom: none;
}
.spec-detail-hours td { border: 1px solid #eee; border-top: none; }
.spec-detail-hours tr:first-child td { border-top: none; }
.spec-detail-day { font-weight: 600; }
.spec-detail-prices {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
}
.spec-detail-prices th {
    padding: 0.55rem 0.75rem;
    text-align: left;
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e8e8e8;
}
.spec-detail-prices td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #eee;
}
.spec-detail-prices tr:last-child td { border-bottom: none; }
.spec-detail-prices th:not(:first-child),
.spec-detail-prices td:not(:first-child) { text-align: center; }
.spec-detail-section { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #eee; }
.spec-detail-h2 { margin: 0 0 1rem; font-size: 1.35rem; font-weight: 700; }
.spec-detail-carousel-section { border-top: none; padding-top: 0; }
.spec-detail-carousel {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.spec-detail-carousel-item {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    background: #f0f0f0;
    transition: border-color 0.2s;
}
.spec-detail-carousel-item.active { border-color: var(--color-accent); }
.spec-detail-carousel-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spec-detail-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.5rem;
}
.spec-detail-massage-for { margin: 0 0 0.75rem; font-weight: 500; color: #555; }
.spec-detail-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
@media (max-width: 767px) { .spec-detail-services-grid { grid-template-columns: repeat(2, 1fr); } }
.spec-detail-service-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: #f0f0f0;
    border-radius: 8px;
    font-size: 0.9rem;
}
.spec-detail-about .content-text { margin: 0; max-width: none; width: 100%; }
.spec-detail-reviews-list { margin-top: 0.5rem; }
.spec-review-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #eee;
}
.spec-review-header { margin-bottom: 0.35rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.spec-review-author { font-weight: 600; }
.spec-review-date { color: #888; }
.spec-review-stars { color: #d4a017; }
.spec-review-body { font-size: 0.95rem; line-height: 1.5; }
.spec-review-owner-response { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #eee; font-size: 0.9rem; color: #555; }
.spec-review-owner-response strong { color: var(--color-text); }
.spec-review-owner-date { display: block; font-size: 0.85rem; color: #888; margin-top: 0.35rem; }
.spec-detail-others-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
@media (max-width: 991px) { .spec-detail-others-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .spec-detail-others-grid { grid-template-columns: 1fr; } }
.spec-detail-other-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.spec-detail-other-card:hover { border-color: var(--color-accent); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.spec-detail-other-photo {
    display: block;
    aspect-ratio: 1;
    background: #f0f0f0;
    overflow: hidden;
}
.spec-detail-other-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spec-detail-other-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 2.5rem;
}
.spec-detail-other-name { padding: 0.75rem; font-weight: 600; text-align: center; }
.spec-detail-map-address { margin: 0 0 0.5rem; color: #666; font-size: 0.95rem; }
.spec-detail-map {
    min-height: 300px;
    background: #f0f0f0;
    border-radius: 12px;
}
.spec-lightbox .salon-lightbox-photo-wrap { background: #000; }
