/* ============================================================
   Massazhist.ru - stylesheet
   Palette: sage + gold. Day / Night themes. Mobile-first.
   ============================================================ */

/* ============ Переменные ============ */
:root {
    --font-text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;

    --shadow-sm: 0 2px 8px rgba(31, 38, 135, 0.04);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --shadow-lg: 0 16px 48px 0 rgba(31, 38, 135, 0.12);

    --accent: #2c5e53;
    --accent-hover: #1e4038;
    --accent-soft: rgba(44, 94, 83, 0.08);
    --gold: #d4af37;
    --gold-hover: #b89628;
    --gold-soft: rgba(212, 175, 55, 0.12);

    --text: #2b2b2b;
    --text-soft: #55605d;
    --text-muted: #828c88;
    --border: rgba(255, 255, 255, 0.6);
    --border-strong: rgba(44, 94, 83, 0.2);

    --bg-1: #f4f6f8;
    --bg-2: #eef2f3;
    --bg-3: #e4e9ed;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-soft: rgba(240, 243, 245, 0.9);

    --glass-bg: rgba(255, 255, 255, 0.75);

    --header-h: 70px;
}

body.theme-night {
    --accent: #529485;
    --accent-hover: #6cb3a2;
    --accent-soft: rgba(82, 148, 133, 0.15);
    --gold: #e5c158;
    --gold-hover: #f3d274;
    --gold-soft: rgba(229, 193, 88, 0.18);

    --text: #e1e7e5;
    --text-soft: #a1ada8;
    --text-muted: #707c77;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);

    --bg-1: #121816;
    --bg-2: #17201d;
    --bg-3: #1c2623;
    --bg-card: rgba(28, 38, 35, 0.85);
    --bg-card-soft: rgba(22, 30, 28, 0.9);

    --glass-bg: rgba(22, 30, 28, 0.8);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 48px 0 rgba(0, 0, 0, 0.6);
}

/* ============ Базовое ============ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    font-family: var(--font-text);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    transition: background-color .3s, color .3s;
}

img { max-width: 100%; display: block; }

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .2s, opacity .2s;
}
a:hover { color: var(--accent-hover); }

.container {
    max-width: 1600px;    /* было 1200, стало шире */
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ Кнопки ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.005em;
    cursor: pointer;
    transition: background-color .15s, color .15s, box-shadow .2s, transform .1s;
    white-space: nowrap;
    text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-ghost {
    background: var(--bg-card-soft);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); }

.btn-gold { background: var(--gold); color: #1a1a1a; font-weight: 700; }
.btn-gold:hover { background: var(--gold-hover); color: #000; }

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-whatsapp {
    background: #25d366;
    color: #fff;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-whatsapp:hover { background: #20b95a; color: #fff; }

/* ============ Формы ============ */
.field-group { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
    letter-spacing: -0.005em;
}
.field-hint { font-size: 12px; color: var(--text-muted); }

/* Универсальные поля ввода */
.field-group input[type="text"],
.field-group input[type="email"],
.field-group input[type="tel"],
.field-group input[type="password"],
.field-group input[type="number"],
.field-group input[type="url"],
.field-group select,
.field-group textarea,
.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="tel"],
.profile-form input[type="number"],
.profile-form input[type="password"],
.profile-form input[type="url"],
.profile-form select,
.profile-form textarea,
.form-block input[type="text"],
.form-block input[type="email"],
.form-block input[type="tel"],
.form-block input[type="number"],
.form-block input[type="url"],
.form-block select,
.form-block textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-card-soft);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text);
    outline: none;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
    appearance: none;
    -webkit-appearance: none;
}

.field-group select,
.profile-form select,
.form-block select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23828c88' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus,
.profile-form input:focus,
.profile-form select:focus,
.profile-form textarea:focus,
.form-block input:focus,
.form-block select:focus,
.form-block textarea:focus {
    border-color: var(--accent);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.field-group input::placeholder,
.profile-form input::placeholder,
.form-block input::placeholder,
textarea::placeholder { color: var(--text-muted); }

input:disabled,
select:disabled,
textarea:disabled { opacity: 0.55; cursor: not-allowed; }

textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] { -moz-appearance: textfield; }

/* Радио-карточки */
.radio-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.radio-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-card-soft);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-soft);
    text-align: center;
    transition: border-color .15s, background-color .15s, color .15s;
}
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card:hover { border-color: var(--accent); }
.radio-card:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

/* Checkbox-карточки */
.checkbox-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.checkbox-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    transition: border-color .15s, background-color .15s;
}
.checkbox-card:hover { border-color: var(--accent); }
.checkbox-card input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.checkbox-card:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* ============ Шапка ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
@supports not (backdrop-filter: blur(12px)) {
    .site-header { background: var(--bg-card); }
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: var(--header-h);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-img {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 8px;    /* скруглённые углы, если фон у лого не прозрачный */
    object-fit: cover;
}
.logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.logo-text em {
    color: var(--gold);
    font-style: normal;
}

@media (max-width: 640px) {
    .logo-img { width: 34px; height: 34px; }
    .logo-text { font-size: 17px; }
}
body.theme-night .logo-mark {
    background: linear-gradient(135deg, var(--accent), #28473f);
}
.logo-text em { color: var(--gold); font-style: normal; font-weight: 700; }
.logo-footer { color: var(--accent); font-size: 20px; }

.city-picker {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card-soft);
    color: var(--text-soft);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
}
.city-picker:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    color: var(--accent);
}

.main-nav { display: none; gap: 4px; margin-left: auto; }
.main-nav a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: all .2s;
}
.main-nav a:hover { background: var(--accent-soft); color: var(--accent); }
.main-nav a.is-active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

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

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card-soft);
    color: var(--text-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all .2s;
}
.theme-toggle:hover { background: var(--accent-soft); color: var(--accent); }
body.theme-day .theme-toggle-night { display: none; }
body.theme-night .theme-toggle-day { display: none; }

.header-actions .btn-ghost,
.header-actions .btn-primary { display: none; }

.burger {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card-soft);
    cursor: pointer;
    padding: 9px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.burger span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    padding: 16px 20px 24px;
    border-top: 1px solid var(--border);
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
    padding: 12px 14px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
}
.mobile-menu a:hover { background: var(--accent-soft); color: var(--accent); }
.mobile-menu hr { border: none; border-top: 1px solid var(--border); margin: 10px 0; }
.mobile-menu .btn { margin-top: 6px; }

/* ============ Дропдаун городов ============ */
.city-dropdown {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    z-index: 90;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.city-dropdown[hidden] { display: none; }
.city-dropdown-inner { padding: 24px 20px 36px; max-width: 1100px; margin: 0 auto; }
.city-dropdown h3 {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.city-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.city-grid a {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    transition: all .15s;
}
.city-grid a:hover { background: var(--accent-soft); color: var(--accent); }
.city-grid a.is-active { background: var(--accent); color: #fff; }

/* ============ Hero ============ */
.hero { padding: 44px 0 36px; }
.hero-inner { text-align: center; }
.hero-title {
    font-family: var(--font-display);
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    font-weight: 700;
    color: var(--text);
}
.hero-sub {
    color: var(--text-soft);
    font-size: 16px;
    margin: 0 auto 30px;
    max-width: 550px;
}
.hero-search {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow);
    max-width: 1000px;
    margin: 0 auto 20px;
}
.hero-search input,
.hero-search select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--bg-card-soft);
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: all .2s;
}
.hero-search input:focus,
.hero-search select:focus { border-color: var(--accent); background: var(--bg-card); }
.hero-search input::placeholder { color: var(--text-muted); }

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    font-size: 13px;
    color: var(--text-muted);
}
.hero-tags a {
    color: var(--text-soft);
    padding: 5px 12px;
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all .2s;
}
.hero-tags a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============ Секции ============ */
.section { padding: 40px 0; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.section-link { color: var(--accent); font-size: 14px; font-weight: 500; white-space: nowrap; }
.section-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
    color: var(--text);
}
.section-sub { color: var(--text-soft); margin: 0 0 24px; font-size: 15px; }
/* ---- Зоны тела ---- */
.zones-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.zone-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all .2s;
}
.zone-card:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
.zone-card-arrow {
    color: var(--text-muted);
    font-size: 16px;
    transition: transform .2s, color .15s;
}
.zone-card:hover .zone-card-arrow { color: var(--accent); transform: translateX(2px); }

/* ---- Города ---- */
.cities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.city-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: all .2s;
}
.city-card:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow); }
.city-card-name { font-weight: 600; font-size: 15px; color: var(--accent); }
.city-card-region { color: var(--text-muted); font-size: 13px; }

/* ---- Доверие ---- */
.trust-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.trust-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; color: var(--text); }
.trust-desc { color: var(--text-soft); font-size: 13px; line-height: 1.5; }

/* ---- CTA ---- */
.section-cta { padding-bottom: 64px; }
.cta-block {
    background: linear-gradient(135deg, var(--accent) 0%, #1a3832 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
body.theme-night .cta-block { background: linear-gradient(135deg, #22423a 0%, #101c18 100%); }
.cta-block h2 {
    font-family: var(--font-display);
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}
.cta-block p { margin: 0 0 24px; opacity: 0.9; font-size: 15px; }
.cta-block .btn-gold {
    background: var(--gold);
    color: #1a1a1a;
    padding: 13px 28px;
    font-weight: 700;
}
.cta-block .btn-gold:hover { background: var(--gold-hover); }

/* ---- Баннер карты тела ---- */
.body-map-banner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, #1a3832 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow);
}
body.theme-night .body-map-banner { background: linear-gradient(135deg, #22423a 0%, #101c18 100%); }
.body-map-banner-text h2 {
    font-family: var(--font-display);
    font-size: 22px;
    margin: 0 0 6px;
    font-weight: 700;
    color: #fff;
}
.body-map-banner-text p { margin: 0; opacity: 0.9; font-size: 14px; line-height: 1.5; }
.body-map-banner .btn-gold { align-self: flex-start; }

/* ============ Карточка мастера (в списках) ============ */
.masters-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

.master-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s ease, border-color .25s ease;
}
.master-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    /* никакого transform — карточка не двигается */
}

.vip-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, var(--gold), #f3d274);
    color: #1a1a1a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.master-card-head {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Круглый крупный аватар */
.master-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--accent-soft);
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .10);
    display: flex;
    align-items: center;
    justify-content: center;
}
.master-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.master-avatar > span {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 700;
    color: var(--accent);
}

/* Салоны — тоже круглый */
.master-avatar.salon-avatar-square {
    border-radius: 50%;
}

.master-meta {
    min-width: 0;
    flex: 1;
}

.master-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
    color: var(--text);
}

.master-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 4px;
}
.rating-star { color: var(--gold); }
.rating-value { font-weight: 600; color: var(--text); }
.rating-count { color: var(--text-muted); }

.rating-new {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 20px;
}

.master-exp {
    color: var(--text-soft);
    font-size: 12.5px;
}

.master-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11.5px;
    font-weight: 500;
    border-radius: 6px;
    letter-spacing: 0.01em;
}
.badge-gold {
    background: var(--gold-soft);
    color: var(--gold-hover);
}
body.theme-night .badge-gold {
    color: var(--gold);
}

.master-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
}
.price-label { color: var(--text-muted); font-size: 13px; }
.price-value { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.price-unit  { color: var(--text-muted); font-size: 13px; }

/* Промо-плашка на карточке */
.promo-badge {
    display: block;
    margin: -20px -20px 0;
    padding: 8px 14px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: linear-gradient(90deg, #f7c948, #f09b1a);
    color: #3a2a00;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* Бейдж "Салон" на карточках салонов */
.type-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Сердечко избранного */
.fav-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .95);
    color: #b9b9b9;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform .15s, color .15s, background .15s, box-shadow .15s;
}
.fav-btn:hover {
    transform: scale(1.08);
    color: #e74c3c;
}
.fav-btn.is-active {
    background: #e74c3c;
    color: #fff;
    box-shadow: 0 4px 14px rgba(231, 76, 60, .55);
}
.fav-btn.is-active:hover {
    background: #d63b2c;
    transform: scale(1.08);
}

/* Плашка "Сегодня выходной" */
.dayoff-badge {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 8px;
    background: #fde2e2;
    color: #8a2a2a;
}

/* Если на карточке есть VIP и сердечко одновременно — сдвигаем сердечко ниже */
.master-card .vip-badge ~ .fav-btn {
    top: 50px;
}

/* Специалист по зоне */
.specialist-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}
.specialist-badge--salon {
    top: 46px;
    right: 14px;
}
/* ============ Auth (регистрация / вход) ============ */
.auth-section { padding: 48px 0 64px; min-height: 60vh; }
.auth-card {
    max-width: 520px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.auth-card--narrow { max-width: 420px; }
.auth-head { margin-bottom: 28px; text-align: center; }
.auth-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    color: var(--text);
}
.auth-sub { color: var(--text-soft); font-size: 14px; margin: 0; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-bottom { text-align: center; font-size: 14px; color: var(--text-soft); margin: 4px 0 0; }
.auth-bottom a { color: var(--accent); font-weight: 600; }

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}
.alert-error {
    background: rgba(198, 40, 40, 0.08);
    border: 1px solid rgba(198, 40, 40, 0.2);
    color: #b12626;
}
body.theme-night .alert-error {
    background: rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.25);
    color: #ff9a9a;
}
.alert-success {
    background: rgba(44, 94, 83, 0.08);
    border: 1px solid rgba(44, 94, 83, 0.2);
    color: var(--accent);
}
body.theme-night .alert-success {
    background: rgba(127, 182, 154, 0.1);
    border-color: rgba(127, 182, 154, 0.25);
}

/* ============ Личный кабинет ============ */
.account-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.account-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 4px;
    color: var(--text);
}
.account-sub { color: var(--text-soft); font-size: 15px; margin: 0; }

.account-master-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.account-master-status-label {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 6px;
}

.account-status-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.status-draft { background: rgba(150, 150, 150, 0.15); color: var(--text-soft); }
.status-published { background: var(--accent-soft); color: var(--accent); }
.status-vacation { background: rgba(255, 180, 80, 0.15); color: #b87600; }
.status-dayoff { background: rgba(100, 150, 220, 0.15); color: #3a6cb0; }
.status-blocked { background: rgba(220, 80, 80, 0.15); color: #b12626; }
body.theme-night .status-draft { background: rgba(255,255,255,0.08); color: var(--text-muted); }
body.theme-night .status-vacation { background: rgba(255, 180, 80, 0.12); color: #d4a04a; }
body.theme-night .status-dayoff { background: rgba(100, 150, 220, 0.12); color: #6ba3e0; }
body.theme-night .status-blocked { background: rgba(220, 80, 80, 0.12); color: #e08080; }

.account-stats { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat-label {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.stat-value {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}
.stat-link { color: var(--accent); font-size: 13px; font-weight: 600; margin-top: 4px; }
.stat-note { color: var(--text-muted); font-size: 12px; }

.account-sections { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
.account-tile {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    color: var(--text);
    transition: border-color .15s, transform .15s, box-shadow .2s;
}
.account-tile:hover {
    border-color: var(--accent);
    color: var(--text);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
.account-tile-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; color: var(--text); }
.account-tile-desc { color: var(--text-soft); font-size: 13px; line-height: 1.5; }

.account-status {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 20px;
}
.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.status-row:last-of-type { border-bottom: none; }
.status-title { font-weight: 600; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.status-desc { color: var(--text-soft); font-size: 13px; line-height: 1.5; }
.status-note { padding: 8px 0 16px; color: var(--text-muted); font-size: 12px; }

/* Переключатель */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-card-soft);
    border: 1px solid var(--border-strong);
    transition: .2s;
    border-radius: 24px;
}
.switch-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: var(--text-muted);
    transition: .2s;
    border-radius: 50%;
}
.switch input:checked + .switch-slider { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .switch-slider::before { transform: translateX(20px); background: #fff; }
.switch input:disabled + .switch-slider { opacity: 0.5; cursor: not-allowed; }

@media (min-width: 640px) {
    .account-stats { grid-template-columns: repeat(2, 1fr); }
    .account-sections { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .account-stats { grid-template-columns: repeat(4, 1fr); }
}
/* ============ Форма анкеты ============ */
.profile-form { display: flex; flex-direction: column; gap: 24px; }

.form-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    backdrop-filter: blur(10px);
}
.form-block-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
    color: var(--text);
}
.form-block-hint { color: var(--text-soft); font-size: 13.5px; margin: 0 0 18px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-row--avatar { grid-template-columns: 1fr; }
.form-fields { display: flex; flex-direction: column; gap: 16px; }

/* ---- Avatar upload ---- */
.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg-card);
    box-shadow: var(--shadow);
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder { color: var(--text-muted); font-size: 14px; font-weight: 500; }

/* ---- Autocomplete (метро) ---- */
.metro-field { position: relative; }
.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    max-height: 280px;
    overflow-y: auto;
    z-index: 10;
    margin-top: 4px;
}
.autocomplete-item {
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: var(--accent-soft); color: var(--accent); }

/* ---- Services (услуги с ценами) ---- */
.services-list { display: flex; flex-direction: column; gap: 8px; }
.services-category { margin-bottom: 22px; }
.services-category:last-child { margin-bottom: 0; }
.services-category-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}
.services-legend {
    display: grid;
    grid-template-columns: 1fr 90px 90px;
    gap: 8px;
    padding: 0 14px 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}
.services-legend-name { }
.services-legend-col { text-align: right; }

.service-row {
    display: grid;
    grid-template-columns: 1fr 90px 90px;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.service-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
}
.service-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.service-name { font-weight: 500; }
.service-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: var(--bg-card);
    font-family: inherit;
    font-size: 13px;
    color: var(--text);
    text-align: right;
    outline: none;
}
.service-input:focus { border-color: var(--accent); }
.service-input:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---- График работы (schedule editor) ---- */
.schedule-editor { display: flex; flex-direction: column; gap: 8px; }
.schedule-edit-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color .15s;
}
.schedule-edit-row:has(.schedule-toggle:checked) { border-color: var(--border-strong); }
.schedule-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.schedule-toggle {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}
.schedule-day { font-weight: 500; font-size: 14px; color: var(--text); }

.schedule-times { display: flex; align-items: center; gap: 10px; padding-left: 28px; }
.schedule-off-label {
    display: none;
    color: var(--text-muted);
    font-size: 13px;
    font-style: italic;
}
.schedule-edit-row:not(:has(.schedule-toggle:checked)) .schedule-off-label { display: inline; }
.schedule-edit-row:not(:has(.schedule-toggle:checked)) .schedule-time-group { display: none; }

.schedule-time-group { display: flex; align-items: center; gap: 6px; }
.schedule-time-label { color: var(--text-muted); font-size: 13px; }
.schedule-select {
    padding: 8px 28px 8px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: var(--bg-card);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23828c88' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    font-family: inherit;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    font-variant-numeric: tabular-nums;
}
.schedule-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.schedule-select:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---- Действия формы ---- */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    padding-top: 8px;
}
.form-actions .btn { width: 100%; }
.form-actions-note { color: var(--text-muted); font-size: 13px; margin: 0; }

/* ---- Медиа салона (лого + обложка) ---- */
.salon-media-row { display: flex; flex-direction: column; gap: 20px; }
.salon-media-item { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.salon-logo-preview {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    background: var(--accent-soft);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
    box-shadow: var(--shadow);
}
.salon-logo-preview img { width: 100%; height: 100%; object-fit: cover; }
.salon-cover-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    background: var(--accent-soft);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}
.salon-cover-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Блок «Мой салон» в анкете мастера ---- */
.salon-select-block { display: flex; flex-direction: column; gap: 14px; }
.salon-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.salon-divider::before,
.salon-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.salon-request-status { font-size: 14px; min-height: 20px; }
.salon-request-status .ok { color: var(--accent); }
.salon-request-status .error { color: #b12626; }

.salon-current-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-card-soft);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    flex-wrap: wrap;
}
.salon-current-name { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.salon-current-meta { font-size: 13px; color: var(--text-soft); margin-bottom: 8px; }
.salon-current-status {
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 6px;
    display: inline-block;
    font-weight: 500;
}
.salon-current-status--ok { background: var(--accent-soft); color: var(--accent); }
.salon-current-status--pending { background: rgba(255, 180, 80, 0.15); color: #b87600; }
.salon-current-status--bad { background: rgba(220, 80, 80, 0.12); color: #b12626; }

/* ---- Заявки и мастера в ЛК салона ---- */
.account-requests {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}
.account-requests--team { border-color: var(--border-strong); }
.account-requests-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--text);
}
.request-list,
.team-list { display: flex; flex-direction: column; gap: 10px; }

.request-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card-soft);
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
}
.request-name { font-weight: 600; color: var(--text); margin-bottom: 2px; }
.request-meta { font-size: 13px; color: var(--text-soft); }
.request-actions { display: flex; gap: 8px; }

.team-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-card-soft);
    border-radius: var(--radius-sm);
}
.team-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-weight: 600; color: var(--text); font-size: 14px; }
.team-meta { font-size: 12.5px; color: var(--text-soft); }

/* ============ Публичная карточка мастера ============ */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.breadcrumbs a { color: var(--text-soft); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--text-muted); }

.profile-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
.profile-main { min-width: 0; }
.profile-side { display: flex; flex-direction: column; gap: 16px; }

.profile-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}
.profile-avatar {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--accent-soft);
    flex-shrink: 0;
    align-self: center;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    color: var(--accent);
}
.verified-mark {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    border: 3px solid var(--bg-card);
}
.profile-info { text-align: center; }
.profile-name {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    color: var(--text);
}
.profile-rating { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 12px; }
.profile-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.profile-tag {
    padding: 5px 12px;
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12.5px;
    color: var(--text-soft);
    font-weight: 500;
}
.profile-location { color: var(--text-soft); font-size: 14px; margin-bottom: 8px; }
.profile-today {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}
.profile-today--off { background: rgba(150, 150, 150, 0.12); color: var(--text-muted); }

.profile-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    margin-top: 16px;
}
.profile-section-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 14px;
    color: var(--text);
}
.profile-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-about { color: var(--text-soft); font-size: 15px; line-height: 1.65; }

.price-list { display: flex; flex-direction: column; }
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.price-row:last-child { border-bottom: none; }
.price-name { color: var(--text); font-size: 15px; font-weight: 500; }
.price-duration { margin-left: 8px; color: var(--text-muted); font-size: 12.5px; font-weight: 400; }
.price-amount {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--accent);
    white-space: nowrap;
}

.schedule-view { display: flex; flex-direction: column; }
.schedule-view-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.schedule-view-row:last-child { border-bottom: none; }
.schedule-view-day { color: var(--text-soft); }
.schedule-view-time { color: var(--text); font-weight: 500; }
.schedule-view-row--off .schedule-view-time { color: var(--text-muted); font-weight: 400; }

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow);
}
.contact-card-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text);
}
.contact-card .btn-block { margin-bottom: 8px; }
.contact-card .btn-block:last-of-type { margin-bottom: 0; }
.phone-block { margin-top: 10px; }
.phone-mask {
    padding: 14px;
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    margin-bottom: 8px;
}
.contact-note {
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.5;
    margin: 12px 0 0;
}
.side-note {
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
}
.side-note-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.side-note p { color: var(--text-soft); font-size: 13px; line-height: 1.6; margin: 0; }

/* ============ Публичная карточка салона ============ */
.salon-hero {
    width: 100%;
    aspect-ratio: 21 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
}
.salon-hero img { width: 100%; height: 100%; object-fit: cover; }
.salon-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
.salon-main { min-width: 0; }
.salon-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}
.salon-logo {
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--accent-soft);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.salon-logo img { width: 100%; height: 100%; object-fit: cover; }
.salon-logo--placeholder {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--accent);
}
.salon-header-info { flex: 1; }
.salon-name {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    color: var(--text);
}
.salon-short { color: var(--text-soft); font-size: 15px; line-height: 1.5; margin: 0 0 12px; }
.salon-location { color: var(--text-soft); font-size: 14px; margin-bottom: 8px; }
.salon-today {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}
.salon-today--off { background: rgba(150, 150, 150, 0.12); color: var(--text-muted); }

.salon-masters-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.salon-master-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    transition: border-color .15s, transform .15s;
}
.salon-master-card:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.salon-master-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}
.salon-master-avatar img { width: 100%; height: 100%; object-fit: cover; }
.salon-master-name { font-weight: 600; font-size: 15px; color: var(--text); margin-bottom: 2px; }
.salon-master-exp { font-size: 12.5px; color: var(--text-soft); }

.salon-address-box {
    margin-top: 14px;
    padding: 14px;
    background: var(--bg-card-soft);
    border-radius: var(--radius-sm);
}
.salon-address-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}
.salon-address-value { font-size: 14px; color: var(--text); line-height: 1.5; }

/* ============ Footer ============ */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    margin-top: 40px;
}
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.footer-col a { display: block; padding: 5px 0; color: var(--text-soft); font-size: 14px; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-desc { color: var(--text-muted); font-size: 13px; line-height: 1.6; margin: 12px 0 0; max-width: 320px; }
.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-legal a { color: var(--text-soft); }
.footer-legal a:hover { color: var(--accent); }

/* ============ Адаптив ============ */
@media (min-width: 640px) {
    .hero-search { flex-direction: row; align-items: center; padding: 12px; }
    .hero-search input,
    .hero-search select { border: none; background: var(--bg-card-soft); padding: 12px 16px; }
    .hero-search .btn { width: auto; flex-shrink: 0; }

    .zones-grid { grid-template-columns: repeat(2, 1fr); }
    .cities-grid { grid-template-columns: repeat(3, 1fr); }
    .trust-row { grid-template-columns: repeat(2, 1fr); }
    .masters-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .city-grid { grid-template-columns: repeat(4, 1fr); }
    .body-map-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 32px;
    }

    .form-row { grid-template-columns: 1fr 1fr; }
    .form-row--avatar { grid-template-columns: 200px 1fr; }
    .form-fields { gap: 14px; }
    .checkbox-grid { grid-template-columns: repeat(2, 1fr); }
    .form-block { padding: 32px; }
    .form-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
    .form-actions .btn { width: auto; }
    .form-actions-note { flex-basis: 100%; }

    .schedule-edit-row { grid-template-columns: 200px 1fr; }
    .schedule-times { padding-left: 0; }

    .salon-media-row { flex-direction: row; align-items: flex-start; gap: 28px; }
    .salon-media-item--wide { flex: 1; }

    .footer-inner { grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
    .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 768px) {
    .profile-header { flex-direction: row; align-items: flex-start; gap: 24px; padding: 28px; }
    .profile-avatar { align-self: flex-start; width: 160px; height: 160px; }
    .profile-info { text-align: left; flex: 1; }
    .profile-rating, .profile-tags { justify-content: flex-start; }

    .salon-header { flex-direction: row; align-items: flex-start; padding: 28px; }
    .salon-logo { width: 120px; height: 120px; }
    .salon-masters-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
    .city-picker { display: inline-flex; }
    .main-nav { display: flex; }
    .header-actions .btn-ghost,
    .header-actions .btn-primary { display: inline-flex; }
    .burger { display: none; }
    .cities-grid { grid-template-columns: repeat(4, 1fr); }
    .trust-row { grid-template-columns: repeat(4, 1fr); gap: 24px; }
    .hero { padding: 56px 0 44px; }
    .hero-title { font-size: 40px; }
    .section { padding: 52px 0; }
    .section-title { font-size: 30px; }
}

@media (min-width: 900px) {
    .checkbox-grid { grid-template-columns: repeat(4, 1fr); }
    .account-stats { grid-template-columns: repeat(4, 1fr); }
    .profile-layout { grid-template-columns: 1fr 340px; gap: 28px; }
    .profile-side { position: sticky; top: calc(var(--header-h) + 16px); }
    .salon-layout { grid-template-columns: 1fr 340px; gap: 28px; }
    .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
/* ============================================================
   Статические страницы
   ============================================================ */
.static-page {
    max-width: 780px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow);
}
.static-page .section-title {
    margin-bottom: 24px;
    font-size: 32px;
}
.static-content {
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.7;
}
.static-content h2 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 28px 0 12px;
}
.static-content h2:first-child { margin-top: 0; }
.static-content p { margin: 0 0 14px; }
.static-content ul,
.static-content ol {
    margin: 0 0 16px;
    padding-left: 22px;
}
.static-content li { margin-bottom: 6px; }
.static-content a { color: var(--accent); font-weight: 500; }
.static-content a:hover { color: var(--accent-hover); }
.static-content b, .static-content strong { color: var(--text); font-weight: 600; }

/* Карта тела — превью */
.karta-tela-preview {
    margin: 24px 0;
}
.karta-tela-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.karta-tela-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    transition: all .2s;
}
.karta-tela-item:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}
.karta-tela-arrow {
    color: var(--text-muted);
    transition: color .15s, transform .2s;
}
.karta-tela-item:hover .karta-tela-arrow {
    color: var(--accent);
    transform: translateX(2px);
}

@media (min-width: 640px) {
    .karta-tela-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .static-page { padding: 28px 20px; }
    .static-page .section-title { font-size: 26px; }
    .static-content { font-size: 14.5px; }
}
/* ============================================================
   Каталог
   ============================================================ */
.catalog-head {
    margin-bottom: 24px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.catalog-side { order: 2; }
.catalog-main { order: 1; min-width: 0; }

.catalog-filters {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: calc(var(--header-h) + 16px);
}

.filter-block { display: flex; flex-direction: column; gap: 6px; }
.filter-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.filter-select {
    width: 100%;
    padding: 10px 32px 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-card-soft);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23828c88' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}
.filter-select:focus { border-color: var(--accent); }

.filter-radios { display: flex; flex-direction: column; gap: 6px; }
.filter-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    transition: border-color .15s, background-color .15s;
}
.filter-radio input { accent-color: var(--accent); }
.filter-radio:hover { border-color: var(--accent); }
.filter-radio:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.catalog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Карточка салона в каталоге */
.salon-card { position: relative; }
.type-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 10px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 6px;
}
.salon-card .vip-badge { top: 14px; right: 14px; }
.salon-avatar-square { border-radius: var(--radius); }
.salon-card .master-name a { color: var(--text); }
.salon-card .master-name a:hover { color: var(--accent); }
.master-card .master-name a { color: var(--text); }
.master-card .master-name a:hover { color: var(--accent); }

/* Пустой результат */
.catalog-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.catalog-empty-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}
.catalog-empty-text {
    color: var(--text-soft);
    font-size: 15px;
    margin: 0 0 20px;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 32px;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: all .15s;
}
.page-link:hover { border-color: var(--accent); color: var(--accent); }
.page-link.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 700;
}
.page-dots {
    color: var(--text-muted);
    padding: 0 4px;
}

/* Адаптив */
@media (min-width: 768px) {
    .catalog-layout {
        grid-template-columns: 260px 1fr;
        gap: 28px;
    }
    .catalog-side { order: 1; }
    .catalog-main { order: 2; }
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}
/* ============================================================
   Фотогалерея (в ЛК)
   ============================================================ */
.gallery-counter-wrap {
    font-family: var(--font-text);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 6px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}
.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border: none;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color .15s;
}
.gallery-remove:hover { background: #b12626; }
.gallery-add {
    aspect-ratio: 1;
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
    padding: 8px;
    transition: border-color .15s, color .15s, background-color .15s;
}
.gallery-add:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}
.gallery-add span:first-child { font-size: 28px; font-weight: 300; line-height: 1; }
.gallery-add-text { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }

/* ============================================================
   Фотогалерея на публичной карточке
   ============================================================ */
.profile-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 6px;
}
.profile-gallery-item {
    display: block;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    transition: transform .15s, border-color .15s;
}
.profile-gallery-item:hover { transform: scale(1.02); border-color: var(--accent); }
.profile-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (min-width: 640px) {
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
    .profile-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
    .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .profile-gallery { grid-template-columns: repeat(4, 1fr); gap: 10px; }
}
/* ============================================================
   Лайтбокс для галереи (публичные карточки)
   ============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 12, 11, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .2s;
}
.lightbox.is-open {
    display: flex;
    opacity: 1;
}
.lightbox-image {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    object-fit: contain;
    display: block;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s, transform .15s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.28); transform: rotate(90deg); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

/* При открытом лайтбоксе — блокируем прокрутку */
body.lightbox-open { overflow: hidden; }

@media (max-width: 640px) {
    .lightbox-nav { width: 42px; height: 42px; font-size: 18px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close { top: 12px; right: 12px; }
}

/* ============================================================
   Прогресс загрузки фото
   ============================================================ */
.upload-progress {
    margin-top: 12px;
    padding: 14px 16px;
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: none;
}
.upload-progress.is-active { display: block; }
.upload-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 8px;
}
.upload-progress-info b { color: var(--text); font-weight: 600; }
.upload-progress-bar {
    height: 6px;
    background: var(--border-strong);
    border-radius: 999px;
    overflow: hidden;
}
.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #6cb3a2);
    width: 0%;
    border-radius: 999px;
    transition: width .25s;
}
.upload-progress-note {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}
.gallery-remove.is-armed {
    background: #d33;
    width: 30px;
    height: 30px;
    font-size: 15px;
    font-weight: 700;
    animation: pulse-red 1s infinite;
}
.gallery-remove.is-armed:hover {
    background: #b12626;
}
@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(211, 51, 51, 0.6); }
    50% { box-shadow: 0 0 0 8px rgba(211, 51, 51, 0); }
}
/* ============================================================
   Зоны в каталоге — две группы
   ============================================================ */
.catalog-zone-group {
    margin-bottom: 40px;
}
.catalog-zone-group:last-child {
    margin-bottom: 0;
}
.catalog-zone-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.catalog-zone-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 999px;
    font-family: var(--font-text);
    font-size: 13px;
    font-weight: 600;
}
.catalog-zone-hint {
    color: var(--text-soft);
    font-size: 14px;
    margin: 0 0 18px;
    line-height: 1.5;
}

/* Бейдж «Специалист» */
.specialist-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #7fb69a, #5a9b7a);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}
.salon-card .specialist-badge {
    top: 44px;
}

/* Карточка-специалист — лёгкая акцентная подсветка */
.master-card.is-specialist {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft), var(--shadow);
}

/* ============================================================
   Образование и дипломы
   ============================================================ */
.education-qualification {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
}
.education-block {
    margin-bottom: 18px;
}
.education-block:last-child {
    margin-bottom: 0;
}
.education-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.education-text {
    color: var(--text-soft);
    font-size: 14.5px;
    line-height: 1.65;
}

/* ============================================================
   Галерея дипломов в форме мастера
   ============================================================ */
.diplomas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}
.diploma-item {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
}
.diploma-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.diploma-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border: none;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color .15s;
}
.diploma-remove:hover { background: #b12626; }
.diploma-add {
    aspect-ratio: 3 / 4;
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
    padding: 8px;
    transition: border-color .15s, color .15s, background-color .15s;
}
.diploma-add:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}
.diploma-add span:first-child {
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
}

@media (min-width: 640px) {
    .diplomas-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
@media (min-width: 900px) {
    .diplomas-grid { grid-template-columns: repeat(5, 1fr); }
}
/* ============================================================
   АДМИН-ПАНЕЛЬ
   ============================================================ */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 24px auto;
    padding: 0 20px;
    align-items: start;
}
.admin-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: sticky;
    top: calc(var(--header-h) + 16px);
}
.admin-sidebar-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.admin-nav a {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 500;
    transition: background-color .15s, color .15s;
}
.admin-nav a:hover { background: var(--accent-soft); color: var(--accent); }
.admin-nav a.is-active {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}
.admin-nav-back {
    display: block;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}
.admin-nav-back:hover { color: var(--accent); }

.admin-content { min-width: 0; }
.admin-h1 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 999px;
    font-family: var(--font-text);
    font-size: 14px;
    font-weight: 700;
}
.admin-sub {
    color: var(--text-soft);
    font-size: 14px;
    margin: 0 0 24px;
}
.admin-h2 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

/* Плитки статистики */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}
.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.admin-stat-card.is-accent {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.admin-stat-label {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.admin-stat-value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.admin-stat-detail {
    color: var(--text-soft);
    font-size: 12.5px;
    margin-top: 2px;
}
.admin-stat-detail .stat-pub { color: var(--accent); }
.admin-stat-detail .stat-draft { color: #b87600; }
.admin-stat-detail .stat-blocked { color: #b12626; }
.admin-stat-note {
    color: var(--text-muted);
    font-size: 12.5px;
    margin-top: 2px;
}
.admin-stat-link {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
}

/* Блоки */
.admin-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    margin-bottom: 20px;
}
.admin-block-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.admin-block-link {
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
}
.admin-empty {
    color: var(--text-muted);
    font-size: 14px;
    padding: 20px 0;
    text-align: center;
}

/* Таблицы */
.admin-table-wrap {
    overflow-x: auto;
    margin: 0 -22px;
    padding: 0 22px;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 700px;
}
.admin-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid var(--border-strong);
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}
.admin-table tr:hover { background: var(--bg-card-soft); }
.admin-nowrap { white-space: nowrap; }
.admin-center { text-align: center; }
.admin-link { color: var(--accent); font-weight: 500; }

/* Ячейка пользователя */
.admin-user-cell {
    display: flex;
    gap: 10px;
    align-items: center;
}
.admin-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}
.admin-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}
.admin-user-email, .admin-user-slug {
    font-size: 12px;
    color: var(--text-muted);
}
.admin-vip-star { color: var(--gold); margin-right: 4px; }

/* Бейджи */
.admin-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.admin-badge-ok { background: var(--accent-soft); color: var(--accent); }
.admin-badge-draft { background: rgba(255, 180, 80, 0.15); color: #b87600; }
.admin-badge-blocked { background: rgba(220, 80, 80, 0.12); color: #b12626; }
.admin-badge-empty { background: var(--bg-card-soft); color: var(--text-muted); }
.admin-badge-gold { background: var(--gold-soft); color: var(--gold-hover); }

/* Роль */
.admin-role {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.admin-role-master { background: var(--accent-soft); color: var(--accent); }
.admin-role-salon { background: var(--gold-soft); color: var(--gold-hover); }

/* Фильтры */
.admin-filters {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}
.admin-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}
.admin-tabs a {
    padding: 9px 16px;
    color: var(--text-soft);
    font-size: 13.5px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
}
.admin-tabs a:hover { color: var(--accent); }
.admin-tabs a.is-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 600;
}
.admin-search {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.admin-search input,
.admin-search select {
    padding: 10px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-card-soft);
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    outline: none;
}
.admin-search input { flex: 1; min-width: 200px; }
.admin-search input:focus,
.admin-search select:focus { border-color: var(--accent); }
.admin-btn {
    padding: 10px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.admin-btn:hover { background: var(--accent-hover); }

/* Кнопки действий */
.admin-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.admin-act-btn {
    padding: 5px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 5px;
    background: var(--bg-card-soft);
    color: var(--text-soft);
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
    text-decoration: none;
    display: inline-block;
}
.admin-act-btn:hover { border-color: var(--accent); color: var(--accent); }
.admin-act-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.admin-act-publish { border-color: var(--accent); color: var(--accent); }
.admin-act-publish:hover { background: var(--accent); color: #fff; }
.admin-act-hide { border-color: #b87600; color: #b87600; }
.admin-act-hide:hover { background: #b87600; color: #fff; }
.admin-act-vip { border-color: var(--gold); color: var(--gold-hover); }
.admin-act-vip:hover { background: var(--gold); color: #1a1a1a; }
.admin-act-verify { border-color: var(--accent); color: var(--accent); }
.admin-act-verify:hover { background: var(--accent); color: #fff; }
.admin-act-delete { border-color: #b12626; color: #b12626; }
.admin-act-delete:hover { background: #b12626; color: #fff; }
.admin-act-view { border-color: var(--border-strong); }

@media (max-width: 900px) {
    .admin-layout { grid-template-columns: 1fr; padding: 0 16px; }
    .admin-sidebar { position: static; }
    .admin-nav { flex-direction: row; flex-wrap: wrap; }
    .admin-h1 { font-size: 26px; }
}
/* ============================================================
   Биллинг: пополнение баланса
   ============================================================ */
.balance-card {
    background: linear-gradient(135deg, var(--accent) 0%, #1a3832 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    text-align: center;
}
body.theme-night .balance-card { background: linear-gradient(135deg, #26463a 0%, #10201a 100%); }
.balance-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
    margin-bottom: 8px;
}
.balance-value {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 8px;
}
.balance-note {
    font-size: 13px;
    opacity: 0.85;
}

.topup-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
}
.topup-howto, .topup-form-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}
.topup-steps {
    list-style: none;
    padding: 0;
    counter-reset: step;
    margin: 0 0 20px;
}
.topup-steps li {
    position: relative;
    padding: 12px 0 12px 44px;
    counter-increment: step;
    color: var(--text-soft);
    font-size: 14.5px;
    line-height: 1.6;
    border-bottom: 1px solid var(--border);
}
.topup-steps li:last-child { border-bottom: none; }
.topup-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 12px;
    width: 28px;
    height: 28px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}
.topup-warning {
    background: rgba(255, 180, 80, 0.1);
    border: 1px solid rgba(255, 180, 80, 0.3);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 13.5px;
    color: #b87600;
    line-height: 1.6;
    margin-bottom: 16px;
}
.topup-phone {
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    text-align: center;
}
.topup-phone-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.topup-phone-value {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.topup-hint {
    font-size: 12.5px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}

.account-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    margin-bottom: 20px;
}

.amount-plus { color: var(--accent); }
.amount-minus { color: #b12626; }

@media (min-width: 768px) {
    .topup-grid { grid-template-columns: 1fr 1fr; }
}
/* ============================================================
   Админка — ручное начисление + подсказки
   ============================================================ */
.admin-manual-form {
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.admin-manual-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.admin-manual-row .field-group {
    min-width: 180px;
    position: relative;
}
.admin-manual-status {
    margin-top: 12px;
    font-size: 14px;
    min-height: 20px;
}
.admin-manual-status .ok { color: var(--accent); font-weight: 600; }
.admin-manual-status .error { color: #b12626; }

.admin-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    max-height: 240px;
    overflow-y: auto;
    z-index: 10;
    margin-top: 4px;
}
.admin-suggest-item {
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}
.admin-suggest-item:last-child { border-bottom: none; }
.admin-suggest-item:hover { background: var(--accent-soft); }
.admin-suggest-item .muted {
    color: var(--text-muted);
    font-size: 12px;
    margin-left: 6px;
}
.muted { color: var(--text-muted); }
/* ============================================================
   VIP и продвижение — страница в ЛК
   ============================================================ */
.active-services {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
}
.active-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
}
.active-service-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card-soft);
}
.active-service-card.is-vip { border-color: var(--gold); background: var(--gold-soft); }
.active-service-card.is-verify { border-color: var(--accent); background: var(--accent-soft); }
.active-service-card.is-top { border-color: var(--accent); background: var(--accent-soft); }
.active-service-card.is-pin { border-color: var(--gold); background: var(--gold-soft); }
.active-service-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.is-vip .active-service-icon { color: var(--gold-hover); }
.is-pin .active-service-icon { color: var(--gold-hover); }
.active-service-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 2px;
}
.active-service-until {
    font-size: 13px;
    color: var(--text-soft);
}

.services-shop {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.shop-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 20px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    transition: border-color .15s;
}
.shop-item:hover { border-color: var(--border-strong); }
.shop-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
}
.shop-info { min-width: 0; }
.shop-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text);
}
.shop-desc {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}
.shop-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.shop-price {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

@media (min-width: 640px) {
    .active-services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .shop-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .shop-icon { margin: 0 auto; }
    .shop-action { align-items: center; }
}
/* ============================================================
   Подтверждение email
   ============================================================ */
.verify-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 180, 80, 0.12);
    border: 1px solid rgba(255, 180, 80, 0.3);
    border-radius: var(--radius);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.verify-banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 200px;
}
.verify-banner-text b {
    font-size: 15px;
    color: #b87600;
    font-weight: 600;
}
.verify-banner-text span {
    font-size: 13.5px;
    color: var(--text-soft);
    line-height: 1.5;
}

.verify-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
    margin: 0 auto 20px;
}
.verify-icon--ok {
    background: var(--accent-soft);
    color: var(--accent);
}
.verify-icon--error {
    background: rgba(220, 80, 80, 0.12);
    color: #b12626;
}
.verify-actions {
    margin-top: 20px;
}
/* ============================================================
   Бейдж «Выходной» на карточке
   ============================================================ */
.dayoff-badge {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(100, 150, 220, 0.15);
    color: #3a6cb0;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 6px;
    margin-bottom: 6px;
}

/* Сообщение о переключении статуса */
#status-toggle-message {
    font-size: 13px;
    line-height: 1.5;
}
.profile-today--vacation {
    background: rgba(255, 180, 80, 0.15);
    color: #b87600;
}
/* ============================================================
   Отзывы
   ============================================================ */
.reviews-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    margin-left: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 999px;
    font-family: var(--font-text);
    font-size: 13px;
    font-weight: 700;
    vertical-align: middle;
}

.reviews-summary {
    padding: 20px;
    background: var(--bg-card-soft);
    border-radius: var(--radius);
    margin-bottom: 20px;
}
.reviews-avg {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.reviews-avg-value {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.reviews-avg-stars { display: flex; gap: 2px; font-size: 22px; }
.reviews-avg-stars .star { color: var(--border-strong); }
.reviews-avg-stars .star.is-active { color: var(--gold); }
.reviews-avg-count {
    color: var(--text-soft);
    font-size: 14px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 8px;
}
.review-item {
    padding: 18px 20px;
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.review-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.review-author {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
}
.review-date {
    color: var(--text-muted);
    font-size: 12.5px;
}
.review-rating {
    display: flex;
    gap: 2px;
    font-size: 16px;
    margin-bottom: 8px;
}
.review-rating .star { color: var(--border-strong); }
.review-rating .star.is-active { color: var(--gold); }
.review-text {
    color: var(--text-soft);
    font-size: 14.5px;
    line-height: 1.65;
}

.review-reply {
    margin-top: 14px;
    padding: 14px 16px;
    background: var(--bg-card);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
}
.review-reply-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 6px;
}
.review-reply-text {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
}
.review-reply-date {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 6px;
}

.reviews-empty {
    color: var(--text-muted);
    font-size: 14px;
    padding: 20px 0;
    text-align: center;
}
.reviews-more {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    padding: 12px 0;
}

/* ---- Форма отзыва ---- */
.review-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.review-form .field-group { display: flex; flex-direction: column; gap: 6px; }
.review-form input[type="text"],
.review-form input[type="email"],
.review-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    outline: none;
}
.review-form input:focus, .review-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.review-form textarea { resize: vertical; min-height: 100px; }

.rating-input {
    display: flex;
    gap: 4px;
}
.rating-star-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    padding: 0;
    color: var(--border-strong);
    transition: color .15s, transform .15s;
}
.rating-star-btn:hover { transform: scale(1.1); }
.rating-star-btn.is-active, .rating-star-btn.is-hover {
    color: var(--gold);
}

.review-form-note {
    color: var(--text-muted);
    font-size: 12.5px;
    margin: 0;
    text-align: center;
}
.review-form-status {
    font-size: 14px;
    text-align: center;
    min-height: 20px;
}
.review-form-status .error { color: #b12626; }

.review-success {
    padding: 20px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
}
/* ============================================================
   Админка — отзывы
   ============================================================ */
.admin-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.admin-review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
}
.admin-review-card.status-pending { border-color: #d4a04a; }
.admin-review-card.status-published { border-color: var(--accent); }
.admin-review-card.status-rejected { border-color: #b12626; opacity: 0.7; }

.admin-review-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.admin-review-who { flex: 1; min-width: 200px; }
.admin-review-author {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 4px;
}
.admin-review-author .muted { color: var(--text-muted); font-weight: 400; font-size: 13px; }
.admin-review-meta {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.5;
}
.admin-review-meta .muted { color: var(--text-muted); }
.admin-review-rating { display: flex; gap: 2px; font-size: 18px; }
.admin-review-rating .star { color: var(--border-strong); }
.admin-review-rating .star.is-active { color: var(--gold); }
.admin-review-status { flex-shrink: 0; }

.admin-review-text {
    color: var(--text-soft);
    font-size: 14.5px;
    line-height: 1.65;
    padding: 14px 16px;
    background: var(--bg-card-soft);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}
.admin-review-reply {
    padding: 10px 14px;
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    color: var(--text-soft);
    line-height: 1.6;
    margin-bottom: 12px;
}

.admin-review-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Предзаполнение для залогиненных */
.review-user-info {
    padding: 12px 16px;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
}
.review-user-info .muted {
    color: var(--text-muted);
    font-size: 13px;
    margin-left: 4px;
}
/* ============================================================
   Кнопка «В избранное» + бейджи
   ============================================================ */
.fav-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s, color .15s, transform .15s;
    z-index: 6;
    padding: 0;
}
.fav-btn:hover {
    color: #d94670;
    border-color: #d94670;
    transform: scale(1.05);
}
.fav-btn.is-active {
    color: #d94670;
    border-color: #d94670;
    background: rgba(217, 70, 112, 0.1);
}
.fav-btn:disabled { opacity: 0.5; cursor: wait; }

/* VIP сдвигаем влево от ♥ */
.master-card .vip-badge,
.salon-card .vip-badge {
    right: 58px;
}

/* Специалист-бейдж — только если в карточке нет VIP. Иначе ниже */
.master-card .specialist-badge {
    top: 14px;
    left: 14px;
}
.master-card .vip-badge + .specialist-badge {
    top: 48px;
}
.specialist-badge--salon {
    top: 48px;
    left: 14px;
}
/* Кнопка ♥ на странице анкеты (инлайн рядом с именем) */
.fav-btn--inline {
    position: static;
    display: inline-flex;
    vertical-align: middle;
    margin-left: 12px;
    width: 40px;
    height: 40px;
    font-size: 20px;
    background: transparent;
    border: 1px solid var(--border);
}
.fav-btn--inline:hover {
    background: rgba(217, 70, 112, 0.08);
}
.fav-btn--inline.is-active {
    background: rgba(217, 70, 112, 0.12);
    border-color: #d94670;
    color: #d94670;
}
/* Бейдж «Документы проверены» в блоке Образование */
.education-verified {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--gold), #f3d274);
    color: #1a1a1a;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 18px;
}
.verified-mark-inline {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    color: #8a6d2e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}
/* ============================================================
   Карта
   ============================================================ */
.karta-city-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 20px;
    scrollbar-width: thin;
}
.karta-city-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 13.5px;
    font-weight: 500;
    transition: all .15s;
    white-space: nowrap;
}
.karta-city-tab:hover { border-color: var(--accent); color: var(--accent); }
.karta-city-tab.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

.karta-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.karta-filter-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-soft);
    transition: border-color .15s, background-color .15s;
}
.karta-filter-item input { display: none; }
.karta-filter-item:hover { border-color: var(--accent); }
.karta-filter-item.is-active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

/* Маркеры */
.map-marker-pin {
    width: 28px;
    height: 28px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    position: relative;
}
.map-marker-pin--master { background: #2c5e53; }
.map-marker-pin--salon { background: #d4af37; }

/* Popup */
.leaflet-popup-content-wrapper {
    border-radius: var(--radius) !important;
    padding: 0 !important;
    overflow: hidden;
}
.leaflet-popup-content {
    margin: 0 !important;
    min-width: 240px;
}
.map-popup {
    display: flex;
    gap: 12px;
    padding: 14px;
}
.map-popup-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--accent-soft);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}
.map-popup-avatar img { width: 100%; height: 100%; object-fit: cover; }
.map-popup-info { min-width: 0; }
.map-popup-name {
    font-size: 15px;
    margin-bottom: 2px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.map-popup-type {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.map-popup-metro {
    font-size: 12.5px;
    color: var(--text-soft);
    margin-bottom: 4px;
}
.map-popup-rating {
    font-size: 12.5px;
    color: var(--text-soft);
    margin-bottom: 8px;
}
.map-popup-link {
    display: inline-block;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}
.popup-vip {
    display: inline-block;
    padding: 2px 6px;
    background: linear-gradient(135deg, var(--gold), #f3d274);
    color: #1a1a1a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    border-radius: 4px;
}
/* ============================================================
   Карта на странице профиля
   ============================================================ */
.map-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    margin-bottom: 16px;
}
.map-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.map-info-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
}
.map-info-value {
    font-size: 14.5px;
    color: var(--text);
    font-weight: 500;
}
.profile-map {
    width: 100%;
    height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    margin-bottom: 10px;
    z-index: 1;
}
.map-note {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 8px 0 0;
    line-height: 1.5;
}
.map-popup-simple {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
}
.map-popup-simple small {
    color: var(--text-muted);
}
/* Скрываем логотип и флаг OSM в правом нижнем углу карты */
.leaflet-control-attribution {
    display: none !important;
}

/* Скрываем ссылки на OSM (там флаг) */
.leaflet-container a[href*="openstreetmap"] {
    display: none !important;
}

/* Скрываем верхний правый угол карты — там обычно флаг Украины */
.leaflet-top.leaflet-right {
    display: none !important;
}
/* Карта в форме редактирования */
#edit-profile-map {
    height: 360px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 10px;
    z-index: 1;
}
#map-current-coords {
    font-size: 12.5px;
    color: var(--text-muted);
    min-height: 20px;
}
.promo-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f7c948, #f09b1a);
    color: #3a2a00;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}
.promo-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff8e6 0%, #ffe9b8 100%);
    border: 1px solid #f0c45a;
    box-shadow: 0 2px 8px rgba(240, 196, 90, 0.15);
}
.promo-block-icon {
    font-size: 28px;
    flex-shrink: 0;
}
.promo-block-body {
    flex: 1;
    min-width: 0;
}
.promo-block-title {
    font-weight: 700;
    font-size: 15px;
    color: #3a2a00;
    line-height: 1.3;
}
.promo-block-until {
    font-size: 13px;
    color: #7a5a10;
    margin-top: 2px;
}
.promo-block-until b {
    color: #c0392b;
}
.promo-city-filter {
    margin: 20px 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.promo-city-filter select {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    background: #fff;
    min-width: 220px;
}
/* Мобильные карточки — фото на всю ширину */
@media (max-width: 640px) {
    .master-card {
        padding: 0;
        overflow: hidden;
    }
    .master-card-head {
        display: block;
    }
    .master-avatar {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        border-radius: 12px 12px 0 0;
        margin: 0 0 12px;
    }
    .master-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px 12px 0 0;
    }
    .master-avatar-placeholder {
        width: 100%;
        height: 100%;
        font-size: 48px;
    }
    .master-meta {
        padding: 0 16px;
    }
    /* кнопка "Смотреть анкету" тоже на всю ширину */
    .master-card .btn-block {
        margin: 12px 16px 16px;
        width: calc(100% - 32px);
    }
}
/* ============================================================
   КАРТОЧКИ — фото на всю ширину (десктоп)
   ============================================================ */
.master-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: box-shadow .2s, transform .2s;
}
.master-card {
    transition: box-shadow .25s ease, border-color .25s ease;
}
.master-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
    /* убрали transform: translateY, чтобы карточка не «прыгала» */
}

/* Шапка карточки — фото сверху, всё остальное снизу */
.master-card-head {
    display: block;
    margin: 0;
}

/* ============================================================
   Карточки каталога — круглый крупный аватар (десктоп)
   ============================================================ */
@media (min-width: 641px) {

    .master-card {
        padding: 24px 20px 20px;
        text-align: center;
    }

    .master-card-head {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 14px;
    }

    /* Круглый крупный аватар */
    .master-avatar {
        width: 160px;
        height: 160px;
        border-radius: 50%;
        overflow: hidden;
        margin: 0 auto 16px;
        background: #f0efeb;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
        flex-shrink: 0;
        border: 4px solid #fff;
    }
    .master-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .master-avatar > span {
        font-family: var(--font-display);
        font-size: 64px;
        font-weight: 700;
        color: var(--accent, #2d6a4f);
    }

    /* Салоны — тот же круг */
    .master-avatar.salon-avatar-square {
        border-radius: 50%;
    }

    /* Мета по центру */
    .master-meta {
        padding: 0;
        text-align: center;
        width: 100%;
    }
    .master-name {
        font-size: 18px;
        margin: 0 0 6px;
    }
    .master-rating {
        justify-content: center;
    }
    .master-exp {
        text-align: center;
    }

    /* Бейджи по центру */
    .master-badges {
        justify-content: center;
        padding: 12px 0 0;
    }

    /* Цена по центру */
    .master-price {
        justify-content: center;
        padding: 14px 0 0;
    }

    /* Кнопка на всю ширину карточки с отступами */
    .master-card .btn-block {
        margin: 14px 0 0;
        width: 100%;
    }

    /* Промо-плашка сверху на всю ширину */
    .master-card .promo-badge {
        margin: -24px -20px 16px;
        border-radius: 18px 18px 0 0;
    }
}

/* Салон — то же самое, без отдельного вида */
.master-avatar.salon-avatar-square {
    border-radius: 0;
}

/* Заглушка (если нет фото) */
.master-avatar > span,
.master-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 700;
    color: var(--accent, #2d6a4f);
}

/* Мета — имя, рейтинг, стаж */
.master-meta {
    padding: 16px 18px 0;
    text-align: left;
}
.master-name {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}
.master-name a {
    color: inherit;
    text-decoration: none;
}
.master-name a:hover {
    color: var(--accent, #2d6a4f);
}
.master-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    margin-bottom: 4px;
}
.rating-star  { color: #f0b429; }
.rating-value { font-weight: 600; }
.rating-count { color: #888; }
.master-exp {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Бейджи */
.master-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 18px 0;
}
.master-badges .badge {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 8px;
    background: #f0efeb;
    color: #444;
}
.master-badges .badge-gold {
    background: #fbeecb;
    color: #8a6d1a;
}

/* Цена */
.master-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 12px 18px 0;
}
.price-label  { color: #888; font-size: 13px; }
.price-value  { font-size: 22px; font-weight: 700; color: #1a1a1a; }
.price-unit   { color: #888; font-size: 13px; }

/* Кнопка */
.master-card .btn-block {
    margin: 14px 18px 18px;
    width: calc(100% - 36px);
}

/* Бейджи поверх карточки */
.master-card .vip-badge {
    position: absolute;
    top: 14px; right: 14px;
    z-index: 2;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    background: linear-gradient(135deg, #f7c948, #f09b1a);
    color: #3a2a00;
}
.master-card .type-badge {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 2;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    background: #2d6a4f;
    color: #fff;
}
.master-card .specialist-badge {
    position: absolute;
    top: 14px; right: 14px;
    z-index: 2;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    background: #2d6a4f;
    color: #fff;
}
.master-card .specialist-badge--salon {
    top: 44px;
}

/* Плашка «Сегодня выходной» */
.master-card .dayoff-badge {
    display: inline-block;
    margin: 12px 18px 0;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 8px;
    background: #fde2e2;
    color: #8a2a2a;
}

/* Промо-плашка — над фото */
.master-card .promo-badge {
    display: block;
    margin: 0;
    padding: 6px 12px;
    border-radius: 0;
    background: linear-gradient(90deg, #f7c948, #f09b1a);
    color: #3a2a00;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* ============================================================
   Сердечко избранного — выразительное
   ============================================================ */
.fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #b9b9b9;             /* серое, когда НЕ в избранном */
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform .15s, color .15s, background .15s, box-shadow .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
}
.fav-btn:hover {
    transform: scale(1.10);
    color: #e74c3c;
}

/* АКТИВНОЕ состояние — красная заливка, чёткий красный цвет */
.fav-btn.is-active {
    color: #fff;
    background: #e74c3c;
    box-shadow: 0 4px 14px rgba(231, 76, 60, .55);
}
.fav-btn.is-active:hover {
    background: #d63b2c;
    transform: scale(1.10);
}
.profile-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.profile-since {
    font-size: 12px;
    color: var(--text-muted, #888);
    text-align: center;
    white-space: nowrap;
}
/* Вкладки на главной */
.home-tabs {
    display: flex;
    gap: 8px;
    margin: 4px 0 20px;
    border-bottom: 1px solid var(--border);
}

.home-tab {
    background: none;
    border: none;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .15s, border-color .15s;
    font-family: inherit;
}
.home-tab:hover {
    color: var(--text);
}
.home-tab.is-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.home-tab-count {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    font-size: 12px;
    font-weight: 700;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 10px;
}

/* Сетка карточек — 4 в ряд на десктопе */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1280px) {
    .catalog-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
    .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .catalog-grid { grid-template-columns: 1fr; }
}
/* Реферальная программа */
.referral-hero {
    background: linear-gradient(135deg, #2c5e53 0%, #3a7a6a 100%);
    color: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 8px 24px rgba(44, 94, 83, .2);
}
.referral-hero-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
}
.referral-hero-sub {
    font-size: 14px;
    line-height: 1.55;
    opacity: .9;
}

.referral-link-box {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
}
.referral-link-box input {
    flex: 1;
    min-width: 240px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: monospace;
    font-size: 14px;
    background: #f8f8f6;
    color: #2c5e53;
    font-weight: 600;
}
.referral-link-box input:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
}
.referral-link-box .btn {
    padding: 12px 24px;
    border-radius: 10px;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .referral-hero {
        padding: 22px 20px;
    }
    .referral-hero-title {
        font-size: 18px;
    }
    .referral-link-box {
        flex-direction: column;
    }
    .referral-link-box .btn {
        width: 100%;
    }
}
/* QR-код на странице пополнения */
.topup-qr {
    margin-top: 20px;
    padding: 20px;
    background: #f8f8f6;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
}
.topup-qr-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 14px;
    color: var(--text);
}
.topup-qr-image {
    display: inline-block;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}
.topup-qr-image img {
    display: block;
    width: 220px;
    height: 220px;
    object-fit: contain;
}
.topup-qr-hint {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 640px) {
    .topup-qr-image img {
        width: 180px;
        height: 180px;
    }
}
/* Список PR-площадок */
.press-blog-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #fff8e6 0%, #ffe9b8 100%);
    border: 1px solid #f0c45a;
    border-radius: 14px;
    padding: 20px 24px;
    margin-top: 24px;
}
.press-blog-banner b {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
    color: #3a2a00;
}
.press-blog-banner p {
    margin: 0;
    font-size: 13px;
    color: #7a5a10;
    max-width: 460px;
}

.press-sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.press-site-card {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, border-color .2s, transform .15s;
}
.press-site-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
    text-decoration: none;
}
.press-site-name {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.press-site-topic {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
    line-height: 1.4;
}
.press-site-url {
    font-size: 12px;
    color: var(--accent);
    word-break: break-all;
}

@media (max-width: 640px) {
    .press-sites-grid { grid-template-columns: 1fr; }
    .press-blog-banner { padding: 16px; }
}
/* ============================================================
   Галерея фотографий в профиле мастера / салона
   ============================================================ */
.profile-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.profile-gallery-item {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;      /* квадратные превью */
    border-radius: 10px;
    overflow: hidden;
    background: #f0efeb;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}

.profile-gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.profile-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Дипломы могут быть не квадратными — им отдельный вид */
.education-block .profile-gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

/* Мобильная версия — крупнее превью */
@media (max-width: 640px) {
    .profile-gallery {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 8px;
    }
}
/* ============================================================
   КОМПАКТНЫЕ КАРТОЧКИ КАТАЛОГА — override
   Ставить в САМЫЙ КОНЕЦ style.css
   ============================================================ */

/* flex уже есть, но гарантируем + прижимаем кнопку вниз */
.master-card {
    display: flex;
    flex-direction: column;
}

/* Кнопка всегда внизу карточки, съедает пустоту у коротких карточек */
.master-card .btn-block {
    margin-top: auto;
}

@media (min-width: 641px) {

    /* --- Карточка --- */
    .master-card {
        padding: 14px 16px 14px;
        gap: 6px;                    /* было 14px */
        text-align: center;
    }
    .master-card-head {
        margin-bottom: 0;            /* было 14px */
    }

    /* --- Аватар --- */
    .master-avatar {
        width: 108px;                /* было 160px */
        height: 108px;
        margin: 0 auto 8px;          /* было 16px */
        border: 3px solid #fff;
        box-shadow: 0 4px 14px rgba(0, 0, 0, .10);
    }
    .master-avatar > span {
        font-size: 42px;             /* было 64px */
    }

    /* --- Имя / рейтинг / стаж --- */
    .master-meta {
        padding: 0;                  /* было 16px 18px 0 */
        text-align: center;          /* было left */
    }
    .master-name {
        font-size: 16px;             /* было 18px */
        margin: 0 0 3px;
        line-height: 1.2;
    }
    .master-rating {
        justify-content: center;
        margin-bottom: 2px;
        font-size: 13px;
    }
    .master-exp {
        text-align: center;
        font-size: 12.5px;
        line-height: 1.3;
    }

    /* --- Бейджи --- */
    .master-badges {
        justify-content: center;
        padding: 4px 0 0;            /* было 12px 18px 0 */
        gap: 4px;
        min-height: 0;
    }
    .master-badges .badge {
        padding: 3px 8px;
        font-size: 11px;
        border-radius: 6px;
    }

    /* --- Цена --- */
    .master-price {
        justify-content: center;
        padding: 4px 0 0;            /* было 12px 18px 0 */
        border-top: 0;
        gap: 4px;
    }
    .master-price .price-value { font-size: 19px; }
    .master-price .price-label,
    .master-price .price-unit  { font-size: 12px; }

    /* --- Кнопка --- */
    .master-card .btn-block {
        margin: auto 0 0;            /* прижимает к низу */
        width: 100%;
        padding: 9px 18px;
        font-size: 13.5px;
    }

    /* --- Промо-плашка сверху --- */
    .master-card .promo-badge {
        margin: -14px -16px 6px;
        border-radius: 17px 17px 0 0;
        padding: 5px 10px;
        font-size: 12px;
    }

    /* --- Угловые плашки: VIP / тип / специалист / ♥ --- */
    .master-card .vip-badge,
    .master-card .type-badge,
    .master-card .specialist-badge {
        top: 8px;
        padding: 3px 8px;
        font-size: 10px;
        border-radius: 6px;
    }
    .master-card .vip-badge        { right: 8px; }
    .master-card .type-badge       { left: 8px; }
    .master-card .specialist-badge { left: 8px; }
    /* Если specialist внутри salon-card — сдвигаем ниже type-badge */
    .master-card .specialist-badge--salon { top: 30px; }
    /* Если specialist после vip — тоже сдвигаем */
    .master-card .vip-badge + .specialist-badge { top: 30px; }

    .master-card .fav-btn {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    /* Если есть VIP — сердечко уезжает вниз, под VIP */
    .master-card .vip-badge ~ .fav-btn { top: 34px; }

    /* --- «Сегодня выходной» над аватаром --- */
    .master-card .dayoff-badge {
        margin: 0 0 6px;
        padding: 3px 8px;
        font-size: 11px;
    }
}
/* ============================================================
   Убираем пустоту вокруг фильтра на главной
   ============================================================ */
.hero {
    padding: 28px 0 8px;          /* было 44px 0 36px */
}
.hero-title {
    margin-bottom: 6px;            /* было 12px */
}
.hero-sub {
    margin: 0 auto 18px;           /* было 0 auto 30px */
}
.hero-search {
    margin: 0 auto 0;              /* было 0 auto 20px */
    padding: 10px;                 /* было 14px */
}
.hero-search input,
.hero-search select {
    padding: 10px 14px;            /* было 12px 16px */
}

/* Первая секция после hero — уменьшаем верхний отступ */
.hero + .section {
    padding-top: 20px;             /* было 40px */
}

/* Если между ними что-то есть — для надёжности */
.hero ~ .section:first-of-type {
    padding-top: 20px;
}

@media (min-width: 860px) {
    .hero { padding: 32px 0 8px; } /* было 56px 0 44px */
    .hero-title { font-size: 36px; }
    .hero + .section { padding-top: 24px; }
}
/* Логотип в футере — картинка слева от текста */
.footer-col .logo-footer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
}
.footer-col .logo-footer .logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.footer-col .logo-footer .logo-text {
    line-height: 1;
    white-space: nowrap;
}
/* ============================================================
   Плашка «Обновление» — одна строка, с анимациями
   ============================================================ */

.update-banner-wrap { padding: 10px 0 4px; }

.update-banner {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;

    border-radius: 14px;
    padding: 12px 20px;
    color: #16241f;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, #fffdf8 0%, #f7f3ea 50%, #eef4f1 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 0 0 1px rgba(212, 175, 55, 0.20),
        0 12px 32px -18px rgba(20, 49, 43, 0.28);
    animation: ub-rise 0.7s cubic-bezier(0.22, 0.9, 0.28, 1) both;
}

body.theme-night .update-banner {
    color: #eaf3ef;
    background: linear-gradient(135deg, #1b342e 0%, #152a25 55%, #10211d 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 0 0 1px rgba(212, 175, 55, 0.22),
        0 12px 32px -18px rgba(0, 0, 0, 0.6);
}

@keyframes ub-rise {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.update-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.25);
    animation: ub-frame 4.5s ease-in-out infinite;
    z-index: 0;
}
@keyframes ub-frame {
    0%, 100% { box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.22); }
    50%      { box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.55); }
}

/* ============================================================
   Живые слои
   ============================================================ */
.ub-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.ub-layer--mesh {
    background:
        radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.18), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(82, 148, 133, 0.20), transparent 42%);
    animation: ub-mesh 16s ease-in-out infinite;
}
@keyframes ub-mesh {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(2%, -2%, 0) scale(1.05); }
}
.ub-layer--grid {
    background-image:
        linear-gradient(rgba(20, 49, 43, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 49, 43, 0.045) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(ellipse at 30% 50%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 30%, transparent 80%);
    opacity: 0.6;
    animation: ub-grid 22s linear infinite;
}
@keyframes ub-grid {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 26px 26px, 26px 26px; }
}
.ub-layer--glow { inset: auto; width: 220px; height: 220px; border-radius: 50%; filter: blur(42px); opacity: 0.85; }
.ub-layer--glow-1 {
    top: -110px; right: -50px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.55), transparent 70%);
    animation: ub-float-1 12s ease-in-out infinite;
}
.ub-layer--glow-2 {
    bottom: -130px; left: -70px;
    background: radial-gradient(circle, rgba(82, 148, 133, 0.5), transparent 70%);
    animation: ub-float-2 14s ease-in-out infinite;
}
@keyframes ub-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.75; }
    50%      { transform: translate(-22px, 18px) scale(1.15); opacity: 1; }
}
@keyframes ub-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.75; }
    50%      { transform: translate(20px, -16px) scale(1.18); opacity: 1; }
}
.ub-layer--shine {
    background: linear-gradient(105deg,
        transparent 35%,
        rgba(255, 255, 255, 0.55) 48%,
        rgba(255, 255, 255, 0.85) 50%,
        rgba(255, 255, 255, 0.55) 52%,
        transparent 65%);
    transform: translateX(-100%);
    animation: ub-sweep 6s ease-in-out infinite;
    mix-blend-mode: overlay;
    opacity: 0.75;
}
@keyframes ub-sweep {
    0%       { transform: translateX(-100%); }
    45%,100% { transform: translateX(100%); }
}
.ub-layer--noise {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.35'/></svg>");
    opacity: 0.06;
    mix-blend-mode: overlay;
}

.ub-visual, .ub-ring, .ub-orb, .ub-emoji,
.ub-badge-shimmer { display: none !important; }

/* ============================================================
   Контент
   ============================================================ */
.update-banner > * { position: relative; z-index: 1; }

.ub-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a6a12;
    background: linear-gradient(135deg, rgba(245, 220, 138, 0.5), rgba(212, 175, 55, 0.2));
    border: 1px solid rgba(212, 175, 55, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    white-space: nowrap;
    flex: 0 0 auto;
    animation:
        ub-slide-in 0.55s cubic-bezier(0.22, 0.9, 0.28, 1) 0.15s both,
        ub-badge-float 4s ease-in-out 1s infinite;
}
@keyframes ub-slide-in {
    from { opacity: 0; transform: translateX(-14px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes ub-badge-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-2px); }
}
body.theme-night .ub-badge {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.28), rgba(243, 210, 116, 0.1));
    border-color: rgba(212, 175, 55, 0.5);
    color: #f3d274;
}

.ub-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #4f9e7f;
    animation: ub-pulse 2.4s ease-out infinite;
}
@keyframes ub-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(79, 158, 127, 0.7); }
    70%  { box-shadow: 0 0 0 7px rgba(79, 158, 127, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 158, 127, 0); }
}

.update-banner-title {
    font-family: var(--font-text, inherit);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.005em;
    margin: 0;
    color: #1f2f29;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: ub-fade-up 0.6s cubic-bezier(0.22, 0.9, 0.28, 1) 0.28s both;
}
@keyframes ub-fade-up {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.update-banner-title em {
    font-style: normal;
    font-weight: 600;
    background: linear-gradient(100deg,
        #b89628 0%, #e0bd52 25%, #b89628 50%, #e0bd52 75%, #b89628 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: ub-em-shift 6s linear infinite;
}
@keyframes ub-em-shift {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}
.update-banner-title b { color: #8a6a12; font-weight: 600; }
body.theme-night .update-banner-title { color: #fff; }
body.theme-night .update-banner-title b { color: #f3d274; }

.ub-title-soft { display: none; }

/* ============================================================
   CTA — без теней, фон мерцает сам по себе
   ============================================================ */
.ub-cta {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: #1a1a1a !important;
    text-decoration: none;

    /* Золотой градиент — он же «фон-кнопка», он же мерцание */
    background: linear-gradient(
        100deg,
        #f5dc8a 0%,
        #d4af37 20%,
        #fbeaa8 38%,
        #d4af37 55%,
        #b89628 75%,
        #f5dc8a 100%
    );
    background-size: 260% 100%;

    box-shadow: none;            /* ← теней нет */
    transition: transform 0.22s ease, filter 0.25s ease;
    white-space: nowrap;
    flex: 0 0 auto;
    margin-left: auto;

    animation:
        ub-cta-in      0.6s cubic-bezier(0.22, 0.9, 0.28, 1) 0.4s both,
        ub-cta-shimmer 6s   ease-in-out 1.2s infinite;
}

@keyframes ub-cta-in {
    from { opacity: 0; transform: translateX(14px) scale(0.96); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* Золотая волна едет по кнопке — она же мерцание фона */
@keyframes ub-cta-shimmer {
    0%   { background-position:   0% center; }
    100% { background-position: 200% center; }
}

.ub-cta:hover {
    transform: translateY(-2px) scale(1.015);
    color: #000 !important;
    filter: brightness(1.06);
}

.ub-cta:active {
    transform: translateY(0) scale(1);
}

/* Тонкий пробегающий блик — оставил, чтобы усилить мерцание */
.ub-cta-shine {
    position: absolute;
    top: -20%; left: -70%;
    width: 40%; height: 140%;
    pointer-events: none;
    background: linear-gradient(
        100deg,
        transparent 0%,
        rgba(255, 255, 255, 0.55) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: ub-shine 4s ease-in-out infinite;
    mix-blend-mode: overlay;
}
@keyframes ub-shine {
    0%       { left: -70%; }
    55%,100% { left: 130%; }
}

.ub-cta-arrow {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.22, 0.9, 0.28, 1);
    animation: ub-arrow-nudge 2.4s ease-in-out infinite;
}
@keyframes ub-arrow-nudge {
    0%, 70%, 100% { transform: translateX(0); }
    85%           { transform: translateX(3px); }
}
.ub-cta:hover .ub-cta-arrow {
    animation-play-state: paused;
    transform: translateX(6px);
}

/* Лишние блоки от старой версии */
.update-banner-text,
.update-banner-cities,
.update-banner-actions { display: none; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 720px) {
    .update-banner { padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
    .update-banner-title {
        flex: 1 1 100%;
        order: 3;
        font-size: 13px;
        white-space: normal;
    }
    .ub-badge { order: 1; }
    .ub-cta { order: 2; }
}

@media (max-width: 480px) {
    .update-banner-wrap { padding: 8px 0 2px; }
    .update-banner { padding: 10px 14px; }
    .update-banner-title { font-size: 12.5px; }
    .ub-cta { padding: 8px 14px; font-size: 12px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .update-banner,
    .update-banner::after,
    .ub-badge, .ub-badge-dot,
    .update-banner-title, .update-banner-title em,
    .ub-cta, .ub-cta-shine, .ub-cta-arrow,
    .ub-layer--mesh, .ub-layer--grid,
    .ub-layer--glow-1, .ub-layer--glow-2,
    .ub-layer--shine { animation: none !important; }
    .ub-cta, .ub-cta-arrow { transition: none !important; }
}