:root {
  --bg: #100e0c;
  --bg-2: #171411;
  --bg-3: #1e1a16;
  --ink: #f0eae0;
  --ink-2: #b5ac9e;
  --ink-3: #7d766b;
  --gold: #c9a45c;
  --gold-2: #a5813d;
  --red: #8e1b1b;
  --line: #2c2620;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 720px; }

/* ---------- Декоративный фон ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

header, section, footer { position: relative; z-index: 1; }

.wm {
  position: absolute;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.055;
  white-space: nowrap;
  letter-spacing: 0.14em;
  line-height: 1;
  text-align: center;
}
.wm span {
  display: block;
  font-weight: 500;
  font-size: 0.26em;
  letter-spacing: 0.55em;
  margin-top: 0.35em;
  padding-left: 0.55em;
}
.wm-1 {
  font-size: clamp(70px, 11vw, 150px);
  top: 7%;
  left: 50%;
  transform: translateX(-50%) rotate(-7deg);
}
.wm-2 {
  font-size: clamp(60px, 9vw, 120px);
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%) rotate(-7deg);
}

.decor-seven {
  position: absolute;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(300px, 42vw, 620px);
  color: var(--gold);
  opacity: 0.035;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
}

.decor-ropes {
  position: absolute;
  left: 0;
  right: 0;
  top: 30%;
  height: 46px;
  opacity: 0.05;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 50% / 100% 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 2px no-repeat;
}

h1, h2, h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 12px; }
h3 { font-size: 18px; letter-spacing: 0.04em; }

.gold { color: var(--gold); }
.muted { color: var(--ink-3); font-size: 13px; }
.center { text-align: center; margin-top: 12px; }

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

/* ---------- Hero ---------- */
.hero {
  padding: 110px 0 90px;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(201,164,92,0.10), transparent);
  border-bottom: 1px solid var(--line);
}

.hero-sub {
  max-width: 620px;
  margin: 22px auto 34px;
  color: var(--ink-2);
  font-size: 17px;
}
.hero-sub strong { color: var(--gold); font-weight: 600; }

.btn {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 38px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s;
}
.btn:active { transform: scale(0.98); }

.btn-gold {
  background: var(--gold);
  color: #17130b;
  font-weight: 600;
}
.btn-gold:hover { background: #d9b76f; }

.btn-wide { width: 100%; margin-top: 8px; }

/* ---------- Top-15 banner ---------- */
.carousel {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 48px auto 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-2);
}

.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}

.carousel-slide {
  width: 100%;
  flex-shrink: 0;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(201,164,92,0.6);
  background: rgba(16,14,12,0.65);
  color: var(--gold);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
}
.carousel-arrow:hover { background: rgba(201,164,92,0.2); }
.carousel-arrow.prev { left: 14px; }
.carousel-arrow.next { right: 14px; }

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(240,234,224,0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, transform 0.15s;
}
.carousel-dot.active { background: var(--gold); transform: scale(1.25); }

.banner-img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  margin-left: auto;
  flex-shrink: 0;
  align-self: center;
}

.banner-top15 {
  background: linear-gradient(90deg, #241c0e, #1c1710);
  border-top: 1px solid rgba(201,164,92,0.35);
  border-bottom: 1px solid rgba(201,164,92,0.35);
  padding: 26px 0;
}
.banner-mid { margin-top: 40px; }

.banner-inner {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.banner-icon {
  font-size: 26px;
  color: var(--gold);
  line-height: 1;
  padding-top: 3px;
}

.banner-title {
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 4px;
}
.banner-text { color: var(--ink-2); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0 60px; }
.section-dark { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-sub { color: var(--ink-2); max-width: 640px; margin-bottom: 36px; }

.group-title {
  margin: 44px 0 16px;
  color: var(--gold);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

/* ---------- Included cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.card h3 { margin: 14px 0 6px; font-size: 16px; }
.card p { color: var(--ink-2); font-size: 14px; }
.card .value { margin-top: 10px; color: var(--gold-2); font-size: 13px; letter-spacing: 0.05em; }

/* ---------- Images ---------- */
.opt-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg-3);
  display: block;
}
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px dashed var(--line);
}

/* ---------- Video ---------- */
.video-wrap {
  position: relative;
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}
.video-wrap video { display: block; width: 100%; }

.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: rgba(16,14,12,0.72);
  color: var(--gold);
  font-size: 26px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.video-play:hover { background: rgba(201,164,92,0.18); transform: scale(1.05); }
.video-play.hidden { display: none; }

/* ---------- Options ---------- */
.options { display: flex; flex-direction: column; gap: 12px; }

.option {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}
.option:hover { border-color: #4a4136; }
.option-static { cursor: default; }

.option input[type="radio"],
.option input[type="checkbox"] {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
  cursor: pointer;
}
.option input:disabled { cursor: not-allowed; opacity: 0.4; }

.option:has(input:checked) {
  border-color: var(--gold);
  background: #1c1810;
}
.option:has(input:disabled) { opacity: 0.65; }

.option-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: start;
  padding-right: 36px;
}

.option-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 6px;
}

.option-title {
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tag {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--red);
  color: #f3d9d9;
  padding: 3px 9px;
  border-radius: 3px;
  vertical-align: middle;
}
.tag-dark { background: var(--bg-3); color: var(--gold); border: 1px solid var(--gold-2); }

.option-price {
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
  margin-left: auto;
}
.option-price.free { color: #7fae6e; font-weight: 500; font-size: 14px; }

.option-info p { color: var(--ink-2); font-size: 14px; }
.option-info strong { color: var(--ink); }

.recommended { border-color: rgba(201,164,92,0.5); }

/* ---------- Qty ---------- */
.qty-rows { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
}

.qty-ctrl { display: flex; align-items: center; gap: 6px; }

.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}
.qty-btn:hover { border-color: var(--gold-2); }

.qty-ctrl input {
  width: 44px;
  height: 34px;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 15px;
}
.qty-ctrl input::-webkit-outer-spin-button,
.qty-ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ---------- Summary & form ---------- */
.section-form { background: var(--bg-2); border-top: 1px solid var(--line); }

.summary {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 24px 0 28px;
}

.summary-lines { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.summary-lines:empty { display: none; }

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
}
.summary-line b { color: var(--ink); font-weight: 500; }

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.summary-total span { color: var(--ink-2); font-size: 14px; }
.summary-total strong {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  color: var(--gold);
}

.summary-note { margin-top: 10px; font-size: 13px; color: var(--ink-3); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-grid .field { margin-bottom: 0; }

.field label { font-size: 13px; color: var(--ink-2); letter-spacing: 0.03em; }

.field input[type="text"],
.field input[type="tel"],
.field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-2);
}
.field input.invalid, .field textarea.invalid { border-color: var(--red); }

.field input[type="file"] {
  color: var(--ink-2);
  font-size: 14px;
  padding: 10px 0;
}

.form-error {
  color: #e57373;
  font-size: 14px;
  margin-bottom: 14px;
}

.success {
  text-align: center;
  padding: 48px 20px;
}
.success-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success h3 { margin-bottom: 8px; }
.success p { color: var(--ink-2); }

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .option-body { grid-template-columns: 1fr; padding-right: 0; }
  .option input[type="radio"], .option input[type="checkbox"] { top: 16px; right: 16px; }
  .opt-img { max-height: 200px; }
  .hero { padding: 70px 0 60px; }
  .section { padding: 56px 0 44px; }
}

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


/* ---------- Галерея опции (до 2 фото) ---------- */
.opt-gallery { display: flex; flex-direction: column; gap: 8px; }
.opt-gallery .opt-img { aspect-ratio: 4 / 3; }
.opt-gallery.two .opt-img { aspect-ratio: 16 / 10; }

img.lb { cursor: zoom-in; transition: opacity 0.15s; }
img.lb:hover { opacity: 0.88; }

/* ---------- Лайтбокс ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 9, 7, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}
.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
}
.lightbox img.dragging { cursor: grabbing; }

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 101;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(201,164,92,0.6);
  background: rgba(16,14,12,0.7);
  color: var(--gold);
  font-size: 18px;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(201,164,92,0.2); }

.lightbox-hint {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.04em;
  pointer-events: none;
}
@media (max-width: 640px) {
  .lightbox-hint { display: none; }
}
