/* Демо «Lumé» — премиальный бьюти-салон (вымышленный). Стили изолированы внутри iframe. */
:root {
  --cream: #faf4ee;
  --blush: #f1dcd5;
  --blush-d: #e6c3b9;
  --plum: #2b1f26;
  --muted: #6b5a61;
  --rose: #a8654f;
  --rose-d: #8b4d39;
  --gold: #c9a46a;
  --line: #e8d8cf;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", SimSun, serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--cream); color: var(--plum); font-family: var(--sans); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #1a6fd1; outline-offset: 3px; }
[hidden] { display: none !important; }

.ribbon { background: var(--plum); color: #f6e9e1; text-align: center; font-size: .86rem; padding: 9px 16px; font-weight: 600; }

/* Навигация (не sticky — фрейм «растёт» вместе с содержимым) */
.bnav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(18px, 5vw, 56px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.9rem; font-weight: 600; letter-spacing: .04em; text-decoration: none; color: var(--plum); }
.brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(140deg, var(--gold), var(--rose)); color: #fff; font-size: 1.15rem; }
.bnav__links { display: flex; gap: clamp(14px, 3vw, 34px); }
.bnav__links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; padding: 8px 2px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.bnav__links a:hover { color: var(--plum); border-color: var(--gold); }

.bbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--plum); background: var(--plum); color: #fff; font-weight: 700; letter-spacing: .02em; cursor: pointer; transition: transform .25s, box-shadow .25s, background .2s, color .2s; }
.bbtn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(43, 31, 38, .7); }
.bbtn:active { transform: none; }
.bbtn--line { background: transparent; color: var(--plum); }
.bbtn--line:hover { background: var(--plum); color: #fff; }
.bbtn--small { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.bbtn--block { width: 100%; margin-top: 8px; }

/* Hero */
.bhero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(20px, 5vw, 60px); align-items: center; padding: clamp(24px, 5vw, 56px) clamp(18px, 5vw, 56px) clamp(40px, 6vw, 80px); min-height: 520px; }
.eyebrow { font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--rose-d); font-weight: 800; margin-bottom: 16px; }
.bhero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5rem); line-height: 1.02; letter-spacing: -.01em; margin-bottom: 20px; text-wrap: balance; }
.bhero__lead { color: var(--muted); font-size: 1.1rem; max-width: 46ch; margin-bottom: 30px; }
.bhero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.bhero__art { position: relative; height: 440px; }
.arch { position: absolute; bottom: 0; border-radius: 999px 999px 18px 18px; box-shadow: 0 30px 50px -30px rgba(43, 31, 38, .5); }
.arch--1 { left: 4%; width: 36%; height: 78%; background: linear-gradient(170deg, var(--blush), var(--blush-d)); animation: bob 7s ease-in-out infinite; }
.arch--2 { left: 34%; width: 38%; height: 100%; background: linear-gradient(170deg, #f7e8d2, var(--gold)); animation: bob 8s -2s ease-in-out infinite; }
.arch--3 { left: 66%; width: 30%; height: 66%; background: linear-gradient(170deg, #e9bfb1, var(--rose)); animation: bob 9s -4s ease-in-out infinite; }
.arch::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255, 255, 255, .6); border-radius: inherit; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.spark { position: absolute; width: 18px; height: 18px; background: var(--gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 3.4s ease-in-out infinite; }
.spark--1 { left: 2%; top: 14%; }
.spark--2 { right: 4%; top: 6%; width: 26px; height: 26px; animation-delay: -1.4s; }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
.bhero__card { position: absolute; left: 6%; bottom: 22px; max-width: 250px; display: grid; gap: 2px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); padding: 14px 18px; border-radius: 16px; box-shadow: 0 20px 40px -20px rgba(43, 31, 38, .55); font-size: .88rem; color: var(--muted); }
.bhero__card strong { color: var(--plum); font-size: .98rem; }

/* Секции */
.bsec { padding: clamp(36px, 6vw, 72px) clamp(18px, 5vw, 56px); }
.bsec--tint { background: linear-gradient(180deg, #f6e6de, #f9efe8); }
.bsec__head { max-width: 640px; margin-bottom: 28px; }
.bsec h2, .book h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); line-height: 1.05; margin-bottom: 10px; }
.bsec__head p, .book__intro p { color: var(--muted); }

/* Услуги */
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.cat { min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; color: var(--muted); transition: background .25s, color .25s, border-color .25s, transform .2s; }
.cat:hover { border-color: var(--gold); color: var(--plum); }
.cat[aria-selected="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.svcs { display: grid; gap: 12px; animation: fade .4s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.svc { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: box-shadow .25s, border-color .25s; }
.svc:hover { box-shadow: 0 18px 36px -24px rgba(43, 31, 38, .5); border-color: var(--blush-d); }
.svc h3 { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; line-height: 1.15; margin-bottom: 4px; }
.svc__desc { color: var(--muted); font-size: .97rem; }
.svc__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: .9rem; font-weight: 700; }
.svc__price { color: var(--rose-d); }
.svc__time { color: var(--muted); font-weight: 600; }
.svc__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.svc__btn { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; font-size: .9rem; transition: background .2s, color .2s, border-color .2s; }
.svc__btn:hover { border-color: var(--plum); }
.svc__btn--pick { background: var(--plum); color: #fff; border-color: var(--plum); }
.svc__btn--pick:hover { background: var(--rose-d); border-color: var(--rose-d); }
.svc__details { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.svc.open .svc__details { grid-template-rows: 1fr; }
.svc__details > div { overflow: hidden; visibility: hidden; transition: visibility 0s .3s; }
.svc.open .svc__details > div { visibility: visible; transition-delay: 0s; }
.svc__details h4 { margin: 12px 0 8px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-d); }
.svc__details ul { display: grid; gap: 6px; padding-bottom: 4px; }
.svc__details li { position: relative; padding-inline-start: 22px; color: var(--muted); }
.svc__details li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 10px; height: 10px; background: var(--gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }

/* Преимущества */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.perk { padding: 24px 20px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); border-radius: 20px; transition: transform .3s, box-shadow .3s; }
.perk:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(43, 31, 38, .55); }
.perk__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(140deg, var(--blush), var(--blush-d)); font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--rose-d); margin-bottom: 14px; }
.perk h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.15; margin-bottom: 6px; }
.perk p { color: var(--muted); font-size: .95rem; }

/* Запись */
.book { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(20px, 5vw, 56px); align-items: start; }
.book__warn { margin-top: 14px; display: inline-block; padding: 8px 14px; border-radius: 12px; background: #fff3d6; border: 1px solid #ecd48d; color: #6b4a00 !important; font-weight: 700; font-size: .9rem; }
.book__card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(18px, 3vw, 32px); box-shadow: 0 30px 50px -36px rgba(43, 31, 38, .55); }
.field { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; margin-bottom: 6px; font-weight: 700; font-size: .92rem; padding: 0; }
.field input[type="text"], .field input[type="date"], .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; background: #fffaf6; border: 1px solid #dcc8bd; border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(168, 101, 79, .22); }
.field.bad input, .field.bad select, .field.bad .slot span { border-color: #b3261e; }
.err { min-height: 0; margin-top: 4px; color: #b3261e; font-weight: 700; font-size: .86rem; }
.err:empty { display: none; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.slot span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #dcc8bd; border-radius: 999px; background: #fffaf6; font-weight: 700; font-variant-numeric: tabular-nums; transition: background .2s, color .2s, border-color .2s; }
.slot input:hover + span { border-color: var(--rose); }
.slot input:checked + span { background: var(--plum); color: #fff; border-color: var(--plum); }
.slot input:focus-visible + span { outline: 3px solid #1a6fd1; outline-offset: 2px; }
.done { text-align: center; padding: 24px 8px; animation: fade .4s ease both; }
.done:focus { outline: none; }
.done__ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, var(--gold), var(--rose)); color: #fff; font-size: 1.9rem; font-weight: 800; }
.done h3 { font-family: var(--serif); font-size: 2rem; font-weight: 600; margin-bottom: 6px; }
.done p { color: var(--muted); }
.done__sum { margin: 16px auto 20px; padding: 12px 16px; border-radius: 12px; background: var(--cream); color: var(--plum) !important; font-weight: 700; max-width: 420px; }

.bfoot { padding: 28px 16px 34px; text-align: center; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .bhero { grid-template-columns: 1fr; min-height: 0; }
  .bhero__art { height: 340px; order: -1; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .book { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bnav { flex-wrap: wrap; justify-content: center; }
  .bnav__links { order: 3; width: 100%; justify-content: center; }
  .bhero__art { height: 280px; }
  .bhero__card { left: 2%; max-width: 210px; padding: 10px 14px; }
  .svc { grid-template-columns: 1fr; }
  .svc__actions { justify-content: flex-start; }
  .perks { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
