:root {
  /* Палитра: штукатурка, тушь, московский красный кирпич */
  --bg: #f3f0ea;
  --surface: #fbf9f5;
  --ink: #1a1917;
  --ink-soft: #3a3833;
  --muted: #6a655d;
  --line: rgba(26, 25, 23, 0.16);
  --line-strong: rgba(26, 25, 23, 0.6);
  --accent: #a63d2a;
  --accent-dark: #8a3122;
  --on-dark: #f3f0ea;
  --on-dark-muted: rgba(243, 240, 234, 0.72);
  --line-dark: rgba(243, 240, 234, 0.22);

  --font-display: 'Sofia Sans Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Golos Text', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  --text-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
  --text-2xl: clamp(2.4rem, 1.4rem + 4.2vw, 5rem);
  --text-hero: clamp(3.4rem, 1.4rem + 8.6vw, 8.5rem);

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-24: 6rem;
  --section: clamp(4rem, 2.5rem + 7vw, 9rem);

  --gutter: clamp(1.25rem, 0.5rem + 3.2vw, 3.5rem);
  --wrap: 92rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skip {
  position: absolute;
  left: var(--s-4);
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--on-dark);
  padding: var(--s-3) var(--s-4);
  text-decoration: none;
}
.skip:focus {
  top: var(--s-4);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--on-dark);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.header.is-solid,
.header.is-open {
  background: var(--bg);
  color: var(--ink);
  border-bottom-color: var(--line);
}
.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  min-height: 4.25rem;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s-3);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.logo small {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  opacity: 0.75;
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--s-8);
}
.nav a {
  text-decoration: none;
  font-size: var(--text-sm);
  padding-block: var(--s-2);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.3s var(--ease);
}
.nav a:hover {
  background-size: 100% 1px;
}
.header__tel {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid currentColor;
  padding: 0.55rem 0.9rem;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.header__tel:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.burger {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  box-shadow:
    0 -7px 0 currentColor,
    0 7px 0 currentColor;
}

@media (max-width: 860px) {
  .burger {
    display: inline-flex;
  }
  .header__tel {
    display: none;
  }
  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: var(--s-2) var(--gutter) var(--s-6);
    display: none;
  }
  .header.is-open .nav {
    display: flex;
  }
  .nav a {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.75rem;
    text-transform: uppercase;
    padding-block: var(--s-3);
    border-bottom: 1px solid var(--line);
    background: none;
  }
  .nav .nav__tel {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 1rem;
    border-bottom: 0;
    color: var(--accent);
    padding-top: var(--s-6);
  }
}
@media (min-width: 861px) {
  .nav .nav__tel {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--on-dark);
  background: #14110e;
  isolation: isolate;
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.hero__slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__slides .hero__img {
  z-index: auto;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.4s ease, transform 7s linear;
}
.hero__slides .hero__img.is-on {
  opacity: 1;
  transform: scale(1);
}
.hero__cap {
  transition: opacity 0.6s ease;
}
.hero__cap.is-fading {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .hero__slides .hero__img {
    transition: opacity 0.01s;
    transform: none;
  }
  .hero__slides .hero__img.is-on {
    transform: none;
  }
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(16, 13, 10, 0.92) 0%, rgba(16, 13, 10, 0.5) 30%, rgba(16, 13, 10, 0) 60%),
    linear-gradient(to right, rgba(16, 13, 10, 0.86) 0%, rgba(16, 13, 10, 0.6) 38%, rgba(16, 13, 10, 0.12) 78%),
    linear-gradient(to bottom, rgba(16, 13, 10, 0.55) 0%, rgba(16, 13, 10, 0) 22%);
}
.hero__in {
  padding-top: 6.5rem;
}
.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-6);
  color: var(--on-dark-muted);
  margin-bottom: var(--s-6);
}
.hero__eyebrow span + span::before {
  content: '';
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-hero);
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  max-width: 11ch;
}
.hero h1 em {
  font-style: normal;
  color: #e9a08f;
}
.hero__lead {
  max-width: 44ch;
  margin-top: var(--s-8);
  font-size: var(--text-lg);
  line-height: 1.45;
  color: rgba(243, 240, 234, 0.9);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-8);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 3.25rem;
  padding: 0 1.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid currentColor;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.btn--fill {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--fill:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.btn--ghost:hover {
  background: var(--on-dark);
  color: var(--ink);
  border-color: var(--on-dark);
}
.btn svg {
  width: 1rem;
  height: 1rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(2rem, 5vh, 4rem);
  border-top: 1px solid var(--line-dark);
}
.facts > div {
  padding: var(--s-6) var(--s-6) var(--s-8) 0;
}
.facts > div + div {
  padding-left: var(--s-6);
  border-left: 1px solid var(--line-dark);
}
.facts dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 1.4rem + 2.6vw, 4rem);
  line-height: 1;
  white-space: nowrap;
}
.facts dt small {
  font-size: 0.45em;
  font-weight: 700;
  margin-left: 0.15em;
}
.facts dd {
  margin-top: var(--s-2);
  font-size: var(--text-sm);
  color: var(--on-dark-muted);
  max-width: 22ch;
}
.hero__cap {
  position: absolute;
  right: var(--gutter);
  top: 5.5rem;
  color: var(--on-dark-muted);
  text-align: right;
  font-size: 0.6875rem;
}
@media (max-width: 860px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .facts > div {
    padding: var(--s-4) var(--s-4) var(--s-4) 0;
  }
  .facts > div + div {
    padding-left: 0;
    border-left: 0;
  }
  .facts > div:nth-child(even) {
    padding-left: var(--s-4);
    border-left: 1px solid var(--line-dark);
  }
  .facts > div:nth-child(n + 3) {
    border-top: 1px solid var(--line-dark);
  }
  .hero__cap {
    display: none;
  }
}

/* ---------- Section heads ---------- */
.section {
  padding-block: var(--section);
}
.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.shead {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--s-8);
  row-gap: var(--s-6);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
}
.shead .mono {
  grid-column: 1 / -1;
  color: var(--accent);
}
.shead h2 {
  grid-column: span 7;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  line-height: 0.92;
  text-transform: uppercase;
}
.shead p {
  grid-column: 9 / -1;
  color: var(--ink-soft);
  max-width: 46ch;
}
@media (max-width: 860px) {
  .shead h2,
  .shead p {
    grid-column: 1 / -1;
  }
}

/* ---------- Cases ---------- */
.case {
  padding-block: clamp(2.5rem, 5vw, 5rem);
  border-top: 1px solid var(--line-strong);
}
.case__head {
  display: flex;
  align-items: baseline;
  gap: var(--s-6);
  margin-bottom: var(--s-8);
}
.case__num {
  color: var(--accent);
  flex: none;
}
.case__head h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.case__body {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-8);
  align-items: start;
}
.case__lead {
  grid-column: span 8;
}
.case__info {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
}
.case--flip .case__lead {
  order: 2;
}
.case--compact .case__lead {
  grid-column: span 5;
}
.case--compact .case__info {
  grid-column: span 6;
  align-self: end;
}
.case__text {
  font-size: var(--text-lg);
  line-height: 1.45;
  max-width: 38ch;
}
@media (max-width: 960px) {
  .case__lead,
  .case__info,
  .case--compact .case__lead,
  .case--compact .case__info {
    grid-column: 1 / -1;
  }
  .case--flip .case__lead {
    order: 0;
  }
  .case__head {
    flex-direction: column;
    gap: var(--s-2);
  }
}

/* photo button */
.ph {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: #d9d4ca;
  cursor: zoom-in;
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.ph:hover img {
  transform: scale(1.025);
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  padding: 0.35rem 0.6rem;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-align: left;
}
.case__lead .ph {
  aspect-ratio: 3 / 2;
}
.case--compact .case__lead .ph {
  aspect-ratio: 4 / 5;
}

.strip {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-3);
}
.strip .ph {
  flex: var(--r) 1 0%;
  aspect-ratio: var(--r);
  width: auto;
  min-width: 0;
}
@media (max-width: 960px) {
  .strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-2);
    margin-top: var(--s-2);
  }
  .strip .ph {
    flex: none;
    width: 100%;
    aspect-ratio: 4 / 3;
  }
  .strip .ph:only-child,
  .strip .ph:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    aspect-ratio: 3 / 2;
  }
}
.credit {
  margin-top: var(--s-3);
  font-size: var(--text-xs);
  color: var(--muted);
}

/* "Штамп чертежа" */
.stamp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ink);
  font-size: var(--text-sm);
  background: var(--surface);
}
.stamp > div {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  border-bottom: 1px solid var(--ink);
}
.stamp > div.h {
  grid-column: span 1;
  grid-template-columns: 1fr;
}
.stamp > div.h + div.h {
  border-left: 1px solid var(--ink);
}
.stamp dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.6rem 0.75rem;
  border-right: 1px solid var(--line);
}
.stamp > div.h dt {
  border-right: 0;
  padding-bottom: 0;
}
.stamp dd {
  padding: 0.5rem 0.75rem;
  line-height: 1.35;
}
.stamp > div.h dd {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.1;
  padding-top: 0.15rem;
}
.stamp > .stamp__foot {
  display: flex;
  justify-content: space-between;
  border-bottom: 0;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.stamp__foot b {
  font-weight: 400;
  color: var(--accent);
}

/* ---------- Index of 13 objects ---------- */
.index {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
}
.index caption {
  text-align: left;
}
.index th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 0 var(--s-4) var(--s-3) 0;
  border-bottom: 1px solid var(--ink);
}
.index td {
  padding: 0.85rem var(--s-4) 0.85rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}
.index td:first-child {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  width: 3.5rem;
}
.index td:nth-child(2) {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
  text-transform: uppercase;
}
.index td:nth-child(3),
.index td:nth-child(4) {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}
.index tbody tr {
  transition: background-color 0.2s;
}
.index tbody tr:hover {
  background: rgba(166, 61, 42, 0.06);
}
@media (max-width: 720px) {
  .index thead {
    display: none;
  }
  .index tr {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    padding-block: var(--s-3);
    border-bottom: 1px solid var(--line);
  }
  .index td {
    border: 0;
    padding: 0;
  }
  .index td:first-child {
    grid-row: span 3;
    width: auto;
    padding-top: 0.45rem;
  }
  .index td:nth-child(n + 2) {
    grid-column: 2;
  }
}

/* ---------- Quote ---------- */
.quote {
  background: var(--ink);
  color: var(--on-dark);
  padding-block: var(--section);
}
.quote__in {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-8);
}
.quote .mono {
  grid-column: span 3;
  color: #e9a08f;
}
.quote blockquote {
  grid-column: span 9;
}
.quote blockquote p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.75rem);
  line-height: 1.04;
  text-transform: uppercase;
  max-width: 24ch;
}
.quote footer {
  margin-top: var(--s-8);
  color: var(--on-dark-muted);
  font-size: var(--text-sm);
}
.quote footer a {
  color: var(--on-dark);
}
@media (max-width: 860px) {
  .quote .mono,
  .quote blockquote {
    grid-column: 1 / -1;
  }
}

/* ---------- Services ---------- */
.rows {
  border-top: 1px solid var(--ink);
}
.rows li {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--s-8);
  row-gap: var(--s-2);
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.rows .mono {
  grid-column: span 1;
  color: var(--accent);
}
.rows h3 {
  grid-column: span 5;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.rows p {
  grid-column: span 6;
  color: var(--ink-soft);
  max-width: 56ch;
}
@media (max-width: 860px) {
  .rows .mono,
  .rows h3,
  .rows p {
    grid-column: 1 / -1;
  }
}

/* ---------- Process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}
.steps li {
  padding: var(--s-6) var(--s-6) var(--s-12);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.steps .mono {
  color: var(--accent);
}
.steps h3 {
  margin-top: var(--s-12);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.05;
  text-transform: uppercase;
}
.steps p {
  margin-top: var(--s-3);
  color: var(--ink-soft);
  font-size: 1rem;
}
@media (max-width: 960px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .steps h3 {
    margin-top: var(--s-6);
  }
}
@media (max-width: 600px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .steps li {
    padding-bottom: var(--s-8);
  }
}

.stages {
  margin-top: clamp(3rem, 6vw, 6rem);
}
.stages__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3) var(--s-8);
  margin-bottom: var(--s-6);
}
.stages__head h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  line-height: 1;
  text-transform: uppercase;
}
.stages__head p {
  color: var(--ink-soft);
  max-width: 52ch;
}
/* лесенка, как календарный график */
.gantt {
  border-top: 1px solid var(--ink);
}
.gantt li {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--s-8);
  align-items: center;
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.gantt b {
  grid-column: span 3;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
  text-transform: uppercase;
}
.gantt b span {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--s-1);
}
.gantt p {
  grid-column: span 4;
  color: var(--ink-soft);
  font-size: 1rem;
}
.gantt i {
  grid-column: span 5;
  position: relative;
  height: 0.75rem;
  background: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px calc(100% / 6));
  border-right: 1px solid var(--line);
}
.gantt i::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 calc((var(--c) - 1) * 100% / 6);
  width: calc(100% / 6);
  background: var(--accent);
}
@media (max-width: 860px) {
  .gantt li {
    display: block;
  }
  .gantt p {
    margin-top: var(--s-2);
  }
  .gantt i {
    display: none;
  }
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-8);
}
.about__main {
  grid-column: span 7;
}
.about__main .mono {
  color: var(--accent);
  margin-bottom: var(--s-6);
}
.about__main h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  line-height: 0.92;
  text-transform: uppercase;
  margin-bottom: var(--s-8);
}
.about__main p:not(.mono) {
  font-size: var(--text-lg);
  line-height: 1.5;
  max-width: 50ch;
}
.about__main p:not(.mono) + p {
  margin-top: var(--s-6);
}
.about__side {
  grid-column: 9 / -1;
  align-self: end;
}
.about__side h3 {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--ink);
}
.about__side li {
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.about__side li span {
  display: block;
  font-size: var(--text-sm);
  color: var(--muted);
}
@media (max-width: 860px) {
  .about__main,
  .about__side {
    grid-column: 1 / -1;
  }
}

/* ---------- Contact ---------- */
.contact {
  background: var(--accent);
  color: #fff;
  padding-block: var(--section);
}
.contact .mono {
  color: rgba(255, 255, 255, 0.82);
}
.contact h2 {
  margin-top: var(--s-6);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  line-height: 0.92;
  text-transform: uppercase;
  max-width: 16ch;
}
.contact__tel {
  display: inline-block;
  margin-top: var(--s-12);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 1rem + 8vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(#fff, #fff) 0 100% / 100% 2px no-repeat;
  transition: background-size 0.4s var(--ease);
}
.contact__tel:hover {
  background-size: 100% 6px;
}
.contact__tel:focus-visible,
.contact a:focus-visible {
  outline-color: #fff;
}
.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-8);
  margin-top: var(--s-16);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}
.contact__grid h3 {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: var(--s-2);
}
.contact__grid p {
  max-width: 34ch;
}
@media (max-width: 1020px) {
  .contact__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: var(--s-6);
    margin-top: var(--s-12);
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  padding-block: var(--s-8);
  font-size: var(--text-sm);
}
.footer__in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3) var(--s-8);
}
.footer a {
  color: var(--on-dark);
}
.footer__note {
  flex: 1 0 100%;
  font-size: var(--text-xs);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-dark);
  margin-top: var(--s-3);
}

/* ---------- Lightbox ---------- */
.lb {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(16, 14, 12, 0.96);
  color: var(--on-dark);
}
.lb::backdrop {
  background: rgba(16, 14, 12, 0.96);
}
.lb[open] {
  display: grid;
  grid-template-rows: auto 1fr auto;
  animation: lb-in 0.3s var(--ease);
}
@keyframes lb-in {
  from {
    opacity: 0;
  }
}
.lb__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) var(--gutter);
  color: var(--on-dark-muted);
}
.lb__stage {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--gutter);
}
.lb__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lb__cap {
  padding: var(--s-4) var(--gutter) var(--s-6);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--on-dark-muted);
  min-height: 3.5rem;
}
.lb button {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--on-dark);
  border: 1px solid var(--line-dark);
  transition:
    background-color 0.2s,
    color 0.2s;
}
.lb button:hover {
  background: var(--on-dark);
  color: var(--ink);
}
.lb button:focus-visible {
  outline-color: #fff;
}
.lb button svg {
  width: 1.1rem;
  height: 1.1rem;
}
.lb__prev,
.lb__next {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  background: rgba(16, 14, 12, 0.6);
}
.lb__prev {
  left: var(--gutter);
}
.lb__next {
  right: var(--gutter);
}

/* ---------- Reveal (без сдвига вёрстки) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    @keyframes reveal {
      from {
        opacity: 0.001;
        clip-path: inset(12% 0 0 0);
      }
      to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
      }
    }
  }
}

/* ---------- Узкие экраны: одна колонка вместо 12-колоночной сетки ---------- */
@media (max-width: 960px) {
  .case__body {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-6);
  }
}
@media (max-width: 860px) {
  .shead,
  .quote__in,
  .rows li,
  .about {
    grid-template-columns: minmax(0, 1fr);
  }
  .about {
    gap: var(--s-12);
  }
}
@media (max-width: 860px) {
  .hero::after {
    background:
      linear-gradient(to top, rgba(16, 13, 10, 0.95) 0%, rgba(16, 13, 10, 0.72) 45%, rgba(16, 13, 10, 0.5) 100%);
  }
}
