/* =========================================================================
   Taisia PMU — дизайн-система лендинга.
   Тёплый бежево-кремовый минимализм, арочные формы, RTL (logical properties).
   Цвета/шрифты берём из theme.json (--wp--preset--*), с локальными алиасами.
   ========================================================================= */

:root {
	--cream: var(--wp--preset--color--cream, #F6F1EA);
	--sand: var(--wp--preset--color--sand, #EBE3D8);
	--beige: var(--wp--preset--color--beige, #D8C7B4);
	--taupe: var(--wp--preset--color--taupe, #B39B82);
	--cocoa: var(--wp--preset--color--cocoa, #6E5844);
	--graphite: var(--wp--preset--color--graphite, #2B2622);
	--blush: var(--wp--preset--color--blush, #C98B84);
	--line: var(--wp--preset--color--line, #E0D6C8);
	--white: var(--wp--preset--color--white, #FFFFFF);

	--font-display: var(--wp--preset--font-family--display, "Frank Ruhl Libre", Georgia, serif);
	--font-body: var(--wp--preset--font-family--body, "Heebo", -apple-system, sans-serif);

	--arch: 999px 999px 0 0 / 320px 320px 0 0; /* арочная верхушка карточки */
	--radius: 18px;
	--edge-r: clamp(28px, 4vw, 56px); /* скругление hero (низ) и футера (верх) */
	--shadow: 0 24px 60px -30px rgba(43, 38, 34, 0.35);
	--header-h: 84px;
	--maxw: 1200px;
	--maxw-narrow: 720px;
}

/* ---------- База ---------- */
body.taisia {
	background: var(--cream);
	color: var(--graphite);
	font-family: var(--font-body);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.taisia h1,
body.taisia h2,
body.taisia h3,
body.taisia h4 {
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 1.15;
	color: var(--graphite);
	margin: 0 0 0.4em;
}

.ts-container {
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: 1.25rem;
	width: 100%;
}

.ts-container--narrow {
	max-width: var(--maxw-narrow);
}

/* Заголовок секции: надзаголовок + крупный заголовок */
.ts-eyebrow {
	display: block;
	font-family: var(--font-body);
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-size: 0.78rem;
	color: var(--taupe);
	margin-bottom: 0.75rem;
}

.ts-section {
	padding-block: clamp(3rem, 2rem + 4.5vw, 5.5rem);
}

.ts-section--sand { background: var(--sand); }
.ts-section--beige { background: var(--beige); }
.ts-section--dark { background: var(--graphite); color: var(--cream); }
.ts-section--dark h1,
.ts-section--dark h2,
.ts-section--dark h3 { color: var(--cream); }

/* ---------- Кнопки ---------- */
.ts-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 1.0625rem;
	line-height: 1;
	padding: 0.95rem 2rem;
	border-radius: 999px;
	border: 1.5px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.ts-btn:hover { transform: translateY(-2px); }
.ts-btn--primary { background: var(--graphite); color: var(--cream); }
.ts-btn--primary:hover { background: var(--cocoa); color: var(--cream); }
.ts-btn--dark { background: var(--cocoa); color: var(--cream); }
.ts-btn--ghost {
	background: transparent;
	color: var(--graphite);
	border-color: var(--graphite);
}
.ts-btn--ghost:hover { background: var(--graphite); color: var(--cream); }
.ts-btn .ts-ic { width: 1.15em; height: 1.15em; }

/* ---------- Шапка ---------- */
.ts-header {
	position: sticky;
	inset-block-start: 0;
	z-index: 100;
	background: rgba(246, 241, 234, 0.82);
	backdrop-filter: blur(12px);
	border-block-end: 1px solid var(--line);
}
.ts-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--header-h);
}
.ts-logo { text-decoration: none; display: flex; align-items: center; gap: 0.65rem; line-height: 1; }
.ts-logo__mark { height: 54px; width: auto; flex-shrink: 0; display: block; }
.ts-logo__text { display: flex; flex-direction: column; }
.ts-logo__name {
	font-family: var(--font-display);
	font-size: 2rem;
	letter-spacing: 0.02em;
	color: var(--graphite);
}
.ts-logo__sub {
	font-size: 0.85rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--taupe);
	margin-top: 2px;
}
.ts-nav { display: flex; gap: 2.1rem; }
.ts-nav a {
	text-decoration: none;
	color: var(--graphite);
	font-size: 1.2rem;
	position: relative;
	padding-block: 4px;
}
.ts-nav a::after {
	content: "";
	position: absolute;
	inset-block-end: 0;
	inset-inline-start: 0;
	width: 0;
	height: 1.5px;
	background: var(--taupe);
	transition: width 0.2s ease;
}
.ts-nav a:hover::after { width: 100%; }
.ts-header__cta { display: flex; align-items: center; gap: 0.75rem; }
.ts-header__cta .ts-btn { font-size: 1.125rem; padding: 1.05rem 2.2rem; }

.ts-burger { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; padding: 10px; }
.ts-burger span { display: block; height: 2px; background: var(--graphite); margin: 4px 0; transition: transform 0.2s ease, opacity 0.2s ease; }
.ts-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ts-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ts-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.ts-mobile-nav {
	display: none;
	background: var(--cream);
	border-block-end: 1px solid var(--line);
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.3s ease;
}
.ts-mobile-nav.is-open { max-height: 60vh; }
.ts-mobile-nav .ts-container { display: flex; flex-direction: column; padding-block: 0.5rem 1.25rem; }
.ts-mobile-nav a { padding: 0.85rem 0; text-decoration: none; color: var(--graphite); border-block-end: 1px solid var(--line); }
.ts-mobile-nav__cta { color: var(--cocoa); font-weight: 600; }

/* ---------- Hero (розовая шапка: заголовок + графика + видео) ---------- */
.ts-hero {
	position: relative;
	padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(3rem, 2rem + 4vw, 5.5rem);
}
/* Фон — в ::before со скруглённым низом; ::after подкладывает под уголки
   цвет СЛЕДУЮЩЕЙ секции (portfolio — sand). Красить сам .ts-hero нельзя:
   border-radius обрезал бы фон, а в вырезах просвечивал бы фон страницы. */
.ts-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(120% 55% at 50% -5%, rgba(242, 216, 206, 0.85), rgba(242, 216, 206, 0) 70%),
		linear-gradient(180deg, #D89A90 0%, #C4766B 100%);
	border-end-start-radius: var(--edge-r);
	border-end-end-radius: var(--edge-r);
}
.ts-hero::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	height: var(--edge-r);
	z-index: -2;
	background: var(--sand);
}
.ts-hero__title {
	font-family: var(--font-display);
	color: var(--graphite);
	font-weight: 500;
	font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.6rem);
	line-height: 1.2;
	max-width: 22ch;
	margin-inline: auto;
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.ts-hero__sub {
	color: var(--graphite);
	font-size: clamp(1.25rem, 1rem + 1.4vw, 1.9rem);
	line-height: 1.65;
	font-weight: 500;
	margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}
/* WP-раскладка (is-layout-flow) и стили заголовков Astra перебивают одиночный
   класс (отступ и line-height) — дублируем с большей специфичностью */
.ts-hero__text .ts-hero__sub {
	margin-block-end: clamp(2rem, 1.5rem + 2vw, 3rem);
	line-height: 1.65;
}
.ts-hero .wp-block-buttons { gap: 1.25rem; }
.ts-hero__cols {
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
	justify-content: center;
	gap: clamp(2.5rem, 6vw, 5rem);
}
/* На десктопе колонки — по ширине контента, чтобы ряд «графика + текст»
   центрировался как единое целое относительно оси страницы */
@media (min-width: 782px) {
	.ts-hero .ts-hero__cols > .wp-block-column.ts-hero__text { flex: 0 1 auto; width: fit-content; min-width: 0; }
	.ts-hero .ts-hero__cols > .wp-block-column.ts-hero__art-col { flex: 0 0 clamp(300px, 36vw, 460px); }
}
/* Кнопки core/button (hero + секции): Astra перебивает theme.json своим
   синим — возвращаем фирменные цвета (как у .ts-btn). */
.ts-hero .wp-block-button__link,
.ts-section .wp-block-button__link {
	background: var(--graphite);
	color: var(--cream);
	border-radius: 999px;
	padding: 0.95rem 2rem;
	font-weight: 500;
}
.ts-hero .wp-block-button__link:hover,
.ts-section .wp-block-button__link:hover { background: var(--cocoa); }
.ts-hero .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: var(--graphite) !important;
	border: 1.5px solid rgba(43, 38, 34, 0.55) !important;
}
.ts-hero .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(43, 38, 34, 0.08) !important;
}
/* Видео целиком (16:9), по центру, в рамке */
.ts-hero__media {
	max-width: 960px;
	margin-inline: auto;
	position: relative;
}
.ts-hero__media video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 22px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	box-shadow: 0 30px 70px -35px rgba(43, 38, 34, 0.55);
	background: var(--graphite);
}

/* Кнопка Play по центру видео: видео не автоплеит, по клику играет со звуком.
   Дизайн — frosted glass (эталон play-оверлеев): полупрозрачное белое стекло
   с блюром фона, тонкая белая обводка, белый треугольник с мягкой тенью —
   читается и на светлых, и на тёмных кадрах, нейтрален к палитре. */
.ts-hero__play {
	position: absolute;
	inset: 0;
	margin: auto;
	z-index: 3;
	width: 92px;
	height: 92px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	cursor: pointer;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.18);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	backdrop-filter: blur(14px) saturate(160%);
	color: var(--white);
	box-shadow: 0 10px 40px -8px rgba(0, 0, 0, 0.35);
	transition: transform 0.2s ease, background 0.2s ease, opacity 0.25s ease;
}
.ts-hero__play:hover {
	transform: scale(1.06);
	background: rgba(255, 255, 255, 0.32);
}
@supports not (backdrop-filter: blur(1px)) {
	.ts-hero__play { background: rgba(43, 38, 34, 0.55); }
	.ts-hero__play:hover { background: rgba(43, 38, 34, 0.7); }
}
.ts-hero__play .ts-ic {
	width: 36px;
	height: 36px;
	filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}
.ts-hero__play::before {
	content: "";
	position: absolute;
	inset: -10px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.6);
	animation: ts-play-pulse 2.2s ease-out infinite;
}
@keyframes ts-play-pulse {
	0% { transform: scale(0.92); opacity: 0.9; }
	70% { transform: scale(1.28); opacity: 0; }
	100% { transform: scale(1.28); opacity: 0; }
}
.ts-hero__play.is-hidden {
	opacity: 0;
	transform: scale(0.8);
	pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
	.ts-hero__play::before { animation: none; opacity: 0; }
	.ts-hero__play { transition: opacity 0.2s ease; }
}
@media (max-width: 600px) {
	.ts-hero__play { width: 72px; height: 72px; }
	.ts-hero__play .ts-ic { width: 28px; height: 28px; }
}

/* Графика-профиль слева от текста */
.ts-hero__art { margin: 0; display: flex; justify-content: center; }
.ts-hero__art-svg { width: min(340px, 82%); height: auto; display: block; }
/* Самопрорисовка — та же механика, что у .ts-lead__art, со своим стаггером */
.ts-js .ts-hero__art .ts-la-d { stroke-dasharray: 1 3; stroke-dashoffset: 1.05; }
.ts-js .ts-hero__art .ts-la-f { opacity: 0; }
/* Тайминги ужаты ~вдвое (полный цикл ≈2s): hero должен «собираться» быстро */
.ts-hero__art.is-drawn .ts-la-d {
	stroke-dashoffset: 0;
	transition: stroke-dashoffset 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.ts-hero__art.is-drawn .ts-la-f { transition: opacity 0.5s ease; }
.ts-hero__art.is-drawn .ts-la-d7 { transition-duration: 0.7s; transition-delay: 0s; }
.ts-hero__art.is-drawn .ts-la-d5 { transition-duration: 0.6s; transition-delay: 0.1s; }
.ts-hero__art.is-drawn .ts-la-d1 { transition-duration: 0.8s; transition-delay: 0.2s; }
.ts-hero__art.is-drawn .ts-la-d2 { transition-delay: 0.6s; }
.ts-hero__art.is-drawn .ts-la-d3 { transition-delay: 0.7s; }
.ts-hero__art.is-drawn .ts-la-d4 { transition-delay: 0.8s; }
.ts-hero__art.is-drawn .ts-la-d6 { transition-duration: 0.6s; transition-delay: 0.7s; }
.ts-hero__art.is-drawn .ts-la-d8 { transition-delay: 1.05s; }
/* Интерьер будуара: комната → мебель → детали → ночь за окном */
.ts-hero__art.is-drawn .ts-la-d9 { transition-duration: 0.65s; transition-delay: 0s; }
.ts-hero__art.is-drawn .ts-la-d10 { transition-duration: 0.6s; transition-delay: 0.25s; }
.ts-hero__art.is-drawn .ts-la-d11 { transition-delay: 0.85s; }
.ts-hero__art.is-drawn .ts-la-d12 { transition-delay: 1.1s; }
.ts-hero__art.is-drawn .ts-la-f2 { opacity: 1; transition-delay: 1.15s; }
.ts-hero__art.is-drawn .ts-la-f1 { opacity: 1; transition-delay: 1.25s; }
.ts-hero__art.is-drawn .ts-la-f3 { opacity: 1; transition-delay: 1.35s; }
.ts-hero__art.is-drawn .ts-la-f4 { opacity: 1; transition-delay: 1.45s; }
@media (prefers-reduced-motion: reduce) {
	.ts-hero__art .ts-la-d { stroke-dashoffset: 0; transition: none; }
	.ts-hero__art .ts-la-f { transition: none; opacity: 1; }
}
/* Мобильная раскладка (колонки складываются на ≤781px — брейкпоинт core) */
@media (max-width: 781px) {
	.ts-hero__text { text-align: center; }
	.ts-hero .wp-block-buttons { justify-content: center; }
	.ts-hero__art { margin-top: 0.5rem; }
	.ts-hero__art-svg { width: 290px; }
	.ts-hero__cols { margin-bottom: 1.75rem; }
	.ts-hero__media video { border-radius: 16px; }
}


/* ---------- Арочная карточка / медиа ---------- */
.ts-arch {
	border-start-start-radius: 999px;
	border-start-end-radius: 999px;
	border-end-start-radius: var(--radius);
	border-end-end-radius: var(--radius);
	overflow: hidden;
}
.ts-arch img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Секция «מה אני עושה»: арочные карточки ---------- */
/* Интро секции — фикс. rem вместо кастомного размера из редактора:
   тот при fluid typography сжимается на мобильном ниже основного текста */
.ts-svc-intro { font-size: 1.2rem; }
.ts-svc { gap: 2rem; }
.ts-svc__col { container-type: inline-size; display: flex; }
.ts-svc__card {
	width: 100%;
	display: flex;
	flex-direction: column;
	background: var(--white);
	box-shadow: var(--shadow);
	overflow: hidden;
	/* фолбэк: круговые радиусы ужимаются браузером до полукруга, низ почти острый */
	border-radius: 999px 999px var(--radius) var(--radius);
	transition: translate 0.35s ease, box-shadow 0.35s ease;
}
@supports (border-radius: 50cqw) {
	.ts-svc__card {
		/* полукруглая арка: радиус = половина ширины карточки, низ остаётся 18px */
		border-radius: 50cqw 50cqw var(--radius) var(--radius);
	}
}
.ts-svc__card:hover {
	translate: 0 -4px;
	box-shadow: 0 34px 70px -32px rgba(43, 38, 34, 0.45);
}
.ts-svc__art { margin: 0; }
.ts-svc__art img { display: block; width: 100%; height: auto; }
.ts-svc__text { padding: 1.4rem 1.5rem 2rem; }
/* размеры как в таймлайне «התהליך» (.ts-tstep__body) */
.ts-svc__text h3 { font-size: 1.4rem; margin: 0 0 0.7rem; }
.ts-svc__text p { margin: 0 0 0.8rem; font-size: 1.15rem; line-height: 1.6; color: var(--cocoa); }
.ts-svc__text p:last-child { margin-bottom: 0; }
.ts-svc__text ul {
	list-style: none;
	margin: 0 0 0.8rem;
	padding: 0;
	text-align: start;
	display: grid;
	gap: 0.45rem;
}
.ts-svc__text li {
	position: relative;
	padding-inline-start: 1.15rem;
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--cocoa);
}
.ts-svc__text li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.62em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--taupe);
}
@media (max-width: 781px) {
	.ts-svc__card { max-width: 420px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.ts-svc__card { transition: none; }
	.ts-svc__card:hover { translate: none; box-shadow: var(--shadow); }
}

/* ---------- Портфолио ----------
   ⚠️ Селекторы — по классам (.ts-works/.ts-pill), НЕ по #works и не через `>`:
   редактор Gutenberg не выносит anchor-id на обёртку блока и вставляет свои
   обёртки — id- и child-селекторы там мертвы, а классы рендерятся честно. */
/* размеры текста как в таймлайне «התהליך» (.ts-tstep__body) */
/* вводные строки секции (над фото и над видео) — полужирные, в нежной плашке.
   Увеличенный верхний отступ отбивает плашку от предыдущего под-блока
   (и первую — от заголовка секции): визуальное разделение «глав». */
.ts-pill {
	font-size: 1.15rem;
	font-weight: 600;
	width: fit-content;
	margin-inline: auto;
	margin-block-start: clamp(3.4rem, 2.6rem + 3vw, 5.1rem);
	padding: 0.5em 1.4em;
	border-radius: 999px;
	background: var(--blush);
	color: var(--cream);
}
/* Первая плашка (сразу после заголовка секции): текстовая строка выше неё
   и так даёт визуальный воздух — отступ чуть меньше, чем у остальных */
h2 + .ts-pill { margin-block-start: clamp(2.75rem, 2rem + 2.5vw, 4.25rem); }
.ts-works h3 { font-size: 1.4rem; }
.ts-works .wp-block-column p { font-size: 1.15rem; color: var(--cocoa); }
/* обычное фото/видео в рамке (замена слайдера) */
.ts-photo { margin: 0; }
.ts-photo img,
.ts-photo video {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
/* вертикальные видео 9:16: каждое отцентрировано в своей половине ряда,
   ширина подобрана так, чтобы высота была как у фото 3:4 (718px);
   только .wp-block-video — фото в смешанном ряду занимает колонку целиком */
.ts-works .ts-video-row .wp-block-video { max-width: 404px; margin-inline: auto; }

/* Кейс с подписью, наложенной на фото (правое фото в паре с IMG-бровями).
   Карточка-подпись плавает над низом фото (над плечами) — не перекрывает результат. */
.ts-works .ts-case { position: relative; margin: 0; }
.ts-works .ts-case__img { margin: 0; }
.ts-works .ts-case__img img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.ts-works .ts-case__cap {
	position: absolute;
	inset-inline: clamp(10px, 4%, 22px);
	inset-block-end: clamp(10px, 4%, 22px);
	padding: clamp(0.85rem, 0.5rem + 1.4vw, 1.4rem) clamp(1rem, 0.6rem + 1.6vw, 1.7rem);
	background: rgba(246, 241, 234, 0.9); /* cream, полупрозрачный */
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(110, 88, 68, 0.3); /* рамка в тоне cocoa */
	border-radius: var(--radius);
	box-shadow: 0 10px 28px rgba(43, 38, 34, 0.16);
	text-align: center;
}
.ts-works .ts-case__cap p {
	margin: 0;
	font-size: clamp(0.82rem, 0.72rem + 0.42vw, 1.02rem);
	line-height: 1.5;
	color: var(--cocoa);
}
.ts-works .ts-case__cap p + p { margin-top: 0.6em; }

/* ---------- Галерея: сцена + лента миниатюр (.ts-gal) ----------
   Разметка — обычная core-галерея в обёртке .ts-gal-wrap; CSS делает из неё
   ленту миниатюр (overflow + snap, свайп/колесо без JS), а JS
   (initGalleryCarousel) добавляет сцену-превью и стрелки. Клик по миниатюре —
   фото в сцене; клик по сцене — родной лайтбокс WP. */
.ts-gal-belt { position: relative; }
.ts-gal-stage { margin-bottom: 1rem; text-align: center; }
.ts-gal-stage img {
	display: inline-block;
	height: 520px;
	max-width: 100%;
	width: auto;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	cursor: zoom-in;
	transition: opacity 0.2s ease;
}
.ts-gal.wp-block-gallery {
	/* Лента живёт в LTR (как задуман core-виджет): вместе с бесшовным
	   зацикливанием (JS) «право/лево» теряют смысл и RTL-костыли не нужны */
	direction: ltr;
	display: flex;
	flex-wrap: nowrap;
	gap: 0.8rem;
	overflow-x: auto;
	padding-block: 0.4rem;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.ts-gal.wp-block-gallery::-webkit-scrollbar { display: none; }
.ts-gal.wp-block-gallery .wp-block-image {
	/* core-правило `.wp-block-gallery.has-nested-images figure.wp-block-image`
	   ставит flex-grow:1 и по специфичности (лишний селектор figure) бьёт нас —
	   пока лента переполнена клонами это незаметно, но до прогона JS/загрузки
	   картинок (нулевой базис) grow растягивает пару миниатюр на всю ширину →
	   одна широкая плоская миниатюра. Держим grow:0 жёстко. */
	flex: 0 0 auto !important;
	width: auto !important; /* перебиваем calc-ширины колонок core-галереи */
	margin: 0;
	scroll-snap-align: center;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 24px -14px rgba(43, 38, 34, 0.4);
	cursor: pointer;
	opacity: 0.65;
	transition: opacity 0.2s ease;
}
.ts-gal.wp-block-gallery .wp-block-image:hover { opacity: 1; }
.ts-gal.wp-block-gallery .wp-block-image.is-active {
	opacity: 1;
	outline: 2px solid var(--blush);
	outline-offset: 2px;
}
/* Размер миниатюры — фиксированные px на самом img (как у сцены), всё с
   !important: core-правило is-cropped
   `…figure.wp-block-image:not(#individual-image) img` из-за ID внутри :not()
   имеет специфичность уровня ID и бьёт любые классы. Оно ставит img
   `width:100%; height:100%; flex:1 0 0%`, а figure у core — display:flex
   (колонкой). Последствия без !important-переопределений: ширина figure (auto)
   зависит от ширины img (100%) и наоборот — новые WebKit разруливают цикл через
   пропорцию фото, реальный iOS (Safari/Chrome) подставляет НАТУРАЛЬНУЮ ширину
   картинки → одна миниатюра-«панорама» на всю ленту; а flex-basis:0 в колонке
   схлопывает высоту img в 0, если у figure нет фиксированной высоты. Фикс. px +
   flex:0 0 auto рвут обе зависимости на любом движке. */
.ts-gal.wp-block-gallery figure.wp-block-image img {
	display: block;
	flex: 0 0 auto !important;
	width: auto !important;
	height: 110px !important;
	object-fit: cover;
}
/* Кнопки «развернуть» лайтбокса на миниатюрах прячем: лайтбокс открывается
   кликом по сцене (JS дёргает скрытый триггер активного фото) */
.ts-gal .lightbox-trigger { display: none; }
/* Лайтбокс: возвращаем оригинальную LTR-геометрию ядра. RTL-вариант стилей
   WP зеркалит траекторию zoom-анимации в неверную точку (баг ядра); раз лента
   миниатюр всё равно LTR, восстанавливаем лайтбокс «как задуман»: prev слева,
   next справа, контейнер якорится слева, keyframes — LTR-формула. */
.wp-lightbox-overlay .wp-lightbox-navigation-button-prev {
	right: auto;
	left: calc(env(safe-area-inset-left) + 16px);
}
.wp-lightbox-overlay .wp-lightbox-navigation-button-next {
	left: auto;
	right: calc(env(safe-area-inset-right) + 16px);
}
.wp-lightbox-overlay .lightbox-image-container {
	right: auto;
	left: 50%;
	transform: translate(-50%, -50%);
	transform-origin: left top;
}
.wp-lightbox-overlay .wp-block-image { transform-origin: 0 0; }
@media not (prefers-reduced-motion) {
	.wp-lightbox-overlay.zoom.active .lightbox-image-container {
		animation: 0.4s ease 0s 1 both ts-lb-zoom-in !important;
	}
	.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container {
		animation: 0.4s ease 0s 1 both ts-lb-zoom-out !important;
	}
}
@keyframes ts-lb-zoom-in {
	0% {
		transform:
			translate(
				calc((-100vw + var(--wp--lightbox-scrollbar-width)) / 2 + var(--wp--lightbox-initial-left-position)),
				calc(-50vh + var(--wp--lightbox-initial-top-position))
			)
			scale(var(--wp--lightbox-scale));
	}
	100% { transform: translate(-50%, -50%) scale(1); }
}
@keyframes ts-lb-zoom-out {
	0% { transform: translate(-50%, -50%) scale(1); visibility: visible; }
	99% { visibility: visible; }
	100% {
		transform:
			translate(
				calc((-100vw + var(--wp--lightbox-scrollbar-width)) / 2 + var(--wp--lightbox-initial-left-position)),
				calc(-50vh + var(--wp--lightbox-initial-top-position))
			)
			scale(var(--wp--lightbox-scale));
		visibility: hidden;
	}
}
.ts-gal-btn {
	position: absolute;
	top: 50%;
	translate: 0 -50%;
	z-index: 5;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 0;
	cursor: pointer;
	display: grid;
	place-items: center;
	background: var(--white);
	color: var(--graphite);
	box-shadow: var(--shadow);
	font-size: 1.4rem;
	line-height: 1;
	padding: 0;
	transition: background 0.2s ease, color 0.2s ease;
}
.ts-gal-btn:hover { background: var(--blush); color: var(--cream); }
/* Кнопки — по физическим сторонам (лента LTR), direction:ltr отключает
   bidi-зеркалирование глифов ‹ › внутри RTL-страницы */
.ts-gal-btn { direction: ltr; }
.ts-gal-btn--left { left: -10px; }
.ts-gal-btn--right { right: -10px; }
@media (max-width: 600px) {
	.ts-gal-stage img { height: 320px; }
	.ts-gal.wp-block-gallery figure.wp-block-image img { height: 84px !important; }
	.ts-gal-btn { width: 40px; height: 40px; }
	.ts-gal-btn--left { left: 0; }
	.ts-gal-btn--right { right: 0; }
}

.ts-portfolio__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.25rem;
}
.ts-card {
	background: var(--white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}
.ts-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ts-card__body { padding: 1.1rem 1.25rem 1.35rem; }

/* ---------- Before/After блок ---------- */
.ts-ba {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	border-radius: var(--radius);
	overflow: hidden;
	user-select: none;
	touch-action: pan-y;
	box-shadow: var(--shadow);
	background: var(--sand);
}
.ts-ba { --pos: 50%; }
.ts-ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ts-ba__after { z-index: 1; }
/* «до» сверху, показываем левую часть до ползунка (--pos) */
.ts-ba__before { z-index: 2; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ts-ba__handle {
	position: absolute;
	z-index: 3;
	inset-block: 0;
	left: var(--pos);
	width: 2px;
	background: var(--white);
	transform: translateX(-50%);
	pointer-events: none;
}
.ts-ba__grip {
	position: absolute;
	inset-block-start: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 40px; height: 40px;
	border-radius: 999px;
	background: var(--white);
	box-shadow: 0 4px 14px rgba(0,0,0,0.25);
	display: flex; align-items: center; justify-content: center;
	color: var(--graphite);
	font-size: 14px;
}
.ts-ba__label {
	position: absolute;
	inset-block-start: 0.75rem;
	z-index: 3;
	background: rgba(43,38,34,0.6);
	color: #fff;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
}
.ts-ba__label--before { inset-inline-end: 0.75rem; }
.ts-ba__label--after { inset-inline-start: 0.75rem; }

/* ---------- Форма заявки (lead-form) ---------- */
.ts-lead {
	background: var(--white);
	border-radius: var(--radius);
	padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
	box-shadow: var(--shadow);
	max-width: 560px;
	margin-inline: auto;
	text-align: center;
}
.ts-lead__title { margin-bottom: 0.4rem; }
.ts-lead__sub { color: var(--cocoa); margin-bottom: 1.5rem; }
.ts-lead__form { display: grid; gap: 0.85rem; }
.ts-lead__field {
	width: 100%;
	font-family: var(--font-body);
	font-size: 1.05rem;
	padding: 0.95rem 1.1rem;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	background: var(--cream);
	color: var(--graphite);
}
/* Фокус: Astra красит границу input:focus в свой синий dotted с !important —
   перебиваем фирменным taupe + мягкое кольцо (видимый фокус для доступности) */
.ts-lead__field:focus,
.ts-lead__field:focus-visible {
	outline: none;
	border: 1.5px solid var(--taupe) !important;
	box-shadow: 0 0 0 3px rgba(179, 155, 130, 0.22) !important;
}
/* type=tel браузер принудительно делает LTR (ввод цифр слева направо — оставляем),
   но подсказку «טלפון» прижимаем вправо, как у остальных полей */
.ts-lead__field[type="tel"]::placeholder { text-align: right; }
.ts-lead__field--area { resize: vertical; min-height: 88px; font-family: inherit; line-height: 1.5; }
.ts-lead__intro { margin: 0; }

/* Широкая (горизонтальная) раскладка: интро и форма в две колонки, на всю ширину блока */
.ts-lead--wide {
	max-width: none;
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem clamp(2.5rem, 5vw, 5rem);
	align-items: stretch;
	text-align: start;
}
.ts-lead--wide .ts-lead__intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.ts-lead--wide .ts-lead__panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.ts-lead--wide .ts-lead__title { margin-bottom: 0.5rem; }
.ts-lead--wide .ts-lead__sub { margin-bottom: 0; }
@media (max-width: 820px) {
	.ts-lead--wide { grid-template-columns: 1fr; text-align: center; gap: 1.25rem; }
}

/* Декоративная графика в интро широкой формы (арка + бровь/глаз/губы) */
.ts-lead__art {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 1.5rem 0 0;
}
.ts-lead__art-svg {
	width: min(280px, 72%);
	height: auto;
	display: block;
}
/* Линии «рисуются» при каждом появлении во вьюпорте (is-drawn тогглит JS), заливки проявляются */
/* Зазор 3 и офсет 1.05 — чтобы в исходном состоянии не было «точек» от круглых торцов штриха */
.ts-js .ts-lead__art .ts-la-d {
	stroke-dasharray: 1 3;
	stroke-dashoffset: 1.05;
}
.ts-js .ts-lead__art .ts-la-f { opacity: 0; }
/* Переходы только в состоянии is-drawn: сброс при снятии класса мгновенный,
   чтобы повторная отрисовка всегда начиналась с нуля (а не с недостёртого) */
.ts-lead__art.is-drawn .ts-la-d {
	stroke-dashoffset: 0;
	transition: stroke-dashoffset 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.ts-lead__art.is-drawn .ts-la-f { transition: opacity 0.8s ease; }
.ts-lead__art.is-drawn .ts-la-f1 { opacity: 0.16; }
.ts-lead__art.is-drawn .ts-la-f2 { opacity: 0.55; }
.ts-lead__art.is-drawn .ts-la-f3 { opacity: 1; }
.ts-lead__art.is-drawn .ts-la-d1 { transition-duration: 1.1s; transition-delay: 0.15s; }
.ts-lead__art.is-drawn .ts-la-d2 { transition-delay: 0.55s; }
.ts-lead__art.is-drawn .ts-la-d3 { transition-delay: 0.7s; }
.ts-lead__art.is-drawn .ts-la-d4 { transition-delay: 0.9s; }
.ts-lead__art.is-drawn .ts-la-d5 { transition-delay: 1.05s; }
.ts-lead__art.is-drawn .ts-la-f1 { transition-delay: 0.3s; }
.ts-lead__art.is-drawn .ts-la-f2 { transition-delay: 1.2s; }
.ts-lead__art.is-drawn .ts-la-f3 { transition-delay: 1.5s; }
@media (prefers-reduced-motion: reduce) {
	.ts-lead__art .ts-la-d { stroke-dashoffset: 0; transition: none; }
	.ts-lead__art .ts-la-f { transition: none; }
	.ts-lead__art .ts-la-f1 { opacity: 0.16; }
	.ts-lead__art .ts-la-f2 { opacity: 0.55; }
	.ts-lead__art .ts-la-f3 { opacity: 1; }
}
@media (max-width: 820px) {
	.ts-lead__art { margin-top: 1rem; }
	.ts-lead__art-svg { width: 190px; }
}
.ts-lead__hp { position: absolute; inset-inline-start: -9999px; }
.ts-lead__submit { width: 100%; margin-top: 0.25rem; }
.ts-lead__wa {
	display: inline-flex; align-items: center; gap: 0.4rem;
	margin-top: 1rem; color: var(--cocoa); text-decoration: none; font-size: 0.95rem;
}
.ts-lead__wa:hover { color: var(--taupe); }
.ts-lead__note { font-size: 0.8rem; color: var(--taupe); margin-top: 0.9rem; }

.ts-form-notice { border-radius: 12px; padding: 0.85rem 1.1rem; margin-bottom: 1rem; font-size: 0.95rem; }
.ts-form-notice--ok { background: #E8F0E4; color: #2f5d2a; }
.ts-form-notice--err { background: #F5E3E1; color: #8a3a34; }

/* ---------- Процесс (вертикальный таймлайн) ---------- */
.ts-timeline {
	max-width: 640px;
	margin-inline: auto;
	margin-top: clamp(1.5rem, 1rem + 2.5vw, 3rem);
}
/* нейтрализуем flow-отступы между шагами — расстояние задаём паддингом шага,
   иначе разрывается математика соединительной линии */
.ts-timeline > .ts-tstep { margin-block: 0; }

.ts-tstep {
	position: relative;
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 1.5rem;
	padding-block: 0 2.6rem;
}
.ts-tstep:last-child { padding-block-end: 0; }

/* соединительная линия: от центра узла вниз до центра следующего узла */
.ts-tstep::before {
	content: "";
	position: absolute;
	inset-inline-start: 27px; /* центр узла (56/2 − 1) */
	inset-block-start: 28px;
	inset-block-end: -28px;
	width: 2px;
	background: var(--beige);
	z-index: 0;
}
.ts-tstep:last-child::before { display: none; }

/* узел-кружок с номером */
.ts-tstep__node {
	position: relative;
	z-index: 1;
	flex: none;
	width: 56px;
	height: 56px;
	margin: 0;
	border-radius: 999px;
	background: var(--white);
	border: 1.5px solid var(--taupe);
	color: var(--cocoa);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-display);
	font-size: 1.4rem;
	line-height: 1;
	box-shadow: 0 6px 16px -10px rgba(110, 88, 68, 0.5);
}
.ts-tstep__body { flex: 1 1 auto; padding-block-start: 0.35rem; }
.ts-tstep__body h3 { font-size: 1.4rem; margin: 0 0 0.45rem; }
.ts-tstep__body p { margin: 0; color: var(--cocoa); font-size: 1.15rem; }

/* Живая линия + подсветка узлов по скроллу (нативные scroll-driven анимации).
   Поверх бежевой базовой линии (::before) растёт коричневая «прорисовка» (::after),
   а узлы окрашиваются в коричневый по мере достижения. Где не поддерживается или
   reduced-motion — остаётся статичная бежевая линия и белые узлы. */
@keyframes ts-line-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ts-node-activate { to { background: var(--cocoa); border-color: var(--cocoa); color: var(--cream); } }

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.ts-tstep::after {
			content: "";
			position: absolute;
			inset-inline-start: 27px;
			inset-block-start: 28px;
			inset-block-end: -28px;
			width: 2px;
			background: var(--cocoa);
			transform-origin: top;
			transform: scaleY(0);
			z-index: 0;
			animation: ts-line-fill linear both;
			animation-timeline: view();
			animation-range: cover 15% cover 62%;
		}
		.ts-tstep:last-child::after { display: none; }
		.ts-tstep__node {
			animation: ts-node-activate linear both;
			animation-timeline: view();
			animation-range: cover 26% cover 44%;
		}
	}
}

/* ---------- Пакет («облака» — что включено) ---------- */
.ts-clouds-intro { color: var(--cocoa); font-size: 1.15rem; }
.ts-clouds {
	display: grid;
	grid-template-columns: 1fr 1fr;
	/* без stretch: иначе обёртка (и её hover-тень) выше карточки в «разбросанных» рядах */
	align-items: start;
	gap: 1.5rem 2rem;
	margin-block-start: clamp(1.5rem, 1rem + 2vw, 2.75rem);
	margin-block-end: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
/* органичный «разброс» облачков */
.ts-cloud:nth-child(even) { margin-block-start: 2.5rem; }
.ts-cloud:nth-child(3) { margin-inline-start: 1.25rem; }
.ts-cloud:nth-child(5) { margin-inline-end: 1.25rem; }
/* 7-я (замыкающая) — по центру на всю ширину */
.ts-cloud:nth-child(7) { grid-column: 1 / -1; max-width: 62%; margin-inline: auto; }

.ts-cloud__inner {
	position: relative;
	/* два слоя: румяное свечение за бейджем (RTL: бейдж справа) + тёплый градиент.
	   Оттенок градиента задаётся переменными — ниже пастельное чередование по nth-child */
	background:
		radial-gradient(170px 170px at calc(100% + 40px) -40px,
			rgba(201, 139, 132, 0.2), rgba(216, 199, 180, 0.12) 45%, transparent 70%),
		linear-gradient(160deg, var(--cloud-g1, #ffffff) 0%, var(--cloud-g2, #fbf6ef) 58%, var(--cloud-g3, #f6eee2) 100%);
	border: 1px solid rgba(110, 88, 68, 0.55); /* cocoa, смягчённый */
	border-radius: var(--radius);
	box-shadow: 0 18px 44px -26px rgba(43, 38, 34, 0.3);
	padding: 1.4rem 1.5rem;
	padding-inline-start: 4.5rem;
}
/* пастельное чередование оттенков: крем / румяный blush / песочный беж */
.ts-cloud:nth-child(3n + 2) .ts-cloud__inner {
	--cloud-g1: #fffbf9;
	--cloud-g2: #faeee9;
	--cloud-g3: #f5e3dc;
}
.ts-cloud:nth-child(3n) .ts-cloud__inner {
	--cloud-g1: #fffdf8;
	--cloud-g2: #f9f0e0;
	--cloud-g3: #f2e6d0;
}

/* размеры как в таймлайне «התהליך» (.ts-tstep__body) */
.ts-cloud__inner h3 { font-size: 1.4rem; margin: 0 0 0.45rem; }
.ts-cloud__inner p { margin: 0; color: var(--cocoa); font-size: 1.15rem; line-height: 1.6; }

/* Бейдж-кружок с галочкой (RTL: inline-start = справа) */
.ts-cloud__inner::before {
	content: "";
	position: absolute;
	inset-inline-start: 1.1rem;
	inset-block-start: 1.35rem;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: var(--white);
	border: 1.5px solid var(--taupe);
	scale: 1;
}
.ts-cloud__inner::after {
	content: "";
	position: absolute;
	inset-inline-start: calc(1.1rem + 11px);
	inset-block-start: calc(1.35rem + 13px);
	width: 13px;
	height: 7px;
	/* физические границы: галочка ✓ не должна зеркалиться в RTL */
	border-left: 2px solid var(--cocoa);
	border-bottom: 2px solid var(--cocoa);
	transform: rotate(-45deg);
	margin-block-start: -2px;
}
@media (hover: hover) {
	/* усиленная тень при hover — drop-shadow (composited) движется вместе
	   с карточкой, в отличие от слоя-подложки, и не анимирует box-shadow */
	.ts-cloud__inner {
		transition: translate 0.25s ease, filter 0.25s ease;
		filter: drop-shadow(0 0 0 rgba(43, 38, 34, 0));
	}
	.ts-cloud:hover .ts-cloud__inner {
		translate: 0 -4px;
		filter: drop-shadow(0 16px 14px rgba(43, 38, 34, 0.16));
	}
}

/* Каскад появления: задержки reveal-перехода по порядку */
.ts-clouds .ts-cloud.ts-reveal:nth-child(2) { transition-delay: 0.07s; }
.ts-clouds .ts-cloud.ts-reveal:nth-child(3) { transition-delay: 0.14s; }
.ts-clouds .ts-cloud.ts-reveal:nth-child(4) { transition-delay: 0.21s; }
.ts-clouds .ts-cloud.ts-reveal:nth-child(5) { transition-delay: 0.28s; }
.ts-clouds .ts-cloud.ts-reveal:nth-child(6) { transition-delay: 0.35s; }
.ts-clouds .ts-cloud.ts-reveal:nth-child(7) { transition-delay: 0.42s; }

@media (prefers-reduced-motion: no-preference) {
	/* появление бейджа и «прорисовка» галочки при reveal (.ts-js — см. reveal) */
	.ts-js .ts-cloud.ts-reveal .ts-cloud__inner::before {
		scale: 0;
		transition: scale 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s;
	}
	.ts-js .ts-cloud.ts-reveal .ts-cloud__inner::after {
		width: 0;
		height: 0;
		border-color: transparent;
		transition: width 0.15s ease 0.55s, height 0.12s ease 0.67s, border-color 0s linear 0.55s;
	}
	.ts-js .ts-cloud.ts-reveal.is-visible .ts-cloud__inner::before { scale: 1; }
	.ts-js .ts-cloud.ts-reveal.is-visible .ts-cloud__inner::after {
		width: 13px;
		height: 7px;
		border-color: var(--cocoa);
	}
}

@media (max-width: 700px) {
	.ts-clouds { grid-template-columns: 1fr; gap: 1rem; }
	.ts-cloud:nth-child(even) { margin-block-start: 0; }
	.ts-cloud:nth-child(3) { margin-inline-start: 0; }
	.ts-cloud:nth-child(5) { margin-inline-end: 0; }
	.ts-cloud:nth-child(7) { max-width: none; margin-inline: 0; }
}

/* ---------- Обо мне / статистика ---------- */
.ts-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.ts-stat__num { font-family: var(--font-display); font-size: 2.4rem; color: var(--cocoa); line-height: 1; }
.ts-stat__label { font-size: 0.9rem; color: var(--taupe); }

/* Больше воздуха между портретом и текстом в секции «обо мне» (только по горизонтали;
   на мобильном колонки складываются — вертикальный отступ не трогаем). */
#about .wp-block-columns { column-gap: clamp(1.75rem, 3vw, 3.25rem); }
/* Рамка портрета — прежний размер (пропорция 2:3), но фото «приближено» внутри:
   масштаб с центровкой на лицо, overflow арки обрезает лишнее. */
#about .ts-arch { aspect-ratio: 2 / 3; }
#about .ts-arch img { object-position: center 50%; transform: translateX(-8%) scale(1.32); transform-origin: center 28%; }
/* Чуть крупнее шрифт абзацев био (заголовок/надзаголовок/девиз не трогаем) */
#about .wp-block-column > p:not(.ts-eyebrow):not(.ts-quote-line) { font-size: 1.15rem; }

/* Строка-девиз в тексте «обо мне» — лёгкий акцент */
.ts-quote-line {
	font-family: var(--font-display);
	font-size: 1.25rem;
	line-height: 1.45;
	color: var(--cocoa);
	border-inline-start: 3px solid var(--beige);
	padding-inline-start: 1rem;
	margin-block: 1.35rem;
}

/* ---------- Отзывы ---------- */
.ts-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.ts-review {
	background: var(--white);
	border-radius: var(--radius);
	padding: 1.5rem;
	box-shadow: var(--shadow);
}
.ts-review__text { font-size: 1.05rem; }
.ts-review__author { margin-top: 0.75rem; font-weight: 600; color: var(--cocoa); }

/* ---------- FAQ (core/details) ---------- */
.ts-faq details {
	background: var(--white);
	border: 1.5px solid var(--line);
	border-radius: 14px;
	margin-bottom: 0.85rem;
	overflow: hidden; /* чтобы шапка вопроса уважала скруглённые углы */
	transition: border-color 0.2s ease;
	/* iOS Safari: пока дочерний .ts-faq__content анимирует высоту (WAA), subtree
	   композитится и перестаёт клипаться по border-radius — фон углов (особенно
	   коричневая шапка сверху) на долю секунды «выезжает» прямоугольником, потом
	   слой снимается и скругление возвращается. Печём клип в собственный слой,
	   чтобы скругление держалось во время анимации. */
	transform: translateZ(0);
}
/* Раскрытый вопрос: тёмно-коричневая рамка вокруг блока */
.ts-faq details[open] {
	border-color: var(--cocoa);
}
.ts-faq summary {
	cursor: pointer;
	font-family: var(--font-display);
	font-size: 1.15rem;
	padding: 1rem 1.25rem;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	transition: background 0.2s ease, color 0.2s ease;
	/* iOS Safari по умолчанию рисует при тапе серую подсветку (-webkit-tap-highlight-color).
	   Она ПРЯМОУГОЛЬНАЯ, игнорирует border-radius и на ~100 мс заливает шапку серым
	   с квадратными верхними углами — это и есть «вспышка + уголки» на мобильном.
	   Гасим её: реакцию на нажатие даёт уже открытие (коричневая шапка). */
	-webkit-tap-highlight-color: transparent;
}
.ts-faq summary::-webkit-details-marker { display: none; }
/* Раскрытый вопрос: строка становится коричневой «шапкой» со светлым текстом */
.ts-faq details[open] summary {
	background: var(--cocoa);
	color: var(--cream);
}
/* Ответ — отступы. Фолбэк без JS (редактор): паддинг на прямом контенте. */
.ts-faq details > :not(summary) {
	margin: 0;
	padding: 1rem 1.25rem 1.25rem;
}
/* Анимируемая обёртка (main.js): БЕЗ паддинга — схлопывается в честный 0.
   Паддинг живёт на inner, который клипается через overflow. */
.ts-faq__content {
	overflow: hidden;
	padding: 0 !important;
}
.ts-faq__inner {
	padding: 1rem 1.25rem 1.25rem;
	/* размер как у текста таймлайна «התהליך» (.ts-tstep__body p) */
	font-size: 1.15rem;
	line-height: 1.6;
}
.ts-faq__inner > :first-child { margin-top: 0; }
.ts-faq__inner > :last-child { margin-bottom: 0; }

/* Значок «плюс» слева (в RTL — на левом краю). Рисуем линиями через background
   с position:center — идеальное центрирование, не зависит от шрифта. */
.ts-faq summary::after {
	content: "";
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	border: 1.5px solid var(--taupe);
	color: var(--taupe); /* цвет палочек = currentColor */
	background-color: transparent;
	background-image:
		linear-gradient(currentColor, currentColor),
		linear-gradient(currentColor, currentColor);
	background-size: 11px 2px, 2px 11px; /* горизонталь + вертикаль = плюс */
	background-position: center, center;
	background-repeat: no-repeat;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-size 0.2s ease;
}
/* При открытии — «минус» в светлом кружке на коричневой шапке (вертикаль схлопывается) */
.ts-faq details[open] summary::after {
	background-color: var(--cream);
	border-color: var(--cream);
	color: var(--cocoa);
	background-size: 11px 2px, 0 0;
}

/* ---------- Подвал ---------- */
.ts-footer { position: relative; color: var(--cream); padding-block-start: 3.4rem; overflow: hidden; }
/* Скруглённый верх — тем же приёмом, что низ hero: фон в ::before,
   ::after заливает уголки цветом секции НАД футером (на главной — sand,
   на внутренних страницах — крем фона страницы). */
.ts-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--graphite);
	border-start-start-radius: var(--edge-r);
	border-start-end-radius: var(--edge-r);
}
.ts-footer::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-start: 0;
	height: var(--edge-r);
	z-index: -2;
	background: var(--sand);
}
body:not(.home) .ts-footer::after { background: var(--cream); }
/* Огромный полупрозрачный вотермарк «Taisia» — заполняет пустоту тёмного поля.
   pointer-events:none, поверх него контент (у .ts-footer__inner z-index выше). */
.ts-footer__wm {
	position: absolute;
	z-index: 0;
	inset-inline-end: -1%;
	inset-block-end: -0.02em;
	pointer-events: none;
	user-select: none;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(6rem, 13vw, 12rem);
	line-height: 0.8;
	white-space: nowrap;
	color: rgba(246, 241, 234, 0.045);
}
.ts-footer__inner {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: space-between;
	gap: 2.5rem;
	padding-bottom: 0.85rem; /* полоса вплотную к самой длинной колонке (навигации) */
}
/* Колонки — по содержимому; space-between даёт равные расстояния между ними
   в пределах стандартного контейнера секций (.ts-container, 1200px). */
.ts-footer__col { flex: 0 0 auto; }
/* Крупные строки бренда (по утверждённому превью, вариант 1 без эмблемы) */
.ts-footer__name {
	display: block;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(2.4rem, 2rem + 1.5vw, 3.2rem);
	line-height: 1.1;
	color: var(--cream);
}
.ts-footer__brand p { max-width: 30ch; color: rgba(246,241,234,0.78); margin-block: 1rem 0; font-size: 1.2rem; line-height: 1.7; }
/* body.taisia h4 (глобальный цвет заголовков) специфичнее одиночного класса —
   заголовкам колонок нужен составной селектор */
.ts-footer .ts-footer__head {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 1.06rem;
	letter-spacing: 0.04em;
	color: var(--beige);
	margin: 0 0 1rem;
}
.ts-footer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.ts-footer__nav a {
	color: rgba(246,241,234,0.78);
	text-decoration: none;
	position: relative;
	padding-block: 0.15rem;
	transition: color 0.25s ease;
}
/* Растущее подчёркивание */
.ts-footer__nav a::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-end: -1px;
	height: 1px;
	width: 0;
	background: var(--blush);
	transition: width 0.3s ease;
}
.ts-footer__nav a:hover { color: var(--cream); }
.ts-footer__nav a:hover::after { width: 100%; }
.ts-footer__contact { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }
/* Цветные круглые кнопки соцсетей с фирменными логотипами */
.ts-footer__socials { display: flex; gap: 0.85rem; }
.ts-soc {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: 999px;
	color: #fff;
	box-shadow: 0 6px 16px -6px rgba(0,0,0,0.5);
	transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
/* Глиф всегда белый — перебиваем Astra a:hover/:focus (перекрашивал в синий) */
.ts-footer .ts-soc,
.ts-footer .ts-soc:hover,
.ts-footer .ts-soc:focus,
.ts-footer .ts-soc:focus-visible { color: #fff; }
.ts-soc:hover { transform: translateY(-3px); filter: brightness(1.08); box-shadow: 0 10px 22px -8px rgba(0,0,0,0.55); }
.ts-soc__ic { width: 26px; height: 26px; display: block; }
.ts-soc--wa { background: #25D366; }
.ts-soc--ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.ts-soc--tel { background: var(--cocoa); }
.ts-footer__phone { color: rgba(246,241,234,0.78); text-decoration: none; transition: color 0.25s ease; }
.ts-footer__phone:hover { color: var(--cream); }
.ts-footer__link { color: var(--beige); text-decoration: none; }
.ts-footer__bottom { border-block-start: 1px solid rgba(246,241,234,0.15); padding-block: 1.25rem; font-size: 0.85rem; color: rgba(246,241,234,0.6); }
.ts-footer__bottom-inner { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; }
.ts-footer__legal a { color: rgba(246,241,234,0.6); text-decoration: none; margin-inline-start: 1rem; }
.ts-footer__legal a:hover { color: var(--cream); }

/* ---------- Юр-страницы ---------- */
.ts-page { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.ts-page__title { margin-bottom: 1.5rem; }

/* ---------- Плавающий WhatsApp ---------- */
.ts-wa-float {
	position: fixed;
	z-index: 200;
	inset-block-end: 1.25rem;
	inset-inline-start: 1.25rem;
	width: 56px; height: 56px;
	border-radius: 999px;
	background: #25D366;
	color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	box-shadow: 0 10px 30px -8px rgba(37,211,102,0.7);
	transition: transform 0.2s ease;
}
.ts-wa-float:hover { transform: scale(1.06); }
.ts-wa-float__ic { width: 30px; height: 30px; }

/* ---------- Reveal-анимация ----------
   Скрытое стартовое состояние — только под маркером .ts-js (его ставит
   инлайн-скрипт в <head> на фронте): в редакторе Gutenberg main.js не
   выполняется, и без маркера секции остаются видимыми. */
.ts-js .ts-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.ts-js .ts-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.ts-reveal { opacity: 1; transform: none; transition: none; }
	.ts-btn:hover, .ts-wa-float:hover { transform: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 860px) {
	:root { --header-h: 70px; } /* на мобильном шапку не раздуваем */
	.ts-logo__mark { height: 46px; }
	.ts-logo__name { font-size: 1.5rem; }
	.ts-nav { display: none; }
	/* Кнопку — к бургеру (auto-маржин съедает свободное место со стороны лого; gap шапки даёт зазор) */
	.ts-header__cta { margin-inline-start: auto; }
	.ts-header__cta .ts-btn { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
	.ts-burger { display: block; }
	.ts-mobile-nav { display: block; }
	/* Футер на мобильном: всё по центру, навигация — в две строки */
	.ts-footer__inner { flex-direction: column; gap: 1.9rem; padding-bottom: 2.4rem; align-items: center; text-align: center; }
	.ts-footer__brand p { margin-inline: auto; }
	.ts-footer__nav ul {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.7rem 1.6rem;
		max-width: 300px;
		margin-inline: auto;
	}
	.ts-footer__contact { align-items: center; }
	.ts-footer__socials { justify-content: center; }
	.ts-footer__bottom-inner { flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; }
	.ts-footer__legal a { margin-inline: 0.5rem; }
	.ts-footer__wm { font-size: clamp(4.5rem, 22vw, 7rem); }
}
