:root {
  --iron: #17130f;
  --scale: #241c16;
  --plate: #2e241c;
  --ash: #ede4d2;
  --ash-dim: #c9bea8;
  --heat: #e85a12;
  --brass: #c9a15b;
  --oxide: #7a3d22;
  --line: rgba(237, 228, 210, 0.16);
  --max: 1180px;
  --rail: 52px;
  --header: 72px;
  --font-display: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-ui: "Sofia Sans Extra Condensed", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--iron);
  color: var(--ash);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  min-height: 100vh;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--heat);
  color: var(--iron);
  padding: 8px 12px;
  z-index: 80;
}

/* Measuring rail — workshop drawing */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  background: var(--scale);
  border-right: 1px solid var(--line);
  z-index: 40;
  pointer-events: none;
}

.rail__marks {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 23px,
    var(--brass) 23px 24px
  );
  opacity: 0.35;
}

.rail__stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.28em;
  font-size: 13px;
  color: var(--brass);
  white-space: nowrap;
}

.wrap {
  margin-left: var(--rail);
}

.shell {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

header.top {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--iron) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.top__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  height: 40px;
  width: auto;
  mix-blend-mode: screen;
}

.brand__mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.brand__mark span {
  color: var(--heat);
}

nav.menu {
  display: flex;
  gap: 22px;
  flex: 1;
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

nav.menu a[aria-current="page"] {
  color: var(--heat);
}

.top__phone {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.top__phone small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ash-dim);
  letter-spacing: 0.12em;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ash);
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(18rem, 34%) minmax(0, 1fr);
  align-items: center;
  gap: 20px 32px;
  width: 100%;
  margin: 0;
  padding: 20px 32px 32px;
  box-sizing: border-box;
  min-height: 0;
  border-bottom: 1px solid var(--line);
}

.hero__copy {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 6.2vw, 86px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 11ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--heat);
}

.lede {
  max-width: 38ch;
  color: var(--ash-dim);
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.btn--heat {
  background: var(--heat);
  color: #1a0c06;
}

.btn--ghost {
  background: transparent;
  color: var(--ash);
  border: 1px solid var(--line);
}

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.hero__shot {
  position: relative;
  min-height: 0;
  height: min(78vh, 720px);
  overflow: hidden;
}

.hero__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
}

.hero__slide.is-on {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero__slide:first-child img {
  object-position: 55% 30%;
}

.hero__plate {
  position: absolute;
  left: 18px;
  bottom: 18px;
  margin: 0;
  background: var(--iron);
  padding: 12px 16px;
  font-family: var(--font-ui);
  font-size: 16px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  box-sizing: border-box;
  padding-inline: 32px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.stats div {
  padding: 28px 20px;
  border-right: 1px solid var(--line);
}

.stats div:last-child {
  border-right: 0;
}

.stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: var(--brass);
}

.stats span {
  color: var(--ash-dim);
  font-size: 16px;
}

.section {
  padding: 72px 0;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 0.92;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.kicker {
  font-family: var(--font-ui);
  color: var(--brass);
  letter-spacing: 0.14em;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.grid-cat {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.card {
  position: relative;
  display: grid;
  grid-template-rows: 220px auto;
  background: var(--scale);
  border: 1px solid var(--line);
  color: inherit;
  min-width: 0;
}

.card--wide {
  grid-column: span 7;
}

.card--mid {
  grid-column: span 5;
}

.card--third {
  grid-column: span 4;
}

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

.card__body {
  padding: 16px 18px 18px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.card p {
  margin: 0;
  color: var(--ash-dim);
  font-size: 16px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps article {
  padding: 28px 22px;
  border-right: 1px solid var(--line);
}

.steps article:last-child {
  border-right: 0;
}

.steps strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 8px;
}

.steps b {
  color: var(--heat);
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: 0.12em;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.split img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.form {
  display: grid;
  gap: 12px;
  background: var(--scale);
  border: 1px solid var(--line);
  padding: 24px;
}

.form label {
  display: grid;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.form input,
.form textarea,
.form select {
  background: var(--iron);
  border: 1px solid var(--line);
  color: var(--ash);
  padding: 12px 12px;
  border-radius: 0;
}

.form .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0;
  font-size: 14px;
  color: var(--ash-dim);
  margin: 8px 0 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.form .fields > button[type="submit"] {
  margin-top: 18px;
}

.shop-map {
  height: 420px;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--scale);
}

.shop-map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.map-legend {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ash-dim);
}

.shop-map .leaflet-tile-pane {
  filter: grayscale(0.45) contrast(1.06);
}

.shop-map .leaflet-popup-content-wrapper,
.shop-map .leaflet-popup-tip {
  background: var(--plate);
  color: var(--ash);
  border-radius: 0;
  box-shadow: none;
}

.shop-map .leaflet-popup-content {
  margin: 12px 14px;
  font-size: 15px;
  line-height: 1.4;
}

.shop-pin {
  background: transparent;
}

.shop-pin span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--heat);
  color: #1a0c06;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 14px;
  border: 1px solid var(--ash);
}

.form .ok {
  display: none;
  padding: 12px;
  border: 1px solid var(--brass);
  color: var(--brass);
}

.form.is-sent .fields {
  display: none;
}

.form.is-sent .ok {
  display: block;
}

.form.is-sent .ask__fail,
.hp {
  display: none !important;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.ask__fail {
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--heat);
  color: var(--ash);
  font-size: 15px;
}

.ask {
  position: fixed;
  z-index: 60;
  right: 16px;
  bottom: 16px;
  width: min(360px, calc(100vw - 32px));
  padding: 20px 20px 18px;
  background: var(--plate);
  border: 1px solid var(--brass);
  color: var(--ash);
  box-shadow: -12px 16px 0 color-mix(in srgb, var(--iron) 70%, black);
  opacity: 0;
  translate: 28px 0;
  pointer-events: none;
  transition: opacity 280ms ease, translate 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ask.is-open {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
}

.ask__x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--ash);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.ask__kicker {
  margin: 0 0 4px;
  font-family: var(--font-ui);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: var(--brass);
}

.ask h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 0.95;
}

.ask__lede {
  margin: 0 0 14px;
  color: var(--ash-dim);
  font-size: 16px;
}

.ask .form {
  padding: 0;
  border: 0;
  background: transparent;
}

@media (max-width: 900px) {
  .ask {
    right: 0;
    left: 0;
    bottom: 52px;
    width: auto;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
    translate: 0 16px;
  }

  .ask.is-open {
    translate: 0 0;
  }
}

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: 240px;
  gap: 10px;
}

.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--scale);
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}

.gallery__item:first-child {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

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

.gallery__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  background: color-mix(in srgb, var(--iron) 78%, transparent);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.look {
  width: min(1120px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--iron);
  color: var(--ash);
  overflow: hidden;
}

.look::backdrop {
  background: color-mix(in srgb, var(--iron) 82%, black);
}

.look__frame {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 24px);
  min-height: 0;
}

.look__view {
  position: relative;
  flex: 0 1 auto;
  min-height: 160px;
}

.look__stage {
  position: relative;
  overflow: hidden;
  background: var(--scale);
  touch-action: none;
  min-height: 0;
}

.look__stage img {
  width: 100%;
  height: min(46dvh, 520px);
  max-height: 46dvh;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  display: block;
}

.look__nav,
.look__x,
.look__zoom {
  position: absolute;
  z-index: 3;
  border: 1px solid var(--line);
  background: var(--iron);
  color: var(--ash);
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  pointer-events: auto;
}

.look__x {
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
}

.look__nav {
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
}

.look__nav.is-prev {
  left: 12px;
}

.look__nav.is-next {
  right: 12px;
}

.look__zoom {
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 0;
  padding: 0;
}

.look__zoom button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.look__meta {
  display: grid;
  gap: 8px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  background: var(--iron);
  position: relative;
  z-index: 2;
  max-height: 46dvh;
  overflow-y: auto;
}

.look__meta h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 32px);
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
  text-wrap: pretty;
}

.look__meta p {
  margin: 0;
  color: var(--ash-dim);
  max-width: none;
}

.look__order {
  justify-self: start;
  margin-top: 10px;
}

.look__count {
  font-family: var(--font-ui);
  color: var(--brass);
  letter-spacing: 0.1em;
  font-size: 14px;
  font-weight: 700;
}

.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.place {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.place h3 {
  font-family: var(--font-display);
  font-size: 32px;
  margin: 0 0 8px;
}

footer.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 100px;
  color: var(--ash-dim);
  font-size: 15px;
}

.foot__row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.foot__credit {
  margin: 12px 0 0;
  font-size: 14px;
}

.foot__credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dock {
  display: none;
}

.consent {
  position: fixed;
  z-index: 70;
  left: var(--rail);
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 24px;
  align-items: center;
  padding: 16px 28px 18px;
  background: var(--plate);
  border-top: 3px solid var(--heat);
  color: var(--ash);
  translate: 0 110%;
  transition: translate 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.consent.is-on {
  translate: 0 0;
}

.consent p {
  margin: 0;
  font-size: 16px;
  max-width: 62ch;
}

.consent a {
  color: var(--brass);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-hero {
  padding: 48px 0 12px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.9;
  margin: 0;
  font-weight: 800;
}

table.props {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

table.props th,
table.props td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.props th {
  width: 34%;
  color: var(--ash-dim);
  font-weight: 400;
}

.nav-open .menu {
  display: flex;
}

@media (max-width: 900px) {
  :root {
    --rail: 0px;
  }

  .rail {
    display: none;
  }

  .hero,
  .split,
  .contacts,
  .stats,
  .steps {
    grid-template-columns: 1fr;
  }

  .stats div,
  .steps article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .card--wide,
  .card--mid,
  .card--third {
    grid-column: span 12;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }

  .gallery__item:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  nav.menu {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: var(--scale);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
  }

  body.nav-open nav.menu {
    display: flex;
  }

  .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .top__phone {
    display: none;
  }

  .dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: var(--scale);
    border-top: 1px solid var(--line);
  }

  .dock a {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ui);
    font-weight: 800;
    letter-spacing: 0.08em;
  }

  .dock a:last-child {
    background: var(--heat);
    color: #1a0c06;
  }

  .consent {
    left: 0;
    bottom: 52px;
    grid-template-columns: 1fr;
    padding: 14px 16px 16px;
  }

  .consent .btn {
    justify-self: start;
  }

  .hero__shot {
    order: -1;
    height: min(42vh, 340px);
    min-height: 0;
  }

  .hero {
    gap: 16px;
    padding: 16px 20px 24px;
    grid-template-columns: 1fr;
  }

  .hero__copy {
    padding: 8px 0 0;
  }

  .hero h1 {
    font-size: clamp(48px, 16vw, 72px);
  }

  .look {
    width: calc(100% - 12px);
    max-height: calc(100dvh - 12px);
  }

  .look__frame {
    max-height: calc(100dvh - 12px);
  }

  .look__stage img {
    height: min(38dvh, 320px);
    max-height: 38dvh;
  }

  .look__meta {
    max-height: 48dvh;
    padding: 12px 14px 16px;
  }

  .look__nav.is-prev {
    left: 6px;
  }

  .look__nav.is-next {
    right: 6px;
  }
}

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