:root {
  --color-bg: #faf8f5;
  --color-text: #251e1a;
  --color-accent-one: #6a3b56;
  --color-accent-two: #e5953c;
  --color-card-a: rgba(106, 59, 86, 0.08);
  --color-card-b: rgba(229, 149, 60, 0.1);
  --color-card-c: rgba(37, 30, 26, 0.06);
  --color-line: rgba(37, 30, 26, 0.2);
  --color-white: #ffffff;
  --font-heading: "Bodoni Moda", serif;
  --font-body: "Inter", sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.85rem;
  --radius-lg: 1.25rem;
  --shadow-soft: 0 1rem 2rem rgba(37, 30, 26, 0.12);
  --trans-fast: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  overflow-x: hidden;
  color: var(--color-text);
  background: radial-gradient(circle at 20% 0%, #fff8f2 0%, var(--color-bg) 42%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-md);
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  width: min(92%, 75rem);
  margin: 1rem auto 0;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  border: 0.05rem solid var(--color-line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(0.6rem);
  background: rgba(255, 255, 255, 0.62);
  position: relative;
  z-index: 10;
}

.brand-mark {
  font-family: var(--font-heading);
  letter-spacing: 0.04rem;
  font-size: clamp(1.1rem, 3.5vw, 1.4rem);
}

.nav-shell {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  align-items: center;
}

.nav-link {
  padding: 0.3rem 0.7rem;
  border-radius: 5rem;
  font-size: 0.9rem;
  transition: background var(--trans-fast), color var(--trans-fast);
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--color-card-a);
  color: var(--color-accent-one);
}

.burger-toggle {
  border: 0.05rem solid var(--color-line);
  background: var(--color-white);
  border-radius: 0.45rem;
  width: 2.8rem;
  height: 2.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.burger-bar {
  width: 1.35rem;
  height: 0.1rem;
  background: var(--color-text);
  position: relative;
}

.burger-bar::before,
.burger-bar::after {
  content: "";
  width: 1.35rem;
  height: 0.1rem;
  background: var(--color-text);
  position: absolute;
  left: 0;
}

.burger-bar::before {
  top: -0.35rem;
}

.burger-bar::after {
  top: 0.35rem;
}

.menu-drawer {
  width: min(92%, 75rem);
  margin: 0.5rem auto 0;
  background: rgba(255, 255, 255, 0.96);
  border: 0.05rem solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: none;
  flex-direction: column;
  gap: var(--space-sm);
}

.menu-drawer.is-open {
  display: flex;
}

.main-wrap {
  width: min(92%, 75rem);
  margin: var(--space-lg) auto var(--space-2xl);
}

.hero-slab {
  position: relative;
  min-height: 25rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(37, 30, 26, 0.7), rgba(106, 59, 86, 0.35));
  z-index: 2;
}

.hero-copy {
  position: relative;
  z-index: 3;
  color: #fffdf9;
  padding: clamp(1.2rem, 4vw, 3rem);
  width: min(100%, 40rem);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.8rem, 4.2vw, 3.2rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.button-row {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.button-cta {
  border: 0.05rem solid rgba(255, 255, 255, 0.45);
  padding: 0.65rem 1rem;
  border-radius: 5rem;
  background: rgba(255, 255, 255, 0.16);
  color: orangered;
  font-size: 0.92rem;
}

.button-cta:hover {
  background: rgba(255, 255, 255, 0.28);
  color: orangered;
}

.section-shell {
  margin-bottom: var(--space-xl);
}

.grid-duo,
.grid-trio {
  display: grid;
  gap: var(--space-md);
}

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

.grid-trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-panel {
  border: 0.05rem solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  background: var(--color-card-a);
  transition: transform var(--trans-fast), background var(--trans-fast);
}

.card-panel:nth-child(2n) {
  background: var(--color-card-b);
}

.card-panel:nth-child(3n) {
  background: var(--color-card-c);
}

.card-panel:hover {
  transform: translateY(-0.2rem);
}

.visual-wheel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}

.wheel-part {
  border: 0.05rem solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  background: rgba(255, 255, 255, 0.65);
}

.wheel-part button {
  width: 100%;
  border: 0.05rem solid var(--color-line);
  border-radius: var(--radius-sm);
  background: transparent;
  padding: 0.35rem 0.5rem;
  margin-bottom: 0.3rem;
  cursor: pointer;
}

.wheel-part button.is-active {
  background: var(--color-accent-two);
  color: #fff;
}

.soft-note {
  font-size: 0.9rem;
  opacity: 0.85;
}

.tier-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
}

.tier-selector button {
  border: 0.05rem solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.8rem;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.tier-selector button.is-selected {
  background: var(--color-accent-one);
  color: #fff;
}

.info-box {
  margin-top: var(--space-sm);
  border-radius: var(--radius-sm);
  border: 0.05rem dashed var(--color-line);
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.58);
}

.router-layout {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr 2fr;
}

.router-list button {
  width: 100%;
  text-align: left;
  margin-bottom: 0.4rem;
  border: 0.05rem solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.78);
}

.router-list button.is-selected {
  background: var(--color-accent-two);
  color: #fff;
}

.profile-counter {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  border: 0.05rem solid var(--color-line);
  border-radius: 5rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  z-index: 20;
}

.mosaic-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(37, 30, 26, 0.5);
  z-index: 30;
}

.mosaic-modal.is-open {
  display: flex;
}

.mosaic-box {
  width: min(92%, 34rem);
  background: #fff;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
}

.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
}

.mosaic-grid span {
  border-radius: 0.35rem;
  min-height: 2rem;
}

.tone-1 { background: #6a3b56; }
.tone-2 { background: #e5953c; }
.tone-3 { background: #7da76f; }
.tone-4 { background: #88b8de; }
.tone-5 { background: #714ea6; }
.tone-6 { background: #dda95f; }
.tone-7 { background: #6d8d4e; }
.tone-8 { background: #b95f5f; }
.tone-9 { background: #8b2f66; }
.tone-10 { background: #54a08e; }

.color-miss {
  animation: pulse-hint 1.4s ease-in-out infinite;
}

@keyframes pulse-hint {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.form-grid {
  display: grid;
  gap: var(--space-sm);
}

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

input,
textarea {
  width: 100%;
  border: 0.05rem solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.86);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.tick-wrap {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
}

.tick-wrap input {
  width: auto;
  margin-top: 0.2rem;
}

.map-frame {
  width: 100%;
  min-height: 18rem;
  border: 0;
  border-radius: var(--radius-md);
}

.policy-popup {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  width: min(90%, 22rem);
  border: 0.05rem solid var(--color-line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.98);
  padding: 0.9rem;
  z-index: 25;
}

.policy-popup.is-hidden {
  display: none;
}

.site-footer {
  width: min(92%, 75rem);
  margin: 0 auto 1rem;
  border-top: 0.05rem solid var(--color-line);
  padding: var(--space-md) 0 var(--space-sm);
  display: grid;
  gap: var(--space-sm);
}

.footer-nav,
.legal-nav {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.legal-page h1 {
  margin-bottom: 0.6rem;
}

@media (max-width: 75rem) {
  .hero-slab {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
  }
}

@media (max-width: 63.9375rem) {
  .nav-shell {
    display: none;
  }

  .burger-toggle {
    display: inline-flex;
  }

  .grid-duo,
  .grid-trio,
  .tier-selector {
    grid-template-columns: 1fr;
  }

  .router-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 64rem) {
  .menu-drawer {
    display: none !important;
  }
}
