:root {
  --frix-rose: #b07e76;
  --frix-rose-600: #9b6d66;
  --frix-rose-100: #f3e8e6;
  --ink: #1b1b1f;
  --muted: #6b6b74;
  --surface: #ffffff;
  --line: rgba(27, 27, 31, 0.1);
  --bg: #f7f5f2;
  --accent: var(--frix-rose);
  --accent-soft: var(--frix-rose-100);
  --card: rgba(255, 255, 255, 0.98);
  --glass: rgba(27, 27, 31, 0.03);
  --shadow: 0 18px 40px rgba(27, 27, 31, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background:
    radial-gradient(900px 500px at 65% 10%, rgba(176, 126, 118, 0.28), transparent 60%),
    linear-gradient(180deg, #f9f7f3 0%, #f4f1ef 60%, #f2f4f8 100%);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.2;
  z-index: -2;
}

.orb-a {
  background: radial-gradient(circle, rgba(176, 126, 118, 0.25), rgba(176, 126, 118, 0));
  top: -220px;
  right: -140px;
}

.orb-b {
  background: radial-gradient(circle, rgba(176, 126, 118, 0.2), rgba(176, 126, 118, 0));
  bottom: -240px;
  left: -160px;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(27, 27, 31, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 27, 31, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.15;
  z-index: -3;
}

.site-header {
  padding: 28px 7vw 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 20px;
}

.brand-name {
  font-family: "Playfair Display", serif;
  font-size: 20px;
}

.brand-tag {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  gap: 12px;
}

.lang-select {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.lang-select span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-select select {
  background: transparent;
  border: none;
  color: var(--ink);
  font: inherit;
  outline: none;
}

button {
  font: inherit;
  border: none;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

button:active {
  transform: scale(0.98);
}

button.primary {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 14px 26px rgba(176, 126, 118, 0.25);
}

button.primary:hover {
  background: var(--frix-rose-600);
  box-shadow: 0 18px 30px rgba(176, 126, 118, 0.35);
}

button.ghost {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
}

main {
  padding: 40px 7vw 80px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(38px, 4.2vw, 52px);
  margin-bottom: 16px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 26px;
}

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 12px;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(176, 126, 118, 0.5);
  background: rgba(176, 126, 118, 0.1);
}

.hero-metrics {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.metric {
  font-size: 24px;
  font-weight: 600;
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.card-header h2 {
  margin-bottom: 8px;
}

.card-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 10px;
}

.card-header p {
  color: var(--muted);
  margin-bottom: 20px;
}

.form {
  display: grid;
  gap: 18px;
}

.form.compact {
  gap: 14px;
}

.form-section {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--ink);
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: rgba(27, 27, 31, 0.45);
}

.field-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: rgba(27, 27, 31, 0.04);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 16px;
  font-size: 13px;
  border: 1px solid transparent;
}

.chip.active {
  background: var(--frix-rose-100);
  color: var(--frix-rose-600);
  border-color: var(--frix-rose);
}

.upload {
  display: grid;
  gap: 12px;
}

.upload-preview {
  border-radius: 16px;
  background: rgba(27, 27, 31, 0.03);
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  overflow: hidden;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
}

.checkbox input {
  width: auto;
}

.price-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(27, 27, 31, 0.03);
  font-size: 14px;
}

.price-line strong {
  color: var(--accent);
  font-size: 18px;
}

.hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.cta-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: -6px;
}

.results {
  margin-top: 80px;
}

.section-title {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 20px;
  margin-bottom: 24px;
  align-items: start;
}

.section-title p {
  color: var(--muted);
  grid-column: 1 / -1;
}

.mini-badge {
  justify-self: end;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(176, 126, 118, 0.5);
  color: var(--frix-rose);
  background: rgba(176, 126, 118, 0.08);
}

.alt-allow {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.alt-actions {
  display: flex;
  gap: 8px;
}

.chip.tiny {
  padding: 6px 10px;
  font-size: 12px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.placeholder {
  background: rgba(27, 27, 31, 0.03);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  text-align: center;
  color: var(--muted);
}

.salon-card {
  background: var(--surface);
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.6s ease both;
}

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

.salon-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(176, 126, 118, 0.18), rgba(176, 126, 118, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.salon-card:hover::after {
  opacity: 1;
}

.salon-card h3 {
  font-size: 20px;
  position: relative;
  z-index: 1;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 13px;
  position: relative;
  z-index: 1;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--frix-rose-100);
  font-size: 12px;
}

.card-thumb {
  height: 140px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(176, 126, 118, 0.25), rgba(176, 126, 118, 0));
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--frix-rose-600);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.card-reason {
  color: var(--muted);
  font-size: 14px;
}

.reason-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.score {
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.steps {
  margin-top: 80px;
  background: rgba(255, 255, 255, 0.9);
  padding: 50px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}

.steps-grid article {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--line);
}

.steps-grid span {
  font-size: 24px;
  color: var(--accent);
  font-weight: 600;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(27, 27, 31, 0.35);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  padding: 28px;
  border-radius: 18px;
  width: min(420px, 90vw);
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.modal-step {
  display: none;
  gap: 14px;
}

.modal-step.is-active {
  display: grid;
}

.modal-desc {
  color: var(--muted);
  font-size: 14px;
}

.confirm-panel {
  background: rgba(27, 27, 31, 0.03);
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.confirm-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.confirm-status strong {
  color: var(--accent);
}

.confirm-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.close {
  background: transparent;
  color: var(--muted);
  text-align: right;
  padding: 0;
  justify-self: end;
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-actions {
    flex-wrap: wrap;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .section-title {
    grid-template-columns: 1fr;
  }

  .mini-badge {
    justify-self: start;
  }

  .steps {
    padding: 32px 20px;
  }
}
