/* Mind & Spa configurator — atelier layout (native boutique page, no boxed window) */

.cfg-page {
  --cfg-bg: #1c1c1e;
  --cfg-gold: #d1b26f;
  --cfg-gold-soft: #e4c98a;
  --cfg-gold-deep: #b8964e;
  --cfg-cream: #f5f5f5;
  --cfg-muted: rgba(245, 245, 245, 0.68);
  --cfg-line: rgba(209, 178, 111, 0.22);
  --cfg-ease: cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--cfg-cream);
  overflow-x: clip;
}

.cfg-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0 40px;
}

.cfg-atelier {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: calc(100vh - 160px);
}

.cfg-atelier--hub {
  min-height: 0;
}

.cfg-hub-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.cfg-page .cfg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--cfg-gold-soft, #e4c98a);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cfg-page .cfg-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--cfg-gold, #d1b26f);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(209, 178, 111, 0.45);
}

.cfg-hub-head h1,
.cfg-atelier__head h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  color: var(--cfg-cream);
}

.cfg-hub-head p,
.cfg-atelier__lead {
  color: var(--cfg-muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  max-width: 540px;
}

.cfg-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.cfg-hub-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--cfg-line);
  overflow: hidden;
  min-width: 0;
  transition: border-color 0.35s var(--cfg-ease), transform 0.35s var(--cfg-ease);
}

.cfg-hub-card:hover {
  border-color: rgba(209, 178, 111, 0.5);
  transform: translateY(-3px);
}

.cfg-hub-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  overflow: hidden;
  flex: 0 0 auto;
  background: #141416;
}

.cfg-hub-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cfg-hub-card__media .cfg-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(209, 178, 111, 0.14), transparent 55%),
    #1a221c;
}

.cfg-hub-card__media .cfg-placeholder span {
  width: 42%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(209, 178, 111, 0.5);
}

.cfg-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(28, 28, 30, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--cfg-cream);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.cfg-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7dba7a;
}

.cfg-badge.is-wait::before {
  background: var(--cfg-gold);
}

.cfg-hub-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 24px;
  flex: 1;
  min-width: 0;
}

.cfg-hub-card__body .cfg-label {
  color: var(--cfg-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cfg-hub-card__body h2 {
  font-size: 1.4rem;
  font-weight: 400;
}

.cfg-hub-card__body p {
  color: var(--cfg-muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  flex: 1;
}

.cfg-hub-card__body .cfg-btn {
  align-self: flex-start;
  margin-top: auto;
}

/* —— Solo atelier —— */
.cfg-atelier__head {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(209, 178, 111, 0.16);
}

.cfg-link {
  display: flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cfg-muted);
  cursor: pointer;
  font: 600 10px/1 Montserrat, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s var(--cfg-ease);
}

.cfg-atelier__head .cfg-kicker {
  display: flex;
}

.cfg-link:hover {
  color: var(--cfg-gold);
}

.cfg-atelier__lead {
  margin-bottom: 22px;
}

.cfg-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  padding-bottom: 4px;
  max-width: 100%;
}

.cfg-rail button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: var(--cfg-muted);
  cursor: pointer;
  font: 500 11px/1 Montserrat, sans-serif;
  letter-spacing: 0.04em;
  transition: border-color 0.25s var(--cfg-ease), background 0.25s var(--cfg-ease), color 0.25s var(--cfg-ease);
}

.cfg-rail button span:first-child {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--cfg-gold);
  font-size: 10px;
}

.cfg-rail .cfg-step-label {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cfg-rail button:hover {
  color: var(--cfg-cream);
  border-color: rgba(209, 178, 111, 0.35);
}

.cfg-rail button.is-active,
.cfg-rail button.is-done {
  color: var(--cfg-cream);
  border-color: rgba(209, 178, 111, 0.45);
  background: rgba(209, 178, 111, 0.1);
}

.cfg-rail button.is-active span:first-child,
.cfg-rail button.is-done span:first-child {
  border-color: var(--cfg-gold);
  background: var(--cfg-gold);
  color: #1c1c1e;
}

.cfg-atelier__stage {
  padding: 28px 0 36px;
  flex: 1;
}

.cfg-atelier__choices {
  min-width: 0;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.cfg-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.cfg-panels > .cfg-panel:only-child {
  grid-column: 1 / -1;
}

.cfg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.cfg-panel {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(209, 178, 111, 0.16);
  padding: 16px 16px 18px;
  margin: 0;
  min-width: 0;
}

.cfg-panel h2 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.cfg-panel > p {
  color: var(--cfg-muted);
  font-size: 12px;
  font-weight: 300;
  margin-bottom: 12px;
  line-height: 1.45;
}

.cfg-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cfg-choice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  word-break: break-word;
  transition: border-color 0.25s var(--cfg-ease), background 0.25s var(--cfg-ease);
}

.cfg-choice.has-media {
  padding: 0;
  overflow: hidden;
}

.cfg-choice__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: #121214;
  overflow: hidden;
}

.cfg-choice__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cfg-choice__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 14px;
}

.cfg-choice:hover {
  border-color: rgba(209, 178, 111, 0.4);
}

.cfg-choice strong {
  font-size: 14px;
  font-weight: 500;
}

.cfg-choice span,
.cfg-choice__body > span {
  color: var(--cfg-muted);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.4;
}

.cfg-choice em {
  margin-top: 6px;
  color: var(--cfg-gold);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cfg-choice.is-on {
  border-color: var(--cfg-gold);
  background: rgba(209, 178, 111, 0.12);
}

.cfg-material-preview {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  border: 1px solid rgba(209, 178, 111, 0.28);
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.cfg-material-preview img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.cfg-material-preview figcaption {
  padding: 10px 14px;
  color: var(--cfg-muted);
  font-size: 12px;
  font-weight: 300;
}

.cfg-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.cfg-fields label {
  display: grid;
  gap: 6px;
  color: var(--cfg-gold);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cfg-fields input {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: var(--cfg-cream);
  font: 400 13px/1.3 Montserrat, sans-serif;
  outline: none;
}

.cfg-fields input:focus,
.cfg-fields select:focus {
  border-color: var(--cfg-gold);
}

.cfg-fields select {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: var(--cfg-cream);
  font: 400 13px/1.3 Montserrat, sans-serif;
  outline: none;
}

.cfg-fields select option {
  color: #1c1c1e;
  background: #ffffff;
}

.cfg-note {
  margin: 14px 0 8px;
  color: var(--cfg-muted);
  font-size: 12px;
  font-weight: 300;
}

.cfg-ir-row {
  margin-top: 10px;
}

.cfg-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  color: var(--cfg-cream);
  font-size: 14px;
  font-weight: 300;
}

.cfg-check input {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex: 0 0 15px;
  accent-color: var(--cfg-gold);
}

.cfg-summary-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.cfg-summary-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cfg-summary-list dt {
  color: var(--cfg-gold);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cfg-summary-list dd {
  margin: 0;
  font-size: 13px;
  font-weight: 300;
  overflow-wrap: anywhere;
}

.cfg-price {
  display: inline-block;
  max-width: 100%;
  margin-top: 4px;
  padding: 18px;
  border: 1px solid rgba(209, 178, 111, 0.35);
  background: rgba(209, 178, 111, 0.08);
  box-sizing: border-box;
  vertical-align: top;
}

.cfg-price strong {
  display: block;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 400;
  color: var(--cfg-gold);
  margin-bottom: 6px;
  white-space: nowrap;
}

.cfg-price p {
  width: 0;
  min-width: 100%;
  margin: 0;
  color: var(--cfg-muted);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.5;
}

.cfg-atelier__bar,
footer {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
}

.cfg-atelier__bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(209, 178, 111, 0.2);
  background: transparent;
}

.cfg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--cfg-gold);
  background: var(--cfg-gold);
  color: #1c1c1e;
  cursor: pointer;
  font: 600 11px/1 Montserrat, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  max-width: 100%;
  transition: background 0.3s var(--cfg-ease), border-color 0.3s var(--cfg-ease), transform 0.3s var(--cfg-ease);
}

.cfg-btn:hover {
  background: var(--cfg-gold-deep);
  border-color: var(--cfg-gold-deep);
  color: #1c1c1e;
  transform: translateY(-1px);
}

.cfg-btn.is-ghost {
  background: transparent;
  color: var(--cfg-cream);
  border-color: rgba(245, 245, 245, 0.45);
}

.cfg-btn.is-ghost:hover {
  border-color: var(--cfg-cream);
  background: rgba(245, 245, 245, 0.06);
  color: var(--cfg-cream);
}

.cfg-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.cfg-note {
  color: var(--cfg-muted);
  font-size: 12px;
  font-weight: 300;
  margin-top: 12px;
  line-height: 1.5;
}

.cfg-home {
  margin-top: 8px;
}

.cfg-home-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  border: 1px solid rgba(209, 178, 111, 0.28);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  color: var(--cfg-cream);
}

.cfg-home-card__copy {
  padding: 36px 34px;
  min-width: 0;
}

.cfg-home-card__copy h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 300;
  margin: 10px 0 12px;
  color: var(--cfg-cream);
}

.cfg-home-card__copy p {
  color: var(--muted, rgba(245, 245, 245, 0.68));
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 22px;
}

.cfg-home-card__media {
  min-height: 280px;
  background: center / cover no-repeat #1a1511;
}

@media (max-width: 980px) {
  .cfg-hub-grid,
  .cfg-panels,
  .cfg-home-card,
  .cfg-fields {
    grid-template-columns: 1fr;
  }

  .cfg-atelier__stage {
    padding: 18px 0 28px;
  }

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

  .cfg-atelier__choices {
    max-width: none;
  }

  .cfg-home-card__media {
    order: -1;
    min-height: 200px;
  }

  .cfg-home-card__copy {
    padding: 24px 20px;
  }

  .cfg-summary-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .cfg-hub-card__body .cfg-btn {
    width: 100%;
    align-self: stretch;
  }

  .cfg-rail {
    gap: 5px;
    margin: 0 -4px;
    padding: 0 4px 2px;
  }

  .cfg-rail button {
    min-height: 38px;
    padding: 0 8px 0 4px;
  }

  .cfg-rail button span:first-child {
    width: 24px;
    height: 24px;
  }

  .cfg-rail .cfg-step-label {
    max-width: 64px;
    font-size: 10px;
  }
}

@media (max-width: 640px) {
  .cfg-shell {
    width: min(100% - 20px, 1180px);
    padding: 96px 0 20px;
  }

  .cfg-hub-head {
    margin-bottom: 22px;
  }

  .cfg-hub-head h1,
  .cfg-atelier__head h1 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }

  .cfg-atelier__lead {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .cfg-atelier__head {
    padding-bottom: 16px;
  }

  .cfg-panel {
    padding: 14px;
  }

  .cfg-choice {
    padding: 12px;
  }

  .cfg-atelier__bar {
    flex-direction: column-reverse;
    margin-top: 22px;
    padding-top: 16px;
  }

  .cfg-btn {
    width: 100%;
    min-height: 46px;
  }

  .cfg-fields {
    grid-template-columns: 1fr;
  }

  /* On phones show step numbers; labels stay but tighter */
  .cfg-rail .cfg-step-label {
    max-width: 4.5em;
  }
}

@media (max-width: 380px) {
  .cfg-rail .cfg-step-label {
    display: none;
  }

  .cfg-rail button {
    padding: 0 4px;
    min-width: 36px;
    justify-content: center;
  }
}
