@font-face {
  font-family: "Manrope";
  src: url("/media/manrope-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #ededeb;
  --paper-soft: #e3e1dc;
  --surface: #f6f5f1;
  --ink: #171814;
  --muted: #65665f;
  --line: #24251f;
  --accent: #8a3f2f;
  --cream: #f4ede4;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  padding-bottom: calc(68px + max(env(safe-area-inset-bottom), var(--tg-safe-area-inset-bottom, 0px)));
  overflow-x: hidden;
  background: var(--paper);
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: min(760px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding-top: var(--tg-content-safe-area-inset-top, 0px);
  padding-right: max(18px, env(safe-area-inset-right), var(--tg-content-safe-area-inset-right, 0px));
  padding-bottom: 28px;
  padding-left: max(18px, env(safe-area-inset-left), var(--tg-content-safe-area-inset-left, 0px));
}
.view[hidden] { display: none; }

.brandline {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-button, .info-button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.brand-button { font-size: 17px; font-weight: 600; letter-spacing: -.04em; }
.info-button {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero { padding: 42px 0 48px; }
.hero h1 {
  max-width: 12ch;
  margin: 0 0 20px;
  font-size: clamp(34px, 9vw, 68px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-wrap: balance;
}
.intro {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 20px;
}
.hero-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}
.hero-action-primary { padding: 8px 12px; background: var(--accent); color: var(--cream); }
.hero-action-secondary { color: var(--ink); }
.hero-action-secondary > span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.hero-arrow { flex: none; font-size: 15px; line-height: 1; }
.hero-action-secondary .hero-arrow { color: var(--accent); }
#catalogTitle { scroll-margin-top: 20px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-top: 0;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(36px, 10vw, 58px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.06em;
  text-transform: uppercase;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.category-card {
  min-width: 0;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}
.category-card-featured { grid-column: 1 / -1; }
.category-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface);
}
.category-card-featured .category-media { aspect-ratio: 4 / 3; }
.category-media img {
  width: 100%;
  height: 100%;
  display: block;
  padding: 2%;
  object-fit: contain;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.category-media img.is-contain { padding: 5%; object-fit: contain; }
.category-card:hover .category-media img { transform: scale(1.025); }
.category-copy {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 8px;
  padding: 15px 14px 16px;
}
.category-name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.035em;
}
.category-arrow {
  grid-column: 2;
  color: var(--accent);
  font-size: 15px;
  line-height: 1;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}

.category-screen { padding-top: 28px; }
.category-header { padding: 34px 0 44px; }
.category-header h1 {
  max-width: 13ch;
  margin: 30px 0 18px;
  font-size: clamp(42px, 12vw, 70px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.067em;
  text-transform: uppercase;
}
.category-header > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.search { display: block; margin-bottom: 30px; }
.search input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--line) 45%, transparent);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.category-request {
  margin-bottom: 40px;
}
.category-request-media {
  min-height: 250px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface);
}
.category-request-media img { width: 100%; height: 100%; display: block; object-fit: contain; }
.category-request-copy { padding: 29px 0 34px; }
.category-request-copy h2 {
  max-width: 13ch;
  margin: 21px 0 14px;
  font-size: clamp(34px, 10vw, 54px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.06em;
  text-transform: uppercase;
}
.category-request-copy > p:not(.eyebrow) {
  max-width: 48ch;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 10px; }
.product-card { min-width: 0; padding-bottom: 24px; }
.product-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--surface);
}
.product-photo img { width: 100%; height: 100%; display: block; padding: 3%; object-fit: contain; transition: transform .35s ease; }
.product-photo:hover img { transform: scale(1.025); }
.product-title { margin-top: 14px; }
.product-name { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.18; letter-spacing: -.04em; }
.sku { margin: 7px 0 0; color: var(--accent); font-size: 8px; font-weight: 600; letter-spacing: .1em; }
.product-bottom { display: grid; gap: 12px; margin-top: 14px; }
.price { color: var(--muted); font-size: 9px; line-height: 1.4; }
.select-button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  background: transparent;
  color: var(--ink);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
}
.select-button::after {
  content: "↗";
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.select-button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

.selection { min-height: calc(100vh - 68px); padding-bottom: 50px; }
.selection-header { padding: 66px 0 42px; }
.selection-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.selection-title #selectedCount { color: var(--accent); font-size: 9px; font-weight: 500; }
.selection-header h1 {
  max-width: 10ch;
  margin: 40px 0 16px;
  font-size: clamp(40px, 11vw, 62px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.065em;
  text-transform: uppercase;
}
.selection p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.chosen { min-height: 34px; display: grid; gap: 10px; margin-bottom: 36px; }
.chosen-product {
  min-height: 132px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
}
.chosen-photo { width: 92px; aspect-ratio: 1; display: grid; place-items: center; padding: 0; overflow: hidden; border: 0; background: var(--surface); }
.chosen-photo img { width: 100%; height: 100%; display: block; padding: 8%; object-fit: contain; }
.chosen-request .chosen-photo img { padding: 0; object-fit: cover; }
.chosen-copy { min-width: 0; }
.chosen-copy h3 { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: -.035em; }
.chosen-copy p { margin: 5px 0 12px; color: var(--accent); font-size: 8px; font-weight: 600; letter-spacing: .1em; }
.chosen-copy span { color: var(--muted); font-size: 9px; }
.remove-button { min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.selection-empty { padding: 58px 0 64px; }
.selection-empty h2 { max-width: 12ch; margin: 24px 0 14px; font-size: 34px; font-weight: 400; line-height: 1; letter-spacing: -.055em; text-transform: uppercase; }
.secondary-button { min-height: 48px; margin-top: 28px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 9px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.secondary-button::after { content: "↗"; color: var(--accent); font-size: 14px; font-weight: 400; line-height: 1; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }

.inquiry-form { padding: 30px 18px 36px; background: var(--paper-soft); }
.contact-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 22px; padding: 0; border: 0; }
.contact-choice legend { width: 100%; margin-bottom: 10px; font-size: 11px; font-weight: 500; }
.contact-choice label { position: relative; display: block; }
.contact-choice input { position: absolute; opacity: 0; pointer-events: none; }
.contact-choice span { min-height: 46px; display: grid; place-items: center; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--line) 46%, transparent); color: var(--muted); font-size: 10px; text-transform: uppercase; }
.contact-choice input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.contact-choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.field { display: block; margin-top: 18px; }
.field > span { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; font-size: 11px; font-weight: 500; }
.field em { color: var(--muted); font-size: 9px; font-style: normal; font-weight: 500; }
.field input, textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--line) 48%, transparent);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}
.field input { min-height: 48px; }
textarea { min-height: 98px; resize: vertical; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.consent { display: flex; gap: 11px; align-items: flex-start; margin: 22px 0 24px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.consent input { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; accent-color: var(--accent); }
.consent a { color: var(--ink); text-underline-offset: 2px; }

.cta {
  position: relative;
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px 0 18px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--cream);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .07em;
  text-align: left;
  text-transform: uppercase;
}
.cta::before { content: none; }
.cta::after {
  content: "↗";
  position: absolute;
  right: 18px;
  color: currentColor;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.cta.is-selected { background: transparent; color: var(--accent); }
.cta:disabled { opacity: .42; cursor: not-allowed; }

@media (hover: hover) and (pointer: fine) {
  .category-card:hover .category-arrow,
  .select-button:hover::after,
  .secondary-button:hover::after,
  .cta:hover::after { transform: translate(3px, -3px); }
}

.select-button:active::after,
.secondary-button:active::after,
.cta:active::after { transform: translate(2px, -2px); }
.feedback { min-height: 20px; margin-top: 12px !important; font-size: 10px !important; }
.feedback[data-state="success"] { color: #315f45; }
.feedback[data-state="error"] { color: #842f24; }

.success { min-height: calc(100vh - 68px); padding: 76px 0 60px; }
.success-mark { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 52px; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: 20px; }
.success h1 { margin: 22px 0 20px; font-size: clamp(54px, 16vw, 84px); font-weight: 400; line-height: .9; letter-spacing: -.065em; text-transform: uppercase; }
.success > p:not(.eyebrow) { max-width: 440px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.request-number { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 50px 0 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.request-number span { color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.request-number strong { color: var(--accent); font-size: 12px; letter-spacing: .08em; }

.notice, .noscript { margin-top: 20px; padding: 18px; border: 1px solid color-mix(in srgb, var(--line) 28%, transparent); color: var(--muted); font-size: 11px; line-height: 1.5; }
.image-missing { display: grid; place-items: center; padding: 18px; }
.missing-label { max-width: 20ch; color: var(--muted); font-size: 9px; line-height: 1.5; text-align: center; text-transform: uppercase; }

.sheet {
  width: min(620px, calc(100% - 16px));
  max-height: calc(100dvh - 16px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}
.sheet::backdrop { background: color-mix(in srgb, #11120f 76%, transparent); }
.close { position: sticky; z-index: 4; top: 12px; float: right; width: 44px; height: 44px; margin: 12px 12px -56px 0; padding: 0; border: 1px solid color-mix(in srgb, var(--line) 35%, transparent); background: var(--paper); color: var(--ink); font-size: 25px; line-height: 1; }
.detail-inner { padding: 14px 18px 28px; clear: both; }
.detail-gallery-stage { width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: var(--surface); }
.detail-gallery-stage img { width: 100%; height: 100%; display: block; padding: 5%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.gallery-thumb { width: 64px; aspect-ratio: 1; flex: 0 0 auto; padding: 0; border: 1px solid transparent; background: var(--surface); }
.gallery-thumb[aria-current="true"] { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; display: block; padding: 7%; object-fit: contain; }
.detail-sku { margin: 25px 0 0; color: var(--accent); font-size: 8px; font-weight: 600; letter-spacing: .1em; }
.detail-inner h2 { max-width: 15ch; margin: 22px 0 12px; font-size: clamp(34px, 10vw, 48px); font-weight: 400; line-height: .98; letter-spacing: -.055em; text-transform: uppercase; }
.detail-description { color: var(--muted); font-size: 12px; line-height: 1.65; }
.detail-inner dl { display: grid; grid-template-columns: minmax(90px, .7fr) 1.3fr; gap: 10px 16px; margin: 22px 0; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--line) 28%, transparent); font-size: 11px; }
.detail-inner dt { color: var(--muted); }
.detail-inner dd { margin: 0; }
.detail-price { margin: 20px 0; font-size: 12px; font-weight: 500; }
.detail-selection-hint { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; }
.link-button { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 9px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.share-status { display: block; min-height: 18px; margin-top: 10px; color: var(--muted); font-size: 9px; }

.info-inner { min-height: min(620px, calc(100dvh - 16px)); padding: 74px 24px 32px; clear: both; }
.info-inner h2 { max-width: 13ch; margin: 22px 0 18px; font-size: clamp(38px, 11vw, 58px); font-weight: 400; line-height: .95; letter-spacing: -.055em; text-transform: uppercase; }
.info-inner > p:not(.eyebrow, .showroom) { max-width: 430px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.info-links { margin-top: 54px; border-top: 1px solid var(--line); }
.info-links a { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid color-mix(in srgb, var(--line) 35%, transparent); font-size: 11px; text-decoration: none; text-transform: uppercase; }
.info-links b { color: var(--accent); font-size: 15px; font-weight: 500; }
.showroom { margin: 36px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; white-space: pre-line; }

.bottom-nav {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: calc(68px + max(env(safe-area-inset-bottom), var(--tg-safe-area-inset-bottom, 0px)));
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-right: max(8px, env(safe-area-inset-right), var(--tg-safe-area-inset-right, 0px));
  padding-bottom: max(env(safe-area-inset-bottom), var(--tg-safe-area-inset-bottom, 0px));
  padding-left: max(8px, env(safe-area-inset-left), var(--tg-safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: 0 -10px 30px color-mix(in srgb, var(--ink) 6%, transparent);
}
.bottom-nav button { position: relative; min-height: 68px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; background: transparent; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.bottom-nav button[aria-current="page"] { color: var(--ink); }
.selection-badge { min-width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--cream); font-size: 8px; }

[data-telegram-theme="dark"] {
  --paper: #171814;
  --paper-soft: #22231f;
  --surface: #efeee9;
  --ink: #f4ede4;
  --muted: #aaa9a2;
  --line: #d8d4cb;
  --accent: #c47763;
  --cream: #171814;
}
[data-telegram-theme="dark"] .category-card { color: #171814; }

@media (min-width: 600px) {
  .shell { padding-inline: 28px; }
  .category-grid { gap: 16px; }
  .category-copy { min-height: 86px; }
  .products { gap: 54px 18px; }
  .product-bottom { grid-template-columns: 1fr 128px; align-items: center; }
  .category-request { display: grid; grid-template-columns: 1fr 1fr; }
  .category-request-copy { padding: 36px 0 36px 32px; }
  .info-inner { padding-inline: 36px; }
}

@media (max-width: 359px) {
  .shell { padding-inline: 14px; }
  .hero { padding: 34px 0 38px; }
  .hero h1 { font-size: 30px; }
  .category-grid { gap: 8px; }
  .category-copy { min-height: 64px; padding-inline: 11px; }
  .category-name { font-size: 13px; }
  .product-name { font-size: 15px; }
  .select-button { padding-inline: 5px; font-size: 8px; }
  .chosen-product { grid-template-columns: 76px minmax(0, 1fr); }
  .chosen-photo { width: 76px; }
  .remove-button { grid-column: 2; justify-self: start; }
  .inquiry-form { padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-photo img, .category-media img { transition: none; }
}
