/* Преміум-профіль салону — редактор і публічний перегляд (фіолетово-сірий + золото) */
.sp-wrap { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sp-card { background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 14px; padding: 12px 13px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sp-head b { font-size: 14px; color: #2a2723; } .sp-head small { font-size: 11px; color: #8a867c; }
.sp-empty { margin: 8px 0; text-align: center; font-size: 13px; color: #8a867c; }
.sp-hint { margin: 0; font-size: 11.5px; color: #8a867c; }
.sp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sp-ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #eceae4; }
.sp-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-main { position: absolute; left: 5px; bottom: 5px; font-size: 9.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: linear-gradient(135deg, #f3d98b, #d9b24c); color: #3a2a14; }
.sp-first, .sp-del { position: absolute; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(20,18,30,.7); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sp-first { left: 5px; bottom: 5px; color: #f3d98b; } .sp-del { right: 5px; top: 5px; font-size: 17px; }
.sp-add { aspect-ratio: 1; border: 2px dashed #bdb7d6; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; color: #544e6e; background: rgba(84,78,110,.04); }
.sp-add span { font-size: 26px; line-height: 1; } .sp-add small { font-size: 10.5px; font-weight: 700; }
.sp-input, .sp-linkrow select, .sp-linkrow input { width: 100%; box-sizing: border-box; border: 1px solid rgba(0,0,0,.15); border-radius: 10px; padding: 9px 10px; font: inherit; font-size: 16px; background: #fff; color: #2a2723; min-width: 0; }
textarea.sp-input { resize: vertical; min-height: 96px; }
.sp-linkrow { display: grid; grid-template-columns: minmax(0, 1fr) 30px; grid-template-areas: "k x" "u u"; gap: 6px; align-items: center; padding-bottom: 6px; border-bottom: 1px solid rgba(0,0,0,.05); }
.sp-linkrow select { grid-area: k; } .sp-linkrow input { grid-area: u; } .sp-linkrow .sp-x { grid-area: x; }
.sp-linkrow select { padding-left: 6px; padding-right: 2px; font-size: 14px; }
.sp-x { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(0,0,0,.07); font-size: 18px; line-height: 1; cursor: pointer; }
.sp-link { border: 0; background: none; padding: 4px 0; font: inherit; font-size: 13px; font-weight: 700; color: #6b6585; cursor: pointer; text-align: left; }
.sp-cta { position: relative; overflow: hidden; border: 0; cursor: pointer; font: 800 13px Inter, sans-serif; padding: 10px 20px; border-radius: 999px; color: #3a2a14;
    background: linear-gradient(110deg, #e9c766 0%, #fff0b0 22%, #d9b24c 45%, #f3d98b 70%, #d9b24c 100%); background-size: 220% 100%; animation: spShimmer 3.2s linear infinite;
    box-shadow: 0 4px 14px rgba(217,178,76,.45), inset 0 1px 0 rgba(255,255,255,.6); }
.sp-cta.big { width: 100%; padding: 13px 18px; font-size: 15px; } .sp-cta.busy { opacity: .6; pointer-events: none; } .sp-cta:active { transform: scale(.96); }
.sp-teaser { background: linear-gradient(145deg, #2b1f12, #4b3418 60%, #3a2a14); border: 1.5px solid #d9b24c; border-radius: 16px; padding: 18px 16px; color: #f6e9d3; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 8px 22px rgba(75,52,24,.35); }
.sp-teaser b { font-size: 19px; color: #f3d98b; } .sp-teaser p { margin: 0; font-size: 13px; line-height: 1.45; color: rgba(246,233,211,.85); }
.sp-teaser ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.sp-teaser li::before { content: "✓"; margin-right: 7px; color: #f3d98b; font-weight: 800; }
.sp-star { font-size: 30px; color: #f3d98b; line-height: 1; }
.sp-toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 9999; max-width: 90vw; padding: 10px 16px; border-radius: 12px; background: #16181c; color: #fff; font-size: 13px; transition: all .25s ease; }
.sp-toast.show { opacity: 1; transform: translate(-50%, 0); }
/* публічний перегляд */
.sp-back { position: fixed; inset: 0; z-index: 500; background: rgba(20,18,30,.6); display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(3px); }
.sp-sheet { position: relative; width: min(100%, 460px); max-height: 92dvh; overflow-y: auto; background: #fbfaf7; border-radius: 20px 20px 0 0; padding: 16px 14px calc(18px + env(safe-area-inset-bottom)); }
.sp-close { position: absolute; right: 10px; top: 10px; z-index: 2; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(20,18,30,.6); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.sp-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 40px 10px 0; } .sp-title b { font-size: 18px; color: #2a2723; }
.sp-badge { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: linear-gradient(135deg, #f3d98b, #d9b24c); color: #4b3418; }
.sp-gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; border-radius: 14px; scrollbar-width: none; }
.sp-gallery::-webkit-scrollbar { display: none; }
.sp-gallery img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: center; border-radius: 14px; background: #eceae4; }
.sp-dots { display: flex; justify-content: center; gap: 5px; margin: 8px 0 2px; } .sp-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(0,0,0,.2); } .sp-dots i.on { background: #d9b24c; width: 16px; border-radius: 4px; }
.sp-about { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: #3a3630; white-space: pre-wrap; word-break: break-word; }
.sp-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sp-links a { padding: 8px 14px; border-radius: 999px; background: linear-gradient(135deg, #544e6e, #6b6585); color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; }
html.sp-lock, html.sp-lock body { overflow: hidden; }
@keyframes spShimmer { 0% { background-position: 0% 0; } 100% { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) { .sp-cta { animation: none; } }

/* головне фото — широка плитка на всю ширину */
.sp-grid > .sp-ph:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
