/* ================= Салон «Лілея» — демо. Акцент: зелений #12a06a ================= */
:root{
  --accent:#12a06a; --accent-600:#0d8557; --accent-soft:rgba(18,160,106,.10);
  --bg:#f6f7f8; --surface:#ffffff; --surface-2:#f1f3f4;
  --text:#22262b; --muted:#6b7480; --border:#e4e7ea;
  --shadow:0 1px 2px rgba(20,25,30,.04), 0 6px 20px rgba(20,25,30,.06);
  --shadow-lg:0 10px 40px rgba(20,25,30,.14);
  --r:12px; --r-sm:10px;
  --danger:#c0392b; --warn:#b8860b;
}
[data-theme="dark"]{
  --accent:#26c98a; --accent-600:#1fae76; --accent-soft:rgba(38,201,138,.14);
  --bg:#14171a; --surface:#1c2024; --surface-2:#23282d;
  --text:#e7eaed; --muted:#98a2ad; --border:#2e343a;
  --shadow:0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.28);
  --shadow-lg:0 10px 40px rgba(0,0,0,.5);
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased;
}
img,svg{max-width:100%}
h1,h2,h3,h4{line-height:1.2; margin:0 0 .5em; letter-spacing:-.02em}
h2{font-size:clamp(1.5rem,3.4vw,2.1rem)}
p{margin:0 0 1em}
a{color:var(--accent); text-decoration:none}
button{font:inherit; color:inherit}
.wrap{max-width:1120px; margin:0 auto; padding:0 20px}
.section{padding:72px 0; scroll-margin-top:72px}
.section-head{margin-bottom:28px; max-width:640px}
.section-head p{color:var(--muted); margin:0}
.eyebrow{
  display:inline-block; font-size:.78rem; font-weight:600; letter-spacing:.08em;
  text-transform:uppercase; color:var(--accent); background:var(--accent-soft);
  padding:4px 10px; border-radius:999px; margin-bottom:10px;
}
.muted{color:var(--muted)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- Кнопки ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 20px; border-radius:var(--r-sm); border:1px solid transparent;
  background:var(--surface-2); color:var(--text); cursor:pointer; font-weight:600;
  transition:background .15s, border-color .15s, transform .08s, opacity .15s;
}
.btn:hover{background:var(--border)}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--accent); color:#fff; box-shadow:0 4px 14px var(--accent-soft)}
.btn-primary:hover{background:var(--accent-600)}
.btn-ghost{background:transparent; border-color:var(--border)}
.btn-ghost:hover{background:var(--surface-2)}
.btn-lg{padding:15px 30px; font-size:1.05rem}
.btn:disabled{opacity:.45; cursor:not-allowed}
.btn-link{background:none;border:none;padding:0;color:var(--accent);cursor:pointer;font-weight:600}
.icon{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ---------- Шапка ---------- */
.header{
  position:sticky; top:0; z-index:40; background:color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter:saturate(180%) blur(10px); border-bottom:1px solid var(--border);
}
.header-in{display:flex; align-items:center; gap:16px; height:64px}
.logo{display:flex; align-items:center; gap:10px; font-weight:700; font-size:1.15rem; color:var(--text)}
.logo-mark{width:34px;height:34px;border-radius:10px;background:var(--accent);display:grid;place-items:center;color:#fff;flex:none}
.logo small{display:block; font-size:.68rem; font-weight:500; color:var(--muted); letter-spacing:.12em; text-transform:uppercase; line-height:1}
.nav{display:flex; gap:6px; margin-left:auto}
.nav a{padding:8px 12px; border-radius:8px; color:var(--muted); font-weight:500; font-size:.95rem}
.nav a:hover{background:var(--surface-2); color:var(--text)}
.header-actions{display:flex; align-items:center; gap:8px}
.icon-btn{
  width:38px;height:38px;border-radius:10px;border:1px solid var(--border); background:var(--surface);
  display:grid;place-items:center;cursor:pointer;
}
.icon-btn:hover{background:var(--surface-2)}
.burger{display:none}

/* ---------- Hero ---------- */
.hero{position:relative; overflow:hidden; padding:96px 0 88px; border-bottom:1px solid var(--border)}
.hero::before{
  content:''; position:absolute; inset:0; z-index:0;
  background:
    radial-gradient(900px 420px at 12% -10%, var(--accent-soft), transparent 65%),
    radial-gradient(700px 380px at 92% 8%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    linear-gradient(160deg, var(--surface) 0%, var(--bg) 100%);
}
.hero::after{
  content:''; position:absolute; inset:0; z-index:0; opacity:.5;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%2312a06a' stroke-opacity='.16'%3E%3Cpath d='M0 30h60M30 0v60'/%3E%3Ccircle cx='30' cy='30' r='10'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image:radial-gradient(circle at 70% 40%, #000, transparent 72%);
  mask-image:radial-gradient(circle at 70% 40%, #000, transparent 72%);
}
.hero-in{position:relative; z-index:1; max-width:720px}
.hero h1{font-size:clamp(2.2rem,6vw,3.6rem); margin-bottom:.35em}
.hero h1 span{color:var(--accent)}
.hero-lead{font-size:clamp(1.02rem,2.2vw,1.2rem); color:var(--muted); max-width:560px}
.hero-cta{display:flex; flex-wrap:wrap; gap:12px; margin:28px 0 34px}
.hero-stats{display:flex; flex-wrap:wrap; gap:32px}
.hero-stats b{display:block; font-size:1.6rem; color:var(--text)}
.hero-stats span{color:var(--muted); font-size:.9rem}

/* ---------- Фільтри / чіпи ---------- */
.toolbar{display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-bottom:24px}
.chips{display:flex; flex-wrap:wrap; gap:8px}
.chip{
  padding:8px 16px; border-radius:999px; border:1px solid var(--border);
  background:var(--surface); cursor:pointer; font-size:.92rem; font-weight:500; color:var(--muted);
  transition:.15s;
}
.chip:hover{border-color:var(--accent); color:var(--text)}
.chip.active{background:var(--accent); border-color:var(--accent); color:#fff}
.search{position:relative; margin-left:auto; min-width:240px; flex:1 1 240px; max-width:320px}
.search .icon{position:absolute; left:12px; top:50%; transform:translateY(-50%); color:var(--muted)}
.input,.search input,select.input,textarea.input{
  width:100%; padding:11px 14px; border-radius:var(--r-sm); border:1px solid var(--border);
  background:var(--surface); color:var(--text); outline:none; transition:.15s; font-family:inherit; font-size:.95rem;
}
.search input{padding-left:38px}
.input:focus{border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft)}
textarea.input{resize:vertical; min-height:110px}

/* ---------- Картки ---------- */
.grid{display:grid; gap:16px}
.grid-services{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.grid-masters{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r);
  padding:20px; box-shadow:var(--shadow); transition:transform .15s, box-shadow .15s, border-color .15s;
}
.card-hover:hover{transform:translateY(-2px); box-shadow:var(--shadow-lg); border-color:color-mix(in srgb,var(--accent) 40%, var(--border))}
.svc-top{display:flex; justify-content:space-between; gap:12px; align-items:flex-start}
.svc h3{font-size:1.05rem; margin:0 0 4px}
.tag{
  font-size:.72rem; font-weight:600; text-transform:uppercase; letter-spacing:.05em;
  color:var(--accent); background:var(--accent-soft); padding:3px 8px; border-radius:6px; white-space:nowrap;
}
.svc p{color:var(--muted); font-size:.9rem; margin:8px 0 14px; min-height:2.6em}
.svc-foot{display:flex; align-items:center; justify-content:space-between; gap:10px; border-top:1px solid var(--border); padding-top:14px}
.meta{display:flex; align-items:center; gap:6px; color:var(--muted); font-size:.88rem}
.price{font-weight:700; font-size:1.08rem}
.svc-foot .btn{padding:8px 14px; font-size:.88rem}

.master{text-align:center; cursor:pointer}
.avatar{
  width:76px;height:76px;border-radius:50%; margin:0 auto 12px; display:grid; place-items:center;
  font-weight:700; font-size:1.5rem; color:#fff; letter-spacing:.02em;
  background:linear-gradient(135deg,var(--accent),color-mix(in srgb,var(--accent) 45%, #2b6ef6));
}
.avatar-sm{width:44px;height:44px;font-size:.95rem;margin:0}
.master h3{font-size:1.02rem; margin:0 0 2px}
.master .spec{color:var(--muted); font-size:.88rem; margin:0 0 10px}
.stars{display:inline-flex; align-items:center; gap:5px; font-size:.88rem; color:var(--muted)}
.stars b{color:var(--text)}
.star{width:15px;height:15px;fill:#f5a623;stroke:none}
.master-svcs{display:flex; flex-wrap:wrap; gap:5px; justify-content:center; margin-top:12px}
.mini-tag{font-size:.72rem; color:var(--muted); background:var(--surface-2); padding:3px 8px; border-radius:6px}

/* ---------- Відгуки ---------- */
.reviews{background:var(--surface); border-top:1px solid var(--border); border-bottom:1px solid var(--border)}
.slider{position:relative; overflow:hidden; border-radius:var(--r)}
.slider-track{display:flex; transition:transform .45s cubic-bezier(.4,0,.2,1)}
.slide{flex:0 0 100%; padding:4px}
.review{
  background:var(--bg); border:1px solid var(--border); border-radius:var(--r); padding:28px;
  display:flex; gap:18px; align-items:flex-start; min-height:190px;
}
.review-body{flex:1}
.review-body p{font-size:1.02rem; margin:10px 0 14px}
.review-who{display:flex; flex-wrap:wrap; gap:4px 10px; align-items:baseline}
.review-who b{font-size:.98rem}
.review-who span{color:var(--muted); font-size:.85rem}
.slider-nav{display:flex; align-items:center; justify-content:center; gap:16px; margin-top:20px}
.dots{display:flex; gap:7px}
.dot{width:8px;height:8px;border-radius:50%;border:none;background:var(--border);cursor:pointer;padding:0;transition:.2s}
.dot.active{background:var(--accent); width:22px; border-radius:999px}

/* ---------- Мої записи (таблиця) ---------- */
.table-wrap{overflow-x:auto; border:1px solid var(--border); border-radius:var(--r); background:var(--surface)}
table{width:100%; border-collapse:collapse; min-width:660px}
th,td{padding:13px 16px; text-align:left; border-bottom:1px solid var(--border); font-size:.93rem}
th{
  font-size:.76rem; text-transform:uppercase; letter-spacing:.05em; color:var(--muted);
  cursor:pointer; user-select:none; white-space:nowrap; background:var(--surface-2);
}
th:hover{color:var(--text)}
th .sort{opacity:.35; margin-left:4px}
th.sorted .sort{opacity:1; color:var(--accent)}
tbody tr:last-child td{border-bottom:none}
tbody tr:hover{background:var(--surface-2)}
.badge{display:inline-block; padding:3px 10px; border-radius:999px; font-size:.78rem; font-weight:600; background:var(--accent-soft); color:var(--accent)}
.badge.cancelled{background:color-mix(in srgb,var(--danger) 12%, transparent); color:var(--danger)}
.empty{padding:44px 20px; text-align:center; color:var(--muted)}
.empty svg{width:40px;height:40px;margin-bottom:10px;opacity:.5;stroke:currentColor;fill:none;stroke-width:1.5}

/* ---------- Контакти ---------- */
.contacts-grid{display:grid; grid-template-columns:1fr 1fr; gap:24px}
.contact-list{list-style:none; margin:0 0 20px; padding:0; display:grid; gap:16px}
.contact-list li{display:flex; gap:12px; align-items:flex-start}
.contact-list .icon{color:var(--accent); margin-top:3px}
.contact-list b{display:block; font-size:.8rem; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); font-weight:600}
.hours{display:grid; gap:6px; margin-top:6px}
.hours div{display:flex; justify-content:space-between; gap:12px; font-size:.92rem; border-bottom:1px dashed var(--border); padding-bottom:5px}
.field{margin-bottom:14px}
.field label{display:block; font-size:.85rem; font-weight:600; margin-bottom:6px}
.err{color:var(--danger); font-size:.82rem; margin-top:5px; display:none}
.field.invalid .input{border-color:var(--danger)}
.field.invalid .err{display:block}
.map{
  height:170px; border-radius:var(--r); border:1px solid var(--border); margin-bottom:20px; position:relative; overflow:hidden;
  background:
    repeating-linear-gradient(45deg, transparent 0 18px, var(--accent-soft) 18px 20px),
    linear-gradient(135deg,var(--surface-2),var(--surface));
}
.map span{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  background:var(--surface); border:1px solid var(--border); border-radius:999px; padding:8px 16px;
  font-size:.88rem; font-weight:600; box-shadow:var(--shadow); display:flex; align-items:center; gap:8px;
}

/* ---------- Футер ---------- */
.footer{border-top:1px solid var(--border); padding:28px 0; color:var(--muted); font-size:.88rem}
.footer-in{display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; align-items:center}

/* ---------- Демо-плашка ---------- */
.demo-badge{
  position:fixed; right:14px; bottom:14px; z-index:60; pointer-events:none;
  background:var(--surface); border:1px solid var(--border); border-radius:999px;
  padding:7px 14px; font-size:.78rem; color:var(--muted); box-shadow:var(--shadow);
  display:flex; align-items:center; gap:7px;
}
.demo-badge i{width:7px;height:7px;border-radius:50%;background:var(--accent);flex:none}

/* ---------- Модалка / віджет запису ---------- */
.overlay{
  position:fixed; inset:0; z-index:80; background:rgba(15,20,25,.55); backdrop-filter:blur(3px);
  display:flex; align-items:center; justify-content:center; padding:20px;
  opacity:0; visibility:hidden; transition:opacity .2s, visibility 0s linear .2s;
}
.overlay.open{opacity:1; visibility:visible; transition:opacity .2s, visibility 0s linear 0s}
.modal{
  background:var(--surface); border-radius:16px; width:100%; max-width:680px; max-height:92vh;
  display:flex; flex-direction:column; box-shadow:var(--shadow-lg); border:1px solid var(--border);
  transform:translateY(14px) scale(.99); transition:transform .2s;
}
.overlay.open .modal{transform:none}
.modal-sm{max-width:460px}
.modal:focus{outline:none}
.modal-head{display:flex; align-items:flex-start; gap:12px; padding:20px 22px 14px; border-bottom:1px solid var(--border)}
.modal-head h3{margin:0; font-size:1.15rem}
.modal-head p{margin:2px 0 0; color:var(--muted); font-size:.88rem}
.modal-body{padding:20px 22px; overflow-y:auto; flex:1}
.modal-foot{
  display:flex; gap:10px; justify-content:space-between; align-items:center;
  padding:14px 22px; border-top:1px solid var(--border); background:var(--surface-2);
  border-radius:0 0 16px 16px; flex-wrap:wrap;
}
.close-btn{margin-left:auto}

/* прогрес */
.steps{display:flex; align-items:center; padding:16px 22px 0}
.step{display:flex; align-items:center; gap:8px; flex:1; min-width:0}
.step:last-child{flex:none}
.step-num{
  width:26px;height:26px;border-radius:50%;flex:none; display:grid; place-items:center;
  font-size:.8rem; font-weight:700; background:var(--surface-2); color:var(--muted); border:1px solid var(--border);
}
.step-label{font-size:.82rem; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.step-line{flex:1; height:2px; background:var(--border); margin:0 8px; min-width:10px; border-radius:2px}
.step.active .step-num{background:var(--accent); border-color:var(--accent); color:#fff}
.step.active .step-label{color:var(--text); font-weight:600}
.step.done .step-num{background:var(--accent-soft); border-color:var(--accent); color:var(--accent)}
.step.done .step-line, .step.active .step-line{background:var(--accent)}

/* списки вибору */
.pick{
  display:flex; align-items:center; gap:12px; width:100%; text-align:left;
  padding:13px 15px; border-radius:var(--r-sm); border:1px solid var(--border);
  background:var(--surface); cursor:pointer; margin-bottom:9px; transition:.15s;
}
.pick:hover{border-color:var(--accent); background:var(--accent-soft)}
.pick.selected{border-color:var(--accent); background:var(--accent-soft); box-shadow:0 0 0 1px var(--accent) inset}
.pick-main{flex:1; min-width:0}
.pick-main b{display:block; font-size:.97rem}
.pick-main span{color:var(--muted); font-size:.85rem}
.pick-side{text-align:right; white-space:nowrap}
.pick-side b{display:block}
.pick-side span{color:var(--muted); font-size:.82rem}

/* календар */
.cal{display:grid; grid-template-columns:repeat(7,1fr); gap:7px; margin-bottom:20px}
.day{
  padding:9px 2px; border-radius:var(--r-sm); border:1px solid var(--border); background:var(--surface);
  cursor:pointer; text-align:center; transition:.15s; line-height:1.25;
}
.day span{display:block; font-size:.68rem; text-transform:uppercase; color:var(--muted); letter-spacing:.03em}
.day b{display:block; font-size:1.02rem}
.day small{display:block; font-size:.62rem; color:var(--muted)}
.day:hover:not(:disabled){border-color:var(--accent)}
.day.selected{background:var(--accent); border-color:var(--accent); color:#fff}
.day.selected span,.day.selected small{color:rgba(255,255,255,.85)}
.day:disabled{opacity:.4; cursor:not-allowed; background:var(--surface-2)}
.day.today b::after{content:'•'; color:var(--accent); margin-left:2px}
.day.selected.today b::after{color:#fff}

.slots{display:grid; grid-template-columns:repeat(auto-fill,minmax(86px,1fr)); gap:8px}
.slot{
  padding:10px 6px; border-radius:var(--r-sm); border:1px solid var(--border);
  background:var(--surface); cursor:pointer; font-weight:600; font-size:.92rem; transition:.15s; position:relative;
}
.slot:hover:not(:disabled){border-color:var(--accent); background:var(--accent-soft)}
.slot.selected{background:var(--accent); border-color:var(--accent); color:#fff}
.slot:disabled{
  opacity:.55; cursor:not-allowed; color:var(--muted); background:var(--surface-2);
  text-decoration:line-through; text-decoration-thickness:1px;
}
.legend{display:flex; flex-wrap:wrap; gap:16px; margin-top:16px; font-size:.82rem; color:var(--muted)}
.legend i{display:inline-block; width:12px;height:12px;border-radius:4px;border:1px solid var(--border); margin-right:6px; vertical-align:-2px}
.legend .free{background:var(--surface)}
.legend .busy{background:var(--surface-2)}
.legend .sel{background:var(--accent); border-color:var(--accent)}

/* зведення */
.summary{background:var(--surface-2); border-radius:var(--r); padding:16px 18px; margin-bottom:18px}
.summary div{display:flex; justify-content:space-between; gap:14px; padding:7px 0; font-size:.93rem; border-bottom:1px dashed var(--border)}
.summary div:last-child{border-bottom:none; padding-top:12px; font-size:1.05rem; font-weight:700}
.summary span:first-child{color:var(--muted)}
.summary .right{text-align:right}

.done{text-align:center; padding:22px 4px}
.done-ico{
  width:72px;height:72px;border-radius:50%;background:var(--accent-soft); color:var(--accent);
  display:grid;place-items:center;margin:0 auto 16px;
}
.done-ico svg{width:36px;height:36px;stroke:currentColor;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

/* тости */
.toasts{position:fixed; left:50%; bottom:24px; transform:translateX(-50%); z-index:90; display:grid; gap:8px; width:max-content; max-width:92vw}
.toast{
  background:var(--text); color:var(--bg); padding:11px 18px; border-radius:999px; font-size:.9rem; font-weight:500;
  box-shadow:var(--shadow-lg); animation:pop .25s ease-out;
}
@keyframes pop{from{opacity:0; transform:translateY(10px)}to{opacity:1; transform:none}}

/* ---------- Адаптив ---------- */
@media (max-width:860px){
  .contacts-grid{grid-template-columns:1fr}
  .nav{
    position:fixed; inset:64px 0 auto 0; flex-direction:column; gap:0; background:var(--surface);
    border-bottom:1px solid var(--border); padding:8px 14px 16px; display:none; box-shadow:var(--shadow);
  }
  .nav.open{display:flex}
  .nav a{padding:12px 8px; border-bottom:1px solid var(--border)}
  .burger{display:grid}
  .header-actions{margin-left:auto}
}
@media (max-width:620px){
  .logo small{display:none}
  .logo{font-size:1.08rem}
  .section{padding:52px 0}
  .hero{padding:64px 0 56px}
  .hero-stats{gap:22px}
  .hero-cta .btn{flex:1 1 100%}
  .search{margin-left:0; max-width:none}
  .review{flex-direction:column; padding:20px; gap:12px}
  .cal{grid-template-columns:repeat(4,1fr)}
  .slots{grid-template-columns:repeat(3,1fr)}
  .step-label{display:none}
  .step-line{margin:0 6px}
  .modal{max-height:96vh; border-radius:14px}
  .modal-foot{border-radius:0 0 14px 14px}
  .modal-foot .btn{flex:1}
  .demo-badge{right:10px; bottom:10px; padding:5px 10px; font-size:.72rem; opacity:.92}
}
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms !important; transition-duration:.01ms !important}
  html{scroll-behavior:auto}
}
