
:root {
  --bg: #210b10;
  --wine: #40151f;
  --wine-light: #5b2630;
  --gold: #e8c18a;
  --cream: #fff0df;
  --muted: #cdb8b3;
  --line: rgba(232,193,138,.38);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 50% 0, #54212a 0, transparent 45%),
    var(--bg);
  font-family: Georgia, "Times New Roman", serif;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; font: inherit; }
.topbar {
  max-width: 1100px; margin: auto; padding: 22px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.brand { display: flex; gap: 12px; align-items: center; color: var(--cream); text-decoration: none; }
.brand-mark { color: var(--gold); font-size: 42px; }
.brand strong { display: block; font-size: 20px; letter-spacing: .16em; font-weight: normal; }
.brand small { display: block; color: var(--gold); letter-spacing: .2em; font: 10px Arial,sans-serif; margin-top: 5px; }
.menu-button { background: none; border: 0; color: var(--gold); font-size: 26px; }
main { max-width: 1100px; margin: auto; padding: 10px 24px 125px; }
.page { display: none; animation: appear .25s ease; }
.page.active { display: block; }
@keyframes appear { from { opacity: .35; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.eyebrow { color: var(--gold); letter-spacing: .2em; font: 11px Arial,sans-serif; margin: 20px 0 12px; }
h1 { font-size: clamp(36px, 7vw, 64px); line-height: 1.03; font-weight: normal; margin: 10px 0 25px; }
h1 span { color: var(--gold); }
h2 { font-weight: normal; }
.hero {
  min-height: 230px; border: 1px solid var(--line); border-radius: 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 25px;
  background: linear-gradient(135deg,rgba(117,55,52,.5),rgba(28,10,15,.8)),
    radial-gradient(ellipse at 50% 20%,#9b5a3e,#35151d 65%);
  box-shadow: inset 0 0 30px #e8bd7810, 0 8px 30px #0003;
}
.hero-play { display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; width: 62px; height: 62px; color: var(--gold); }
.hero p { font-size: 22px; margin: 14px 0 5px; }
.hero small,.muted { color: var(--muted); font: 13px/1.6 Arial,sans-serif; }
.category-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 18px 0 36px; }
.category-links button {
  text-align: left; border: 1px solid var(--line); border-radius: 50px;
  color: var(--cream); background: linear-gradient(120deg,#562530aa,#2c1017aa);
  padding: 17px; display: flex; justify-content: space-between; gap: 8px;
}
.category-links span { color: var(--gold); }
.section-title { font-size: clamp(25px,4vw,36px); margin: 35px 0 16px; }
.product-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.product-card,.info-card,.request-card {
  overflow: hidden; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(145deg,#4a202a,#2a1017);
}
.product-image { height: 170px; display: flex; align-items: center; justify-content: center; font-size: 52px; color: var(--gold); }
.wedding { background: radial-gradient(ellipse at 50% 20%,#9a624a,#4b2029 65%,#251016); }
.travel { background: radial-gradient(ellipse at 50% 20%,#8c7550,#3a2726 65%,#251016); }
.keepsake { background: radial-gradient(ellipse at 50% 20%,#a65a3e,#4a1d27 65%,#251016); }
.album { background: radial-gradient(ellipse at 50% 20%,#9d8060,#4b2b30 65%,#251016); }
.digital { background: radial-gradient(ellipse at 50% 20%,#a8864d,#3a1a22 65%,#251016); }
.product-info { padding: 17px; }
.product-info h3,.coming-card h3,.info-card h3 { font-size: 21px; font-weight: normal; margin: 0 0 7px; }
.product-info p,.coming-card p,.info-card p { color: var(--muted); font: 13px/1.55 Arial,sans-serif; }
.text-button { padding: 0; border: 0; background: none; color: var(--gold); margin-top: 8px; }
.coming-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.coming-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #381820; }
.coming-icon { font-size: 27px; color: var(--gold); }
.coming-card h3 { font-size: 17px; }
.coming-card p { margin-bottom: 0; }
.coming-card button,.filter {
  border: 1px solid var(--line); border-radius: 30px; padding: 9px 12px;
  color: var(--cream); background: #55232d; font: 12px Arial,sans-serif;
}
.request-card { padding: 24px; margin-top: 35px; }
.primary-button {
  width: 100%; margin-top: 14px; padding: 16px; border-radius: 40px;
  border: 1px solid #f2d4a0; background: linear-gradient(100deg,#f4d9a4,#c78c54);
  color: #301116; font-weight: bold;
}
.filter-list { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.filter.active { background: var(--gold); color: #301116; }
.about-banner { border: 1px solid var(--line); border-radius: 20px; padding: 25px; background: linear-gradient(140deg,#5b2830,#2a1017); }
.about-banner>span { color: var(--gold); font-size: 35px; }
.about-banner p { color: var(--muted); line-height: 1.7; }
.info-card { padding: 18px; margin: 10px 0; }
.info-card summary { cursor: pointer; color: var(--gold); }
.bottom-nav {
  position: fixed; z-index: 10; left: 50%; transform: translateX(-50%);
  bottom: max(12px,env(safe-area-inset-bottom)); width: min(700px,calc(100% - 24px));
  display: grid; grid-template-columns: repeat(3,1fr); padding: 9px;
  border: 1px solid var(--line); border-radius: 50px;
  background: rgba(39,13,20,.94); backdrop-filter: blur(18px);
  box-shadow: 0 8px 35px #0008;
}
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; color: var(--muted); padding: 7px; font: 12px Arial,sans-serif; }
.nav-item span { font-size: 24px; }
.nav-item.active { color: var(--gold); }
.modal { display: none; position: fixed; z-index: 20; inset: 0; padding: 18px; background: #100509d9; align-items: center; justify-content: center; }
.modal.open { display: flex; }
.modal-card { position: relative; width: min(520px,100%); max-height: 85vh; overflow: auto; padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: #32131b; }
.modal-close { float: right; border: 0; background: none; color: var(--gold); font-size: 28px; }
.modal-card input,.modal-card textarea,.modal-card select { width: 100%; margin: 7px 0 14px; padding: 13px; border-radius: 10px; border: 1px solid var(--line); color: var(--cream); background: #210b10; }
.modal-card label { display: block; font: 13px Arial,sans-serif; color: var(--muted); }
@media(max-width:600px) {
  .topbar { padding: 17px 18px; }
  main { padding: 5px 16px 120px; }
  .brand strong { font-size: 16px; }
  .brand-mark { font-size: 34px; }
  .category-links { grid-template-columns: 1fr; }
  .category-links button { padding: 14px 18px; }
  .product-grid,.coming-list { grid-template-columns: 1fr; }
  .product-image { height: 190px; }
  .coming-card { align-items: flex-start; flex-wrap: wrap; }
  .coming-card button { margin-left: auto; }
}
.product-image {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-image.wedding,
.product-image.travel {
  min-height: 170px;
}

/* Подробная карточка товара */
.product-detail-image {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 14px;
  margin: 12px 0 20px;
}

.product-detail-description,
.product-detail-field {
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.product-detail-field {
  margin: 10px 0;
}

.product-image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 170px;
  color: #b18a58;
  font-size: 2rem;
}

/* Галерея фотографий товара */
.product-gallery {
  width: 100%;
  margin: 12px 0 20px;
}

.product-gallery .product-detail-image {
  display: block;
  width: 100%;
  max-height: 380px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  margin: 0 0 12px;
}

.product-gallery-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-gallery-thumb {
  display: block;
  width: 76px;
  height: 76px;
  padding: 3px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(177, 138, 88, 0.4);
  border-radius: 10px;
  background: transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.product-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.product-gallery-thumb:hover,
.product-gallery-thumb.is-active {
  border-color: #b18a58;
}

.product-gallery-thumb:focus-visible {
  outline: 2px solid #b18a58;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .product-gallery .product-detail-image {
    max-height: 300px;
  }

  .product-gallery-thumb {
    width: 64px;
    height: 64px;
  }
}
