/* Public Salon Pages — sp- prefix */
:root {
    --sp-primary: #00d4aa;
    --sp-primary-hover: #00b894;
    --sp-bg: #fafbfc;
    --sp-surface: #ffffff;
    --sp-text: #1a1a2e;
    --sp-text-secondary: #636e7b;
    --sp-text-muted: #a0aab4;
    --sp-border: #e5e8eb;
    --sp-radius: 12px;
    --sp-radius-sm: 8px;
    --sp-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --sp-shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --sp-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --sp-container: 960px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --sp-bg: #0f1117;
        --sp-surface: #1a1d27;
        --sp-text: #e8eaed;
        --sp-text-secondary: #9aa0a8;
        --sp-text-muted: #5f6570;
        --sp-border: #2a2d37;
        --sp-shadow: 0 1px 3px rgba(0,0,0,.2);
        --sp-shadow-md: 0 4px 12px rgba(0,0,0,.3);
    }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.sp-body {
    font-family: var(--sp-font);
    background: var(--sp-bg);
    color: var(--sp-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.sp-container {
    max-width: var(--sp-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.sp-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--sp-surface);
    border-bottom: 1px solid var(--sp-border);
    backdrop-filter: blur(12px);
}
.sp-header .sp-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}
.sp-header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: .9375rem;
    color: var(--sp-text);
    text-decoration: none;
}
.sp-header__nav { display: flex; gap: 8px; align-items: center; }

/* Buttons */
.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    font-weight: 500;
    font-size: .875rem;
    border: none;
    border-radius: var(--sp-radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all .15s ease;
    padding: 8px 20px;
    white-space: nowrap;
}
.sp-btn--primary {
    background: var(--sp-primary);
    color: #0a0a0f;
}
.sp-btn--primary:hover { background: var(--sp-primary-hover); }
.sp-btn--outline {
    background: transparent;
    border: 1px solid var(--sp-border);
    color: var(--sp-text);
}
.sp-btn--outline:hover { border-color: var(--sp-primary); color: var(--sp-primary); }
.sp-btn--lg { padding: 12px 32px; font-size: 1rem; border-radius: var(--sp-radius); }
.sp-btn--sm { padding: 6px 14px; font-size: .8125rem; }
.sp-btn--xs { padding: 4px 10px; font-size: .75rem; }

/* Hero */
.sp-hero {
    padding: 40px 0 24px;
}
.sp-hero__content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.sp-hero__info {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.sp-hero__logo {
    width: 80px;
    height: 80px;
    border-radius: var(--sp-radius);
    object-fit: cover;
    flex-shrink: 0;
}
.sp-hero__logo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sp-primary);
    color: #0a0a0f;
    font-size: 2rem;
    font-weight: 700;
}
.sp-hero__title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 6px;
}
.sp-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--sp-text-secondary);
    font-size: .875rem;
}
.sp-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.sp-hero__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.sp-contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: 100px;
    font-size: .8125rem;
    color: var(--sp-text);
    text-decoration: none;
    transition: border-color .15s;
}
.sp-contact-chip:hover { border-color: var(--sp-primary); }
.sp-contact-chip--muted { color: var(--sp-text-muted); }

/* Stats */
.sp-stats {
    padding: 12px 0;
    border-top: 1px solid var(--sp-border);
    border-bottom: 1px solid var(--sp-border);
}
.sp-stats__grid {
    display: flex;
    gap: 32px;
    justify-content: center;
}
.sp-stat {
    font-size: .875rem;
    color: var(--sp-text-secondary);
    font-weight: 500;
    text-decoration: none;
}
a.sp-stat:hover { color: var(--sp-primary); }

/* Tip section (QR payment to master) */
.sp-tip-section { padding: 16px 0; }
.sp-tip-card {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(34,197,94,.08), rgba(16,185,129,.04));
    border: 1px solid rgba(34,197,94,.25);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}
.sp-tip-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(34,197,94,.08), transparent 70%);
    pointer-events: none;
}
.sp-tip-content { flex: 1; min-width: 0; position: relative; z-index: 1; }
.sp-tip-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #14532d;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.sp-tip-desc {
    font-size: 14px;
    color: #3f6b4a;
    margin-bottom: 16px;
    line-height: 1.5;
}
.sp-tip-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: #16a34a;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(34,197,94,.35);
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px;
}
.sp-tip-btn:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34,197,94,.4);
}
.sp-tip-share {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #5b8169;
}
.sp-tip-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: rgba(255,255,255,.6);
    border: 1px solid rgba(34,197,94,.25);
    border-radius: 6px;
    color: #16a34a;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.sp-tip-copy:hover { background: #ffffff; border-color: #16a34a; }
.sp-tip-qr-wrap {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.sp-tip-qr {
    width: 140px;
    height: 140px;
    background: #ffffff;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    display: block;
}

@media (max-width: 640px) {
    .sp-tip-card { flex-direction: column; text-align: center; padding: 20px; }
    .sp-tip-share { justify-content: center; flex-wrap: wrap; }
    .sp-tip-qr { width: 120px; height: 120px; }
}

/* Sections */
.sp-section {
    padding: 32px 0;
}
.sp-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.sp-section__title {
    font-size: 1.25rem;
    font-weight: 600;
}
.sp-link {
    font-size: .875rem;
    color: var(--sp-primary);
    text-decoration: none;
    font-weight: 500;
}
.sp-link:hover { text-decoration: underline; }

/* Services grid (cards) */
.sp-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}
.sp-service-card {
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: box-shadow .15s;
}
.sp-service-card:hover { box-shadow: var(--sp-shadow-md); }
.sp-service-card__name {
    font-weight: 600;
    font-size: .9375rem;
}
.sp-service-card__details {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--sp-text-secondary);
    font-size: .8125rem;
}
.sp-service-card__price {
    font-weight: 600;
    color: var(--sp-text);
}
.sp-service-card .sp-btn { margin-top: auto; align-self: flex-start; }

/* Services table (list) */
.sp-services-table { display: flex; flex-direction: column; }
.sp-services-table__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--sp-border);
}
.sp-services-table__row:last-child { border-bottom: none; }
.sp-services-table__name {
    font-weight: 500;
    font-size: .9375rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sp-services-table__cat, .sp-services-table__desc {
    font-size: .75rem;
    color: var(--sp-text-muted);
    font-weight: 400;
}
.sp-services-table__details {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    font-size: .8125rem;
}
.sp-services-table__duration { color: var(--sp-text-secondary); }
.sp-services-table__price { font-weight: 600; white-space: nowrap; }

/* Staff grid */
.sp-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.sp-staff-grid--wide {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.sp-show-all {
    text-align: center;
    margin-top: 20px;
}
.sp-staff-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 12px;
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    text-decoration: none;
    color: var(--sp-text);
    transition: box-shadow .15s;
    gap: 8px;
}
.sp-staff-card:hover { box-shadow: var(--sp-shadow-md); }
.sp-staff-card__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}
.sp-staff-card__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sp-primary);
    color: #0a0a0f;
    font-size: 1.5rem;
    font-weight: 700;
}
.sp-staff-card__name { font-weight: 600; font-size: .9375rem; }
.sp-staff-card__position { font-size: .8125rem; color: var(--sp-text-secondary); }
.sp-staff-card__services { font-size: .75rem; color: var(--sp-text-muted); }

/* Staff hero (detail page) */
.sp-staff-hero {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 0 32px;
}
.sp-staff-hero__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.sp-staff-hero__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sp-primary);
    color: #0a0a0f;
    font-size: 3rem;
    font-weight: 700;
}
.sp-staff-hero__info { display: flex; flex-direction: column; gap: 4px; }
.sp-staff-hero__name { font-size: 1.5rem; font-weight: 700; }
.sp-staff-hero__position { color: var(--sp-text-secondary); font-size: 1rem; }
.sp-staff-hero__experience { color: var(--sp-text-secondary); font-size: .875rem; font-weight: 500; }
.sp-staff-hero__works-today { display: flex; align-items: center; gap: 6px; color: #16a34a; font-size: .8125rem; font-weight: 500; }

/* Works today indicators */
.sp-works-today-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; flex-shrink: 0; animation: sp-pulse 2s ease-in-out infinite; }
@keyframes sp-pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.sp-staff-card__status { font-size: .75rem; color: #16a34a; font-weight: 500; margin-top: auto; padding-top: 4px; display: flex; align-items: center; gap: 4px; }
.sp-staff-card__status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #16a34a; animation: sp-pulse 2s ease-in-out infinite; }
.sp-staff-hero__since { color: var(--sp-text-muted); font-size: .8125rem; }
.sp-staff-hero__info .sp-btn { margin-top: 12px; align-self: flex-start; }

/* Workplaces */
.sp-workplaces { display: flex; flex-direction: column; gap: 8px; }
.sp-workplace {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--sp-border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s;
}
.sp-workplace:hover { border-color: var(--sp-accent); }
.sp-workplace__name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .875rem;
    font-weight: 500;
}
.sp-workplace__name svg { flex-shrink: 0; color: var(--sp-accent); }
.sp-workplace__address { font-size: .8125rem; color: var(--sp-text-muted); margin-top: 2px; padding-left: 22px; }

/* About */
.sp-about__text {
    font-size: .9375rem;
    line-height: 1.7;
    color: var(--sp-text-secondary);
    max-width: 680px;
}
.sp-about__text p { margin-bottom: .75em; }
.sp-about__text p:last-child { margin-bottom: 0; }
.sp-about__toggle {
    display: inline-block;
    margin-top: .5em;
    padding: 0;
    background: none;
    border: none;
    color: var(--sp-accent);
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}
.sp-about__toggle:hover { text-decoration: underline; }

/* Legal */
.sp-legal {
    border-top: 1px solid var(--sp-border);
    padding: 20px 0;
    margin-top: 24px;
}
.sp-legal__info {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    font-size: .8125rem;
    color: var(--sp-text-muted);
}
.sp-legal__entity { font-weight: 500; color: var(--sp-text-secondary); }
.sp-legal__detail::before { content: '·'; margin-right: 4px; }
.sp-legal__docs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 8px;
}
.sp-legal__docs a {
    font-size: .75rem;
    color: var(--sp-accent);
    text-decoration: none;
}
.sp-legal__docs a:hover { text-decoration: underline; }

/* Schedule */
.sp-schedule {
    display: flex;
    flex-direction: column;
    max-width: 360px;
}
.sp-schedule__row {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: var(--sp-radius-sm);
    font-size: .875rem;
}
.sp-schedule__row--today {
    background: color-mix(in srgb, var(--sp-primary) 10%, transparent);
    font-weight: 600;
}
.sp-schedule__day { color: var(--sp-text-secondary); min-width: 80px; }
.sp-schedule__time { font-weight: 500; }
.sp-schedule__time--off { color: var(--sp-text-muted); font-weight: 400; }

/* Schedule timer */
.sp-schedule-timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .875rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--sp-radius-sm);
    margin-bottom: 12px;
}
.sp-schedule-timer svg { flex-shrink: 0; }
.sp-schedule-timer--open { color: #16a34a; background: rgba(22,163,74,.08); }
.sp-schedule-timer--opening { color: #d97706; background: rgba(217,119,6,.08); }
.sp-schedule-timer--closing { color: #dc2626; background: rgba(220,38,38,.08); }
.sp-schedule-timer--closed { color: var(--sp-text-muted); background: color-mix(in srgb, var(--sp-text-muted) 8%, transparent); }
.sp-schedule-timer__countdown { font-variant-numeric: tabular-nums; font-weight: 700; }

/* Address */
.sp-address {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: .9375rem;
    color: var(--sp-text-secondary);
}

/* Socials */
.sp-socials {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.sp-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    color: var(--sp-text-secondary);
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
}
.sp-social-link:hover { border-color: var(--sp-primary); color: var(--sp-primary); }
.sp-website-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.sp-website-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--sp-border);
    color: var(--sp-text);
    text-decoration: none;
    font-size: .8125rem;
    transition: border-color .2s, color .2s;
}
.sp-website-link:hover { border-color: var(--sp-primary); color: var(--sp-primary); }

/* Breadcrumb */
.sp-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .8125rem;
    color: var(--sp-text-muted);
    text-decoration: none;
    padding: 16px 0 0;
}
.sp-breadcrumb:hover { color: var(--sp-primary); }

/* Page title */
.sp-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 8px 0 24px;
}

/* Search */
.sp-search {
    position: relative;
    margin-bottom: 24px;
}
.sp-search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sp-text-muted);
    pointer-events: none;
}
.sp-search__input {
    width: 100%;
    padding: 12px 40px 12px 44px;
    border: 1px solid var(--sp-border);
    border-radius: 10px;
    font-size: .9375rem;
    font-family: var(--sp-font);
    background: var(--sp-bg);
    color: var(--sp-text);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.sp-search__input::placeholder { color: var(--sp-text-muted); }
.sp-search__input:focus {
    border-color: var(--sp-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.sp-search__clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    font-size: 1.25rem;
    color: var(--sp-text-muted);
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}
.sp-search__clear:hover { color: var(--sp-text); }
.sp-search__empty {
    text-align: center;
    padding: 24px;
    color: var(--sp-text-muted);
    font-size: .9375rem;
}

/* Empty state */
.sp-empty {
    text-align: center;
    padding: 40px;
    color: var(--sp-text-muted);
    font-size: .9375rem;
}

/* Booking iframe */
.sp-booking-frame {
    margin: 16px 0 40px;
    border-radius: var(--sp-radius);
    overflow: hidden;
    border: 1px solid var(--sp-border);
    background: var(--sp-surface);
}
.sp-booking-iframe {
    width: 100%;
    min-height: 640px;
    border: none;
}
@media (max-width: 640px) {
    .sp-booking-frame { margin: 8px -16px 24px; border-radius: 0; border-left: none; border-right: none; }
    .sp-booking-iframe { min-height: 100vh; min-height: 100svh; }
}

/* Footer */
.sp-footer {
    padding: 24px 0;
    border-top: 1px solid var(--sp-border);
    margin-top: 40px;
}
.sp-footer__branding {
    text-align: center;
    font-size: .8125rem;
    color: var(--sp-text-muted);
}
.sp-footer__branding a {
    color: var(--sp-primary);
    text-decoration: none;
}
.sp-footer__branding a:hover { text-decoration: underline; }

/* Gallery */
.sp-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}
.sp-gallery__item {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--sp-radius-sm);
    cursor: pointer;
}
.sp-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s;
}
.sp-gallery__item:hover img { transform: scale(1.05); }
.sp-gallery__card {
    display: flex;
    flex-direction: column;
}
.sp-gallery__caption {
    padding: 6px 4px;
    font-size: .8rem;
    color: var(--sp-text-secondary);
    line-height: 1.3;
}
.sp-gallery__caption .sp-gallery__sep {
    margin: 0 4px;
    opacity: .5;
}
.sp-gallery__caption .sp-gallery__cat {
    color: var(--sp-text-muted);
    font-size: .8em;
}
.sp-gallery__link {
    color: var(--sp-primary);
    text-decoration: none;
}
.sp-gallery__link:hover {
    text-decoration: underline;
}
.sp-gallery__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    font-size: .75rem;
    color: var(--sp-text-muted);
}
.sp-gallery__date {
    opacity: .7;
}

/* Like button (small, on photo cards) */
.sp-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--sp-text-muted);
    padding: 2px 4px;
    border-radius: 4px;
    transition: color .2s;
    font-size: .8rem;
}
.sp-like-btn:hover, .sp-like-btn.liked {
    color: #e74c3c;
}
.sp-like-btn.liked svg {
    fill: #e74c3c;
}

/* Favorite button (larger, on salon/staff hero) */
.sp-favorite-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sp-surface);
    border: 1.5px solid var(--sp-border);
    cursor: pointer;
    color: var(--sp-text-secondary);
    padding: 8px 14px;
    border-radius: 10px;
    transition: all .2s;
    font-size: .9rem;
    white-space: nowrap;
}
.sp-favorite-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}
.sp-favorite-btn.liked {
    border-color: #e74c3c;
    color: #e74c3c;
    background: rgba(231, 76, 60, .06);
}
.sp-favorite-btn.liked svg {
    fill: #e74c3c;
}
.sp-hero__actions, .sp-staff-hero__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Lightbox like + date */
.sp-lightbox__info {
    position: absolute;
    bottom: 60px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.7);
    font-size: .85rem;
}
.sp-lightbox__like {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,0,0,.5);
    border: none;
    color: rgba(255,255,255,.8);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 20px;
    transition: color .2s;
    font-size: .85rem;
}
.sp-lightbox__like:hover, .sp-lightbox__like.liked {
    color: #e74c3c;
}
.sp-lightbox__like.liked svg {
    fill: #e74c3c;
}

/* Lightbox */
.sp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,.92);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sp-lightbox[hidden] { display: none; }
.sp-lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--sp-radius-sm);
}
.sp-lightbox__close,
.sp-lightbox__prev,
.sp-lightbox__next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: .7;
    transition: opacity .15s;
    padding: 8px;
}
.sp-lightbox__close:hover,
.sp-lightbox__prev:hover,
.sp-lightbox__next:hover { opacity: 1; }
.sp-lightbox__close { top: 16px; right: 20px; font-size: 2.5rem; }
.sp-lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.sp-lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.sp-lightbox__counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.7);
    font-size: .875rem;
}
.sp-lightbox__caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.85);
    font-size: .875rem;
    text-align: center;
    max-width: 80%;
}
.sp-lightbox__caption a {
    color: var(--sp-primary);
    text-decoration: none;
}
.sp-lightbox__caption a:hover { text-decoration: underline; }

/* Map */
.sp-map {
    margin-top: 16px;
    border-radius: var(--sp-radius);
    overflow: hidden;
    border: 1px solid var(--sp-border);
}
.sp-map iframe { display: block; }

/* Tablet */
@media (max-width: 1024px) and (min-width: 641px) {
    .sp-services-grid { grid-template-columns: repeat(2, 1fr); }
    .sp-staff-grid { grid-template-columns: repeat(3, 1fr); }
    .sp-gallery { grid-template-columns: repeat(3, 1fr); }
    .sp-hero__content { gap: 16px; }
}

/* Mobile */
@media (max-width: 640px) {
    .sp-container { padding: 0 16px; }
    .sp-hero { padding: 24px 0 16px; }
    .sp-hero__content { flex-direction: column; gap: 16px; }
    .sp-hero__info { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
    .sp-hero__logo { width: 64px; height: 64px; }
    .sp-hero__logo--placeholder { font-size: 1.5rem; }
    .sp-hero__title { font-size: 1.25rem; }
    .sp-hero__meta { justify-content: center; font-size: .8125rem; gap: 8px; }
    .sp-hero__contacts { justify-content: center; margin-top: 12px; }
    .sp-hero .sp-btn--lg { width: 100%; }
    .sp-contact-chip { padding: 8px 16px; min-height: 44px; font-size: .875rem; }
    .sp-staff-hero { flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 20px 0 24px; }
    .sp-staff-hero__avatar { width: 96px; height: 96px; }
    .sp-staff-hero__avatar--placeholder { font-size: 2.5rem; }
    .sp-staff-hero__info { align-items: center; }
    .sp-staff-hero__name { font-size: 1.25rem; }
    .sp-staff-hero__position { font-size: .875rem; }
    .sp-staff-hero__works-today { justify-content: center; }
    .sp-staff-hero__info .sp-btn { align-self: center; width: 100%; min-height: 48px; }
    .sp-section { padding: 24px 0; }
    .sp-section__title { font-size: 1.125rem; }
    .sp-services-grid { grid-template-columns: 1fr; }
    .sp-staff-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .sp-staff-card { padding: 16px 8px; }
    .sp-staff-card__avatar { width: 60px; height: 60px; }
    .sp-staff-card__name { font-size: .8125rem; }
    .sp-staff-card__position { font-size: .75rem; }
    .sp-services-table__row { flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 0; }
    .sp-services-table__details { flex-wrap: wrap; gap: 8px; }
    .sp-stats__grid { gap: 16px; flex-wrap: wrap; justify-content: center; }
    .sp-schedule { max-width: 100%; }
    .sp-gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .sp-gallery-caption { font-size: .75rem; }
    .sp-lightbox__prev, .sp-lightbox__next { font-size: 2rem; width: 40px; height: 40px; }
    .sp-review-modal__content { padding: 20px 16px; width: 95%; border-radius: 12px; }
    .sp-btn--lg { padding: 14px 24px; font-size: .9375rem; min-height: 48px; }
    .sp-btn--sm { min-height: 44px; }
}

/* Small phones */
@media (max-width: 374px) {
    .sp-container { padding: 0 12px; }
    .sp-hero__logo { width: 56px; height: 56px; }
    .sp-hero__title { font-size: 1.125rem; }
    .sp-staff-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .sp-staff-card__avatar { width: 52px; height: 52px; }
    .sp-staff-hero__avatar { width: 80px; height: 80px; }
    .sp-staff-hero__name { font-size: 1.125rem; }
    .sp-gallery { gap: 4px; }
    .sp-reviews-avg__num { font-size: 2rem; }
}

/* Reviews */
.sp-reviews-summary {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--sp-bg);
    border-radius: 12px;
}
.sp-reviews-avg {
    text-align: center;
    min-width: 80px;
}
.sp-reviews-avg__num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--sp-text);
    display: block;
    line-height: 1;
}
.sp-reviews-avg__stars { display: block; margin: 4px 0; }
.sp-reviews-avg__count { font-size: .8rem; color: var(--sp-text-muted); }
.sp-reviews-bars { flex: 1; }
.sp-reviews-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    color: var(--sp-text-secondary);
    margin-bottom: 4px;
}
.sp-reviews-bar__track {
    flex: 1;
    height: 6px;
    background: var(--sp-border);
    border-radius: 3px;
    overflow: hidden;
}
.sp-reviews-bar__fill {
    height: 100%;
    background: #f1c40f;
    border-radius: 3px;
}
.sp-star { color: #ddd; font-size: 1rem; }
.sp-star--filled { color: #f1c40f; }
.sp-reviews-empty {
    text-align: center;
    color: var(--sp-text-muted);
    padding: 32px 0;
}
.sp-reviews-list { display: flex; flex-direction: column; gap: 16px; }
.sp-review {
    padding: 16px;
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: 10px;
}
.sp-review__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.sp-review__date { color: var(--sp-text-muted); font-size: .8rem; margin-left: auto; }
.sp-review__verified {
    color: var(--sp-primary);
    font-size: .75rem;
    background: rgba(0,212,170,.1);
    padding: 1px 6px;
    border-radius: 4px;
}
.sp-review__rating { margin-bottom: 6px; }
.sp-review__staff { font-size: .85rem; color: var(--sp-text-secondary); margin-bottom: 6px; }
.sp-review__text { line-height: 1.5; color: var(--sp-text); }
.sp-review__source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sp-primary);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .01em;
    background: rgba(0,212,170,.1);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
}
.sp-review__source-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    flex: 0 0 7px;
}
.sp-review__source--generic {
    border-color: rgba(0, 212, 170, .20);
}
.sp-review__source--2gis {
    color: #0a8f5a;
    background: rgba(12, 166, 92, .12);
    border-color: rgba(12, 166, 92, .24);
}
.sp-review__source--yandex {
    color: #c96a00;
    background: rgba(255, 190, 54, .18);
    border-color: rgba(201, 106, 0, .20);
}
.sp-review__source--zoon {
    color: #8a2be2;
    background: rgba(138, 43, 226, .12);
    border-color: rgba(138, 43, 226, .18);
}
.sp-review__meta { margin-top: 8px; }
.sp-review__link {
    color: var(--sp-primary);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
}
.sp-review__link:hover { text-decoration: underline; }
.sp-review__photos {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.sp-review__photo {
    width: 84px;
    height: 84px;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
}
.sp-review__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--sp-border);
    box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
}
.sp-reviews-more {
    width: 100%;
    margin-top: 14px;
}
.sp-review__reply {
    margin-top: 10px;
    padding: 10px 14px;
    background: var(--sp-bg);
    border-radius: 8px;
    font-size: .9rem;
    color: var(--sp-text-secondary);
}
.sp-review__reply-toggle,
.sp-staff-review-reply-toggle { margin-top: 10px; }
.sp-review__reply-summary,
.sp-staff-review-reply-summary {
    cursor: pointer;
    color: #0f766e;
    font-weight: 600;
    font-size: .92rem;
    list-style: none;
}
.sp-review__reply-summary::-webkit-details-marker,
.sp-staff-review-reply-summary::-webkit-details-marker { display: none; }
.sp-review__reply-summary::before,
.sp-staff-review-reply-summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 8px;
    transition: transform .18s ease;
}
.sp-review__reply-toggle[open] .sp-review__reply-summary::before,
.sp-staff-review-reply-toggle[open] .sp-staff-review-reply-summary::before { transform: rotate(90deg); }

/* Review modal */
.sp-review-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sp-review-modal[hidden] { display: none; }
.sp-review-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
}
.sp-review-modal__content {
    position: relative;
    background: var(--sp-surface);
    border-radius: 16px;
    padding: 28px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}
.sp-review-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--sp-text-muted);
}
.sp-review-modal__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.sp-review-form__field { margin-bottom: 16px; }
.sp-review-form__field label { display: block; margin-bottom: 4px; font-size: .9rem; color: var(--sp-text-secondary); }
.sp-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--sp-border);
    border-radius: 8px;
    font-size: .95rem;
    background: var(--sp-surface);
    color: var(--sp-text);
    box-sizing: border-box;
}
.sp-input:focus { border-color: var(--sp-primary); outline: none; }
textarea.sp-input { resize: vertical; }
.sp-btn--full { width: 100%; }
.sp-rating-input { display: flex; gap: 4px; }
.sp-rating-star {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #ddd;
    transition: color .15s;
    padding: 0;
}
.sp-rating-star:hover, .sp-rating-star--active { color: #f1c40f; }
.sp-loading { text-align: center; color: var(--sp-text-muted); padding: 20px; }
.sp-hero__rating { text-decoration: none; color: var(--sp-text); font-weight: 500; }
.sp-hero__rating .sp-star { font-size: .9rem; }
.sp-hero__rating-count { color: var(--sp-text-muted); font-weight: 400; }

@media (max-width: 640px) {
    .sp-reviews-summary { flex-direction: column; gap: 16px; }
    .sp-hero__actions { flex-direction: column; align-items: stretch; gap: 8px; }
    .sp-hero__actions .sp-favorite-btn {
        align-self: flex-start; width: auto; flex: 0 0 auto;
        padding: 10px 16px; min-height: 44px;
    }
    .sp-hero__actions .sp-btn { width: 100%; }
}

/* Avatar zoom overlay */
.sp-avatar-zoom { cursor: zoom-in; transition: transform .2s ease, box-shadow .2s ease; }
.sp-avatar-zoom:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(0,0,0,.15); }

.sp-avatar-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,.85);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    opacity: 0; transition: opacity .2s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.sp-avatar-overlay--visible { opacity: 1; }
.sp-avatar-overlay__img {
    max-width: min(90vw, 600px); max-height: 85vh;
    border-radius: var(--sp-radius, 12px);
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.sp-avatar-overlay__close {
    position: absolute; top: 16px; right: 20px;
    background: none; border: none;
    color: #fff; font-size: 2.5rem; line-height: 1;
    cursor: pointer; opacity: .7; transition: opacity .2s;
}
.sp-avatar-overlay__close:hover { opacity: 1; }

.sp-staff-card__avatar.sp-avatar-zoom { cursor: zoom-in; }
.sp-staff-card__avatar.sp-avatar-zoom:hover { transform: scale(1.1); box-shadow: 0 2px 12px rgba(0,0,0,.12); }

/* Subscriptions */
.sp-sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.sp-sub-card {
    background: #fff; border: 1px solid var(--sp-border, #e5e7eb); border-radius: var(--sp-radius, 12px);
    padding: 20px; transition: box-shadow .2s, transform .2s;
}
.sp-sub-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }
.sp-sub-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sp-sub-card__name { font-size: 16px; font-weight: 600; margin: 0; }
.sp-sub-card__savings { background: rgba(34,197,94,.1); color: #16a34a; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.sp-sub-card__desc { font-size: 13px; color: #6b7280; margin: 0 0 10px; line-height: 1.4; }
.sp-sub-card__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #9ca3af; margin-bottom: 12px; }
.sp-sub-card__meta span { background: #f3f4f6; padding: 2px 8px; border-radius: 4px; }
.sp-sub-card__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.sp-sub-card__price-current { font-size: 20px; font-weight: 700; color: var(--sp-primary, #6366f1); }
.sp-sub-card__price-old { font-size: 14px; color: #9ca3af; text-decoration: line-through; }
.sp-sub-card__btn {
    display: block; text-align: center; padding: 10px; border-radius: 8px;
    background: var(--sp-primary, #6366f1); color: #fff; font-weight: 500; font-size: 14px;
    text-decoration: none; transition: opacity .2s;
}
.sp-sub-card__btn:hover { opacity: .9; }

/* Staff Reviews */
.sp-staff-hero__rating { display: flex; align-items: center; gap: 6px; font-size: 14px; margin-top: 6px; }
.sp-staff-hero__rating .sp-stars { color: #F59E0B; letter-spacing: 1px; }
.sp-staff-hero__rating a { color: var(--sp-text-muted, #6b7280); text-decoration: none; }
.sp-staff-hero__rating a:hover { text-decoration: underline; }

.sp-staff-review-card {
    background: var(--sp-card-bg, #fff); border: 1px solid var(--sp-border, #e5e7eb);
    border-radius: 12px; padding: 16px; margin-bottom: 12px;
}
.sp-staff-review-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.sp-staff-review-stars { color: #F59E0B; font-size: 16px; letter-spacing: 1px; }
.sp-staff-review-author { font-weight: 600; font-size: 14px; }
.sp-staff-review-date { font-size: 12px; color: var(--sp-text-muted, #9ca3af); margin-left: auto; }
.sp-staff-review-text { font-size: 14px; line-height: 1.6; color: var(--sp-text, #374151); margin-bottom: 8px; }
.sp-staff-review-photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.sp-staff-review-photo { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; cursor: zoom-in; transition: transform .2s; }
.sp-staff-review-photo:hover { transform: scale(1.05); }
.sp-staff-review-reply {
    border-left: 3px solid var(--sp-primary, #6366f1); padding-left: 12px;
    font-size: 13px; color: var(--sp-text-muted, #6b7280); margin-top: 8px;
}
.sp-review-photo-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.sp-review-photo-preview-item { position: relative; width: 64px; height: 64px; }
.sp-review-photo-preview-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.sp-review-photo-remove {
    position: absolute; top: -6px; right: -6px; width: 20px; height: 20px;
    border-radius: 50%; background: #ef4444; color: #fff; border: none;
    font-size: 14px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* Lightbox reuse for review photos */
.portfolio-lightbox {
    position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.92);
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.portfolio-lightbox img { max-width: 90vw; max-height: 85dvh; object-fit: contain; border-radius: 8px; }
.portfolio-lightbox__close {
    position: absolute; top: 16px; right: 16px; background: none; border: none;
    color: #fff; font-size: 32px; cursor: pointer; line-height: 1; padding: 8px;
}
