/* Головна без Elementor (templates/home.php). Розміри зняті з попередньої версії на 375 / 1280 px. */
.bch { --ink: #142349; --grey: #575756; --text: #616A85; --accent: #EC6608; --accent-dark: #c95405; overflow-x: clip; }
.bch-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.bch p { margin: 0 0 18px; }
.bch img { max-width: 100%; height: auto; }

/* Типографіка */
.bch-h2 { font-size: 48px; line-height: 1.2; font-weight: 500; letter-spacing: -.7px; color: var(--ink); margin: 0 0 20px; }
.bch-h2--grey { color: var(--grey); }
.bch-text { font-size: 18px; line-height: 1.6; font-weight: 300; color: var(--text); }
.bch-head--center { text-align: center; max-width: 620px; margin: 0 auto 50px; }
.bch-more { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 500; color: var(--accent) !important; text-decoration: none !important; transition: gap .2s ease; }
.bch-more:hover { gap: 14px; }
.bch-more__ico { flex: none; }
.bch-more--light { color: #fff !important; }
.bch-btn { display: inline-block; padding: 15px 45px; border-radius: 100px; background: var(--accent); color: #fff !important; font-size: 18px; line-height: 22px; text-decoration: none !important; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.bch-btn:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(236, 102, 8, .28); }
.bch-btn:active { transform: translateY(0); }

/* Фони секцій: основне зображення + напівпрозорий візерунок (як у попередній версії) */
.bch-hero, .bch-services, .bch-about, .bch-team, .bch-why { position: relative; isolation: isolate; }
.bch-hero::before, .bch-services::before, .bch-team::before, .bch-why::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--bch-bg) center top / cover no-repeat; }
.bch-hero::after, .bch-services::after, .bch-about::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bch-ov) center / cover no-repeat; opacity: .03; pointer-events: none; }
.bch-about::after { opacity: 1; }
.bch-team::before { background-position: center; }
.bch-why::before { background-size: contain; background-position: right center; }

/* 0. Перший екран: видимий одразу, без прихованих станів */
.bch-hero { padding-top: 180px; }
.bch-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; max-width: 1240px; }
.bch-hero__text { padding: 0 0 57px 39px; align-self: center; }
.bch-hero__h1.bc-h1 { font-size: 70px; line-height: 1.2; font-weight: 600; letter-spacing: -.8px; color: var(--ink); margin: 0 0 0; max-width: 500px; }
.bch-hero__lead { font-size: 18px; line-height: 1.6; color: var(--text); max-width: 500px; margin: 0 0 45px !important; }
.bch-hero__lead a { color: var(--accent); }
.bch-hero__media { position: relative; display: flex; justify-content: center; align-self: end; }
.bch-hero__back { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 511px; max-width: 95%; z-index: 0; }
.bch-hero__photo { position: relative; z-index: 1; width: 541px; display: block; }

/* 1. Партнери: безшовна стрічка логотипів (CSS, без бібліотек) */
.bch-partners { padding: 30px 0 40px; border-bottom: 1px solid #616A852B; }
.bch-partners__label { text-align: center; font-size: 14px; font-weight: 500; letter-spacing: -.2px; text-transform: uppercase; color: var(--text); margin-bottom: 28px !important; }
.bch-marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.bch-marquee__track { display: flex; width: max-content; animation: bch-marquee 30s linear infinite; }
.bch-marquee:hover .bch-marquee__track { animation-play-state: paused; }
.bch-marquee__item { flex: none; width: 320px; padding: 0 40px; display: flex; align-items: center; justify-content: center; }
.bch-marquee__item img { max-height: 60px; width: auto; object-fit: contain; }
@keyframes bch-marquee { to { transform: translateX(-50%); } }

/* 2 і 7. Картинка + текст */
.bch-about { padding: 60px 0 80px; }
.bch-split { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.bch-split__media img { display: block; width: 551px; margin: 0 auto; }
.bch-split__text .bch-text { margin-bottom: 36px; }

/* 3. «Що ми робимо» */
.bch-services { padding: 80px 0 100px; }
.bch-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.bch-promo { grid-column: span 2; position: relative; padding: 40px; min-height: 336px; border-radius: 0 80px; background: var(--accent); color: #fff; overflow: hidden; display: flex; flex-direction: column; }
.bch-promo::before { content: ""; position: absolute; inset: 0; background: var(--bch-pat) center / cover; opacity: .12; pointer-events: none; }
.bch-promo__text { position: relative; font-size: 46px; line-height: 1.1; color: #fff; max-width: 560px; margin-bottom: 30px !important; }
.bch-promo .bch-more { position: relative; margin-top: auto; }
.bch-promo__icon { position: absolute; right: 40px; bottom: 30px; width: 150px; transition: transform .4s ease; }
.bch-promo:hover .bch-promo__icon { transform: translateY(-6px) rotate(-4deg); }
.bch-card { padding: 40px; min-height: 336px; border-radius: 10px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.bch-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(20, 35, 73, .08); }
.bch-card__icon { width: 96px; height: 96px; display: block; margin-bottom: 20px; transition: transform .3s ease; }
.bch-card:hover .bch-card__icon { transform: scale(1.06); }
.bch-card__title { font-size: 21px; line-height: 1.5; font-weight: 500; color: var(--ink); margin-bottom: 16px !important; }
.bch-card__text { font-size: 16px; line-height: 1.6; color: rgba(97, 106, 133, .69); margin: 0 !important; }

/* 4. Команда */
.bch-team { padding: 0 0 100px; }
.bch-team__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; padding: 80px 0 60px; }
.bch-team__head .bch-text { margin-bottom: 24px; }
.bch-carousel { position: relative; }
.bch-carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 120px) / 4); gap: 40px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 6px 0 16px; }
.bch-carousel__track::-webkit-scrollbar { display: none; }
.bch-doc { scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; text-decoration: none !important; border-radius: 10px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.bch-doc:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20, 35, 73, .12); }
.bch-doc__photo { display: block; height: 400px; overflow: hidden; }
.bch-doc__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.bch-doc:hover .bch-doc__photo img { transform: scale(1.04); }
.bch-doc__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; background: var(--accent); text-align: center; min-height: 102px; }
.bch-doc__name { color: #fff; font-size: 22px; letter-spacing: -.4px; line-height: 1.25; }
.bch-doc__role { color: rgba(255, 255, 255, .66); font-size: 16px; }
.bch-carousel__arrow { position: absolute; top: 200px; z-index: 2; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; color: var(--accent); font-size: 28px; line-height: 1; box-shadow: 0 6px 20px rgba(20, 35, 73, .15); cursor: pointer; transition: opacity .2s ease, transform .2s ease; }
.bch-carousel__arrow:hover { transform: scale(1.06); }
.bch-carousel__arrow:disabled { opacity: 0; pointer-events: none; }
.bch-carousel__arrow--prev { left: -18px; }
.bch-carousel__arrow--next { right: -18px; }
.bch-counters { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 60px; }
.bch-counter { position: relative; display: flex; align-items: center; justify-content: center; min-height: 120px; border-left: 1px solid #616A852B; }
.bch-counter:first-child { border-left: 0; }
.bch-counter__num { font-size: 120px; line-height: 1; color: rgba(157, 157, 156, .31); font-variant-numeric: tabular-nums; }
.bch-counter__label { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-size: 25px; font-weight: 600; line-height: 1; color: var(--ink); }

/* 5, 6, 8. Наші HTML-блоки (стилі в site.css) */
.bch-block--popular { padding: 40px 0 20px; }
.bch-block--reviews, .bch-block--gallery { padding: 60px 0; }

/* 7. «Чому до нас» */
.bch-why { padding: 40px 0; }
.bch-why__box { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 26px; }
.bch-why__icon { width: 52px; height: auto; flex: none; transition: transform .3s ease; }
.bch-why__box:hover .bch-why__icon { transform: translateY(-3px); }
.bch-why__title { font-size: 22px; line-height: 1.5; font-weight: 500; letter-spacing: -.5px; color: var(--ink); margin: 0 0 6px !important; }
.bch-why__text { font-size: 16px; line-height: 1.5; color: var(--text); margin: 0 !important; }

/* Планшет і телефон: колонки складаються в одну (як у попередній версії до 1024 px) */
@media (max-width: 1024px) {
	.bch-hero { padding-top: 140px; }
	.bch-hero__grid { grid-template-columns: 1fr; gap: 30px; }
	.bch-hero__text { padding: 0 20px; text-align: center; }
	.bch-hero__h1.bc-h1 { font-size: 56px; max-width: 580px; margin: 0 auto 20px; }
	.bch-hero__lead { max-width: 580px; margin: 0 auto 30px !important; }
	.bch-h2 { text-align: center; }
	.bch-text { text-align: center; }
	.bch-split, .bch-split--rev { grid-template-columns: 1fr; gap: 30px; text-align: center; max-width: 580px; margin: 0 auto; }
	.bch-split--rev .bch-split__media { order: -1; }
	.bch-split__media img { width: 422px; }
	.bch-cards { grid-template-columns: 1fr; gap: 30px; max-width: 460px; margin: 0 auto; }
	.bch-promo { grid-column: auto; order: 1; }
	.bch-cards > .bch-card:nth-child(2) { order: 0; }
	.bch-card { order: 2; }
	.bch-promo__text { font-size: 38px; max-width: 300px; }
	.bch-team__head { grid-template-columns: 1fr; gap: 0; text-align: center; max-width: 620px; margin: 0 auto; }
	.bch-carousel__track { grid-auto-columns: calc((100% - 24px) / 2); gap: 24px; }
	.bch-counters { grid-template-columns: repeat(2, 1fr); }
	.bch-counter:nth-child(3) { border-left: 0; }
	.bch-why__box { flex-direction: column; align-items: center; text-align: center; }
	.bch-why__icon { width: 94px; }
	.bch-why::before { background-size: cover; }
	.bch-marquee__item { width: 220px; padding: 0 30px; }
}

/* Телефон */
@media (max-width: 767px) {
	.bch-hero { padding-top: 110px; }
	.bch-hero__grid { gap: 20px; }
	.bch-hero__text { padding: 0 10px; }
	.bch-hero__h1.bc-h1 { font-size: 40px; }
	.bch-hero__lead { font-size: 16px; margin-bottom: 20px !important; }
	.bch-hero__cta { display: none; } /* на телефоні запис у липкій панелі (Антон 21.10) */
	.bch-hero__back { width: 275px; }
	.bch-hero__photo { width: 319px; }
	.bch-partners { padding: 20px 0 30px; }
	.bch-marquee__item { width: 170px; padding: 0 22px; }
	.bch-marquee__item img { max-height: 32px; }
	.bch-h2 { font-size: 34px; letter-spacing: 0; }
	.bch-text { font-size: 16px; }
	.bch-about { padding: 60px 0 50px; }
	.bch-split, .bch-split--rev { gap: 20px; }
	.bch-split__media img { width: 320px; }
	.bch-services { padding: 60px 0; }
	.bch-head--center { margin-bottom: 30px; }
	.bch-cards { max-width: none; }
	.bch-promo { padding: 40px 30px; min-height: 298px; }
	.bch-card { padding: 40px 30px; min-height: 0; }
	.bch-promo__text { font-size: 32px; line-height: 1.2; max-width: 240px; }
	.bch-promo__icon { width: 110px; right: 20px; bottom: 20px; }
	.bch-team__head { padding: 50px 10px 30px; }
	.bch-carousel__track { grid-auto-columns: 100%; gap: 20px; }
	.bch-doc__photo { height: 266px; }
	.bch-carousel__arrow { top: 110px; }
	.bch-carousel__arrow--prev { left: 6px; }
	.bch-carousel__arrow--next { right: 6px; }
	.bch-counters { grid-template-columns: 1fr; margin-top: 30px; }
	.bch-counter { border-left: 0; border-top: 1px solid #616A852B; padding: 2px 0; }
	.bch-counter:first-child { border-top: 0; }
	.bch-why { padding: 40px 0 60px; }
}

/* Анімації появи: лише нижче першого екрана, лише transform/opacity, клас js-anim ставиться до відмальовки (inc/home.php). */
.js-anim [data-anim] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js-anim [data-anim="zoom"] { transform: scale(1.04); }
.js-anim [data-anim="card"] { transform: translateY(26px); }
.js-anim [data-anim].is-in { opacity: 1; transform: none; }
/* Перший екран: лише м'який підйом без прозорості (уже намальований, LCP не чекає) */
@keyframes bch-rise { from { transform: translateY(10px); } to { transform: none; } }
.js-anim .bch-hero__text, .js-anim .bch-hero__photo { animation: bch-rise .5s ease-out both; }
@media (prefers-reduced-motion: reduce) {
	.bch-marquee__track, .js-anim .bch-hero__text, .js-anim .bch-hero__photo { animation: none; }
	.bch * { transition: none !important; }
}

/* «Лікарі» і «Контакти» (templates/page-v2.php), розміри з попередньої версії */
.bcp-hero, .bcp-team, .bcp-find { position: relative; isolation: isolate; }
.bcp-hero::before, .bcp-team::before, .bcp-find::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bch-bg) center top / cover no-repeat; }
.bcp-hero { padding: 160px 0 70px; text-align: center; }
.bcp-hero__h1.bc-h1 { font-size: 66px; line-height: 1.2; font-weight: 500; color: var(--ink); max-width: 590px; margin: 0 auto 20px; }
.bcp--team .bcp-hero__h1.bc-h1 { color: var(--grey); max-width: 530px; }
.bcp-hero__intro { font-size: 18px; line-height: 1.6; font-weight: 300; color: var(--text); max-width: 590px; margin: 0 auto !important; }

.bcp-team { padding: 70px 0 70px; }
.bcp-team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 40px; max-width: 1220px; }
.bcp-doc { background: var(--accent); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.bcp-doc:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20, 35, 73, .14); }
.bcp-doc__photo { display: block; height: 348px; background: #fff; overflow: hidden; border-radius: 12px 12px 0 0; }
.bcp-doc__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.bcp-doc:hover .bcp-doc__photo img { transform: scale(1.04); }
.bcp-doc__body { padding: 25px 20px 22px; text-align: center; }
.bcp-doc__name { font-size: 24px; line-height: 1.3; font-weight: 400; color: #fff; margin: 0 0 12px; }
.bcp-doc__name a { color: #fff !important; text-decoration: none !important; }
.bcp-doc__role { font-size: 18px; color: rgba(255, 255, 255, .66); margin: 0 0 16px !important; }
.bcp-doc__ig { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff !important; transition: transform .2s ease; }
.bcp-doc__ig:hover { transform: scale(1.08); }
.bcp-map iframe { display: block; width: 100%; height: 480px; border: 0; filter: grayscale(1); }

.bcp-contact { padding: 70px 0 70px; }
.bcp-contact__top { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.bcp-card { background: #fff; border-radius: 10px; padding: 65px; }
.bcp-card__title { font-size: 36px; line-height: 1; font-weight: 500; color: #0F192F; margin: 0 0 30px; }
.bcp-form { border-radius: 10px 0 0 10px; }
.bcp-form .bch-text { font-size: 16px; font-weight: 400; color: #7a7a7a; }
.bcp-form .bch-btn { padding: 8px 19px; font-size: 15px; font-weight: 500; }
.bcp-plate { background: #333; border-radius: 0 10px 10px 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bcp-plate img { width: 100%; height: 100%; object-fit: cover; }
.bcp-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.bcp-box { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 60px 20px 40px; background: #fff; border-radius: 10px; text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease; }
.bcp-box:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(20, 35, 73, .1); }
.bcp-box__ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; transition: transform .25s ease; }
.bcp-box:hover .bcp-box__ico { transform: rotate(-8deg) scale(1.06); }
.bcp-box__title { font-size: 18px; font-weight: 500; color: var(--ink); }

.bcp-find { padding: 100px 0 80px; }
.bcp-find__head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.bcp-find__text { font-size: 18px; line-height: 1.6; font-weight: 300; color: var(--text); }
.bcp-find__text img { border-radius: 14px; }
.bcp-find__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; align-items: stretch; }
.bcp-find__map iframe { display: block; width: 100%; height: 100%; min-height: 436px; border: 0; border-radius: 10px; }
.bcp-hours { padding: 63px 50px; }
.bcp-hours p { font-size: 18px; color: var(--text); margin: 0 0 12px !important; }
.bcp-hours .bcp-card__title + p { margin-top: -10px !important; }
.bcp-hours .bcp-card__title:not(:first-child) { margin-top: 36px; }
.bcp-photos { margin-top: 10px; }

@media (max-width: 1024px) {
	.bcp-team__grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
	.bcp-hero__h1.bc-h1 { font-size: 54px; }
	.bcp-find__head, .bcp-find__row { grid-template-columns: 1fr; }
	.bcp-find__head .bch-h2 { text-align: left; }
}
@media (max-width: 767px) {
	.bcp-hero { padding: 120px 0 40px; }
	.bcp-hero__h1.bc-h1 { font-size: 40px; }
	.bcp-hero__intro { font-size: 16px; }
	.bcp-team { padding: 40px 0; }
	.bcp-team__grid { grid-template-columns: 1fr; gap: 30px; }
	.bcp-doc__photo { height: 320px; }
	.bcp-map iframe { height: 360px; }
	.bcp-contact { padding: 40px 0; }
	.bcp-contact__top { grid-template-columns: 1fr; }
	.bcp-form { border-radius: 10px 10px 0 0; padding: 40px 30px; }
	.bcp-plate { border-radius: 0 0 10px 10px; min-height: 180px; }
	.bcp-boxes { grid-template-columns: 1fr; }
	.bcp-box { padding: 36px 20px 30px; }
	.bcp-find { padding: 50px 0; }
	.bcp-find__head .bch-h2 { text-align: center; }
	.bcp-find__text { font-size: 16px; text-align: center; }
	.bcp-card__title { font-size: 30px; }
	.bcp-hours { padding: 40px 30px; }
	.bcp-find__map iframe { min-height: 320px; }
}
.bcp-form .bch-text { text-align: left; }
.bcp-plate img { object-fit: contain; }
/* Текстура зубчиків на помаранчевих плашках лікарів, як на картці про шаблон (Антон 29.10) */
.bch-doc__body { position: relative; isolation: isolate; }
.bch-doc__body::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bch-pat) center / cover; opacity: .12; pointer-events: none; }
/* Фасад карти (page-v2): сіра «карта» з кнопками, iframe після натискання */
.bcp-mapf { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 436px; height: 100%; padding: 30px 20px; border-radius: 10px; text-align: center; color: var(--accent);
	background: #eef0f3 repeating-linear-gradient(45deg, rgba(20,35,73,.035) 0 2px, transparent 2px 22px), repeating-linear-gradient(-45deg, rgba(20,35,73,.035) 0 2px, transparent 2px 22px); }
.bcp-mapf__title { color: var(--ink); font-size: 18px; font-weight: 500; margin: 6px 0 4px !important; }
.bcp-mapf .bc-btns { justify-content: center; }
.bcp-mapf.is-live { padding: 0; display: block; }
.bcp-mapf.is-live iframe { display: block; width: 100%; height: 100%; min-height: 436px; border: 0; border-radius: 10px; }
.bcp-map .bcp-mapf, .bcp-map .bcp-mapf.is-live iframe { min-height: 480px; border-radius: 0; }
@media (max-width: 767px) { .bcp-mapf, .bcp-mapf.is-live iframe { min-height: 320px; } .bcp-mapf .bc-btns { flex-direction: row; } .bcp-mapf .bc-btns a { width: auto; } }
/* Доступність (SEO 29.10): посилання в тексті не лише кольором, контраст тексту карток */
.bch-hero__lead a, .bch-text a, .bcp-hero__intro a, .bcp-find__text p a { text-decoration: underline !important; text-underline-offset: 3px; }
.bch-card__text { color: var(--text); }
.bcp-hours__btns { margin-top: 28px !important; }
