/* MR.SUN WORKSHOP — dark atelier theme */
:root {
  --bg: #121110;
  --bg-soft: #1b1917;
  --panel: #211e1b;
  --line: #35302a;
  --text: #ece7df;
  --muted: #a89f92;
  --accent: #c9a06c;
  --accent-deep: #9a7443;
  --danger: #c96c5c;
  --maxw: 1180px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18,17,16,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-size: 19px; font-weight: 600; letter-spacing: .14em; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 30px; font-size: 14px; letter-spacing: .05em; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); font-size: 18px; padding: 6px 12px; border-radius: 6px; cursor: pointer; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; opacity: .55; }
.hero .veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,17,16,.92) 0%, rgba(18,17,16,.55) 45%, rgba(18,17,16,.15) 100%); }
.hero-in { position: relative; max-width: 640px; padding: 90px 0; }
.hero .eyebrow { color: var(--accent); font-size: 13px; letter-spacing: .28em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-size: 46px; line-height: 1.15; font-weight: 600; margin-bottom: 20px; }
.hero p.lead { color: var(--muted); font-size: 17px; max-width: 480px; margin-bottom: 32px; }
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 4px;
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  transition: all .2s; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #17130e; }
.btn-primary:hover { background: #dcb27e; }
.btn-ghost { border-color: var(--line); color: var(--text); margin-left: 14px; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.sec-head .kicker { color: var(--accent); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }
.sec-head h2 { font-size: 32px; font-weight: 600; margin: 12px 0 14px; }
.sec-head p { color: var(--muted); }

.usp-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); padding: 26px 0; }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.usp { text-align: center; font-size: 13.5px; color: var(--muted); }
.usp b { display: block; color: var(--text); font-size: 14.5px; margin-bottom: 3px; }

/* two lines */
.lines-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.line-card { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.line-card img { height: 420px; width: 100%; object-fit: cover; transition: transform .5s; }
.line-card:hover img { transform: scale(1.03); }
.line-card .overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; background: linear-gradient(180deg, transparent 40%, rgba(10,9,8,.9) 100%); }
.line-card h3 { font-size: 24px; margin-bottom: 8px; }
.line-card p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.line-card .price { color: var(--accent); font-size: 14px; letter-spacing: .05em; }

/* product grid */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.prod-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); transition: border-color .2s; }
.prod-card:hover { border-color: var(--accent-deep); }
.prod-card img { height: 300px; width: 100%; object-fit: cover; }
.prod-card .pc-body { padding: 18px 20px 22px; }
.prod-card .tag { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.prod-card h3 { font-size: 17px; margin: 6px 0 4px; }
.prod-card p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.prod-card .from { font-size: 14px; color: var(--text); }
.prod-card .from b { color: var(--accent); font-size: 16px; }

/* gallery */
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gal-grid img { height: 220px; width: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.gal-grid .tall img { height: 100%; }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step { border-top: 2px solid var(--accent-deep); padding-top: 18px; }
.step::before { counter-increment: step; content: "0" counter(step); color: var(--accent); font-size: 13px; letter-spacing: .2em; display: block; margin-bottom: 10px; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* craft split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split img { border-radius: 10px; border: 1px solid var(--line); }
.split h2 { font-size: 28px; margin-bottom: 16px; }
.split p { color: var(--muted); margin-bottom: 14px; font-size: 15px; }

/* ---------- configurator ---------- */
.cfg { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.cfg-main { display: flex; flex-direction: column; gap: 34px; }
.cfg-block h3 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.cfg-block h3 em { font-style: normal; color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 13px; margin-left: 8px; }
.opt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.brand-row { grid-column: 1 / -1; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-top: 8px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.opt {
  border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px;
  cursor: pointer; transition: all .15s; background: var(--panel);
}
.opt:hover { border-color: var(--accent-deep); }
.opt.sel { border-color: var(--accent); background: rgba(201,160,108,.08); }
.opt b { display: block; font-size: 14.5px; font-weight: 500; }
.opt span { font-size: 12.5px; color: var(--muted); }
.opt .p { float: right; font-size: 13px; color: var(--accent); }
.swatches { display: flex; gap: 14px; flex-wrap: wrap; }
.swatch { text-align: center; cursor: pointer; }
.swatch img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; }
.swatch.sel img { border-color: var(--accent); }
.swatch span { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.tiers .opt { padding: 16px 18px; }
.tiers .opt p { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.upl { border: 1px dashed var(--line); border-radius: 8px; padding: 26px; text-align: center; color: var(--muted); font-size: 13.5px; cursor: pointer; transition: border-color .2s; }
.upl:hover { border-color: var(--accent-deep); }
.upl input { display: none; }
.upl .fname { color: var(--accent); display: block; margin-top: 8px; }
.field { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 12px 14px; font-size: 14px; font-family: inherit; }
.field:focus { outline: none; border-color: var(--accent-deep); }
label.lbl { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }

.summary { position: sticky; top: 92px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
.summary h3 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.sum-row b { color: var(--text); font-weight: 500; text-align: right; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 6px; }
.sum-total .lbl2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sum-total .amt { font-size: 30px; font-weight: 600; color: var(--accent); }
.summary .note { font-size: 12px; color: var(--muted); margin: 12px 0 18px; }
.summary .btn { width: 100%; text-align: center; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin: 16px 0; cursor: pointer; }
.chk input { margin-top: 3px; accent-color: var(--accent); }

/* ---------- faq ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item h3 { font-size: 16.5px; font-weight: 500; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-item h3::after { content: "+"; color: var(--accent); font-size: 20px; }
.faq-item.open h3::after { content: "–"; }
.faq-item .a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--muted); font-size: 14.5px; }
.faq-item.open .a { max-height: 400px; }
.faq-item .a p { padding: 14px 0 4px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 48px 0 34px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; }
.foot-grid h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.foot-grid a, .foot-grid p { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 9px; }
.foot-grid a:hover { color: var(--text); }
.copyright { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* page hero (inner pages) */
.page-hero { padding: 70px 0 40px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.page-hero h1 { font-size: 36px; font-weight: 600; }
.page-hero p { color: var(--muted); margin-top: 10px; max-width: 560px; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.vis { opacity: 1; transform: none; }


@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.vis { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* toast */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--accent); color: #17130e; padding: 13px 26px; border-radius: 6px;
  font-size: 14px; font-weight: 600; opacity: 0; transition: all .35s; z-index: 99; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero h1 { font-size: 34px; }
  .lines-grid, .split, .cfg { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr 1fr; }
  .usp-grid, .steps { grid-template-columns: 1fr 1fr; }
  .gal-grid { grid-template-columns: 1fr 1fr; }
  .summary { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 20px 24px; gap: 16px;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .prod-grid, .usp-grid, .steps, .opt-grid { grid-template-columns: 1fr; }
  .hero { min-height: 64vh; }
  section { padding: 60px 0; }
}


.quickline {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 20px 0 0; padding: 13px 16px;
  background: rgba(201,160,108,.07);
  border: 1px solid rgba(201,160,108,.22);
  border-radius: 8px;
  font-size: 13.5px; line-height: 1.65; color: var(--muted);
}
.quickline b { color: var(--accent); font-weight: 600; white-space: nowrap; }
@media (max-width: 700px) {
  .quickline { flex-direction: column; gap: 4px; }
  .quickline b { white-space: normal; }
}


.opt.opt-rec { position: relative; border-color: rgba(201,160,108,.34); }
.opt .rec {
  display: inline-block; margin-bottom: 6px;
  background: var(--accent); color: #17140f;
  font-size: 9.5px; font-weight: 700; font-style: normal;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 99px;
}


.cfg .opt .th {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px; margin-bottom: 6px;
}
.cfg .opt .th .p { float: none; flex: 0 0 auto; font-size: 12.5px; color: var(--accent); }
.cfg .opt .th b { display: block; font-size: 14px; line-height: 1.35; }
.cfg .opt p { font-size: 12px; color: var(--muted); line-height: 1.55; }


.cform {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 26px 22px;
}
.cform .cf-head { margin-bottom: 20px; }
.cform .cf-head h2 { margin: 0 0 8px; font-size: 22px; }
.cform .cf-head p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.cf-cell { display: flex; flex-direction: column; }
.cform textarea { resize: vertical; min-height: 118px; }
select.field {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
select.field option { background: var(--panel); color: var(--text); }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cf-foot { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; margin-top: 22px; }
.cf-foot .btn { margin: 0; }
.cf-note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.6; max-width: 400px; }
.cf-note a { color: var(--accent); }
.qm-fine { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); min-height: 18px; line-height: 1.6; }
.qm-fine.err { color: #e0836a; }
.qm-fine.ok { color: #7fb98a; }


.cf-done {
  background: rgba(201,160,108,.07); border: 1px solid rgba(201,160,108,.30);
  border-radius: 12px; padding: 30px 28px;
}
.cf-done .cf-tick {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(201,160,108,.16); color: var(--accent); font-size: 18px; margin-bottom: 16px;
}
.cf-done h3 { margin: 0 0 12px; font-size: 20px; }
.cf-done p { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.cf-done b { color: var(--text); font-weight: 500; }
.cf-done .cf-ticket {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12.5px; letter-spacing: .01em;
}
.cf-done .cf-ticket + .cf-ticket { margin-top: 6px; padding-top: 0; border-top: 0; }
.cf-done .cf-k {
  color: var(--muted); opacity: .8; font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; margin-right: 8px;
}
.cf-done .cf-done-note { margin-bottom: 0; font-size: 12px; opacity: .85; }


.ask-wrap { display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: start; }
.ask-form { display: flex; flex-direction: column; }
.ask-form .lbl { margin-top: 16px; margin-bottom: 6px; font-size: 12.5px; color: var(--muted); }
.ask-form .lbl:first-child { margin-top: 0; }
.ask-form .req { color: var(--accent); font-size: 11px; letter-spacing: .04em; margin-left: 6px; }
.ask-form .tag-opt { color: var(--muted); opacity: .7; font-size: 11px; letter-spacing: .04em; margin-left: 6px; }
.ask-form .btn { margin-top: 22px; align-self: flex-start; }
.ask-fine { font-size: 12px; color: var(--muted); line-height: 1.65; margin-top: 14px; }
.ask-ip {
  font-size: 12px; color: var(--muted); line-height: 1.65; opacity: .8;
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line);
}
.ask-side {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 26px; position: sticky; top: 92px;
}
.ask-side h3 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.ask-mail { font-size: 15px; color: var(--text); word-break: break-all; }
.ask-meta { font-size: 12.5px; color: var(--muted); line-height: 1.65; margin-top: 6px; }
.ask-side hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.ask-list { list-style: none; padding: 0; margin: 0; }
.ask-list li { font-size: 13px; color: var(--muted); line-height: 1.65; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ask-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.ask-list b { color: var(--text); font-weight: 500; }
.ask-link { display: inline-block; margin-top: 20px; font-size: 13px; color: var(--accent); }
@media (max-width: 820px) {
  .ask-wrap { grid-template-columns: 1fr; gap: 30px; }
  .ask-side { position: static; }
  .cf-grid { grid-template-columns: 1fr; }
  .cform { padding: 22px 18px 18px; }
  .cf-foot { flex-direction: column; align-items: stretch; }
  .cf-foot .btn { width: 100%; }
  .cf-done { padding: 24px 20px; }
}


.faq-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  margin: 44px 0 10px; padding: 26px 28px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
}
.faq-cta h3 { font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.faq-cta p { font-size: 13.5px; color: var(--muted); }
.faq-cta .btn { flex: 0 0 auto; }
@media (max-width: 640px) {
  .faq-cta { flex-direction: column; align-items: flex-start; }
}

/* ---------- 404 ---------- */
.nf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.nf-card {
  display: block; padding: 22px 20px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg-soft); transition: .18s;
}
.nf-card:hover { border-color: var(--accent-deep); transform: translateY(-2px); }
.nf-card b { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 500; color: var(--text); }
.nf-card span { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.nf-meta { margin-top: 26px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.nf-meta b { color: var(--text); font-weight: 500; }
@media (max-width: 820px) { .nf-grid { grid-template-columns: 1fr; } }


.cta-ask { margin-top: 20px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.cta-ask a { color: var(--accent); border-bottom: 1px solid rgba(201,160,108,.35); }
.cta-ask a:hover { border-bottom-color: var(--accent); }


.policy h2 { font-size: 22px; font-weight: 500; color: var(--accent); margin: 44px 0 8px; }
.policy h2:first-child { margin-top: 0; }
.policy p { color: var(--muted); font-size: 14.5px; line-height: 1.8; margin-bottom: 8px; }
.policy p b { color: var(--text); font-weight: 500; }
.policy a { color: var(--accent); border-bottom: 1px solid rgba(201,160,108,.35); }
.policy a:hover { border-bottom-color: var(--accent); }
.policy ul { margin: 6px 0 12px; padding-left: 18px; }
.policy li { color: var(--muted); font-size: 14.5px; line-height: 1.8; margin-bottom: 6px; }
