:root {
  --bg: #5A6A54;
  --bg-2: #4B5A45;
  --bg-dark: #313B2E;
  --paper: #F2E9D4;
  --paper-2: #EADCC1;
  --paper-3: #FBF4E4;
  --ink: #33261C;
  --muted: #6F6254;
  --light: #EADCC1;
  --light-muted: #CFC6B2;
  --line: rgba(212, 162, 58, 0.28);
  --line-dark: rgba(37, 28, 21, 0.18);
  --accent: #6B4A2F;
  --accent-2: #7B543A;
  --gold: #D4A23A;
  --gold-soft: #C8A45D;
  --gold-light: #E3BE62;
  --danger: #A84B3A;
  --ok: #85B483;
  --shadow: 0 20px 60px rgba(21, 18, 12, .28);
  --soft-shadow: 0 14px 36px rgba(30, 22, 14, .18);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --container: min(1180px, calc(100vw - 40px));
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 5%, rgba(227, 190, 98, .13), transparent 32%),
    radial-gradient(circle at 90% 0%, rgba(25, 36, 25, .44), transparent 35%),
    linear-gradient(145deg, var(--bg) 0%, var(--bg-2) 44%, var(--bg-dark) 100%);
  color: var(--light);
  font-family: var(--sans);
  line-height: 1.55;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .28;
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: var(--container); margin: 0 auto; }
.no-scroll { overflow: hidden; }
.hidden { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(49, 59, 46, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(12, 10, 7, .14);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; flex-direction: column; gap: 0; }
.logo-mark {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: .09em;
  line-height: 1;
  color: var(--gold-light);
}
.logo-sub { color: var(--light-muted); font-size: 13px; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--light-muted); }
.nav a { transition: color .2s ease; }
.nav a:hover { color: var(--gold-light); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(242, 233, 212, .12);
  color: var(--light);
  padding: 10px 14px;
}

.btn, .btn-light, .btn-ghost, .btn-small {
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--paper-3);
  padding: 14px 24px;
  border: 1px solid rgba(227, 190, 98, .35);
  box-shadow: 0 12px 28px rgba(37, 25, 14, .22);
}
.btn:hover, .btn-light:hover, .btn-small:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:disabled, .btn.disabled { opacity: .48; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-light {
  background: rgba(242, 233, 212, .12);
  color: var(--gold-light);
  border: 1px solid var(--line);
  padding: 14px 22px;
}
.btn-ghost { background: transparent; color: var(--gold-light); padding: 8px 0; }
.btn-small {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--paper-3);
  padding: 10px 16px;
  font-size: 14px;
  border: 1px solid rgba(227, 190, 98, .28);
}
.btn-small.secondary { background: var(--paper); color: var(--accent); border: 1px solid var(--line-dark); box-shadow: none; }

main { min-height: 60vh; }
.section { padding: 86px 0; }
.section.compact { padding: 54px 0; }
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.04;
  margin: 0 0 16px;
  letter-spacing: -.02em;
  color: var(--gold-light);
}
.section-kicker {
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}
.section-lead {
  color: var(--light-muted);
  font-size: 18px;
  max-width: 840px;
  margin: 0;
}
.section-action { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.two-actions { justify-content: flex-start; }
.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.hero { padding: 42px 0 64px; }
.hero-brand {
  background: rgba(31, 38, 29, .44);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 0 0 48px;
}
.hero-brand img {
  width: 100%;
  aspect-ratio: 1916 / 821;
  object-fit: cover;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 86px);
  line-height: .98;
  margin: 0 0 28px;
  letter-spacing: -.04em;
  color: var(--gold-light);
}
.hero p { color: var(--light-muted); font-size: 20px; max-width: 640px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-note { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 680px; }
.note-card {
  background: rgba(242, 233, 212, .12);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  color: var(--light);
}
.note-card strong { display: block; font-size: 28px; font-family: var(--serif); font-weight: 400; color: var(--gold-light); }
.note-card span { color: var(--light-muted); font-size: 13px; }
.hero-visual { position: relative; }
.hero-visual .frame {
  background: linear-gradient(135deg, #7B543A, #3C2618);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 18px;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}
.hero-visual img { border-radius: 22px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hero-caption {
  background: rgba(242, 233, 212, .95);
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  padding: 18px 20px;
  margin: -42px 30px 0;
  position: relative;
  box-shadow: var(--soft-shadow);
  color: var(--muted);
  font-size: 14px;
}

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 34px; }
.filter-btn {
  border: 1px solid var(--line);
  background: rgba(242, 233, 212, .12);
  color: var(--light);
  padding: 10px 16px;
  border-radius: 999px;
}
.filter-btn.active {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--gold-soft);
  box-shadow: 0 8px 20px rgba(20, 14, 8, .14);
}
.catalog-grid {
  column-count: 3;
  column-gap: 26px;
  margin-top: 8px;
}
.art-card, .step, .about-card, .review-card, .info-box, .detail-info, .gallery-main, .legal {
  background: rgba(242, 233, 212, .94);
  border: 1px solid var(--line-dark);
  color: var(--ink);
}
.art-card {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.art-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.art-card-image { position: relative; background: rgba(49, 59, 46, .88); overflow: hidden; }
.art-card-photo-link {
  display: block;
  position: relative;
  overflow: hidden;
  background: rgba(49, 59, 46, .88);
  touch-action: pan-y;
}
.art-card-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: rgba(49, 59, 46, .88);
  transition: transform .4s ease;
}
.art-card:hover .art-card-image img { transform: scale(1.025); }
.badges { position: absolute; z-index: 2; left: 14px; right: 14px; top: 14px; display: flex; justify-content: space-between; gap: 10px; }
.badge {
  background: rgba(49, 59, 46, .88);
  border: 1px solid rgba(227,190,98,.34);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--paper-2);
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(12, 10, 7, .16);
}
.badge.sold { color: #FFD4CC; }
.badge.commission { color: var(--gold-light); }
.price-badge {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  color: var(--gold-light);
}
.card-buy-overlay {
  position: absolute;
  z-index: 3;
  left: 14px;
  bottom: 14px;
  border: 1px solid rgba(227,190,98,.36);
  border-radius: 999px;
  padding: 8px 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--paper-3);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(12, 10, 7, .2);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.card-buy-overlay:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.card-buy-overlay:disabled, .card-buy-overlay.disabled { opacity: .62; cursor: not-allowed; transform: none; box-shadow: 0 8px 18px rgba(12, 10, 7, .12); }
.art-card-body { padding: 22px; color: var(--ink); }
.art-card h3 { font-family: var(--serif); font-size: 28px; font-weight: 400; margin: 0 0 8px; color: var(--accent); }
.art-meta { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.art-desc { color: #4e473e; font-size: 15px; min-height: 72px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 22px; }
.price { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--gold); }
.status-row { display: flex; align-items: center; gap: 8px; color: #47734C; font-size: 13px; font-weight: 700; }
.status-row.muted { color: var(--muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.home-gallery-grid {
  column-count: 3;
  column-gap: 26px;
  margin-top: 8px;
}
.home-art-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 26px;
  break-inside: avoid;
  background: rgba(49, 59, 46, .96);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  vertical-align: top;
  transition: transform .2s ease, box-shadow .2s ease;
}
.home-art-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.catalog-art-card {
  margin: 0 0 26px;
}

.home-art-card-image {
  position: relative;
  overflow: hidden;
  background: rgba(49, 59, 46, .96);
}
.home-art-card-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: rgba(49, 59, 46, .96);
  transition: transform .4s ease;
}
.home-art-card:hover .home-art-card-image img { transform: scale(1.025); }
.home-meta-stack {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  pointer-events: none;
}
.home-meta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 0;
  min-height: 23px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(227,190,98,.16);
  background: rgba(49, 59, 46, .40);
  color: rgba(242, 233, 212, .66);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
  box-shadow: 0 6px 14px rgba(12, 10, 7, .08);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.home-meta-badge.sold { color: rgba(255, 212, 204, .74); }
.home-meta-badge.commission { color: rgba(237, 217, 170, .74); }
.home-price-badge { color: rgba(242, 233, 212, .66); }
.home-card-title {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 96px;
  bottom: 46px;
  color: rgba(242, 233, 212, .84);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: .01em;
  text-shadow: 0 2px 10px rgba(12, 10, 7, .28);
  pointer-events: none;
}
.home-buy-overlay {
  left: 14px;
  bottom: 14px;
  padding: 5px 9px;
  border-color: rgba(227,190,98,.30);
  background: rgba(49, 59, 46, .12);
  color: rgba(242, 233, 212, .90);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(12, 10, 7, .10);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.home-buy-overlay:hover { background: rgba(49, 59, 46, .18); }

.feature-band {
  background: linear-gradient(135deg, rgba(49,59,46,.96), rgba(83,96,74,.96));
  color: var(--light);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--soft-shadow);
}
.feature-band p { color: var(--light-muted); font-size: 18px; }
.feature-band .section-title { color: var(--gold-light); }
.feature-band .btn-light { background: rgba(242,233,212,.1); }
.feature-image { border-radius: 22px; width:100%; height:100%; object-fit:cover; border:1px solid var(--line); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 34px; }
.step { border-radius: 24px; padding: 28px; }
.step-num { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--paper); display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 22px; border:1px solid var(--gold-soft); }
.step h3 { margin: 0 0 10px; font-size: 22px; color: var(--accent); }
.step p { margin: 0; color: var(--muted); }

.about-card { border-radius: 34px; padding: 28px; display: grid; grid-template-columns: 340px 1fr; gap: 36px; align-items: start; height: auto; min-height: 0; overflow: visible; box-shadow: var(--soft-shadow); }
.about-card img { width: 100%; border-radius: 24px; aspect-ratio: 3/4; object-fit: cover; object-position: center; }
.about-card h2 { font-family: var(--serif); font-size: 46px; font-weight: 400; margin: 0 0 16px; color: var(--accent); }
.about-card p { color: var(--muted); font-size: 17px; }
.about-text { min-width: 0; }
.about-description { display: grid; gap: 14px; }
.about-description p { margin: 0; line-height: 1.62; }
.education-list { display: grid; gap: 14px; margin-top: 24px; }
.education-list div { border-left: 3px solid var(--gold); padding-left: 18px; color: #423b33; }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.review-card { border-radius: 22px; padding: 24px; }
.stars { color: var(--gold); letter-spacing: 1px; margin-bottom: 14px; }
.review-card blockquote { margin: 0 0 20px; color: #413a33; }
.review-card strong { display: block; color: var(--accent); }
.review-card span { color: var(--muted); font-size: 13px; }

.detail-page { padding: 52px 0 90px; }
.back-link { display: inline-flex; margin-bottom: 24px; color: var(--gold-light); font-weight: 700; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr); gap: 46px; align-items: start; }
.gallery-main { border-radius: 30px; padding: 16px; box-shadow: var(--shadow); background: rgba(49, 59, 46, .88); border-color: var(--line); color: var(--light); }
.gallery-open { display:block; width:100%; padding:0; border:0; background:transparent; position:relative; border-radius:22px; overflow:hidden; touch-action: pan-y; }
.gallery-main img { width: 100%; border-radius: 22px; max-height: 650px; object-fit: contain; background: rgba(49, 59, 46, .88); }
.gallery-open:hover .image-action { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.image-action {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%) scale(.98);
  background:rgba(49,59,46,.85);
  border:1px solid var(--line);
  color:var(--paper);
  padding:10px 16px;
  border-radius:999px;
  opacity:0;
  transition:.18s ease;
  pointer-events:none;
  box-shadow: var(--soft-shadow);
}
.gallery-caption { margin: 14px 4px 4px; color: var(--light-muted); font-size: 14px; display: flex; justify-content: space-between; gap: 16px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.thumb { border: 2px solid rgba(234, 220, 193, .18); border-radius: 14px; overflow: hidden; background: rgba(49, 59, 46, .88); padding: 0; }
.thumb.active { border-color: var(--gold); }
.thumb img { width: 100%; height: 86px; object-fit: cover; }
.detail-info { border-radius: 30px; padding: 34px; position: sticky; top: 105px; box-shadow: var(--soft-shadow); }
.detail-info h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 5vw, 62px); line-height: 1; margin: 0 0 8px; color: var(--accent); }
.detail-author { color: var(--muted); margin-bottom: 22px; }
.detail-text p { color: #433d34; margin: 0 0 16px; }
.specs { margin: 28px 0; border-top: 1px solid var(--line-dark); }
.spec { display: grid; grid-template-columns: 120px 1fr; gap: 20px; border-bottom: 1px solid var(--line-dark); padding: 12px 0; }
.spec span:first-child { color: var(--muted); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.photo-note { margin-top: 26px; padding: 18px; border-radius: 18px; background: rgba(107,74,47,.08); color: var(--muted); font-size: 14px; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; }
.info-box { border-radius: 24px; padding: 28px; }
.info-box h3 { margin: 0 0 12px; font-size: 24px; color: var(--accent); }
.info-box p, .info-box li { color: var(--muted); }
.info-box ul { padding-left: 20px; margin: 0; }
.contact-band .info-box { background: var(--paper); }

.site-footer { border-top: 1px solid var(--line); padding: 42px 0; color: var(--light-muted); background: rgba(49,59,46,.58); }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer-inner strong { color: var(--gold-light); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--gold-light); }

.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(18, 16, 11, .62); backdrop-filter: blur(6px); }
.modal-card { position: relative; width: min(700px, 100%); max-height: 92vh; overflow: auto; background: var(--paper); color: var(--ink); border-radius: 28px; padding: 30px; box-shadow: 0 24px 90px rgba(0,0,0,.35); border:1px solid var(--line-dark); }
.modal-card h2 { font-family: var(--serif); font-weight:400; color: var(--accent); font-size: 38px; margin: 0 0 12px; }
.modal-close { position: absolute; right: 18px; top: 18px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-dark); background: var(--paper-3); color: var(--accent); }
.modal-intro { color: var(--muted); margin-top:0; }
.order-summary { background: #eadcc1; border-radius: 18px; padding: 16px 18px; margin: 18px 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid.nested { grid-template-columns: 1fr 1fr; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row.full, .full { grid-column: 1/-1; }
.form-row label { color: var(--muted); font-size: 13px; font-weight: 700; }
.form-row input, .form-row textarea, .form-row select {
  border: 1px solid var(--line-dark);
  background: var(--paper-3);
  color: var(--ink);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,162,58,.15); }
.delivery-note { background: rgba(107,74,47,.08); border:1px dashed rgba(107,74,47,.26); color:var(--muted); padding: 14px; border-radius:14px; }
.check-row { display:flex; gap:10px; align-items:flex-start; color:var(--muted); font-size:14px; line-height:1.4; }
.check-row input { margin-top:3px; }
.modal-help { color: var(--muted); font-size: 14px; margin-top: 14px; }
.rating-row { display:flex; gap:10px; flex-wrap:wrap; }
.rating-row label { cursor:pointer; }
.rating-row input { position:absolute; opacity:0; pointer-events:none; }
.rating-row span { display:inline-flex; padding:9px 12px; border:1px solid var(--line-dark); border-radius:999px; color:var(--gold); background:var(--paper-3); }
.rating-row input:checked + span { border-color:var(--gold); background:#fff7da; }

.legal { max-width: 820px; padding: 30px; border-radius:24px; }
.legal h1 { font-family: var(--serif); font-size: 52px; font-weight: 400; color:var(--accent); }
.legal h2 { margin-top: 34px; color:var(--accent); }
.legal p, .legal li { color: var(--muted); }

/* Fullscreen gallery */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
  color: var(--paper);
}
.lightbox.open { display: block; }
.lightbox-backdrop { position:absolute; inset:0; background:rgba(9,9,7,.92); backdrop-filter: blur(7px); }
.lightbox-shell { position:relative; height:100vh; display:grid; grid-template-rows: 1fr auto; }
.lightbox-viewport {
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:auto;
  padding:58px 84px 24px;
}
.lightbox-viewport img {
  max-width:100%;
  max-height:calc(100vh - 150px);
  object-fit:contain;
  border-radius:12px;
  box-shadow:0 20px 80px rgba(0,0,0,.55);
  cursor:zoom-in;
  transition: max-width .18s ease, max-height .18s ease, width .18s ease;
}
.lightbox.zoomed .lightbox-viewport { align-items:flex-start; justify-content:flex-start; }
.lightbox.zoomed .lightbox-viewport img {
  width: min(1800px, 190vw);
  max-width:none;
  max-height:none;
  cursor:zoom-out;
}
.lightbox-close {
  position:absolute;
  z-index:2;
  right:20px;
  top:18px;
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid rgba(234,220,193,.35);
  background:rgba(242,233,212,.12);
  color:var(--paper);
  font-size:28px;
}
.lightbox-nav {
  position:absolute;
  z-index:2;
  top:50%;
  transform:translateY(-50%);
  width:54px;
  height:54px;
  border-radius:50%;
  border:1px solid rgba(234,220,193,.35);
  background:rgba(242,233,212,.12);
  color:var(--paper);
  font-size:44px;
  line-height:1;
}
.lightbox-nav.prev { left:20px; }
.lightbox-nav.next { right:20px; }
.lightbox-panel {
  position:relative;
  z-index:2;
  padding:18px 24px;
  background:rgba(20,18,13,.72);
  border-top:1px solid rgba(234,220,193,.2);
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center;
}
.lightbox-panel strong { color:var(--gold-light); margin-right:12px; }
.lightbox-panel span { color:var(--light-muted); }
.lightbox-zoom { padding: 10px 16px; color:var(--paper); }

@media (max-width: 1040px) {
  .home-gallery-grid, .catalog-grid { column-count: 2; }
  .two-col, .detail-layout, .about-card, .feature-band { grid-template-columns: 1fr; }
  .detail-info { position: static; }
  .nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 78px;
    padding: 20px;
    background: var(--bg-dark);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
  }
  .nav.open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .header-actions .btn-small { display: none; }
}

@media (max-width: 720px) {
  :root { --container: min(100vw - 24px, 1180px); }
  .hero { padding-top: 28px; }
  .hero-brand { border-radius:18px; margin-bottom: 32px; }
  .hero h1 { font-size: 42px; }
  .section { padding: 58px 0; }
  .reviews-grid, .steps, .info-grid { grid-template-columns: 1fr; }
  .home-gallery-grid, .catalog-grid { column-count: 1; column-gap: 0; }
  .home-art-card { margin-bottom: 22px; border-radius: 22px; }
  .catalog-art-card { margin-bottom: 22px; }
  .home-meta-stack { top: 10px; right: 10px; gap: 6px; }
  .home-meta-badge { font-size: 10px; min-height: 20px; padding: 4px 8px; width: fit-content; white-space: nowrap; color: rgba(242, 233, 212, .62); }
  .home-price-badge { color: rgba(242, 233, 212, .62); }
  .home-card-title { left: 14px; right: 82px; bottom: 38px; font-size: 17px; }
  .home-buy-overlay { left: 10px; bottom: 10px; padding: 4px 8px; font-size: 10px; }
  .hero-note { grid-template-columns: 1fr; }
  .card-footer { flex-direction: column; align-items: flex-start; }
  .badges { left: 10px; right: 10px; top: 10px; gap: 6px; }
  .badge { font-size: 11px; padding: 5px 8px; }
  .price-badge { right: 10px; bottom: 10px; }
  .card-buy-overlay { left: 10px; bottom: 10px; padding: 7px 11px; font-size: 12px; }
  .about-card { padding: 18px; }
  .feature-band { padding: 28px; }
  .thumbs { grid-template-columns: repeat(3, 1fr); }
  .spec { grid-template-columns: 1fr; gap: 2px; }
  .form-grid, .form-grid.nested { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .logo-mark { font-size: 22px; }
  .section-title { font-size: 38px; }
  .detail-info h1 { font-size: 42px; }
  .modal-card { padding: 24px 18px; border-radius: 22px; }
  .lightbox-viewport { padding: 58px 12px 18px; }
  .lightbox-nav { display:none; }
  .lightbox-panel { flex-direction:column; align-items:flex-start; padding:14px 16px; }
  .lightbox.zoomed .lightbox-viewport img { width: 210vw; }
}


.form-message {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(212, 162, 58, .45);
  background: rgba(212, 162, 58, .10);
  color: var(--text, #eadcc1);
  font-size: 14px;
  line-height: 1.45;
}
.form-message.show { display: block; }
.form-message.error {
  border-color: rgba(196, 74, 54, .55);
  background: rgba(196, 74, 54, .14);
}
button[disabled].loading, .btn.loading {
  opacity: .7;
  cursor: wait;
}
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 1200;
  padding: 12px 16px;
  border-radius: 999px;
  color: #f4ead2;
  background: rgba(58, 42, 30, .94);
  border: 1px solid rgba(212, 162, 58, .45);
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
  font-size: 14px;
}

/* v6: T-Bank compliance blocks */
.payment-grid .wide {
  grid-column: span 2;
}
.payment-logos-link {
  display: inline-block;
  margin: 8px 0 14px;
  max-width: 100%;
}
.payment-logos {
  width: min(100%, 620px);
  height: auto;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(45, 31, 17, .12);
}
.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.support-note {
  margin-top: 18px;
  color: var(--light-muted);
  font-size: 15px;
}
.legal h2 {
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 400;
  margin-top: 30px;
}

@media (max-width: 860px) {
  .payment-grid .wide {
    grid-column: auto;
  }
}

.payment-sync-status {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(28, 73, 58, 0.1);
  color: #244638;
  font-weight: 700;
}

/* v35: SEO artwork pages */
.seo-artwork-page { padding-top: 42px; }
.seo-artwork-detail { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr); gap: 34px; align-items: start; margin-top: 22px; }
.seo-artwork-gallery, .seo-artwork-info { border-radius: 28px; }
.seo-artwork-main-image { margin: 0; background: rgba(49, 59, 46, .92); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--soft-shadow); }
.seo-artwork-main-image img { display: block; width: 100%; height: auto; }
.seo-artwork-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.seo-artwork-thumbs img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); background: rgba(49, 59, 46, .88); }
.seo-artwork-info { box-shadow: var(--soft-shadow); }
.seo-artwork-info .price { margin: 16px 0 20px; }
.seo-artwork-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 26px 0 12px; }
.seo-artwork-actions .disabled { opacity: .65; pointer-events: none; }
@media (max-width: 900px) { .seo-artwork-detail { grid-template-columns: 1fr; } .seo-artwork-thumbs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .seo-artwork-page { padding-top: 28px; } .seo-artwork-detail { gap: 22px; } .seo-artwork-main-image, .seo-artwork-gallery, .seo-artwork-info { border-radius: 22px; } .seo-artwork-thumbs { gap: 8px; } }
