/* Kérastase Holiday — бяло и златно */
:root {
  --bg: #ffffff;
  --cream: #fbf8f2;
  --ink: #1d1a16;
  --muted: #7b7366;
  --line: #ece3d2;
  --gold: #b8924a;
  --gold-light: #e3cd96;
  --gold-deep: #8a6a2c;
  --gold-grad: linear-gradient(135deg, #8a6a2c 0%, #d9bc7e 38%, #b8924a 62%, #ecd9a8 100%);
  --ok: #3f7d58;
  --warn: #b5651d;
  --danger: #a33a3a;
  --radius: 14px;
  --shadow: 0 10px 30px -18px rgba(90, 66, 20, .35);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- Празничен хедър (по празничните кутии) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: 28px 20px 36px;
  background: var(--bg);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before { /* шарка с K и звездички, избледняваща към центъра */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('/assets/pattern.png') center top / 80px 80px repeat;
  opacity: .4;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 50%, transparent 50%, #000 100%);
  mask-image: radial-gradient(ellipse 70% 75% at 50% 50%, transparent 50%, #000 100%);
}
.hero-flake {
  display: block;
  width: clamp(150px, 42vw, 210px);
  height: auto;
  margin: 0 auto 10px;
}
.logo { margin: 0; line-height: 0; }
.logo img { width: clamp(200px, 62vw, 290px); height: auto; }
.sparkle {
  position: absolute;
  z-index: -1;
  width: 16px; height: 16px;
  color: var(--gold);
  animation: twinkle 3.6s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) { .sparkle, .balloon, .done h2 { animation: none !important; } }

.eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.subtitle {
  margin: 18px 0 4px;
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
}
.hero .meta { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- Карти / стъпки ---------- */
.wrap { max-width: 560px; margin: 0 auto; padding: 24px 16px 48px; }
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
}
.num {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  flex: none;
}

/* Дни */
.days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 2px 2px 8px;
  margin: 0 -2px;
  scrollbar-width: thin;
}
.day {
  flex: 1 0 54px; /* малко дни → изпълват реда; много дни → скрол */
  scroll-snap-align: start;
  min-width: 54px;
  max-width: 96px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  text-align: center;
  line-height: 1.2;
  transition: border-color .15s, background .15s;
}
.day small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.day strong { display: block; font-size: 20px; font-weight: 600; margin: 2px 0; }
.day:hover { border-color: var(--gold-light); }
.day[aria-pressed='true'] { background: var(--gold-grad); border-color: transparent; color: #fff; }
.day[aria-pressed='true'] small { color: rgba(255, 255, 255, .85); }

/* Часове */
.period { margin: 14px 0 8px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.period:first-child { margin-top: 0; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot {
  position: relative;
  padding: 11px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: border-color .15s, background .15s;
}
.slot:hover:not(:disabled) { border-color: var(--gold); }
.slot:disabled { color: #c4bcae; background: var(--cream); text-decoration: line-through; cursor: not-allowed; }
.slot[aria-pressed='true'] { background: var(--gold-grad); color: #fff; border-color: transparent; }
.slot.last::after { /* последно свободно място */
  content: '';
  position: absolute;
  top: 6px; right: 6px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.slot[aria-pressed='true'].last::after { background: #fff; }
.hint { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.hint .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 6px; vertical-align: middle; }
.notice {
  margin: -4px 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fdf2e7;
  border: 1px solid #f0cfae;
  color: var(--warn);
  font-size: 13px;
  line-height: 1.45;
}
.empty { padding: 18px; text-align: center; color: var(--muted); background: var(--cream); border-radius: 10px; }

/* Форма */
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 12px; font-weight: 500; letter-spacing: .04em; margin-bottom: 6px; }
.input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-size: 16px; /* без zoom в iOS */
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 146, 74, .15); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 4px 0 16px; }
.check input { margin-top: 3px; accent-color: var(--gold); width: 18px; height: 18px; flex: none; }

.summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: var(--cream);
  border: 1px dashed var(--gold-light);
  border-radius: 10px;
  font-size: 14px;
}
.summary b { font-weight: 600; }

.btn-gold {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--gold-grad);
  background-size: 140% 100%;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px -10px rgba(138, 106, 44, .8);
  transition: background-position .4s, opacity .15s;
}
.btn-gold:hover:not(:disabled) { background-position: 100% 0; }
.btn-gold:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-ghost {
  padding: 10px 16px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 500;
}
.error { color: var(--danger); font-size: 13px; margin: 10px 0 0; min-height: 1em; text-align: center; }

/* Потвърждение */
.done { text-align: center; padding: 34px 22px; }
.done .balloon {
  display: block;
  width: 150px;
  height: auto;
  margin: -6px auto 14px;
  animation: float 5s ease-in-out infinite;
}
/* Балонът "излита" при потвърждение, после се поклаща */
.done.celebrate .balloon {
  animation: rise 1.4s cubic-bezier(.2, .8, .2, 1) both, float 5s ease-in-out 1.4s infinite;
}
.done.celebrate h2 { animation: fade-up .8s .5s ease-out both; }
@keyframes rise {
  from { transform: translateY(80px) scale(.82); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes fade-up {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.celebrate-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.done h2 { justify-content: center; font-size: 30px; margin-bottom: 6px; }
.done .when { font-family: var(--serif); font-size: 26px; margin: 6px 0 2px; }
.cal { display: grid; gap: 10px; margin: 22px 0 6px; }
.cal .btn-gold { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.cal .btn-ghost { display: block; padding: 13px 16px; text-decoration: none; font-size: 14px; }
.cal .cal-note { font-size: 12px; margin: 2px 0 0; }
.link-btn { border: 0; background: none; color: var(--gold-deep); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
.done p { color: var(--muted); margin: 0 0 8px; }

.banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--gold-light);
  font-size: 14px;
}

footer { text-align: center; color: var(--muted); font-size: 12px; padding: 0 16px 32px; }
footer .gold-rule { width: 60px; height: 1px; margin: 0 auto 14px; background: var(--gold-grad); }
