:root {
  --ink: #111111;
  --paper: #f5f5f2;
  --line: rgba(17, 17, 17, .12);
  --muted: rgba(17, 17, 17, .62);
  --c1: #6b2d2a;
  --c2: #1f4d45;
  --c3: #2f3f6b;
  --c4: #5a4a28;
  --c5: #8a3d1e;
  --c6: #24343a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.12;
}
h1 { font-size: clamp(36px, 5.5vw, 64px); max-width: 14ch; text-wrap: balance; }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
p { color: var(--muted); line-height: 1.65; }
a { color: inherit; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 245, 242, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 38;
  background: rgba(17, 17, 17, .4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .25s ease;
}
.site-header.menu-open .menu-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.header-row {
  position: relative;
  z-index: 41;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.nav a:hover { color: var(--ink); }
.nav-phone { display: none; }
.header-cta {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}
.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, .35) 0%, rgba(17, 17, 17, .72) 70%, rgba(17, 17, 17, .88) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 72px 0 80px;
}
.brand-hero {
  margin: 0 0 20px;
  font-size: clamp(28px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero-lead {
  max-width: 42ch;
  color: rgba(255, 255, 255, .78);
  font-size: 18px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.solid { background: #fff; color: var(--ink); }
.btn.line {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .55);
}

.intro-bar {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.intro-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 42px 0;
}
.intro-row p {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
}
.intro-row ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.intro-row li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.intro-row b { color: var(--ink); font-weight: 600; }

.positions { padding: 88px 0; }
.section-top {
  margin-bottom: 28px;
}
.section-top span,
.method-side > span,
.faq-layout > .reveal > span,
.contacts span {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.gallery {
  padding: 84px 0 32px;
  background:
    linear-gradient(180deg, #fff 0%, var(--paper) 72%),
    radial-gradient(circle at 100% 0%, rgba(107, 45, 42, .06), transparent 42%);
  border-bottom: 1px solid var(--line);
}
.gallery-wrap { position: relative; }
.gallery-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 20px 48px;
  align-items: end;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.gallery-eyebrow {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.gallery-head h2 {
  margin: 0;
  max-width: 14ch;
}
.gallery-lead {
  margin: 0;
  max-width: 32ch;
  align-self: end;
  font-size: 16px;
  line-height: 1.6;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-height: clamp(420px, 52vw, 560px);
}
.gallery-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.card-main {
  grid-row: 1 / -1;
}
.card-bar { grid-row: 1; }
.card-kitchen { grid-row: 2; }

.gallery-card__frame {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #d4d4d0;
  box-shadow: 0 18px 44px rgba(17, 17, 17, .07);
  transition:
    transform .5s cubic-bezier(.22, 1, .36, 1),
    box-shadow .5s ease;
}
.card-main .gallery-card__frame {
  transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0);
  transition:
    transform .35s ease-out,
    box-shadow .5s ease;
}
.card-main .gallery-card__frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, .35);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s ease;
}
.card-main:hover .gallery-card__frame::before { opacity: 1; }

.gallery-card__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .65s cubic-bezier(.22, 1, .36, 1);
}
.card-main .gallery-card__frame img {
  animation: gallery-drift 22s ease-in-out infinite;
}
.gallery-card:hover .gallery-card__frame {
  box-shadow: 0 26px 56px rgba(17, 17, 17, .11);
}
.card-main:hover .gallery-card__frame {
  transform: translate3d(var(--parallax-x, 0), calc(var(--parallax-y, 0px) - 6px), 0);
}
.card-bar:hover .gallery-card__frame,
.card-kitchen:hover .gallery-card__frame {
  transform: translateY(-6px);
}
.gallery-card:hover .gallery-card__frame img { transform: scale(1.08); }
.card-main:hover .gallery-card__frame img { animation-play-state: paused; }

.gallery-card figcaption {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 14px 2px 0;
  padding-top: 2px;
}
.gallery-card__num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--muted);
  transition: color .35s ease;
}
.gallery-card__label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  transform: translateX(0);
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), letter-spacing .4s ease;
}
.gallery-card:hover .gallery-card__num { color: var(--c1); }
.gallery-card:hover .gallery-card__label {
  transform: translateX(8px);
  letter-spacing: .02em;
}

.reveal-d1 { transition-delay: .06s; }
.reveal-d2 { transition-delay: .18s; }
.reveal-d3 { transition-delay: .3s; }

@keyframes gallery-drift {
  0%, 100% { transform: scale(1.04) translate(0, 0); }
  50% { transform: scale(1.1) translate(-1.2%, -.8%); }
}

.position-stack {
  display: grid;
  gap: 10px;
}
.pos {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
  padding: 26px 28px;
  color: #fff;
  min-height: 120px;
}
.pos em {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  opacity: .75;
  padding-top: 6px;
}
.pos p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  max-width: 56ch;
}
.pos.c1 { background: var(--c1); }
.pos.c2 { background: var(--c2); }
.pos.c3 { background: var(--c3); }
.pos.c4 { background: var(--c4); }
.pos.c5 { background: var(--c5); }
.pos.c6 { background: var(--c6); }

.method {
  padding: 88px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}
.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: 48px;
  align-items: center;
}
.rail {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-left: 1px solid var(--line);
}
.rail li {
  position: relative;
  padding: 0 0 24px 24px;
}
.rail li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
}
.rail strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}
.rail span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.method-photo {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #ddd;
}
.method-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.geo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}
.geo-msk,
.geo-spb {
  padding: clamp(40px, 6vw, 72px);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.geo-msk { background: #1e3a4c; }
.geo-spb { background: #4a2f2a; }
.geo-msk span,
.geo-spb span {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .75;
}
.geo-msk h2,
.geo-spb h2 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(24px, 3vw, 34px);
  color: #fff;
}

.faq {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: 40px;
}
.faq-list { display: grid; gap: 0; }
details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
details:last-child { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
details p {
  margin: 12px 0 0;
  max-width: 60ch;
}

.contacts {
  padding: 80px 0;
  background: var(--ink);
  color: #fff;
}
.contacts p,
.contacts span { color: rgba(255, 255, 255, .62); }
.contacts h2 {
  color: #fff;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: clamp(28px, 4vw, 40px);
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.contact-layout > * { min-width: 0; }
.contacts address {
  font-style: normal;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .18);
}
.contacts address a {
  display: block;
  margin: 10px 0 0;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}
.contacts address a[href^="tel"] { color: #d8c4a8; }
.contacts small {
  display: block;
  margin-top: 22px;
  color: rgba(255, 255, 255, .45);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .7s cubic-bezier(.22, 1, .36, 1),
    transform .7s cubic-bezier(.22, 1, .36, 1);
}
.reveal.show {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card-main .gallery-card__frame img {
    animation: none;
    transform: none;
  }
  .card-main .gallery-card__frame,
  .gallery-card:hover .gallery-card__frame,
  .gallery-card:hover .gallery-card__frame img,
  .gallery-card:hover .gallery-card__label {
    transform: none;
  }
}

@media (max-width: 980px) {
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 78px;
    left: 20px;
    right: 20px;
    z-index: 42;
    display: grid;
    gap: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: .25s ease;
  }
  .site-header.menu-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav a {
    padding: 14px 12px;
  }
  .nav-phone { display: block; color: var(--ink); font-weight: 600; }
  .gallery-head {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 22px;
  }
  .gallery-lead { max-width: none; }
  .gallery-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
    gap: 20px;
  }
  .card-main,
  .card-bar,
  .card-kitchen { grid-row: auto; }
  .gallery-card__frame { min-height: 240px; }
  .card-main .gallery-card__frame { min-height: 280px; }
  .intro-row,
  .method-layout,
  .faq-layout,
  .contact-layout,
  .geo-split {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; align-items: stretch; }
  .hero-content { padding: 56px 0 64px; }
  .hero-bg { min-height: 420px; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 28px, 1120px); }
  .brand-hero { letter-spacing: .1em; }
  h1 { max-width: none; font-size: clamp(30px, 9vw, 40px); }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .pos {
    grid-template-columns: 40px 1fr;
    padding: 22px 18px;
  }
  .intro-row p { font-size: 17px; }
}
