:root {
  --ink: #121212;
  --brand: #950000;
  --bone: #f1ede4;
  --graphite: #3f3f3f;
  --white: #ffffff;
  --black: #000000;
  

  --line: rgba(18, 18, 18, 0.18);
  --line-soft: rgba(18, 18, 18, 0.1);
  --text-dim: rgba(18, 18, 18, 0.62);
  --text-faint: rgba(18, 18, 18, 0.45);

  --line-on-dark: rgba(241, 237, 228, 0.18);
  --line-soft-on-dark: rgba(241, 237, 228, 0.1);
  --text-dim-on-dark: rgba(241, 237, 228, 0.62);
  --text-faint-on-dark: rgba(241, 237, 228, 0.45);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", monospace;

  --pad-x: clamp(1.25rem, 5vw, 4rem);
  --header-h: 84px;
  --radius: 5px;
}

@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 Tight";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/inter-tight-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/inter-tight-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;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--brand);
  color: var(--bone);
}

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

section {
  scroll-margin-top: var(--header-h);
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-inline: var(--pad-x);
  transition: background-color 0.35s ease;
  background: rgba(241, 237, 228, 0.9);
}

.site-header.scrolled {
  backdrop-filter: blur(10px);
}

.header-inner {
  width: 100%;
  max-width: 90rem;
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  gap: clamp(1.25rem, 3vw, 3rem);
}

.nav-link {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
  border-bottom-color: var(--brand);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.burger.open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2.5rem;
  padding: calc(var(--header-h) + 3rem) var(--pad-x) clamp(2.5rem, 6vh, 4.5rem);
  color: var(--ink);
  background: var(--bone);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--bone);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.8s ease, transform 7.5s ease-out;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}


.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  padding: 0.55em 1.1em;
  border-radius: var(--radius);
  background: rgba(241, 237, 228, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-inner {
  width: 100%;
  max-width: 90rem;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.btn-outline {
  display: inline-block;
  padding: 1.05em 2.6em;
  border: 1px solid rgba(18, 18, 18, 0.35);
  border-radius: var(--radius);
  background: transparent;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn-outline:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.hero .btn-outline {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero .btn-outline:hover {
  background: var(--brand);
  border-color: var(--brand);
}

/* ---------- sections common ---------- */

.section {
  padding: clamp(5rem, 10vh, 8rem) var(--pad-x);
  max-width: 90rem;
  margin-inline: auto;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.section-chair {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  transform: translateY(-0.2rem);
}

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  white-space: nowrap;
}

.section-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: 2.6rem;
  color: var(--brand);
  max-width: 50rem;
}

.section-sub {
  max-width: 50rem;
  margin-top: 1.2rem;
  color: var(--text-dim);
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 6rem);
  margin-top: clamp(2.5rem, 5vh, 4rem);
}

.about-title {
  margin-top: 0;
  text-transform: none;
}

.about-lead {
  max-width: 46ch;
  margin-top: 0.55em;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(3rem, 7vh, 5.5rem);
}

.about-stat {
  padding-left: clamp(1.25rem, 2.2vw, 2.25rem);
  border-left: 1px solid var(--line);
}

.about-stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.about-stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--brand);
}

.about-stat-desc {
  margin-top: 1.1rem;
  max-width: 34ch;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---------- projects ---------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vh, 4rem);
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}

.project-cover {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--graphite);
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
}

.project-card:hover .project-cover img,
.project-card:focus-visible .project-cover img {
  transform: scale(1.06);
}

.project-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 18, 18, 0.45), transparent 55%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project-card:hover .project-cover::after {
  opacity: 1;
}

.project-info {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1.1rem;
}

.project-name {
  flex: 1;
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.4;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.project-card:hover .project-tag {
  color: var(--ink);
}

.projects-grid.is-collapsed .project-card:nth-child(n + 4) {
  display: none;
}

.projects-more {
  margin-top: clamp(2rem, 4vh, 3rem);
}

.projects-more.is-hidden {
  display: none;
}

/* ---------- services ---------- */

.section-services .svc-extra-title {
  margin-top: clamp(4rem, 8vh, 6.5rem);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  margin-top: clamp(2.5rem, 5vh, 4rem);
  align-items: stretch;
}

.svc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line-soft);
}

.svc-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.svc-price {
  font-family: var(--font-mono);
  /*font-size: 0.95rem;*/
  color: var(--brand);
  white-space: nowrap;
}

.svc-fit-label,
.stage-result-label {
  display: block;
  font-family: var(--font-display);
  color: var(--brand);
  margin-bottom: 0.45rem;
}

/* ---------- extras accordion ---------- */

.acc {
  margin-top: clamp(2.5rem, 5vh, 4rem);
  border-top: 1px solid var(--line);
}

.acc-item {
  border-bottom: 1px solid var(--line);
}

.acc-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 2.5rem;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  width: 100%;
  text-align: left;
  padding: 1.6rem 0;
}

.acc-toggle:hover .acc-name {
  color: var(--brand);
}

.acc-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.acc-price {
  font-family: var(--font-mono);
  /*font-size: 0.85rem;*/
  color: var(--brand);
  text-align: right;
}

.acc-sign {
  position: relative;
  width: 1.4rem;
  height: 1.4rem;
  justify-self: end;
  border: 1px solid var(--line);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.acc-sign::before,
.acc-sign::after {
  content: "";
  position: absolute;
  inset: 50% 0.3rem auto 0.3rem;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.acc-sign::after {
  transform: rotate(90deg);
}

.acc-toggle:hover .acc-sign {
  border-color: var(--brand);
}

.acc-toggle[aria-expanded="true"] .acc-sign {
  background: var(--brand);
  border-color: var(--brand);
}

.acc-toggle[aria-expanded="true"] .acc-sign::before,
.acc-toggle[aria-expanded="true"] .acc-sign::after {
  background: var(--bone);
}

.acc-toggle[aria-expanded="true"] .acc-sign::after {
  transform: rotate(0deg);
}

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.45s;
}

.acc-panel > .acc-body {
  overflow: hidden;
  min-height: 0;
}

.acc-panel > .acc-body > :last-child {
  /* margin-bottom: 1.9rem; */
}

.acc-toggle[aria-expanded="true"] + .acc-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.acc-body {
  /* max-width: 62ch; */
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.4vw, 2.25rem) clamp(1.5rem, 2.4vw, 2.25rem) 0;
  background: var(--white);
  border: 1px solid var(--line-soft);
  transition: border-color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.acc-body > :first-child {
  margin-top: 0;
}

/* ---------- process ---------- */

.work-group {
  margin-top: clamp(3rem, 6vh, 4.5rem);
}

.work-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.work-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1;
  color: var(--brand);
}

.work-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  letter-spacing: -0.01em;
}

.work-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

.stage-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  margin-top: clamp(1.75rem, 3.5vh, 2.75rem);
}

.stage-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.4vw, 2.25rem) clamp(1.5rem, 2.4vw, 2.25rem) 0;
  background: var(--white);
  border: 1px solid var(--line-soft);
  transition: border-color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.stage-card::before,
.stage-card::after {
  content: "";
  position: absolute;
  width: 0.9rem;
  height: 0.9rem;
  pointer-events: none;
  transition: width 0.35s ease, height 0.35s ease;
}

.stage-card::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--brand);
  border-left: 2px solid var(--brand);
}

.stage-card::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--brand);
  border-right: 2px solid var(--brand);
}

.stage-card:hover {
  /* border-color: var(--brand); */
  transform: translateY(-4px);
}

.stage-card:hover::before,
.stage-card:hover::after {
  width: 1.5rem;
  height: 1.5rem;
}

.stage-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: rgba(18, 18, 18, 0.14);
  transition: color 0.35s ease;
}

.stage-card:hover .stage-num {
  color: var(--brand);
}

.stage-name {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  letter-spacing: -0.01em;
}

.stage-desc {
  margin-top: 0.8rem;
  margin-bottom: 1.5rem;
  font-size: 0.93rem;
  color: var(--text-dim);
}

ul.stage-desc {
  list-style: none;
  margin-top: 0;
}

ul.stage-desc li {
  position: relative;
  padding-left: 1.45em;
  margin-top: 0.6rem;
}

ul.stage-desc li:first-child {
  margin-top: 0;
}

ul.stage-desc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1em;
  height: 1em;
  background: url("background/chair.svg") left center / contain no-repeat;
}

.stage-result {
  margin-top: auto;
  margin-inline: calc(-1 * clamp(1.5rem, 2.4vw, 2.25rem));
  padding: 1rem clamp(1.5rem, 2.4vw, 2.25rem) 1.4rem;
  border-top: 1px dashed var(--line);
  background: rgba(18, 18, 18, 0.03);
  font-size: 0.9rem;
  color: var(--graphite);
}

/* ---------- contacts ---------- */

.section-contacts {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--bone);
  padding: clamp(5rem, 10vh, 8rem) var(--pad-x) clamp(4rem, 9vh, 7rem);
}

.contacts-inner {
  position: relative;
  max-width: 90rem;
  margin-inline: auto;
}

.section-contacts .section-label {
  color: var(--bone);
}

.section-contacts .section-rule {
  background: var(--line-on-dark);
}

.contacts-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-top: 2.6rem;
  max-width: 50rem;
}

.contacts-sub {
  max-width: 50rem;
  margin-top: 1.4rem;
  color: var(--text-dim-on-dark);
}

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 6rem);
  margin-top: clamp(2.5rem, 5vh, 4rem);
}

.contact-phone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 1.5rem;
}

.contact-phone .contact-kind {
  grid-column: 1 / -1;
}

.contact-kind {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint-on-dark);
  /*margin-bottom: 0.9rem;*/
}

.contact-phone .contact-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.8vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.contact-phone:hover .contact-value {
  color: var(--brand);
}

.contact-arrow {
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  color: var(--brand);
  transition: transform 0.3s ease;
}

.contact-phone:hover .contact-arrow {
  transform: translate(6px, -6px);
}

.contacts-side {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  align-self: end;
}

.contact-mail .contact-value {
  font-family: var(--font-display);
  font-weight: 600;
  /*font-size: clamp(1.3rem, 2.4vw, 2rem);*/
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.contact-mail:hover .contact-value {
  color: var(--brand);
}

.contact-address .contact-value {
  font-size: 1rem;
  color: var(--text-dim-on-dark);
}

.messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: clamp(2.5rem, 5vh, 4rem);
}

.messenger {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--line-on-dark);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--text-dim-on-dark);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  border-radius: var(--radius);
}

.messenger img {
  width: 19px;
  height: 19px;
}

.messenger:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--bone);
}

/* ---------- legal pages ---------- */

.section-legal {
  padding-top: calc(var(--header-h) + clamp(3rem, 7vh, 5rem));
}

.legal-body {
  max-width: 62ch;
  margin-top: clamp(2rem, 4vh, 3rem);
  color: var(--text-dim);
}

.legal-body p {
  margin-top: 1.1rem;
}

.legal-body h2 {
  margin-top: 2.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
}

.legal-body a {
  color: var(--brand);
  border-bottom: 1px solid currentColor;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 2.4rem var(--pad-x);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  background-color: var(--bone);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: 90rem;
  margin-inline: auto;
}

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

.footer-links a {
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-note {
  max-width: 49rem;
  justify-self: end;
  text-align: left;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(8px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(241, 237, 228, 0.12);
}

.lightbox-title {
  font-size: 0.95rem;
  color: var(--text-dim-on-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint-on-dark);
  white-space: nowrap;
}

.lightbox-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(241, 237, 228, 0.25);
  color: var(--bone);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.lightbox-close svg {
  width: 18px;
  height: 18px;
}

.lightbox-close:hover {
  background: var(--brand);
  border-color: var(--brand);
}

.lightbox-stage {
  position: relative;
  flex: 1;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  min-height: 0;
  padding: 1.5rem clamp(3.5rem, 8vw, 6rem);
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.lightbox-img.loading {
  opacity: 0.25;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(241, 237, 228, 0.25);
  color: var(--bone);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.lightbox-arrow svg {
  width: 20px;
  height: 20px;
}

.lightbox-arrow:hover {
  background: var(--brand);
  border-color: var(--brand);
}

.lightbox-prev {
  left: clamp(0.75rem, 3vw, 2.5rem);
}

.lightbox-next {
  right: clamp(0.75rem, 3vw, 2.5rem);
}

.lightbox-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem 1.2rem;
  overflow-x: auto;
  border-top: 1px solid rgba(241, 237, 228, 0.12);
  scrollbar-width: thin;
}

.lightbox-thumb {
  flex: 0 0 auto;
  width: 88px;
  height: 60px;
  overflow: hidden;
  opacity: 0.4;
  border: 1px solid transparent;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-thumb:hover {
  opacity: 0.8;
}

.lightbox-thumb.active {
  opacity: 1;
  border-color: var(--brand);
}

body.no-scroll {
  overflow: hidden;
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero .reveal:nth-child(1) {
  transition-delay: 0.1s;
}

.hero .reveal:nth-child(2) {
  transition-delay: 0.25s;
}

.hero .reveal:nth-child(3) {
  transition-delay: 0.4s;
}

/* ---------- breadcrumbs ---------- */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.breadcrumbs a:hover {
  color: var(--brand);
}

.breadcrumbs [aria-current="page"] {
  color: var(--text-dim);
}

.section-legal .section-label {
  white-space: normal;
}

.contact-address {
  display: block;
}

.contact-address:hover .contact-value {
  color: var(--brand);
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .svc-grid {
    grid-template-columns: 1fr;
  }
}

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

  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: var(--header-h) var(--pad-x) 3rem;
    background: var(--bone);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
  }

  .nav.open .nav-link {
    color: var(--ink);
  }

  .nav-link {
    width: fit-content;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
  }

  .site-header.menu-open {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (max-width: 720px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    margin-top: 2.6rem;
  }

  .about-stat {
    padding-left: 0;
    border-left: 0;
  }

  .stage-grid {
    grid-template-columns: 1fr;
  }

  .acc-toggle {
    grid-template-columns: minmax(0, 1fr) 2rem;
    row-gap: 0.4rem;
  }

  .acc-price {
    grid-column: 1;
    text-align: left;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 2.6rem;
  }

  .contacts-side {
    align-self: start;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .section-head {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }

  .section-title {
    font-size: clamp(1.55rem, 6.8vw, 2rem);
  }

  .work-head {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 0.5rem;
  }

  .work-meta {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .section-rule {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .footer-note {
    justify-self: start;
  }
}

/* ---------- reduced motion ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
