:root {
  --purple: #3b1163;
  --purple-dark: #2a0b47;
  --gold: #d4af37;
  --gold-soft: #f3e5bb;
  --ink: #221631;
  --bg: #faf7ff;
  --card: #ffffff;
  --line: #e3d9f2;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif; background: var(--bg); color: var(--ink); }
a { color: var(--purple); }
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: linear-gradient(90deg, var(--purple-dark), var(--purple));
  padding: .6rem 1.2rem; border-bottom: 3px solid var(--gold);
}
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand img { height: 34px; width: auto; }
.site-header nav a { color: var(--gold-soft); text-decoration: none; margin-left: 1.2rem; font-weight: 600; }
.site-header nav a:hover { color: var(--gold); }
main { max-width: 1440px; margin: 0 auto; padding: 1.4rem 1.2rem 3rem; }
.hero { text-align: center; padding: .9rem 1rem .4rem; }

.hero h1 { color: var(--purple); font-size: 1.65rem; margin: .2rem 0 .25rem; }
.lede { font-size: 1.08rem; max-width: 640px; margin: 0 auto; }
.route-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin: 1.6rem 0; }
.route-card {
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--gold);
  border-radius: 10px; padding: 1.2rem; text-decoration: none; color: var(--ink); display: block;
}
.route-card:hover { box-shadow: 0 6px 22px rgba(59,17,99,.14); }
.route-card h2 { color: var(--purple); margin-top: 0; font-size: 1.25rem; }
.route-card .cta { color: var(--purple); font-weight: 700; }
.route-card.disabled { opacity: .75; }
.badge { background: var(--gold); color: var(--purple-dark); border-radius: 20px; padding: .1rem .55rem; font-size: .72rem; vertical-align: middle; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem; margin-bottom: 1.2rem; }
.card.narrow { max-width: 880px; margin: 0 auto; }
.card h1 { color: var(--purple); margin-top: 0; }
.card h2 { color: var(--purple); }
.steps li { margin-bottom: .45rem; }
table.prices { border-collapse: collapse; width: 100%; max-width: 720px; }
table.prices th, table.prices td { border-bottom: 1px solid var(--line); padding: .4rem .6rem; text-align: left; }
.fine { font-size: .86rem; color: #5c5470; }
.error { color: #a40000; font-weight: 600; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 1.1rem; padding: 1rem 1.1rem; }
legend { color: var(--purple); font-weight: 700; padding: 0 .4rem; }
label { display: block; margin-bottom: .8rem; font-weight: 600; }
label input[type="text"], label input:not([type]), label input[type="email"], label input[type="tel"],
label input[type="number"], label select, label textarea {
  display: block; width: 100%; margin-top: .3rem; padding: .55rem .6rem;
  border: 1px solid #c9bce0; border-radius: 6px; font: inherit; font-weight: 400; background: #fff;
}
label.check { font-weight: 400; display: flex; gap: .55rem; align-items: flex-start; }
label.check input { margin-top: .2rem; }
label.check.rights { background: var(--gold-soft); border-radius: 6px; padding: .6rem .7rem; font-weight: 600; }
.presets { margin-bottom: .8rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.preset { border: 1px solid var(--purple); color: var(--purple); background: #fff; border-radius: 20px; padding: .3rem .8rem; cursor: pointer; font: inherit; font-size: .9rem; }
.preset:hover { background: var(--purple); color: #fff; }
.total-box {
  background: var(--purple); color: #fff; border-radius: 8px; padding: .9rem 1rem;
  font-size: 1.05rem; margin: .6rem 0 1rem;
}
.total-box .gold { color: var(--gold); font-weight: 800; }
.pay-btn {
  background: var(--gold); color: var(--purple-dark); border: none; border-radius: 8px;
  font: inherit; font-weight: 800; font-size: 1.05rem; padding: .85rem 1.6rem; cursor: pointer; width: 100%;
}
.pay-btn:hover { filter: brightness(1.06); }
.site-footer { background: var(--purple-dark); color: #d9cfee; padding: 1.2rem; text-align: center; font-size: .92rem; }
.site-footer strong { color: var(--gold); }

.admin-table { border-collapse: collapse; width: 100%; font-size: .85rem; }
.admin-table th, .admin-table td { border-bottom: 1px solid #e5e0ef; padding: .35rem .5rem; text-align: left; }

/* --- Shop --- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.1rem; }
.shop-card { display: flex; flex-direction: column; gap: .4rem; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .7rem; }
.shop-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.shop-card-title { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.shop-card-price { color: var(--purple); font-weight: 700; }
.was { text-decoration: line-through; color: #999; font-weight: 400; }
.product-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: start; }
@media (max-width: 760px) { .product-wrap { grid-template-columns: 1fr; } }
.product-gallery img { width: 100%; border-radius: 10px; margin-bottom: .8rem; }
.product-info h1 { font-size: 1.5rem; margin: .2rem 0 .5rem; }
.product-price { font-size: 1.3rem; font-weight: 700; color: var(--purple); }
.product-info label { display: block; margin: .7rem 0; font-weight: 600; }
.product-info select, .product-info input, .card input, .card select { width: 100%; padding: .5rem; margin-top: .3rem; border: 1px solid var(--line); border-radius: 6px; font-size: 1rem; }
.product-desc { margin-top: 1.2rem; font-size: .92rem; line-height: 1.55; color: #444; }
.btn-primary { display: inline-block; background: var(--purple); color: #fff; border: none; padding: .8rem 1.6rem; border-radius: 8px; font-size: 1.05rem; font-weight: 700; cursor: pointer; text-decoration: none; margin-top: .8rem; }
.btn-primary:hover { opacity: .92; }
.card label { display: block; margin: .6rem 0; font-weight: 600; }
