/*
Theme Name: Persona
Theme URI: https://studiopersona.pt
Description: Собственная лёгкая тема Persona Beauty Studio. Классический редактор, совместима с Elementor, Polylang.
Author: Zen Webmaster
Version: 0.7.4
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: persona
*/

/* ---------- Токены ---------- */
:root {
	--c-olive: #746f5c;
	--c-olive-dark: #5b5747;
	--c-olive-deep: #45423a;
	--c-cream: #e8e2d6;
	--c-light: #fbf8f1;
	--c-bg: #faf8f4;
	--c-surface: #f2eee6;
	--c-text: #2f2d27;
	--c-muted: #6a665a;
	--c-line: #ddd6c8;

	--f-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
	--f-body: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;

	--wrap: 1360px;
	--gutter: clamp(16px, 4vw, 40px);
	--section: clamp(72px, 9vw, 120px);
	--header-h: 88px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font: 400 17px/1.65 var(--f-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-olive-dark); text-underline-offset: .2em; }
a:hover { color: var(--c-text); }
:focus-visible { outline: 2px solid var(--c-olive); outline-offset: 3px; }
figure { margin: 0; }

h1, h2, h3, h4 {
	font-family: var(--f-display);
	font-weight: 500;
	line-height: 1.1;
	margin: 0 0 .5em;
	color: var(--c-text);
	text-wrap: balance;
}
h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); line-height: 1.02; }
h2 { font-size: clamp(2.1rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
p, ul, ol { margin: 0 0 1.1em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000;
	top: 8px; left: 8px; padding: 10px 16px; background: var(--c-bg);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
	font: 500 .78rem/1 var(--f-body);
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--c-muted);
}

/* Курсивный подзаголовок с веточкой */
.kicker {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	margin: 0 0 14px;
	font: italic 500 1.5rem/1.2 var(--f-display);
	color: var(--c-olive);
}
.kicker__sprig { width: 92px; height: 32px; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 5vw, 56px); }
.section-head h2 { margin-bottom: .3em; }
.lead { font-size: 1.06rem; line-height: 1.75; color: var(--c-muted); }
.section-head .lead { margin: 0; }

.link-caps {
	display: inline-block; padding-bottom: 3px;
	font: 500 .78rem/1.2 var(--f-body); letter-spacing: .16em; text-transform: uppercase;
	border-bottom: 1px solid currentColor; text-decoration: none;
}

.badge {
	display: inline-block; margin: 0;
	padding: 8px 18px; border: 1px solid var(--c-olive); border-radius: 999px;
	font: 500 .75rem/1.3 var(--f-body); letter-spacing: .18em; text-transform: uppercase;
	color: var(--c-olive-dark);
}

.arch-top { border-radius: 999px 999px 0 0; }
.arch-bottom { border-radius: 0 0 999px 999px; }

/* ---------- Кнопки ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 52px; padding: 0 2.1em;
	border: 1px solid var(--c-olive-dark); border-radius: 999px;
	background: var(--c-olive-dark); color: #fff;
	font: 500 .8rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase;
	text-decoration: none; cursor: pointer;
	transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--c-olive-deep); border-color: var(--c-olive-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-olive-dark); }
.btn--ghost:hover { background: var(--c-olive-dark); color: #fff; }
.btn--light { background: var(--c-light); border-color: var(--c-light); color: var(--c-olive-deep); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--c-text); }
.btn--small { min-height: 44px; padding: 0 1.5em; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

/* ---------- Верхняя полоса ---------- */
.topbar { background: var(--c-olive-deep); color: var(--c-light); font-size: .82rem; letter-spacing: .03em; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 42px; }
.topbar__info { display: flex; gap: 32px; }
.topbar__actions { display: flex; align-items: center; gap: 28px; }
.topbar a { color: var(--c-light); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .lang-switch a { color: var(--c-light); opacity: .7; }
.topbar .lang-switch .current-lang a, .topbar .lang-switch a:hover { opacity: 1; color: #fff; }
@media (max-width: 1023px) { .topbar { display: none; } }

/* Соцсети */
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: inherit; transition: background .2s var(--ease); }
.social svg { width: 18px; height: 18px; }
.social--topbar { gap: 2px; margin-right: -6px; }
.social--topbar a { width: 30px; height: 30px; color: var(--c-light); }
.social--topbar a:hover { background: rgba(251, 248, 241, .12); color: #fff; }
.social--footer { margin-top: 22px; }
.social--footer a { width: 42px; height: 42px; border: 1px solid rgba(251, 248, 241, .35); color: var(--c-light); }
.site-footer .social--footer a:hover { background: var(--c-light); color: var(--c-olive-deep); text-decoration: none; }
.nav .social--menu { display: none; }
@media (max-width: 1023px) {
	.nav .social--menu { display: flex; gap: 10px; }
	.social--menu a { width: 44px; height: 44px; border: 1px solid var(--c-line); color: var(--c-olive-dark); }
}

/* ---------- Шапка ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(250, 248, 244, .95);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--c-line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header__inner {
	display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center; gap: 24px;
	min-height: var(--header-h);
}
.site-header__actions { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.site-header__wa {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: .9rem; color: var(--c-olive-dark); text-decoration: none;
}
.site-header__wa svg { width: 20px; height: 20px; }

.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--c-text); line-height: 1; }
.brand__name { font: 500 2.1rem/1 var(--f-display); letter-spacing: .1em; }
.brand__sub {
	display: flex; align-items: center; gap: 8px; margin-top: 6px;
	font: 500 .66rem/1 var(--f-display); letter-spacing: .42em; text-transform: uppercase; color: var(--c-olive);
}
.brand__sub::before, .brand__sub::after { content: ""; width: 18px; height: 1px; background: currentColor; }
.brand .custom-logo { max-height: 64px; width: auto; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.nav a {
	font: 400 .82rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase;
	color: var(--c-text); text-decoration: none; padding: 8px 0; position: relative;
}
.nav a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
	background: var(--c-olive); transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav .current-menu-item > a::after, .nav .current-menu-ancestor > a::after { transform: scaleX(1); }

.lang-switch { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.lang-switch a { font: 500 .74rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); text-decoration: none; }
.lang-switch .current-lang a, .lang-switch a:hover { color: var(--c-text); }

.nav-toggle {
	display: none; flex: none; width: 44px; height: 44px; padding: 0;
	border: 0; background: none; cursor: pointer; color: var(--c-text);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
	display: block; width: 24px; height: 1px; background: currentColor; margin: 0 auto;
	position: relative; transition: transform .3s var(--ease), background .3s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* Выпадающее подменю */
.nav .sub-menu { list-style: none; margin: 0; padding: 0; }
@media (min-width: 1024px) {
	.nav .menu > li { position: relative; }
	.nav .menu-item-has-children > a { padding-right: 14px; }
	.nav .menu-item-has-children > a::before {
		content: ""; position: absolute; right: 0; top: 50%; width: 5px; height: 5px; margin-top: -4px;
		border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg);
	}
	.nav .sub-menu {
		position: absolute; top: 100%; left: -24px; z-index: 5;
		display: flex; flex-direction: column; gap: 0; min-width: 220px; padding: 14px 24px;
		background: var(--c-bg); border: 1px solid var(--c-line); box-shadow: 0 18px 40px rgba(47, 45, 39, .08);
		opacity: 0; visibility: hidden; transform: translateY(6px);
		transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
	}
	.nav .sub-menu a { display: block; padding: 10px 0; }
	.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}

@media (max-width: 1023px) {
	:root { --header-h: 72px; }
	.nav .sub-menu a { padding-left: 20px; font-size: .9rem; color: var(--c-muted); }
	.site-header__inner { grid-template-columns: 44px 1fr 44px; gap: 8px; }
	.site-header .brand { grid-column: 2; grid-row: 1; }
	.brand__name { font-size: 1.7rem; }
	.brand__sub { font-size: .55rem; }
	.site-header__actions { grid-column: 3; grid-row: 1; }
	.site-header__wa, .site-header__book { display: none; }
	.nav-toggle { display: block; }
	.nav {
		position: fixed; inset: var(--header-h) 0 0 0; margin: 0;
		background: var(--c-bg); padding: 32px var(--gutter);
		display: flex; flex-direction: column; gap: 32px;
		overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
	}
	.admin-bar .nav { top: calc(var(--header-h) + 46px); }
	.nav-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.nav ul { flex-direction: column; gap: 4px; }
	.nav a { display: block; padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--c-line); }
	.nav a::after { display: none; }
	.nav-open { overflow: hidden; }
}
@media (min-width: 1024px) {
	.nav { display: flex; align-items: center; }
	.nav .lang-switch { display: none; }
}

/* ---------- Виджеты Persona для Elementor ---------- */
.site-main { min-height: 50vh; }

/* Выравнивание виджетов */
.align-center { text-align: center; }
.align-left { text-align: left; }
@media (max-width: 1024px) { .align-tablet-center { text-align: center; } .align-tablet-left { text-align: left; } }
@media (max-width: 767px) { .align-mobile-center { text-align: center; } .align-mobile-left { text-align: left; } }

/* Заголовок секции */
.p-heading { max-width: 820px; }
.p-heading.align-center { margin-inline: auto; }
.p-heading .kicker { margin: 0 0 12px; }
.p-heading.align-left .kicker { align-items: flex-start; }
@media (max-width: 1024px) { .p-heading.align-tablet-center { margin-inline: auto; } .p-heading.align-tablet-center .kicker { align-items: center; } }
@media (max-width: 767px) { .p-heading.align-mobile-center { margin-inline: auto; } .p-heading.align-mobile-center .kicker { align-items: center; } }
.p-heading__title { margin: 0; }
.p-heading--xl .p-heading__title { font-size: clamp(2.8rem, 6vw, 4.8rem); line-height: 1.02; }
.p-heading--l .p-heading__title { font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
.p-heading--m .p-heading__title { font-size: clamp(2.1rem, 4vw, 3.25rem); }
.p-heading--s .p-heading__title { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.p-heading__lead { margin: 16px 0 0; font-size: 1.08rem; line-height: 1.7; color: var(--c-muted); }
.p-heading.align-center .p-heading__lead { margin-inline: auto; max-width: 560px; }
.is-dark .p-heading__title { color: #fff; }
.is-dark .kicker, .is-dark .p-heading__lead { color: var(--c-light); }

/* Кнопки */
.btn-row.align-center { justify-content: center; }
.btn-row--stack { display: grid; grid-template-columns: 1fr 1fr; justify-content: stretch; width: 100%; }
.elementor-widget-persona-buttons:has(.btn-row--stack) { align-self: stretch; width: 100%; }
.btn-row--stack .btn:first-child { grid-column: 1 / -1; }
.btn-row--stack .btn { padding-inline: 1em; }
@media (max-width: 599px) {
	.elementor-widget-persona-buttons:has(.btn-row--mobile-full) { align-self: stretch; width: 100%; }
	.btn-row--mobile-full { flex-direction: column; }
	.btn-row--mobile-full .btn { width: 100%; }
}

/* Орнамент */
.ornament { color: var(--c-olive); opacity: .35; pointer-events: none; line-height: 0; }
.ornament svg { width: 140px; height: auto; }
.ornament--flip { transform: scaleX(-1); }

/* Плашка открытия */
.badge--draft { border-style: dashed; opacity: .7; text-transform: none; letter-spacing: 0; }
.badge-italic { margin: 0; font: italic 500 1.4rem/1.2 var(--f-display); color: var(--c-olive); }

/* Направление */
.direction {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
	color: var(--c-text); text-decoration: none;
}
.direction.is-dark { color: var(--c-light); }
a.direction:hover { color: inherit; }
.direction__icon {
	width: 120px; height: 120px;
	border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%;
	background: var(--c-light); color: var(--c-olive-dark);
	display: flex; align-items: center; justify-content: center;
	transition: transform .4s var(--ease);
}
.direction:not(.is-dark) .direction__icon { background: var(--c-surface); }
a.direction:hover .direction__icon { transform: rotate(-6deg) scale(1.04); }
.direction__icon svg { width: 64px; height: 64px; }
.direction__title { font: 500 1.9rem/1.1 var(--f-display); }
.direction__text { max-width: 260px; font-size: 1rem; line-height: 1.6; }

/* Карточка услуги */
.card { display: flex; flex-direction: column; height: 100%; background: var(--c-bg); color: var(--c-text); text-decoration: none; }
.card img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; }
.card__body { flex-grow: 1; display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 26px; border: 1px solid var(--c-line); border-top: 0; }
.card__title { font: 600 1.6rem/1.15 var(--f-display); }
.card__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; font-size: .9rem; color: var(--c-muted); }
.card__meta .link-caps { color: var(--c-olive-dark); border: 0; padding: 0; }
a.card:hover { color: var(--c-text); }
a.card:hover img { filter: brightness(1.04) saturate(1.05); }

/* Преимущества */
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.facts li { display: flex; gap: 14px; align-items: flex-start; }
.facts__mark { flex: none; width: 26px; height: 26px; color: var(--c-olive); }
.facts strong { display: block; font: 600 1.35rem/1.2 var(--f-display); margin-bottom: 2px; }
.facts span { font-size: .95rem; color: var(--c-muted); }

/* Мастер */
.member { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.member__frame { width: 100%; aspect-ratio: 5 / 6; margin-bottom: 14px; overflow: hidden; border-radius: 999px 999px 0 0; }
.member__frame img { width: 100%; height: 100%; object-fit: cover; }
.member__frame--empty { display: flex; align-items: center; justify-content: center; background: var(--c-bg); color: var(--c-olive); }
.member__frame--empty svg { width: 72px; height: 72px; opacity: .8; }
.member__name { margin: 0; font-size: 1.75rem; font-weight: 600; }
.member__role { margin: 0; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--c-olive-dark); }
.member__skills { margin: 0 0 6px; font-size: .95rem; color: var(--c-muted); }

/* Прайс */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 0 40px; }
.tabs button {
	min-height: 44px; padding: 0 28px; border-radius: 999px;
	border: 1px solid var(--c-line); background: transparent; color: var(--c-olive-dark);
	font: 500 .8rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
}
.tabs button:hover { border-color: var(--c-olive); }
.tabs button[aria-selected="true"] { background: var(--c-olive-dark); border-color: var(--c-olive-dark); color: #fff; }
.price-panel[hidden] { display: none; }
.price-panel__empty { text-align: center; color: var(--c-muted); padding: 24px 0; margin: 0; }
.price-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 72px; }
.price { break-inside: avoid; display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.price__line { display: flex; align-items: baseline; gap: 12px; font: 600 1.4rem/1.2 var(--f-display); }
.price__dots { flex-grow: 1; border-bottom: 1px dotted var(--c-olive); transform: translateY(-5px); min-width: 24px; }
.price__value { color: var(--c-olive-dark); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price__meta { display: flex; justify-content: space-between; gap: 16px; font-size: .9rem; color: var(--c-muted); }
.price__time { white-space: nowrap; letter-spacing: .06em; }
@media (max-width: 479px) { .price__line { font-size: 1.25rem; } .tabs button { padding: 0 16px; } }

/* Контакты */
.contact__list { margin: 0; }
.contact__list div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.contact__list dt { font: 500 .78rem/1.8 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--c-olive); }
.contact__list dd { margin: 0; line-height: 1.6; }
@media (max-width: 479px) { .contact__list div { grid-template-columns: 1fr; gap: 4px; } }
.map-card {
	min-height: 440px; height: 100%; padding: 40px;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
	background: var(--c-surface); color: var(--c-olive); text-decoration: none;
}
.map-card:hover { color: var(--c-olive); }
.map-card__mark { width: 90px; height: 90px; transition: transform .6s var(--ease); }
.map-card:hover .map-card__mark { transform: rotate(22.5deg); }
.map-card__title { font: 500 1.8rem/1.2 var(--f-display); color: var(--c-text); }
.map-card__text { font-size: .95rem; color: var(--c-muted); }

/* Форма записи (Contact Form 7) */
.p-form { width: 100%; max-width: 760px; margin-inline: auto; }
.p-form form { display: grid; gap: 22px; }
.p-form p { margin: 0; }
.p-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 599px) { .p-form__row { grid-template-columns: 1fr; } }
.p-form label, .p-form .p-form__label {
	display: flex; flex-direction: column; gap: 8px;
	font: 500 .74rem/1.3 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--c-olive-dark);
}
.p-form .wpcf7-form-control-wrap { display: block; }
.p-form input[type="text"], .p-form input[type="tel"], .p-form input[type="email"], .p-form input[type="date"],
.p-form select, .p-form textarea {
	width: 100%; min-height: 52px; padding: 12px 16px;
	border: 1px solid var(--c-line); border-radius: 2px; background: #fff; color: var(--c-text);
	font: 400 1rem/1.4 var(--f-body); letter-spacing: 0; text-transform: none;
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.p-form textarea { min-height: 120px; resize: vertical; }
.p-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--c-olive) 50%), linear-gradient(135deg, var(--c-olive) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 44px; }
.p-form input:focus, .p-form select:focus, .p-form textarea:focus { outline: none; border-color: var(--c-olive); box-shadow: 0 0 0 3px rgba(116, 111, 92, .15); }
.p-form .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.p-form .wpcf7-list-item { margin: 0; }
.p-form .wpcf7-list-item label { flex-direction: row; align-items: center; gap: 8px; font-size: .95rem; letter-spacing: 0; text-transform: none; color: var(--c-text); cursor: pointer; }
.p-form input[type="radio"], .p-form input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--c-olive-dark); }
.p-form .wpcf7-acceptance .wpcf7-list-item label { align-items: flex-start; font-size: .88rem; line-height: 1.5; color: var(--c-muted); }
.p-form .wpcf7-submit {
	justify-self: start; min-height: 52px; padding: 0 2.4em; border: 1px solid var(--c-olive-dark); border-radius: 999px;
	background: var(--c-olive-dark); color: #fff; cursor: pointer;
	font: 500 .8rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase;
}
.p-form .wpcf7-submit:hover { background: var(--c-olive-deep); }
.p-form .wpcf7-submit:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 599px) { .p-form .wpcf7-submit { width: 100%; } }
.p-form .wpcf7-not-valid { border-color: #9a4a3a; }
.p-form .wpcf7-not-valid-tip { margin-top: 6px; font-size: .85rem; letter-spacing: 0; text-transform: none; color: #9a4a3a; }
.p-form .wpcf7-response-output { margin: 0 !important; padding: 14px 18px !important; border: 1px solid var(--c-line) !important; background: var(--c-surface); font-size: .95rem; }
.p-form .sent .wpcf7-response-output { border-color: var(--c-olive) !important; }
.p-form .invalid .wpcf7-response-output, .p-form .failed .wpcf7-response-output { border-color: #9a4a3a !important; }
.p-form .wpcf7-spinner { margin: 0 0 0 12px; }

/* Онлайн-запись (Salon Booking System) — под стиль сайта.
   Цвета задаются в «Salon → Settings → Style», здесь — шрифты, подложки и форма элементов. */
.p-booking { width: 100%; max-width: 760px; margin-inline: auto; }
.p-booking #sln-salon.sln-bootstrap { max-width: none; width: 100%; margin: 0; padding: 0; }
/* На телефоне скрипт плагина растягивает форму на весь экран (инлайн margin: -16px) — убираем боковые рамки. */
@media (max-width: 767px) { .p-booking #sln-salon.sln-customcolors #sln-salon__content { border-left: 0; border-right: 0; } }

/* Правая колонка онлайн-записи: закреплена при прокрутке на десктопе */
@media (min-width: 1025px) {
	.elementor .e-con.p-sticky { position: sticky; top: calc(var(--header-h) + 24px); align-self: flex-start; }
	.admin-bar .elementor .e-con.p-sticky { top: calc(var(--header-h) + 56px); }
}
.p-aside .p-heading__title { font-size: 1.6rem; }
.p-aside .contact__list div { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 12px 0; font-size: .95rem; }

/* Мастера и график */
.p-schedule__title { margin: 0 0 16px; font-size: 1.6rem; }
.p-schedule__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.p-schedule__item { display: flex; gap: 14px; align-items: flex-start; }
.p-schedule__photo { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.p-schedule__photo--empty { display: flex; align-items: center; justify-content: center; background: var(--c-bg); color: var(--c-olive); }
.p-schedule__photo--empty svg { width: 32px; height: 32px; }
.p-schedule__body { display: flex; flex-direction: column; gap: 2px; }
.p-schedule__name { font: 600 1.25rem/1.2 var(--f-display); }
.p-schedule__role { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-olive-dark); }
.p-schedule__hours { font-size: .95rem; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.p-schedule__note { margin: 18px 0 0; font-size: .9rem; line-height: 1.6; color: var(--c-muted); }
.p-booking #sln-salon,
.p-booking #sln-salon * { font-family: var(--f-body); }
.p-booking #sln-salon { padding: 0; }
.p-booking #sln-salon.sln-customcolors #sln-salon__content {
	background: #fff; border: 1px solid var(--c-line); border-radius: 2px; box-shadow: none;
	padding: clamp(20px, 4vw, 40px);
}
.p-booking #sln-salon h1, .p-booking #sln-salon h2, .p-booking #sln-salon h3,
.p-booking #sln-salon .sln-service-name, .p-booking #sln-salon .sln-steps-name,
.p-booking #sln-salon .sln-attendant-name, .p-booking #sln-salon .sln-total-price {
	font-family: var(--f-display); font-weight: 600; color: var(--c-text); letter-spacing: 0;
}
.p-booking #sln-salon h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); }
.p-booking #sln-salon .sln-service-name { font-size: 1.35rem; }
.p-booking #sln-salon .sln-panel { border: 1px solid var(--c-line); border-radius: 2px; background: #fff; }
.p-booking #sln-salon .sln-panel-heading { border-bottom: 1px solid var(--c-line); }
.p-booking #sln-salon .sln-panel-heading .sln-btn {
	font: 500 .78rem/1.2 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--c-olive-dark);
}
.p-booking #sln-salon .sln-list__item { border-bottom: 1px solid var(--c-line); }
.p-booking #sln-salon .sln-list__item:last-child { border-bottom: 0; }
.p-booking #sln-salon .sln-list__item:hover { background: var(--c-bg); }
.p-booking #sln-salon .sln-service-description, .p-booking #sln-salon .sln-list__item__description { color: var(--c-muted); }
.p-booking #sln-salon .sln-service-price-value { color: var(--c-olive-dark); font-weight: 600; }
.p-booking #sln-salon input.sln-input, .p-booking #sln-salon .sln-input input, .p-booking #sln-salon .sln-input textarea,
.p-booking #sln-salon select {
	background: #fff; border: 1px solid var(--c-line); border-radius: 2px; box-shadow: none; color: var(--c-text);
}
.p-booking #sln-salon .sln-box__bottombar { background: #fff; border-top: 1px solid var(--c-line); }
.p-booking #sln-salon .sln-btn--emphasis, .p-booking #sln-salon .sln-btn--nextstep {
	border-radius: 999px; box-shadow: none;
	font-weight: 500; letter-spacing: .16em; text-transform: uppercase; font-size: .8rem;
}
.p-booking #sln-salon .sln-btn--borderonly, .p-booking #sln-salon .sln-btn--prevstep { border-radius: 999px; }
.p-booking #sln-salon .sln-btn--emphasis:hover { background: var(--c-olive-deep); }

/* FAQ */
.p-faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--c-line); }
.p-faq__item { border-bottom: 1px solid var(--c-line); }
.p-faq__q {
	position: relative; list-style: none; cursor: pointer;
	padding: 22px 48px 22px 0; font: 600 1.35rem/1.3 var(--f-display); color: var(--c-text);
}
.p-faq__q::-webkit-details-marker { display: none; }
.p-faq__q::after {
	content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
	border-right: 1px solid var(--c-olive); border-bottom: 1px solid var(--c-olive); transform: rotate(45deg);
	transition: transform .3s var(--ease);
}
.p-faq__item[open] .p-faq__q::after { transform: rotate(-135deg); margin-top: -2px; }
.p-faq__a { padding: 0 0 22px; color: var(--c-muted); line-height: 1.75; max-width: 72ch; }
.p-faq__a p:last-child { margin-bottom: 0; }

/* Подробные описания услуг */
.p-service-card { height: 100%; }
.elementor-widget-text-editor ul { padding-left: 1.2em; margin: 0 0 1em; }
.elementor-widget-text-editor li { margin-bottom: .35em; }
.elementor-widget-text-editor strong { color: var(--c-text); font-weight: 500; }

/* Галерея (стандартный виджет Elementor «Базовая галерея») */
.p-gallery .gallery { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 !important; }
.p-gallery .gallery-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p-gallery .gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.p-gallery .gallery-columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.p-gallery .gallery-item { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.p-gallery .gallery-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 0 !important; transition: filter .3s var(--ease); }
.p-gallery .gallery-item a:hover img { filter: brightness(1.05) saturate(1.05); }
.p-gallery .gallery-caption { display: none; }
@media (max-width: 1024px) { .p-gallery .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) { .p-gallery .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

/* Юридические тексты */
.p-legal { color: var(--c-text); line-height: 1.75; }
.p-legal h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 1.8em 0 .5em; }
.p-legal h2:first-of-type { margin-top: 1em; }
.p-legal ul { padding-left: 1.2em; }
.p-legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.p-legal th, .p-legal td { padding: 10px 8px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.p-legal th { font: 500 .74rem/1.4 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--c-olive-dark); }
.p-legal code { font-size: .85em; background: var(--c-surface); padding: 1px 5px; }
@media (max-width: 599px) { .p-legal table { display: block; overflow-x: auto; } }
mark { background: #f6e7a8; color: var(--c-text); padding: 0 3px; }

/* Текст из «Текстового редактора» Elementor на тёмном фоне */
.elementor-widget-text-editor { color: var(--c-muted); line-height: 1.75; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* ---------- Обычные страницы ---------- */
.page-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(24px, 4vw, 40px); text-align: center; }
.page-hero .eyebrow { display: block; margin-bottom: 16px; }
.entry { padding-bottom: clamp(48px, 8vw, 96px); }
.entry-content { max-width: 760px; margin: 0 auto; }
.entry-content > * + h2 { margin-top: 1.6em; }
.entry-content img { margin: 1.5em 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; }
.entry-content th, .entry-content td { padding: 12px 8px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }

/* Страницы, собранные в Elementor, управляют шириной сами. */
.elementor-page .entry,
.page-template-elementor_header_footer .site-main { padding: 0; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--c-olive-deep); color: var(--c-light); padding: clamp(56px, 7vw, 80px) 0 28px; }
.site-footer a { color: var(--c-light); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-cookie-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--c-light); cursor: pointer; text-align: left; }
.footer-cookie-btn:hover { color: #fff; text-decoration: underline; }
.site-footer .btn:hover { text-decoration: none; }
.site-footer .btn--light, .site-footer .btn--light:hover { color: var(--c-olive-deep); }
.site-footer h2 { color: #fff; font: 500 1.4rem/1.2 var(--f-display); margin-bottom: 18px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand .brand { align-items: flex-start; color: var(--c-light); }
.footer-brand .brand__sub { color: var(--c-cream); }
.footer-brand p { margin: 20px 0 22px; line-height: 1.8; font-size: .95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; font-size: .95rem; }
.footer-divider { width: 100%; height: 36px; margin: 48px 0 20px; color: var(--c-cream); opacity: .55; }
.footer-credit a { text-decoration: underline; text-underline-offset: .2em; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .82rem; opacity: .85; }

/* ---------- Мобильная панель действий ---------- */
.action-bar { display: none; }
@media (max-width: 1023px) {
	body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
	.action-bar {
		display: grid; grid-template-columns: 1fr 1fr 1.4fr;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		padding-bottom: env(safe-area-inset-bottom);
		background: var(--c-bg); border-top: 1px solid var(--c-line);
	}
	.action-bar a {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
		height: 64px;
		font: 500 .68rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase;
		color: var(--c-text); text-decoration: none;
	}
	.action-bar svg { width: 20px; height: 20px; }
	.action-bar .action-bar__book { background: var(--c-olive-dark); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
