/* Блок про онлайн-рекламу [monoscript_ads_showcase]: світле тло, багато повітря, як Apple Card на apple.com. */
.bba-ads {
	--ad-bg: #f5f5f7;
	--ad-tile: #fff;
	--ad-text: #1d1d1f;
	--ad-muted: #6e6e73;
	--ad-blue: #0071e3;
	--ad-link: #0066cc;
	--ad-line: #d2d2d7;
	background: var(--ad-bg);
	color: var(--ad-text);
	/* Шрифти сайту (тема Woodmart: Inter Tight); без теми — успадковані. */
	font-family: var(--wd-text-font, inherit);
	-webkit-font-smoothing: antialiased;
	overflow: hidden;
	padding: 72px 12px 12px;
}
.bba-ads *, .bba-ads *::before, .bba-ads *::after { box-sizing: border-box; }
.bba-ads h2, .bba-ads h3, .bba-ads p { text-transform: none; }

/* Головний екран */
.bba-ads-hero { margin: 0 auto; max-width: 980px; padding: 0 10px; text-align: center; }
.bba-ads-eyebrow { color: var(--ad-muted); font-size: 17px; font-weight: 500; margin: 0 0 10px; }
.bba-ads-title {
	color: var(--ad-text);
	font-family: var(--wd-title-font, inherit);
	font-size: clamp(38px, 4.6vw, 56px);
	font-weight: 600;
	line-height: 1.1;
	margin: 0 0 14px;
}
.bba-ads-lead { color: var(--ad-text); font-size: clamp(18px, 2vw, 24px); line-height: 1.35; margin: 0 auto 26px; max-width: 30em; }
.bba-ads-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.bba-ads a.bba-ads-btn {
	border-radius: 980px;
	font-size: 17px;
	font-weight: 400;
	line-height: 1;
	padding: 14px 24px;
	text-decoration: none;
	transition: background-color .2s, color .2s, transform .2s;
}
.bba-ads a.bba-ads-btn-primary { background: var(--ad-blue); color: #fff; }
.bba-ads a.bba-ads-btn-primary:hover { background: #0077ed; color: #fff; }
.bba-ads a.bba-ads-btn-ghost { border: 1px solid var(--ad-blue); color: var(--ad-blue); }
.bba-ads a.bba-ads-btn-ghost:hover { background: var(--ad-blue); color: #fff; }
.bba-ads a.bba-ads-btn:active { transform: scale(.98); }
.bba-ads a:focus-visible { outline: 2px solid var(--ad-blue); outline-offset: 3px; }

/* Нахилена картка результатів (як Apple Card) з тінню на «підлозі» */
.bba-ads-stage { height: 400px; margin: 30px auto 0; max-width: 620px; perspective: 1600px; position: relative; }
.bba-ads-card {
	animation: bba-ads-float 7s ease-in-out infinite;
	background: linear-gradient(145deg, #fff 0%, #f6f6f8 60%, #ececf0 100%);
	border: 1px solid rgba(0, 0, 0, .04);
	border-radius: 26px;
	box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, .04);
	left: 50%;
	padding: 26px 28px 22px;
	position: absolute;
	text-align: left;
	top: 20px;
	transform: translateX(-50%) rotateX(42deg) rotateZ(-24deg);
	transform-style: preserve-3d;
	width: 460px;
	z-index: 1;
}
.bba-ads-shadow {
	background: radial-gradient(closest-side, rgba(0, 0, 0, .22), transparent);
	bottom: 30px;
	filter: blur(14px);
	height: 70px;
	left: 50%;
	position: absolute;
	transform: translateX(-38%) rotate(-14deg);
	width: 420px;
}
.bba-ads-card-head { align-items: center; display: flex; gap: 10px; margin-bottom: 18px; }
.bba-ads-card-dot { background: conic-gradient(#0071e3, #34c759, #ff9f0a, #0071e3); border-radius: 50%; height: 14px; width: 14px; }
.bba-ads-card-head strong { font-size: 15px; font-weight: 600; }
.bba-ads-card-head em { color: var(--ad-muted); font-size: 13px; font-style: normal; margin-left: auto; }
.bba-ads-funnel { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin-bottom: 14px; }
.bba-ads-funnel span { color: var(--ad-muted); display: block; font-size: 12px; margin-bottom: 2px; }
.bba-ads-funnel b { font-size: 24px; font-variant-numeric: tabular-nums; font-weight: 600; }
.bba-ads-funnel div:last-child b { color: var(--ad-blue); }
.bba-ads-chart { display: block; height: 110px; width: 100%; }
.bba-ads-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s cubic-bezier(.4, 0, .2, 1); }
.bba-ads-area { opacity: 0; transition: opacity 1.2s ease .9s; }
.bba-ads.is-in .bba-ads-line { stroke-dashoffset: 0; }
.bba-ads.is-in .bba-ads-area { opacity: 1; }
@keyframes bba-ads-float {
	0%, 100% { transform: translateX(-50%) rotateX(42deg) rotateZ(-24deg) translateZ(0); }
	50% { transform: translateX(-50%) rotateX(40deg) rotateZ(-22deg) translateZ(14px); }
}

/* Дві плитки */
.bba-ads-tiles { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin: 12px auto 0; max-width: 1440px; }
.bba-ads-tile {
	background: var(--ad-tile);
	border-radius: 18px;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 560px;
	overflow: hidden;
	padding: 56px 24px 0;
	text-align: center;
}
.bba-ads-tile h3 { color: var(--ad-text); font-family: var(--wd-title-font, inherit); font-size: clamp(32px, 3.4vw, 44px); font-weight: 600; line-height: 1.1; margin: 0 0 8px; }
.bba-ads-tile > p { color: var(--ad-text); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.35; margin: 0 0 14px; max-width: 24em; }
/* Відступ від тексту до візуалу — однаковий в обох плитках. */
.bba-ads-links { align-items: baseline; display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; margin-bottom: 44px; }
.bba-ads-price { color: var(--ad-muted); font-size: 17px; }
.bba-ads-links a { color: var(--ad-link); font-size: 17px; text-decoration: none; }
.bba-ads-links a:hover { text-decoration: underline; }

/* Google: рядок пошуку з запитом, що друкується, і ваша реклама першою */
/* Пошук по центру вільного місця плитки (телефон у сусідній плитці стоїть на нижньому краї). */
.bba-ads-search { margin: auto 0; max-width: 440px; padding-bottom: 44px; width: 100%; }
.bba-ads-query {
	align-items: center;
	background: #fff;
	border: 1px solid var(--ad-line);
	border-radius: 980px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
	display: flex;
	font-size: 15px;
	gap: 10px;
	height: 48px;
	margin-bottom: 14px;
	padding: 0 18px;
	text-align: left;
}
.bba-ads-query i { border: 2px solid var(--ad-muted); border-radius: 50%; flex: 0 0 14px; height: 14px; position: relative; }
.bba-ads-query i::after { background: var(--ad-muted); bottom: -5px; content: ""; height: 2px; position: absolute; right: -5px; transform: rotate(45deg); width: 6px; }
.bba-ads-query span::after { animation: bba-ads-caret 1s steps(1) infinite; border-right: 2px solid var(--ad-blue); content: ""; margin-left: 1px; }
.bba-ads-result {
	background: #fafafc;
	border-radius: 16px 16px 0 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
	text-align: left;
}
.bba-ads-result + .bba-ads-result { border-radius: 0; margin-top: 2px; }
.bba-ads-result small { color: var(--ad-muted); font-size: 12px; }
.bba-ads-result small b { color: var(--ad-text); font-weight: 600; }
.bba-ads-result strong { color: #1a0dab; font-size: 16px; font-weight: 500; }
.bba-ads-result span { color: var(--ad-muted); font-size: 13px; }
.bba-ads-result.is-ad { border: 1px solid rgba(0, 113, 227, .25); box-shadow: 0 10px 30px rgba(0, 113, 227, .08); }
.bba-ads-result:not(.is-ad) small, .bba-ads-result:not(.is-ad) strong, .bba-ads-result:not(.is-ad) span { background: #ececf0; border-radius: 6px; height: 10px; }
.bba-ads-result:not(.is-ad) small { width: 30%; }
.bba-ads-result:not(.is-ad) strong { height: 14px; width: 70%; }
.bba-ads-result:not(.is-ad) span { width: 90%; }
@keyframes bba-ads-caret { 50% { border-color: transparent; } }

/* Meta: телефон зі стрічкою і рекламним дописом */
.bba-ads-phone {
	background: #1d1d1f;
	border-radius: 44px 44px 0 0;
	margin-top: auto;
	padding: 12px 12px 0;
	width: 290px;
}
.bba-ads-post { background: #fff; border-radius: 34px 34px 0 0; padding: 18px 16px 16px; text-align: left; }
.bba-ads-post-head { align-items: center; display: flex; gap: 10px; margin-bottom: 12px; }
.bba-ads-post-head i { background: conic-gradient(#ff6b9a, #ff9f0a, #a259ff, #ff6b9a); border-radius: 50%; height: 30px; width: 30px; }
.bba-ads-post-head b { display: block; font-size: 13px; }
.bba-ads-post-head small { color: var(--ad-muted); font-size: 11px; }
.bba-ads-post-img {
	align-items: flex-end;
	aspect-ratio: 1;
	background: linear-gradient(160deg, #e8f0ff 0%, #f3e8ff 55%, #ffe8f0 100%);
	border-radius: 14px;
	display: flex;
	gap: 10px;
	justify-content: center;
	padding: 22px;
}
.bba-ads-post-img span { background: #fff; border-radius: 12px; box-shadow: 0 10px 24px rgba(0, 0, 0, .08); height: 46%; width: 26%; }
.bba-ads-post-img span:nth-child(2) { height: 64%; }
.bba-ads-post-cta { align-items: center; display: flex; gap: 10px; justify-content: space-between; margin-top: 12px; }
.bba-ads-post-cta span { font-size: 13px; }
.bba-ads-post-cta b { background: var(--ad-blue); border-radius: 980px; color: #fff; font-size: 12px; font-weight: 500; padding: 7px 14px; white-space: nowrap; }
.bba-ads-post-like { align-items: center; color: var(--ad-muted); display: flex; font-size: 12px; gap: 6px; margin-top: 10px; }
.bba-ads-post-like i {
	animation: bba-ads-like 2.4s ease-in-out infinite;
	background: #ff375f;
	clip-path: path("M8 14.5 1.6 8.3A3.9 3.9 0 0 1 8 3.4a3.9 3.9 0 0 1 6.4 4.9Z");
	height: 16px;
	width: 16px;
}
@keyframes bba-ads-like { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.3); } }

/* Смуга про аналітику */
.bba-ads-strip {
	align-items: center;
	background: var(--ad-tile);
	border-radius: 18px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	justify-content: center;
	margin: 12px auto 0;
	max-width: 1440px;
	padding: 26px 24px;
	text-align: center;
}
.bba-ads-strip p { color: var(--ad-muted); font-size: 17px; margin: 0; }
.bba-ads-strip strong { color: var(--ad-text); font-weight: 600; }
.bba-ads-strip a { color: var(--ad-link); font-size: 17px; text-decoration: none; white-space: nowrap; }
.bba-ads-strip a:hover { text-decoration: underline; }

/* Поява під час прокрутки */
.bba-ads.is-pre .bba-ads-hero > *, .bba-ads.is-pre .bba-ads-tile { opacity: 0; transform: translateY(24px); }
.bba-ads .bba-ads-hero > *, .bba-ads .bba-ads-tile { transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.bba-ads .bba-ads-tile + .bba-ads-tile { transition-delay: .1s; }

@media (max-width: 900px) {
	.bba-ads-tiles { grid-template-columns: 1fr; }
	.bba-ads-tile { min-height: 520px; }
}
@media (max-width: 560px) {
	.bba-ads { padding: 56px 8px 8px; }
	.bba-ads-actions { align-items: stretch; flex-direction: column; padding: 0 12px; }
	/* Нахилена картка ширша за свій бокс — на телефоні робимо її вужчою, щоб не обрізалась. */
	.bba-ads-stage { height: 250px; margin-top: 16px; }
	.bba-ads-card { border-radius: 20px; padding: 16px 16px 12px; top: 10px; width: 270px; }
	.bba-ads-card-head { margin-bottom: 10px; }
	.bba-ads-card-head strong { font-size: 13px; }
	.bba-ads-funnel span { font-size: 10px; }
	.bba-ads-funnel b { font-size: 16px; }
	.bba-ads-chart { height: 64px; }
	.bba-ads-shadow { bottom: 20px; width: 240px; }
	.bba-ads-tile { padding-top: 44px; }
	.bba-ads-phone { width: 260px; }
}
@media (prefers-reduced-motion: reduce) {
	.bba-ads *, .bba-ads *::before, .bba-ads *::after { animation: none !important; transition: none !important; }
	.bba-ads-line { stroke-dashoffset: 0; }
	.bba-ads-area { opacity: 1; }
	.bba-ads.is-pre .bba-ads-hero > *, .bba-ads.is-pre .bba-ads-tile { opacity: 1; transform: none; }
}
