/* Smart Beauty Clean */

:root {
	--sbc-accent: var(--e-global-color-primary, #9f0d28);
	--sbc-accent-dark: var(--e-global-color-secondary, #7d0a1f);
	--sbc-text: var(--e-global-color-text, #3a3a3a);
	--sbc-line: #eaeaea;
	--sbc-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--sbc-body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
	--sbc-gutter: 20px;
	--sbc-header-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--sbc-header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0; background: #fff; color: var(--sbc-text);
	font-family: var(--sbc-body); font-size: 17px; line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
body:not(.sbc-sticky) { --sbc-header-h: 0px; }
img { max-width: 100%; height: auto; }
a { color: var(--sbc-accent); }
a:hover { color: var(--sbc-accent-dark); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--sbc-accent); outline-offset: 3px; }
.sbc-icon { flex-shrink: 0; display: block; }
.sbc-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--sbc-accent); color: #fff; }
.sbc-skip:focus { top: 12px; color: #fff; }
/* Колір посилань із глобальних налаштувань Elementor (.elementor-kit-N a) не має перефарбовувати кнопки теми. */
.sbc a.sbc-skip, .sbc a.sbc-top, .sbc a.sbc-btn { color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Шапка ---------- */

.sbc-header { background: #fff; z-index: 50; transition: box-shadow .25s ease; }
.sbc-sticky .sbc-header { position: sticky; top: 0; }
.admin-bar.sbc-sticky .sbc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.sbc-sticky .sbc-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar.sbc-sticky .sbc-header { top: 0; } }
.sbc-header.is-scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, .07); }

.sbc-header__inner {
	max-width: 1400px; margin: 0 auto; padding: 8px var(--sbc-gutter);
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
	transition: padding .25s ease;
}
.sbc-header.is-scrolled .sbc-header__inner { padding-top: 4px; padding-bottom: 4px; }
.sbc-logo { grid-column: 1; justify-self: start; display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.sbc-logo__img { width: 80px; height: auto; transition: width .25s ease; }
.sbc-header.is-scrolled .sbc-logo__img { width: 56px; }
.sbc-logo__text { font-family: var(--sbc-head); font-size: 20px; line-height: 1.3; color: var(--sbc-accent); }
.sbc-nav { grid-column: 2; }
.sbc-menu, .sbc-menu .sub-menu, .sbc-menu .children { list-style: none; margin: 0; padding: 0; }
.sbc-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; }
.sbc-menu > li { position: relative; display: flex; align-items: center; }
.sbc-menu a {
	display: block; padding: 20px 0; color: var(--sbc-accent); text-decoration: none;
	font-size: 16px; text-transform: uppercase; letter-spacing: .01em; white-space: nowrap;
}
.sbc-header.is-scrolled .sbc-menu > li > a { padding-top: 14px; padding-bottom: 14px; }
.sbc-menu a:hover, .sbc-menu .current-menu-item > a { color: var(--sbc-accent-dark); }
.sbc-submenu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: 2px; padding: 0; border: 0; background: none; color: var(--sbc-accent); cursor: pointer; }
.sbc-menu .sub-menu {
	position: absolute; top: 100%; left: -12px; min-width: 240px; padding: 6px 0;
	background: #fff; border-top: 2px solid var(--sbc-accent); box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.sbc-menu li:hover > .sub-menu, .sbc-menu li:focus-within > .sub-menu, .sbc-menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sbc-menu .sub-menu a { padding: 10px 14px; color: var(--sbc-text); text-transform: none; }
.sbc-menu .sub-menu a:hover { color: var(--sbc-accent); }
.sbc-menu__admin a { padding: 6px 12px !important; border: 1px dashed var(--sbc-accent); border-radius: 2px; text-transform: none !important; }
.sbc-burger { display: none; grid-column: 3; justify-self: end; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--sbc-accent); cursor: pointer; align-items: center; justify-content: center; }
.sbc-burger__close { display: none; }

@media (max-width: 921px) {
	:root { --sbc-header-h: 76px; }
	.sbc-header__inner { grid-template-columns: 1fr auto; }
	.sbc-logo__img { width: 60px; }
	.sbc-header.is-scrolled .sbc-logo__img { width: 48px; }
	.sbc-burger { display: inline-flex; grid-column: 2; }
	.sbc-burger[aria-expanded="true"] .sbc-burger__open { display: none; }
	.sbc-burger[aria-expanded="true"] .sbc-burger__close { display: inline; }
	.sbc-nav { display: none; grid-column: 1 / -1; max-height: calc(100vh - 80px); overflow-y: auto; }
	.sbc-nav.is-open { display: block; }
	.sbc-menu { flex-direction: column; gap: 0; align-items: stretch; border-top: 1px solid var(--sbc-line); }
	.sbc-menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--sbc-line); }
	.sbc-menu > li > a, .sbc-header.is-scrolled .sbc-menu > li > a { flex-grow: 1; padding: 14px 0; }
	.sbc-submenu-toggle { width: 44px; height: 44px; }
	.sbc-menu .sub-menu { position: static; flex-basis: 100%; display: none; min-width: 0; padding: 0 0 8px 16px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
	.sbc-menu li.is-open > .sub-menu { display: block; }
	.sbc-menu li:hover > .sub-menu { display: none; }
	.sbc-menu li.is-open:hover > .sub-menu { display: block; }
}

/* ---------- Підвал ---------- */

.sbc-footer { padding: 64px var(--sbc-gutter) 24px; text-align: center; }
.sbc-footer__logo { display: inline-block; }
.sbc-footer__img { display: block; width: 240px; height: auto; margin: 0 auto 40px; }
.sbc-footer__text { margin: 0; font-size: 12px; color: var(--sbc-accent); }
.sbc-top {
	position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 32px; height: 32px;
	display: flex; align-items: center; justify-content: center; background: var(--sbc-accent); color: #fff; border-radius: 2px;
	opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
}
.sbc a.sbc-top:hover { color: #fff; background: var(--sbc-accent-dark); }
.sbc-top.is-visible { opacity: 1; visibility: visible; }

/* ---------- Сторінки без Elementor ---------- */

.sbc-page { max-width: 820px; margin: 0 auto; padding: 48px var(--sbc-gutter) 72px; }
.sbc-title { margin: 0 0 24px; font-family: var(--sbc-head); font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: 1.25; color: var(--sbc-accent); }
.sbc-title--sm { font-size: 26px; }
.sbc-title a { text-decoration: none; }
.sbc-entry + .sbc-entry { margin-top: 48px; }
.sbc-content { font-size: 18px; }
.sbc-btn { display: inline-block; padding: 10px 22px; border-radius: 2px; background: var(--sbc-accent); color: #fff; text-decoration: none; }
.sbc a.sbc-btn:hover { background: var(--sbc-accent-dark); color: #fff; }

/* ---------- Утиліти для Elementor ---------- */

/* Прайс: «Текстовий редактор» з CSS-класом sb-price, пункти списку «Назва — ціна». */
.sb-price ul { list-style: none; margin: 0; padding: 0; }
.sb-price li { padding: 12px 0; }
.sb-price .sb-price__row { display: flex; align-items: baseline; gap: 8px; }
.sb-price .sb-price__name { flex: 0 1 auto; }
.sb-price .sb-price__dots { flex: 1 1 24px; min-width: 24px; border-bottom: 1px dotted currentColor; transform: translateY(-4px); opacity: .8; }
.sb-price .sb-price__value { flex: 0 0 auto; text-align: right; white-space: nowrap; }
@media (max-width: 600px) { .sb-price li { padding: 10px 0; } .sb-price .sb-price__value { white-space: normal; max-width: 40%; } }

/* Слайдер: контейнер з CSS-класом sb-slider — кожен дочірній елемент стає слайдом. */
.e-con.sb-slider {
	--sbc-slider-w: 740px;
	max-width: var(--sbc-slider-w); width: 100%; margin-inline: auto;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
	flex-wrap: nowrap !important; padding: 8px 4px 16px;
}
.e-con.sb-slider::-webkit-scrollbar { display: none; }
.e-con.sb-slider > .elementor-element { flex: 0 0 100% !important; width: 100% !important; max-width: 100% !important; scroll-snap-align: center; }
.sbc-slider-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 4px; }
.sbc-slider-nav button {
	width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
	background: var(--sbc-accent); color: #fff; display: flex; align-items: center; justify-content: center;
}
.sbc-slider-nav button:hover { background: var(--sbc-accent-dark); }
.sbc-slider-dots { display: flex; gap: 6px; }
.sbc-slider-dots span { width: 6px; height: 6px; border-radius: 50%; background: #cfcfcf; transition: transform .2s ease, background-color .2s ease; }
.sbc-slider-dots span.is-active { background: #8a8a8a; transform: scale(1.4); }
