/* ========== Свой Мастер — landing styles ========== */

:root {
  /* clean white light theme */
  --bg: #ffffff;
  --bg-elev: oklch(0.985 0.003 240);
  --bg-warm: oklch(0.965 0.005 240);
  --ink: oklch(0.18 0.020 250);
  --ink-mute: oklch(0.45 0.015 250);
  --ink-soft: oklch(0.62 0.012 250);
  --border: oklch(0.88 0.008 240);
  --border-soft: oklch(0.93 0.006 240);
  --accent: oklch(0.56 0.18 245);
  --accent-ink: #ffffff;
  --accent-soft: oklch(0.94 0.035 245);
  --shadow-sm: 0 1px 0 rgba(20,30,60,.03), 0 1px 2px rgba(20,30,60,.04);
  --shadow-md: 0 1px 0 rgba(20,30,60,.03), 0 8px 24px -8px rgba(20,30,60,.10);
  --shadow-lg: 0 2px 0 rgba(20,30,60,.03), 0 24px 60px -20px rgba(20,30,60,.18);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --maxw: 1180px;
  --gutter: 28px;

  --font: "Onest", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

[data-theme="dark"] {
  --bg: oklch(0.16 0.012 250);
  --bg-elev: oklch(0.21 0.014 250);
  --bg-warm: oklch(0.23 0.016 250);
  --ink: oklch(0.97 0.005 240);
  --ink-mute: oklch(0.74 0.012 240);
  --ink-soft: oklch(0.58 0.012 240);
  --border: oklch(0.32 0.014 250);
  --border-soft: oklch(0.27 0.013 250);
  --accent: oklch(0.72 0.155 245);
  --accent-ink: oklch(0.16 0.025 250);
  --accent-soft: oklch(0.30 0.060 245);
  --shadow-sm: 0 1px 0 rgba(0,0,0,.20), 0 1px 2px rgba(0,0,0,.20);
  --shadow-md: 0 1px 0 rgba(0,0,0,.20), 0 8px 24px -8px rgba(0,0,0,.40);
  --shadow-lg: 0 2px 0 rgba(0,0,0,.20), 0 24px 60px -20px rgba(0,0,0,.55);
}

/* ========== Base ========== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); overflow-x: clip; }
body {
  font-family: var(--font);
  font-feature-settings: "ss01", "cv11";
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: clip;
  transition: background-color .25s ease, color .25s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.022em; margin: 0; text-wrap: balance; line-height: 1.08; }
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ========== Nav ========== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}
.nav-inner {
  display: flex; align-items: center; justify-content: flex-end;
  height: 64px;
}
/* hero geo chip — between master name and h1 (whole pill hides when no geo) */
.hero-geo {
  display: flex; align-items: center; gap: 7px;
  width: fit-content; margin: 0 auto 20px;
  font-size: 14px; font-weight: 500;
  color: var(--ink);
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  padding: 7px 15px 7px 12px;
  border-radius: 999px;
}
.hero-geo::before {
  content: ""; width: 15px; height: 15px; flex-shrink: 0;
  background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M21%2010c0%207-9%2013-9%2013s-9-6-9-13a9%209%200%200%201%2018%200z'%2F%3E%3Ccircle%20cx%3D'12'%20cy%3D'10'%20r%3D'3'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M21%2010c0%207-9%2013-9%2013s-9-6-9-13a9%209%200%200%201%2018%200z'%2F%3E%3Ccircle%20cx%3D'12'%20cy%3D'10'%20r%3D'3'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
}
.brand { display: none; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent);
  display: grid; place-items: center;
  color: var(--accent-ink);
  font-weight: 700; font-size: 13px; letter-spacing: 0;
}
.nav-links { display: none; }
.nav-links a { white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px 11px 14px;
  border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 15px; font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap; flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  transition: transform .15s ease, background-color .25s ease;
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-cta .ring-ico {
  width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 999px;
  background: oklch(0.78 0.18 145);
  color: oklch(0.20 0.05 150);
  display: grid; place-items: center;
  box-shadow: 0 0 0 3px color-mix(in oklab, oklch(0.78 0.18 145) 28%, transparent);
  animation: nav-ring-shake 1.6s ease-in-out infinite;
  transform-origin: center 70%;
}
.nav-cta .ring-ico svg { width: 14px; height: 14px; display: block; stroke-width: 2.2; }
@keyframes nav-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.85; }
}
@keyframes nav-dot-ring {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}
@keyframes nav-ring-shake {
  0%, 62%, 100% { transform: rotate(0deg); }
  64% { transform: rotate(-16deg) scale(1.04); }
  68% { transform: rotate(14deg) scale(1.04); }
  72% { transform: rotate(-12deg); }
  76% { transform: rotate(10deg); }
  80% { transform: rotate(-7deg); }
  84% { transform: rotate(4deg); }
  88% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-cta .ring-ico { animation: none; }
}

/* compact nav at mid-width: drop "О мастере" / "Контакты" earlier, then hide phone label */
@media (max-width: 1080px) {
  .nav-inner { gap: 16px; }
  .nav-links { gap: 18px; font-size: 14px; }
}
@media (max-width: 920px) {
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .nav-cta .phone-label-full { display: none; }
}

/* ========== Hero ========== */
.hero { padding: 64px 0 88px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: end;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-mute);
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--border-soft);
}
.eyebrow .pulse { width: 6px; height: 6px; border-radius: 999px; background: oklch(0.72 0.18 145); box-shadow: 0 0 0 4px color-mix(in oklab, oklch(0.72 0.18 145) 18%, transparent); }
.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  margin-top: 22px;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  margin-top: 24px;
  font-size: 19px; color: var(--ink-mute);
  max-width: 30em;
}
.hero-ctas { margin-top: 36px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 999px;
  font-size: 16px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: var(--shadow-md);
}
.btn-primary .phone-icon { width: 18px; height: 18px; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-elev); }

/* MAX messenger button */
.btn-max {
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--border);
  padding-left: 13px;
  gap: 9px;
  font-weight: 600;
  white-space: nowrap;
}
.btn-max:hover { background: var(--bg); border-color: var(--ink-soft); }
.btn-max .max-ico { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; }
.btn-max .max-ico svg { width: 24px; height: 24px; display: block; }

.hero-meta {
  margin-top: 28px;
  display: flex; gap: 24px; font-size: 14px; color: var(--ink-soft);
}
.hero-meta span::before { content: "·"; margin-right: 24px; color: var(--ink-soft); }
.hero-meta span:first-child::before { content: ""; margin-right: 0; }

/* hero placeholder image */
.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--bg-warm);
}
.hero-photo img, .about-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 22%;
  display: block;
}
.hero-photo .ph-label {
  position: absolute; left: 16px; bottom: 16px;
  font: 11px/1 var(--mono); color: var(--ink-mute);
  background: var(--bg);
  padding: 6px 9px; border-radius: 6px;
  border: 1px solid var(--border-soft);
  letter-spacing: 0;
}
.hero-stat-card {
  position: absolute; left: -22px; bottom: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; gap: 12px; align-items: center;
  box-shadow: var(--shadow-lg);
  max-width: 280px;
}
.hero-stat-card .stars { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-right: 10px; border-right: 1px solid var(--border-soft); }
.hero-stat-card .stars .big { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-stat-card .stars .row { font-size: 12px; color: #ffb800; letter-spacing: 1px; line-height: 1; }

/* ========== Hero trust row: Avito profile card + "Мастер рядом с вами" ========== */
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch;
  margin-top: 26px;
}
.avito-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
}
.avito-card .ava {
  width: 64px; height: 64px; border-radius: 14px;
  object-fit: cover; object-position: center 18%;
  flex-shrink: 0;
  border: 1px solid var(--border-soft);
}
.avito-card .info { display: flex; flex-direction: column; min-width: 0; }
.avito-card .name {
  color: #0af; font-weight: 700; font-size: 17px;
  letter-spacing: -0.01em; line-height: 1.15;
}
.avito-card .rating {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; margin-top: 5px;
}
.avito-card .rating .score { color: var(--ink); }
.avito-card .rating .stars { color: #ffb800; letter-spacing: 1px; font-size: 13px; }
.avito-card .rating .count { color: #0af; font-weight: 600; font-size: 13.5px; }
.avito-card .role { font-size: 13px; color: var(--ink-mute); margin-top: 5px; }
.avito-card .since {
  font-size: 13px; color: var(--ink); margin-top: 2px;
  display: flex; align-items: center; gap: 5px;
}

.near-you {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 0 20px;
  border-radius: 18px;
  white-space: nowrap;
  background: color-mix(in oklab, oklch(0.72 0.18 145) 11%, var(--bg-elev));
  border: 1px solid color-mix(in oklab, oklch(0.72 0.18 145) 32%, var(--border-soft));
  font-size: 14.5px; font-weight: 600; color: var(--ink);
}
.near-you .pulse {
  width: 9px; height: 9px; border-radius: 999px;
  background: oklch(0.64 0.17 145);
  position: relative; flex-shrink: 0;
  animation: nav-dot-pulse 1.8s ease-out infinite;
}
.near-you .pulse::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 999px; background: oklch(0.64 0.17 145);
  animation: nav-dot-ring 1.8s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .near-you .pulse, .near-you .pulse::after { animation: none; }
}
@media (max-width: 880px) {
  .hero-trust { justify-content: center; }
}
@media (max-width: 460px) {
  .hero-trust { flex-direction: column; }
  .avito-card, .near-you { width: 100%; }
  .near-you { padding: 13px 18px; justify-content: center; }
}
.rating-strip {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.rating-strip .big {
  font-size: 36px; font-weight: 700;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.rating-strip .wrap-stars { display: flex; flex-direction: column; gap: 6px; }
.rating-strip .av-stars { font-size: 15px; line-height: 1; }
.rating-strip .meta { font-size: 13px; color: var(--ink-mute); line-height: 1.3; }
.rating-strip .meta strong { color: var(--ink); font-weight: 500; }
.hero-stat-card small { color: var(--ink-mute); font-size: 12.5px; display: block; }
.hero-stat-card strong { font-weight: 600; font-size: 14px; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero-stat-card { left: 16px; }

  /* photo-first on mobile */
  .hero-grid > div:first-child { order: 2; }
  .hero-grid > .hero-photo { order: 1; }

  /* home hero signature → static caption below photo on mobile */
  .hero-photo .signature {
    position: static;
    background: transparent; border: 0; box-shadow: none;
    padding: 14px 0 0;
    justify-content: center;
    text-align: center;
    max-width: none;
  }
  .hero-photo .signature small { font-size: 11.5px; text-align: center; }
  .hero-photo .signature strong { font-size: 22px; letter-spacing: -0.018em; text-align: center; }
  .hero-photo { aspect-ratio: 4 / 3; overflow: visible; border: 0; background: transparent; }
  .hero-photo img { position: relative; border-radius: var(--radius-lg); border: 1px solid var(--border-soft); }
  .hero-photo .hero-stat-card { left: 12px; bottom: -8px; }

  /* hide on-page name prefix in service leads on mobile */
  .lead-prefix { display: none; }
}

/* ========== Section header ========== */
.section { padding: 88px 0; border-top: 1px solid var(--border-soft); }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 32px; margin-bottom: 44px;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.025em;
}
.section-head .kicker {
  font: 12.5px/1 var(--mono); color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.section-head p { color: var(--ink-mute); max-width: 32em; font-size: 16px; }

/* ========== Services ========== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.service:hover { border-color: var(--border); transform: translateY(-2px); }
.service-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 22px;
}
.service-icon svg { width: 22px; height: 22px; stroke-width: 1.6; }
.service h3 { font-size: 22px; letter-spacing: -0.015em; }
.service > p {
  color: var(--ink-mute); font-size: 14.5px;
  margin-top: 10px;
}
.service ul {
  list-style: none; margin: 22px 0 0; padding: 22px 0 0;
  border-top: 1px dashed var(--border);
  display: flex; flex-direction: column; gap: 14px;
}
.service li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
  font-size: 14.5px;
}
.service li .name { color: var(--ink); }
.service li .price {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  font-size: 14px;
}
.service li .price small { color: var(--ink-soft); font-weight: 400; margin-right: 2px; font-size: 12px; }
.service .foot {
  margin-top: 28px;
  font-size: 13px; color: var(--ink-soft);
}
@media (max-width: 920px) { .services { grid-template-columns: 1fr; } }

/* ========== Steps ========== */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 4px;
  overflow: hidden;
}
.step {
  padding: 32px 26px 28px;
  border-radius: calc(var(--radius-lg) - 6px);
  background: var(--bg);
  position: relative;
  min-height: 200px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.step-num {
  font: 500 12.5px/1 var(--mono);
  color: var(--accent);
  letter-spacing: 0.04em;
}
.step h4 { font-size: 19px; margin-top: 14px; letter-spacing: -0.015em; }
.step p { color: var(--ink-mute); font-size: 14.5px; margin-top: 8px; }
.step .arrow {
  position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  display: grid; place-items: center;
  color: var(--ink-soft);
  z-index: 1;
}
.step:last-child .arrow { display: none; }
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; }
  .step .arrow { display: none; }
}

/* ========== About ========== */
.about {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px;
  align-items: center;
}
.about-photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: var(--bg-warm);
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.about-photo .ph-label {
  position: absolute; left: 14px; bottom: 14px;
  font: 11px/1 var(--mono); color: var(--ink-mute);
  background: var(--bg);
  padding: 6px 9px; border-radius: 6px;
  border: 1px solid var(--border-soft);
}
.about h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.025em; }
.about .lead { margin-top: 22px; font-size: 18px; color: var(--ink); }
.about .body { margin-top: 18px; color: var(--ink-mute); font-size: 16px; }
.about-stats {
  margin-top: 36px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px solid var(--border-soft);
  padding-top: 28px;
}
.about-stats .stat .n {
  font-size: 32px; font-weight: 600;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.about-stats .stat .l {
  color: var(--ink-mute); font-size: 13.5px;
  margin-top: 4px;
}
@media (max-width: 880px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { aspect-ratio: 4/3; max-height: 360px; }
}

/* ========== Works grid (Avito-style listings) ========== */
.works {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.work-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.work-card:hover { border-color: var(--border); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.work-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border-soft);
  display: grid; place-items: center;
  color: var(--ink-soft);
  overflow: hidden;
}
.work-photo .icon { width: 48px; height: 48px; opacity: 0.65; }
.work-photo .icon svg { width: 100%; height: 100%; stroke-width: 1.4; }
.work-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.work-photo .tag {
  position: absolute; left: 12px; top: 12px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
}
.work-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.work-price {
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.work-title { font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.work-meta { color: var(--ink-soft); font-size: 13px; margin-top: 2px; display: flex; flex-wrap: wrap; }
.work-meta span + span::before { content: "·"; display: inline-block; padding: 0 6px; opacity: 0.55; }
.work-foot {
  border-top: 1px solid var(--border-soft);
  margin-top: 12px; padding-top: 12px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--ink-mute);
}
.work-foot .check { color: oklch(0.62 0.13 145); display: inline-flex; gap: 4px; align-items: center; }
@media (max-width: 920px) { .works { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .works { grid-template-columns: 1fr; } }

/* ========== Reviews — Avito-style refresh ========== */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 920px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .reviews { grid-template-columns: 1fr; } }
.review {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px 24px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.review-top {
  display: flex; align-items: center; gap: 12px;
}
.review-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.av-stars {
  display: inline-flex; gap: 2px;
  color: #ffb800;
  letter-spacing: 1px; font-size: 16px;
  line-height: 1;
}
.av-stars .num {
  margin-left: 8px; font-size: 13px; color: var(--ink-mute);
  font-weight: 500; letter-spacing: 0;
}
.review-date {
  font-size: 12.5px; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.review blockquote {
  margin: 0;
  font-size: 15.5px; color: var(--ink);
  line-height: 1.55;
}
.review-photo {
  margin: 4px 0 2px;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--bg-warm);
}
.review-photo img {
  display: block; width: 100%; height: 180px;
  object-fit: cover;
}
.review-photos {
  margin: 4px 0 2px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.review-photos a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--bg-warm);
}
.review-photos img {
  display: block; width: 100%; height: 200px;
  object-fit: cover;
}
.review-top .av {
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--bg-warm);
  flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--ink-mute); font-weight: 600;
  font-size: 15px;
}
.review-top .av-1 { background: oklch(0.84 0.07 220); color: oklch(0.30 0.10 240); }
.review-top .av-2 { background: oklch(0.86 0.06 260); color: oklch(0.30 0.10 270); }
.review-top .av-3 { background: oklch(0.86 0.07 190); color: oklch(0.30 0.10 200); }
.review-top .av-4 { background: oklch(0.86 0.07 60);  color: oklch(0.32 0.10 50);  }
.review-top .av-5 { background: oklch(0.86 0.07 320); color: oklch(0.32 0.10 320); }
.review-top .av-6 { background: oklch(0.86 0.07 140); color: oklch(0.30 0.10 145); }
.review-top .who { flex: 1; min-width: 0; }
.review-top .name { font-size: 15.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.review-top .where { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.review-meta .tag {
  font-size: 12px; padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  color: var(--ink-mute);
}
/* keep old .reviews grid styles working; replace old internals */
.review .who, .review .stars { /* legacy classes — neutralized */ }

/* ========== /Works + Reviews ========== */

/* ========== Contact ========== */
.contact {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 56px;
  align-items: start;
}
.contact h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.028em; }
.contact .lead { margin-top: 20px; color: var(--ink-mute); font-size: 17px; max-width: 26em; }
.contact .phone-line {
  margin-top: 36px;
  display: flex; align-items: center; gap: 18px;
}
.contact .phone-icon-lg {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
}
.contact .phone-icon-lg svg { width: 26px; height: 26px; stroke-width: 1.7; }
.contact .phone-num {
  font-size: 30px; font-weight: 600; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.contact .phone-cap { color: var(--ink-soft); font-size: 13.5px; margin-top: 2px; }

.contact .hours {
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex; gap: 32px;
  color: var(--ink-mute); font-size: 14.5px;
}
.contact .hours strong { color: var(--ink); font-weight: 500; display: block; font-size: 13px; }

/* form */
.form { display: flex; flex-direction: column; gap: 14px; }
.form .field { display: flex; flex-direction: column; gap: 7px; }
.form label { font-size: 13px; color: var(--ink-mute); }
.form input, .form textarea {
  appearance: none; width: 100%;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font: inherit; font-size: 15px;
  transition: border-color .2s ease, background-color .2s ease;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--accent);
  background: var(--bg-elev);
}
.form textarea { min-height: 90px; resize: vertical; }
.form .submit {
  margin-top: 8px; align-self: flex-start;
  padding: 14px 22px;
}
.form .agree {
  font-size: 12px; color: var(--ink-soft); margin-top: 4px;
}
.form .form-error {
  font-size: 13.5px;
  color: oklch(0.55 0.18 25);
  background: oklch(0.96 0.04 25);
  border: 1px solid oklch(0.88 0.07 25);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 2px;
}

@media (max-width: 880px) {
  .contact { grid-template-columns: 1fr; padding: 36px 26px; gap: 36px; }
}

/* ========== Footer ========== */
.footer {
  padding: 36px var(--gutter) 56px;
  color: var(--ink-soft); font-size: 13.5px;
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
}
@media (max-width: 860px) {
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
  }
  .footer > div { max-width: 100%; }
}

/* ========== Master mini-card (on service pages + contacts) ========== */
.master-card {
  display: flex; gap: 18px; align-items: center;
  padding: 18px 22px 18px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
}
.master-card .photo {
  flex: 0 0 auto;
  width: 72px; height: 72px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-warm);
  border: 1px solid var(--border-soft);
}
.master-card .photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 18%;
  display: block;
}
.master-card .body { flex: 1; min-width: 0; }
.master-card .name { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.master-card .role { color: var(--ink-mute); font-size: 13.5px; margin-top: 2px; }
.master-card .cta { flex: 0 0 auto; }
@media (max-width: 540px) {
  .master-card { flex-wrap: wrap; }
  .master-card .cta { width: 100%; }
  .master-card .cta .btn { width: 100%; justify-content: center; }
}

/* striped placeholder pattern (subtle) */
.ph-stripe {
  background-image: repeating-linear-gradient(
    135deg,
    color-mix(in oklab, var(--ink) 4%, transparent) 0 1px,
    transparent 1px 11px
  );
}
[data-theme="dark"] .ph-stripe {
  background-image: repeating-linear-gradient(
    135deg,
    color-mix(in oklab, var(--ink) 8%, transparent) 0 1px,
    transparent 1px 11px
  );
}

/* ========== Nav active state ========== */
.nav-links a[aria-current="page"] {
  color: var(--ink);
  position: relative;
}
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -22px;
  height: 2px; background: var(--accent);
  border-radius: 2px;
}

/* ========== Page hero (subpages) ========== */
.page-hero {
  padding: 56px 0 56px;
  border-bottom: 1px solid var(--border-soft);
}
.page-hero .crumb {
  font: 12.5px/1 var(--mono); color: var(--ink-soft);
  letter-spacing: 0.04em; margin-bottom: 20px;
}
.page-hero .crumb a:hover { color: var(--ink); }
.page-hero .crumb .sep { margin: 0 8px; color: var(--ink-soft); opacity: 0.6; }
.page-hero h1 {
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: -0.028em;
  max-width: 16ch;
}
.page-hero .lead {
  margin-top: 20px;
  font-size: 18px; color: var(--ink-mute);
  max-width: 36em;
}
.page-hero-row {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.page-hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--bg-warm);
}
.page-hero-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 18%;
  display: block;
}
.page-hero-photo .signature {
  position: absolute; left: 18px; bottom: 18px;
  background: var(--bg);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  font-size: 13.5px;
  display: flex; gap: 10px; align-items: center;
}
.page-hero-photo .signature .pulse { width: 7px; height: 7px; border-radius: 999px; background: oklch(0.72 0.18 145); box-shadow: 0 0 0 4px color-mix(in oklab, oklch(0.72 0.18 145) 18%, transparent); }
.page-hero-photo .signature strong { font-weight: 600; display: block; }
.page-hero-photo .signature small { display: block; color: var(--ink-soft); font-size: 12px; margin-bottom: 1px; }

/* mobile photo caption — also reused inside home hero-photo */
.hero-photo .signature {
  position: absolute; left: 16px; top: 16px;
  background: var(--bg);
  padding: 9px 13px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  font-size: 13.5px;
  display: flex; gap: 10px; align-items: center;
  max-width: calc(100% - 32px);
}
.hero-photo .signature strong { font-weight: 600; display: block; font-size: 14px; }
.hero-photo .signature small { display: block; color: var(--ink-soft); font-size: 11.5px; margin-bottom: 1px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.04em; }

.page-hero-meta {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.page-hero-meta .row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 8px 0;
  font-size: 14.5px;
  border-bottom: 1px dashed var(--border-soft);
}
.page-hero-meta .row:last-child { border-bottom: 0; }
.page-hero-meta .row .k { color: var(--ink-mute); }
.page-hero-meta .row .v { font-weight: 500; font-variant-numeric: tabular-nums; }

/* horizontal meta strip below hero */
.hero-meta-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 48px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
}
.hero-meta-strip .cell {
  padding: 22px 26px;
  border-right: 1px solid var(--border-soft);
}
.hero-meta-strip .cell:last-child { border-right: 0; }
.hero-meta-strip .k { font: 11.5px/1 var(--mono); color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.hero-meta-strip .v { font-size: 20px; font-weight: 600; letter-spacing: -0.018em; margin-top: 8px; font-variant-numeric: tabular-nums; }

@media (max-width: 880px) {
  .page-hero-row { grid-template-columns: 1fr; gap: 32px; }
  .page-hero-photo { aspect-ratio: 4/3; max-height: 420px; }
  .hero-meta-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-meta-strip .cell { border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .hero-meta-strip .cell:nth-child(odd) { border-right: 1px solid var(--border-soft); }
  .hero-meta-strip .cell:nth-last-child(-n+2) { border-bottom: 0; }

  /* photo-first on mobile for service pages */
  .page-hero-row > div:first-child { order: 2; }
  .page-hero-row > .page-hero-photo { order: 1; }

  .page-hero-photo {
    aspect-ratio: 1 / 1;
    max-width: 360px;
    margin: 0 auto;
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .page-hero-photo img {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
  }
  .page-hero-photo .signature {
    position: static;
    background: transparent; border: 0; box-shadow: none;
    padding: 16px 0 0;
    justify-content: center;
    text-align: center;
  }
  .page-hero-photo .signature .pulse { display: none; }
  .page-hero-photo .signature small {
    display: block;
    font-size: 11.5px; font-family: var(--mono);
    color: var(--ink-soft);
    text-transform: uppercase; letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 4px;
  }
  .page-hero-photo .signature strong { font-size: 22px; letter-spacing: -0.018em; text-align: center; display: block; }
}
@media (max-width: 540px) {
  .hero-meta-strip { grid-template-columns: 1fr; }
  .hero-meta-strip .cell {
    border-right: 0 !important;
    border-bottom: 1px solid var(--border-soft) !important;
  }
  .hero-meta-strip .cell:last-child { border-bottom: 0 !important; }
}

/* ========== Price table ========== */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}
.price-table caption {
  text-align: left;
  font-size: 13px; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.06em;
  font-family: var(--mono);
  padding-bottom: 18px;
}
.price-table th, .price-table td {
  text-align: left;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
}
.price-table th { font-weight: 500; color: var(--ink-soft); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; padding-bottom: 10px; padding-top: 0; }
.price-table td .desc { color: var(--ink-mute); font-size: 13.5px; margin-top: 4px; max-width: 44ch; }
.price-table td.amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 500; }
.price-table td.amt small { color: var(--ink-soft); font-weight: 400; margin-right: 2px; font-size: 12px; }
.price-table tr:last-child td { border-bottom: 0; }

/* ========== Includes / FAQ cards ========== */
.includes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.includes .card {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
}
.includes .card .ico {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 14px;
}
.includes .card .ico svg { width: 18px; height: 18px; stroke-width: 1.6; }
.includes .card h4 { font-size: 16.5px; letter-spacing: -0.01em; }
.includes .card p { color: var(--ink-mute); font-size: 14px; margin-top: 8px; }
@media (max-width: 880px) { .includes { grid-template-columns: 1fr; } }

.faq { max-width: 760px; }
.faq details {
  border-top: 1px solid var(--border-soft);
  padding: 22px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--border-soft); }
.faq summary {
  list-style: none; cursor: default;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  font-size: 17px; font-weight: 500; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--ink-soft); font-size: 22px; font-weight: 300;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 14px; color: var(--ink-mute); font-size: 15.5px; max-width: 64ch; }

/* ========== Related services ========== */
.related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.related a {
  display: block;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s ease, transform .2s ease;
}
.related a:hover { border-color: var(--border); transform: translateY(-2px); }
.related .kicker { font: 12px/1 var(--mono); color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.related h4 { font-size: 22px; letter-spacing: -0.015em; }
.related p { color: var(--ink-mute); font-size: 14px; margin-top: 8px; }
.related .more { margin-top: 18px; font-size: 13.5px; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 720px) { .related { grid-template-columns: 1fr; } }

/* ========== CTA strip ========== */
.cta-strip {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-strip h3 { font-size: 24px; letter-spacing: -0.018em; max-width: 22ch; }
.cta-strip p { color: var(--ink-mute); font-size: 14.5px; margin-top: 6px; max-width: 32ch; }
@media (max-width: 720px) { .cta-strip { padding: 28px; } }

/* compact services preview on home */
.svc-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-preview a {
  display: flex; flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s ease, transform .2s ease;
}
.svc-preview a:hover { border-color: var(--border); transform: translateY(-2px); }
.svc-preview .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 22px; }
.svc-preview .ico svg { width: 22px; height: 22px; stroke-width: 1.6; }
.svc-preview h3 { font-size: 21px; letter-spacing: -0.015em; }
.svc-preview p { color: var(--ink-mute); font-size: 14.5px; margin-top: 10px; flex: 1; }
.svc-preview .price-from { margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--border); display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.svc-preview .price-from .lbl { color: var(--ink-soft); }
.svc-preview .price-from .num { font-weight: 500; font-variant-numeric: tabular-nums; }
.svc-preview .more { margin-top: 16px; font-size: 13.5px; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 920px) { .svc-preview { grid-template-columns: 1fr; } }

/* small util */
.hidden-sm { }
@media (max-width: 720px) {
  .hidden-sm { display: none; }
  .section { padding: 64px 0; }
  .hero { padding: 36px 0 56px; }
  .section-head { flex-direction: column; align-items: start; gap: 12px; margin-bottom: 30px; }
}

@media (max-width: 540px) {
  .nav-inner { justify-content: center; }
}

/* ========== Callback popup modal ========== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 2000;
  background: color-mix(in oklab, var(--ink) 60%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .18s ease;
}
.modal-backdrop.open { display: flex; opacity: 1; }
.modal {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 36px 32px;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(0.98);
  transition: transform .22s cubic-bezier(.2,.7,.3,1);
  position: relative;
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px;
  border: 0; background: transparent;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-mute);
  font-size: 24px; line-height: 1;
  display: grid; place-items: center;
}
.modal-close:hover { background: var(--bg-elev); color: var(--ink); }
.modal h3 { font-size: 24px; letter-spacing: -0.022em; margin-bottom: 6px; }
.modal .sub { color: var(--ink-mute); font-size: 14.5px; margin-bottom: 22px; max-width: 32em; }
.modal .form { gap: 12px; }
.modal .form .submit { width: 100%; justify-content: center; }
@media (max-width: 540px) {
  .modal { padding: 28px 22px 22px; }
  .modal h3 { font-size: 20px; }
}

@media (max-width: 920px) {
  #scroll-top {
    display: flex; align-items: center; justify-content: center;
    position: fixed; bottom: 24px; right: 20px;
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--accent); color: var(--accent-ink);
    font-size: 22px; border: none; cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    opacity: 0; transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none; z-index: 999;
  }
  #scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
}
@media (min-width: 921px) { #scroll-top { display: none; } }
