:root {
  color-scheme: light;
  --ink: #11100e;
  --muted: #625c51;
  --paper: #fbf8ef;
  --ivory: #fffdf8;
  --gold: #c99a37;
  --deep-gold: #8c6118;
  --line: rgba(17, 16, 14, .14);
  --soft: #eee5d3;
  --shadow: 0 24px 80px rgba(17, 16, 14, .15);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: hidden;
}
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, a { touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid rgba(201,154,55,.85); outline-offset: 3px; }
.is-hidden { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 248, 239, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand img { width: 116px; height: auto; }
.brand span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav a { color: #312b21; }
.nav a:hover { color: var(--deep-gold); }
.lang-switch { display: flex; gap: 6px; }
.lang-switch button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ivory);
}
.lang-switch button[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,154,55,.18); }

.hero {
  min-height: calc(100svh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: center;
  gap: clamp(26px, 5vw, 72px);
  padding: clamp(34px, 7vw, 84px) clamp(18px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero > * { min-width: 0; }
.hero h1, .display {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 96px);
  line-height: .95;
  font-weight: 500;
}
.eyebrow { color: var(--deep-gold); text-transform: uppercase; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.lead { font-size: clamp(18px, 2.1vw, 24px); color: #3c352b; max-width: 680px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  padding: 12px 19px;
  background: var(--ink);
  color: white;
  font-weight: 750;
}
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(17,16,14,.12); }
.btn svg, .icon svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 2; fill: none; }

.photo-scene {
  position: relative;
  margin: 0;
  width: 100%;
  min-height: 520px;
  border-radius: 8px;
  overflow: hidden;
  background: #19130f;
  box-shadow: var(--shadow);
}
.photo-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,16,14,.04), rgba(17,16,14,.24));
  pointer-events: none;
}
.photo-scene img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}
.photo-scene.is-rings img { object-position: 50% 50%; }
.photo-scene.is-display img { object-position: 44% 50%; }
.photo-scene.is-workbench img { object-position: 50% 52%; }
.scene-caption {
  position: absolute;
  z-index: 2;
  left: 22px;
  bottom: 22px;
  max-width: 280px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255,253,248,.88);
  backdrop-filter: blur(12px);
  color: #211c17;
}
.image-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.image-pair img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

section { padding: clamp(54px, 8vw, 104px) clamp(18px, 6vw, 88px); }
.rail { max-width: 1180px; margin: 0 auto; }
.section-title { max-width: 780px; margin-bottom: 34px; }
.section-title h2 { margin: 8px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 5vw, 58px); line-height: 1; font-weight: 500; }
.grid { display: grid; gap: 18px; }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service, .contact-panel, .variant-card {
  background: rgba(255,253,248,.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}
.service h3, .contact-panel h3, .variant-card h3 { margin: 0 0 10px; font-size: 21px; }
.service p, .contact-panel p, .variant-card p { margin: 0; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 68px); align-items: start; }
.facts { display: grid; gap: 10px; }
.fact { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fact strong { min-width: 130px; }
.muted { color: var(--muted); }
.dark {
  background: #14110e;
  color: #fff8e8;
}
.dark .muted { color: #d2c4aa; }
.dark .service, .dark .contact-panel { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.13); }
.dark .btn.secondary { color: #fff8e8; border-color: rgba(255,255,255,.26); }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 6vw, 88px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #14110e;
  color: #fff8e8;
  padding: 12px 16px;
  border-radius: 999px;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.premium-body { background: #100f0d; color: #fff8e8; }
.premium-body .site-header { background: rgba(16,15,13,.84); border-color: rgba(255,255,255,.12); }
.premium-body .nav a, .premium-body .brand span { color: #efe3ca; }
.premium-body .lang-switch button { background: #211b14; color: #fff8e8; border-color: rgba(255,255,255,.2); }
.premium-body .hero { border-color: rgba(255,255,255,.12); }
.premium-body .lead { color: #efe3ca; }
.premium-body .btn { background: #e2b24c; color: #18110a; border-color: #e2b24c; }
.premium-body .btn.secondary { background: transparent; color: #fff8e8; border-color: rgba(255,255,255,.22); }
.premium-body .service, .premium-body .contact-panel { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.13); }
.premium-body .muted { color: #d7c7a7; }
.premium-body .footer { border-color: rgba(255,255,255,.12); color: #d7c7a7; }

.atelier-body .hero { grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); }

.dashboard { min-height: 100svh; padding: clamp(22px, 4vw, 42px); }
.dashboard-shell { max-width: 1220px; margin: 0 auto; }
.dashboard-head { display: flex; justify-content: space-between; align-items: start; gap: 24px; margin-bottom: 22px; }
.dashboard-title { max-width: 650px; }
.dashboard-title h1 { margin: 8px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 5vw, 62px); line-height: 1; font-weight: 500; }
.variant-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.variant-card { display: grid; gap: 14px; text-align: left; color: inherit; }
.variant-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--soft); }
.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: rgba(17,16,14,.72);
  padding: 22px;
}
.preview-modal.is-open { display: grid; }
.preview-inner {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1220px, 100%);
  height: min(820px, 100%);
  margin: auto;
  background: var(--paper);
  border-radius: 8px;
  overflow: hidden;
}
.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border-bottom: 1px solid var(--line); }
.preview-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.preview-controls button, .preview-open {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ivory);
  padding: 9px 13px;
}
.frame-wrap { display: grid; place-items: center; min-height: 0; background: #d8d0c2; }
.preview-frame { width: 100%; height: 100%; border: 0; background: white; }
.preview-modal.is-mobile .preview-frame { width: 390px; max-width: 94%; height: 92%; border-radius: 24px; box-shadow: 0 20px 70px rgba(0,0,0,.24); }

@media (max-width: 900px) {
  .site-header { align-items: flex-start; }
  .nav { display: none; }
  .brand { flex-direction: column; align-items: flex-start; gap: 4px; }
  .brand span { white-space: normal; }
  .hero, .split, .two, .three, .variant-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 34px; }
  .photo-scene { min-height: 360px; }
  .image-pair { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
  .dashboard-head { align-items: center; }
  .preview-modal { padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
