/* Styles of the sandboxed demo websites (served inside a sandboxed iframe, strict CSP). Brand colour = --c, set per demo. */
*, *::before, *::after { box-sizing: border-box; }
:root { --ink: #16212e; --muted: #5f6f82; --line: #e4eaf1; --bg: #f6f8fb; --card: #fff; --r: 16px; --shadow: 0 10px 30px rgba(16, 33, 56, .08); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--c); }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.d-wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* ---- banner + header */
.d-banner { background: repeating-linear-gradient(135deg, #fff6d6, #fff6d6 14px, #fff0bd 14px, #fff0bd 28px); color: #6d5300; text-align: center; font-size: .78rem; font-weight: 600; padding: 6px 12px; border-bottom: 1px solid #ecd98c; }
.d-head { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.d-head .d-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 68px; padding-top: 8px; padding-bottom: 8px; }
.d-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.12rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.d-logo { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 60%, #000)); color: #fff; display: grid; place-items: center; font-weight: 800; box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 40%, transparent); }
.d-nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.d-nav a { padding: 8px 13px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 600; transition: background .15s, color .15s; }
.d-nav a:hover { background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--c); }
.d-nav a.on { background: var(--c); color: #fff; }
.d-nav .d-cart b { background: var(--c); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .74rem; margin-left: 3px; }
.d-nav .d-cart.on b { background: #fff; color: var(--c); }
.d-nav .d-office { border: 1px dashed #b4c0cf; margin-left: 6px; color: var(--muted); }

.d-main { padding-top: 30px; padding-bottom: 64px; min-height: 60vh; }
.d-h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: .6em; }
.d-h2 { margin-top: 48px; font-size: 1.45rem; display: flex; align-items: center; gap: 12px; } .d-h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---- hero */
.d-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 50%, #000)); color: #fff; border-radius: 24px; padding: clamp(40px, 8vw, 84px) clamp(24px, 5vw, 56px); margin-bottom: 30px; box-shadow: 0 24px 50px color-mix(in srgb, var(--c) 35%, transparent); }
.d-hero::before, .d-hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .09); pointer-events: none; }
.d-hero::before { width: 420px; height: 420px; right: -120px; top: -160px; } .d-hero::after { width: 260px; height: 260px; right: 140px; bottom: -150px; background: rgba(255, 255, 255, .06); }
.d-hero > div { position: relative; z-index: 1; max-width: 640px; }
.d-hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -.03em; margin-bottom: .3em; }
.d-hero p { font-size: 1.2rem; opacity: .93; margin-bottom: 1.4em; }
.d-hero .d-btn { background: #fff; color: var(--c); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }

/* ---- grid + cards */
.d-grid { display: grid; gap: 20px; margin-bottom: 8px; }
.d-2 { grid-template-columns: repeat(2, 1fr); } .d-3 { grid-template-columns: repeat(3, 1fr); }
.d-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: block; color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(16, 33, 56, .03); transition: transform .18s, box-shadow .18s, border-color .18s; }
a.d-card:hover { border-color: var(--c); box-shadow: var(--shadow); transform: translateY(-3px); }
.d-card h3 { font-size: 1.08rem; } .d-card p { color: var(--muted); margin: 0 0 8px; }
.d-note { background: color-mix(in srgb, var(--c) 8%, #fff); border-color: color-mix(in srgb, var(--c) 25%, #fff); color: var(--ink); }
.d-meta { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 4px; font-weight: 600; letter-spacing: .02em; }
.d-img { aspect-ratio: 4 / 3; border-radius: 12px; margin-bottom: 14px; position: relative; overflow: hidden; background: linear-gradient(135deg, hsl(var(--h) 55% 80%), hsl(calc(var(--h) + 30) 50% 56%)); }
.d-img::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .55), transparent 45%), repeating-linear-gradient(45deg, rgba(255, 255, 255, .08) 0 10px, transparent 10px 20px); }
.d-img.big { aspect-ratio: 1; margin: 0; border-radius: 20px; }
.d-prod b, .d-price { color: var(--c); }
.d-price { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }

/* ---- buttons + forms */
.d-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--c); color: #fff; border: 0; border-radius: 12px; padding: 11px 20px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .12s, filter .15s, box-shadow .15s; box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 32%, transparent); }
.d-btn:hover { filter: brightness(1.07); transform: translateY(-1px); } .d-btn:active { transform: none; }
.d-ghost { background: #fff; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, #fff); box-shadow: none; }
.d-link { background: none; border: 0; color: var(--muted); font-size: 1.4rem; cursor: pointer; line-height: 1; } .d-link:hover { color: #b00020; }
.d-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.d-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.d-form { display: grid; gap: 14px; }
.d-form label, .d-inline label { display: grid; gap: 5px; font-weight: 600; font-size: .88rem; }
input, select, textarea { font: inherit; padding: 11px 13px; border: 1px solid #ccd6e2; border-radius: 11px; background: #fff; width: 100%; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.d-inline { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin: 12px 0; }
.d-inline input[type="number"] { width: 90px; } .d-inline input[type="email"] { min-width: 220px; flex: 1; } .d-inline select { min-width: 170px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: #fff; } legend { font-weight: 700; padding: 0 6px; }
.d-radio { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; } .d-radio input { width: auto; }

/* ---- tables + rows */
.d-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.d-table th, .d-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .93rem; }
.d-table tr:last-child td { border-bottom: 0; }
.d-table th { background: #f7f9fc; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.d-table .r, .d-table th.r { text-align: right; } .d-table tr.tot td { font-weight: 800; background: #fafcfe; }
.d-table input[type="number"] { width: 80px; }
.d-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.d-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); } .d-row.tot { font-weight: 800; border-bottom: 0; }
.d-ok { color: #0a7a4b; font-weight: 700; } .d-err { color: #b00020; font-weight: 700; background: #fdecee; padding: 11px 15px; border-radius: 11px; }

/* ---- bands, slots, tickets */
.d-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); color: #fff; border-radius: 20px; padding: 32px 34px; margin-top: 44px; }
.d-band h2 { margin: 0 0 4px; } .d-band p { margin: 0; opacity: .9; } .d-band input { max-width: 290px; border-color: transparent; }
.d-band .d-btn { background: #fff; color: var(--c); }
.d-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.d-slot { position: relative; } .d-slot input { position: absolute; opacity: 0; inset: 0; } .d-slot span { display: block; text-align: center; padding: 9px 4px; border: 1px solid #ccd6e2; border-radius: 10px; background: #fff; cursor: pointer; font-weight: 600; font-size: .9rem; transition: all .12s; }
.d-slot input:checked + span { background: var(--c); color: #fff; border-color: var(--c); box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 30%, transparent); } .d-slot.off span { background: #f0f2f5; color: #a0abb8; text-decoration: line-through; cursor: not-allowed; }
.d-slot input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--c) 40%, #fff); }
.d-ticket { display: flex; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--c); border-radius: 16px; padding: 18px; position: relative; box-shadow: var(--shadow); }
.d-ticket::before, .d-ticket::after { content: ""; position: absolute; left: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.d-ticket::before { top: -9px; } .d-ticket::after { bottom: -9px; }
.d-ticket h3 { margin: 0 0 4px; } .d-ticket p { margin: 0 0 6px; }
.d-ticket svg { flex: none; border: 6px solid #fff; outline: 1px solid var(--line); border-radius: 4px; }
.d-faq { display: grid; gap: 10px; max-width: 760px; } .d-faq summary { cursor: pointer; font-weight: 700; } .d-faq details[open] { border-color: var(--c); } .d-faq p { margin: 10px 0 0; }
.d-article { max-width: 700px; } .d-article p { font-size: 1.06rem; line-height: 1.75; }
.d-tile { aspect-ratio: 4 / 3; border-radius: 16px; background: linear-gradient(135deg, hsl(var(--h) 55% 72%), hsl(calc(var(--h) + 40) 50% 48%)); display: flex; align-items: end; padding: 14px; color: #fff; text-decoration: none; font-weight: 700; transition: transform .18s, box-shadow .18s; position: relative; overflow: hidden; }
.d-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .35), transparent 55%); } .d-tile span { position: relative; }
.d-tile:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.d-lightbox { display: none; position: fixed; inset: 0; background: linear-gradient(135deg, hsl(var(--h) 55% 60%), hsl(calc(var(--h) + 40) 50% 30%)); color: #fff; z-index: 20; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; text-decoration: none; }
.d-lightbox:target { display: flex; }
.d-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 14px 0 18px; }
.d-kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--ink); transition: border-color .15s; } .d-kpi:hover { border-color: var(--c); } .d-kpi small { display: block; color: var(--muted); font-weight: 600; } .d-kpi b { font-size: 1.5rem; letter-spacing: -.02em; } .d-kpi.on { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }

/* ---- footer */
.d-foot { background: #101a26; color: #aab6c5; padding: 28px 0; font-size: .86rem; } .d-foot .d-wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; } .d-foot b { color: #fff; }
.d-foot nav { display: flex; gap: 14px; flex-wrap: wrap; } .d-foot a { color: #cdd7e4; text-decoration: none; } .d-foot a:hover { color: #fff; }

@media (max-width: 800px) {
  .d-2, .d-3, .d-split { grid-template-columns: 1fr; }
  .d-head .d-wrap { justify-content: center; } .d-nav { justify-content: center; }
  .d-ticket { flex-direction: column; }
  .d-band { padding: 24px 20px; }
  input, select, textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
