/*
Theme Name: Apagard
Description: Тема apagard.md — перенос с Tilda 1:1. RO по умолчанию, RU — дочерние страницы /ru/.
Author: Hryhorii Semenov
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: apagard
*/

:root {
	--tl-gold: #e4cd8a;
	--tl-gold-light: #fae6aa;
	--tl-dark: #1f1e1e;
	--tl-graphite: #545353;
	--tl-footer: #474a4a;
	--tl-header: rgba(106, 115, 115, .7);
	--tl-grey: #eeeeee;
	--tl-text: #000;
	--tl-muted: #757575;
	--tl-container: 1160px;
	--tl-font: 'OrchideaPro', Arial, sans-serif;
	--tl-serif: Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	font-family: var(--tl-font);
	color: var(--tl-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--tl-font); font-weight: 700; line-height: 1.23; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* ---------- header (t257 / t228) ---------- */
.tl-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 990;
	background: var(--tl-header);
	transition: background .3s;
}
.admin-bar .tl-header { top: 32px; }
.tl-header.is-scrolled { background: rgba(71, 74, 74, .95); }
.tl-header__in {
	display: flex; align-items: center; gap: 30px;
	height: 90px; padding: 0 40px;
}
.tl-header__logo img { height: 70px; width: auto; }
.tl-nav { flex: 1; }
.tl-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 30px; }
.tl-nav a {
	font-family: var(--tl-serif); font-size: 14px; font-weight: 700; letter-spacing: .5px;
	color: var(--tl-gold-light); text-decoration: none; text-transform: uppercase;
}
.tl-nav a:hover { opacity: .8; }
.tl-btn-buy {
	display: inline-block; padding: 0 30px; height: 45px; line-height: 45px;
	background: var(--tl-gold); color: #000; border-radius: 5px;
	font-family: var(--tl-serif); font-weight: 700; font-size: 14px; text-decoration: none;
	box-shadow: 0 0 10px rgba(0, 0, 0, .3); white-space: nowrap;
}
.tl-lang { display: flex; gap: 14px; }
.tl-lang a { font-family: var(--tl-serif); font-weight: 700; font-size: 14px; color: var(--tl-gold-light); text-decoration: none; opacity: .7; }
.tl-lang a.is-active { opacity: 1; }
.tl-burger { display: none; background: none; border: 0; width: 34px; height: 26px; position: relative; cursor: pointer; }
.tl-burger span, .tl-burger::before, .tl-burger::after {
	content: ''; position: absolute; left: 0; right: 0; height: 3px; background: var(--tl-gold-light); transition: .2s;
}
.tl-burger::before { top: 0; } .tl-burger span { top: 11px; } .tl-burger::after { bottom: 0; }

/* page offset for non-hero pages */
.tl-main { padding-top: 90px; }
.tl-main--hero { padding-top: 0; }

/* ---------- generic sections ---------- */
.tl-sec { padding: 75px 20px; border: 1px solid transparent; }
.tl-sec > * { max-width: var(--tl-container); margin-left: auto !important; margin-right: auto !important; }
.tl-title { font-size: 42px; text-align: center; margin-bottom: 90px; line-height: 1.23; }
.tl-descr { font-size: 20px; max-width: 760px; margin: 0 auto 40px; text-align: center; }
.tl-uptitle { font-size: 14px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; text-align: center; }
.tl-text, .tl-item__text { font-size: 16px; }
.tl-item__title { font-size: 24px; margin-bottom: 14px; }
.tl-items { gap: 40px !important; margin-bottom: 40px; }
.tl-item .wp-block-image { margin: 0 0 20px; }
.wp-block-buttons { margin-top: 30px; }
.wp-block-button__link {
	background: var(--tl-dark); color: var(--tl-gold) !important; border-radius: 5px;
	padding: 14px 30px; font-weight: 700; font-size: 14px; text-decoration: none;
}

/* hero (zero block) */
.tl-hero {
	min-height: 100vh; display: flex; align-items: center; justify-content: center;
	padding: 120px 30px 60px; color: #fff; background-color: #6a7373; position: relative;
}
.tl-hero > .tl-hero__cols { width: 100%; max-width: 1200px; align-items: center !important; }
.tl-hero__cols > .wp-block-column:nth-child(2) { flex-basis: 40% !important; text-align: center; }
.tl-hero__title { font-size: 46px; color: #fff; text-align: center; }
.tl-hero .tl-uptitle { color: #fff; margin-bottom: 30px; }
.tl-hero .tl-zero__lead, .tl-hero .tl-zero__text { color: var(--tl-gold); font-size: 22px; text-align: center; }
.tl-hero__img img { max-height: 520px; width: auto; margin: 0 auto; }
.tl-hero__deco img { max-height: 420px; width: auto; margin-left: auto; }

/* zero blocks as image+text */
.tl-zero { padding: 100px 20px; }
.tl-zero__cols { align-items: center !important; gap: 40px !important; }
.tl-zero__title { font-size: 36px; text-align: left; }
.tl-zero__title::after { content: ''; display: block; width: 40px; height: 3px; background: #000; margin-top: 14px; }
.tl-zero__lead { font-size: 22px; }
.tl-zero__text { font-size: 18px; }
.tl-zero__img { margin: 0; }
.tl-zero__img img { box-shadow: 0 0 10px rgba(0, 0, 0, .2); background: #fff; }
.tl-zero--text { text-align: center; }
.tl-zero--text .tl-zero__title { text-align: center; }
.tl-zero--text .tl-zero__title::after { margin: 14px auto 0; }

/* t905 features: chessboard of text and images */
.tl-features .tl-items { gap: 0 !important; margin: 0; }
.tl-features .tl-items .wp-block-column { position: relative; }
.tl-features .tl-item { display: flex; flex-direction: column; min-height: 100%; }
.tl-features .tl-item .wp-block-image { order: 2; margin: 0; }
.tl-features .tl-item .wp-block-image img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; }
.tl-features .tl-item__title, .tl-features .tl-item__text { padding: 0 30px; }
.tl-features .tl-item__title { font-size: 20px; padding-top: 30px; }
.tl-features .tl-item__text { font-size: 14px; padding-bottom: 20px; }

/* t192 numbers */
.tl-numbers { color: #faf7f7; padding-bottom: 40px; }
.tl-numbers .tl-item__title { color: var(--tl-gold); font-size: 52px; text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--tl-graphite); }
.tl-numbers .tl-item__text { text-align: center; font-size: 18px; }
.tl-numbers .tl-items { margin-bottom: 0; }

/* t499 audience */
.tl-audience .tl-item { display: grid; grid-template-columns: 1fr 100px; column-gap: 30px; }
.tl-audience .tl-item .wp-block-image { grid-column: 2; grid-row: 1 / span 2; width: 94px; margin: 0; }
.tl-audience .tl-item__title { grid-column: 1; font-size: 20px; }
.tl-audience .tl-item__text { grid-column: 1; color: var(--tl-muted); font-size: 14px; }

/* headings section */
.tl-heading .tl-title { max-width: 760px; margin: 0 auto; font-size: 38px; }

/* t090 quote */
.tl-quote > * { max-width: 960px !important; }
.tl-quote__text { font-size: 28px; font-weight: 700; line-height: 1.3; border-top: 4px solid #000; padding-top: 20px; }
.tl-quote__text::after {
	content: ''; display: block; height: 30px; margin-top: 20px; border-top: 4px solid #000;
	background: linear-gradient(135deg, transparent 50%, #fff 50%) 20px 0 / 30px 30px no-repeat,
		linear-gradient(225deg, transparent 47%, #000 47%, #000 53%, transparent 53%) 20px -4px / 30px 30px no-repeat;
}
.tl-quote__author { display: grid; grid-template-columns: 80px 1fr; column-gap: 20px; align-items: center; }
.tl-quote__photo { grid-row: 1 / span 2; margin: 0; }
.tl-quote__photo img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.tl-quote__name { margin: 0; font-size: 16px; }
.tl-quote__role { margin: 0; font-size: 12px; letter-spacing: 1px; }

/* t529 reviews */
.tl-reviews { gap: 40px !important; }
.tl-review__text {
	background: #fff; border-radius: 10px; padding: 30px 35px; font-size: 16px; position: relative; margin-bottom: 40px;
}
.tl-review__text::after {
	content: ''; position: absolute; left: 35px; bottom: -20px;
	border-style: solid; border-width: 20px 20px 0 0; border-color: #fff transparent transparent transparent;
}
.tl-review__name { font-weight: 700; font-size: 14px; padding-left: 35px; }

/* video */
.tl-video .wp-block-embed { margin: 0; }
.tl-videos { gap: 40px !important; }

/* FAQ */
.tl-faq > .tl-faq__item, .tl-faq .wp-block-details { max-width: 760px !important; background: #fff; margin-bottom: 2px !important; }
.tl-faq summary {
	list-style: none; cursor: pointer; padding: 22px 70px 22px 30px; position: relative;
	font-size: 24px; font-weight: 700; line-height: 1.35;
}
.tl-faq summary::-webkit-details-marker { display: none; }
.tl-faq summary::after {
	content: '+'; position: absolute; right: 30px; top: 50%; transform: translateY(-50%);
	font-size: 34px; font-weight: 300; color: #777; transition: transform .2s;
}
.tl-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.tl-faq details > p { padding: 0 30px 10px; font-size: 16px; }
.tl-faq details > p:last-child { padding-bottom: 30px; }

/* page title (t795) */
.tl-pagetitle .tl-title { margin-bottom: 40px; }
.tl-pagetitle .tl-descr { font-size: 24px; line-height: 1.5; font-weight: 300; color: #000000; font-family: 'OrchideaPro', Arial, sans-serif; }
.tl-lead p { font-size: 26px; color: #545353; max-width: 760px; margin: 0 auto; }

/* text sections (legal etc.) */
.tl-textsec > * { max-width: 760px !important; }
.tl-textsec p, .tl-textsec li { font-size: 20px; line-height: 1.55; }

/* timeline t516 */
.tl-timeline { max-width: 960px !important; }
.tl-timeline__row { gap: 60px !important; margin-bottom: 40px; }
.tl-timeline__row > .wp-block-column:first-child { flex: 0 0 200px !important; text-align: right; border-right: 2px solid #ddd; padding-right: 40px; }
.tl-timeline__date { font-size: 20px; }

/* table */
.tl-tablesec > * { max-width: 960px !important; }
.tl-tablesec .tl-title { font-size: 26px; font-weight: 400; color: #545353; }
.tl-table { margin: 0; }
.tl-table table { border-collapse: collapse; width: 100%; font-size: 14px; color: #545353; }
.tl-table th, .tl-table td { border: 0; padding: 14px 16px; text-align: left; }
.tl-table thead th { color: #000; font-weight: 700; border-bottom: 1px solid #545353; }
.tl-table tbody tr:nth-child(even) { background: #eee; }
.tl-table tbody tr { border-bottom: 1px solid #ddd; }

/* map card t554 */
.tl-map { background: #e5e3df; padding: 100px 20px; }
.tl-mapcard { background: #fff; padding: 50px; max-width: 360px !important; margin-left: 0 !important; }

/* ---------- catalog [tl_products] ---------- */
.tl-catalog { background: var(--tl-grey); }
.tl-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.tl-product-card { text-decoration: none; color: #000; text-align: center; }
.tl-product-card__img { background: #fff; aspect-ratio: 1 / 1.4; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; overflow: hidden; }
.tl-product-card__img img { max-height: 100%; object-fit: contain; transition: transform .3s; }
.tl-product-card:hover img { transform: scale(1.04); }
.tl-product-card__title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.tl-product-card__price { font-size: 16px; }

/* ---------- product page (t589) ---------- */
.tl-product { padding: 40px 20px 90px; }
.tl-product__in { max-width: var(--tl-container); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.tl-product__img { background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .1); }
.tl-product__btn { display: inline-block; background: var(--tl-graphite); color: #fff; border-radius: 5px; padding: 14px 26px; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 0 5px rgba(0, 0, 0, .3); margin-bottom: 30px; }
.tl-product__name { font-size: 16px; font-weight: 700; }
.tl-product__meta { font-size: 16px; margin: 0 0 20px; }
.tl-product__price { font-size: 16px; }
.tl-product__price del { color: #777; margin-right: 6px; }
.tl-product__price strong { font-size: 22px; }
.tl-product__body p { font-size: 14px; }
.tl-product__back { text-align: center; padding-bottom: 60px; }

/* ---------- footer (t463) ---------- */
.tl-footer { background: var(--tl-footer); color: #fff; padding: 30px 40px; }
.tl-footer__in { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 40px; align-items: center; }
.tl-footer__logo img { width: 120px; }
.tl-footer__text { font-size: 13px; font-weight: 700; line-height: 1.5; }
.tl-footer__text a { color: #3176f5; text-decoration: none; }
.tl-footer__text p { margin: 0 0 1.2em; }
.tl-social { display: flex; gap: 8px; justify-content: flex-end; }
.tl-social a { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.tl-social svg { width: 16px; height: 16px; fill: var(--tl-footer); }

/* ---------- messenger widget (t825) ---------- */
.tl-chat { position: fixed; right: 30px; bottom: 30px; z-index: 980; }
.tl-chat__btn {
	width: 60px; height: 60px; border-radius: 50%; background: var(--tl-graphite); border: 2px solid var(--tl-gold);
	cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 10px rgba(0, 0, 0, .3);
}
.tl-chat__label {
	position: absolute; right: 74px; top: 50%; transform: translateY(-50%); white-space: nowrap;
	background: var(--tl-graphite); color: #fff; font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 3px;
}
.tl-chat__panel {
	position: absolute; right: 0; bottom: 74px; width: 300px; background: #fff; border-radius: 8px; padding: 24px;
	box-shadow: 0 0 20px rgba(0, 0, 0, .2); display: none;
}
.tl-chat.is-open .tl-chat__panel { display: block; }
.tl-chat.is-open .tl-chat__label { display: none; }
.tl-chat__title { font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.tl-chat__descr { font-size: 14px; color: var(--tl-muted); margin-bottom: 16px; }
.tl-chat__links { display: flex; gap: 12px; }
.tl-chat__links a { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tl-chat__links svg { width: 22px; height: 22px; fill: #fff; }

/* ---------- cookies (t657) ---------- */
.tl-cookies {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 970; background: #fff; padding: 20px 60px 20px 30px;
	box-shadow: 0 0 10px rgba(0, 0, 0, .2); font-size: 14px; font-weight: 700; display: none;
}
.tl-cookies.is-visible { display: block; }
.tl-cookies a { color: #3176f5; }
.tl-cookies__ok { margin-top: 12px; background: var(--tl-graphite); color: #fff; border: 0; border-radius: 5px; padding: 10px 20px; font-weight: 700; font-size: 12px; cursor: pointer; text-transform: uppercase; }
.tl-cookies__close { position: absolute; right: 20px; top: 14px; background: none; border: 0; font-size: 20px; cursor: pointer; color: #999; }

/* ---------- 404 ---------- */
.tl-404 { text-align: center; padding: 200px 20px 150px; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
	.tl-nav ul { gap: 18px; }
	.tl-header__in { padding: 0 20px; gap: 18px; }
}
@media (max-width: 980px) {
	.tl-header__in { height: 64px; }
	.tl-header__logo img { height: 50px; }
	.tl-main { padding-top: 64px; }
	.tl-burger { display: block; margin-left: auto; }
	.tl-nav, .tl-header .tl-btn-buy, .tl-header .tl-lang { display: none; }
	.tl-header.is-open { background: rgba(71, 74, 74, .98); }
	.tl-header.is-open .tl-header__in { flex-wrap: wrap; height: auto; padding-bottom: 20px; }
	.tl-header.is-open .tl-nav, .tl-header.is-open .tl-lang { display: block; flex-basis: 100%; }
	.tl-header.is-open .tl-btn-buy { display: inline-block; }
	.tl-header.is-open .tl-nav ul { flex-direction: column; align-items: center; gap: 14px; padding: 10px 0; }
	.tl-header.is-open .tl-lang { display: flex; justify-content: center; }
	.tl-title { font-size: 30px; }
	.tl-hero__title { font-size: 34px; }
	.tl-products { grid-template-columns: repeat(2, 1fr); }
	.tl-product__in { grid-template-columns: 1fr; }
	.tl-footer__in { grid-template-columns: 1fr; text-align: left; }
	.tl-social { justify-content: flex-start; }
	.tl-sec { padding-top: 60px !important; padding-bottom: 60px !important; }
	.tl-quote__text { font-size: 20px; }
	.tl-numbers .tl-item__title { font-size: 40px; }
	.tl-timeline__row > .wp-block-column:first-child { flex-basis: auto !important; text-align: left; border: 0; padding: 0; }
	.tl-hero__deco { display: none; }
}
@media (max-width: 640px) {
	.tl-products { grid-template-columns: 1fr 1fr; gap: 20px; }
	.tl-faq summary { font-size: 18px; padding: 18px 50px 18px 20px; }
	.tl-chat { right: 16px; bottom: 16px; }
	.tl-chat__label { display: none; }
	.tl-cookies { padding: 16px 50px 16px 16px; }
}

/* ---------- fixes after visual diff ---------- */
.tl-yt .wp-block-embed__wrapper, .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper { position: relative; padding-top: 56.25%; }
.tl-yt iframe, .wp-block-embed.wp-has-aspect-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tl-video.tl-t4 > * { max-width: 760px !important; }

@media (min-width: 981px) {
	.tl-hero__cols > .wp-block-column:first-child, .tl-hero__cols > .wp-block-column:last-child { flex-basis: 30% !important; }
}
.tl-hero__img img { width: 100%; max-width: 380px; max-height: none; }
.tl-hero__deco img { width: 100%; max-width: 340px; }

/* t905: шахматка — карточка = текст | фото, ряды чередуются */
.tl-features .tl-items--2 { gap: 0 !important; margin: 0 auto !important; }
.tl-features .tl-items--2 > .wp-block-column { flex-basis: 50% !important; }
.tl-features .tl-items--2 .tl-item { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; height: 100%; background: #fff; }
.tl-features .tl-items--2 .tl-item .wp-block-image { grid-column: 2; grid-row: 1 / span 3; margin: 0; position: relative; }
.tl-features .tl-items--2 .tl-item .wp-block-image img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.tl-features .tl-items--2 .tl-item .wp-block-image::before {
	content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); z-index: 1;
	border-style: solid; border-width: 14px 0 14px 14px; border-color: transparent transparent transparent #fff;
}
.tl-features .tl-items--2 .tl-item__title { grid-column: 1; padding: 30px 30px 10px; margin: 0; align-self: end; }
.tl-features .tl-items--2 .tl-item__text { grid-column: 1; padding: 0 30px 30px; margin: 0; }
.tl-features .tl-items--2 .tl-item__title:last-child { align-self: center; padding-bottom: 30px; }
.tl-features .tl-items--2:nth-of-type(even) .tl-item { direction: rtl; }
.tl-features .tl-items--2:nth-of-type(even) .tl-item > * { direction: ltr; }
.tl-features .tl-items--2:nth-of-type(even) .tl-item .wp-block-image::before {
	left: auto; right: 0; border-width: 14px 14px 14px 0; border-color: transparent #fff transparent transparent;
}
.tl-features { background: #fff; }
.tl-features.has-background .tl-item { background: #fff; }

@media (max-width: 980px) {
	.tl-features .tl-items--2 > .wp-block-column { flex-basis: 100% !important; }
	.tl-hero__cols > .wp-block-column { flex-basis: 100% !important; }
	.tl-hero__img img { max-width: 220px; }
}

/* t908: список слева в рамках + картинка справа */
.tl-tabs { gap: 40px !important; }
.tl-tabs > .wp-block-column:first-child { flex-basis: 40% !important; }
.tl-tabs__item { font-size: 20px; padding: 20px 24px; margin: 0 0 10px; border: 1px solid transparent; border-radius: 3px; }
.tl-tabs__item:first-child { border-color: #d9d9d9; }
.tl-tabs__img { margin: 0; }

/* одиночные картинки с подписью (t424, t223) */
.tl-figure { margin: 0 auto 20px; }
.tl-figure img { margin: 0 auto; }
.tl-caption { font-size: 18px; line-height: 1.55; color: #1f1f1f;  }
.tl-center p { text-align: center; }

/* t410: до/после */
.tl-ba-sec > * { max-width: 960px !important; }
.tl-beforeafter.is-ready { display: block !important; position: relative; overflow: hidden; user-select: none; }
.tl-beforeafter.is-ready > .wp-block-column { margin: 0; }
.tl-beforeafter.is-ready > .wp-block-column:nth-child(2) { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.tl-beforeafter.is-ready img { width: 100%; }
.tl-beforeafter.is-ready .tl-caption {
	position: absolute; top: 0; margin: 0; background-color: rgba(0, 0, 0, .7); color: #fff; font-size: 1em; padding: .25em .75em; line-height: 18px; font-family: Helvetica, Arial, sans-serif;
}
.tl-beforeafter.is-ready > .wp-block-column:nth-child(1) .tl-caption { left: 0; }
.tl-beforeafter.is-ready > .wp-block-column:nth-child(2) .tl-caption { right: 0; }
.tl-ba__handle { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; left: 50%; transform: translateX(-50%); pointer-events: none; z-index: 2; }
.tl-ba__handle::after {
	content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	background: #fff; border-radius: 50%; width: 36px; height: 36px; line-height: 34px; text-align: center; font-weight: 700; color: #545353;
}
.tl-ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 3; margin: 0; }

/* ряд иконок-ссылок в zero-блоках («Unde să cumpăr») */
.tl-zero--left { text-align: left; }
.tl-zero--left > * { max-width: 760px !important; }
.tl-zero--left .tl-zero__text { font-size: 18px; }
.tl-icons { display: flex; justify-content: space-between; align-items: center; margin: 30px auto 40px !important; max-width: 640px !important; }
.tl-icons .wp-block-image { margin: 0; }
.tl-icons img { width: 40px; height: 40px; object-fit: contain; }
.tl-icons a:hover img { transform: scale(1.1); transition: transform .2s; }

/* страница товара — серый фон как в Tilda */
.page-template-page-product .tl-main { background: #eee; }
.page-template-page-product .tl-pagetitle { background: #eee !important; }
.tl-product__img { background: #fff; }

/* t554: карта + карточка адреса поверх */
.tl-map { position: relative; min-height: 600px; padding: 0 !important; display: flex; align-items: center; }
.tl-map > .tl-map__frame, .tl-map iframe.tl-map__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; max-width: none !important; filter: grayscale(1) contrast(1.05); }
.tl-map > .tl-mapcard { position: relative; z-index: 1; margin: 0 0 0 calc(50% - 580px) !important; box-shadow: 0 0 20px rgba(0,0,0,.1); }
@media (max-width: 1200px) { .tl-map > .tl-mapcard { margin-left: 20px !important; } }
@media (max-width: 640px) { .tl-map { min-height: 420px; } .tl-mapcard { padding: 30px; max-width: 80% !important; } }

@media (max-width: 980px) {
	.tl-hero { min-height: 0; padding: 100px 20px 50px; }
	.tl-hero__cols { flex-wrap: wrap !important; }
	.tl-hero__cols > .wp-block-column:nth-child(2) { order: -1; flex-basis: 100% !important; }
	.tl-hero__img img { max-width: 180px !important; }
	.tl-zero__title { font-size: 26px; }
	.tl-zero { padding: 60px 20px; }
	.tl-title { font-size: 26px; }
	.tl-heading .tl-title { font-size: 26px; }
}
@media (max-width: 640px) {
	.tl-features .tl-items--2 .tl-item,
	.tl-features .tl-items--2:nth-of-type(even) .tl-item { display: flex; flex-direction: column; direction: ltr; }
	.tl-features .tl-items--2 .tl-item .wp-block-image { order: 3; }
	.tl-features .tl-items--2 .tl-item .wp-block-image img { aspect-ratio: 4 / 3; }
	.tl-features .tl-items--2 .tl-item .wp-block-image::before { display: none; }
	.tl-features .tl-items--2 .tl-item__title:last-child { padding-bottom: 20px; }
	.tl-features .tl-item__title, .tl-features .tl-item__text { text-align: left; direction: ltr; }
	.tl-features .tl-items--2 > .wp-block-column { margin-bottom: 10px; }
	.tl-audience .tl-item { grid-template-columns: 1fr 70px; column-gap: 16px; }
	.tl-audience .tl-item .wp-block-image { width: 64px; }
	.tl-review__text { padding: 24px; }
	.tl-numbers .tl-item__title { font-size: 34px; }
}
