/* ——— Homepage cinematic system ——— */

.page-home {
  --home-gap: clamp(4.5rem, 10vw, 8.5rem);
}

.page-home .site-footer {
  margin-top: 0;
}

/* Hero — cinematic */
.home-hero {
  position: relative;
  overflow: hidden;
  color: var(--ink-hero);
}

.home-hero--cinema {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding-bottom: clamp(3rem, 8vh, 5.5rem);
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.home-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 12, 20, 0.62) 0%, rgba(6, 12, 20, 0.28) 42%, rgba(6, 12, 20, 0.9) 100%),
    linear-gradient(105deg, rgba(13, 143, 123, 0.32), transparent 48%);
  pointer-events: none;
}

.home-hero__grain {
  display: none;
}

.home-hero__layout {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, var(--max-w-wide));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: end;
}

.home-hero__copy {
  min-width: 0;
  max-width: min(36rem, 100%);
}

.home-hero__eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.home-hero__brand {
  font-size: clamp(1.75rem, 4.2vw, 3.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 0 0 0.85rem;
  max-width: 100%;
  white-space: normal;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.home-hero__brand-name,
.home-hero__brand-sub {
  display: block;
  white-space: normal;
}

.home-hero__brand-sub {
  margin-top: 0.12em;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.home-hero__line {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 500;
  line-height: 1.65;
  margin: 0 0 1.1rem;
  max-width: 38ch;
  color: color-mix(in srgb, var(--ink-hero) 88%, transparent);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.home-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.home-hero__tags li {
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 14, 22, 0.45);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(245, 248, 251, 0.92);
}

.home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-hero__props--trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  width: clamp(280px, 36vw, 400px);
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  transform: translateY(0.35rem);
}

.home-hero__prop {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  background: rgba(8, 14, 22, 0.35);
}

.home-hero__prop:nth-child(2) {
  transform: translateY(-0.65rem);
}

.home-hero__prop img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 22%;
}

.home-hero__props:not(.home-hero__props--trio) {
  margin: 0;
  width: clamp(200px, 26vw, 320px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(13, 143, 123, 0.15);
  transform: translateY(0.5rem);
}

.home-hero__props:not(.home-hero__props--trio) img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 20%;
}

.home-hero__ghost {
  border-color: rgba(255, 255, 255, 0.38) !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(8px);
}

.home-hero__ghost:hover {
  border-color: #fff !important;
  background: rgba(255, 255, 255, 0.16) !important;
}

@media (max-width: 900px) {
  .home-hero__layout {
    grid-template-columns: 1fr;
  }

  .home-hero__media img {
    object-position: center 32%;
    transform: none;
    animation: none;
  }

  .home-hero__veil {
    background:
      linear-gradient(180deg, rgba(6, 12, 20, 0.58) 0%, rgba(6, 12, 20, 0.22) 38%, rgba(6, 12, 20, 0.88) 100%),
      linear-gradient(105deg, rgba(13, 143, 123, 0.22), transparent 48%);
  }

  .home-hero__props {
    display: none;
  }

  .home-hero__brand {
    white-space: normal;
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .home-hero__brand-name,
  .home-hero__brand-sub {
    display: block;
  }
}

@media (max-width: 768px) {
  .home-hero__tags {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1.1rem;
  }

  .home-hero__tags li {
    font-size: 0.72rem;
    padding: 0.32rem 0.65rem;
  }
}

@media (max-width: 640px) {
  .home-hero--cinema {
    min-height: min(88vh, 720px);
    padding-bottom: 2.5rem;
  }

  .home-hero__cta {
    flex-direction: column;
  }

  .home-hero__cta .btn {
    width: 100%;
  }
}

/* Manifest */
.home-manifest {
  padding-block: clamp(2rem, 4vw, 3.25rem);
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
}

.home-manifest::before {
  content: "";
  position: absolute;
  inset-inline-end: -8%;
  top: 10%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--accent-soft);
  pointer-events: none;
}

.home-manifest__grid {
  width: min(100% - 2rem, var(--max-w-wide));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
  position: relative;
}

.home-manifest__title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 1rem 0 1.15rem;
}

.home-manifest__title span {
  display: inline;
  background: linear-gradient(120deg, var(--accent-deep), var(--warm));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-manifest__text {
  max-width: 34ch;
  color: var(--text-muted);
  text-align: justify;
  font-size: var(--body-lg);
  line-height: 1.9;
  margin-bottom: 1.75rem;
}

.home-manifest__visual {
  margin: 0;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 5 / 4;
  max-height: min(420px, 48vh);
  width: 100%;
  justify-self: stretch;
}

.home-manifest__visual::after {
  content: "";
  position: absolute;
  inset: auto auto -6% -6%;
  width: 46%;
  height: 34%;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent), var(--warm));
  opacity: 0.35;
  z-index: -1;
  filter: blur(1px);
}

.home-manifest__visual--duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  aspect-ratio: auto;
  max-height: none;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.home-manifest__visual--duo::after {
  display: none;
}

.home-manifest__visual--duo figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 3 / 4;
  min-height: 0;
  max-height: none;
  touch-action: pan-y;
}

.home-manifest__visual--duo figure:first-child {
  transform: none;
}

.home-manifest__visual--duo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.home-manifest__visual--duo figure:last-child img {
  object-position: center 46%;
}

@media (hover: hover) and (pointer: fine) {
  .home-manifest__visual--duo img {
    transition: transform 1.1s var(--ease);
  }
  .home-manifest__visual--duo figure:hover img {
    transform: scale(1.04);
  }
  .home-manifest__visual:hover img {
    transform: scale(1.05);
  }
}

/* Salon video lives inside .home-trust__salon — no standalone section */

.home-manifest__visual figcaption {
  position: absolute;
  inset-inline: 1rem;
  bottom: 1rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(8, 14, 22, 0.55);
  backdrop-filter: blur(8px);
  color: #f5f8fb;
  font-size: var(--caption);
  font-weight: 600;
  width: max-content;
}

/* Ticker — seamless infinite marquee */
.home-ticker {
  overflow: hidden;
  max-width: 100%;
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, var(--accent-soft), var(--warm-soft), var(--accent-soft));
  padding-block: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  direction: ltr;
  contain: paint;
}

.home-ticker__track {
  display: flex;
  width: max-content;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
  animation: homeTicker 48s linear infinite;
  will-change: transform;
}

/* Keep marquee on phones; only stop for reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .home-ticker__track {
    animation: none;
    transform: none;
  }
}

@media (max-width: 900px) {
  .home-ticker__track {
    animation-duration: 36s;
  }
}

.home-ticker__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 3.25rem;
  padding-inline-end: 3.25rem;
  white-space: nowrap;
}

html[data-theme="dark"] .home-ticker__track {
  color: var(--accent);
}

/* Exit right → re-enter left */
@keyframes homeTicker {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* Section heads */
.home-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.home-section-head h2 {
  font-size: var(--h1);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.45rem 0 0.35rem;
}

.home-services {
  padding-block: clamp(2.75rem, 5.5vw, 4.5rem) clamp(1.25rem, 2.5vw, 2rem);
  overflow-x: clip;
  overflow-y: visible;
}

/* Education teaser — after services */
.home-edu {
  position: relative;
  padding-block: clamp(3.25rem, 7vw, 6rem);
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 48%, var(--bg) 100%);
}

.home-edu__layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
}

/* Desktop: images on the inline-start side (right in RTL) */
@media (min-width: 981px) {
  .home-edu__gallery {
    order: -1;
  }
}

.home-edu__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  min-width: 0;
  align-items: stretch;
}

.home-edu__frame {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--bg-deep);
  aspect-ratio: 3 / 4;
  min-width: 0;
  min-height: 0;
}

.home-edu__frame img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.home-edu__copy {
  min-width: 0;
}

.home-edu__title {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.home-edu__lead {
  margin: 0 0 1.5rem;
  max-width: 28ch;
  color: var(--text-muted);
  font-size: var(--body-lg);
  line-height: 1.8;
}

.home-edu__cta {
  min-width: 10rem;
}

/* Courses teaser — after education */
.home-courses {
  position: relative;
  padding-block: clamp(3.5rem, 7.5vw, 5.75rem);
  overflow-x: clip;
  overflow-y: visible;
  background:
    linear-gradient(
      120deg,
      color-mix(in srgb, var(--accent) 16%, var(--bg-deep)) 0%,
      color-mix(in srgb, var(--accent) 7%, var(--bg)) 42%,
      var(--bg) 78%
    );
}

.home-courses::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
    radial-gradient(ellipse 45% 60% at 0% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.home-courses::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent) 70%, transparent),
    transparent
  );
  z-index: 1;
}

.home-courses__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
  gap: clamp(1.75rem, 4.5vw, 3.25rem);
  align-items: center;
}

.home-courses__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.home-courses__title {
  margin: 0 0 0.85rem;
  font-size: clamp(2.1rem, 5vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.home-courses__lead {
  margin: 0 0 1.45rem;
  color: var(--text-muted);
  font-size: var(--body-lg);
  max-width: 38ch;
  line-height: 1.85;
}

.home-courses__points {
  list-style: none;
  margin: 0 0 1.65rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  max-width: 34rem;
}

.home-courses__points li {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
}

.home-courses__point-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.home-courses__ico {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  color: var(--bg-deep);
  background: var(--accent);
  flex-shrink: 0;
  line-height: 0;
}

.home-courses__ico .icon-svg {
  display: block;
}

.home-courses__point-head strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.home-courses__points p {
  margin: 0;
  padding-inline-start: calc(2.25rem + 0.7rem);
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.home-courses__cta {
  min-width: 11rem;
}

.home-courses__aside {
  position: relative;
  min-width: 0;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--accent) 18%, var(--bg-elevated)),
      color-mix(in srgb, var(--bg-elevated) 92%, transparent)
    );
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: 0 18px 40px color-mix(in srgb, var(--accent) 10%, transparent);
  overflow: visible;
}

.home-courses__aside-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  margin-bottom: 1rem;
}

.home-courses__aside-ico {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  color: var(--bg-deep);
  background: var(--accent);
  flex-shrink: 0;
  line-height: 0;
}

.home-courses__aside-ico .icon-svg {
  display: block;
}

.home-courses__aside-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  font-size: 0.8rem;
  font-weight: 700;
}

.home-courses__aside-label .icon-svg {
  color: var(--accent);
  flex-shrink: 0;
}

.home-courses__peek {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.home-courses__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 16%, var(--border));
}

.home-courses__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.home-courses__item:first-child {
  padding-top: 0;
}

.home-courses__item a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
}

.home-courses__item a:hover {
  color: var(--accent);
}

.home-courses__price {
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.home-courses__empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

@media (hover: hover) and (pointer: fine) {
  .home-courses__points li {
    transition: border-color 0.3s ease, transform 0.3s var(--ease-out, ease), background 0.3s ease;
  }

  .home-courses__points li:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
    background: color-mix(in srgb, var(--accent) 10%, var(--bg));
  }

  .home-courses__ico {
    transition: transform 0.3s var(--ease-out, ease);
  }

  .home-courses__points li:hover .home-courses__ico {
    transform: scale(1.06);
  }
}

@media (hover: hover) and (pointer: fine) {
  .home-edu__frame img {
    transition: transform 0.9s var(--ease);
  }
  .home-edu__frame:hover img {
    transform: scale(1.04);
  }
}

/* Service mosaic — three equal tiles in one row */
.service-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-tile {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.35rem;
  color: #f5f8fb;
  isolation: isolate;
  transition:
    transform var(--dur-med) var(--ease),
    box-shadow var(--dur-med) var(--ease);
  box-shadow: var(--shadow);
}

.service-tile__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.service-tile__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  image-rendering: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: transform 0.9s var(--ease);
}

/* Desktop-only fine framing — different crops looked uneven on mobile */
@media (min-width: 901px) {
  .service-tile[data-focus="cut"] .service-tile__bg img {
    object-position: center 14%;
  }
  .service-tile[data-focus="color"] .service-tile__bg img {
    object-position: center 36%;
  }
  .service-tile[data-focus="groom"] .service-tile__bg img {
    object-position: center 55%;
  }
}

.service-tile__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 20%, rgba(6, 12, 20, 0.88) 100%);
}

.service-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.service-tile:hover .service-tile__bg img {
  transform: scale(1.08);
}

@media (hover: none), (pointer: coarse) {
  .service-tile:hover,
  .service-tile:hover .service-tile__bg img,
  .home-hero__ghost:hover,
  .home-manifest__visual--duo figure:hover img,
  .home-manifest__visual:hover img,
  .work-slider__nav:hover:not(:disabled),
  .home-trust__contact:hover {
    transform: none !important;
  }
}

.service-tile__name {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.service-tile__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.65rem;
  font-size: var(--body-sm);
  color: rgba(245, 248, 251, 0.78);
}

.service-tile__price {
  color: #fff;
  font-weight: 700;
}

/* Work slider */
.home-work {
  padding-block: var(--home-gap) calc(var(--home-gap) * 0.7);
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, var(--accent-soft), transparent 55%),
    var(--bg);
  overflow: hidden;
}

.work-slider {
  display: grid;
  gap: 1.25rem;
}

.work-slider__frame {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.work-slider__viewport {
  overflow: hidden;
  min-width: 0;
  touch-action: pan-y pinch-zoom;
}

.work-card--media {
  touch-action: manipulation;
}

.work-slider__track {
  display: flex;
  gap: 1rem;
  will-change: transform;
  transition: transform 0.55s var(--ease);
}

.work-slider__track .work-card {
  flex: 0 0 calc((100% - 2rem) / 3);
  min-width: 0;
}

@media (max-width: 900px) {
  .work-slider__track .work-card {
    flex: 0 0 calc((100% - 1rem) / 2);
  }
}

.work-slider__track .work-card img,
.work-slider__track .work-card video {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
}

.work-slider__track .work-card__meta {
  padding-inline: 0.15rem;
}

.work-slider__nav {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
  flex-shrink: 0;
}

.work-slider__nav:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.04);
}

.work-slider__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.work-slider__nav svg {
  width: 1.15rem;
  height: 1.15rem;
}

.work-slider__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.work-slider__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition:
    background 0.25s var(--ease),
    width 0.25s var(--ease);
}

.work-slider__dot.is-active {
  width: 1.35rem;
  background: var(--accent);
}

/* Trust band */
.home-trust {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
  overflow: hidden;
}

.home-trust__grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 1.15fr;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
}

.home-trust__salon {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 0.5rem;
  min-width: 0;
  align-self: stretch;
  height: 100%;
}

.home-trust__salon-video video {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  display: block;
  cursor: zoom-in;
}

.home-trust__salon img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  display: block;
  cursor: zoom-in;
}

.home-trust__salon figure,
.home-trust__salon-video {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-deep);
  height: 100%;
  min-height: 0;
  cursor: zoom-in;
  position: relative;
}

.home-trust__salon-video picture,
.home-trust__salon-video .home-trust__video-poster {
  width: 100%;
  height: 100%;
  display: block;
}

.home-trust__salon-video .home-trust__video-poster {
  object-fit: cover;
  cursor: pointer;
}

.home-trust__play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 3.25rem;
  height: 3.25rem;
  margin: -1.625rem 0 0 -1.625rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

.home-trust__play::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 52%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 0.55rem 0 0.55rem 0.9rem;
  border-color: transparent transparent transparent #fff;
}

.home-trust__salon-video.is-playing .home-trust__play {
  display: none;
}

.home-map__load {
  margin: 1.25rem auto;
  display: block;
}

.home-map__frame:not(:has(iframe)) {
  min-height: 12rem;
  display: grid;
  place-items: center;
  background: var(--bg-deep);
  border-radius: var(--radius-lg);
}

.home-trust__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-block: 0.25rem;
}

.home-trust__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}

.home-trust__head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 0.45rem;
  max-width: 16ch;
}

.home-trust__lead {
  margin: 0;
  font-size: var(--body-sm);
  color: var(--text-muted);
  max-width: 36ch;
  line-height: 1.65;
}

.home-trust__contacts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  flex-shrink: 0;
}

.home-trust__contact {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  display: grid;
  place-items: center;
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.home-trust__contact:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 8px 20px var(--accent-glow);
}

.home-trust__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.home-trust__stats .stat {
  padding: 0.85rem 0.75rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.home-trust__stats .stat strong {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.home-trust__work {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.home-trust__work img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

/* Finale */
.home-finale {
  position: relative;
  min-height: min(72vh, 640px);
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  color: #f5f8fb;
}

.home-finale__media {
  position: absolute;
  inset: 0;
}

.home-finale__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.home-finale__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 12, 20, 0.45), rgba(6, 12, 20, 0.72)),
    linear-gradient(120deg, rgba(13, 143, 123, 0.35), transparent 50%);
}

.home-finale__content {
  position: relative;
  z-index: 1;
  padding: 3rem 1.25rem;
  max-width: 34rem;
}

.home-finale__content h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}

.home-finale__content p {
  color: rgba(245, 248, 251, 0.78);
  margin-bottom: 1.6rem;
  font-size: var(--body-lg);
}

.home-map {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.home-map__head {
  padding: clamp(1.75rem, 4vw, 2.75rem) 1.25rem 1.25rem;
  text-align: center;
}

.home-map__head h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
}

.home-map__head p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.home-map__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.home-map__frame {
  width: min(100% - 2rem, var(--max-w-wide));
  margin: 0 auto 1.75rem;
  height: min(58vh, 440px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-deep);
}

.home-map__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Responsive */
@media (max-width: 980px) {
  .home-manifest__grid {
    grid-template-columns: 1fr;
  }

  .home-edu__layout {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .home-edu__copy {
    order: 0;
  }

  .home-edu__gallery {
    order: 0;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }

  .home-edu__lead {
    max-width: none;
  }

  .home-edu__cta {
    width: 100%;
    min-width: 0;
  }

  .home-courses__inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: start;
  }

  .home-courses {
    overflow-x: clip;
    overflow-y: visible;
  }

  .home-courses__lead {
    max-width: none;
  }

  .home-courses__points {
    max-width: none;
  }

  .home-courses__points p {
    padding-inline-start: 0;
  }

  .home-courses__aside-label {
    max-width: 100%;
    white-space: normal;
    line-height: 1.45;
  }

  .home-courses__cta {
    width: 100%;
    min-width: 0;
  }

  .home-edu__frame {
    border-radius: var(--radius-lg);
    aspect-ratio: 3 / 4;
  }

  .home-manifest__visual--duo figure,
  .home-manifest__visual--duo img {
    min-height: 0;
    max-height: none;
  }

  .home-trust__grid {
    grid-template-columns: 1fr;
  }

  .home-trust__salon {
    max-height: none;
    min-height: 0;
    align-items: stretch;
  }

  .home-trust__salon figure,
  .home-trust__salon-video {
    height: 240px;
    min-height: 240px;
  }

  .home-trust__salon img,
  .home-trust__salon-video video {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
  }

  .home-trust__head {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .home-trust__head > div {
    width: 100%;
  }

  .home-trust__head h2 {
    max-width: none;
    text-align: center;
    margin-inline: auto;
  }

  .home-trust__contacts {
    justify-content: center;
    width: 100%;
  }

  .home-trust__stats .stat {
    text-align: center;
    padding: 0.65rem 0.2rem;
  }

  .home-trust__stats .stat strong {
    display: block;
    font-size: 1.05rem;
  }

  .home-trust__stats .stat span {
    display: block;
    white-space: nowrap;
    font-size: 0.68rem;
  }

  .home-manifest__visual {
    max-width: 480px;
    max-height: min(360px, 42vh);
    aspect-ratio: 5 / 4;
    justify-self: center;
  }

  .home-manifest__visual--duo {
    max-width: 100%;
  }

  .home-manifest__visual--duo figure {
    aspect-ratio: 3 / 4;
  }

  .home-trust__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-mosaic {
    grid-template-columns: 1fr;
  }

  .service-tile {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .home-trust__work {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
  }

  .home-trust__work img {
    aspect-ratio: 1;
  }

  .service-mosaic {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
    padding-bottom: 0;
    -webkit-overflow-scrolling: auto;
    overscroll-behavior: auto;
    scroll-snap-type: none;
  }

  .service-tile {
    width: 100%;
    max-width: none;
    flex: none;
    min-height: 0;
    aspect-ratio: 3 / 4;
    height: auto;
    padding: 1.15rem;
    border-radius: 1.1rem;
    scroll-snap-align: none;
    touch-action: manipulation;
  }

  .service-tile__bg img {
    /* One shared crop so cards feel level — no high/low mismatch */
    object-position: center 28% !important;
  }

  .service-tile__name {
    font-size: 1.2rem;
  }

  .service-tile__meta {
    margin-top: 0.45rem;
    font-size: 0.82rem;
  }

  .work-slider__frame {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
  }

  .work-slider__viewport {
    flex: 1 1 100%;
    order: -1;
  }

  .work-slider__track .work-card {
    flex: 0 0 calc((100% - 1rem) / 2);
  }

  .home-trust__work {
    display: none;
  }
}

@media (max-width: 640px) {
  .home-edu {
    padding-block: 2.5rem 2.75rem;
  }

  .home-edu__layout {
    gap: 1.1rem;
  }

  .home-edu__title {
    font-size: 1.7rem;
    margin-bottom: 0.45rem;
  }

  .home-edu__lead {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.7;
  }

  .home-edu__gallery {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }

  .home-edu__frame {
    border-radius: 0.85rem;
    border: 1px solid var(--border);
  }
}

@media (max-width: 560px) {
  .work-slider__track .work-card {
    flex: 0 0 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-ticker__track {
    animation: none !important;
  }

  .work-slider__track {
    transition: none;
  }
}
