:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --panel: #151517;
  --border: #343438;
  --text: #fafafa;
  --muted: #b1b1b7;
  --green: #a7f3c3;
  font: 16px/1.55 Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; }
button, select, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.wrap { width: min(1176px, calc(100% - clamp(32px, 9vw, 124px))); margin-inline: auto; }
.header, .footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header { min-height: 82px; border-bottom: 1px solid var(--border); }
.header nav { display: flex; gap: clamp(14px, 3vw, 36px); }
.header nav a, .footer a { text-decoration: none; }
.header nav a:hover, .header nav [aria-current] { color: var(--green); }
.wordmark { font-size: 1.55rem; font-weight: 850; letter-spacing: -.09em; white-space: nowrap; text-decoration: none; }
.wordmark span, .catalogue h1 span { color: var(--green); }
.hero { padding-block: clamp(70px, 10vw, 148px) clamp(72px, 8vw, 112px); }
.eyebrow { margin: 0 0 19px; color: var(--muted); }
.eyebrow span { width: 9px; height: 9px; display: inline-block; border-radius: 50%; background: var(--green); margin-inline-end: 8px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.9rem, 7.15vw, 7rem); line-height: .98; letter-spacing: -.071em; font-weight: 780; text-wrap: balance; }
h1 em { font-style: normal; color: var(--green); }
h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); line-height: 1.12; letter-spacing: -.05em; }
h3 { font-size: 1.25rem; letter-spacing: -.03em; }
.intro { font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 580px; color: var(--muted); margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--text); border: 1px solid transparent; color: var(--bg); text-decoration: none; font-weight: 700; padding: 10px 19px; border-radius: 999px; }
.button:hover { background: var(--green); }
.button.secondary { background: transparent; border-color: var(--border); color: var(--text); }
.button.secondary:hover { background: var(--panel); border-color: var(--muted); }
.button.small { font-size: .9rem; white-space: nowrap; }
.section { border-top: 1px solid var(--border); padding-block: 38px 54px; scroll-margin-top: 16px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; }
.section-heading p, .process p, .price-card p, .results, .dialog-head p { color: var(--muted); margin-top: 8px; }
.text-link { text-underline-offset: 4px; }
.empty { border: 1px dashed var(--border); padding: 24px; border-radius: 14px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 15px; }
.tiles:empty { display: none; }
.tile { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--border); background: var(--panel); color: inherit; border-radius: 14px; padding: 0; text-align: left; min-width: 0; overflow: hidden; }
.tile:hover { border-color: var(--muted); }
.tile-image { height: clamp(240px, 34vw, 340px); display: grid; place-items: center; background: #232327; border-bottom: 1px solid var(--border); padding: 13px; }
.tile img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.tile-text { display: grid; gap: 4px; padding: 14px; }
.tile-text small { color: var(--muted); }
.process { padding-inline-start: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px; }
.process li::marker { color: var(--green); }
.price-card { background: var(--panel); padding: clamp(23px, 4vw, 48px); border: 1px solid var(--border); border-radius: 18px; }
.price-card h3 { margin-top: 24px; }
.price-card .button, .price-card .payment-note { margin-top: 20px; }
.footer { border-top: 1px solid var(--border); padding-block: 24px; justify-content: flex-start; flex-wrap: wrap; }
.catalogue { min-height: 62vh; padding-block: clamp(38px, 7vw, 90px); }
.catalogue h1 { margin-top: 20px; }
.catalogue [data-gallery] { margin-top: 32px; }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.filter label { font-weight: 650; }
.filter label { display: grid; gap: 5px; flex: 0 1 260px; min-width: 0; }
.filter :is(input, select) { width: 100%; }
select, input { min-height: 42px; color: inherit; background: var(--panel); border: 1px solid var(--border); border-radius: 9px; padding: 7px 12px; }
.results { min-height: 26px; margin-bottom: 12px; }
dialog { padding: 0; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 18px; width: min(1080px, calc(100% - 32px)); max-height: min(88dvh, 960px); overflow: auto; }
dialog::backdrop { background: rgb(0 0 0 / .76); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--panel); position: sticky; top: 0; z-index: 1; border-bottom: 1px solid var(--border); padding: 17px clamp(16px, 3vw, 28px); }
.dialog-head h2 { font-size: clamp(1.27rem, 3vw, 1.8rem); }
.dialog-head p { margin-top: 2px; }
.icon-button { border: 1px solid var(--border); background: var(--bg); color: var(--text); width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; font-size: 1.5rem; }
.gallery-content, .preview-body { padding: clamp(16px, 3vw, 28px); }
.preview-body img { display: block; width: 100%; height: auto; background: var(--bg); border-radius: 8px; }
@media (max-width: 640px) {
  .header { flex-wrap: wrap; padding-block: 12px; gap: 10px; }
  .header nav { order: 1; flex-basis: 100%; margin-bottom: 4px; }
  .section-heading { align-items: start; flex-direction: column; }
  .process { grid-template-columns: 1fr; gap: 14px; }
}
.text-page { max-width: 760px; padding-block: clamp(36px, 7vw, 80px); }
.text-page h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
.text-page h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 32px; }
.text-page p { color: var(--muted); margin-top: 12px; }
.text-page .draft-label { color: var(--green); margin: 0 0 10px; }
.account-form { display: grid; max-width: 470px; gap: 16px; margin-top: 24px; justify-items: start; }
.account-form[hidden] { display: none; }
.account-form label { display: grid; gap: 7px; width: 100%; }
.account-form input:not([type="hidden"]) { min-height: 46px; width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--panel); }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.currency-label { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--muted); }
