/* AI — «Зачіски та колористика»: hero, переваги, послуги, до/після, CTA */

.page-hair {
  --hc-pink: #ff5eb1;
  --hc-pink-soft: rgba(255, 94, 177, 0.35);
  --hc-glass: rgba(14, 12, 18, 0.42);
  --hc-glass-border: rgba(255, 255, 255, 0.12);
  --hc-blur: blur(22px) saturate(1.2);
  position: relative;
  color: var(--text);
  background: #050308;
  min-height: 100vh;
  overflow-x: clip;
}

.page-hair__bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: #08060a;
  background-image: url("assets/hair/page-bg.webp");
  background-size: cover;
  background-position: 78% center;
}

.page-hair__bg-scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 38%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.65) 100%),
    radial-gradient(ellipse 70% 60% at 85% 30%, rgba(120, 0, 90, 0.12), transparent 55%);
}

.page-hair .pk-top {
  background: rgba(6, 5, 10, 0.35);
  backdrop-filter: var(--hc-blur);
  -webkit-backdrop-filter: var(--hc-blur);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.page-hair .pk-top.pk-top--scrolled {
  background: rgba(6, 5, 10, 0.62);
}

.hair-main {
  overflow-x: clip;
}

.page-hair .pk-shell {
  padding-inline: max(var(--hero-pad-x), env(safe-area-inset-left, 0px))
    max(var(--hero-pad-x), env(safe-area-inset-right, 0px));
}

.page-hair .pk-top__home {
  font-family: "Oswald", var(--font-app), system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.page-hair .header-cta.pk-top__cta {
  font-family: "Oswald", var(--font-app), system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.page-hair .pk-top__inner {
  padding-inline: max(var(--hero-pad-x), env(safe-area-inset-left, 0px))
    max(var(--hero-pad-x), env(safe-area-inset-right, 0px));
  padding-top: max(16px, env(safe-area-inset-top, 0px));
}

/* ----- hero ----- */
.hc-hero {
  padding: clamp(12px, 2.5vw, 24px) 0 clamp(56px, 9vw, 100px);
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
}

.hc-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  width: 100%;
  max-width: var(--hero-shell-max);
  margin-inline: auto;
  padding-inline: max(var(--hero-pad-x), env(safe-area-inset-left, 0px))
    max(var(--hero-pad-x), env(safe-area-inset-right, 0px));
}

.hc-hero__copy {
  min-width: 0;
  max-width: min(560px, 100%);
  margin-inline: auto;
  text-align: center;
}

.hc-hero__kicker {
  margin: 0 0 clamp(12px, 1.5vw, 16px);
  font-family: var(--font-lead);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--hc-pink);
  text-align: center;
  text-shadow:
    0 0 20px rgba(255, 94, 177, 0.45),
    0 2px 12px rgba(0, 0, 0, 0.85);
}

.hc-hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 clamp(16px, 2vw, 24px);
  font-family: "Oswald", var(--font-app), system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(64px, 14vw, 140px);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff;
  text-shadow:
    0 2px 32px rgba(0, 0, 0, 0.85),
    0 0 60px rgba(0, 0, 0, 0.45);
}

.hc-hero__title-line {
  white-space: nowrap;
  line-height: 0.95;
}

.hc-hero__title-line + .hc-hero__title-line {
  margin-top: -0.02em;
}

.hc-hero__title-accent {
  color: var(--hc-pink);
  text-shadow:
    0 0 28px rgba(255, 94, 177, 0.45),
    0 2px 24px rgba(0, 0, 0, 0.5);
}

@media (max-width: 480px) {
  .hc-hero__title {
    font-size: clamp(36px, 11vw, 64px);
  }

  .hc-hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
  }

  .hc-hero__actions .hc-btn {
    width: 100%;
    max-width: none;
  }

  .hc-hero__lead {
    max-width: none;
    font-size: clamp(14px, 3.8vw, 17px);
  }
}

@media (max-width: 360px) {
  .hc-hero__title {
    font-size: clamp(32px, 9.5vw, 52px);
  }

  .hc-hero__kicker {
    letter-spacing: 0.22em;
    font-size: 12px;
  }
}

.hc-hero__lead {
  margin: 0 auto clamp(28px, 3.5vw, 36px);
  max-width: 40ch;
  font-family: var(--font-lead);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.75);
}

.hc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 16px;
}

@media (max-width: 900px) {
  .hc-hero {
    min-height: auto;
    padding-bottom: clamp(48px, 12vw, 80px);
  }

  .hc-hero__copy {
    max-width: none;
  }

  .hc-hero__lead {
    max-width: 38ch;
  }
}

/* ----- кнопки ----- */
.hc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: "Oswald", var(--font-app), system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease,
    color 0.2s ease;
}

.hc-btn--primary {
  color: #ffffff;
  background: linear-gradient(135deg, #ff5eb1 0%, #e04a9a 100%);
  border-color: rgba(255, 94, 177, 0.95);
  box-shadow: 0 0 28px rgba(255, 94, 177, 0.42);
}

.hc-btn--primary:hover {
  box-shadow:
    0 0 40px rgba(255, 94, 177, 0.55),
    0 10px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.hc-btn--ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
}

.hc-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.12);
}

.hc-btn__ico {
  font-size: 14px;
  line-height: 1;
}

.hc-btn--wide {
  min-width: min(100%, 280px);
}

/* ----- переваги (темна планка) ----- */
.hc-features {
  padding: clamp(28px, 4vw, 44px) 0;
  background: rgba(18, 16, 22, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hc-features__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
}

.hc-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}

.hc-feature__ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--hc-pink);
  border: 1px solid rgba(255, 94, 177, 0.55);
  background: rgba(255, 94, 177, 0.1);
  box-shadow: 0 0 18px rgba(255, 94, 177, 0.12);
}

.hc-feature__title {
  margin: 0 0 6px;
  font-family: "Oswald", var(--font-app), system-ui, sans-serif;
  font-size: clamp(12px, 0.95vw, 13px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.hc-feature__text {
  margin: 0;
  font-family: var(--font-lead);
  font-size: clamp(12px, 0.88vw, 13px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

/* ----- секційні заголовки ----- */
.hc-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: clamp(24px, 3.5vw, 36px);
}

.hc-section-title {
  margin: 0;
  font-family: "Oswald", var(--font-app), system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
}

.hc-section-link {
  font-family: "Oswald", var(--font-app), system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.hc-section-link:hover {
  color: var(--hc-pink);
}

/* ----- послуги ----- */
.hc-services {
  padding: clamp(52px, 8vw, 100px) 0;
  background: var(--hc-glass);
  backdrop-filter: var(--hc-blur);
  -webkit-backdrop-filter: var(--hc-blur);
  border-top: 1px solid var(--hc-glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow-x: clip;
}

.hc-services__track-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  touch-action: pan-x pinch-zoom;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 94, 177, 0.5) rgba(255, 255, 255, 0.06);
  margin-inline: calc(-1 * max(var(--hero-pad-x), env(safe-area-inset-left, 0px)))
    calc(-1 * max(var(--hero-pad-x), env(safe-area-inset-right, 0px)));
  padding-inline: max(var(--hero-pad-x), env(safe-area-inset-left, 0px))
    max(var(--hero-pad-x), env(safe-area-inset-right, 0px));
  padding-bottom: 14px;
  outline: none;
}

.hc-services__track-wrap:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 94, 177, 0.35);
  border-radius: 8px;
}

.hc-services__track-wrap::-webkit-scrollbar {
  height: 8px;
}

.hc-services__track-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 94, 177, 0.5);
  border-radius: 999px;
}

.hc-services__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: clamp(14px, 1.8vw, 20px);
  width: max-content;
  min-height: 0;
  margin-inline: auto;
  padding: 4px 2px 8px;
}

.hc-svc-card {
  flex: 0 0 auto;
  width: clamp(220px, 72vw, 300px);
  scroll-snap-align: start;
  min-width: 0;
}

.hc-svc-card__link {
  position: relative;
  display: block;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 94, 177, 0.35);
  background: rgba(20, 18, 24, 0.85);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.hc-svc-card__link:hover {
  border-color: rgba(255, 94, 177, 0.55);
  transform: translateY(-3px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(255, 94, 177, 0.12);
}

.hc-svc-card__num {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  font-family: "Oswald", var(--font-app), system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--hc-pink);
  text-shadow: 0 0 16px rgba(255, 94, 177, 0.55);
}

.hc-svc-card__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.hc-svc-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hc-svc-card__link:hover .hc-svc-card__media img {
  transform: scale(1.04);
}

.hc-svc-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: clamp(16px, 2vw, 22px);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 35%, rgba(0, 0, 0, 0.9) 100%);
}

.hc-svc-card__name {
  margin: 0 0 8px;
  font-family: "Oswald", var(--font-app), system-ui, sans-serif;
  font-size: clamp(15px, 1.35vw, 20px);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.12;
  text-transform: uppercase;
  color: #fff;
}

.hc-svc-card__more {
  font-family: "Oswald", var(--font-app), system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hc-svc-card__more::before {
  content: "";
  width: 20px;
  height: 1px;
  flex-shrink: 0;
  background: rgba(255, 94, 177, 0.75);
}

.hc-svc-card__arrow {
  color: var(--hc-pink);
  font-weight: 400;
  transition: transform 0.2s ease;
}

.hc-svc-card__link:hover .hc-svc-card__arrow {
  transform: translateX(4px);
}

/* ----- роботи до/після ----- */
.hc-works {
  padding: clamp(44px, 7vw, 88px) 0;
  background: rgba(10, 8, 14, 0.72);
  border-top: 1px solid var(--hc-glass-border);
  overflow-x: clip;
}

.hc-works .hc-section-head {
  padding-inline: var(--hero-pad-x);
  max-width: var(--hero-shell-max);
  margin-inline: auto;
}

.hc-works__track-wrap {
  display: flex;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  touch-action: pan-x pinch-zoom;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 94, 177, 0.5) rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
  padding-inline: max(0px, env(safe-area-inset-left, 0px)) max(0px, env(safe-area-inset-right, 0px));
  outline: none;
}

@media (min-width: 1024px) {
  .hc-works__track-wrap {
    justify-content: center;
  }
}

@supports (justify-content: safe center) {
  @media (min-width: 1024px) {
    .hc-works__track-wrap {
      justify-content: safe center;
    }
  }
}

.hc-works__track-wrap:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 94, 177, 0.4);
}

.hc-works__track {
  list-style: none;
  margin: 0;
  padding: 8px max(var(--hero-pad-x), env(safe-area-inset-left, 0px))
    max(var(--hero-pad-x), env(safe-area-inset-right, 0px)) 4px;
  display: flex;
  gap: clamp(16px, 2.5vw, 28px);
  width: max-content;
}

.hc-works__track > li {
  scroll-snap-align: start;
}

.hc-compare {
  flex-shrink: 0;
  width: clamp(200px, 32vw, 288px);
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.hc-compare__frame {
  --split-pct: 50;
  position: relative;
  aspect-ratio: 5 / 7;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: crosshair;
}

.hc-compare__img {
  display: block;
  max-width: none;
}

.hc-compare__img--after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hc-compare__clip {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: calc(var(--split-pct) * 1%);
  max-width: 100%;
  overflow: hidden;
}

.hc-compare__img--before {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: calc(100% * 100 / var(--split-pct));
  object-fit: cover;
}

.hc-compare__bar {
  position: absolute;
  left: calc(var(--split-pct) * 1%);
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 2px;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.95) 15%,
    rgba(255, 94, 177, 0.95) 50%,
    rgba(255, 255, 255, 0.95) 85%,
    rgba(255, 255, 255, 0) 100%
  );
  box-shadow:
    0 0 12px rgba(255, 94, 177, 0.65),
    0 0 2px rgba(0, 0, 0, 0.8);
}

.hc-compare__handle {
  position: absolute;
  left: calc(var(--split-pct) * 1%);
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 94, 177, 0.75);
  cursor: grab;
  touch-action: none;
  color: #fff;
  background: rgba(12, 10, 16, 0.85);
  box-shadow:
    0 0 20px rgba(255, 94, 177, 0.35),
    0 6px 16px rgba(0, 0, 0, 0.45);
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.hc-compare__handle:hover {
  border-color: rgba(255, 94, 177, 1);
  box-shadow:
    0 0 28px rgba(255, 94, 177, 0.5),
    0 8px 20px rgba(0, 0, 0, 0.5);
}

.hc-compare__handle.is-dragging,
.hc-compare__handle:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.04);
}

.hc-compare__handle:focus-visible {
  outline: 2px solid rgba(255, 94, 177, 0.85);
  outline-offset: 3px;
}

.hc-compare__handle-icon {
  font-size: 13px;
  line-height: 1;
  opacity: 0.95;
  letter-spacing: 0;
}

.hc-compare__labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-inline: 2px;
  font-family: "Oswald", var(--font-app), system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

/* ----- фінальний CTA ----- */
.hc-final {
  position: relative;
  padding: clamp(40px, 7vw, 88px) 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 94, 177, 0.2);
  background:
    radial-gradient(ellipse 95% 75% at 50% 115%, rgba(255, 94, 177, 0.2), transparent 52%),
    radial-gradient(ellipse 45% 35% at 78% 35%, rgba(255, 94, 177, 0.07), transparent 65%),
    linear-gradient(180deg, rgba(9, 7, 12, 0.98) 0%, rgba(12, 10, 16, 1) 100%);
}

.hc-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 94, 177, 0.03) 78%, transparent 95%);
  pointer-events: none;
}

.hc-final__panel {
  position: relative;
  border-radius: clamp(18px, 2.2vw, 26px);
  padding: clamp(26px, 4vw, 46px) clamp(20px, 3.2vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    155deg,
    rgba(26, 22, 32, 0.72) 0%,
    rgba(14, 12, 20, 0.82) 48%,
    rgba(12, 10, 18, 0.88) 100%
  );
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 94, 177, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.hc-final__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) auto minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}

.hc-final__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(12px, 1.4vw, 14px);
  font-family: "Oswald", var(--font-app), system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hc-pink);
  text-shadow: 0 0 28px rgba(255, 94, 177, 0.35);
}

.hc-final__eyebrow::before {
  content: "";
  width: clamp(24px, 3vw, 36px);
  height: 1px;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--hc-pink), rgba(255, 94, 177, 0));
}

.hc-final__title {
  margin: 0 0 clamp(12px, 2vw, 18px);
  font-family: "Oswald", var(--font-app), system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 2px 28px rgba(0, 0, 0, 0.55),
    0 0 1px rgba(0, 0, 0, 0.8);
}

.hc-final__sub {
  margin: 0;
  max-width: 34ch;
  font-family: var(--font-lead);
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.76);
}

.hc-final__col--btn {
  display: flex;
  justify-content: center;
  align-self: center;
}

.hc-final__cta.hc-btn--primary {
  box-shadow:
    0 0 32px rgba(255, 94, 177, 0.45),
    0 8px 24px rgba(0, 0, 0, 0.35);
  padding-inline: clamp(24px, 2.5vw, 32px);
  min-height: 52px;
}

.hc-final__cta.hc-btn--primary:hover {
  box-shadow:
    0 0 44px rgba(255, 94, 177, 0.55),
    0 12px 32px rgba(0, 0, 0, 0.4);
}

.hc-final__avatars {
  display: flex;
  align-items: center;
  margin-bottom: clamp(12px, 2vw, 16px);
}

.hc-final__avatars img {
  position: relative;
  z-index: 1;
  width: clamp(48px, 4.2vw, 58px);
  height: clamp(48px, 4.2vw, 58px);
  border-radius: 50%;
  object-fit: cover;
  margin-left: -14px;
  border: 2px solid rgba(18, 14, 22, 0.95);
  box-shadow:
    0 0 0 1px rgba(255, 94, 177, 0.55),
    0 6px 18px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(255, 94, 177, 0.12);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    z-index 0s linear 0s;
}

.hc-final__avatars img:first-child {
  margin-left: 0;
}

.hc-final__avatars img:nth-child(2) {
  z-index: 2;
}

.hc-final__avatars img:nth-child(3) {
  z-index: 3;
}

.hc-final__avatars img:hover {
  z-index: 4;
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255, 94, 177, 0.85),
    0 12px 28px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(255, 94, 177, 0.25);
}

.hc-final__team-title {
  margin: 0 0 8px;
  font-family: "Oswald", var(--font-app), system-ui, sans-serif;
  font-size: clamp(12px, 0.95vw, 13px);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.35;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hc-final__team-tag {
  margin: 0;
  font-family: var(--font-lead);
  font-size: clamp(12px, 0.95vw, 13px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.66);
  max-width: 28ch;
}

@media (min-width: 1025px) {
  .hc-final__col--btn {
    padding-inline: clamp(16px, 2.8vw, 40px);
    margin-inline: clamp(4px, 1vw, 12px);
    border-inline: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* ----- футер ----- */
.hc-foot {
  padding: 26px 0 calc(34px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--hc-glass-border);
  background: var(--hc-glass);
  backdrop-filter: var(--hc-blur);
  -webkit-backdrop-filter: var(--hc-blur);
}

.hc-foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hc-foot__copy {
  margin: 0;
  font-family: var(--font-lead);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

/* ----- adaptive ----- */
@media (max-width: 1024px) {
  .hc-final__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hc-final__eyebrow {
    justify-content: center;
  }

  .hc-final__eyebrow::before {
    display: none;
  }

  .hc-final__sub,
  .hc-final__team-tag {
    margin-inline: auto;
  }

  .hc-final__title {
    margin-inline: auto;
    max-width: none;
  }

  .hc-final__col--team {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hc-final__col--btn {
    width: 100%;
    justify-content: center;
    border-inline: none;
    padding-inline: 0;
    margin-inline: 0;
  }

  .hc-final__col--btn .hc-btn--wide {
    width: min(100%, 360px);
  }
}

@media (max-width: 900px) {
  .hc-features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hc-features__grid {
    grid-template-columns: 1fr;
  }

  .hc-compare {
    width: min(288px, calc(100vw - max(var(--hero-pad-x), env(safe-area-inset-left, 0px)) - max(var(--hero-pad-x), env(safe-area-inset-right, 0px)) - 40px));
  }
}

@media (max-width: 768px) {
  .page-hair__bg {
    background-position: 65% center;
  }

  .hc-services__track-wrap {
    margin-inline: 0;
    scroll-padding-inline: max(var(--hero-pad-x), env(safe-area-inset-left, 0px))
      max(var(--hero-pad-x), env(safe-area-inset-right, 0px));
  }

  .hc-services__track {
    margin-inline: 0;
    justify-content: flex-start;
  }

  .hc-svc-card {
    width: min(300px, calc(100vw - max(var(--hero-pad-x), env(safe-area-inset-left, 0px)) - max(var(--hero-pad-x), env(safe-area-inset-right, 0px)) - 24px));
    scroll-margin-inline: max(var(--hero-pad-x), env(safe-area-inset-left, 0px));
  }

  .hc-section-head {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    margin-bottom: clamp(20px, 4vw, 28px);
  }

  .hc-section-title {
    width: 100%;
    text-align: center;
  }

  .hc-section-link {
    justify-content: center;
    text-align: center;
  }

  .hc-svc-card__body {
    text-align: center;
  }

  .hc-svc-card__more {
    width: 100%;
    justify-content: center;
  }

  .hc-svc-card__more::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .page-hair__bg {
    background-position: 56% center;
  }

  .hc-svc-card {
    width: min(280px, calc(100vw - max(var(--hero-pad-x), env(safe-area-inset-left, 0px)) - max(var(--hero-pad-x), env(safe-area-inset-right, 0px)) - 20px));
  }

  .hc-final__panel {
    padding: 22px 16px;
    border-radius: 18px;
  }

  .hc-foot__inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .hc-foot__copy {
    text-align: center;
  }
}

@media (max-width: 900px) and (max-height: 520px) {
  .hc-hero {
    min-height: 0;
    padding-block: clamp(12px, 3vh, 28px) clamp(28px, 7vh, 48px);
  }
}

@media (pointer: coarse) {
  .hc-btn {
    min-height: 48px;
    padding-inline: max(26px, 1.2em);
  }

  .hc-compare__handle {
    width: 44px;
    height: 44px;
  }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .page-hair .pk-top {
    background: rgba(6, 5, 10, 0.92);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hc-final__panel {
    background: rgba(18, 14, 22, 0.94);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hc-services,
  .hc-foot {
    background: rgba(16, 14, 20, 0.95);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hc-btn,
  .hc-svc-card__link,
  .hc-section-link {
    transition: none;
  }

  .hc-btn--primary:hover,
  .hc-svc-card__link:hover {
    transform: none;
  }

  .hc-svc-card__link:hover .hc-svc-card__media img {
    transform: none;
  }

  .hc-svc-card__link:hover .hc-svc-card__arrow {
    transform: none;
  }

  .hc-final__avatars img:hover {
    transform: none;
  }

  .hc-compare__handle {
    transition: none;
  }

  .hc-compare__handle.is-dragging,
  .hc-compare__handle:active {
    transform: translate(-50%, -50%);
  }
}


/* ===== «Реальні фото» (тест, html.look-real): волосся — блонд з локонами в салоні (папка «нові», IMG_7065, вибір власника) — наше фото праворуч з плавним переходом у темряву,
   текст ліворуч; фон сторінки — розмитий наш салон замість згенерованого (2026-10-27) ===== */
.look-real .page-hair__bg {
  background: url("assets/hero-real/salon-blur.jpg") center / cover no-repeat;
  filter: brightness(0.42);
}
.look-real .hc-hero { position: relative; isolation: isolate; min-height: min(92vh, 900px); }
.look-real .hc-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  z-index: -1;
  background: url("assets/hero-real/hair.jpg") 50% 18% / cover no-repeat;
  filter: brightness(0.9) saturate(1.08);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 14%, #000 34%), linear-gradient(0deg, transparent 0%, #000 16%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 14%, #000 34%), linear-gradient(0deg, transparent 0%, #000 16%);
  mask-composite: intersect;
}
@media (min-width: 901px) {
  .look-real .hc-hero__grid { justify-items: start; text-align: left; }
  .look-real .hc-hero__copy { margin-inline: 0; text-align: left; max-width: min(540px, 44vw); }
  .look-real .hc-hero__copy p { margin-left: 0; }
  .look-real .hc-hero__actions { justify-content: flex-start; }
  .look-real .hc-hero__copy h1,
  .look-real .hc-hero__copy p { text-shadow: 0 2px 22px rgba(0, 0, 0, 0.75); }
}
/* телефон: фото зверху на всю ширину, плавно переходить у текст */
@media (max-width: 900px) {
  .look-real .hc-hero::before {
    width: 100%;
    bottom: auto;
    height: 62vh;
    -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
    filter: brightness(0.7) saturate(1.08);
  }
  .look-real .hc-hero { padding-top: 40vh; }
}
@media (min-width: 901px) {
  .look-real .hc-hero__copy > *, .look-real .hc-hero__copy h1 > span { text-align: left; margin-left: 0; margin-right: 0; justify-content: flex-start; }
  .look-real .hc-hero__copy h1 > span { display: block; }
}
@media (min-width: 901px) {
  .look-real .hc-hero__copy h1 { align-items: flex-start; }
}
@media (min-width: 901px) {
  .look-real .hc-hero__title { font-size: clamp(44px, 5.4vw, 84px); }
}

/* «Реальні фото»: картки послуг — наші роботи з папки «Волосся» замість згенерованих (2026-10-27) */
.look-real img[src$="hair/services/cuts.webp"] { content: url("assets/hero-real/hair-cuts.jpg"); }
.look-real img[src$="hair/services/complex.webp"] { content: url("assets/hero-real/hair-complex.jpg"); }
.look-real img[src$="hair/services/color.webp"] { content: url("assets/hero-real/hair-color.jpg"); }
.look-real img[src$="hair/services/blond.webp"] { content: url("assets/hero-real/hair-blond.jpg"); }
.look-real img[src$="hair/services/toning.webp"] { content: url("assets/hero-real/hair-toning.jpg"); }
.look-real img[src$="hair/services/care.webp"] { content: url("assets/hero-real/hair-care.jpg"); }
.look-real .hc-svc-card__media img { object-fit: cover; object-position: 50% 30%; }

/* 2026-10-27, власник: «трішки рожевого» на фото + низ волосся не затемнювати (видно хвилі) */
@media (min-width: 901px) {
  .look-real .hc-hero::before {
    background:
      radial-gradient(ellipse 60% 50% at 85% 10%, rgba(255, 94, 177, 0.85), transparent 70%),
      radial-gradient(ellipse 45% 65% at 100% 70%, rgba(255, 94, 177, 0.6), transparent 70%),
      linear-gradient(rgba(255, 94, 177, 0.2), rgba(255, 94, 177, 0.2)),
      url("assets/hero-real/hair.jpg") 50% 24% / cover no-repeat;
    background-blend-mode: soft-light, soft-light, soft-light, normal;
    filter: brightness(1) saturate(1.06);
    /* лише плавний перехід зліва, без затемнення знизу */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 14%, #000 34%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 14%, #000 34%);
  }
}
@media (max-width: 900px) {
  .look-real .hc-hero::before {
    background:
      radial-gradient(ellipse 70% 40% at 90% 10%, rgba(255, 94, 177, 0.85), transparent 70%),
      radial-gradient(ellipse 50% 50% at 100% 60%, rgba(255, 94, 177, 0.6), transparent 70%),
      linear-gradient(rgba(255, 94, 177, 0.2), rgba(255, 94, 177, 0.2)),
      url("assets/hero-real/hair.jpg") 50% 18% / cover no-repeat;
    background-blend-mode: soft-light, soft-light, soft-light, normal;
    filter: brightness(0.8) saturate(1.08);
  }
}


/* ===== «До і після» — копія блоку зі сторінки догляду (hair-care.css), 2026-10-27 прохання власника ===== */
.hcd-results { --hcd-pink: #ff5eb1; --hcd-display: "Oswald", var(--font-app), system-ui, sans-serif; }
.hcd-sec-kicker {
  margin: 0 0 12px;
  font-family: var(--font-lead);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--hcd-pink);
  text-align: center;
}
.hcd-sec-title {
  margin: 0;
  font-family: var(--hcd-display);
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
}
.hcd-sec-title--narrow {
  max-width: 18ch;
  margin-inline: auto;
}
.hcd-results {
  padding: clamp(44px, 7vw, 88px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(2, 1, 4, 0.95);
}
.hcd-results__head {
  margin-bottom: clamp(26px, 4vw, 40px);
}
.hcd-results__track-wrap {
  display: flex;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  touch-action: pan-x pinch-zoom;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 94, 177, 0.45) rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
  padding-inline: max(0px, env(safe-area-inset-left, 0px)) max(0px, env(safe-area-inset-right, 0px));
  outline: none;
}
@media (min-width: 1024px) {
  .hcd-results__track-wrap {
    justify-content: center;
  }
}
.hcd-results__track {
  list-style: none;
  margin: 0;
  padding: 8px max(var(--hero-pad-x), env(safe-area-inset-left, 0px))
    max(var(--hero-pad-x), env(safe-area-inset-right, 0px)) 6px;
  display: flex;
  gap: clamp(16px, 2.5vw, 28px);
  width: max-content;
}
.hcd-results__track > li {
  scroll-snap-align: start;
}
.hcd-compare {
  flex-shrink: 0;
  width: clamp(200px, 30vw, 288px);
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.hcd-compare__frame {
  --split-pct: 50;
  position: relative;
  aspect-ratio: 5 / 7;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: crosshair;
}
.hcd-compare__img {
  display: block;
  max-width: none;
}
.hcd-compare__img--after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hcd-compare__clip {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: calc(var(--split-pct) * 1%);
  max-width: 100%;
  overflow: hidden;
}
.hcd-compare__img--before {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: calc(100% * 100 / var(--split-pct));
  object-fit: cover;
}
.hcd-compare__bar {
  position: absolute;
  left: calc(var(--split-pct) * 1%);
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 2px;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.95) 15%,
    rgba(255, 94, 177, 0.95) 50%,
    rgba(255, 255, 255, 0.95) 85%,
    rgba(255, 255, 255, 0) 100%
  );
  box-shadow:
    0 0 12px rgba(255, 94, 177, 0.65),
    0 0 2px rgba(0, 0, 0, 0.8);
}
.hcd-compare__handle {
  position: absolute;
  left: calc(var(--split-pct) * 1%);
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 94, 177, 0.75);
  cursor: grab;
  touch-action: none;
  color: #fff;
  background: rgba(12, 10, 16, 0.85);
  box-shadow:
    0 0 20px rgba(255, 94, 177, 0.35),
    0 6px 16px rgba(0, 0, 0, 0.45);
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}
.hcd-compare__handle:hover {
  border-color: rgba(255, 94, 177, 1);
  box-shadow:
    0 0 28px rgba(255, 94, 177, 0.5),
    0 8px 20px rgba(0, 0, 0, 0.5);
}
.hcd-compare__handle.is-dragging,
.hcd-compare__handle:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.04);
}
.hcd-compare__handle:focus-visible {
  outline: 2px solid rgba(255, 94, 177, 0.85);
  outline-offset: 3px;
}
.hcd-compare__handle-icon {
  font-size: 13px;
  line-height: 1;
}
.hcd-compare__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-inline: 2px;
  font-family: "Oswald", var(--font-app), sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 600px) {
  .hcd-compare {
    width: min(288px, 86vw);
  }
}
@media (pointer: coarse) {
  .hcd-compare__handle {
    width: 48px;
    height: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hcd-compare__handle {
    transition: none;
  }
}

/* 2026-10-27, власник: «Наші послуги» — на комп’ютері перша/остання картка обрізалась і «зіскакувала»
   (прилипання рахувалось від краю прокрутки, а не від видимого початку). Як на телефоні: відступ для прилипання
   = відступу сторінки, доріжка від лівого краю */
.hc-services__track-wrap {
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--hero-pad-x), env(safe-area-inset-left, 0px)) max(var(--hero-pad-x), env(safe-area-inset-right, 0px));
}
.hc-services__track { margin-inline: 0; justify-content: flex-start; }
.hc-svc-card { scroll-snap-align: start; scroll-margin-inline: 0; }
/* комп’ютер: доріжка на всю ширину екрана, перша картка на старті й остання в кінці — рівно по краю вмісту
   сторінки (там, де заголовок «Наші послуги») */
@media (min-width: 769px) {
  .hc-services__track-wrap {
    --hc-edge: calc((100vw - var(--hero-shell-max)) / 2 + var(--hero-pad-x));
    margin-inline: 0;
    padding-inline: var(--hc-edge);
    scroll-padding-inline: var(--hc-edge);
  }
}
