/* Elegance Часове — публично записване. Всичко е с префикс .eb- (без глобални селектори). */
.eb-app {
	--eb-bg: #FBF6EF;
	--eb-ink: #202020;
	--eb-mute: #5a5550;
	--eb-line: #EDE2D0;
	--eb-cu: #9A6A32;
	--eb-sand: #ECDEC1;
	--eb-cream: #F4ECDF;
	--eb-gold: linear-gradient(100deg, #8A5C2A 0%, #A8783C 30%, #C8975A 58%, #B48448 78%, #946232 100%);
	--eb-shadow: 0 34px 60px -38px rgba(80, 55, 20, .42);
	--eb-head: "Advent Pro", "Advent Pro Fallback", "Arial Narrow", Arial, sans-serif;
	--eb-body: Montserrat, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-family: var(--eb-body);
	color: var(--eb-ink);
	font-size: 16px;
	line-height: 1.55;
	max-width: 1180px;
	margin: 0 auto;
	box-sizing: border-box;
}
.eb-app *, .eb-app *::before, .eb-app *::after { box-sizing: border-box; }
.eb-app button { font: inherit; color: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; margin: 0; }
.eb-app button:disabled { cursor: not-allowed; }
.eb-app :focus-visible { outline: 2px solid var(--eb-cu); outline-offset: 3px; }

.eb-card {
	background: #fff;
	border: 1px solid var(--eb-line);
	border-radius: 24px;
	box-shadow: var(--eb-shadow);
	padding: clamp(18px, 3.4vw, 40px);
}

.eb-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.eb-wrap.is-done { grid-template-columns: minmax(0, 760px); justify-content: center; }
.eb-main { min-width: 0; }

/* Надзаглавие със златна линия и заглавия като на сайта */
.eb-eyebrow {
	display: flex; align-items: center; gap: 14px;
	margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--eb-cu);
}
.eb-eyebrow::before { content: ""; width: 46px; height: 1px; flex: none; background: var(--eb-gold); }
.eb-h {
	margin: 0 0 22px; font-family: var(--eb-head); font-weight: 300; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.005em; color: var(--eb-ink);
}
.eb-h strong { font-weight: 650; }
.eb-h:focus { outline: none; }
.eb-gold { background: var(--eb-gold); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.eb-lead { color: var(--eb-mute); margin: -8px 0 22px; }
.eb-hint { color: var(--eb-mute); font-size: 14px; margin: 12px 0; display: flex; align-items: center; gap: 10px; }
.eb-note { color: var(--eb-mute); font-size: 15px; }
.eb-alert { margin: 0 0 18px; padding: 14px 18px; border-radius: 16px; background: #FBEFE4; border: 1px solid #EBCFB2; color: #6e3f12; font-size: 15px; }

/* Напредък */
.eb-prog { list-style: none; display: flex; gap: 6px; margin: 0 0 26px; padding: 0; }
.eb-prog li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--eb-mute); min-width: 0; margin: 0; }
.eb-prog li span {
	flex: none; width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center;
	border: 1px solid var(--eb-line); font-weight: 600; font-size: 12px; background: #fff; transition: background .3s, color .3s, border-color .3s;
}
.eb-prog li em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eb-prog li::after { content: ""; flex: 1; height: 1px; background: var(--eb-line); min-width: 8px; }
.eb-prog li:last-child::after { display: none; }
.eb-prog li.is-done span { background: var(--eb-sand); border-color: var(--eb-sand); color: var(--eb-ink); }
.eb-prog li.is-on span { background: var(--eb-ink); border-color: var(--eb-ink); color: var(--eb-cream); }
.eb-prog li.is-on { color: var(--eb-ink); font-weight: 600; }

/* Бутони-хапчета */
.eb-app .eb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 13px 28px; border: 0; border-radius: 999px;
	background: #202020; color: #F4ECDF; font-weight: 600; font-size: 15px; letter-spacing: .02em; text-decoration: none;
	transition: background .25s, transform .25s, opacity .25s;
}
.eb-app .eb-btn:hover { background: #9A6A32; color: #F4ECDF; }
.eb-app .eb-btn:disabled { opacity: .45; background: #202020; }
.eb-app .eb-btn--2 { background: #ECDEC1; color: #202020; }
.eb-app .eb-btn--2:hover { background: #E2CFA8; color: #202020; }
.eb-app .eb-back {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 4px; margin: -10px 0 8px;
	border: 0; background: none; color: var(--eb-mute); font-size: 14px; font-weight: 500;
}
.eb-app .eb-back:hover { color: var(--eb-cu); }
.eb-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.eb-actions--wrap { justify-content: flex-start; }
.eb-multi-sum { margin-right: auto; color: var(--eb-mute); font-size: 15px; }

/* Табове по категория */
.eb-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.eb-app .eb-tab {
	min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--eb-line); background: #fff;
	font-size: 14px; font-weight: 500; color: var(--eb-ink); transition: background .25s, border-color .25s, color .25s;
}
.eb-app .eb-tab:hover { border-color: var(--eb-cu); }
.eb-app .eb-tab.is-on { background: #202020; border-color: #202020; color: #F4ECDF; }

/* Карти с услуги */
.eb-group { margin: 0 0 22px; scroll-margin-top: 120px; }
/* Група, отворена с дълбок линк ?grupa= */
.eb-group.is-hl .eb-group__t { display: inline-flex; align-items: center; gap: 10px; }
.eb-group.is-hl .eb-group__t::before { content: ""; width: 26px; height: 1px; background: #C8975A; }
.eb-group__t { margin: 0 0 12px; font-family: var(--eb-head); font-weight: 600; font-size: 21px; letter-spacing: .01em; color: var(--eb-ink); }
.eb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.eb-app .eb-svc {
	position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: left;
	min-height: 84px; padding: 16px 18px; border-radius: 20px; border: 1px solid var(--eb-line); background: #fff;
	transition: border-color .25s, box-shadow .25s, transform .25s, background .25s;
}
.eb-app .eb-svc:hover { border-color: #D9C29B; box-shadow: 0 18px 30px -24px rgba(80, 55, 20, .5); transform: translateY(-1px); }
.eb-app .eb-svc.is-on { border-color: var(--eb-cu); background: #FFFCF7; box-shadow: inset 0 0 0 1px var(--eb-cu); }
.eb-svc__n { font-weight: 600; font-size: 15px; line-height: 1.35; }
.eb-svc.is-multi .eb-svc__n { padding-right: 30px; }
.eb-svc__m { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: var(--eb-mute); margin-top: auto; }
.eb-svc__m b { font-size: 17px; }
.eb-check {
	position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #CDB58C; background: #fff;
	transition: background .2s, border-color .2s;
}
.eb-svc.is-on .eb-check { background: var(--eb-cu); border-color: var(--eb-cu); }
.eb-svc.is-on .eb-check::after {
	content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Специалисти */
.eb-cards--staff { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.eb-app .eb-person {
	display: flex; align-items: center; gap: 14px; text-align: left; min-height: 76px; padding: 14px 18px;
	border-radius: 20px; border: 1px solid var(--eb-line); background: #fff; transition: border-color .25s, background .25s, box-shadow .25s;
}
.eb-app .eb-person:hover { border-color: #D9C29B; }
.eb-app .eb-person.is-on { border-color: var(--eb-cu); background: #FFFCF7; box-shadow: inset 0 0 0 1px var(--eb-cu); }
.eb-avatar {
	flex: none; width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center;
	background: var(--eb-sand); font-family: var(--eb-head); font-weight: 600; font-size: 20px; color: var(--eb-cu);
}
.eb-person__n { display: block; font-weight: 600; font-size: 15px; }
.eb-person__r { display: block; font-size: 13px; color: var(--eb-mute); }

/* Календар */
.eb-cal { max-width: 460px; }
.eb-cal__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.eb-cal__m { font-family: var(--eb-head); font-weight: 600; font-size: 22px; text-transform: capitalize; }
.eb-app .eb-icon {
	width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--eb-line); background: #fff; font-size: 22px; line-height: 1;
	display: grid; place-items: center; transition: border-color .2s, background .2s;
}
.eb-app .eb-icon:hover:not(:disabled) { border-color: var(--eb-cu); }
.eb-app .eb-icon:disabled { opacity: .35; }
.eb-cal__g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.eb-cal__wd { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--eb-mute); padding: 4px 0 6px; }
.eb-app .eb-day {
	min-height: 44px; padding: 0; border-radius: 14px; border: 1px solid transparent; background: transparent; font-size: 15px; color: #B9AFA4;
	transition: background .2s, border-color .2s, color .2s;
}
.eb-app .eb-day.is-free { background: var(--eb-bg); border-color: var(--eb-line); color: var(--eb-ink); font-weight: 600; }
.eb-app .eb-day.is-free:hover { border-color: var(--eb-cu); }
.eb-app .eb-day.is-on { background: #202020; border-color: #202020; color: #F4ECDF; }
.eb-times { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--eb-line); }
.eb-times .eb-group__t::first-letter { text-transform: uppercase; }
.eb-times__l { margin: 14px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--eb-mute); }
.eb-times__g { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.eb-app .eb-time {
	min-height: 46px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--eb-line); background: #fff; font-weight: 600; font-size: 15px;
	transition: background .2s, border-color .2s, color .2s;
}
.eb-app .eb-time:hover { border-color: var(--eb-cu); color: var(--eb-cu); }
.eb-app .eb-time.is-on { background: #202020; border-color: #202020; color: #F4ECDF; }

/* Форма */
.eb-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.eb-form__grid .eb-field:nth-child(3) { grid-column: 1 / -1; }
.eb-field { margin: 0 0 16px; }
.eb-field label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--eb-ink); }
.eb-field label small { font-weight: 400; color: var(--eb-mute); }
.eb-app .eb-field input, .eb-app .eb-field textarea {
	display: block; width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid #E3D5BD; border-radius: 14px; background: #fff;
	font: inherit; font-size: 16px; color: var(--eb-ink); transition: border-color .2s, box-shadow .2s;
}
.eb-app .eb-field textarea { min-height: 96px; resize: vertical; }
.eb-app .eb-field input:focus, .eb-app .eb-field textarea:focus { outline: none; border-color: var(--eb-cu); box-shadow: 0 0 0 3px rgba(154, 106, 50, .14); }
.eb-field.has-err input, .eb-field.has-err textarea { border-color: #B5543A; }
.eb-err { display: block; margin-top: 6px; font-size: 13px; color: #A3452D; }
.eb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eb-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--eb-mute); line-height: 1.5; cursor: pointer; min-height: 44px; }
.eb-app .eb-consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: #9A6A32; }
.eb-consent a { color: var(--eb-cu); }
.eb-consent.has-err span { color: #A3452D; }

/* Обобщение */
.eb-sum { position: sticky; top: 110px; padding: 24px 24px 22px; }
.eb-sum__t { margin: 0 0 12px; font-family: var(--eb-head); font-weight: 600; font-size: 22px; }
.eb-sum__dl { margin: 0; }
.eb-sum__dl div { padding: 10px 0; border-bottom: 1px solid var(--eb-line); }
.eb-sum__dl dt { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--eb-mute); }
.eb-sum__dl dd { margin: 3px 0 0; font-size: 14px; font-weight: 500; }
.eb-sum__total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 14px; }
.eb-sum__total b { font-size: 26px; font-family: var(--eb-head); }
.eb-sum__lbl { font-weight: 600; }
.eb-sum__mini { display: none; }

/* Потвърждение */
.eb-done { text-align: center; }
.eb-done .eb-eyebrow { justify-content: center; }
.eb-done .eb-eyebrow::after { content: ""; width: 46px; height: 1px; background: var(--eb-gold); }
.eb-done .eb-actions { justify-content: center; }
.eb-done .eb-hint { justify-content: center; }
.eb-done__icon { width: 76px; height: 76px; margin: 0 auto 16px; }
.eb-done__icon svg { width: 100%; height: 100%; fill: none; stroke: #9A6A32; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eb-done__icon circle { stroke: #E7D6B8; }
.eb-done__icon path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: eb-draw .7s .25s ease forwards; }
.eb-dl { margin: 0 auto 8px; max-width: 520px; text-align: left; }
.eb-dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--eb-line); }
.eb-dl dt { color: var(--eb-mute); font-size: 14px; flex: none; }
.eb-dl dd { margin: 0; font-weight: 600; font-size: 15px; text-align: right; }
.eb-code { letter-spacing: .14em; font-family: ui-monospace, Menlo, Consolas, monospace; }
.eb-cancel { max-width: 640px; margin: 0 auto; }
.eb-cancel .eb-dl { margin: 0 0 20px; }
.eb-cancel__form { margin: 0 0 14px; }
.eb-noscript { max-width: 640px; margin: 0 auto; }

/* Зареждане */
.eb-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 160px; color: var(--eb-mute); }
.eb-spin {
	display: inline-block; width: 18px; height: 18px; border-radius: 999px; border: 2px solid var(--eb-line); border-top-color: var(--eb-cu);
	animation: eb-rot .8s linear infinite; flex: none;
}

/* Плавни преходи между стъпките */
.eb-step { animation: eb-in .42s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes eb-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes eb-rot { to { transform: rotate(360deg); } }
@keyframes eb-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
	.eb-step, .eb-done__icon path, .eb-spin { animation: none; }
	.eb-done__icon path { stroke-dashoffset: 0; }
	.eb-app .eb-svc, .eb-app .eb-btn { transition: none; }
	.eb-app .eb-svc:hover { transform: none; }
}

/* Таблет и телефон */
@media (max-width: 920px) {
	.eb-wrap { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.eb-sum {
		position: sticky; top: auto; bottom: 10px; z-index: 5; padding: 12px 16px 12px 20px; border-radius: 999px;
		box-shadow: 0 18px 40px -18px rgba(80, 55, 20, .45);
	}
	.eb-sum__t, .eb-sum__dl, .eb-sum__lbl { display: none; }
	.eb-sum__total { padding: 0; }
	.eb-sum__mini { display: block; min-width: 0; font-size: 13px; font-weight: 500; color: var(--eb-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.eb-sum__total b { font-size: 21px; flex: none; }
}
@media (max-width: 640px) {
	.eb-card { border-radius: 20px; }
	.eb-main.eb-card { padding: 18px 14px 22px; }
	.eb-prog li em { display: none; }
	.eb-form__grid { grid-template-columns: minmax(0, 1fr); }
	.eb-cards, .eb-cards--staff { grid-template-columns: minmax(0, 1fr); }
	.eb-cal__g { gap: 3px; }
	.eb-app .eb-day { border-radius: 12px; font-size: 14px; }
	.eb-times__g { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
	.eb-actions { justify-content: stretch; }
	.eb-actions .eb-btn { flex: 1 1 100%; }
	.eb-dl div { flex-direction: column; gap: 2px; }
	.eb-dl dd { text-align: left; }
}
