@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #0e0d0c;
  --bg-panel: #171614;
  --ink: #f3ede4;
  --ink-dim: #b8b0a3;
  --line: #2c2a26;
  --gold: #c9a666;
  --gold-soft: #e4cfa0;
  --danger: #c0574a;
  --ok: #6f8f6a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Arial Black', 'Arial Bold', Arial, sans-serif;
  font-size: 20px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0;
}

a { color: inherit; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 13, 12, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.brand span { color: var(--gold); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-actions .icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
}
.header-actions .icon-btn svg { width: 16px; height: 16px; }

.lang-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.lang-toggle button {
  background: none;
  border: none;
  color: var(--ink-dim);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-toggle button + button { border-left: 1px solid var(--line); }
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle button.active { background: var(--gold); color: #1a1712; }

@media (max-width: 480px) {
  .site-header .container, .admin-header .container { height: 64px; }
  .brand { font-size: 19px; letter-spacing: 0.08em; }
}


/* ---- Hero ---- */

.hero {
  padding: 110px 0 80px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 166, 102, 0.08), transparent 60%);
}

@media (max-width: 480px) {
  .hero { padding: 56px 0 48px; }
  .hero p { font-size: 20px; }
}

.hero .eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1.05;
}

.hero p {
  max-width: 520px;
  margin: 26px auto 0;
  color: var(--ink-dim);
  font-size: 20px;
  line-height: 1.7;
}

/* ---- Gallery ---- */

.gallery-section {
  padding: 90px 0 120px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}

.section-heading h2 {
  font-size: 34px;
}

.section-heading .count {
  color: var(--ink-dim);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 34px;
}

.piece {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.piece:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 166, 102, 0.5);
}

.piece .thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  background: #1c1a17;
}
.piece .thumb .slides { position: absolute; inset: 0; }
.piece .thumb .slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.6s ease;
}
.piece .thumb .slides img.active { opacity: 1; }
.piece:hover .thumb .slides img.active { transform: scale(1.06); }

.piece .thumb .dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.piece .thumb .dots .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(243, 237, 228, 0.4);
  transition: background 0.3s, transform 0.3s;
}
.piece .thumb .dots .dot.active { background: var(--gold-soft); transform: scale(1.3); }

.piece .meta {
  padding: 22px 22px 26px;
}

.piece .meta h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.piece .meta .desc {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 22px;
}

.piece .meta .price {
  margin-top: 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--gold-soft);
}

.action-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.action-row > .btn:not(.icon-btn) { flex: 1; width: auto; margin-top: 0; }

.card-contact-btn {
  display: block;
  font-size: 11px;
  padding: 10px 14px;
}

.btn.icon-btn {
  flex: 0 0 auto;
  width: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn.icon-btn svg { width: 18px; height: 18px; }

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-dim);
  border: 1px dashed var(--line);
}

/* ---- Lightbox ---- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 5, 4, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 32px;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  max-width: 980px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  max-height: 88vh;
}
.lightbox-media {
  position: relative;
  overflow: hidden;
  background: #1c1a17;
}
.lightbox-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  max-height: 88vh;
  display: block;
  cursor: pointer;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(14, 13, 12, 0.55);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.lb-nav:hover { background: rgba(14, 13, 12, 0.85); color: var(--gold-soft); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
}
.lb-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(243, 237, 228, 0.4);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.lb-dots .dot.active { background: var(--gold-soft); transform: scale(1.3); }

.lightbox-info {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
}
.lightbox-info h3 { font-size: 32px; margin-bottom: 18px; }
.lightbox-info .desc { color: var(--ink-dim); line-height: 1.75; font-size: 20px; white-space: pre-wrap; }
.lightbox-info .price { margin-top: auto; padding-top: 24px; font-family: 'Cormorant Garamond', serif; font-size: 30px; color: var(--gold-soft); }
.lightbox-close {
  position: absolute;
  top: 26px;
  right: 32px;
  font-size: 30px;
  color: var(--ink-dim);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close:hover { color: var(--ink); }

@media (max-width: 760px) {
  .lightbox-inner { grid-template-columns: 1fr; overflow-y: auto; }
  .lightbox-media img { max-height: 46vh; }
}

/* ---- Contact modal ---- */

.contact-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 5, 4, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 110;
  padding: 32px;
}
.contact-modal.open { display: flex; }

.contact-modal-inner {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 44px 36px;
  max-height: 88vh;
  overflow-y: auto;
}
.contact-modal-inner h3 {
  font-size: 26px;
  text-align: center;
  margin-bottom: 28px;
}

.contact-modal-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact-modal-list .contact-card { padding: 18px 22px; }

.share-platform-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  background: var(--bg-panel);
  cursor: pointer;
}
.share-platform-row .icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold); }
.share-platform-row .icon svg { display: block; width: 100%; height: 100%; }
.share-platform-row .label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--ink);
}
.share-platform-row input[type="checkbox"] {
  margin-left: auto;
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}
.share-platform-row.select-all-row .label {
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
}

.share-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }

/* ---- Contact ---- */

.contact-section {
  padding: 0 0 100px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.contact-card {
  background: var(--bg-panel);
  padding: 28px 26px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-card .icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--gold);
}
.contact-card .icon svg { display: block; width: 100%; height: 100%; }
.contact-card .icon:empty { display: none; }

.contact-card .text { min-width: 0; }

.contact-card .label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.contact-card a, .contact-card .value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--ink);
  line-height: 1.4;
}
.contact-card .value { text-decoration: none; }
.contact-card a {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}
.contact-card a:hover { color: var(--gold-soft); text-decoration-color: var(--gold-soft); }

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  text-align: center;
  color: var(--ink-dim);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.footer-admin-link {
  margin-left: 18px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.footer-admin-link:hover { color: var(--gold-soft); }

/* ---- Admin ---- */

.admin-body { min-height: 100vh; }

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 44px 36px;
}

@media (max-width: 480px) {
  .login-card { padding: 36px 24px; }
}

.login-card h1 { font-size: 30px; text-align: center; margin-bottom: 6px; }
.login-card .sub { text-align: center; color: var(--ink-dim); font-size: 13px; margin-bottom: 32px; }

label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 8px;
}

input[type="text"], input[type="password"], input[type="number"], textarea {
  width: 100%;
  background: #0e0d0c;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  margin-bottom: 20px;
}
input:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { resize: vertical; min-height: 90px; }

.btn {
  display: inline-block;
  width: 100%;
  padding: 13px 18px;
  background: var(--gold);
  color: #1a1712;
  border: none;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: var(--gold-soft); }
.btn.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn.secondary:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:hover { background: #d66757; }
.btn.small { width: auto; padding: 9px 16px; font-size: 12px; }

.error-msg {
  color: var(--danger);
  font-size: 13px;
  margin: -8px 0 16px;
  min-height: 16px;
}

.admin-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg-panel);
}
.admin-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 12px;
}
.admin-header .who { color: var(--ink-dim); font-size: 13px; }

.admin-main { padding: 48px 0 100px; }

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 32px;
  margin-bottom: 44px;
}
.panel h2 { font-size: 24px; margin-bottom: 24px; }

@media (max-width: 480px) {
  .admin-main { padding: 28px 0 60px; }
  .panel { padding: 20px 16px; margin-bottom: 28px; }
  .panel h2 { font-size: 20px; margin-bottom: 18px; }
  .admin-header .who { display: none; }
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.image-drop {
  border: 2px dashed var(--line);
  padding: 40px 20px;
  text-align: center;
  color: var(--ink-dim);
  font-size: 13px;
  margin-bottom: 20px;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s, background 0.2s;
}
.image-drop:hover, .image-drop.drag-over { border-color: var(--gold); background: rgba(201, 166, 102, 0.05); }
.image-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
#image-drop-icon { color: var(--gold); margin-bottom: 4px; }
#image-drop-label {
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}
.image-drop-sub { color: var(--ink-dim); font-size: 13px; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.photo-thumb {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  overflow: hidden;
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(14, 13, 12, 0.8);
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.photo-remove:hover { background: var(--danger); color: #fff; }

.photo-count {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ok);
  margin: -10px 0 20px;
}
.photo-count.below-minimum { color: var(--danger); }

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.admin-card {
  background: #0e0d0c;
  border: 1px solid var(--line);
}
.admin-card .thumb { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #1c1a17; }
.admin-card .thumb .slides { position: absolute; inset: 0; }
.admin-card .thumb .slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.admin-card .thumb .slides img.active { opacity: 1; }
.admin-card .thumb .dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 2;
}
.admin-card .thumb .dots .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(243, 237, 228, 0.4);
  transition: background 0.3s, transform 0.3s;
}
.admin-card .thumb .dots .dot.active { background: var(--gold-soft); transform: scale(1.3); }
.admin-card .body { padding: 16px; }
.admin-card h4 { font-size: 18px; margin-bottom: 6px; }
.admin-card .price { color: var(--gold-soft); font-family: 'Cormorant Garamond', serif; font-size: 18px; margin-bottom: 14px; }
.admin-card .actions { display: flex; gap: 8px; }
.admin-card .actions .btn { width: auto; flex: 1; }

.hint { color: var(--ink-dim); font-size: 12px; margin-top: -12px; margin-bottom: 20px; }
