/**
 * Фирменные стили обычных блоков редактора (inc/content-blocks.php). Работают на сайте и в редакторе.
 * Цвета — как у посадочных (css/landing.css), но заданы прямо здесь: в редакторе landing.css не подключён.
 */

/* ---- Таблица: «Фирменная таблица» и «Вопрос — ответ» ---- */
.wp-block-table.is-style-tc-table,
.wp-block-table.is-style-tc-faq {
	margin-top: 24px;
	margin-bottom: 26px;
	overflow-x: auto;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 39, 68, .04), 0 8px 24px rgba(15, 39, 68, .06);
	font-family: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.wp-block-table.is-style-tc-table table,
.wp-block-table.is-style-tc-faq table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 15.5px;
	line-height: 1.5;
	color: #1e293b;
}
.wp-block-table.is-style-tc-table th,
.wp-block-table.is-style-tc-table td,
.wp-block-table.is-style-tc-faq th,
.wp-block-table.is-style-tc-faq td {
	padding: 13px 18px;
	border: 0;
	border-top: 1px solid #e2e8f0;
	text-align: left;
	vertical-align: top;
}
.wp-block-table.is-style-tc-table thead,
.wp-block-table.is-style-tc-faq thead { border: 0; }
.wp-block-table.is-style-tc-table thead th,
.wp-block-table.is-style-tc-table thead td,
.wp-block-table.is-style-tc-faq thead th,
.wp-block-table.is-style-tc-faq thead td {
	border-top: 0;
	background: #f4f8fb;
	font-size: 13.5px;
	font-weight: 600;
	color: #5b6b80;
}
.wp-block-table.is-style-tc-table tbody tr:hover td,
.wp-block-table.is-style-tc-faq tbody tr:hover td { background: #fafcfe; }
.wp-block-table.is-style-tc-table td:first-child { font-weight: 600; color: #0f2744; }
.wp-block-table.is-style-tc-faq td:first-child { width: 36%; font-weight: 600; color: #0f2744; }
.wp-block-table.is-style-tc-table .wp-element-caption,
.wp-block-table.is-style-tc-faq .wp-element-caption {
	position: static; /* css/blog.css растягивает figcaption поверх картинки — у таблиц подпись обычная */
	width: auto;
	height: auto;
	margin: 0;
	padding: 13px 18px;
	border-top: 1px solid #e2e8f0;
	background: #f8fafc;
	font-size: 13.5px;
	line-height: 1.5;
	color: #5b6b80;
	text-align: left;
}
.wp-block-table.is-style-tc-table a,
.wp-block-table.is-style-tc-faq a { color: #0284c7; }

/* ---- Цветные метки в тексте ---- */
.tc-badge-green, .tc-badge-yellow, .tc-badge-orange, .tc-badge-red {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 3px 11px 3px 9px;
	border-radius: 999px;
	font-size: .88em;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
}
.tc-badge-green::before, .tc-badge-yellow::before, .tc-badge-orange::before, .tc-badge-red::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}
.tc-badge-green { background: #e7f6ec; color: #166534; }
.tc-badge-green::before { background: #22c55e; }
.tc-badge-yellow { background: #fef6dc; color: #854d0e; }
.tc-badge-yellow::before { background: #eab308; }
.tc-badge-orange { background: #ffedd5; color: #9a3412; }
.tc-badge-orange::before { background: #f97316; }
.tc-badge-red { background: #fde8e8; color: #991b1b; }
.tc-badge-red::before { background: #ef4444; }

/* ---- Абзац: «Важно» и «Подсказка» ---- */
p.is-style-tc-important,
p.is-style-tc-info {
	position: relative;
	margin-top: 22px;
	margin-bottom: 24px;
	padding: 17px 20px 17px 56px;
	border-radius: 18px;
	font-size: 15.5px;
	line-height: 1.6;
	color: #1e293b;
}
/* на сайте плашка во всю ширину статьи (у обычных абзацев там ограничение 72ch); в редакторе — по колонке текста */
.tch-article p.is-style-tc-important, .tch-article p.is-style-tc-info, .entry-content p.is-style-tc-important, .entry-content p.is-style-tc-info { max-width: none; }
p.is-style-tc-important { background: #fff8e6; border: 1px solid #f4dfa6; }
p.is-style-tc-info { background: #eef6fc; border: 1px solid #cfe6f6; }
p.is-style-tc-important::before,
p.is-style-tc-info::before {
	content: "";
	position: absolute;
	left: 20px;
	top: 18px;
	width: 24px;
	height: 24px;
	-webkit-mask: var(--tc-icon) center / contain no-repeat;
	mask: var(--tc-icon) center / contain no-repeat;
}
p.is-style-tc-important::before { --tc-icon: url(../img/landing-icons/alert-triangle.svg); background: #c48a00; }
p.is-style-tc-info::before { --tc-icon: url(../img/landing-icons/info-circle.svg); background: #0284c7; }
p.is-style-tc-important strong, p.is-style-tc-info strong { color: #0f2744; }

/* ---- Список: «Шаги» ---- */
ol.is-style-tc-steps {
	margin-top: 22px;
	margin-bottom: 26px;
	padding: 0;
	list-style: none;
	counter-reset: tc-step;
}
ol.is-style-tc-steps > li {
	position: relative;
	margin: 0;
	padding: 0 0 22px 58px;
	counter-increment: tc-step;
	line-height: 1.6;
}
ol.is-style-tc-steps > li::before {
	content: counter(tc-step);
	position: absolute;
	left: 0;
	top: -2px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #0f2744;
	color: #fff;
	font-family: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	font-weight: 700;
	box-shadow: 0 0 0 5px #e6f3fb;
}
ol.is-style-tc-steps > li::after {
	content: "";
	position: absolute;
	left: 18px;
	top: 40px;
	bottom: 2px;
	width: 2px;
	background: #dbe7f1;
}
ol.is-style-tc-steps > li:last-child { padding-bottom: 0; }
ol.is-style-tc-steps > li:last-child::after { display: none; }
ol.is-style-tc-steps > li > strong:first-child { display: block; margin-bottom: 2px; font-size: 17px; color: #0f2744; }

/* ---- Список: «Галочки» ---- */
ul.is-style-tc-checks { margin-top: 18px; margin-bottom: 24px; padding: 0; list-style: none; }
ul.wp-block-list.is-style-tc-checks > li { position: relative; margin: 0 0 11px; padding-left: 34px; line-height: 1.55; }
ul.wp-block-list.is-style-tc-checks > li::before { /* сильнее точки-маркера статьи (.tch-article ul li::before) */
	content: "";
	position: absolute;
	left: 0;
	top: .1em;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #e6f3fb;
	box-shadow: none;
	transform: none;
}
ul.wp-block-list.is-style-tc-checks > li::after {
	content: "";
	position: absolute;
	left: 4px;
	top: calc(.1em + 4px);
	width: 14px;
	height: 14px;
	background: #0284c7;
	-webkit-mask: url(../img/landing-icons/check.svg) center / contain no-repeat;
	mask: url(../img/landing-icons/check.svg) center / contain no-repeat;
}

/* ---- Группа: «Резюме от компании» ---- */
.wp-block-group.is-style-tc-summary {
	position: relative;
	overflow: hidden;
	margin-top: 48px;
	margin-bottom: 28px;
	padding: 36px 40px;
	border-radius: 24px;
	background: linear-gradient(135deg, #0f2744 0%, #163860 100%);
	color: #cfe0ef;
	box-shadow: 0 14px 34px rgba(15, 39, 68, .2);
	font-size: 16.5px;
	line-height: 1.7;
}
.wp-block-group.is-style-tc-summary::after {
	content: "";
	position: absolute;
	right: -30px;
	bottom: -30px;
	width: 200px;
	height: 200px;
	background: rgba(125, 211, 252, .1);
	-webkit-mask: url(../img/landing-icons/yacht-steering-wheel.svg) center / contain no-repeat;
	mask: url(../img/landing-icons/yacht-steering-wheel.svg) center / contain no-repeat;
	pointer-events: none;
}
.wp-block-group.is-style-tc-summary > * { position: relative; z-index: 1; }
.wp-block-group.is-style-tc-summary h2,
.wp-block-group.is-style-tc-summary h3 { margin-top: 0 !important; color: #fff !important; }
.wp-block-group.is-style-tc-summary p { max-width: 68ch; color: #cfe0ef; }
.wp-block-group.is-style-tc-summary p:last-child { margin-bottom: 0; }
.wp-block-group.is-style-tc-summary strong { color: #fff !important; }
.wp-block-group.is-style-tc-summary a { color: #7dd3fc !important; }

/* ---- Группа: «Карточка» ---- */
.wp-block-group.is-style-tc-card {
	height: 100%;
	padding: 22px 22px 20px;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 39, 68, .04), 0 8px 24px rgba(15, 39, 68, .06);
	font-size: 15.5px;
	line-height: 1.55;
}
.wp-block-group.is-style-tc-card h3,
.wp-block-group.is-style-tc-card h4 { margin: 0 0 8px !important; font-size: 18px !important; line-height: 1.3; color: #0f2744; }
.wp-block-group.is-style-tc-card p:last-child { margin-bottom: 0; }
.wp-block-group.is-style-tc-card[class*="tc-icon-"]::before {
	content: "";
	display: block;
	width: 30px;
	height: 30px;
	margin-bottom: 12px;
	background: #0284c7;
	-webkit-mask: var(--tc-icon) center / contain no-repeat;
	mask: var(--tc-icon) center / contain no-repeat;
}
.wp-block-columns.tc-cards { gap: 18px; margin-top: 22px; margin-bottom: 26px; }

/* Иконки карточек: в блоке «Группа» → Дополнительно → «Дополнительные CSS-классы»: tc-icon-calendar и т. п. */
.tc-icon-alert-triangle { --tc-icon: url(../img/landing-icons/alert-triangle.svg); }
.tc-icon-anchor { --tc-icon: url(../img/landing-icons/anchor.svg); }
.tc-icon-arrow-down { --tc-icon: url(../img/landing-icons/arrow-down.svg); }
.tc-icon-arrow-right { --tc-icon: url(../img/landing-icons/arrow-right.svg); }
.tc-icon-beach { --tc-icon: url(../img/landing-icons/beach.svg); }
.tc-icon-bed { --tc-icon: url(../img/landing-icons/bed.svg); }
.tc-icon-bolt { --tc-icon: url(../img/landing-icons/bolt.svg); }
.tc-icon-brand-telegram { --tc-icon: url(../img/landing-icons/brand-telegram.svg); }
.tc-icon-brand-whatsapp { --tc-icon: url(../img/landing-icons/brand-whatsapp.svg); }
.tc-icon-building-store { --tc-icon: url(../img/landing-icons/building-store.svg); }
.tc-icon-bulb { --tc-icon: url(../img/landing-icons/bulb.svg); }
.tc-icon-calendar { --tc-icon: url(../img/landing-icons/calendar.svg); }
.tc-icon-calendar-repeat { --tc-icon: url(../img/landing-icons/calendar-repeat.svg); }
.tc-icon-calendar-time { --tc-icon: url(../img/landing-icons/calendar-time.svg); }
.tc-icon-calendar-x { --tc-icon: url(../img/landing-icons/calendar-x.svg); }
.tc-icon-camera { --tc-icon: url(../img/landing-icons/camera.svg); }
.tc-icon-check { --tc-icon: url(../img/landing-icons/check.svg); }
.tc-icon-chevron-down { --tc-icon: url(../img/landing-icons/chevron-down.svg); }
.tc-icon-clock { --tc-icon: url(../img/landing-icons/clock.svg); }
.tc-icon-clock-hour-4 { --tc-icon: url(../img/landing-icons/clock-hour-4.svg); }
.tc-icon-cloud-rain { --tc-icon: url(../img/landing-icons/cloud-rain.svg); }
.tc-icon-cloud-storm { --tc-icon: url(../img/landing-icons/cloud-storm.svg); }
.tc-icon-compass { --tc-icon: url(../img/landing-icons/compass.svg); }
.tc-icon-credit-card { --tc-icon: url(../img/landing-icons/credit-card.svg); }
.tc-icon-crown { --tc-icon: url(../img/landing-icons/crown.svg); }
.tc-icon-currency-baht { --tc-icon: url(../img/landing-icons/currency-baht.svg); }
.tc-icon-diamond { --tc-icon: url(../img/landing-icons/diamond.svg); }
.tc-icon-fish { --tc-icon: url(../img/landing-icons/fish.svg); }
.tc-icon-fish-hook { --tc-icon: url(../img/landing-icons/fish-hook.svg); }
.tc-icon-glass-champagne { --tc-icon: url(../img/landing-icons/glass-champagne.svg); }
.tc-icon-heart { --tc-icon: url(../img/landing-icons/heart.svg); }
.tc-icon-heart-handshake { --tc-icon: url(../img/landing-icons/heart-handshake.svg); }
.tc-icon-help-circle { --tc-icon: url(../img/landing-icons/help-circle.svg); }
.tc-icon-hourglass-high { --tc-icon: url(../img/landing-icons/hourglass-high.svg); }
.tc-icon-info-circle { --tc-icon: url(../img/landing-icons/info-circle.svg); }
.tc-icon-lifebuoy { --tc-icon: url(../img/landing-icons/lifebuoy.svg); }
.tc-icon-list-check { --tc-icon: url(../img/landing-icons/list-check.svg); }
.tc-icon-list-details { --tc-icon: url(../img/landing-icons/list-details.svg); }
.tc-icon-mail { --tc-icon: url(../img/landing-icons/mail.svg); }
.tc-icon-map-2 { --tc-icon: url(../img/landing-icons/map-2.svg); }
.tc-icon-map-pin { --tc-icon: url(../img/landing-icons/map-pin.svg); }
.tc-icon-message-circle { --tc-icon: url(../img/landing-icons/message-circle.svg); }
.tc-icon-moon { --tc-icon: url(../img/landing-icons/moon.svg); }
.tc-icon-phone { --tc-icon: url(../img/landing-icons/phone.svg); }
.tc-icon-plane-arrival { --tc-icon: url(../img/landing-icons/plane-arrival.svg); }
.tc-icon-receipt { --tc-icon: url(../img/landing-icons/receipt.svg); }
.tc-icon-ripple { --tc-icon: url(../img/landing-icons/ripple.svg); }
.tc-icon-route { --tc-icon: url(../img/landing-icons/route.svg); }
.tc-icon-route-2 { --tc-icon: url(../img/landing-icons/route-2.svg); }
.tc-icon-sailboat { --tc-icon: url(../img/landing-icons/sailboat.svg); }
.tc-icon-scuba-mask { --tc-icon: url(../img/landing-icons/scuba-mask.svg); }
.tc-icon-shield-check { --tc-icon: url(../img/landing-icons/shield-check.svg); }
.tc-icon-ship { --tc-icon: url(../img/landing-icons/ship.svg); }
.tc-icon-sparkles { --tc-icon: url(../img/landing-icons/sparkles.svg); }
.tc-icon-speedboat { --tc-icon: url(../img/landing-icons/speedboat.svg); }
.tc-icon-star { --tc-icon: url(../img/landing-icons/star.svg); }
.tc-icon-steering-wheel { --tc-icon: url(../img/landing-icons/steering-wheel.svg); }
.tc-icon-sun { --tc-icon: url(../img/landing-icons/sun.svg); }
.tc-icon-tools-kitchen-2 { --tc-icon: url(../img/landing-icons/tools-kitchen-2.svg); }
.tc-icon-trees { --tc-icon: url(../img/landing-icons/trees.svg); }
.tc-icon-umbrella { --tc-icon: url(../img/landing-icons/umbrella.svg); }
.tc-icon-users { --tc-icon: url(../img/landing-icons/users.svg); }
.tc-icon-users-group { --tc-icon: url(../img/landing-icons/users-group.svg); }
.tc-icon-wallet { --tc-icon: url(../img/landing-icons/wallet.svg); }
.tc-icon-wind { --tc-icon: url(../img/landing-icons/wind.svg); }
.tc-icon-world { --tc-icon: url(../img/landing-icons/world.svg); }
.tc-icon-x { --tc-icon: url(../img/landing-icons/x.svg); }
.tc-icon-yacht-steering-wheel { --tc-icon: url(../img/landing-icons/yacht-steering-wheel.svg); }

/* ---- Модуль связи с менеджером в тексте: [tc_manager] ---- */
.tci-manager {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 18px 28px;
	align-items: center;
	margin: 30px 0;
	padding: 26px 28px;
	border-radius: 22px;
	background: #e6f3fb;
	border: 1px solid #cfe6f6;
	font-family: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.tci-manager__title { margin: 0 0 6px !important; font-size: 20px !important; line-height: 1.3; font-weight: 700; color: #0f2744; }
.tci-manager__text { margin: 0 !important; font-size: 15.5px; line-height: 1.55; color: #33475e; }
.tci-manager__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.tci-manager__buttons .tcl-btn { text-decoration: none; }
.tci-manager .tcl-btn--primary .tcl-icon { color: #25d366; }
.tci-manager .tcl-btn--ghost { background: #fff; }
.tci-manager .tcl-btn--tg .tcl-icon { color: #229ed9; }

@media (max-width: 600px) {
	.wp-block-table.is-style-tc-faq table, .wp-block-table.is-style-tc-faq tbody,
	.wp-block-table.is-style-tc-faq tr, .wp-block-table.is-style-tc-faq td { display: block; width: auto !important; }
	.wp-block-table.is-style-tc-faq thead { display: none; }
	.wp-block-table.is-style-tc-faq tr { border-top: 1px solid #e2e8f0; padding: 12px 16px; }
	.wp-block-table.is-style-tc-faq tbody tr:first-child { border-top: 0; }
	.wp-block-table.is-style-tc-faq td { padding: 0; border: 0; }
	.wp-block-table.is-style-tc-faq td:first-child { margin-bottom: 4px; }
	.wp-block-table.is-style-tc-faq tbody tr:hover td { background: none; }
	/* на телефоне строка таблицы — карточка: первая ячейка заголовком, у остальных подпись из шапки (data-label ставит inc/content-blocks.php) */
	.wp-block-table.is-style-tc-table table, .wp-block-table.is-style-tc-table tbody,
	.wp-block-table.is-style-tc-table tr, .wp-block-table.is-style-tc-table td { display: block; width: auto !important; }
	.wp-block-table.is-style-tc-table thead { display: none; }
	.wp-block-table.is-style-tc-table tr { border-top: 1px solid #e2e8f0; padding: 13px 16px; }
	.wp-block-table.is-style-tc-table tbody tr:first-child { border-top: 0; }
	.wp-block-table.is-style-tc-table td { padding: 0; border: 0; font-size: 15px; }
	.wp-block-table.is-style-tc-table td + td { margin-top: 6px; }
	.wp-block-table.is-style-tc-table td[data-label]:not(:first-child)::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 2px;
		font-size: 12.5px;
		font-weight: 500;
		color: #5b6b80;
	}
	.wp-block-table.is-style-tc-table tbody tr:hover td { background: none; }
	p.is-style-tc-important, p.is-style-tc-info { padding: 15px 16px 15px 50px; font-size: 15px; }
	p.is-style-tc-important::before, p.is-style-tc-info::before { left: 16px; top: 16px; }
	.wp-block-group.is-style-tc-summary { padding: 26px 22px; border-radius: 20px; }
	.tci-manager { grid-template-columns: 1fr; padding: 22px 20px; }
	.tci-manager__buttons .tcl-btn { flex: 1; justify-content: center; }
}
