:root {
  color-scheme: dark;
  --paper: #f7f1e8;
  --muted: #c2b7a9;
  --gold: #e8bb70;
  --border: #3e3327;
  --bg: #100e0c;
  --card: #191512;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--paper); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
img { display: block; max-width: 100%; }
svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(100% - 96px, 1240px); margin-inline: auto; }
.header { background: #080706; border-bottom: 1px solid #ffffff14; position: relative; z-index: 1; }
.header-inner, .header-actions, nav { display: flex; align-items: center; }
.header-inner { min-height: 86px; justify-content: space-between; gap: 20px; }
.brand { display: block; width: 181px; flex-shrink: 0; }
.header-actions { gap: 20px; }
nav { gap: clamp(20px, 4vw, 48px); font-size: .9rem; }
nav a { padding: 9px 0; color: var(--muted); white-space: nowrap; }
nav a:hover { color: var(--gold); }
.language { display: flex; align-items: center; gap: 2px; }
.language button, .bag, .icon-button { background: none; color: var(--paper); border: 0; min-height: 42px; }
.language button { padding: 0 8px; color: var(--muted); font-size: .85rem; }
.language button[aria-pressed="true"] { color: var(--gold); font-weight: 700; }
.bag { display: flex; align-items: center; gap: 7px; padding: 0 3px; }
.bag span { min-width: 23px; padding: 2px 5px; border-radius: 20px; color: #1b1309; background: var(--gold); font-size: .75rem; font-weight: 800; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: #100c09; }
.hero-inner { min-height: clamp(490px, 45vw, 650px); display: flex; align-items: center; }
.hero-visual { position: absolute; inset: 0 0 0 40%; z-index: -1; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #100c09 0%, #100c0900 27%), linear-gradient(0deg, #100c094f, transparent 24%); }
.hero-copy { width: min(57%, 650px); padding: 45px 0; }
.eyebrow { color: var(--gold); font-size: .75rem; font-weight: 750; letter-spacing: .21em; text-transform: uppercase; margin: 0 0 15px; }
.eyebrow span { display: inline-block; width: 22px; height: 1px; background: #aa783d; margin: 0 7px 4px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2.65rem, 5.45vw, 5.25rem); line-height: 1.04; letter-spacing: -.06em; margin-bottom: 25px; font-weight: 650; }
h1 em { color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.052em; }
.hero-text { color: var(--muted); max-width: 375px; font-size: 1.06rem; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px; border-radius: 7px; border: 1px solid transparent; text-align: center; font-size: .92rem; font-weight: 720; transition: background .18s, border-color .18s; }
.gold { background: linear-gradient(135deg, #f8d797, #dba14d); color: #1b1006; box-shadow: 0 6px 20px #bc77281f; }
.gold:hover:not(:disabled) { background: #ffdfa4; }
.outline { border-color: #866a44; color: var(--paper); background: #130e0ac4; }
.outline:hover { border-color: var(--gold); }
.process { border-block: 1px solid var(--border); background: #15110e; }
.process-inner { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 20px; }
.process-inner > div { display: flex; gap: 14px; align-items: center; justify-content: center; font-weight: 650; font-size: .93rem; padding: 0 15px; }
.process-inner > div + div { border-left: 1px solid var(--border); }
.round { width: 44px; height: 44px; border: 1px solid #825c31; color: var(--gold); border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.section { padding-top: clamp(52px, 7vw, 94px); }
.section-heading { margin-bottom: 26px; }
.section-heading .eyebrow { margin-bottom: 8px; }
h2 { font-size: clamp(1.95rem, 3.7vw, 3.25rem); line-height: 1.1; letter-spacing: -.045em; font-weight: 650; margin-bottom: 0; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(18px, 4vw, 54px); align-items: start; }
.preview { position: sticky; top: 18px; border: 1px solid var(--border); background: #211a14; border-radius: 12px; overflow: hidden; }
.preview-top, .preview-bottom { display: flex; justify-content: space-between; gap: 14px; padding: 13px 16px; color: var(--muted); font-size: .86rem; background: #191410; }
.preview-top { border-bottom: 1px solid var(--border); }
.preview-bottom { border-top: 1px solid var(--border); }
.stage { height: clamp(300px, 37vw, 510px); display: grid; place-items: center; background: radial-gradient(ellipse at 46% 38%, #674b32, #34261e 61%, #201713); }
.panel { position: relative; overflow: hidden; background: #201b17; box-shadow: 3px 2px #836955, 10px 13px 28px #0b0705c9; }
.panel img { width: 100%; height: 100%; object-fit: cover; }
.panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px #ffecd341; }
.preview[data-finish="gloss"] .panel::after { background: linear-gradient(130deg,#ffffff2a,transparent 41%); }
.preview[data-finish="matte"] .panel img { filter: contrast(.91) saturate(.9); }
.upload { text-align: center; border: 1px dashed #9d794d; border-radius: 9px; background: #1d1610; padding: 13px; position: relative; }
.upload.drag { background: #3b2816; border-color: var(--gold); }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.upload label { display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; padding: 7px 4px; font-weight: 700; overflow-wrap: anywhere; }
.upload label svg { flex-shrink: 0; color: var(--gold); }
small, .hint, .status { color: var(--muted); font-size: .86rem; }
.status { margin: 8px 0; }
.status:empty { display: none; }
fieldset { border: 0; padding: 0; margin: 17px 0; min-width: 0; }
legend { font-size: .88rem; font-weight: 680; margin-bottom: 7px; padding: 0; }
.options { display: flex; flex-wrap: wrap; gap: 7px; }
.options label { display: flex; position: relative; cursor: pointer; }
.options input { opacity: 0; position: absolute; width: 1px; height: 1px; }
.options span { border: 1px solid var(--border); display: grid; place-items: center; min-height: 42px; border-radius: 6px; padding: 6px 11px; font-size: .89rem; }
.options input:checked + span { border-color: var(--gold); color: var(--gold); background: #2c2015; }
.options input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.range { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; font-size: .88rem; }
.range input { flex: 1 1 100px; accent-color: var(--gold); }
.order-row { border-top: 1px solid var(--border); margin-top: 19px; padding-top: 17px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.order-row strong, .order-row small { display: block; }
.order-row strong { color: var(--gold); font-size: 1.6rem; line-height: 1.2; }
.order-row + p { margin: 8px 0 0; }
.format-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.format-card { color: var(--paper); background: var(--card); border: 1px solid var(--border); border-radius: 9px; min-width: 0; overflow: hidden; padding: 20px 12px 16px; text-align: center; }
.format-card:hover { border-color: var(--gold); }
.format-art { height: clamp(80px, 12vw, 175px); display: grid; place-items: end center; margin-bottom: 12px; }
.format-art img { width: var(--art-width); aspect-ratio: var(--ratio); object-fit: cover; box-shadow: 2px 3px #8e6840, 4px 8px 20px #090604; }
.format-card b, .format-card span { display: block; }
.format-card span { color: var(--gold); font-size: .88rem; }
.material { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.material img { width: 100%; height: 100%; object-fit: cover; }
.material > div { padding: clamp(24px, 4vw, 56px); }
.material h2 { margin-bottom: 14px; }
.material div > p:not(.eyebrow) { color: var(--muted); margin-bottom: 20px; }
.footer { border-top: 1px solid var(--border); margin-top: 62px; padding-block: 24px; display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.footer .brand { width: 115px; }
.footer p { margin: 0; color: var(--muted); font-size: .86rem; }
dialog { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(100%, 460px); max-width: none; max-height: none; height: 100%; height: 100dvh; background: #191410; color: var(--paper); border: 0; border-left: 1px solid var(--border); padding: 22px; }
dialog::backdrop { background: #080604bb; }
.cart-header, .line-row, .cart-total { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cart-header { margin-bottom: 22px; }
.cart-header h2 { font-size: 1.85rem; }
.icon-button { display: grid; place-items: center; width: 42px; }
.line-item { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 13px; border-bottom: 1px solid var(--border); padding: 12px 0; }
.line-item img { width: 76px; height: 76px; object-fit: cover; border-radius: 4px; }
.quantity { display: inline-flex; align-items: center; gap: 7px; }
.quantity button { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 5px; background: var(--bg); color: var(--paper); }
.line-row { margin-top: 6px; }
.cart-total { padding: 18px 0 10px; color: var(--gold); font-weight: 700; }
.text-button { background: transparent; border: 0; color: var(--gold); text-decoration: underline; padding: 5px 0; font-size: .86rem; }
dialog > .button { width: 100%; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .header .brand { width: 154px; }
  .header-actions { gap: 10px; }
  .hero-copy { width: 61%; }
  .hero-visual { inset-inline-start: 36%; }
}
@media (max-width: 660px) {
  html { scroll-padding-top: 16px; }
  .wrap { width: calc(100% - 32px); }
  .header-inner { flex-wrap: wrap; justify-content: space-between; gap: 0 4px; padding-top: 8px; }
  .header .brand { width: 130px; }
  nav { flex: 1 0 100%; order: 3; justify-content: space-between; gap: 8px; border-top: 1px solid #ffffff16; margin-top: 6px; }
  nav a { padding: 9px 2px; }
  .hero { display: flex; flex-direction: column; }
  .hero-visual { position: relative; inset: auto; order: 2; height: clamp(235px, 66vw, 415px); z-index: 0; }
  .hero-visual::after { background: linear-gradient(180deg, #100c09 0%, transparent 20%); }
  .hero-visual img { object-fit: cover; object-position: center 48%; }
  .hero-inner { min-height: 0; }
  .hero-copy { width: 100%; padding: 31px 0 12px; }
  h1 { font-size: clamp(2.25rem, 9vw, 3.65rem); margin-bottom: 15px; }
  .hero-text { margin-bottom: 18px; }
  .hero-actions .button { padding-inline: 11px; }
  /* Keep the original mobile masthead and hero metrics in Android WebView. */
  .header nav { font-size: 14.4px; }
  .header .language button { font-size: 13.6px; }
  .header .bag span { font-size: 12px; }
  .hero { font-size: 16px; }
  .hero .eyebrow { font-size: 12px; }
  .hero h1 { font-size: clamp(clamp(28px, 10vw, 36px), 9vw, 58.4px); }
  .hero-text { font-size: 16.96px; }
  .hero-actions { flex-wrap: nowrap; }
  .hero-actions .button { min-width: 0; font-size: clamp(12px, 3.75vw, 14.72px); }
  html[lang="ru"] .hero-actions .button { padding-inline: 6px; font-size: clamp(11px, 3.45vw, 14.72px); }
  .process-inner { padding: 13px 0; }
  .process-inner > div { flex-direction: column; text-align: center; padding-inline: 4px; gap: 7px; font-size: .79rem; line-height: 1.25; }
  .round { width: 37px; height: 37px; }
  .round svg { width: 18px; height: 18px; }
  .studio-grid, .material { grid-template-columns: minmax(0, 1fr); }
  .preview { position: static; }
  .stage { height: clamp(210px, 70vw, 340px); }
  .format-grid { gap: 6px; }
  .format-card { padding: 9px 4px; font-size: .86rem; }
  .format-art { height: 18vw; }
  .material img { height: 200px; }
  .footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.brand img { mix-blend-mode: screen; }
@media (max-width: 660px) and (min-height: 620px) {
  .preview { position: sticky; top: 8px; z-index: 1; }
  .stage { height: clamp(155px, 49vw, 225px); }
  .preview-top, .preview-bottom { padding-block: 8px; }
}

.crop-controls { display: grid; gap: 6px; margin-bottom: 10px; }
.crop-controls .range { margin: 0; }
.crop-controls .text-button { justify-self: start; }
.panel img { position: absolute; max-width: none; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 15px; font-size: .85rem; }
.legal-links a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
#cart .full-button { width: 100%; }
.action-row { display: block; margin-top: 8px; }
.checkout-form { display: grid; gap: 12px; }
.checkout-form > .text-button { justify-self: start; }
.checkout-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 9px; }
.checkout-fields .wide { grid-column: 1/-1; }
.checkout-fields label { display: block; font-size: .88rem; }
.checkout-fields input, .checkout-fields select { display: block; width: 100%; min-width: 0; min-height: 42px; margin-top: 3px; padding: 8px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--paper); font: inherit; }
.shop-notice { background: var(--bg); border: 1px solid var(--border); border-radius: 5px; padding: 10px; }
.shop-notice p, .checkout-form .hint { margin: 3px 0; overflow-wrap: anywhere; }
.checkout-form p:empty, #order-locker:empty { display: none; }
.locker-search { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; margin-block: 5px; }
.locker-search .button { min-height: 42px; padding: 4px 9px; }
.locker-search input { margin: 0; }
#locker-options { min-inline-size: 0; margin: 10px 0 6px; padding: 0; border: 0; }
#locker-options legend { margin-bottom: 5px; font-weight: 700; }
.locker-results { display: grid; gap: 4px; max-height: 15rem; overflow: auto; }
.locker-results label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; }
.locker-results label:has(:checked) { border-color: var(--gold); }
.locker-results label span { min-width: 0; overflow-wrap: anywhere; }
.locker-results input { flex: none; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--gold); }
.checkout-summary { margin: 0; }
.checkout-summary > div { display: flex; justify-content: space-between; gap: 10px; margin: 4px 0; }
.checkout-summary dd { margin: 0; text-align: end; }
.grand-total { color: var(--gold); font-weight: 700; border-top: 1px solid var(--border); padding-top: 6px; }
.information { max-width: 850px; padding-block: 32px 54px; }
.information > section { border-top: 1px solid var(--border); padding-block: 24px; }
.information p { max-width: 70ch; }
.information .legal-links { margin: 18px 0; }
.information .legal-links a { padding-block: 4px; }
@media (max-width: 420px) {
  .checkout-fields { grid-template-columns: minmax(0,1fr); }
  #cart { padding: 16px; }
}
