:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --surface-soft: #fbfaf7;
  --text: #171717;
  --muted: #6b6761;
  --border: #ded7cd;
  --accent: #f93600;
  --accent-dark: #c92b00;
  --accent-soft: #fff1eb;
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(18, 18, 18, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(circle at top left, rgba(249, 54, 0, 0.12), transparent 34rem),
    linear-gradient(180deg, #fffaf6 0%, var(--bg) 48%, #f2eee8 100%);
  color: var(--text);
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font: inherit;
}

.bv-page {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.bv-page.single {
  max-width: 960px;
}

.bv-form {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.bv-sidebar,
.bv-panel,
.bv-result {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(222, 215, 205, 0.78);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.bv-sidebar {
  padding: 18px;
  position: sticky;
  top: 22px;
}

.bv-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.bv-brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #111);
  flex: 0 0 auto;
}

.bv-brand strong,
.bv-brand small {
  display: block;
}

.bv-brand small,
.bv-muted {
  color: var(--muted);
}

.bv-progress {
  margin-bottom: 18px;
}

.bv-progress > div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 9px;
}

.bv-progress__track {
  height: 9px;
  background: #eee8df;
  border-radius: 999px;
  overflow: hidden;
  display: block;
}

.bv-progress__track span {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #111);
  display: block;
  transition: width 0.25s ease;
}

.bv-nav {
  display: grid;
  gap: 8px;
}

.bv-nav button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-align: left;
  border-radius: 13px;
  padding: 10px 11px;
  cursor: pointer;
  transition: 0.18s ease;
}

.bv-nav button:hover,
.bv-nav button.is-active {
  background: var(--accent-soft);
  color: var(--text);
  border-color: rgba(249, 54, 0, 0.2);
}

.bv-panel {
  overflow: hidden;
}

.bv-step {
  display: none;
  padding: clamp(24px, 4vw, 42px);
}

.bv-step.is-active {
  display: block;
  animation: reveal 0.22s ease;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.bv-eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 0 0 10px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

h1 {
  font-size: clamp(36px, 6vw, 64px);
  max-width: 850px;
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
  max-width: 820px;
}

h3 {
  font-size: 18px;
}

.bv-lead {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
  max-width: 820px;
  margin: 18px 0 0;
}

.bv-note {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 26px;
}

.bv-note.warning {
  color: var(--danger);
  border-color: rgba(180, 35, 24, 0.25);
  background: #fff6f5;
}

.bv-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.bv-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bv-grid .full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 750;
  font-size: 14px;
}

label em {
  color: var(--accent);
  font-style: normal;
}

label small {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  min-height: 115px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(249, 54, 0, 0.65);
  box-shadow: 0 0 0 4px rgba(249, 54, 0, 0.1);
}

.bv-choices,
.bv-moods,
.bv-typefaces {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.bv-choice,
.bv-typeface {
  position: relative;
}

.bv-choice input,
.bv-typeface input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bv-choice > span,
.bv-typeface > span {
  min-height: 88px;
  display: grid;
  gap: 7px;
  align-content: center;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.bv-choice > span:hover,
.bv-typeface > span:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 54, 0, 0.35);
}

.bv-choice input:checked + span,
.bv-typeface input:checked + span {
  background: var(--accent-soft);
  border-color: rgba(249, 54, 0, 0.72);
  box-shadow: 0 14px 28px rgba(249, 54, 0, 0.1);
}

.bv-choice strong,
.bv-choice small {
  display: block;
}

.bv-scales {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.bv-scale {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.bv-scale > span {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  margin-bottom: 12px;
}

.bv-scale input {
  width: 100%;
  accent-color: var(--accent);
}

.bv-mood {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  transform-style: preserve-3d;
}

.bv-ambiance-image {
  height: 170px;
  margin: 0;
  padding: 12px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(249, 54, 0, 0.55), rgba(23, 23, 23, 0.72)) border-box;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.bv-ambiance-image::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 20px;
  width: 36px;
  height: 8px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(249,54,0,.8) 0 3px, transparent 4px),
    radial-gradient(circle, rgba(23,23,23,.35) 0 3px, transparent 4px),
    radial-gradient(circle, rgba(23,23,23,.18) 0 3px, transparent 4px);
  background-size: 12px 8px;
  background-position: 0 0, 12px 0, 24px 0;
  background-repeat: no-repeat;
  z-index: 2;
}

.bv-ambiance-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(222, 215, 205, 0.9);
  border-radius: 14px;
  display: block;
  transform-origin: center;
}

.bv-mood__body {
  padding: 15px;
  display: grid;
  gap: 12px;
}

.bv-mood__body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.bv-rating {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.bv-rating label {
  position: relative;
}

.bv-rating input {
  position: absolute;
  opacity: 0;
}

.bv-rating span {
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.bv-rating input:checked + span {
  color: #fff;
  background: #111;
  border-color: #111;
}

.bv-colors {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.bv-colors input[type="color"] {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 4px;
  cursor: pointer;
}

.bv-subheading {
  margin: 28px 0 0;
}

.bv-typeface > span {
  font-family: var(--typeface);
}

.bv-typeface b {
  font-size: 30px;
  letter-spacing: -0.04em;
}

.bv-select-label {
  margin-top: 22px;
}

.bv-summary {
  display: grid;
  gap: 16px;
  margin: 28px 0;
}

.bv-summary section {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 16px;
  padding: 16px;
}

.bv-summary h3 {
  margin-bottom: 10px;
}

.bv-summary dl {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 8px 16px;
  margin: 0;
}

.bv-summary dt {
  color: var(--muted);
  font-weight: 800;
}

.bv-summary dd {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.bv-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding: 20px clamp(24px, 4vw, 42px);
}

.bv-btn,
.bv-submit,
.bv-result a {
  border: 1px solid transparent;
  background: #111;
  color: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  display: inline-flex;
}

.bv-btn:hover,
.bv-submit:hover,
.bv-result a:hover {
  transform: translateY(-1px);
}

.bv-btn.primary,
.bv-submit {
  background: var(--accent);
}

.bv-btn.secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.bv-submit {
  width: 100%;
  justify-content: center;
}

.bv-message {
  color: var(--muted);
}

.bv-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.bv-result {
  padding: clamp(28px, 5vw, 56px);
}

.bv-result p {
  line-height: 1.6;
  color: var(--muted);
}

.admin .bv-page,
.admin-panel {
  max-width: 1200px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  margin-top: 24px;
}

.admin-item {
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  margin-bottom: 8px;
  color: var(--text);
  background: #fff;
}

.admin-item small {
  color: var(--muted);
}

.admin-layout pre {
  white-space: pre-wrap;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  overflow: auto;
}

@media (max-width: 960px) {
  .bv-form,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .bv-sidebar {
    position: static;
  }

  .bv-nav {
    display: none;
  }

  .bv-grid.two,
  .bv-choices,
  .bv-moods,
  .bv-typefaces {
    grid-template-columns: 1fr;
  }

  .bv-colors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bv-summary dl {
    grid-template-columns: 1fr;
  }
}


.bv-perception .bv-choice > span {
  min-height: 122px;
}

.bv-rating span {
  font-size: 18px;
  font-weight: 900;
}

.bv-rating label:nth-child(2) span {
  font-size: 13px;
}


.bv-image-zoom {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(23, 23, 23, 0.72);
  color: #fff;
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, opacity 0.16s ease;
  opacity: 0;
}

.bv-mood:hover .bv-image-zoom,
.bv-image-zoom:focus {
  opacity: 1;
}

.bv-image-zoom:hover {
  transform: translateY(-1px);
  background: rgba(249, 54, 0, 0.92);
}

.bv-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: start center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(16, 16, 16, 0.82);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  overflow: auto;
}

.bv-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.bv-lightbox__figure {
  /* width: calc(100vw - 48px); */
  max-width: none;
  margin: 0 auto 48px;
  display: grid;
  gap: 12px;
}

.bv-lightbox__figure img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.bv-lightbox__figure figcaption {
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  font-size: 14px;
}

.bv-lightbox__close {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 82;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 960px) {
  .bv-image-zoom {
    opacity: 1;
  }
}


@media (max-width: 700px) {
  .bv-lightbox {
    padding: 12px;
  }

  .bv-lightbox__figure {
    width: calc(100vw - 24px);
    margin-bottom: 32px;
  }

  .bv-lightbox__figure img {
    border-radius: 16px;
  }
}


@media (max-width: 700px) {
  .bv-lightbox {
    padding: 12px;
  }

  .bv-lightbox__figure {
    width: calc(100vw - 24px);
    margin-bottom: 32px;
  }

  .bv-lightbox__figure img {
    border-radius: 16px;
  }
}
