/* Fonts — self-hosted variable woff2: the first render never waits for a third party.
   Cyrillic and Latin subsets, plus a one-glyph file for the rouble sign. */

@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/cormorant-normal-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/cormorant-normal-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/cormorant-normal-rub.woff2") format("woff2");
  unicode-range: U+20BD;
}

@font-face {
  font-family: "Cormorant";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/cormorant-italic-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Cormorant";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/cormorant-italic-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/cormorant-italic-rub.woff2") format("woff2");
  unicode-range: U+20BD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-rub.woff2") format("woff2");
  unicode-range: U+20BD;
}

:root {
  --ink: #1f1f1f;
  --graphite: #655f61;
  --muted: #7f7779;
  --taupe: #aaa2a4;
  --ash: #bdb7b8;
  --stone: #bfb7b9;
  --line: #e6e6e6;
  --soft: #e9e2e3;
  --rose: #f2f2f2;
  --section-panel: #f8f8f8;
  --white: #ffffff;
  --mauve: #8e6f73;
  --clay: #9f6f65;
  --pine: #58706a;

  /* Semantic roles */
  --color-bg: var(--white);
  --color-surface: var(--section-panel);
  --color-surface-warm: var(--soft);
  --color-surface-inverse: var(--ink);
  --color-text: var(--ink);
  --color-text-secondary: var(--graphite); /* 6.2:1 on white — body copy */
  --color-text-muted: var(--muted); /* 4.4:1 — large text only */
  --color-text-inverse: var(--white);
  --color-text-inverse-secondary: var(--ash); /* 8.3:1 on ink */
  /* Accent is 4.49:1 on white — large text (24px+), lines and icons only */
  --color-accent: var(--mauve);
  --color-accent-inverse: var(--soft);
  --color-brand: var(--pine);
  --color-border: var(--line);
  --color-border-strong: var(--stone);
  --color-border-inverse: rgb(255 255 255 / 0.16);
  --color-focus: var(--mauve);
  --color-error: var(--clay);

  /* Typography */
  --font-display: "Cormorant", Georgia, "Times New Roman", serif;
  --font-body:
    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-lg: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  --title-xs: clamp(1.5rem, 1.3rem + 0.6vw, 1.875rem);
  --title-sm: clamp(1.875rem, 1.5rem + 1.2vw, 2.625rem);
  --title-lg: clamp(3rem, 1.9rem + 4.6vw, 6.5rem);
  --title-xl: clamp(4.25rem, 2rem + 8.6vw, 10rem);
  --tracking-label: 0.16em;

  /* Space — 4px base */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --section-y: clamp(72px, 3.5rem + 6vw, 160px);
  --gutter: clamp(20px, 4.5vw, 56px);
  --container: 1320px;

  /* Shape — sharp, editorial; the square frame comes from the logo */
  --radius-s: 2px;
  --frame-inset: 14px;
  --frame-line: rgb(255 255 255 / 0.62);

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-press: 160ms;
  --dur-fast: 200ms;
  --dur-base: 280ms;
  --dur-reveal: 800ms;

  /* Layers */
  --z-actionbar: 40;
  --z-cookie: 45;
  --z-header: 50;
  --z-skip: 200;

  /* Component tokens */
  --header-h: 64px;
  --button-h: 48px;
  --button-h-sm: 40px;
  --button-h-lg: 56px;
  --touch: 44px;
}

/* 2. Base ------------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

html.menu-open,
html:has(dialog[open]) {
  overflow: hidden;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd,
ol,
ul {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

p {
  text-wrap: pretty;
}

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

main:focus {
  outline: none;
}

::selection {
  background: var(--soft);
  color: var(--ink);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scroll-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: var(--z-skip);
  padding: var(--space-3) var(--space-4);
  background: var(--ink);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 500;
  transform: translateY(-200%);
  transition: transform var(--dur-fast) var(--ease-out);
}

.skip-link:focus-visible {
  transform: none;
}

/* 3. Layout & type --------------------------------------------------------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  line-height: 1.3;
  text-transform: uppercase;
}

/* Framed index — the logo's square frame as a recurring marker */
.eyebrow-index,
.page-section-index {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 26px;
  padding-inline: 6px;
  border: 1px solid var(--color-accent);
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.section-head {
  display: grid;
  gap: var(--space-5);
  margin-bottom: clamp(40px, 2rem + 3vw, 88px);
}

.section-head > div {
  display: grid;
  gap: var(--space-5);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--title-lg);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-wrap: balance;
}

.section-title em {
  color: var(--color-accent);
  font-style: italic;
  font-weight: 400;
}

.section-lead {
  max-width: 28ch;
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-size: var(--title-xs);
  font-style: italic;
  line-height: 1.25;
}

.text-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition:
    color var(--dur-fast) ease,
    text-decoration-color var(--dur-fast) ease;
}

.empty-state {
  grid-column: 1 / -1;
  padding: var(--space-6);
  border: 1px dashed var(--color-border-strong);
  color: var(--color-text-secondary);
}

/* Cormorant defaults to old-style figures; phones, hours and badges need lining ones */
.contact-item dd,
.footer-phone,
.nav-extra-phone,
.aside-card-phone,
.offer-badge,
.offer-title,
.hero-caption {
  font-variant-numeric: lining-nums;
}

.service-address {
  font-variant-numeric: lining-nums;
}

/* 4. Components ------------------------------------------------------------ */

/* Buttons: one shape, four roles. Colour tokens are swapped per variant. */
.button {
  --btn-bg: var(--rose);
  --btn-fg: var(--ink);
  --btn-border: transparent;
  --btn-bg-hover: var(--ink);
  --btn-fg-hover: var(--white);
  --btn-border-hover: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: var(--button-h);
  padding: 0 var(--space-5);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-s);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition:
    background-color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    color var(--dur-fast) ease,
    transform var(--dur-press) var(--ease-out);
}

.button .icon {
  width: 18px;
  height: 18px;
  transition: transform var(--dur-base) var(--ease-out);
}

.button:active {
  transform: scale(0.97);
}

.button-dark {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  --btn-bg-hover: var(--mauve);
  --btn-fg-hover: var(--white);
}

.button-light {
  --btn-bg: var(--rose);
  --btn-fg: var(--ink);
  --btn-bg-hover: var(--white);
  --btn-fg-hover: var(--ink);
}

.button-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: var(--ink);
  --btn-bg-hover: var(--ink);
  --btn-fg-hover: var(--white);
  --btn-border-hover: var(--ink);
}

.button-sm {
  min-height: var(--button-h-sm);
  padding-inline: var(--space-4);
}

.button-lg {
  min-height: var(--button-h-lg);
  padding-inline: var(--space-6);
  font-size: var(--text-base);
}

/* Brand lockup */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--touch);
}

.brand-mark {
  width: 36px;
  height: auto;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 0.86;
}

.brand-name em {
  display: block;
  color: var(--color-accent);
  font-style: italic;
  font-weight: 400;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) ease;
}

/* Blur lives on a pseudo-element so the fixed mobile menu is not trapped by it */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(255 255 255 / 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  border-bottom-color: var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: var(--header-h);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-phone,
.header-cta {
  display: none;
}

.header-phone {
  align-items: center;
  min-height: var(--touch);
  font-size: var(--text-sm);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color var(--dur-fast) ease;
}

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: var(--touch);
  height: var(--touch);
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle-lines {
  position: relative;
  width: 24px;
  height: 10px;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-out);
}

.menu-toggle-lines::before {
  top: 0;
}

.menu-toggle-lines::after {
  bottom: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
  transform: translateY(4.25px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
  transform: translateY(-4.25px) rotate(-45deg);
}

/* Navigation — full-screen sheet on mobile/tablet, inline on desktop */
.main-nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-7);
  height: calc(100dvh - var(--header-h));
  padding: var(--space-5) var(--gutter)
    calc(var(--space-6) + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity var(--dur-fast) ease,
    transform var(--dur-fast) var(--ease-out),
    visibility 0s linear var(--dur-fast);
}

.site-header.is-menu-open .main-nav {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity var(--dur-base) ease,
    transform var(--dur-base) var(--ease-out),
    visibility 0s;
}

.nav-list {
  counter-reset: nav;
}

.nav-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2.5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.1;
  transition: color var(--dur-fast) ease;
}

.nav-list a::after {
  content: "0" counter(nav);
  counter-increment: nav;
  color: var(--color-text-secondary);
  font-size: 1rem;
  font-style: italic;
}

.nav-list a.is-active {
  color: var(--color-accent);
}

.site-header.is-menu-open .nav-list li {
  animation: nav-item-in 420ms var(--ease-out) both;
}

.site-header.is-menu-open .nav-list li:nth-child(2) {
  animation-delay: 30ms;
}
.site-header.is-menu-open .nav-list li:nth-child(3) {
  animation-delay: 60ms;
}
.site-header.is-menu-open .nav-list li:nth-child(4) {
  animation-delay: 90ms;
}
.site-header.is-menu-open .nav-list li:nth-child(5) {
  animation-delay: 120ms;
}
.site-header.is-menu-open .nav-list li:nth-child(6) {
  animation-delay: 150ms;
}

.nav-extra {
  display: grid;
  gap: var(--space-4);
}

.nav-extra-phone {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  font-family: var(--font-display);
  font-size: var(--title-xs);
  font-weight: 500;
}

.nav-extra-meta {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.nav-extra-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.nav-extra-actions .button-dark {
  grid-column: 1 / -1;
  min-height: var(--button-h-lg);
}

/* Social icons */
.socials {
  display: flex;
  gap: var(--space-2);
}

.socials a {
  display: grid;
  place-items: center;
  width: var(--button-h);
  height: var(--button-h);
  border: 1px solid var(--ink);
  border-radius: var(--radius-s);
  background: var(--ink);
  transition:
    background-color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    transform var(--dur-press) var(--ease-out);
}

.socials a:active {
  transform: scale(0.94);
}

.socials img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.socials-inverse a {
  border-color: var(--color-border-inverse);
  background: transparent;
}

/* Photo frame — passe-partout hairline echoing the logo square */
.framed,
.hero-frame {
  position: relative;
  overflow: hidden;
  background: var(--soft);
}

.framed::after,
.hero-frame::after {
  content: "";
  position: absolute;
  inset: var(--frame-inset);
  border: 1px solid var(--frame-line);
  pointer-events: none;
}

.framed img,
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.framed picture,
.hero-frame picture {
  height: 100%;
}

.work-card picture,
.offer-photo picture,
.master-photo picture {
  height: 100%;
}

.master-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-placeholder,
.work-placeholder {
  width: 100%;
  height: 100%;
  background: var(--soft);
}

/* Mobile action bar */
.action-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: var(--z-actionbar);
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3) var(--gutter)
    calc(var(--space-3) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-border);
  background: rgb(255 255 255 / 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  visibility: hidden;
  transform: translateY(110%);
  transition:
    transform var(--dur-base) var(--ease-out),
    visibility 0s linear var(--dur-base);
}

.action-bar.is-visible {
  visibility: visible;
  transform: none;
  transition:
    transform var(--dur-base) var(--ease-out),
    visibility 0s;
}

html.menu-open .action-bar,
html:has(dialog[open]) .action-bar {
  visibility: hidden;
  transform: translateY(110%);
}

.action-bar-cta {
  flex: 1;
}

.action-bar-call {
  display: grid;
  flex: none;
  place-items: center;
  width: var(--button-h);
  height: var(--button-h);
  border: 1px solid var(--ink);
  border-radius: var(--radius-s);
  transition: transform var(--dur-press) var(--ease-out);
}

.action-bar-call:active {
  transform: scale(0.94);
}

/* Cookie notice — only when analytics is on; sits above the mobile action bar */
.cookie-notice {
  position: fixed;
  right: var(--gutter);
  bottom: calc(
    var(--button-h) + var(--space-3) * 3 + env(safe-area-inset-bottom)
  );
  left: var(--gutter);
  z-index: var(--z-cookie);
  display: grid;
  justify-items: start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--ink);
  color: var(--ash);
  font-size: var(--text-sm);
  box-shadow: 0 12px 32px rgb(31 31 31 / 0.18);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice :focus-visible {
  outline-color: var(--soft);
}

/* Lightbox (native <dialog>) */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
}

.lightbox::backdrop {
  background: var(--ink);
}

.lightbox-inner {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 72px var(--gutter) 96px;
}

.lightbox-figure {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
}

.lightbox-image {
  width: auto;
  max-width: min(100%, 960px);
  max-height: calc(100dvh - 200px);
  object-fit: contain;
  transition: opacity var(--dur-fast) ease;
}

.lightbox-image.is-loading {
  opacity: 0;
}

.lightbox-caption {
  display: flex;
  gap: var(--space-4);
  color: var(--ash);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.lightbox-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: var(--button-h);
  height: var(--button-h);
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: var(--radius-s);
  background: rgb(31 31 31 / 0.5);
  color: var(--white);
  cursor: pointer;
  transition:
    background-color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    transform var(--dur-press) var(--ease-out);
}

.lightbox-btn:active {
  transform: scale(0.94);
}

.lightbox-btn:focus-visible {
  outline-color: var(--soft);
}

.lightbox-close {
  top: var(--space-4);
  right: var(--gutter);
}

.lightbox-prev,
.lightbox-next {
  bottom: var(--space-6);
}

.lightbox-prev {
  left: var(--gutter);
}

.lightbox-next {
  right: var(--gutter);
}

.lightbox[data-single] .lightbox-prev,
.lightbox[data-single] .lightbox-next {
  display: none;
}

/* Text typed in the admin may hold long unbroken strings (links, typos): it wraps instead of widening the layout */
.master-card,
.offer-body,
.review-card,
.faq-item,
.reader-content,
.page-intro,
.page-section-list {
  overflow-wrap: anywhere;
}

/* Clamped text — long offers, reviews and masters' bios keep the grid even; the rest opens in the reader */
.clamp {
  display: grid;
  justify-items: start;
  gap: var(--space-1);
}

.clamp-ready [data-clamp-text] {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--clamp-lines, 4);
  line-clamp: var(--clamp-lines, 4);
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--touch);
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  cursor: pointer;
  transition:
    text-decoration-color var(--dur-fast) ease,
    transform var(--dur-press) var(--ease-out);
}

.more-link[hidden] {
  display: none;
}

/* Keep the 44px hit area without pushing the next row away */
.clamp .more-link {
  margin-bottom: calc(var(--space-2) * -1);
}

.more-link .icon {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-base) var(--ease-out);
}

.more-link:active {
  transform: scale(0.97);
}

.section-inverse .more-link {
  color: var(--color-text-inverse);
}

/* Reader (native <dialog>) — takes the tone of the section it was opened from */
.reader {
  --reader-bg: var(--color-surface-warm);
  --reader-fg: var(--color-text);
  --reader-muted: var(--color-text-secondary);
  --reader-border: var(--color-border-strong);
  --reader-focus: var(--color-focus);
  width: 100%;
  max-width: none;
  max-height: min(88dvh, 820px);
  margin: auto 0 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-top: 1px solid var(--reader-border);
  background: var(--reader-bg);
  color: var(--reader-fg);
}

.reader[data-tone="inverse"] {
  --reader-bg: var(--color-surface-inverse);
  --reader-fg: var(--color-text-inverse);
  --reader-muted: var(--color-text-inverse-secondary);
  --reader-border: var(--color-border-inverse);
  --reader-focus: var(--soft);
}

.reader::backdrop {
  background: rgb(31 31 31 / 0.64);
}

.reader :focus-visible {
  outline-color: var(--reader-focus);
}

.reader-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: inherit;
}

.reader-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--gutter) var(--space-3);
  border-bottom: 1px solid var(--reader-border);
}

.reader-head .eyebrow {
  color: var(--reader-muted);
}

.reader-close {
  display: grid;
  flex: none;
  place-items: center;
  width: var(--touch);
  height: var(--touch);
  margin-right: calc(var(--space-2) * -1);
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  background: none;
  color: inherit;
  cursor: pointer;
  transition:
    border-color var(--dur-fast) ease,
    transform var(--dur-press) var(--ease-out);
}

.reader-close:active {
  transform: scale(0.94);
}

.reader-content {
  display: grid;
  justify-items: start;
  padding: var(--space-6) var(--gutter)
    calc(var(--space-7) + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.reader-content:focus-visible {
  outline-offset: -4px;
}

.reader .offer-badge {
  position: static;
  margin: 5px 0 var(--space-6) 5px;
  transform: none;
}

.reader .offer-body {
  padding-top: 0;
}

.reader .offer-text {
  max-width: 60ch;
}

.reader .offer-body .button {
  align-self: flex-start;
  margin-top: var(--space-3);
}

.reader .review-card {
  display: flex;
  height: auto;
  padding-block: 0;
}

.reader .review-body {
  grid-column: auto;
  grid-row: auto;
}

.reader .review-text {
  font-size: var(--title-xs);
}

.reader .master-info {
  gap: var(--space-2);
}

.reader .master-name {
  font-size: var(--title-sm);
}

.reader .master-bio {
  margin-top: var(--space-3);
  color: var(--reader-fg);
  font-size: var(--text-md);
}

.reader .review-meta {
  margin-top: var(--space-2);
}

/* 5. Sections -------------------------------------------------------------- */

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(48px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  gap: var(--space-7);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--title-xl);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.8;
}

.hero-kicker {
  display: block;
  margin-bottom: var(--space-5);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  line-height: 1.3;
  text-transform: uppercase;
}

/* Each line is a mask so the words can rise into place on load */
.hero-line {
  display: block;
  margin-block: -0.08em -0.2em;
  padding-block: 0.08em 0.2em;
  overflow-x: visible;
  overflow-y: clip;
}

.hero-line > * {
  display: block;
}

.hero-line-accent {
  padding-left: 0.6em;
}

.hero-line-accent em {
  color: var(--color-accent);
  font-style: italic;
  font-weight: 400;
}

.hero-lead {
  max-width: 38ch;
  margin-top: var(--space-6);
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  line-height: 1.55;
}

.hero-actions {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hero-messengers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.hero-media {
  position: relative;
  margin-right: calc(var(--gutter) * -1);
  padding-left: 12%;
  padding-bottom: var(--space-6);
}

/* Dusty-rose field — the salon's wall colour — set behind the photo */
.hero-media::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 22%;
  bottom: 0;
  left: calc(var(--gutter) * -1);
  width: 62%;
  background: var(--color-surface-warm);
}

.hero-frame {
  aspect-ratio: 4 / 5;
}

.hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.2;
}

.hero-facts {
  display: grid;
  border-top: 1px solid var(--color-border);
}

.hero-facts > div {
  display: grid;
  align-content: start;
  gap: var(--space-1);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.hero-facts dt,
.contact-item dt {
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.hero-facts dd {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.5;
}

/* Services index */
.services-strip {
  border-block: 1px solid var(--color-border);
}

.services-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-7);
  padding-block: var(--space-4);
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-4);
}

.services-list li {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.services-list li + li::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid var(--color-accent);
}

.services-list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  font-family: var(--font-display);
  font-size: var(--title-xs);
  font-style: italic;
  line-height: 1.1;
  transition: color var(--dur-fast) ease;
}

/* About */
.about-grid {
  display: grid;
  gap: var(--space-7);
}

.about-media .framed {
  aspect-ratio: 4 / 3;
}

.about-text {
  max-width: 56ch;
  color: var(--color-text-secondary);
  font-size: var(--text-md);
}

/* Masters — rendered only when at least one master is filled in the admin */
.masters {
  margin-top: var(--space-9);
}

.masters-title {
  margin-bottom: var(--space-6);
  font-family: var(--font-display);
  font-size: var(--title-sm);
  font-weight: 500;
  line-height: 1;
}

.masters-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6) var(--space-4);
}

.master-card {
  display: grid;
  /* One column no wider than the card: long text must not stretch the photo */
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

.master-info {
  display: grid;
  gap: var(--space-1);
}

.master-photo {
  aspect-ratio: 3 / 4;
  margin-bottom: var(--space-3);
  overflow: hidden;
  background: var(--soft);
}

.master-name {
  font-family: var(--font-display);
  font-size: var(--title-xs);
  font-weight: 500;
  line-height: 1.1;
}

.master-role,
.master-bio {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.master-experience {
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.master-info .clamp {
  --clamp-lines: 3;
  margin-top: var(--space-2);
}

.about-media figcaption {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-4);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.about-media figcaption::before {
  content: "";
  flex: none;
  width: 24px;
  height: 1px;
  margin-top: 0.8em;
  background: var(--color-accent);
}

.feature {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: var(--space-4);
  row-gap: var(--space-3);
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-border);
}

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

.feature-index {
  grid-row: span 2;
  padding-top: 0.2em;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1;
}

.feature-title {
  font-family: var(--font-display);
  font-size: var(--title-sm);
  font-weight: 500;
  line-height: 1;
}

.feature p {
  max-width: 46ch;
  color: var(--color-text-secondary);
  font-size: var(--text-md);
}

/* Inverse section (offers) */
.section-inverse {
  background: var(--color-surface-inverse);
  color: var(--color-text-inverse);
}

.section-inverse .eyebrow,
.section-inverse .section-lead {
  color: var(--color-text-inverse-secondary);
}

.section-inverse .eyebrow-index,
.section-inverse .section-title em {
  border-color: var(--color-accent-inverse);
  color: var(--color-accent-inverse);
}

.section-inverse :focus-visible {
  outline-color: var(--soft);
}

.section-inverse .empty-state {
  border-color: var(--color-border-inverse);
  color: var(--color-text-inverse-secondary);
}

.offers-grid {
  display: grid;
  gap: var(--space-8);
}

.offer-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.offer-media {
  position: relative;
}

.offer-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgb(255 255 255 / 0.06);
}

.offer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}

.offer-photo .media-placeholder {
  background: rgb(255 255 255 / 0.06);
}

/* Offer badge — a double-framed stamp */
.offer-badge {
  position: absolute;
  bottom: 0;
  left: var(--space-5);
  display: inline-grid;
  place-items: center;
  min-width: 80px;
  height: 56px;
  padding-inline: var(--space-4);
  background: var(--soft);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  outline: 1px solid var(--soft);
  outline-offset: 4px;
  transform: translateY(50%);
}

.offer-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding-top: calc(28px + var(--space-6));
}

.offer-title {
  font-family: var(--font-display);
  font-size: var(--title-sm);
  font-weight: 500;
  line-height: 1.02;
}

.offer-text {
  max-width: 42ch;
  color: var(--color-text-inverse-secondary);
}

.offer-body .clamp {
  --clamp-lines: 4;
}

.offer-meta {
  color: var(--taupe);
  font-size: var(--text-sm);
}

.offer-body .button {
  align-self: stretch;
  margin-top: auto;
}

/* Works */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  padding-bottom: var(--works-offset, 32px);
}

.work-item {
  translate: 0 var(--offset, 0);
}

.work-item:nth-child(even) {
  --offset: var(--works-offset, 32px);
}

.work-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--soft);
  cursor: zoom-in;
}

.work-card:focus-visible {
  outline-offset: 4px;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}

.work-zoom {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--white);
  color: var(--ink);
  transition:
    opacity var(--dur-fast) ease,
    transform var(--dur-base) var(--ease-out);
}

.work-zoom .icon {
  width: 18px;
  height: 18px;
}

/* Price */
.section-panel {
  background: var(--color-surface);
}

.price-grid {
  display: grid;
  gap: var(--space-7);
}

.price-group {
  scroll-margin-top: calc(var(--header-h) + var(--space-5));
}

.price-category {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-display);
  font-size: var(--title-sm);
  font-weight: 500;
  line-height: 1;
}

.price-category-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  transition: color var(--dur-fast) ease;
}

.price-category-link .icon {
  width: 0.6em;
  height: 0.6em;
  color: var(--color-accent);
  transition: transform var(--dur-base) var(--ease-out);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.price-name {
  min-width: 0;
}

.price-duration {
  display: block;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.price-leader {
  flex: 1;
  min-width: var(--space-5);
  border-bottom: 1px dotted var(--color-border-strong);
  transform: translateY(-0.3em);
}

.price-value {
  flex: none;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.price-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-8);
  padding-top: var(--space-7);
  border-top: 1px solid var(--color-border);
}

.price-cta p {
  color: var(--color-text-secondary);
}

/* Reviews */
.section-warm {
  background: var(--color-surface-warm);
}

.reviews-grid > li {
  border-top: 1px solid var(--color-border-strong);
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  height: 100%;
  padding-block: var(--space-6);
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: fit-content;
}

.stars img {
  width: 16px;
  height: 16px;
}

.review-body {
  --clamp-lines: 5;
}

.review-text {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1.4rem + 0.8vw, 2.125rem);
  font-style: italic;
  line-height: 1.2;
}

.review-text p::before {
  content: "«";
}

.review-text p::after {
  content: "»";
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  font-size: var(--text-sm);
}

.review-author {
  font-weight: 600;
}

.review-source {
  padding: 2px var(--space-2);
  border: 1px solid var(--graphite);
  color: var(--graphite);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

a.review-source {
  transition:
    border-color var(--dur-fast) ease,
    color var(--dur-fast) ease;
}

.review-date {
  color: var(--color-text-secondary);
}

.reviews-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-6);
  margin-top: var(--space-7);
}

.reviews-links a,
.contacts-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  font-weight: 500;
}

/* FAQ */
.faq-list {
  border-top: 1px solid var(--color-border);
}

.faq-item {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  font-family: var(--font-display);
  font-size: var(--title-xs);
  font-weight: 500;
  line-height: 1.15;
}

.faq-answer {
  max-width: 64ch;
  color: var(--color-text-secondary);
  font-size: var(--text-md);
}

/* Contacts */
.contacts-grid {
  display: grid;
  gap: var(--space-8);
}

.contacts-info {
  display: grid;
  align-content: start;
  gap: var(--space-5);
}

.contact-list {
  margin-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.contact-item {
  position: relative;
  display: grid;
  row-gap: var(--space-1);
  padding-block: var(--space-5);
  padding-left: 40px;
  border-bottom: 1px solid var(--color-border);
}

.contact-icon {
  position: absolute;
  top: calc(var(--space-5) - 3px);
  left: 0;
  color: var(--color-accent);
}

.contact-item dd {
  font-family: var(--font-display);
  font-size: var(--title-xs);
  font-weight: 500;
  line-height: 1.25;
}

.contact-item dd span {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.5;
}

.contacts-actions {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.contacts-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-6);
}

.map-card {
  position: relative;
  isolation: isolate;
  min-height: 380px;
  margin: var(--space-4) 0 0 var(--space-4);
}

/* Offset outline frame behind the map */
.map-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: calc(var(--space-4) * -1) var(--space-4) var(--space-4)
    calc(var(--space-4) * -1);
  border: 1px solid var(--color-border-strong);
  pointer-events: none;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  background: var(--section-panel);
}

/* Footer */
.site-footer {
  padding-top: var(--space-9);
  padding-bottom: var(--space-6);
  background: var(--ink);
  color: var(--ash);
  font-size: var(--text-sm);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-7) var(--space-5);
  padding-bottom: var(--space-8);
}

.footer-brand,
.footer-contacts {
  grid-column: 1 / -1;
}

.brand-inverse {
  color: var(--white);
}

.brand-inverse .brand-name em {
  color: var(--soft);
}

.footer-tagline {
  max-width: 20ch;
  margin-top: var(--space-5);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--title-xs);
  font-style: italic;
  line-height: 1.2;
}

.footer-heading {
  margin-bottom: var(--space-3);
  color: var(--taupe);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  transition: color var(--dur-fast) ease;
}

.footer-contacts {
  display: grid;
  align-content: start;
  gap: var(--space-4);
}

.footer-contacts .footer-heading {
  margin-bottom: 0;
}

.footer-phone {
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--title-xs);
  font-weight: 500;
  line-height: 1.2;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-inverse);
  color: var(--taupe);
}

.developer-link {
  transition: color var(--dur-fast) ease;
}

.site-footer :focus-visible {
  outline-color: var(--soft);
}

/* 6. Document pages -------------------------------------------------------- */

.page-hero {
  padding-block: clamp(32px, 5vw, 80px) clamp(48px, 7vw, 112px);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-2);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--color-border-strong);
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--dur-fast) ease;
}

.page-title {
  max-width: 14ch;
  margin-top: var(--space-5);
  font-family: var(--font-display);
  font-size: var(--title-lg);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-wrap: balance;
}

.page-intro {
  max-width: 44ch;
  margin-top: var(--space-5);
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-size: var(--title-xs);
  font-style: italic;
  line-height: 1.3;
}

.page-layout {
  display: grid;
  gap: var(--space-8);
  padding-block: var(--section-y);
}

.page-section {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: var(--space-5);
  row-gap: var(--space-5);
  padding-block: var(--space-7);
  border-top: 1px solid var(--color-border);
}

.page-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.page-section-title {
  font-family: var(--font-display);
  font-size: var(--title-sm);
  font-weight: 500;
  line-height: 1.05;
}

.page-section-list {
  display: grid;
  grid-column: 1 / -1;
  gap: var(--space-4);
}

.page-section-list li {
  position: relative;
  max-width: 68ch;
  padding-left: var(--space-6);
  font-size: var(--text-md);
  line-height: 1.65;
}

.page-section-list li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 0;
  width: 14px;
  height: 1px;
  background: var(--color-accent);
}

.page-aside {
  display: grid;
  align-content: start;
  gap: var(--space-6);
}

.doc-nav ul {
  margin-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.doc-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 52px;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--dur-fast) ease;
}

.doc-nav a[aria-current="page"] {
  font-weight: 600;
}

.doc-nav a[aria-current="page"]::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border: 1px solid var(--color-accent);
}

.aside-card {
  display: grid;
  justify-items: start;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--ink);
  color: var(--ash);
}

.aside-card-title {
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--title-xs);
  font-weight: 500;
  line-height: 1.1;
}

.aside-card-phone {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
}

.aside-card .button {
  margin-top: var(--space-2);
}

.aside-card :focus-visible {
  outline-color: var(--soft);
}

.text-link-inverse {
  color: var(--white);
}

/* Service pages reuse the document layout: prices, works and masters sit in numbered sections */
.page-title-sub {
  display: block;
  margin-top: var(--space-4);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  line-height: 1.3;
  text-transform: uppercase;
}

.page-hero-actions,
.error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-6);
}

.page-hero-actions .text-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  font-weight: 600;
}

.page-section-body {
  grid-column: 1 / -1;
  min-width: 0;
}

.service-page .page-body {
  counter-reset: page-section;
}

.service-page .page-section-index::before {
  content: counter(page-section, decimal-leading-zero);
  counter-increment: page-section;
}

.service-price {
  display: grid;
  gap: var(--space-7);
}

.service-address {
  font-family: var(--font-display);
  font-size: var(--title-xs);
  font-weight: 500;
  line-height: 1.25;
}

.service-address span {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.5;
}

.service-hours {
  margin-top: var(--space-4);
  color: var(--color-text-secondary);
}

.service-location .contacts-links {
  margin-top: var(--space-3);
}

.error-page {
  padding-block: clamp(48px, 8vw, 128px);
}

.error-actions {
  gap: var(--space-3);
  margin-top: var(--space-7);
}

.error-services {
  margin-top: var(--space-7);
}

/* 7. Motion ---------------------------------------------------------------- */

/* Hover effects only where a real pointer exists */
@media (hover: hover) and (pointer: fine) {
  .button:hover {
    border-color: var(--btn-border-hover);
    background: var(--btn-bg-hover);
    color: var(--btn-fg-hover);
  }

  .button:hover .icon {
    transform: translateX(3px);
  }

  .services-list a:hover {
    color: var(--color-accent);
  }

  .price-category-link:hover {
    color: var(--color-accent);
  }

  .price-category-link:hover .icon {
    transform: translateX(3px);
  }

  a.review-source:hover {
    border-color: var(--ink);
    color: var(--ink);
  }

  .text-link:hover,
  .breadcrumbs a:hover {
    text-decoration-color: var(--color-accent);
    text-decoration-thickness: 2px;
  }

  .header-phone:hover,
  .doc-nav a:hover {
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
  }

  .text-link-inverse:hover,
  .footer-links a:hover,
  .developer-link:hover {
    color: var(--white);
  }

  .socials a:hover {
    border-color: var(--mauve);
    background: var(--mauve);
  }

  .lightbox-btn:hover {
    border-color: var(--white);
    background: rgb(255 255 255 / 0.12);
  }

  .more-link:hover {
    text-decoration-color: var(--color-accent);
    text-decoration-thickness: 2px;
  }

  .section-inverse .more-link:hover {
    text-decoration-color: var(--color-accent-inverse);
  }

  .more-link:hover .icon {
    transform: rotate(90deg);
  }

  .reader-close:hover {
    border-color: var(--reader-border);
  }

  .work-card:hover img,
  .offer-card:hover .offer-photo img {
    transform: scale(1.04);
  }

  .work-zoom {
    opacity: 0;
    transform: translateY(6px);
  }

  .work-card:hover .work-zoom,
  .work-card:focus-visible .work-zoom {
    opacity: 1;
    transform: none;
  }
}

/* Scroll reveal — main.js sets .reveal-ready only once it can reveal them */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes nav-item-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes line-rise {
  from {
    transform: translateY(105%);
  }
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes frame-reveal {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes image-settle {
  from {
    transform: scale(1.14);
  }
}

@keyframes field-grow {
  from {
    transform: scaleX(0);
  }
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.lightbox[open] .lightbox-figure {
  animation: lightbox-in var(--dur-base) var(--ease-out);
}

.lightbox[open]::backdrop {
  animation: fade-in var(--dur-fast) ease;
}

@keyframes reader-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.reader[open] {
  animation: reader-in var(--dur-base) var(--ease-out);
}

.reader[open]::backdrop {
  animation: fade-in var(--dur-fast) ease;
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero-line > * {
    animation: line-rise 1000ms var(--ease-out) both;
  }

  .js .hero-line-accent > * {
    animation-delay: 90ms;
  }

  .js .hero-kicker,
  .js .hero-lead,
  .js .hero-actions,
  .js .hero-facts,
  .js .hero-caption {
    animation: fade-rise 900ms var(--ease-out) both;
  }

  .js .hero-kicker {
    animation-delay: 60ms;
  }

  .js .hero-lead {
    animation-delay: 240ms;
  }

  .js .hero-actions {
    animation-delay: 320ms;
  }

  .js .hero-facts {
    animation-delay: 420ms;
  }

  .js .hero-caption {
    animation-delay: 900ms;
  }

  .js .hero-frame {
    animation: frame-reveal 1100ms var(--ease-in-out) 120ms both;
  }

  .js .hero-frame img {
    animation: image-settle 1600ms var(--ease-out) 120ms both;
  }

  .js .hero-media::before {
    transform-origin: left;
    animation: field-grow 1100ms var(--ease-in-out) 300ms both;
  }

  /* Subtle parallax on the hero photo, driven by scroll — no JS */
  @supports (animation-timeline: scroll()) {
    .hero-frame picture {
      animation: hero-parallax linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }

    @keyframes hero-parallax {
      from {
        transform: scale(1.06) translateY(0);
      }
      to {
        transform: scale(1.06) translateY(5%);
      }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* Keep gentle fades, drop movement */
  .reveal-ready [data-reveal] {
    transform: none;
    transition: opacity 400ms ease;
    transition-delay: 0ms;
  }

  .site-header.is-menu-open .nav-list li,
  .lightbox[open] .lightbox-figure,
  .reader[open] {
    animation: fade-in var(--dur-fast) ease both;
  }

  .main-nav,
  .site-header.is-menu-open .main-nav,
  .work-card img,
  .offer-photo img,
  .button .icon,
  .price-category-link .icon {
    transform: none !important;
  }
}

/* 8. Breakpoints ----------------------------------------------------------- */

@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }

  .reader {
    width: min(640px, calc(100% - 2 * var(--gutter)));
    margin: auto;
    border: 1px solid var(--reader-border);
  }

  .reader-head {
    padding-inline: var(--space-6);
  }

  .reader-content {
    padding: var(--space-6) var(--space-6) var(--space-7);
  }

  .offer-body .button {
    align-self: flex-start;
  }

  .contacts-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
  }

  .hero-messengers {
    display: flex;
    gap: var(--space-3);
  }

  .hero-messengers .button {
    min-height: var(--button-h-lg);
    padding-inline: var(--space-5);
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--color-border);
  }

  .hero-facts > div {
    padding: var(--space-4) var(--space-5) var(--space-4) 0;
    border-bottom: 0;
  }

  .hero-facts > div + div {
    padding-left: var(--space-5);
    border-left: 1px solid var(--color-border);
  }

  .nav-extra-actions {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .nav-extra-actions .button-dark {
    grid-column: auto;
  }
}

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

  .hero-media {
    margin-right: 0;
    padding-left: 18%;
  }

  .hero-media::before {
    width: 50%;
  }

  .hero-frame {
    aspect-ratio: 4 / 3;
  }

  .section-head-split {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: var(--space-7);
  }

  .section-head-split .section-lead {
    justify-self: end;
    padding-bottom: 0.4em;
    text-align: right;
  }

  .about-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .about-media .framed {
    aspect-ratio: 4 / 5;
  }

  .masters-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-7) var(--space-5);
  }

  .faq-item {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--space-7);
  }

  .cookie-notice {
    right: auto;
    bottom: var(--space-5);
    left: var(--space-5);
    max-width: 420px;
  }

  .offers-grid {
    gap: var(--space-7);
  }

  .offer-card {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: none;
    column-gap: var(--space-6);
  }

  .offer-badge {
    top: var(--space-4);
    bottom: auto;
    left: var(--space-4);
    transform: none;
  }

  .offer-body {
    padding-top: var(--space-2);
  }

  .works-grid {
    --works-offset: 48px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
  }

  .work-item:nth-child(even) {
    --offset: 0;
  }

  .work-item:nth-child(3n + 2) {
    --offset: var(--works-offset);
  }

  .price-grid {
    display: block;
    column-count: 2;
    column-gap: clamp(40px, 6vw, 120px);
  }

  .price-group {
    margin-bottom: var(--space-8);
    break-inside: avoid;
  }

  .price-cta {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .reviews-grid > li {
    padding-block: var(--space-2);
  }

  .review-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    grid-template-rows: auto 1fr;
    column-gap: var(--space-7);
  }

  .review-card .stars {
    grid-column: 1;
    grid-row: 1;
  }

  .review-body {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .review-meta {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin-top: 0;
  }

  .footer-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-contacts {
    grid-column: auto;
  }

  .page-section {
    column-gap: var(--space-6);
  }

  .page-section-list {
    grid-column: 2;
  }

  .page-section-body {
    grid-column: 2;
  }
}

@media (min-width: 1100px) {
  :root {
    --header-h: 76px;
  }

  /* Header: brand · nav · actions */
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .header-actions {
    justify-self: end;
    gap: var(--space-5);
  }

  .header-phone {
    display: inline-flex;
  }

  .menu-toggle,
  .nav-extra {
    display: none;
  }

  .main-nav {
    position: static;
    display: block;
    height: auto;
    padding: 0;
    overflow: visible;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .nav-list {
    display: flex;
    gap: clamp(18px, 2vw, 32px);
  }

  .nav-list a {
    position: relative;
    padding-block: var(--space-2);
    border: 0;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1.4;
  }

  .nav-list a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--dur-base) var(--ease-out);
  }

  .nav-list a.is-active {
    color: var(--color-text);
  }

  .nav-list a:hover::after,
  .nav-list a.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  /* Hero: 12-column editorial composition */
  .hero {
    padding-top: var(--space-6);
    padding-bottom: var(--space-7);
  }

  .hero-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-5);
    row-gap: var(--space-7);
    align-items: center;
    min-height: calc(
      100svh - var(--header-h) - var(--space-6) - var(--space-7)
    );
  }

  .hero-copy {
    grid-column: 1 / span 7;
    grid-row: 1;
    position: relative;
    z-index: 1;
  }

  .hero-media {
    grid-column: 8 / -1;
    grid-row: 1 / span 2;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-left: 0;
    padding-bottom: var(--space-6);
  }

  .hero-media::before {
    top: 18%;
    bottom: 0;
    left: -26%;
    width: 66%;
  }

  .hero-frame {
    width: 100%;
    min-height: 460px;
    max-height: calc(100svh - var(--header-h) - 132px);
    aspect-ratio: 3 / 4;
  }

  .hero-caption {
    left: -6%;
  }

  .hero-facts {
    grid-column: 1 / span 7;
    margin-right: var(--space-6);
    grid-row: 2;
    align-self: end;
  }

  .hero-lead,
  .hero-actions {
    margin-top: var(--space-6);
  }

  /* About: photo anchors left, text flows right */
  .section-about .container {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-5);
  }

  .section-about .section-head {
    grid-column: 7 / -1;
    grid-row: 1;
  }

  .about-grid {
    display: contents;
  }

  .about-media {
    grid-column: 1 / span 5;
    grid-row: 1 / span 2;
  }

  .feature-list {
    grid-column: 7 / -1;
    grid-row: 2;
  }

  .masters {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .masters-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Offers: three editorial columns */
  .offers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .offer-card {
    grid-template-columns: none;
    grid-template-rows: auto 1fr;
  }

  .offer-badge {
    top: auto;
    bottom: 0;
    left: var(--space-5);
    transform: translateY(50%);
  }

  .offer-body {
    padding-top: calc(28px + var(--space-6));
  }

  .works-grid {
    --works-offset: 72px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .work-item:nth-child(3n + 2) {
    --offset: 0;
  }

  .work-item:nth-child(4n + 2),
  .work-item:nth-child(4n + 4) {
    --offset: var(--works-offset);
  }

  /* Inside the narrower document column: three photos per row */
  .works-grid-compact {
    --works-offset: 48px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
  }

  .works-grid-compact .work-item:nth-child(4n + 2),
  .works-grid-compact .work-item:nth-child(4n + 4) {
    --offset: 0;
  }

  .works-grid-compact .work-item:nth-child(3n + 2) {
    --offset: var(--works-offset);
  }

  .reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--space-7);
  }

  .reviews-grid > li {
    padding-block: 0;
  }

  /* Side-by-side cards share one skeleton: stars / up to 4 lines / author + "read more" */
  .review-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "stars stars"
      "text text"
      "meta more";
    column-gap: var(--space-4);
    padding-top: var(--space-6);
  }

  .review-body {
    --clamp-lines: 4;
    display: contents;
  }

  .review-card .stars {
    grid-area: stars;
  }

  .review-text {
    grid-area: text;
    align-self: start;
  }

  .review-body .more-link {
    grid-area: more;
    justify-self: end;
    margin-bottom: 0;
  }

  .review-meta {
    grid-area: meta;
    min-height: var(--touch);
  }

  .contacts-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-5);
  }

  .contacts-info {
    grid-column: 1 / span 5;
  }

  .map-card {
    grid-column: 7 / -1;
    min-height: 560px;
    margin: var(--space-5) 0 0 var(--space-5);
  }

  .map-card iframe {
    min-height: 560px;
  }

  .footer-top {
    grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 3fr) minmax(
        0,
        3fr
      );
    column-gap: var(--space-6);
  }

  .footer-brand,
  .footer-contacts {
    grid-column: auto;
  }

  .page-layout {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    column-gap: clamp(48px, 7vw, 120px);
  }

  .page-aside {
    position: sticky;
    top: calc(var(--header-h) + var(--space-6));
  }

  .lightbox-prev,
  .lightbox-next {
    top: 50%;
    bottom: auto;
    translate: 0 -50%;
  }
}

@media (min-width: 1440px) {
  .hero-line-accent {
    padding-left: 0.72em;
  }
}
