/* Palette taken from traditional Buryat-Mongolian decoration:
   deep sky blue, gold, cinnabar red on warm felt/paper tones. */
:root {
  --indigo: #16224a;
  --indigo-deep: #0d1631;
  --gold: #d6a03a;
  --gold-soft: #ecd08f;
  --red: #9e1b22;
  --red-deep: #7c1319;
  --cream: #f6efe0;
  --paper: #fffaf0;
  --line: #e4d6b8;
  --ink: #2b2219;
  --muted: #7b6b55;
  --green: #2f6b4f;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='24' viewBox='0 0 32 24'%3E%3Cpath d='M0 21.5H32M27 21.5V2.5H7V15.5H20V9H13.5' fill='none' stroke='%23d6a03a' stroke-width='3'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1, h2, h3, .buy-price, .hero-caption, .card-title { font-variant-numeric: lining-nums; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.5rem; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.section { padding-top: 56px; padding-bottom: 56px; }
.prose { white-space: pre-line; font-size: 1.05rem; }
.link { color: var(--red); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* Ornament strip (алхан хээ — the "hammer" meander) */
.meander {
  height: 40px;
  background: var(--red) var(--meander) repeat-x center;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}

/* Header */
.top { background: var(--indigo); color: var(--cream); }
.top-in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--gold-soft);
}
.ulzy { width: 34px; height: 34px; color: var(--gold); flex: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.nav a {
  text-decoration: none; padding: 6px 0; font-size: .95rem; letter-spacing: .06em;
  text-transform: uppercase; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.on { color: var(--gold-soft); border-bottom-color: var(--gold); }
.langs { display: flex; gap: 8px; }
.nav .lang { border: 1px solid var(--gold); padding: 3px 10px; border-radius: 3px; color: var(--gold-soft); }

/* Buttons */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none;
  background: var(--red); color: #fff; border: 2px solid var(--gold);
  padding: 12px 28px; font: 600 .95rem var(--sans); letter-spacing: .08em; text-transform: uppercase;
  transition: background .15s;
}
.btn:hover { background: var(--red-deep); }
.btn.ghost { background: transparent; color: var(--gold-soft); }
.btn.ghost:hover { background: rgba(214, 160, 58, .15); }

/* Hero */
.hero {
  color: var(--cream);
  background: radial-gradient(ellipse at 70% 40%, #25377a 0%, var(--indigo) 45%, var(--indigo-deep) 100%);
}
.hero-in {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding-top: 64px; padding-bottom: 64px;
}
.hero-kicker { color: var(--gold); letter-spacing: .3em; text-transform: uppercase; font-size: .85rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); color: var(--gold-soft); }
.hero p { font-size: 1.2rem; max-width: 30em; margin: 0 0 28px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { text-align: center; }
.hero-art .frame img { max-height: 460px; width: auto; }
.hero-caption { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gold-soft); }
.hero-empty .ulzy { width: 240px; height: 240px; opacity: .8; }

/* Gilded frame */
.frame {
  display: inline-block; padding: 12px; line-height: 0;
  background: linear-gradient(135deg, #f0d695, #b07c22 30%, #ecd08f 50%, #9a6a18 75%, #e6c377);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.frame img { display: block; border: 8px solid var(--paper); }
.frame.small { padding: 8px; max-width: 320px; }
.frame.small img { border-width: 5px; }

/* Section heading with the ulzy (endless knot) */
.heading { text-align: center; margin-bottom: 36px; }
.heading .ulzy { display: block; margin: 0 auto 10px; width: 44px; height: 44px; color: var(--red); }
.heading span { display: inline-block; padding: 0 22px; position: relative; }
.heading span::before, .heading span::after {
  content: ''; position: absolute; top: 50%; width: 60px; height: 2px; background: var(--gold);
}
.heading span::before { right: 100%; }
.heading span::after { left: 100%; }
.heading.light { color: var(--gold-soft); }
.heading.light .ulzy { color: var(--gold); }

/* Gallery grid */
.grid { columns: 3 300px; column-gap: 28px; }
.card {
  display: block; break-inside: avoid; margin: 0 0 28px; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); padding: 12px;
  box-shadow: 0 2px 8px rgba(60, 40, 10, .08); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(60, 40, 10, .2); }
.card img { display: block; width: 100%; }
.card-body { padding: 12px 4px 2px; }
.card-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.2; }
.card-meta { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.card-status { margin-top: 8px; font-size: .88rem; font-weight: 600; }
.card-status.ok { color: var(--green); }
.card-status.ok::before { content: '● '; }
.card-status.sold { color: var(--red); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.chips a {
  text-decoration: none; padding: 7px 18px; border: 1px solid var(--gold); background: var(--paper);
  font-size: .92rem; letter-spacing: .04em;
}
.chips a.on, .chips a:hover { background: var(--indigo); color: var(--gold-soft); border-color: var(--indigo); }

/* Indigo band */
.band { background: var(--indigo); color: var(--cream); padding: 56px 0; }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.services > div { border: 1px solid rgba(214, 160, 58, .5); padding: 26px; text-align: center; }
.services h3 { color: var(--gold-soft); }
.services p { margin: 0; }

.about-teaser, .about { display: flex; gap: 44px; align-items: center; flex-wrap: wrap; }
.about { align-items: flex-start; }
.about-teaser > div:last-child, .about > div:last-child { flex: 1 1 320px; }

.cta { text-align: center; padding: 64px 0; background: var(--paper); border-top: 1px solid var(--line); }
.cta p { margin: 0 0 24px; font-size: 1.1rem; }

/* Work page */
.work { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 20px; }
.work-art { text-align: center; }
.work-art .frame { cursor: zoom-in; box-shadow: 0 14px 34px rgba(60, 40, 10, .35); }
.work-art .frame img { max-height: 78vh; width: auto; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 20px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.buybox {
  margin: 26px 0; padding: 22px; background: var(--paper); border: 1px solid var(--gold);
  border-left: 6px solid var(--red);
}
.buy-status { font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.buy-status.ok { color: var(--green); }
.buy-price { font-family: var(--serif); font-size: 2rem; font-weight: 600; margin-bottom: 14px; }

/* Forms */
.form { background: var(--paper); border: 1px solid var(--line); padding: 24px; margin: 26px 0; scroll-margin-top: 20px; }
.form label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.form input, .form textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: 16px var(--sans);
  color: var(--ink); background: #fff; border: 1px solid #cdbd9b; border-radius: 2px;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.note { padding: 10px 14px; margin: 0 0 16px; font-weight: 600; }
.note.ok { background: #e3f1e6; color: var(--green); }
.note.err { background: #f8e1e1; color: var(--red); }

.contact-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.contact-links a { color: var(--red); font-weight: 600; text-decoration: none; }
.contact-links a:hover { text-decoration: underline; }
.contact-links.big { justify-content: center; font-size: 1.2rem; margin: 20px 0 8px; }

/* Footer */
.bottom { background: var(--indigo-deep); color: #cfc6b3; padding: 36px 0 20px; }
.bottom-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.bottom-name { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-soft); }
.bottom-tag { font-size: .92rem; max-width: 34em; }
.bottom-links { display: flex; flex-direction: column; gap: 4px; }
.bottom-links a { color: var(--gold-soft); text-decoration: none; }
.bottom-links a:hover { text-decoration: underline; }
.bottom-copy { margin-top: 26px; font-size: .82rem; opacity: .7; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 10; background: rgba(8, 12, 28, .95);
  display: flex; align-items: center; justify-content: center; cursor: zoom-out; padding: 12px;
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }

@media (max-width: 820px) {
  .hero-in, .work { grid-template-columns: 1fr; gap: 32px; }
  .hero-in { padding-top: 40px; padding-bottom: 44px; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .heading span::before, .heading span::after { width: 28px; }
  .brand { font-size: 1.35rem; }
  .about-teaser, .about { justify-content: center; }
}
