@font-face {
  font-family: "Libre Bodoni";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/LibreBodoni.ttf") format("truetype");
}

@font-face {
  font-family: "Libre Bodoni";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/LibreBodoni-Italic.ttf") format("truetype");
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/Manrope.ttf") format("truetype");
}

:root {
  --bg: #14060c;
  --bg-raise: #241018;
  --ink: #f6e7c8;
  --ink-soft: #e4c56a;
  --muted: #c4a090;
  --line: rgba(228, 197, 106, 0.18);
  --line-strong: rgba(228, 197, 106, 0.42);
  --serif: "Libre Bodoni", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: Manrope, "Segoe UI", sans-serif;
  --pad: clamp(18px, 4vw, 72px);
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

img { max-width: 100%; }

a { color: inherit; }

h1, h2, h3, p { text-wrap: pretty; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

h1 { font-size: clamp(40px, 6vw, 72px); }

h2 { font-size: clamp(34px, 5vw, 60px); }

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

.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 72px;
}

.brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.nav a,
.filters a,
.eyebrow,
.text-link,
.piece-cat,
.neighbors span {
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
}

.nav a:hover,
.nav a.is-active { color: var(--ink); }

.header-side {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang { position: relative; }

.lang summary {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
}

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

.lang summary:hover { color: var(--ink-soft); }

.flag {
  width: 18px;
  height: 12px;
  display: block;
  box-shadow: 0 0 0 1px rgba(228, 197, 106, 0.4);
}

.chevron {
  width: 10px;
  height: 8px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lang[open] .chevron { transform: rotate(180deg); }

.lang ul {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 6;
  min-width: 168px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--line-strong);
}

.lang a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}

.lang a:hover,
.lang a.is-active { background: var(--bg-raise); }

.header-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-links a,
.header-links .is-disabled {
  display: grid;
  place-items: center;
  color: var(--ink);
}

.header-links a:hover { color: var(--ink-soft); }

.header-links svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.opening {
  position: relative;
  isolation: isolate;
  min-height: calc(100dvh - 73px);
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.hero-photo,
.hero-shade,
.hero-glint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-photo {
  z-index: 0;
  object-fit: cover;
  object-position: center center;
}

.hero-shade {
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 6, 12, 0.34) 0%, rgba(20, 6, 12, 0.12) 42%, rgba(20, 6, 12, 0.84) 100%);
}

.hero-glint {
  z-index: 2;
  display: block;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(#000 0%, #000 64%, transparent 92%);
  mask-image: linear-gradient(#000 0%, #000 64%, transparent 92%);
}

.hero-glint.is-narrow { display: none; }

.hero-glint circle {
  transform-box: fill-box;
  transform-origin: center;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.hero-glint .p0 { animation-name: glint-pop; }
.hero-glint .p1 { animation-name: glint-shift; }
.hero-glint .p2 { animation-name: glint-wash; }
.hero-glint .d0 { animation-duration: 2.4s; }
.hero-glint .d1 { animation-duration: 2.9s; }
.hero-glint .d2 { animation-duration: 3.4s; }
.hero-glint .d3 { animation-duration: 4.1s; }
.hero-glint .d4 { animation-duration: 4.8s; }
.hero-glint .d5 { animation-duration: 5.6s; }
.hero-glint .t0 { animation-delay: -0.3s; }
.hero-glint .t1 { animation-delay: -0.8s; }
.hero-glint .t2 { animation-delay: -1.3s; }
.hero-glint .t3 { animation-delay: -1.9s; }
.hero-glint .t4 { animation-delay: -2.4s; }
.hero-glint .t5 { animation-delay: -2.9s; }
.hero-glint .t6 { animation-delay: -3.4s; }
.hero-glint .t7 { animation-delay: -3.9s; }
.hero-glint .t8 { animation-delay: -4.4s; }
.hero-glint .t9 { animation-delay: -4.9s; }
.hero-glint .t10 { animation-delay: -5.3s; }
.hero-glint .t11 { animation-delay: -5.8s; }

@keyframes glint-pop {
  0%, 70%, 100% { opacity: 0.05; }
  78% { opacity: 1; }
  88% { opacity: 0.06; }
}

@keyframes glint-shift {
  0%, 100% { opacity: 0.08; }
  14% { opacity: 0.95; }
  26% { opacity: 0.1; }
  62% { opacity: 0.5; }
  74% { opacity: 0.05; }
}

@keyframes glint-wash {
  0%, 100% { opacity: 0.05; }
  38% { opacity: 0.22; }
  50% { opacity: 1; }
  62% { opacity: 0.07; }
}

.hero {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 32px;
  padding: 0 0 12vh;
}

.hero-wordmark {
  width: min(40rem, 66vw);
  height: auto;
  margin: 0;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.38));
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 22px;
  margin-top: 26px;
}

.hero-links .text-link {
  position: relative;
  border: 1px solid var(--line-strong);
  padding: 15px 28px;
  background: rgba(20, 6, 12, 0.34);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.18em;
  line-height: 1;
  transition: border-color 0.28s ease, color 0.28s ease, background 0.28s ease, transform 0.28s ease;
}

.hero-links .text-link::after { content: none; }

.hero-links .text-link:hover {
  background: rgba(20, 6, 12, 0.55);
  border-color: var(--ink);
  color: var(--ink-soft);
  transform: translateY(-2px);
}

.hero-links .text-link:active {
  color: var(--ink);
  transform: translateY(1px);
  transition-duration: 0.08s;
}

.hero-links .text-link.is-disabled,
.hero-links .text-link.is-disabled:hover,
.hero-links .text-link.is-disabled:active {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  transform: none;
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.hero-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 36rem;
}

.hero-lead {
  max-width: 16em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.35;
  color: var(--ink);
}

.hero-note {
  max-width: 36em;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
}

.section { padding: 88px 0; }

.catalog {
  border-top: 1px solid var(--line);
  scroll-margin-top: 72px;
}

.section-head { margin-bottom: 28px; }

.section-head h1,
.section-head h2 {
  max-width: 28em;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.3;
}

.section-head .section-note { max-width: 46em; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.section-note {
  max-width: 38em;
  color: var(--muted);
  margin: 14px 0 0;
}

.pieces { border-bottom: 1px solid var(--line); }

.piece {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1.4fr) minmax(8rem, 0.7fr) 88px;
  gap: 12px 20px;
  align-items: center;
  padding: 18px 12px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.piece:hover { background: var(--bg-raise); }

.piece-index {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 20px;
}

.piece-title {
  display: block;
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.1;
}

.piece-sub {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.piece-meta { text-align: right; }

.piece-cat {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.piece-price {
  display: block;
  margin-top: 4px;
  white-space: nowrap;
}

.piece-mark {
  width: 84px;
  height: 84px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: var(--bg-raise);
}

.piece-mark img {
  width: 68%;
  height: 68%;
  object-fit: contain;
}

.piece-mark img.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.more-link { margin: 28px 0 0; }

.delivery { border-top: 1px solid var(--line); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}

.order { border-top: 1px solid var(--line); }

.order .split { align-items: center; }

.contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 28px 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contacts a,
.contacts .is-disabled {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contacts a:hover { color: var(--ink-soft); }

.contacts svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.contacts-empty {
  color: var(--muted);
  max-width: 22em;
}

.is-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

label {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

input,
textarea,
select {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 0;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  font: inherit;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
}

textarea {
  min-height: 120px;
  border: 1px solid var(--line);
  padding: 12px;
}

select {
  cursor: pointer;
  color-scheme: dark;
  background-color: #14060c;
  color: #f6e7c8;
}

select option {
  background-color: #14060c;
  color: #f6e7c8;
}

select option:checked {
  background-color: #241018;
  color: #f6e7c8;
}

::placeholder { color: rgba(246, 231, 200, 0.45); }

.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 0.95rem 1.35rem;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: var(--ink-soft); }

.text-button {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  padding: 7px 10px;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  letter-spacing: 0;
  text-transform: none;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.errors {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
}

.errors ul { margin: 0; padding-left: 1.1em; }

.product {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  padding-top: 48px;
  padding-bottom: 24px;
}

.frame {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: var(--bg-raise);
  position: sticky;
  top: 96px;
  align-self: start;
}

.frame img.mark { width: 58%; height: 58%; }
.frame img.photo { width: 100%; height: 100%; object-fit: cover; }

.product-sub {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.price {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
}

.specs { margin: 26px 0; }

.specs div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.specs dt {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.specs dd { margin: 0; }

.prose {
  white-space: pre-wrap;
  max-width: 38em;
}

.product-order {
  margin-top: 36px;
}

.button.is-disabled,
.button.is-disabled:hover {
  background: var(--ink);
  color: var(--bg);
}

.fixed-piece { margin: 18px 0 0; }

.neighbors {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 28px 0 72px;
}

.neighbors a {
  display: block;
  max-width: 46%;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
}

.neighbors .next { margin-left: auto; text-align: right; }

.neighbors span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
}

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

.filters a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
}

.filters a.is-active {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

.page-note {
  padding: 72px 0 96px;
}

.page-note p { max-width: 28em; color: var(--muted); }

.page-note .text-link,
.page-note .button { margin-top: 28px; }

.narrow { max-width: 760px; }

.care-list {
  display: grid;
  gap: 36px;
  margin-top: 56px;
}

.care-list h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 34px);
}

.care-list p { margin: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 36px;
  color: var(--muted);
  font-size: 13px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-row p { margin: 0; }

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

.login {
  min-height: calc(100dvh - 180px);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 48px var(--pad) 72px;
}

.login form { width: min(420px, 100%); text-align: left; }

.login h1 {
  margin-top: 0;
  font-size: 48px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-error { color: var(--ink); }

.admin h1 { font-size: clamp(36px, 5vw, 56px); }

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

.admin-head {
  justify-content: space-between;
  align-items: end;
  margin-bottom: 12px;
}

.admin-head .button { margin-top: 0; }

.admin-head-actions form { margin: 0; }

.flash {
  margin: 0 0 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}

.admin-list article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px 16px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.admin-list article .admin-actions { grid-column: 2; }

.admin-list h2 {
  font-size: 28px;
}

.admin-list h2 a { text-decoration: none; }

.thumb {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: var(--bg-raise);
}

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

.admin-categories {
  margin-top: 48px;
  scroll-margin-top: 72px;
}

.category-names {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.category-names li {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.category-add {
  display: grid;
  grid-template-columns: minmax(0, 280px) max-content;
  justify-content: start;
  gap: 12px 16px;
  align-items: end;
  margin-top: 4px;
}

.category-add label {
  margin-top: 12px;
  min-width: 0;
}

.category-add .button { margin: 0 0 1px; }

.inquiries-head { margin-top: 56px; }

.inquiry-text {
  white-space: pre-wrap;
  margin: 8px 0 0;
}

.is-done { opacity: 0.55; }

.narrow-form { max-width: 760px; }

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  font-size: 16px;
}

.checkbox input { width: auto; margin: 0; }

.hint { color: var(--muted); font-size: 14px; }

.current-photo img {
  width: min(220px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  margin-top: 18px;
}

.danger-link { margin-top: 36px; }

.danger-link a { color: var(--muted); }

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

:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .hero-photo { object-position: right center; }
  .hero-glint.is-wide { display: none; }
  .hero-glint.is-narrow { display: block; }

  .split,
  .product,
  .two-fields,
  .category-add { grid-template-columns: 1fr; }

  .frame { position: static; }

  .piece {
    grid-template-columns: 2.2rem minmax(0, 1fr) 72px;
  }

  .piece-copy { grid-column: 2; grid-row: 1; }
  .piece-meta { grid-column: 2; grid-row: 2; text-align: left; }
  .piece-mark { grid-column: 3; grid-row: 1 / span 2; width: 72px; height: 72px; }
  .piece-index { grid-row: 1 / span 2; }

  .bar { display: flex; flex-wrap: wrap; padding: 12px 0; }
  .brand { order: 1; }
  .header-side { order: 2; margin-left: auto; }
  .nav { order: 3; width: 100%; justify-content: center; gap: 16px; flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .nav { gap: 8px 10px; }
  .nav a { font-size: 11px; letter-spacing: 0.11em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .piece,
  .hero-links .text-link,
  .hero-links .text-link::after { transition: none; }
  .hero-glint,
  .hero-glint.is-wide,
  .hero-glint.is-narrow { display: none; }
}
