:root {
	/* Dark palette (существующая) */
	--tw-coal: var(--wp--preset--color--coal, #0b0c0e);
	--tw-coal2: #101216;
	--tw-carbon: var(--wp--preset--color--carbon, #1a1d22);

	/* Light palette (новое) */
	--tw-paper: var(--wp--preset--color--paper, #f4f4f0);
	--tw-cream: #f7f5f0;
	--tw-white: #ffffff;
	--tw-ink: #17181b;
	--tw-ink-muted: rgba(23, 24, 27, 0.6);
	--tw-line-light: rgba(23, 24, 27, 0.1);

	/* Accents */
	--tw-terra: var(--wp--preset--color--terra, #d55a2b);
	--tw-terra-hover: #b94a20;
	--tw-terra-deep: #7a2f14;

	/* Layout */
	--tw-header-height: 72px;
	--tw-content-size: 1200px;
	--tw-gutter: clamp(1rem, 4vw, 2.5rem);

	/* Spacing presets */
	--wp--preset--spacing--xs: .5rem;
	--wp--preset--spacing--sm: 1rem;
	--wp--preset--spacing--md: 1.5rem;
	--wp--preset--spacing--lg: 2.5rem;
	--wp--preset--spacing--xl: 4rem;
	--wp--preset--spacing--2xl: 6rem;
}

.tw-skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100;
	padding: 8px 12px;
	background: var(--tw-terra);
	color: #fff;
}

/* Sticky header */
.tw-site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background: rgba(11, 12, 14, 0.95);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body {
	padding-top: var(--tw-header-height);
	margin: 0;
	background: var(--tw-coal);
	color: var(--tw-paper);
}

.tw-main {
	min-height: 40vh;
	overflow-x: clip;
}

.tw-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 16px 24px;
	min-height: var(--tw-header-height);
	box-sizing: border-box;
}

.tw-site-header__logo {
	display: flex;
	flex-shrink: 0;
}

/* Main nav */
.tw-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tw-menu__item {
	position: relative;
}

.tw-menu__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 10px 14px;
	color: var(--tw-paper);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	border-radius: 6px;
	transition: background 0.15s, color 0.15s;
}

.tw-menu__link:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.tw-menu__caret {
	font-size: 10px;
	opacity: 0.7;
}

/* Dropdown */
.tw-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 280px;
	background: var(--tw-coal2);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	padding: 8px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
	z-index: 60;
}

.tw-menu__item--has-children:hover > .tw-dropdown,
.tw-menu__item--has-children:focus-within > .tw-dropdown,
.tw-menu__item--has-children.is-open > .tw-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.tw-dropdown__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tw-dropdown__link {
	display: block;
	padding: 10px 12px;
	color: var(--tw-paper);
	text-decoration: none;
	font-size: 14px;
	border-radius: 6px;
}

.tw-dropdown__link:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

/* Header actions */
.tw-site-header__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

.tw-site-header__phone {
	color: var(--tw-paper);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
}

.tw-site-header__phone:hover {
	color: #fff;
}

.tw-site-header__cta {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	background: var(--tw-terra);
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	transition: background 0.15s;
	white-space: nowrap;
}

.tw-site-header__cta:hover {
	background: var(--tw-terra-hover);
	color: #fff;
}

/* Burger */
.tw-burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: transparent;
	border: 0;
	padding: 8px;
	cursor: pointer;
}

.tw-burger span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--tw-paper);
	transition: transform 0.2s, opacity 0.2s;
}

body.tw-menu-open .tw-burger span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

body.tw-menu-open .tw-burger span:nth-child(2) {
	opacity: 0;
}

body.tw-menu-open .tw-burger span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Mobile panel */
.tw-mobile-panel {
	position: fixed;
	inset: var(--tw-header-height) 0 0 0;
	background: var(--tw-coal2);
	padding: 24px;
	overflow-y: auto;
	z-index: 40;
	transform: translateX(100%);
	transition: transform 0.25s ease-out;
	visibility: hidden;
}

body.tw-menu-open .tw-mobile-panel {
	transform: translateX(0);
	visibility: visible;
}

.tw-mobile-menu {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tw-mobile-menu > li > a {
	display: block;
	padding: 12px 8px;
	color: var(--tw-paper);
	text-decoration: none;
	font-size: 18px;
	font-weight: 500;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tw-mobile-menu .sub-menu,
.tw-mobile-menu .tw-dropdown {
	position: static;
	opacity: 1;
	visibility: visible;
	transform: none;
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 4px 0 8px 12px;
	min-width: 0;
}

.tw-mobile-menu .sub-menu {
	list-style: none;
	margin: 0;
}

.tw-mobile-menu .sub-menu a,
.tw-mobile-menu .tw-dropdown__link {
	font-size: 15px;
	padding: 8px 12px;
	color: var(--tw-paper);
	text-decoration: none;
	display: block;
}

.tw-mobile-panel__contacts {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tw-mobile-panel__contacts a:first-child {
	font-size: 20px;
	font-weight: 600;
	color: var(--tw-paper);
	text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
	.tw-site-header__nav,
	.tw-site-header__phone {
		display: none;
	}

	.tw-burger {
		display: flex;
	}
}

/* Footer */
.tw-site-footer {
	background: var(--tw-coal2);
	color: var(--tw-paper);
	padding: 64px 0 24px;
	margin-top: 80px;
}

.tw-site-footer__inner {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
	gap: 40px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 24px 40px;
}

.tw-site-footer__col--brand {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.tw-site-footer__about {
	font-size: 14px;
	line-height: 1.6;
	opacity: 0.8;
	margin: 0;
}

.tw-site-footer__contacts {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tw-site-footer__contacts a {
	color: var(--tw-paper);
	text-decoration: none;
	font-weight: 500;
}

.tw-site-footer__phone {
	font-size: 18px;
	font-weight: 600;
}

.tw-site-footer__email {
	font-size: 14px;
	opacity: 0.8;
}

.tw-site-footer__title {
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0 0 20px;
	color: var(--tw-paper);
	opacity: 0.7;
	font-weight: 600;
}

.tw-site-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tw-site-footer__menu a {
	color: var(--tw-paper);
	text-decoration: none;
	font-size: 14px;
	opacity: 0.85;
	transition: opacity 0.15s;
}

.tw-site-footer__menu a:hover {
	opacity: 1;
}

.tw-site-footer__legal {
	margin-top: 32px;
	font-size: 13px;
	opacity: 0.7;
	line-height: 1.6;
}

.tw-site-footer__legal-title {
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0 0 12px;
	opacity: 1;
	font-weight: 600;
}

.tw-site-footer__legal-list {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.tw-site-footer__legal-list li {
	padding: 2px 0;
}

.tw-site-footer__legal p {
	margin: 8px 0 0;
}

.tw-site-footer__bottom {
	max-width: 1440px;
	margin: 0 auto;
	padding: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	font-size: 13px;
	opacity: 0.7;
}

.tw-site-footer__legal-links {
	display: flex;
	gap: 24px;
}

.tw-site-footer__legal-links a {
	color: var(--tw-paper);
	text-decoration: none;
}

.tw-site-footer__legal-links a:hover {
	text-decoration: underline;
}

@media (max-width: 900px) {
	.tw-site-footer__inner {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.tw-site-footer__inner {
		grid-template-columns: 1fr;
	}

	.tw-site-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ============================================================
   Layout — контейнеры для body между header/footer
   Классический шаблон не даёт wp-site-blocks/has-global-padding,
   поэтому оборачиваем контент вручную.
   ============================================================ */

.tw-main {
	min-height: 40vh;
	overflow-x: clip;
}

/* Article-обёртка страницы — фон и вертикальные отступы,
   ширина остаётся 100% (нужна full-bleed для секций с фоном) */
.tw-content,
.tw-entry,
.tw-entry__content {
	width: 100%;
}

/* Full-bleed секции с фоном занимают всю ширину,
   а внутренний .tw-section__body центрируется по content-size */
.tw-entry__content > .wp-block-tw-section,
.tw-entry__content > .tw-section {
	width: 100%;
	padding-left: var(--tw-gutter);
	padding-right: var(--tw-gutter);
}

.tw-section__body {
	max-width: var(--tw-content-size);
	margin-left: auto;
	margin-right: auto;
}

/* Hero — full-bleed фон, контент по content-size */
.tw-entry__content > .wp-block-tw-hero,
.tw-entry__content > .tw-hero {
	width: 100%;
	padding-left: var(--tw-gutter);
	padding-right: var(--tw-gutter);
}

.tw-hero__content {
	width: 100%;
	max-width: var(--tw-content-size);
	margin-left: auto;
	margin-right: auto;
}

/* Блоки на верхнем уровне entry__content, у которых нет
   своего full-bleed фона (stat-row, cta-inline, card-grid,
   spec-table, timeline, steps, faq, lead-form) —
   центрируем по content-size с горизонтальным gutter */
.tw-entry__content > .wp-block-tw-stat-row,
.tw-entry__content > .tw-stat-row,
.tw-entry__content > .wp-block-tw-cta-inline,
.tw-entry__content > .tw-cta-inline,
.tw-entry__content > .wp-block-tw-card-grid,
.tw-entry__content > .tw-card-grid,
.tw-entry__content > .wp-block-tw-spec-table,
.tw-entry__content > .tw-spec-table,
.tw-entry__content > .wp-block-tw-timeline,
.tw-entry__content > .tw-timeline,
.tw-entry__content > .wp-block-tw-steps,
.tw-entry__content > .tw-steps,
.tw-entry__content > .wp-block-tw-faq,
.tw-entry__content > .tw-faq,
.tw-entry__content > .wp-block-tw-lead-form,
.tw-entry__content > .tw-lead-form,
.tw-entry__content > .wp-block-group,
.tw-entry__content > .wp-block-heading,
.tw-entry__content > .wp-block-paragraph,
.tw-entry__content > h1,
.tw-entry__content > h2,
.tw-entry__content > h3,
.tw-entry__content > p,
.tw-entry__content > ul,
.tw-entry__content > ol {
	max-width: var(--tw-content-size);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--tw-gutter);
	padding-right: var(--tw-gutter);
	box-sizing: border-box;
}

/* Вертикальные интервалы между блоками верхнего уровня.
   Не трогаем tw-section (он сам управляет своими отступами),
   у остальных даём внешний margin, если WP-стили не выставили. */
.tw-entry__content > * + * {
	margin-top: var(--wp--preset--spacing--lg, 2.5rem);
}

/* Сбрасываем верхний margin у секций — они сами имеют padding
   и стыкуются встык (как на tw.efef.ru) */
.tw-entry__content > .wp-block-tw-section + .wp-block-tw-section,
.tw-entry__content > .tw-section + .tw-section,
.tw-entry__content > .wp-block-tw-hero + * {
	margin-top: 0;
}

/* Мобилка: уменьшаем вертикальный padding секций */
@media (max-width: 782px) {
	.tw-entry__content > .wp-block-tw-section,
	.tw-entry__content > .tw-section,
	.tw-entry__content > .wp-block-tw-hero,
	.tw-entry__content > .tw-hero {
		padding-top: var(--wp--preset--spacing--lg, 2.5rem);
		padding-bottom: var(--wp--preset--spacing--lg, 2.5rem);
	}
}

/* Убираем горизонтальный overflow на body */
html, body {
	overflow-x: hidden;
}

/* ============================================================
   Section themes — переопределение цвета фона и текста
   ============================================================ */

.tw-section--bg-cream {
	background: var(--tw-cream);
	color: var(--tw-ink);
}

.tw-section--bg-white {
	background: var(--tw-white);
	color: var(--tw-ink);
}

.tw-section--bg-coal,
.tw-section--coal {
	background: var(--tw-coal);
	color: var(--tw-paper);
}

.tw-section--bg-coal2 {
	background: var(--tw-coal2);
	color: var(--tw-paper);
}

.tw-section--bg-carbon,
.tw-section--carbon {
	background: var(--tw-carbon);
	color: var(--tw-paper);
}

.tw-section--bg-paper,
.tw-section--paper {
	background: var(--tw-paper);
	color: var(--tw-ink);
}

.tw-section--bg-cream .tw-section__title,
.tw-section--bg-white .tw-section__title,
.tw-section--bg-paper .tw-section__title,
.tw-section--paper .tw-section__title {
	color: var(--tw-ink);
	font-weight: 800;
}

.tw-section--bg-coal .tw-section__title,
.tw-section--bg-coal2 .tw-section__title,
.tw-section--bg-carbon .tw-section__title,
.tw-section--coal .tw-section__title,
.tw-section--carbon .tw-section__title {
	color: var(--tw-paper);
	font-weight: 700;
}

.tw-section__title .tw-accent,
.tw-hero__title .tw-accent {
	color: var(--tw-terra);
}

.tw-section--bg-cream .tw-section__title .tw-accent,
.tw-section--bg-white .tw-section__title .tw-accent,
.tw-section--bg-paper .tw-section__title .tw-accent {
	color: var(--tw-terra-deep);
}

.tw-section--bg-cream .tw-section__eyebrow,
.tw-section--bg-white .tw-section__eyebrow,
.tw-section--bg-paper .tw-section__eyebrow {
	color: var(--tw-ink-muted);
}

.tw-section--bg-cream .tw-section__number,
.tw-section--bg-white .tw-section__number,
.tw-section--bg-paper .tw-section__number {
	color: var(--tw-terra);
}

.tw-section--bg-cream .tw-section__header,
.tw-section--bg-white .tw-section__header,
.tw-section--bg-paper .tw-section__header {
	border-bottom-color: var(--tw-line-light);
}

.tw-card-grid--theme-light > .wp-block-group,
.tw-card-grid--theme-light > .tw-card {
	background: var(--tw-white);
	border: 1px solid var(--tw-line-light);
	border-radius: 8px;
	color: var(--tw-ink);
}

.tw-card-grid--theme-light .tw-card__more {
	color: var(--tw-terra-deep);
}

.tw-card-grid--theme-dark > .wp-block-group,
.tw-card-grid--theme-dark > .tw-card {
	background: var(--tw-carbon);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	color: var(--tw-paper);
}

.tw-card-grid--theme-dark .tw-card__more {
	color: var(--tw-terra);
}

.tw-card {
	position: relative;
}

.tw-card__number {
	position: absolute;
	top: 1rem;
	right: 1rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	opacity: 0.5;
}

.tw-card__more {
	display: inline-block;
	margin-top: 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
}

.tw-card__more::after {
	content: " →";
}

.tw-hero {
	position: relative;
	overflow: hidden;
}

.tw-hero__bg {
	position: absolute;
	inset: 0;
	object-fit: cover;
	width: 100%;
	height: 100%;
	opacity: 0.38;
	z-index: 0;
}

.tw-hero__content {
	position: relative;
	z-index: 2;
}

.tw-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0 0 var(--wp--preset--spacing--md);
}

.tw-hero__cta--secondary {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: var(--tw-paper);
}

.tw-hero__cta--secondary:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: var(--tw-terra);
	color: var(--tw-terra);
}

.tw-hero__bullets {
	color: var(--tw-terra);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-top: var(--wp--preset--spacing--md);
}

.tw-hero__bullets span + span::before {
	content: " · ";
	margin: 0 0.5em;
	opacity: 0.5;
}

.tw-split {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--xl);
	align-items: start;
}

@media (min-width: 900px) {
	.tw-split {
		grid-template-columns: 1fr 1fr;
	}
}

.tw-split__panel {
	background: var(--tw-white);
	border: 1px solid var(--tw-line-light);
	border-radius: 8px;
	padding: var(--wp--preset--spacing--lg);
}

.tw-section--bg-coal .tw-split__panel,
.tw-section--bg-coal2 .tw-split__panel,
.tw-section--bg-carbon .tw-split__panel,
.tw-section--coal .tw-split__panel,
.tw-section--carbon .tw-split__panel {
	background: var(--tw-carbon);
	border-color: rgba(255, 255, 255, 0.08);
	color: var(--tw-paper);
}

.tw-split__cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: var(--wp--preset--spacing--md);
}

.tw-timeline--layout-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--md);
	border-left: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 900px) {
	.tw-timeline--layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 500px) {
	.tw-timeline--layout-grid {
		grid-template-columns: 1fr;
	}
}

.tw-timeline--layout-grid .tw-timeline__item {
	border: 1px solid var(--tw-line-light);
	border-radius: 8px;
	padding: var(--wp--preset--spacing--md);
	position: relative;
}

.tw-timeline--layout-grid .tw-timeline__item::before {
	display: none;
}

.tw-section--bg-coal .tw-timeline--layout-grid .tw-timeline__item,
.tw-section--bg-coal2 .tw-timeline--layout-grid .tw-timeline__item,
.tw-section--coal .tw-timeline--layout-grid .tw-timeline__item {
	border-color: rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.02);
}

.tw-timeline__year {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--tw-terra);
	margin-bottom: 0.5rem;
}

.tw-steps--layout-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--md);
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 900px) {
	.tw-steps--layout-grid {
		grid-template-columns: 1fr;
	}
}

.tw-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.85rem 1.5rem;
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.tw-btn--primary {
	background: var(--tw-terra);
	color: var(--tw-white);
}

.tw-btn--primary:hover {
	background: var(--tw-terra-hover);
	color: var(--tw-white);
}

.tw-btn--outline {
	background: transparent;
	border-color: var(--tw-terra);
	color: var(--tw-terra);
}

.tw-btn--outline:hover {
	background: var(--tw-terra);
	color: var(--tw-white);
}

.tw-section--bg-coal .tw-btn--outline,
.tw-section--bg-coal2 .tw-btn--outline,
.tw-section--bg-carbon .tw-btn--outline,
.tw-section--coal .tw-btn--outline,
.tw-section--carbon .tw-btn--outline {
	border-color: rgba(255, 255, 255, 0.25);
	color: var(--tw-paper);
}

.tw-section--bg-coal .tw-btn--outline:hover,
.tw-section--coal .tw-btn--outline:hover {
	border-color: var(--tw-terra);
	color: var(--tw-terra);
	background: transparent;
}

.tw-site-footer__tagline {
	max-width: var(--tw-content-size);
	margin: 0 auto;
	padding: var(--wp--preset--spacing--md) var(--tw-gutter) 0;
	font-size: 0.875rem;
	line-height: 1.6;
	opacity: 0.7;
	font-style: italic;
}


