:root {
  /* В развитие логотипа: светлый фон, графит + золото/бордо */
  --bg: #f7f7f5;
  --bg-elevated: #ffffff;
  --ink: #1a1a1a;
  --ink-muted: #6b6b6b;
  --line: #e4e4e0;
  --accent: #8a6a2f;
  --accent-deep: #5c451c;
  --sand: #c4a45a;
  --burgundy: #6b1e2a;
  --header-h: 88px;
  --font: "Montserrat", system-ui, sans-serif;
  --display: "Montserrat", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); }
h3 { font-size: 1.05rem; font-family: var(--font); letter-spacing: -0.01em; }

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  max-width: 100%;
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.94rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: var(--accent-deep); }
.btn--light { background: #fff; color: var(--ink); }
.btn--ghost-light {
  border: 1px solid rgba(255,255,255,0.55);
  color: #fff;
  background: transparent;
}
.btn--ghost-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
body.modal-open .header {
  visibility: hidden;
  pointer-events: none;
}
body.modal-open main,
body.modal-open .footer {
  visibility: hidden;
  pointer-events: none;
}
.header.is-solid {
  background: rgba(247, 247, 245, 0.94);
  backdrop-filter: blur(14px);
  color: var(--ink);
  border-bottom-color: var(--line);
}
.header__inner {
  width: min(var(--max), calc(100% - 2.5rem));
  max-width: 100%;
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.15rem 0;
  line-height: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 0.3s var(--ease);
}
.logo:hover {
  transform: translateY(-1px);
}
.logo__img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55));
  transition: height 0.25s var(--ease), max-width 0.25s var(--ease), filter 0.25s var(--ease);
}
.header.is-solid .logo__img {
  height: 56px;
  max-width: 148px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
}
.footer .logo {
  background: transparent;
  box-shadow: none;
  padding: 0.15rem 0;
}
.footer .logo__img {
  height: 72px;
  max-width: 190px;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.2));
}
.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.95rem;
  margin-left: auto;
  font-size: 0.84rem;
  font-weight: 500;
  min-width: 0;
}
.nav a { opacity: 0.78; transition: opacity 0.2s ease; }
.nav a:hover { opacity: 1; }
.header__cta { flex-shrink: 0; }
.header:not(.is-solid) .btn--solid { background: #fff; color: var(--ink); }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
}
.nav-toggle span { width: 18px; height: 1.5px; background: currentColor; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.3s ease, transform 9s linear;
  pointer-events: none;
}
.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10,12,11,0.72) 0%, rgba(10,12,11,0.28) 55%, rgba(10,12,11,0.4) 100%),
    linear-gradient(180deg, rgba(10,12,11,0.25) 0%, transparent 42%, rgba(10,12,11,0.62) 100%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0 0 4.5rem;
  animation: rise 1s var(--ease) both;
}
.hero__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7em;
  max-width: 18ch;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.hero__title-main {
  display: block;
  max-width: 12ch;
}
.hero__title-sub {
  display: block;
  max-width: 22ch;
  padding-top: 0.35em;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.48em;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.9);
}
.hero__lead {
  max-width: 36ch;
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255,255,255,0.84);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.22);
  max-width: 760px;
}
.hero__trust li {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  white-space: nowrap;
}
.hero__caption {
  position: absolute;
  right: max(1.25rem, calc((100% - var(--max)) / 2));
  bottom: 1.5rem;
  z-index: 2;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  opacity: 0.7;
  text-align: right;
  max-width: 28ch;
}

/* Proof marquee */
.proof {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  border-block: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 1.05rem 0;
}
.proof__track {
  display: flex;
  gap: 2.75rem;
  width: max-content;
  max-width: none;
  animation: marquee 45s linear infinite;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  will-change: transform;
}
.proof__track span::after {
  content: "·";
  margin-left: 2.75rem;
  color: var(--sand);
  opacity: 0.8;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section { padding: 5.5rem 0; }
.section__head { max-width: 640px; margin-bottom: 2.5rem; }
.section__head--row {
  max-width: none;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: end;
}
.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.section__lead {
  margin-top: 0.9rem;
  color: var(--ink-muted);
  max-width: 42ch;
  font-size: 1.02rem;
}
.section__head--row .section__lead { margin-top: 0; }

/* Capabilities */
.capabilities {
  background: var(--bg-elevated);
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--line);
}
.feature {
  padding: 1.5rem 1.35rem;
  border: 0;
  background: var(--bg-elevated);
}
.feature__icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.feature__icon svg { width: 100%; height: 100%; }
.feature h3 {
  margin-bottom: 0;
  font-size: 1.02rem;
}
.feature p { display: none; }

/* Featured full-bleed inside projects */
.projects {
  overflow: hidden;
}
.projects .section__head--row {
  align-items: end;
  margin-bottom: 2rem;
}
.projects .section__head--row .section__lead {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  max-width: none;
  text-align: right;
}
.featured__stage {
  position: relative;
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  display: block;
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 9;
}
.featured__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.featured__stage:hover img { transform: scale(1.035); }
.featured__overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 3rem 2.25rem 2.25rem;
  color: #fff;
  text-align: left;
  background: linear-gradient(180deg, transparent 0%, rgba(8,10,9,0.82) 100%);
}
.featured__overlay .eyebrow {
  color: var(--sand);
  margin-bottom: 0.55rem;
}
.featured__overlay h3 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
}
.featured__overlay p {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  max-width: 46ch;
}
.featured__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.15rem;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(255,255,255,0.45);
  padding-bottom: 0.15rem;
  transition: border-color 0.25s var(--ease);
}
.featured__stage:hover .featured__link {
  border-color: #fff;
}

/* Projects editorial mosaic */
.projects__list {
  margin-top: 1.25rem;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: 0.85rem;
  align-items: stretch;
}
.project {
  grid-column: span 4;
  position: relative;
  min-height: 0;
}
.project--lead { grid-column: span 8; }
.project--side { grid-column: span 4; }
.project--duo { grid-column: span 6; }
.project--trio { grid-column: span 4; }

.project__media {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 5 / 4;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  background: #1a1c1a;
  display: block;
  text-align: left;
  color: #fff;
}
.project--lead .project__media {
  aspect-ratio: 16 / 10;
  min-height: 0;
}
.project--side .project__media {
  aspect-ratio: 4 / 5;
  min-height: 0;
}
.project--duo .project__media { aspect-ratio: 5 / 4; min-height: 0; }
.project--trio .project__media { aspect-ratio: 5 / 4; min-height: 0; }

.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.project__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 10, 9, 0.05) 35%,
    rgba(8, 10, 9, 0.72) 100%
  );
  transition: opacity 0.4s var(--ease);
}
.project__overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 1.35rem 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.project__index {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--sand);
  opacity: 0.9;
}
.project__title {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 18ch;
}
.project--lead .project__title,
.project--duo .project__title {
  max-width: 28ch;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}
.project__more {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  color: rgba(255, 255, 255, 0.88);
}
.project__desc {
  font-size: 0.86rem;
  line-height: 1.35;
  opacity: 0.85;
  max-width: 32ch;
}
.project__media:hover img,
.project__media:focus-visible img {
  transform: scale(1.05);
}
.project__media:hover .project__more,
.project__media:focus-visible .project__more {
  opacity: 1;
  transform: none;
}
.project__media:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Materials strip */
.materials { padding-bottom: 0; }
.materials .section__head { margin-bottom: 2rem; }
.materials__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  min-height: 0;
}
.materials__grid .material {
  aspect-ratio: 5 / 4;
  min-height: 0;
}

/* Spheres */
.spheres { background: var(--bg-elevated); }
.spheres__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.sphere {
  background: var(--bg-elevated);
  padding: 2rem 1.5rem;
}
.sphere__num {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--sand);
  margin-bottom: 1rem;
}
.sphere h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}
.sphere p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  max-width: 28ch;
}

/* Production — one compact gallery entry */
.production { background: var(--bg); }
.production__layout {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 2rem 2.5rem;
  align-items: center;
}
.production__copy .section__lead {
  max-width: none;
  margin-top: 0.9rem;
}
.production__facts {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.7rem;
}
.production__facts li {
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.equip-card {
  display: grid;
  width: 100%;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: zoom-in;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  overflow: hidden;
  color: inherit;
}
.equip-card--empty {
  min-height: 220px;
  place-items: center;
  display: grid;
  color: var(--ink-muted);
  cursor: default;
}
.equip-card__mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.4rem;
  min-height: 280px;
  background: #ecece8;
  padding: 0.4rem;
}
.equip-card__shot {
  display: block;
  overflow: hidden;
  background: #fff;
}
.equip-card__shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  transition: transform 0.7s var(--ease);
}
.equip-card__shot--1 {
  grid-row: 1 / -1;
}
.equip-card:hover .equip-card__shot img {
  transform: scale(1.04);
}
.equip-card__meta {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 1.25rem 1.3rem;
}
.equip-card__meta strong {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.equip-card__meta span {
  color: var(--ink-muted);
  font-size: 0.92rem;
}
.equip-card__cta {
  margin-top: 0.35rem !important;
  color: var(--accent-deep) !important;
  font-weight: 600 !important;
}

/* Reviews */
.reviews { background: var(--bg-elevated); }
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.review--placeholder {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  border: 1px dashed var(--line);
  background: var(--bg);
  color: var(--ink-muted);
  text-align: center;
  font-size: 0.92rem;
}
.review cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
}
.review span {
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.form__honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.material {
  position: relative;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 5 / 4;
  color: #fff;
  border: 0;
  padding: 0;
  cursor: default;
  text-align: left;
  width: 100%;
  display: block;
  background: #111;
}
.material img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.material::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,12,11,0.05), rgba(10,12,11,0.78));
}
.material__label {
  position: absolute;
  z-index: 1;
  left: 1.25rem;
  bottom: 1.4rem;
  right: 1.25rem;
}
.material__label strong {
  display: block;
  font-family: var(--display);
  font-size: 1.55rem;
  margin-bottom: 0.3rem;
}
.material__label span { font-size: 0.9rem; opacity: 0.88; }
.material:hover img { transform: scale(1.06); }

/* About — текст ведущий, фото компактные (не «башни») */
.about { background: var(--bg); }
.about__layout {
  display: grid;
  grid-template-columns: minmax(300px, 1.15fr) minmax(260px, 0.85fr);
  gap: 2.25rem 3rem;
  align-items: center;
}
.about__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about__copy h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
}
.about__copy .section__lead {
  max-width: 42ch;
  font-size: 1.08rem;
  line-height: 1.65;
}
.about__points {
  margin-top: 1.65rem;
  display: grid;
  gap: 0.75rem;
}
.about__points li {
  padding: 0.95rem 1rem 0.95rem 1.1rem;
  border-left: 2px solid var(--accent);
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.5;
  background: linear-gradient(90deg, rgba(26, 26, 26, 0.045), transparent 75%);
}
.about__cta {
  margin-top: 1.75rem;
  align-self: flex-start;
}
.about__visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  min-height: 0;
  align-self: center;
}
.about__shot {
  border: 0;
  padding: 0;
  cursor: zoom-in;
  overflow: hidden;
  background: var(--line);
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
}
.about__visual .about__shot:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}
.about__visual img,
.about__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.about__shot:hover img { transform: scale(1.04); }

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  overflow: hidden;
}
.step {
  position: relative;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.steps .step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 1.15rem;
  right: 0.15rem;
  color: var(--sand);
  font-size: 1rem;
  opacity: 0.7;
}
.step__num {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.step h3 { margin-bottom: 0; }
.step p { display: none; }

/* Contact */
.contact { position: relative; overflow: hidden; padding: 0; }
.contact__stage {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
}
.contact__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(14,15,16,0.88) 0%, rgba(18,19,20,0.55) 55%, rgba(18,19,20,0.4) 100%);
}
.contact__panel {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 5.5rem 0 5.75rem;
  color: #fff;
}
.contact__panel h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin: 0.35rem 0 1rem;
}
.contact .eyebrow { color: var(--sand); }
.contact .section__lead {
  color: rgba(255,255,255,0.78);
  max-width: 46ch;
  font-size: 1.05rem;
  line-height: 1.65;
}
.contact__mail {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  max-width: 100%;
}
.contact__mail:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(212, 175, 98, 0.55);
  transform: translateY(-2px);
}
.contact__mail-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 600;
}
.contact__mail-addr {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: break-all;
}
.contact__details { margin-top: 2.25rem; display: grid; gap: 1rem; }
.contact__details span {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.2rem;
}
.contact__details a {
  font-weight: 500;
  border-bottom: 1px solid transparent;
  width: fit-content;
}
.contact__details a:hover { border-bottom-color: currentColor; }
.contact__details .contact__plain {
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
  color: #fff;
  font-weight: 600;
  margin: 0;
}

.form {
  position: relative;
  background: rgba(255,255,255,0.97);
  color: var(--ink);
  padding: 1.6rem;
  display: none; /* форма временно скрыта — контакт через email */
  gap: 0.95rem;
}
.form__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.form__row { display: grid; gap: 0.35rem; }
.form__row--2 { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.form label { font-size: 0.86rem; font-weight: 600; }
.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.85rem 0.95rem;
  outline: none;
}
.form input:focus,
.form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(138, 106, 47, 0.15);
}
.form textarea { resize: vertical; min-height: 110px; }
.form input[type="file"] { padding: 0.55rem; background: var(--bg); }
.form__hint, .form__note { font-size: 0.8rem; color: var(--ink-muted); }
.form__submit { width: 100%; margin-top: 0.2rem; }
.form__status {
  margin: 0;
  padding: 0.75rem 0.9rem;
  background: rgba(138, 106, 47, 0.12);
  color: var(--accent-deep);
  font-size: 0.92rem;
}
.form__status[hidden] { display: none; }

.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 6.5rem;
  background: var(--bg-elevated);
}
.footer__grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem 2rem;
  align-items: center;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.footer__nav a:hover { color: var(--ink); }
.footer__copy {
  grid-column: 1 / -1;
  color: var(--ink-muted);
  font-size: 0.88rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.footer__legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.footer__legal a:hover { color: var(--ink); }

/* Legal pages */
.legal-page .header.is-solid {
  background: rgba(247, 244, 238, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.legal {
  padding: 7.5rem 0 4rem;
  min-height: 70vh;
}
.legal__inner {
  max-width: 44rem;
}
.legal h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 1rem;
  line-height: 1.2;
}
.legal h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.75rem 0 0.65rem;
}
.legal p,
.legal li {
  color: var(--ink-muted);
  line-height: 1.65;
  font-size: 0.98rem;
}
.legal ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}
.legal li + li { margin-top: 0.35rem; }
.legal a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--ink); }
.legal__meta {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.legal__back {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* Cookie / policy consent card */
.cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem max(1rem, env(safe-area-inset-right)) 1.25rem max(1rem, env(safe-area-inset-left));
  background: rgba(26, 26, 26, 0.28);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: cookie-fade 0.35s ease both;
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner__card {
  width: min(100%, 26.5rem);
  padding: 1.45rem 1.4rem 1.35rem;
  background:
    linear-gradient(180deg, #fffcf7 0%, #fff 42%);
  border: 1px solid rgba(138, 106, 47, 0.22);
  box-shadow:
    0 18px 48px rgba(26, 24, 18, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  animation: cookie-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.cookie-banner__card::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-bottom: 0.95rem;
  background: linear-gradient(90deg, var(--accent), var(--sand));
}
.cookie-banner__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.cookie-banner__title {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
}
.cookie-banner__text {
  margin: 0 0 1.2rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-muted);
}
.cookie-banner__text a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__text a:hover { color: var(--ink); }
.cookie-banner__btn {
  width: 100%;
  min-height: 46px;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
@keyframes cookie-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes cookie-rise {
  from { opacity: 0; transform: translateY(1.25rem) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (min-width: 720px) {
  .cookie-banner {
    padding: 2rem;
    background: rgba(26, 26, 26, 0.22);
  }
  .cookie-banner__card {
    width: 24rem;
  }
}
.mobile-cta {
  display: none;
  position: fixed;
  left: 50%;
  bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
  z-index: 55;
  min-height: 44px;
  padding: 0 1.25rem;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  background: rgba(26, 26, 26, 0.94);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.mobile-cta.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(0.6rem);
}

.zoomable { cursor: zoom-in; }

/* Fullscreen lightbox */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  background: #000;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: #000;
}
.lightbox__ui {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto auto;
  color: #fff;
}
.lightbox__close {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 64px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}
.lightbox__nav--prev { left: max(0.5rem, env(safe-area-inset-left)); }
.lightbox__nav--next { right: max(0.5rem, env(safe-area-inset-right)); }
.lightbox__nav[hidden] { display: none; }

.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: none;
  min-height: 0;
  padding: 3.5rem 3.5rem 0.5rem;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: calc(100dvh - 180px);
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.2s ease;
  cursor: zoom-in;
}
.lightbox__stage.is-zoomed img { cursor: grab; }

.lightbox__bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 0.6rem 1rem 0.2rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}
.lightbox__caption {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
  max-width: 75%;
}
.lightbox__counter {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.65;
  white-space: nowrap;
}
.lightbox__thumbs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.45rem 1rem 0.75rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}
.lightbox__thumbs[hidden] { display: none; }
.lightbox__thumbs button {
  flex: 0 0 auto;
  width: 72px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  background: #222;
  cursor: pointer;
  opacity: 0.7;
}
.lightbox__thumbs button.is-active,
.lightbox__thumbs button:hover {
  opacity: 1;
  border-color: #fff;
}
.lightbox__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lightbox__hint {
  display: none;
  margin: 0;
  padding: 0 1rem 0.85rem;
  font-size: 0.75rem;
  opacity: 0.55;
  text-align: center;
}
body.modal-open { overflow: hidden; }

@media (max-width: 720px) {
  .lightbox__stage {
    padding: 3.8rem 0.35rem 0.35rem;
  }
  .lightbox__stage img {
    max-height: calc(100dvh - 200px);
    max-width: 100%;
  }
  .lightbox__nav {
    width: 44px;
    height: 56px;
    top: auto;
    bottom: 7.5rem;
    transform: none;
  }
  .lightbox__close {
    width: 46px;
    height: 46px;
  }
  .lightbox__caption {
    max-width: 70%;
    font-size: 0.86rem;
  }
  .lightbox__hint { display: block; }
  .lightbox__thumbs button {
    width: 64px;
    height: 46px;
  }
}

/* legacy modal removed */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .project,
  .project--lead,
  .project--side,
  .project--duo,
  .project--trio { grid-column: span 6; }
  .project--lead .project__media,
  .project--side .project__media,
  .project--duo .project__media,
  .project--trio .project__media {
    aspect-ratio: 5 / 4;
    min-height: 0;
  }
  .projects .section__head--row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .projects .section__head--row .section__lead {
    text-align: left;
  }
  .features, .reviews__grid, .spheres__grid { grid-template-columns: repeat(2, 1fr); }
  .materials__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about__layout, .section__head--row, .production__layout { grid-template-columns: 1fr; }
  .contact__panel { padding: 4.5rem 0; }
  .about__visual {
    grid-template-columns: 1fr 1fr;
    max-width: 560px;
  }
  .about__visual .about__shot:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }
  .featured__stage { aspect-ratio: 16 / 10; }
  .nav, .header__cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open a {
    padding: 0.95rem 1.25rem;
    border-top: 1px solid var(--line);
    opacity: 1;
  }
  .header.is-menu-open { background: #fff; color: var(--ink); }
}

@media (max-width: 640px) {
  .container, .header__inner, .hero__content, .featured__stage {
    width: min(var(--max), calc(100% - 1.35rem));
  }
  .section { padding: 4rem 0; }
  .project,
  .project--lead,
  .project--side,
  .project--duo,
  .project--trio { grid-column: span 12; }
  .project__media,
  .project--lead .project__media,
  .project--side .project__media,
  .project--duo .project__media,
  .project--trio .project__media {
    aspect-ratio: 5 / 4;
    min-height: 0;
  }
  .project__more { opacity: 1; transform: none; }
  .featured__stage { aspect-ratio: 16 / 10; }
  .featured__overlay { padding: 1.6rem 1.2rem 1.3rem; }
  .materials__grid,
  .features,
  .reviews__grid,
  .spheres__grid { grid-template-columns: 1fr; }
  .footer__grid {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .footer__nav { justify-content: flex-start; }
  .mobile-cta { display: inline-flex; }
  .footer { padding-bottom: 4.5rem; }
  .logo__img { height: 48px; max-width: 124px; }
  .footer .logo__img { height: 56px; max-width: 148px; }
  .steps { grid-template-columns: 1fr; }
  .form__row--2 { grid-template-columns: 1fr; }
  .about__visual { max-width: none; }
  .about__cta { width: 100%; justify-content: center; }
  .hero__caption { display: none; }
  .contact__panel { padding: 4rem 0 5.75rem; }
  .featured__overlay { padding: 1.4rem 1.1rem; }
}
