/* ===== Rika — public specialist profile (client-facing) ===== */

/* Calmer scroll reveals on profile (reveal.js) */
html.js-reveal .profile-page .reveal {
  --reveal-distance-y: 36px;
  --reveal-distance-x: 28px;
  --reveal-blur: 8px;
  --reveal-scale: 0.97;
  --reveal-duration: 0.85s;
}

.profile-page {
  --profile-radius: 2rem;
  --profile-radius-lg: 32px;
  --profile-ease: var(--theme-ease, cubic-bezier(0.22, 1, 0.36, 1));
  --profile-duration: 0.55s;
  --profile-accent: var(--coral);
  --profile-accent-soft: var(--glow-coral);
  --profile-accent-glow: var(--glow-coral-strong);
  min-height: 100vh;
  padding-bottom: 5.5rem;
  overflow-x: hidden;
}

[data-theme="light"] .profile-page {
  --profile-glass: var(--profile-surface);
  --profile-surface: rgba(255, 255, 255, 0.92);
  --profile-surface-hover: rgba(255, 255, 255, 0.97);
  --profile-surface-nested: rgba(255, 255, 255, 0.94);
  --profile-surface-border: rgba(16, 35, 62, 0.1);
  --profile-surface-inset: rgba(255, 255, 255, 0.96);
  --profile-surface-shadow:
    0 18px 48px rgba(16, 35, 62, 0.09),
    0 6px 20px rgba(16, 35, 62, 0.04),
    inset 0 1px 0 var(--profile-surface-inset);
  --profile-surface-shadow-lg:
    0 28px 72px rgba(16, 35, 62, 0.11),
    0 10px 28px rgba(16, 35, 62, 0.05),
    inset 0 1px 0 var(--profile-surface-inset);
}

@media (min-width: 768px) {
  .profile-page {
    padding-bottom: 3rem;
  }
}

/* Category atmosphere */
.profile-page[data-category="beauty"] {
  --profile-accent: var(--coral);
  --profile-accent-soft: rgba(231, 139, 123, 0.22);
  --profile-accent-glow: rgba(236, 72, 153, 0.2);
}

.profile-page[data-category="cleaning"] {
  --profile-accent: #5b9fd4;
  --profile-accent-soft: rgba(91, 159, 212, 0.2);
  --profile-accent-glow: rgba(91, 159, 212, 0.28);
}

.profile-page[data-category="tutors"] {
  --profile-accent: #c49a6c;
  --profile-accent-soft: rgba(196, 154, 108, 0.22);
  --profile-accent-glow: rgba(180, 120, 80, 0.25);
}

/* --- Atmosphere --- */
.profile-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.profile-atmosphere__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(248, 245, 242, 0.9) 0%,
      rgba(240, 236, 231, 0.72) 42%,
      rgba(248, 245, 242, 0.86) 100%
    ),
    linear-gradient(
      165deg,
      var(--background) 0%,
      transparent 55%,
      var(--background) 100%
    ),
    var(--profile-acc-bg, var(--bg-scene-image)) center top / cover no-repeat;
}

.profile-atmosphere__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.profile-atmosphere__blob--1 {
  width: min(55vw, 28rem);
  height: min(55vw, 28rem);
  top: -8%;
  right: -12%;
  background: var(--profile-accent-soft);
  animation: profileBlob1 38s ease-in-out infinite;
}

.profile-atmosphere__blob--2 {
  width: min(45vw, 22rem);
  height: min(45vw, 22rem);
  bottom: 15%;
  left: -10%;
  background: rgba(16, 35, 62, 0.06);
  animation: profileBlob2 32s ease-in-out infinite;
}

.profile-page[data-category="beauty"] .profile-atmosphere__blob--2 {
  background: rgba(240, 168, 156, 0.25);
}

.profile-page[data-category="cleaning"] .profile-atmosphere__blob--2 {
  background: rgba(200, 230, 255, 0.35);
}

.profile-page[data-category="tutors"] .profile-atmosphere__blob--2 {
  background: rgba(255, 230, 200, 0.35);
}

.profile-atmosphere__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8rem;
  color: rgba(255, 255, 255, 0.45);
  opacity: 0.7;
}

.profile-atmosphere__wave svg {
  width: 100%;
  height: 100%;
}

@keyframes profileBlob1 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-30px, 24px, 0) scale(1.08);
  }
}

@keyframes profileBlob2 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(24px, -20px, 0) scale(1.06);
  }
}

/* --- Shell & header --- */
.profile-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.profile-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 0;
  background: linear-gradient(
    180deg,
    rgba(248, 245, 242, 0.92) 0%,
    rgba(248, 245, 242, 0.75) 70%,
    transparent 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.profile-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-header__logo img {
  height: 1.625rem;
  width: auto;
}

.profile-header__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--profile-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 35, 62, 0.06);
  border-radius: var(--radius-full);
  transition:
    transform var(--profile-duration) var(--profile-ease),
    box-shadow var(--profile-duration) var(--profile-ease);
}

.profile-header__back svg {
  width: 1rem;
  height: 1rem;
}

.profile-header__back:hover {
  transform: translateX(-2px);
  box-shadow: 0 8px 28px rgba(16, 35, 62, 0.08);
}

.profile-main {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 5vw, 3.5rem) 0 4rem;
}

/* --- Flow divider --- */
.profile-flow {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: clamp(2rem, 5vw, 3rem) 0;
  color: var(--profile-accent);
  opacity: 0.45;
}

.profile-flow span {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--profile-accent) 20%,
    var(--profile-accent) 80%,
    transparent
  );
}

.profile-flow::before,
.profile-flow::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--profile-accent);
  flex-shrink: 0;
}

/* --- Hero panel --- */
.profile-hero-panel {
  position: relative;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--profile-surface);
  backdrop-filter: blur(24px) saturate(1.12);
  -webkit-backdrop-filter: blur(24px) saturate(1.12);
  border: 1px solid var(--profile-surface-border);
  border-radius: var(--profile-radius-lg);
  box-shadow: var(--profile-surface-shadow-lg);
  overflow: hidden;
}

.profile-hero-panel__glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  height: 140%;
  background: radial-gradient(circle, var(--profile-accent-soft), transparent 62%);
  pointer-events: none;
}

.profile-hero-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--profile-accent) 30%,
    var(--coral) 70%,
    transparent
  );
  opacity: 0.85;
}

/* --- Hero --- */
.profile-hero {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .profile-hero {
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}

.profile-hero__photo-wrap {
  position: relative;
  justify-self: center;
  width: clamp(9rem, 24vw, 12.5rem);
  flex-shrink: 0;
}

.profile-hero__ring {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(16, 35, 62, 0.06),
    inset 0 0 32px var(--profile-accent-soft);
  animation: profileRingSpin 48s linear infinite;
}

@keyframes profileRingSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 768px) {
  .profile-hero__photo-wrap {
    justify-self: start;
  }
}

.profile-hero__photo-glow {
  position: absolute;
  inset: -12%;
  background: radial-gradient(
    circle,
    var(--profile-accent-glow),
    transparent 65%
  );
  border-radius: 50%;
  animation: profileGlowPulse 6s ease-in-out infinite;
}

@keyframes profileGlowPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.profile-hero__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, var(--navy), var(--navy-light));
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.85),
    0 16px 48px rgba(16, 35, 62, 0.16),
    0 0 64px var(--profile-accent-soft);
}

.profile-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--profile-ease);
}

.profile-hero__photo:hover img {
  transform: scale(1.03);
}

.profile-hero__initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.06em;
}

.profile-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.9rem 0.4rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(16, 35, 62, 0.06);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(16, 35, 62, 0.05);
}

.profile-hero__badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: profileBadgePulse 2.5s ease-in-out infinite;
}

@keyframes profileBadgePulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(0.92);
  }
}

.profile-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy);
  background: linear-gradient(
    135deg,
    rgba(231, 139, 123, 0.15) 0%,
    rgba(255, 255, 255, 0.8) 100%
  );
  border: 1px solid rgba(231, 139, 123, 0.32);
  border-radius: var(--radius-full);
  box-shadow:
    0 10px 26px rgba(16, 35, 62, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  margin-bottom: 0.8rem;
}

.profile-hero__eyebrow::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--profile-accent);
  box-shadow: 0 0 0 3px rgba(231, 139, 123, 0.24);
}

.profile-hero__name {
  font-size: clamp(2.35rem, 6.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--navy);
  line-height: 1.02;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile-hero__tagline {
  margin-top: 0.75rem;
  font-size: clamp(1rem, 2.5vw, 1.1875rem);
  font-weight: 500;
  color: var(--muted-foreground);
  line-height: 1.45;
}

.profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.55)
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-full);
  box-shadow:
    0 4px 20px rgba(16, 35, 62, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    transform var(--profile-duration) var(--profile-ease),
    box-shadow var(--profile-duration) var(--profile-ease);
}

.profile-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--profile-accent-soft);
}

.profile-chip svg {
  width: 0.875rem;
  height: 0.875rem;
  opacity: 0.7;
}

.profile-hero__bio {
  margin-top: 1.75rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--navy);
  opacity: 0.88;
  max-width: 36rem;
}

/* --- CTA --- */
.profile-cta {
  position: relative;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--profile-surface);
  backdrop-filter: blur(24px) saturate(1.15);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
  border: 1px solid var(--profile-surface-border);
  border-radius: var(--profile-radius-lg);
  box-shadow: var(--profile-surface-shadow-lg);
  overflow: hidden;
}

.profile-cta__accent {
  position: absolute;
  bottom: -30%;
  left: 50%;
  width: 80%;
  height: 60%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, var(--profile-accent-glow), transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}

.profile-cta__kicker {
  position: relative;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--profile-accent);
  margin-bottom: 0.5rem;
}

.profile-cta__lead {
  position: relative;
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2.5vw, 1.3125rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.profile-cta__grid {
  position: relative;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .profile-cta__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.profile-cta__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 7.75rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--profile-surface-nested);
  backdrop-filter: blur(16px);
  border: 1px solid var(--profile-surface-border);
  border-radius: 1.5rem;
  box-shadow:
    0 8px 24px rgba(16, 35, 62, 0.06),
    inset 0 1px 0 var(--profile-surface-inset);
  transition:
    transform var(--profile-duration) var(--profile-ease),
    box-shadow var(--profile-duration) var(--profile-ease),
    border-color var(--profile-duration) var(--profile-ease),
    background var(--profile-duration) var(--profile-ease);
}

.profile-cta__btn-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: var(--profile-accent-soft);
  color: var(--navy);
  transition: transform var(--profile-duration) var(--profile-ease);
}

.profile-cta__btn-icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.profile-cta__btn--telegram .profile-cta__btn-icon {
  background: rgba(0, 136, 204, 0.12);
  color: #0088cc;
}

.profile-cta__btn--instagram .profile-cta__btn-icon {
  background: rgba(225, 48, 108, 0.1);
  color: #e1306c;
}

.profile-cta__btn--phone .profile-cta__btn-icon {
  background: rgba(16, 35, 62, 0.08);
}

.profile-cta__btn:hover {
  transform: translateY(-4px);
  background: var(--profile-surface-hover);
  border-color: rgba(231, 139, 123, 0.3);
  box-shadow:
    0 14px 38px rgba(16, 35, 62, 0.1),
    0 0 28px var(--profile-accent-soft);
}

.profile-cta__btn:hover .profile-cta__btn-icon {
  transform: scale(1.08);
}

.profile-cta__btn-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

/* --- Sections --- */
.profile-section {
  margin-bottom: clamp(3rem, 7vw, 4.5rem);
}

.profile-section__head {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.profile-section__index {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--profile-accent);
  opacity: 0.7;
}

.profile-section__title {
  font-size: clamp(1.5rem, 4vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--navy);
}

.profile-section--spotlight {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--profile-surface);
  border: 1px solid var(--profile-surface-border);
  border-radius: var(--profile-radius-lg);
}

@media (min-width: 768px) {
  .profile-section--spotlight {
    padding: 2rem 2.25rem 2.5rem;
    background: var(--profile-surface);
    border: 1px solid var(--profile-surface-border);
    box-shadow: var(--profile-surface-shadow);
  }
}

.profile-section__desc {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--muted-foreground);
}

/* --- Mobile polish --- */
@media (max-width: 639px) {
  .profile-shell {
    padding-inline: 0.875rem;
  }

  .profile-header {
    padding: 0.75rem 0;
  }

  .profile-main {
    padding: 1rem 0 2.25rem;
  }

  .profile-hero-panel {
    margin-bottom: 1.4rem;
    padding: 1.25rem 1rem 1.35rem;
    border-radius: 1.5rem;
  }

  .profile-hero {
    gap: 1.15rem;
  }

  .profile-hero__photo-wrap {
    width: 6.75rem;
  }

  .profile-hero__badge {
    font-size: 0.625rem;
    padding: 0.36rem 0.62rem;
  }

  .profile-hero__eyebrow {
    padding: 0.35rem 0.65rem;
    margin-bottom: 0.55rem;
    font-size: 0.6875rem;
  }

  .profile-hero__name {
    font-size: clamp(1.65rem, 9vw, 2.1rem);
    line-height: 1.08;
  }

  .profile-hero__tagline {
    margin-top: 0.5rem;
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .profile-chips {
    margin-top: 1rem;
    gap: 0.4rem;
  }

  .profile-chip {
    padding: 0.42rem 0.72rem;
    font-size: 0.75rem;
  }

  .profile-hero__bio {
    margin-top: 1.05rem;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .profile-cta {
    margin-bottom: 1.4rem;
    padding: 1.1rem 1rem 1.2rem;
    border-radius: 1.5rem;
  }

  .profile-cta__lead {
    margin-bottom: 1rem;
    font-size: 1rem;
  }

  .profile-cta__grid {
    gap: 0.65rem;
  }

  .profile-cta__btn {
    min-height: 4.25rem;
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 0.9rem;
    border-radius: 1rem;
    font-size: 0.9rem;
  }

  .profile-cta__btn-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.7rem;
  }

  .profile-cta__btn-icon svg {
    width: 1rem;
    height: 1rem;
  }

  .profile-cta__btn-sub {
    margin-left: auto;
    text-align: right;
    font-size: 0.6875rem;
  }

  .profile-flow {
    margin: 1.35rem 0;
    opacity: 0.35;
  }

  .profile-section,
  .profile-glass,
  .profile-block {
    margin-bottom: 1.4rem;
  }

  .profile-section__head {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .profile-section__index,
  .profile-glass__index {
    font-size: 2rem;
  }

  .profile-section__title {
    font-size: 1.25rem;
  }

  .profile-section__desc {
    margin-top: 0.3rem;
    font-size: 0.9rem;
  }

  .profile-section--spotlight,
  .profile-glass {
    padding: 1rem;
    border-radius: 1.4rem;
  }

  .profile-glass__title {
    margin-bottom: 0.9rem;
    padding-right: 2.2rem;
    font-size: 1.125rem;
  }

  .profile-block__head {
    margin-bottom: 1rem;
    padding-right: 2.2rem;
  }

  .profile-block__desc {
    font-size: 0.875rem;
  }

  .profile-about__lead {
    font-size: 1rem;
    line-height: 1.45;
  }

  .profile-about__body p {
    font-size: 0.92rem;
    line-height: 1.58;
  }

  .profile-about__meta {
    margin-top: 1.1rem;
    padding-top: 1rem;
    gap: 0.55rem;
  }

  .profile-about__meta > div {
    padding: 0.78rem 0.86rem;
    border-radius: 1rem;
  }

  .profile-about__meta dd {
    font-size: 0.86rem;
  }

  .profile-services {
    gap: 0.65rem;
  }

  .profile-service-card {
    padding: 1rem 1rem 1rem 1.2rem;
    border-radius: 1.1rem;
  }

  .profile-service-card__name {
    font-size: 0.95rem;
  }

  .profile-service-card__price {
    margin-top: 0.35rem;
    font-size: 0.8rem;
  }

  .profile-location {
    gap: 1rem;
  }

  .profile-location__city {
    font-size: 1.2rem;
  }

  .profile-location__area {
    font-size: 0.9rem;
  }

  .profile-location__privacy {
    margin-top: 0.8rem;
    font-size: 0.75rem;
  }

  .profile-location__map {
    min-height: 12.5rem;
    border-radius: 1rem;
  }

  .profile-reviews {
    padding: 1rem;
    border-radius: 1.4rem;
  }

  .profile-reviews__lead {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .profile-review-form,
  .profile-review-card {
    padding: 1rem;
    border-radius: 1rem;
  }

  .profile-stars__btn {
    width: 2rem;
    height: 2rem;
  }

  .profile-review-form__input {
    font-size: 0.9rem;
  }
}

/* --- Masonry portfolio --- */
.profile-masonry {
  columns: 2;
  column-gap: 1rem;
}

/* Mobile: одна колонка + згортання зайвих фото */
@media (max-width: 639px) {
  .profile-masonry {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    columns: unset;
  }

  .profile-masonry__item {
    break-inside: auto;
    margin-bottom: 0;
    aspect-ratio: 4 / 3;
    cursor: pointer;
  }

  .profile-masonry.is-collapsed .profile-masonry__item:nth-child(n + 4) {
    display: none;
  }

  .profile-masonry__item--feature,
  .profile-masonry__item--tall,
  .profile-masonry__item--wide {
    aspect-ratio: 4 / 3;
  }
}

.profile-portfolio__toggle {
  display: none;
  width: 100%;
  margin-top: 0.875rem;
  padding: 0.875rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 35, 62, 0.1);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

@media (max-width: 639px) {
  .profile-portfolio__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .profile-portfolio__toggle[hidden] {
    display: none;
  }
}

.profile-portfolio__toggle:hover {
  background: #fff;
  border-color: rgba(231, 139, 123, 0.35);
}

.profile-portfolio__toggle[aria-expanded='true'] {
  color: var(--muted-foreground);
}

/* Lightbox */
.profile-lightbox {
  --lb-backdrop: rgba(16, 35, 62, 0.52);
  --lb-shell-bg: rgba(255, 255, 255, 0.96);
  --lb-shell-border: rgba(16, 35, 62, 0.08);
  --lb-shell-shadow: 0 28px 72px rgba(16, 35, 62, 0.2);
  --lb-bar-border: rgba(16, 35, 62, 0.08);
  --lb-title: var(--navy);
  --lb-muted: var(--muted-foreground);
  --lb-control-bg: rgba(255, 255, 255, 0.95);
  --lb-control-border: rgba(16, 35, 62, 0.1);
  --lb-control-color: var(--navy);
  --lb-control-hover-bg: #fff;
  --lb-control-hover-border: rgba(231, 139, 123, 0.35);
  --lb-frame-bg: rgba(248, 245, 242, 0.95);
  --lb-frame-border: rgba(16, 35, 62, 0.06);
  --lb-thumb-bg: rgba(16, 35, 62, 0.05);
  --lb-thumb-active-shadow: 0 6px 20px rgba(231, 139, 123, 0.28);
  --lb-scrollbar: rgba(16, 35, 62, 0.18);

  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 3vw, 1.25rem);
}

[data-theme="dark"] .profile-lightbox {
  --lb-backdrop: rgba(4, 8, 16, 0.92);
  --lb-shell-bg: rgba(18, 28, 44, 0.88);
  --lb-shell-border: rgba(255, 255, 255, 0.1);
  --lb-shell-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  --lb-bar-border: rgba(255, 255, 255, 0.08);
  --lb-title: #fff;
  --lb-muted: rgba(255, 255, 255, 0.55);
  --lb-control-bg: rgba(255, 255, 255, 0.1);
  --lb-control-border: rgba(255, 255, 255, 0.12);
  --lb-control-color: #fff;
  --lb-control-hover-bg: rgba(255, 255, 255, 0.2);
  --lb-control-hover-border: rgba(255, 255, 255, 0.22);
  --lb-frame-bg: rgba(0, 0, 0, 0.35);
  --lb-frame-border: rgba(255, 255, 255, 0.06);
  --lb-thumb-bg: rgba(0, 0, 0, 0.35);
  --lb-thumb-active-shadow: 0 6px 20px rgba(224, 160, 148, 0.35);
  --lb-scrollbar: rgba(255, 255, 255, 0.2);
}

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

.profile-lightbox.is-open .profile-lightbox__shell {
  animation: profileLightboxIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes profileLightboxIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.profile-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: var(--lb-backdrop);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.profile-lightbox__shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 56rem);
  max-height: min(94dvh, 52rem);
  padding: 0.75rem;
  background: var(--lb-shell-bg);
  border: 1px solid var(--lb-shell-border);
  border-radius: 1.5rem;
  box-shadow: var(--lb-shell-shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.profile-lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0.35rem 0.75rem;
  border-bottom: 1px solid var(--lb-bar-border);
}

.profile-lightbox__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lb-title);
}

.profile-lightbox__counter {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--lb-muted);
}

.profile-lightbox__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--lb-control-border);
  border-radius: 50%;
  background: var(--lb-control-bg);
  color: var(--lb-control-color);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.profile-lightbox__close:hover {
  background: var(--lb-control-hover-bg);
  border-color: var(--lb-control-hover-border);
}

.profile-lightbox__close svg {
  width: 1.125rem;
  height: 1.125rem;
}

.profile-lightbox__stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-height: 0;
  padding: 0.25rem 0;
  touch-action: pan-y pinch-zoom;
}

.profile-lightbox__frame {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(58dvh, 28rem);
  max-height: min(62dvh, 32rem);
  padding: 0.5rem;
  background: var(--lb-frame-bg);
  border-radius: 1rem;
  border: 1px solid var(--lb-frame-border);
}

.profile-lightbox__img {
  display: block;
  width: 100%;
  max-height: min(58dvh, 28rem);
  object-fit: contain;
  border-radius: 0.5rem;
  transition: opacity 0.28s ease;
}

.profile-lightbox__img.is-fading {
  opacity: 0;
}

.profile-lightbox__nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--lb-control-border);
  border-radius: 50%;
  background: var(--lb-control-bg);
  color: var(--lb-control-color);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.profile-lightbox__nav:hover:not(:disabled) {
  background: var(--lb-control-hover-bg);
  border-color: var(--lb-control-hover-border);
  transform: scale(1.04);
}

.profile-lightbox__nav:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.profile-lightbox__nav svg {
  width: 1.25rem;
  height: 1.25rem;
}

.profile-lightbox__thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.15rem 0.15rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--lb-scrollbar) transparent;
}

.profile-lightbox__thumbs::-webkit-scrollbar {
  height: 4px;
}

.profile-lightbox__thumbs::-webkit-scrollbar-thumb {
  background: var(--lb-scrollbar);
  border-radius: 999px;
}

.profile-lightbox__thumb {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.65rem;
  overflow: hidden;
  background: var(--lb-thumb-bg);
  cursor: pointer;
  opacity: 0.55;
  transition:
    opacity 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

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

.profile-lightbox__thumb:hover {
  opacity: 0.85;
}

.profile-lightbox__thumb.is-active {
  opacity: 1;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--lb-thumb-active-shadow);
}

@media (max-width: 639px) {
  .profile-lightbox__shell {
    width: 100%;
    max-height: 96dvh;
    padding: 0.625rem;
    border-radius: 1.25rem 1.25rem 0 0;
    align-self: flex-end;
  }

  .profile-lightbox {
    align-items: flex-end;
    padding: 0;
  }

  .profile-lightbox__stage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.625rem;
  }

  .profile-lightbox__frame {
    grid-row: 1;
    grid-column: 1 / -1;
    min-height: 42dvh;
    max-height: 50dvh;
  }

  .profile-lightbox__img {
    max-height: 48dvh;
  }

  .profile-lightbox__nav {
    width: 100%;
    height: 2.75rem;
    border-radius: 999px;
  }

  .profile-lightbox__nav--prev {
    grid-row: 2;
    grid-column: 1;
  }

  .profile-lightbox__nav--next {
    grid-row: 2;
    grid-column: 2;
  }

  .profile-lightbox__thumb {
    width: 3rem;
    height: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-lightbox.is-open .profile-lightbox__shell,
  .profile-lightbox__img {
    animation: none;
    transition: none;
  }
}

@media (min-width: 640px) {
  .profile-masonry {
    column-gap: 1.25rem;
  }
}

@media (min-width: 900px) {
  .profile-masonry {
    columns: 3;
    column-gap: 1.5rem;
  }
}

.profile-masonry__item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 1.35rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--navy);
  box-shadow:
    0 16px 48px rgba(16, 35, 62, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.profile-masonry__item--feature {
  border-radius: 1.75rem;
  box-shadow:
    0 24px 64px rgba(16, 35, 62, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 0 48px var(--profile-accent-soft);
}

.profile-masonry__item--feature::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

@media (min-width: 900px) {
  .profile-masonry__item {
    margin-bottom: 1.5rem;
    border-radius: 1.5rem;
  }
}

.profile-masonry__item--feature {
  aspect-ratio: 4 / 5;
}

.profile-masonry__item--tall {
  aspect-ratio: 3 / 4;
}

.profile-masonry__item--wide {
  aspect-ratio: 4 / 3;
}

.profile-masonry__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--profile-ease);
}

.profile-masonry__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(16, 35, 62, 0.35) 100%
  );
  opacity: 0;
  transition: opacity var(--profile-duration) var(--profile-ease);
  pointer-events: none;
}

.profile-masonry__item:hover img {
  transform: scale(1.06);
}

.profile-masonry__item:hover .profile-masonry__overlay {
  opacity: 1;
}

/* --- Glass blocks --- */
.profile-glass {
  position: relative;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--profile-surface);
  backdrop-filter: blur(20px) saturate(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
  border: 1px solid var(--profile-surface-border);
  border-radius: var(--profile-radius-lg);
  box-shadow: var(--profile-surface-shadow);
}

.profile-glass--about::after {
  content: '';
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--profile-accent-soft), transparent 70%);
  pointer-events: none;
}

.profile-glass__index {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--profile-accent);
  opacity: 0.7;
}

.profile-glass__title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-right: 3rem;
}

.profile-block {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.profile-block__head {
  margin-bottom: 1.75rem;
  padding-right: 3rem;
}

.profile-block__title {
  margin-bottom: 0.5rem;
}

.profile-block__desc {
  font-size: 1rem;
  font-weight: 600;
  color: var(--profile-accent);
  line-height: 1.45;
}

.profile-block--services::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 45%;
  height: 55%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--profile-accent-soft), transparent 70%);
  pointer-events: none;
}

.profile-block--services .profile-services {
  position: relative;
  z-index: 1;
}

.profile-about__lead {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: var(--navy);
  opacity: 1;
}

.profile-about__body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--navy);
  opacity: 0.9;
}

.profile-about__body p + p {
  margin-top: 1rem;
}

.profile-about__meta {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(16, 35, 62, 0.06);
}

@media (min-width: 480px) {
  .profile-about__meta {
    grid-template-columns: repeat(2, 1fr);
  }
}

.profile-about__meta > div {
  padding: 1rem 1.125rem;
  background: var(--profile-surface-nested);
  border: 1px solid var(--profile-surface-border);
  border-radius: 1.25rem;
  border-left: 3px solid var(--profile-accent);
}

.profile-about__meta dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.profile-about__meta dd {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 0.35rem;
}

/* --- Services --- */
.profile-services {
  display: grid;
  gap: 1rem;
}

@media (min-width: 480px) {
  .profile-services {
    grid-template-columns: repeat(2, 1fr);
  }
}

.profile-service-card {
  position: relative;
  padding: 1.35rem 1.5rem 1.35rem 1.65rem;
  background: var(--profile-surface-nested);
  border: 1px solid var(--profile-surface-border);
  border-radius: 1.5rem;
  box-shadow:
    0 8px 22px rgba(16, 35, 62, 0.06),
    inset 0 1px 0 var(--profile-surface-inset);
  transition:
    transform var(--profile-duration) var(--profile-ease),
    box-shadow var(--profile-duration) var(--profile-ease),
    border-color var(--profile-duration) var(--profile-ease);
  transition-delay: calc(var(--service-i, 0) * 0.04s);
}

.profile-service-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--profile-accent), var(--coral));
  opacity: 0.85;
}

.profile-service-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(231, 139, 123, 0.2);
  box-shadow:
    0 20px 48px var(--profile-accent-soft),
    0 8px 24px rgba(16, 35, 62, 0.08);
}

.profile-service-card__name {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.profile-service-card__price {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--profile-accent);
}

/* --- Location --- */
.profile-location {
  display: grid;
  gap: 1.75rem;
  overflow: hidden;
}

.profile-location__copy {
  position: relative;
}

.profile-location .profile-glass__index {
  top: 0;
  right: 0;
}

.profile-location .profile-glass__title {
  padding-right: 3.5rem;
}

@media (min-width: 768px) {
  .profile-location {
    grid-template-columns: 1fr 1.15fr;
    align-items: stretch;
  }
}

.profile-location__city {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.profile-location__area {
  margin-top: 0.35rem;
  font-size: 1rem;
  color: var(--muted-foreground);
}

.profile-location__privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.profile-location__privacy svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  opacity: 0.7;
}

.profile-location__map {
  min-height: 15rem;
  border-radius: 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(16, 35, 62, 0.08);
  box-shadow:
    0 16px 48px rgba(16, 35, 62, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
  .profile-location__map {
    min-height: 18rem;
  }
}

.profile-location__map .leaflet-control-attribution {
  font-size: 0.625rem;
  opacity: 0.65;
}

/* --- Empty states --- */
.profile-empty {
  position: relative;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
  background: var(--profile-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px dashed rgba(16, 35, 62, 0.12);
  border-radius: var(--profile-radius-lg);
  box-shadow: 0 16px 48px rgba(16, 35, 62, 0.04);
}

.profile-empty--reviews {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(255, 255, 255, 0.5) 100%
  );
}

.profile-empty--reviews .profile-empty__index {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  opacity: 0.15;
}

.profile-empty--inset {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.35);
  border-radius: 1.25rem;
  border: 1px dashed rgba(16, 35, 62, 0.1);
  margin-bottom: 0;
  box-shadow: none;
}

.profile-empty--soft {
  margin-top: 1rem;
  padding: 1.5rem;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 1.25rem;
  border: 1px dashed rgba(16, 35, 62, 0.1);
  box-shadow: none;
}

.profile-empty__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.25rem;
  color: var(--profile-accent);
  opacity: 0.85;
}

.profile-empty__icon svg {
  width: 100%;
  height: 100%;
}

.profile-empty__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  max-width: 22rem;
  margin: 0 auto;
}

.profile-empty__text {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
}

/* --- Reviews --- */
.profile-reviews {
  position: relative;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--profile-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--profile-surface-border);
  border-radius: var(--profile-radius-lg);
  box-shadow: var(--profile-surface-shadow);
}

.profile-reviews .profile-glass__index {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  opacity: 0.7;
}

.profile-reviews__intro {
  text-align: center;
  margin-bottom: 1.75rem;
}

.profile-reviews__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  color: var(--profile-accent);
  opacity: 0.85;
}

.profile-reviews__icon svg {
  width: 100%;
  height: 100%;
}

.profile-reviews__intro .profile-glass__title {
  text-align: center;
  padding-right: 0;
}

.profile-reviews__lead {
  margin-top: 0.65rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.profile-reviews__empty {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.profile-reviews__empty[hidden] {
  display: none;
}

.profile-reviews__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.profile-reviews__list[hidden] {
  display: none;
}

.profile-review-card {
  padding: 1.125rem 1.25rem;
  text-align: left;
  background: var(--profile-surface-nested);
  border: 1px solid var(--profile-surface-border);
  border-radius: 1.25rem;
}

.profile-review-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}

.profile-review-card__author {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--navy);
}

.profile-review-card__date {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.profile-review-card__stars {
  display: flex;
  gap: 0.15rem;
  margin-bottom: 0.625rem;
  color: var(--coral);
}

.profile-review-card__stars svg {
  width: 0.875rem;
  height: 0.875rem;
}

.profile-review-card__text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--navy);
}

.profile-review-form {
  padding: 1.25rem 1.25rem 1.375rem;
  text-align: left;
  background: var(--profile-surface-nested);
  border: 1px solid var(--profile-surface-border);
  border-radius: 1.25rem;
}

.profile-review-form__heading {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 1.125rem;
}

.profile-review-form__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.profile-review-form__rating {
  margin: 0 0 1.125rem;
  padding: 0;
  border: none;
}

.profile-stars {
  display: flex;
  gap: 0.35rem;
}

.profile-stars__btn {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  color: rgba(16, 35, 62, 0.18);
  border-radius: 0.5rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.profile-stars__btn:hover,
.profile-stars__btn.is-active,
.profile-stars__btn.is-hover {
  color: var(--coral);
  transform: scale(1.06);
}

.profile-stars__btn svg {
  width: 100%;
  height: 100%;
}

.profile-review-form__field {
  margin-bottom: 1rem;
}

.profile-review-form__input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 35, 62, 0.08);
  border-radius: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.profile-review-form__input::placeholder {
  color: var(--muted-foreground);
}

.profile-review-form__input:focus {
  outline: none;
  border-color: rgba(231, 139, 123, 0.45);
  box-shadow: 0 0 0 3px rgba(231, 139, 123, 0.15);
}

.profile-review-form__textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.profile-review-form__error,
.profile-review-form__success {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.profile-review-form__error {
  color: #c75a4a;
}

.profile-review-form__success {
  color: var(--coral-dark);
}

.profile-review-form__error[hidden],
.profile-review-form__success[hidden] {
  display: none;
}

.profile-review-form__submit {
  width: 100%;
}

@media (min-width: 480px) {
  .profile-review-form__submit {
    width: auto;
    min-width: 12rem;
  }
}

/* --- Support contacts --- */
.profile-support {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1rem calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  .profile-support {
    padding-bottom: 1.5rem;
  }
}

.profile-support .rika-support__link:hover {
  color: var(--profile-accent, var(--coral));
}

/* --- Mobile bar --- */
.profile-mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  gap: 0.5rem;
  background: rgba(248, 245, 242, 0.88);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-top: 1px solid rgba(16, 35, 62, 0.06);
  box-shadow: 0 -12px 40px rgba(16, 35, 62, 0.06);
}

@media (min-width: 768px) {
  .profile-mobile-bar {
    display: none;
  }
}

.profile-mobile-bar__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.625rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--navy);
  border-radius: 1rem;
  transition:
    background var(--profile-duration) var(--profile-ease),
    transform var(--profile-duration) var(--profile-ease);
}

.profile-mobile-bar__btn svg {
  width: 1.375rem;
  height: 1.375rem;
}

.profile-mobile-bar__btn--tg svg {
  color: #0088cc;
}

.profile-mobile-bar__btn--ig svg {
  color: #e1306c;
}

.profile-mobile-bar__btn:active {
  transform: scale(0.97);
}

.profile-mobile-bar__btn:hover {
  background: rgba(255, 255, 255, 0.7);
}

@media (prefers-reduced-motion: reduce) {
  .profile-atmosphere__blob,
  .profile-hero__photo-glow,
  .profile-hero__ring,
  .profile-hero__badge-dot {
    animation: none;
  }

  .profile-masonry__item img,
  .profile-cta__btn,
  .profile-service-card {
    transition: none;
  }
}

/* Light theme — clearer hierarchy against page background */
[data-theme="light"] .profile-hero__tagline {
  color: rgba(16, 35, 62, 0.72);
  font-weight: 550;
}

[data-theme="light"] .profile-hero__bio {
  color: rgba(16, 35, 62, 0.86);
  opacity: 1;
}

[data-theme="light"] .profile-section__desc,
[data-theme="light"] .profile-location__area,
[data-theme="light"] .profile-about__body p,
[data-theme="light"] .profile-reviews__lead {
  color: rgba(16, 35, 62, 0.68);
}

[data-theme="light"] .profile-chip {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(16, 35, 62, 0.09);
  box-shadow:
    0 2px 10px rgba(16, 35, 62, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

[data-theme="light"] .profile-hero__badge {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(16, 35, 62, 0.09);
  box-shadow: 0 2px 12px rgba(16, 35, 62, 0.06);
}

[data-theme="light"] .profile-header__back {
  background: var(--profile-surface);
  border-color: var(--profile-surface-border);
  box-shadow: 0 2px 12px rgba(16, 35, 62, 0.06);
}

[data-theme="light"] .profile-location__map {
  border-color: rgba(16, 35, 62, 0.1);
  box-shadow:
    0 12px 36px rgba(16, 35, 62, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

[data-theme="light"] .profile-review-form {
  margin-top: 1rem;
  padding: 1.5rem 1.375rem 1.625rem;
  background: #ffffff;
  border: 1px solid rgba(16, 35, 62, 0.12);
  border-radius: 1.35rem;
  box-shadow:
    0 12px 36px rgba(16, 35, 62, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

[data-theme="light"] .profile-review-form__label {
  color: rgba(16, 35, 62, 0.58);
}

[data-theme="light"] .profile-stars__btn {
  color: rgba(16, 35, 62, 0.28);
}

[data-theme="light"] .profile-review-form__input {
  background: #ffffff;
  border-color: rgba(16, 35, 62, 0.14);
  box-shadow: inset 0 1px 2px rgba(16, 35, 62, 0.04);
}

[data-theme="light"] .profile-review-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(16, 35, 62, 0.1);
  box-shadow: 0 4px 16px rgba(16, 35, 62, 0.05);
}

/* ----- Dark theme ----- */
[data-theme="dark"] .profile-page {
  --profile-glass: var(--glass);
  --profile-surface: var(--glass);
  --profile-surface-hover: rgba(28, 42, 64, 0.85);
  --profile-surface-nested: rgba(12, 20, 34, 0.55);
  --profile-surface-border: var(--glass-border);
  --profile-surface-inset: rgba(255, 255, 255, 0.06);
  --profile-surface-shadow: var(--shadow);
  --profile-surface-shadow-lg: var(--shadow);
  background:
    radial-gradient(ellipse 85% 65% at 78% 8%, rgba(45, 74, 111, 0.18), transparent 62%),
    radial-gradient(ellipse 75% 55% at 10% 92%, rgba(22, 36, 58, 0.36), transparent 58%),
    linear-gradient(180deg, #091223 0%, #0b1628 52%, #080f1a 100%);
}

[data-theme="dark"] .profile-atmosphere__wash {
  background:
    linear-gradient(180deg, rgba(7, 12, 22, 0.82) 0%, rgba(10, 18, 33, 0.56) 45%, rgba(6, 10, 18, 0.9) 100%),
    linear-gradient(155deg, rgba(13, 24, 40, 0.72) 0%, rgba(8, 15, 28, 0.18) 42%, rgba(7, 12, 22, 0.72) 100%),
    var(--profile-acc-bg, var(--bg-scene-image)) center bottom / cover no-repeat;
  filter: brightness(0.9) saturate(0.88);
}

[data-theme="dark"] .profile-atmosphere__wave {
  color: rgba(45, 74, 111, 0.16);
  opacity: 0.35;
}

[data-theme="dark"] .profile-atmosphere__blob--1 {
  background: rgba(45, 74, 111, 0.22);
}

[data-theme="dark"] .profile-atmosphere__blob--2 {
  background: rgba(36, 58, 87, 0.2);
}

[data-theme="dark"] .profile-header__back {
  color: var(--text-primary);
  background: var(--glass);
  border-color: var(--glass-border);
}

[data-theme="dark"] .profile-header__back:hover {
  box-shadow: var(--shadow);
}

[data-theme="dark"] .profile-hero-panel,
[data-theme="dark"] .profile-glass,
[data-theme="dark"] .profile-empty {
  background: var(--glass);
  border-color: var(--glass-border);
  box-shadow: var(--shadow);
}

[data-theme="dark"] .profile-hero-panel {
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .profile-hero-panel__glow {
  opacity: 0.35;
}

[data-theme="dark"] .profile-hero__ring {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 24px var(--profile-accent-soft);
}

[data-theme="dark"] .profile-hero__photo {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.12),
    0 16px 48px rgba(0, 0, 0, 0.35),
    0 0 40px var(--profile-accent-soft);
}

[data-theme="dark"] .profile-hero__badge {
  color: var(--text-primary);
  background: rgba(20, 31, 48, 0.85);
  border-color: var(--glass-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .profile-hero__name {
  color: var(--text-primary);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: var(--text-primary);
}

[data-theme="dark"] .profile-hero__eyebrow {
  color: var(--text-primary);
  background: rgba(24, 39, 62, 0.88);
  border-color: rgba(224, 160, 148, 0.38);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .profile-hero__eyebrow::before {
  box-shadow: 0 0 0 3px rgba(224, 160, 148, 0.32);
}

[data-theme="dark"] .profile-hero__tagline,
[data-theme="dark"] .profile-hero__bio {
  color: var(--text-secondary);
  opacity: 1;
}

[data-theme="dark"] .profile-chip {
  color: var(--text-primary);
  background: rgba(20, 31, 48, 0.72);
  border-color: var(--glass-border);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .profile-chip:hover {
  background: rgba(28, 42, 64, 0.88);
  border-color: var(--border-hover);
}

[data-theme="dark"] .profile-chip svg {
  color: var(--text-secondary);
  opacity: 1;
}

[data-theme="dark"] .profile-cta {
  background: var(--glass);
  border-color: var(--glass-border);
  box-shadow: var(--shadow);
}

[data-theme="dark"] .profile-cta__lead {
  color: var(--text-primary);
}

[data-theme="dark"] .profile-cta__btn {
  color: var(--text-primary);
  background: rgba(12, 20, 34, 0.65);
  border-color: var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .profile-cta__btn-icon {
  color: var(--text-primary);
}

[data-theme="dark"] .profile-cta__btn:hover {
  background: rgba(28, 42, 64, 0.85);
  border-color: rgba(224, 160, 148, 0.28);
}

[data-theme="dark"] .profile-cta__btn-sub {
  color: var(--text-muted);
}

[data-theme="dark"] .profile-section--spotlight {
  background: rgba(20, 31, 48, 0.45);
  border-color: var(--glass-border);
  box-shadow: var(--shadow);
}

[data-theme="dark"] .profile-section__index,
[data-theme="dark"] .profile-glass__index {
  color: #fff;
  opacity: 0.8;
}

[data-theme="dark"] .profile-reviews .profile-glass__index,
[data-theme="dark"] .profile-empty--reviews .profile-empty__index {
  opacity: 0.36;
}

[data-theme="dark"] .profile-glass--about::after {
  opacity: 0.35;
}

[data-theme="dark"] .profile-section__title,
[data-theme="dark"] .profile-glass__title,
[data-theme="dark"] .profile-about__lead,
[data-theme="dark"] .profile-about__body p,
[data-theme="dark"] .profile-about__meta dd,
[data-theme="dark"] .profile-service-card__name,
[data-theme="dark"] .profile-location__city,
[data-theme="dark"] .profile-empty__title {
  color: var(--text-primary);
}

[data-theme="dark"] .profile-section__desc,
[data-theme="dark"] .profile-about__meta dt,
[data-theme="dark"] .profile-location__area,
[data-theme="dark"] .profile-location__privacy,
[data-theme="dark"] .profile-empty__text {
  color: var(--text-secondary);
}

[data-theme="dark"] .profile-about__meta {
  border-top-color: var(--border);
}

[data-theme="dark"] .profile-about__meta > div {
  background: rgba(12, 20, 34, 0.55);
  border-color: var(--glass-border);
}

[data-theme="dark"] .profile-service-card {
  background: rgba(12, 20, 34, 0.55);
  border-color: var(--glass-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .profile-service-card:hover {
  background: rgba(28, 42, 64, 0.75);
  border-color: rgba(224, 160, 148, 0.22);
}

[data-theme="dark"] .profile-location__map {
  border-color: var(--glass-border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .profile-empty--reviews,
[data-theme="dark"] .profile-reviews,
[data-theme="dark"] .profile-empty--inset,
[data-theme="dark"] .profile-empty--soft {
  background: rgba(12, 20, 34, 0.45);
  border-color: var(--border);
}

[data-theme="dark"] .profile-reviews__lead,
[data-theme="dark"] .profile-reviews__empty {
  color: var(--text-secondary);
}

[data-theme="dark"] .profile-review-card {
  background: rgba(14, 22, 36, 0.65);
  border-color: var(--glass-border);
}

[data-theme="dark"] .profile-review-card__author,
[data-theme="dark"] .profile-review-card__text,
[data-theme="dark"] .profile-review-form__heading {
  color: var(--text-primary);
}

[data-theme="dark"] .profile-review-card__date,
[data-theme="dark"] .profile-review-form__label {
  color: var(--text-muted);
}

[data-theme="dark"] .profile-review-form {
  background: rgba(14, 22, 36, 0.55);
  border-color: var(--glass-border);
}

[data-theme="dark"] .profile-review-form__input {
  color: var(--text-primary);
  background: var(--input-bg);
  border-color: var(--input-border);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .profile-review-form__input:focus {
  border-color: rgba(224, 160, 148, 0.45);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

[data-theme="dark"] .profile-stars__btn {
  color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .profile-stars__btn:hover,
[data-theme="dark"] .profile-stars__btn.is-active,
[data-theme="dark"] .profile-stars__btn.is-hover {
  color: var(--coral-light);
}

[data-theme="dark"] .profile-review-form__success {
  color: var(--coral-light);
}

[data-theme="dark"] .profile-mobile-bar {
  background: rgba(15, 23, 37, 0.92);
  border-top-color: var(--glass-border);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .profile-mobile-bar__btn {
  color: var(--text-primary);
}

[data-theme="dark"] .profile-mobile-bar__btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .profile-portfolio__toggle {
  color: var(--text-primary);
  background: var(--input-bg);
  border-color: var(--input-border);
}

[data-theme="dark"] .profile-portfolio__toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(224, 160, 148, 0.35);
}

body.is-profile-lightbox-open {
  overflow: hidden;
}
