:root {
  --paper: #0c0c0c;
  --paper-deep: #161616;
  --ink: #f3f0ea;
  --muted: #a39e96;
  --line: rgba(243, 240, 234, 0.16);
  --blood: #ff4d00;
  --header: 76px;
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --wrap: min(1120px, calc(100% - 2 * clamp(18px, 4vw, 40px)));
  color-scheme: dark;
}

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

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

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

[hidden] {
  display: none !important;
}

html[lang="ru"] .en {
  display: none !important;
}

html:not([lang="ru"]) .ru {
  display: none !important;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.kicker {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.brand,
.piece-name,
.footer-word {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h1,
h2 {
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.94;
}

h3 {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.lede {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-header.is-solid {
  background: rgba(230, 224, 212, 0.94);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: var(--wrap);
  min-height: var(--header);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  text-decoration: none;
}

.mark {
  width: 28px;
  height: 28px;
}

.desk-nav {
  display: flex;
  gap: 22px;
}

.desk-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 0.25s ease;
}

.desk-nav a:hover,
.desk-nav a[aria-current="true"] {
  background-size: 100% 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
}

.lang-switch button {
  min-width: 42px;
  min-height: 36px;
  padding: 0 8px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  min-height: 40px;
  padding: 0 2px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.mobile-nav {
  position: fixed;
  top: var(--header);
  right: 0;
  left: 0;
  z-index: 39;
  padding: 6px clamp(18px, 4vw, 40px) 18px;
  background: rgba(230, 224, 212, 0.98);
  border-bottom: 1px solid var(--line);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn:hover {
  background: var(--blood);
  border-color: var(--blood);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.hero {
  padding: calc(var(--header) + 28px) 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: end;
}

.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(3.3rem, 8vw, 6.6rem);
  line-height: 0.86;
}

.hero h1 .line {
  display: block;
}

.hero-last {
  font-style: italic;
  color: var(--blood);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  margin-top: 32px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-foot a {
  text-decoration: none;
}

.mat {
  position: relative;
  padding: 22px 22px 16px;
  background:
    linear-gradient(var(--ink), var(--ink)) left 0 top 0 / 16px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left 0 top 0 / 1px 16px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right 0 top 0 / 16px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right 0 top 0 / 1px 16px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left 0 bottom 0 / 16px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left 0 bottom 0 / 1px 16px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right 0 bottom 0 / 16px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right 0 bottom 0 / 1px 16px no-repeat;
}

.hero-art {
  max-width: 460px;
  justify-self: center;
}

.hero-art svg {
  width: min(100%, 380px);
  height: auto;
  margin-inline: auto;
}

.hero-art figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stamp {
  position: absolute;
  right: 6px;
  bottom: 52px;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border: 1.5px solid var(--blood);
  border-radius: 50%;
  color: var(--blood);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-8deg);
}

.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: ticker 42s linear infinite;
}

.marquee p {
  padding: 14px 0;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee span {
  padding: 0 1rem;
  color: var(--blood);
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

section {
  scroll-margin-top: calc(var(--header) + 12px);
  padding: clamp(4.2rem, 8vw, 7.2rem) 0;
}

.work {
  background: var(--ink);
  color: var(--paper);
}

.work .kicker,
.work .lede {
  color: #c4bdb2;
}

.section-head {
  display: grid;
  gap: 16px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 28px 0 22px;
}

.filters button {
  min-height: 40px;
  padding: 0;
  color: var(--paper);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}

.filters button[aria-pressed="true"] {
  border-bottom-color: var(--blood);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.piece {
  display: flex;
  min-width: 0;
}

.piece.is-out {
  display: none;
}

.piece-btn {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 16px 16px 14px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  box-shadow: inset 0 0 0 1px transparent;
}

.piece-btn:hover,
.piece-btn:focus-visible {
  box-shadow: inset 0 0 0 1px var(--blood);
}

.piece-art {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  padding: 10px;
}

.piece-art svg {
  width: min(78%, 230px);
  height: auto;
}

.piece-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding-top: 8px;
}

.num,
.piece-cat {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.piece-name {
  font-size: 1.35rem;
}

.studio-grid,
.book-grid {
  display: grid;
  gap: 36px;
}

.prose p + p {
  margin-top: 14px;
}

.facts {
  margin-top: 28px;
}

.facts div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 38%) 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
}

.path {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 8px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 1.3rem;
}

.visit h2 {
  margin-bottom: 16px;
}

.book {
  background: var(--paper-deep);
}

.book-lede {
  margin-top: 16px;
}

.faq-list {
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.lbl {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

select {
  appearance: none;
  padding-right: 28px;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 14px) calc(50% + 2px),
    calc(100% - 8px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-bottom-color: var(--blood);
}

[aria-invalid="true"] {
  border-bottom-color: var(--blood);
}

.form-row {
  display: grid;
  gap: 0 18px;
}

.fine {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status {
  min-height: 1.4em;
  margin-top: 12px;
  color: var(--blood);
}

.form-status.is-ok {
  color: var(--ink);
}

.note-preview {
  margin-top: 14px;
  padding: 14px;
  background: rgba(28, 25, 21, 0.05);
  font-family: var(--sans);
  font-size: 0.95rem;
  white-space: pre-wrap;
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  cursor: pointer;
  list-style: none;
  font-size: 1.15rem;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1;
}

details[open] summary::after {
  content: "–";
}

summary .q {
  flex: 1;
}

.faq-list p {
  max-width: 40rem;
  padding: 0 0 18px;
  color: var(--muted);
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 7vw, 5rem) 0 28px;
}

.footer-word {
  font-size: clamp(4.4rem, 16vw, 9.5rem);
  line-height: 0.8;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(230, 224, 212, 0.2);
  color: #c4bdb2;
  font-size: 0.92rem;
}

.footer-links,
#footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-links a {
  color: var(--paper);
  text-underline-offset: 3px;
}

dialog {
  width: min(460px, calc(100vw - 28px));
  max-height: min(90vh, 760px);
  padding: 18px 18px 20px;
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}

dialog::backdrop {
  background: rgba(28, 25, 21, 0.72);
}

.lightbox-top {
  display: flex;
  justify-content: flex-end;
}

#lightbox-close {
  min-height: 36px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

#lightbox-art {
  display: flex;
  justify-content: center;
  padding: 8px 12px 4px;
}

#lightbox-art svg {
  width: min(100%, 320px);
  height: auto;
}

#lightbox-cap {
  margin-top: 8px;
}

@media (min-width: 640px) {
  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 800px) {
  .section-head {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: end;
  }

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

@media (min-width: 860px) {
  .studio-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: start;
  }
}

@media (min-width: 900px) {
  .book-grid {
    grid-template-columns: 0.82fr 1.18fr;
    gap: 64px;
    align-items: start;
  }
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.75fr);
    gap: 48px;
    align-items: center;
  }

  .hero-art {
    justify-self: end;
  }
}

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

@media (max-width: 720px) {
  .desk-nav,
  .header-book {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .brand {
    font-size: 0.95rem;
    letter-spacing: 0.04em;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

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

  .stamp {
    width: 86px;
    height: 86px;
    bottom: 46px;
  }
}

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

  .marquee-track {
    animation: none;
  }

  .site-header,
  .desk-nav a {
    transition: none;
  }
}

body::before {
  display: none;
}

html,
body {
  overflow-x: clip;
}

.wrap,
.header-inner {
  width: min(1120px, 100%);
  padding-inline: clamp(18px, 4vw, 40px);
}

.brand,
.hero h1 .word-sans,
.card h3,
.price,
.footer-word {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-short {
  display: none;
}

.hero-bali {
  margin: -4px 0 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.9;
  color: var(--blood);
}

.hero h1 .word-sans {
  color: var(--blood);
  line-height: 0.82;
}

.hero-photo {
  margin: 0;
}

.hero-photo .shot,
.piece-art {
  position: relative;
  overflow: hidden;
}

.hero-photo .shot {
  aspect-ratio: 4 / 5;
}

.hero-photo .hero-shot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 282%;
  height: auto;
  max-width: none;
  transform: translateX(-50%);
}

.piece-art {
  aspect-ratio: 576 / 256;
}

.piece-art .band {
  position: absolute;
  left: 0;
  width: 100%;
  height: 400%;
  max-width: none;
  object-fit: fill;
}

.piece-art .band-1 { top: 0; }
.piece-art .band-2 { top: -100%; }
.piece-art .band-3 { top: -200%; }
.piece-art .band-4 { top: -300%; }

#lightbox-art {
  position: relative;
  aspect-ratio: 576 / 256;
  overflow: hidden;
}

#lightbox-art .band {
  position: absolute;
  left: 0;
  width: 100%;
  height: 400%;
  max-width: none;
  object-fit: fill;
}

#lightbox-art .band-1 { top: 0; }
#lightbox-art .band-2 { top: -100%; }
#lightbox-art .band-3 { top: -200%; }
#lightbox-art .band-4 { top: -300%; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chips span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}

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

.card h3 {
  margin: 8px 0 10px;
  font-size: 1.25rem;
  line-height: 1.15;
}

.card p,
.prose p {
  color: var(--muted);
}

.card .num,
.price-kicker {
  color: var(--blood);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.price {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.95;
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--blood);
  text-underline-offset: 3px;
}

.addr {
  margin-top: 18px;
  font-style: normal;
  letter-spacing: 0.04em;
}

.shots {
  margin-top: 28px;
}

.invite {
  margin-top: 14px;
}

.visit-book {
  margin-top: 18px;
}

.site-header.is-solid {
  background: rgba(12, 12, 12, 0.92);
  border-bottom-color: var(--line);
}

.mobile-nav {
  background: rgba(12, 12, 12, 0.98);
}

.btn,
.btn:hover,
.btn-ghost,
.btn-ghost:hover {
  border-color: var(--blood);
}

.btn {
  background: var(--blood);
  color: #fff;
}

.btn:hover,
.btn-ghost:hover {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(243, 240, 234, 0.35);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--blood);
  color: #fff;
}

.desk-nav a[aria-current="true"] {
  color: var(--blood);
}

.marquee {
  background: #080808;
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.work {
  background: transparent;
  color: inherit;
}

.work .kicker,
.work .lede {
  color: var(--muted);
}

.work-grid.villa-grid {
  grid-template-columns: 1fr 1fr;
}

.piece-btn {
  background: transparent;
  color: inherit;
  padding: 0;
  box-shadow: none;
}

.piece-btn:hover,
.piece-btn:focus-visible {
  box-shadow: none;
}

.piece-btn:hover .piece-art img,
.piece-btn:focus-visible .piece-art img {
  transform: scale(1.04);
}

.piece-art {
  min-height: 0;
  padding: 0;
}

.piece-meta {
  padding: 10px 2px 0;
}

.site-footer {
  background: #070707;
  color: var(--ink);
}

.footer-row {
  border-top-color: var(--line);
  color: var(--muted);
}

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

.footer-word .accent {
  color: var(--blood);
}

dialog {
  background: #161616;
  color: var(--ink);
  border-color: var(--line);
}

#lightbox-art .band {
  max-height: none;
}

.note-preview {
  background: rgba(255, 255, 255, 0.05);
}

::selection {
  background: var(--blood);
  color: #fff;
}

.skip {
  background: var(--blood);
  color: #fff;
}

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

@media (max-width: 640px) {
  .work-grid.villa-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .brand-full {
    display: none;
  }

  .brand-short {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  .piece-art img {
    transition: none;
  }
}
