:root {
  --ink: #281317;
  --muted: #694b52;
  --accent: #8d1c3b;
  --line: #efdde2;
  --surface: #fff;
  --shadow: 0 12px 32px #731d3710;
  --bottom-inset: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px));
  color-scheme: light;
  font: 16px/1.48 system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background: radial-gradient(ellipse at 70% 2%, #f1d1d8 0, #fff8fa 46%, #fbf4f6 76%);
  background-attachment: fixed;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #922442; outline-offset: 3px; }
h1:focus { outline: none; }
.app { max-width: 650px; margin: auto; padding: 14px 15px calc(90px + var(--bottom-inset)); }
.masthead {
  background: #ffffffef;
  border: 1px solid #fff;
  border-radius: 22px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 8px; line-height: 1.18; }
.brand b, .brand small { display: block; }
.brand b { font-size: .99rem; letter-spacing: -.025em; }
.brand small { color: var(--muted); font-size: .73rem; margin-top: 3px; }
.mark {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 13px; font-size: 1.2rem; font-weight: 850; color: #fff;
  background: linear-gradient(145deg, #b84362, #8d213e 67%, #66182c);
}
.contact-link { padding: 11px 12px; border-radius: 13px; background: #f8e5eb; color: #851932; font-size: .86rem; font-weight: 750; }
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  align-items: center; gap: 14px;
  padding: clamp(14px, 4vw, 29px);
  border: 1px solid #f5dbe2; border-radius: 27px;
  background: radial-gradient(ellipse at 95% 100%, #c35a72 0%, #e7a5b4 38%, transparent 76%),
    linear-gradient(125deg, #fff 0%, #fae8ed 56%, #f2d2db 100%);
  box-shadow: var(--shadow);
}
.hero h1 { margin: 0; font-size: clamp(2.05rem, 8.3vw, 4.65rem); line-height: .96; letter-spacing: -.073em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { margin: 10px 0 13px; color: #4f282f; font-size: .90rem; max-width: 240px; }
.hero-media { position: relative; min-width: 0; margin-bottom: 8px; }
.photo { display: block; width: 100%; padding: 0; border: 0; overflow: hidden; background: #f1d0d8; line-height: 0; }
.hero-photo { aspect-ratio: 4 / 5; border-radius: 22px; border: 4px solid #ffffffa9; box-shadow: 0 18px 30px #62152d3d; transform: rotate(4deg); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pickup {
  position: absolute; right: -2px; bottom: -10px;
  padding: 6px 9px; border-radius: 9px; white-space: nowrap;
  font-size: clamp(.64rem, 2.8vw, .85rem); font-weight: 760; box-shadow: 0 4px 16px #6d1d3621;
  color: #751b35; background: #fffafd;
}
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 9px 13px; border: 0; border-radius: 13px;
  text-align: center; font-size: .90rem; font-weight: 740; line-height: 1.2;
  background: linear-gradient(105deg, #a32746, #75152f); color: #fff;
}
.button:hover { filter: brightness(.94); }
.secondary { background: #f8e6ec; color: #7d1935; }
.hero-button { min-width: min(100%, 150px); }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 20px 2px 8px; }
.section-title h2, .gallery-title { margin: 0; font-size: 1.25rem; letter-spacing: -.04em; }
.section-title .button { min-height: 44px; }
.grades { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 19px; box-shadow: var(--shadow); }
.grade { display: flex; flex-direction: column; align-items: start; padding: clamp(11px, 3.2vw, 18px); }
.grade-label { display: inline-block; font-size: .92rem; font-weight: 850; border-radius: 9px; padding: 4px 9px; }
.grade-label.ab { background: #f8e5eb; color: #7c1736; }
.grade-label.plus { background: #f3d9e1; color: #742b42; }
.grade h3 { margin: 9px 0 4px; font-size: 1rem; line-height: 1.2; letter-spacing: -.02em; }
.grade p, .footnote { color: var(--muted); font-size: .86rem; margin: 0 0 12px; }
.grade-price { margin-top: auto; font-size: clamp(1.03rem, 4vw, 1.42rem); letter-spacing: -.035em; white-space: nowrap; }
.grade-price small { margin-left: 4px; font-weight: 520; font-size: .78rem; }
.grade .grade-note { font-size: .80rem; margin: 3px 0 9px; }
.grade .button { width: 100%; }
.footnote { margin: 12px 2px 0; }
.screen h1 { font-size: clamp(1.8rem, 7vw, 2.65rem); line-height: 1.13; letter-spacing: -.055em; margin: 19px 2px 12px; }
.order-card, .info { padding: clamp(13px, 4vw, 22px); }
.order-card { display: grid; gap: 10px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend, label[for="weight"], .preferences { font-weight: 750; }
legend { padding: 0 0 6px; }
.choice, .stepper, .presets { display: grid; gap: 7px; }
.choice { grid-template-columns: 1fr 1fr; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label span { display: block; min-height: 58px; padding: 8px; border: 1px solid var(--line); border-radius: 13px; background: #fff8fa; }
.choice input:checked + span { background: #f8e5eb; border-color: #b3546e; color: #741c34; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice b, .choice small { display: block; }
.choice small { font-size: .79rem; }
.stepper { grid-template-columns: 46px minmax(0, 1fr) 46px; }
.stepper button, .presets button {
  min-height: 43px; border: 1px solid var(--line); border-radius: 12px; background: #fdf5f7; font-weight: 740; color: #761b35;
}
.stepper button { font-size: 1.25rem; }
.stepper input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.stepper input { padding: 8px; text-align: center; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { appearance: none; }
.presets { grid-template-columns: repeat(3, 1fr); }
.presets button { font-size: .87rem; }
.presets button[aria-pressed="true"] { border-color: #b3546e; background: #f8e5eb; }
.preferences small { font-weight: 500; color: var(--muted); }
textarea { display: block; padding: 9px; resize: vertical; }
.preferences textarea { margin-top: 5px; }
.quote { display: grid; gap: 1px; background: #fae9ee; padding: 11px; border-radius: 13px; }
.quote span, .quote small { font-size: .86rem; color: #6a3340; }
.quote output { font-weight: 830; color: #771631; font-size: 1.85rem; letter-spacing: -.045em; }
.info h2 { font-size: 1.03rem; margin: 0 0 3px; }
.info p { font-size: .94rem; color: var(--muted); margin: 0 0 14px; }
.gallery-title { margin: 15px 2px 7px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.gallery .photo { height: clamp(130px, 44vw, 215px); border-radius: 17px; }
.tabs {
  position: fixed; z-index: 3;
  left: 50%; transform: translateX(-50%); bottom: calc(8px + var(--bottom-inset));
  width: min(calc(100% - 24px), 620px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 5px;
  background: #fffffff5; backdrop-filter: blur(12px); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: 0 6px 30px #5d1b302b;
}
.tabs a { display: grid; justify-items: center; align-content: center; min-height: 49px; gap: 3px; border-radius: 14px; font-size: .81rem; font-weight: 680; color: #684a52; }
.tabs a[aria-current] { color: #841936; background: #fae8ed; }
.tab-icon { position: relative; display: block; width: 16px; height: 16px; }
.grid { border: 1.5px solid currentColor; border-radius: 4px; background: linear-gradient(currentColor,currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor,currentColor) center / 1px 100% no-repeat; }
.bag { height: 13px; margin-top: 3px; border: 1.5px solid currentColor; border-radius: 3px; }
.bag::before { content: ""; position: absolute; left: 3px; right: 3px; top: -6px; height: 5px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; }
.pin { width: 14px; height: 14px; margin-bottom: 2px; border: 1.5px solid currentColor; border-radius: 50% 50% 50% 2px; transform: rotate(-45deg); }
.pin::before { content: ""; position: absolute; inset: 3px; border: 1px solid currentColor; border-radius: 50%; }
dialog { width: min(92vw, 470px); max-height: 90dvh; padding: 17px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 20px; }
dialog::backdrop { background: #32101b9e; }
.draft-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.draft-heading h2 { margin: 0; }
.close { width: 42px; height: 42px; border: 0; border-radius: 12px; background: #f8e6ec; color: #6e1530; font-size: 1.4rem; }
#draft-dialog .button { width: 100%; margin-top: 8px; }
.draft-status { color: var(--muted); font-size: .86rem; margin: 9px 0 0; }
#brand-dialog[open] { display: flex; flex-direction: column; }
#brand-dialog .draft-heading { gap: 8px; }
#brand-dialog .close { flex: none; }
#brand-note { color: var(--muted); font-size: .875rem; margin: 0 0 12px; }
.brand-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.brand-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.brand-list li {
  display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 81px;
  padding: 9px 5px; background: #fff8fa; border: 1px solid var(--line); border-radius: 12px;
  text-align: center; font-size: .84rem; overflow-wrap: anywhere;
}
.brand-footnote { color: var(--muted); font-size: .875rem; margin: 10px 0 0; }
.brand-list img { display: block; width: min(100%, 92px); height: 32px; object-fit: contain; }
.photo-dialog { width: fit-content; max-width: 94vw; padding: 0; line-height: 0; }
.photo-dialog img { max-width: 100%; max-height: 83dvh; display: block; }
.photo-dialog .close { position: absolute; top: 8px; right: 8px; line-height: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 350px) {
  .app { padding-inline: 9px; }
  .hero { gap: 8px; padding: 11px; }
  .hero p, .hero-button { font-size: .83rem; }
  .grade { padding: 9px; }
}
