/* ==========================================================================
   SNICKERS BARBER — design tokens
   ========================================================================== */
:root {
  --color-bg: #F6F1E8;
  --color-bg-raised: #EFE7D8;
  --color-ink: #111111;
  --color-ink-soft: #4A443C;
  --color-muted: #8A8073;
  --color-line: rgba(17, 17, 17, 0.14);
  --color-line-soft: rgba(17, 17, 17, 0.08);
  --color-surface: #FBF8F2;

  --font-sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Unbounded', 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  --container-w: 1240px;
  --pad-inline: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(3.5rem, 8vw, 7.5rem);

  --fs-hero: clamp(2.5rem, 7vw, 5.25rem);
  --fs-h2: clamp(1.875rem, 3.6vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 1.8vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 1.4vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 300ms;
  --dur-med: 500ms;
  --dur-slow: 700ms;

  --header-h: 84px;
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body, h1, h2, h3, p, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }

:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

/* The rule draws itself in via scaleX, not an animated width: the space is
   reserved up front, so the label text no longer gets shoved sideways while
   the line grows, and the tween stays off the layout path. */
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--color-ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 900ms var(--ease);
}

.reveal.is-visible .section-label::before {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .section-label::before { transform: scaleX(1); transition: none; }
}

.section-heading {
  font-size: var(--fs-h2);
  line-height: 1.1;
}

.hr {
  border: none;
  border-top: 1px solid var(--color-line);
}

/* ==========================================================================
   Scroll progress indicator
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  width: 3px;
  height: 100vh;
  z-index: 60;
  background: var(--color-line-soft);
  pointer-events: none;
}

/* Scaled rather than resized: this updates on every scroll event, and
   animating `height` would force a layout pass each time. scaleY stays on
   the compositor. */
.scroll-progress__fill {
  width: 100%;
  height: 100%;
  background: var(--color-ink);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 80ms linear;
}

@media (max-width: 640px) {
  .scroll-progress { width: 2px; }
}

/* ==========================================================================
   Reveal-on-scroll
   Gated behind `.js` (set by an inline script in <head>, before first paint)
   so content stays fully visible whenever JavaScript doesn't run at all —
   a locked-down preview pane, a scraper, a script blocker — rather than
   getting stuck at opacity:0 forever with no observer to reveal it.
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Custom cursor
   Fine-pointer devices only; touch devices keep the native cursor. Disabled
   entirely under reduced motion since it is continuous mousemove-driven
   motion that the blanket transition-duration override cannot reach.
   ========================================================================== */
.cursor {
  display: none;
  position: fixed;
  top: 0; left: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transition: opacity 250ms ease;
}

.cursor.is-ready {
  opacity: 1;
}

.cursor__dot,
.cursor__ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
}

.cursor__dot {
  width: 6px;
  height: 6px;
  background: var(--color-ink);
}

.cursor__ring {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-ink);
  opacity: 0.5;
  transition: width var(--dur-fast) var(--ease), height var(--dur-fast) var(--ease),
              opacity var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.cursor.is-active .cursor__ring {
  width: 60px;
  height: 60px;
  opacity: 0.9;
  background: var(--color-ink);
  mix-blend-mode: difference;
}

@media (hover: hover) and (pointer: fine) {
  .cursor:not([hidden]) { display: block; }
  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button {
    cursor: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { display: none !important; }
}

/* ==========================================================================
   Grain overlay
   A near-invisible noise layer so flat cream fields read as paper rather
   than a flat digital fill. Decorative only — kept out of the a11y tree.
   ========================================================================== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(246, 241, 232, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.site-header.is-scrolled {
  background: rgba(246, 241, 232, 0.96);
  border-bottom-color: var(--color-line);
  box-shadow: 0 8px 24px -20px rgba(17,17,17,0.5);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.brand__name {
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.main-nav {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2vw, 2.25rem);
}

.nav-list a {
  font-size: 0.9375rem;
  position: relative;
  padding: 0.35rem 0;
}

.nav-list a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right var(--dur-fast) var(--ease);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  right: 0;
}

.header-phone {
  font-size: 0.9375rem;
  color: var(--color-ink-soft);
  white-space: nowrap;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 2px;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

/* On narrow screens the wordmark takes priority; the number stays
   reachable in the burger menu and the contacts section. */
@media (max-width: 479px) {
  .header-phone { display: none; }
}

.header-phone:hover,
.header-phone:focus-visible {
  color: var(--color-ink);
  border-color: var(--color-ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2vw, 2rem);
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
}

.burger__bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-ink);
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.burger[aria-expanded="true"] .burger__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.burger[aria-expanded="true"] .burger__bar:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] .burger__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--color-bg);
  z-index: 45;
  padding: 2rem var(--pad-inline);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility 0s linear var(--dur-fast);
}

.mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility 0s;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Block-level so the rules align to the grid instead of hugging the text. */
.mobile-nav__list a {
  display: block;
  font-size: 1.75rem;
  font-weight: 600;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-line-soft);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.mobile-nav__list a:hover,
.mobile-nav__list a:focus-visible {
  border-bottom-color: var(--color-ink);
}

.mobile-nav__phone {
  font-size: 1.125rem;
  color: var(--color-ink-soft);
}

@media (min-width: 900px) {
  .main-nav { display: block; }
  .burger, .mobile-nav { display: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  border: 1px solid var(--color-ink);
  background: var(--color-ink);
  color: var(--color-bg);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.btn:hover, .btn:focus-visible {
  background: transparent;
  color: var(--color-ink);
}

.btn:active { transform: scale(0.98); }

.btn--ghost {
  background: transparent;
  color: var(--color-ink);
}

.btn--ghost:hover, .btn--ghost:focus-visible {
  background: var(--color-ink);
  color: var(--color-bg);
}

.btn__arrow { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  /* Falls back gracefully; on mobile browsers this avoids the jump caused by
     the collapsing address bar. */
  height: 100svh;
  min-height: 520px;
  /* Pulled under the sticky header so the footage is genuinely full-bleed. */
  margin-top: calc(var(--header-h) * -1);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--color-ink);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Decorative only — never a focus stop. */
  pointer-events: none;
}

/* Warm milky haze concentrated in the middle. The radial falloff has no edge,
   so it reads as condensation on the mirror rather than a card behind the text.
   Density is tuned against the darkest frames of the loop so #111 type keeps a
   comfortable contrast ratio throughout. */
.hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 50% 50%,
      rgba(246, 241, 232, 0.90) 0%,
      rgba(246, 241, 232, 0.78) 38%,
      rgba(246, 241, 232, 0.44) 64%,
      rgba(246, 241, 232, 0.12) 84%,
      rgba(246, 241, 232, 0) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-inline: var(--pad-inline);
  text-align: center;
  color: var(--color-ink);
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  /* Kept in range so the two words never clip on a 375px screen. */
  font-size: clamp(1.7rem, 7.4vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero__tagline {
  margin-top: clamp(0.85rem, 1.8vw, 1.5rem);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(0.95rem, 2.1vw, 1.5rem);
  letter-spacing: 0.01em;
  color: var(--color-ink);
}

/* --- Entrance -------------------------------------------------------------
   Starts ~1s after load: the name first, the line just behind it. */
.hero__name,
.hero__tagline {
  opacity: 0;
  animation: hero-rise 700ms var(--ease) forwards;
}

.hero__name { animation-delay: 1000ms; }
.hero__tagline { animation-delay: 1320ms; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__name,
  .hero__tagline {
    animation: hero-fade 1ms linear forwards;
  }
  .hero__name { animation-delay: 0ms; }
  .hero__tagline { animation-delay: 0ms; }
}

@keyframes hero-fade {
  to { opacity: 1; transform: none; }
}

.hero__scroll-cue {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: clamp(1.5rem, 4vh, 2.75rem);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-ink);
  opacity: 0;
  animation: hero-rise 700ms var(--ease) forwards;
  animation-delay: 1700ms;
}

.hero__scroll-line {
  width: 1px;
  height: 34px;
  background: var(--color-ink);
  overflow: hidden;
  position: relative;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-bg);
  animation: scroll-cue-drip 1900ms ease-in-out infinite;
}

@keyframes scroll-cue-drip {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}

.hero__scroll-label {
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

@media (max-width: 640px) {
  .hero__scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-line::after { animation: none; transform: translateY(100%); }
}

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--color-bg-raised);
}

/* Flex, not a fixed 3-track grid: the number of figures is content-driven,
   and a fixed track count leaves a phantom empty column when it changes. */
.stats__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  padding-inline: 0.5rem;
  position: relative;
}

.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: calc(clamp(2rem, 6vw, 5rem) / -2);
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--color-line);
}

@media (max-width: 479px) {
  .stat:not(:last-child)::after { display: none; }
}

.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 3rem);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

/* 14ch broke "роки професійного досвіду" across three cramped lines. */
.stat__label {
  font-size: var(--fs-small);
  color: var(--color-ink-soft);
  max-width: 22ch;
  text-wrap: balance;
}

/* ==========================================================================
   About
   ========================================================================== */
/* Tighter than the standard --section-pad (roughly 25% less): with only a
   short bio beside a portrait, the full rhythm left the section reading as
   a gap rather than a block. */
.about {
  padding-block: clamp(2.6rem, 6vw, 5.6rem);
  border-top: 1px solid var(--color-line);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.about__text {
  max-width: 56ch;
}

.about__name {
  font-size: var(--fs-h3);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.about__body {
  color: var(--color-ink-soft);
  font-size: var(--fs-lead);
  line-height: 1.75;
}

/* Sits under the bio as a quiet factual line — deliberately lighter than the
   body copy so it reads as a detail, not a second paragraph. */
.about__address {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: var(--fs-small);
  letter-spacing: 0.01em;
}

/* Square, matching the source file: at 3/4 the portrait ran twice the height
   of the bio beside it, leaving the text column looking half-empty, and it
   cropped the bottom of the frame for no gain. */
.about__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-bg-raised);
  max-width: 380px;
}

.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (min-width: 900px) {
  .about .container {
    grid-template-columns: 1.4fr 1fr;
    /* Was 5rem — the text and portrait read as two unrelated islands. */
    gap: 3.5rem;
    align-items: start;
  }
  .about__media { max-width: none; }
}

/* ==========================================================================
   Why choose me
   ========================================================================== */
.why {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--color-line);
}

.why__heading { margin-bottom: 3rem; }

.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.why__item {
  padding: 2rem 0;
  border-top: 1px solid var(--color-line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: baseline;
}

.why__item:last-child { border-bottom: 1px solid var(--color-line); }

.why__index {
  font-size: 1rem;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.why__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.why__desc {
  color: var(--color-ink-soft);
  max-width: 48ch;
}

/* Matches the gallery breakpoint so tablets use their width consistently. */
@media (min-width: 640px) {
  .why__grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: clamp(2rem, 4vw, 3.5rem);
  }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--color-line);
}

.services__heading { margin-bottom: 2.5rem; }

.tabs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 2.5rem;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--color-line);
  background: transparent;
  color: var(--color-ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.tab:hover {
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.tab[aria-selected="true"] {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-bg);
}

.service-list {
  display: flex;
  flex-direction: column;
}

.service-row {
  padding: 1.75rem 0;
  border-top: 1px solid var(--color-line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  animation: fade-in var(--dur-med) var(--ease);
}

.service-list .service-row:last-child {
  border-bottom: 1px solid var(--color-line);
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .service-row { animation: none; }
}

.service-row__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.service-row__title-group {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.service-row__title {
  font-size: 1.0625rem;
  font-weight: 700;
}

.service-row__duration {
  font-size: var(--fs-small);
  color: var(--color-muted);
}

.service-row__price {
  font-size: 1.0625rem;
  font-weight: 700;
  white-space: nowrap;
}

.service-row__desc {
  color: var(--color-ink-soft);
  font-size: 0.9375rem;
  max-width: 70ch;
  line-height: 1.7;
}

/* Below this the three-column row squeezes the service name onto two
   cramped lines, so tablets keep the stacked layout. */
@media (min-width: 900px) {
  .service-row {
    grid-template-columns: 2fr 3fr auto;
    align-items: start;
    gap: 2rem;
  }
  .service-row__head {
    display: contents;
  }
  .service-row__title-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  .service-row__price { text-align: right; }
}

/* ==========================================================================
   Portfolio
   ========================================================================== */
.portfolio {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--color-line);
}

.portfolio__heading-row {
  margin-bottom: 2.75rem;
  max-width: 60ch;
}

.portfolio__subtitle {
  color: var(--color-ink-soft);
  font-size: var(--fs-lead);
  margin-top: 0.75rem;
}

.gallery {
  column-count: 1;
  column-gap: 1.25rem;
}

@media (min-width: 640px) {
  .gallery { column-count: 2; }
}
@media (min-width: 1024px) {
  .gallery { column-count: 3; column-gap: 1.5rem; }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--color-bg-raised);
}

@media (min-width: 1024px) {
  .gallery-item { margin-bottom: 1.5rem; }
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--dur-slow) var(--ease), filter var(--dur-slow) var(--ease);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.1rem;
  background: linear-gradient(180deg, rgba(17,17,17,0) 55%, rgba(17,17,17,0.72) 100%);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}

.gallery-item:hover .gallery-item__overlay,
.gallery-item:focus-visible .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__view {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-bg);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  transform: translateY(8px);
  transition: transform var(--dur-fast) var(--ease);
}

.gallery-item:hover .gallery-item__view,
.gallery-item:focus-visible .gallery-item__view {
  transform: translateY(0);
}

.gallery-item__view::after {
  content: '↗';
}

.gallery-item.is-hidden { display: none; }

@media (prefers-reduced-motion: reduce) {
  .gallery-item__overlay,
  .gallery-item__view { transition: none; }
}

.portfolio__more {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease), visibility 0s linear var(--dur-fast);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur-fast) var(--ease), visibility 0s;
}

.lightbox__figure {
  max-width: min(90vw, 1100px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #000;
}

.lightbox__counter {
  color: rgba(246, 241, 232, 0.7);
  font-size: var(--fs-small);
  letter-spacing: 0.05em;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  color: var(--color-bg);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(246, 241, 232, 0.35);
  background: rgba(17,17,17,0.3);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.lightbox__close:hover, .lightbox__close:focus-visible,
.lightbox__prev:hover, .lightbox__prev:focus-visible,
.lightbox__next:hover, .lightbox__next:focus-visible {
  background: rgba(246,241,232,0.15);
  border-color: rgba(246, 241, 232, 0.7);
}

.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.25rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox__prev { left: 0.5rem; }
  .lightbox__next { right: 0.5rem; }
  .lightbox__close { top: 0.75rem; right: 0.75rem; }
}

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--color-line);
}

.reviews__heading { margin-bottom: 2.5rem; }

.reviews__empty {
  border: 1px solid var(--color-line);
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.5rem, 5vw, 3rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.reviews__mark {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--color-line);
  font-weight: 700;
}

.reviews__empty p {
  font-size: var(--fs-lead);
  color: var(--color-ink-soft);
  max-width: 40ch;
}

/* ==========================================================================
   Contacts
   ========================================================================== */
.contacts {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--color-line);
}

.contacts .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contacts__brand {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.contacts__name {
  color: var(--color-ink-soft);
  margin-bottom: 1rem;
}

.contacts__address {
  font-size: var(--fs-lead);
  margin-bottom: 0.5rem;
}

.contacts__phone {
  font-size: var(--fs-lead);
  font-weight: 700;
  border-bottom: 1px solid var(--color-line);
  width: fit-content;
  padding-bottom: 2px;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.contacts__phone:hover, .contacts__phone:focus-visible {
  border-color: var(--color-ink);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 2.25rem 0;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: var(--fs-small);
  color: var(--color-muted);
}

@media (min-width: 640px) {
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Floating call button
   Appears once the visitor scrolls past the hero, so it never competes with
   the full-bleed video for attention.
   ========================================================================== */
.float-cta {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 40;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-ink);
  color: var(--color-bg);
  border-radius: 50%;
  box-shadow: 0 10px 30px -10px rgba(17,17,17,0.5);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.float-cta.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.float-cta:hover,
.float-cta:focus-visible {
  background: var(--color-ink-soft);
}

.float-cta__icon {
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 1;
}

.float-cta__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--color-ink);
  animation: float-cta-pulse 2600ms var(--ease) infinite;
}

@keyframes float-cta-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.55); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .float-cta { transition: opacity var(--dur-fast) ease; }
  .float-cta__pulse { display: none; }
}

/* ==========================================================================
   Reduced motion
   Placed last so it overrides every transition/animation declared above.
   Content stays fully visible and every control keeps working — only the
   movement is removed.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Never leave revealed content stuck in its hidden start state. */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Drop hover/scroll movement rather than just making it instant. */
  .gallery-item:hover img,
  .gallery-item:focus-visible img {
    transform: none;
  }

  .btn:hover .btn__arrow { transform: none; }
  .btn:active { transform: none; }
  .mobile-nav { transform: none; }
  .scroll-progress__fill { transition: none; }
}
