/*
  Batina Event — новые блоки главной и адаптив для промежуточных экранов.
  Оформление темы batina (style.css, media.css) не переписывается: при ширине 1280+ остальные блоки выглядят как на сайте.
  Классы новых блоков начинаются с bn-. Мобильная версия — до 767px, как в media.css темы.
*/
:root{--bn-text:#ecf6f8;--bn-muted:#a7afb3;--bn-line:rgba(236,246,248,.16);--bn-accent:#fa185c;--bn-accent-dark:#c51348;--bn-ease:cubic-bezier(.19,1,.22,1)}
.bn,.bn *,.bn *::before,.bn *::after{box-sizing:border-box}
.bn-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
nav ul li a{white-space:nowrap}
/* Цифры 01–05: плавный переход к блокам главной; отступ под фиксированную шапку */
html{scroll-behavior:smooth;scroll-padding-top:110px}  /* отступ под шапку для всех переходов по #якорям (цифры 01–05 и др.); scroll-margin у блоков не ставить — сложится вдвое */
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media(max-width:767px){html{scroll-padding-top:86px}}

/* ---------- Первый экран: HTML-заголовок вместо картинки h1.svg ---------- */
/* Статический Montserrat Bold: у вариативного шрифта на контуре видны пересечения внутри букв (х, з, ц). */
@font-face{font-family:'Montserrat Outline';src:url('fonts/montserrat-bold-static.woff') format('woff');font-weight:700;font-style:normal;font-display:swap}
.one .bn-hero-title{max-width:100%;margin:0;font-family:'Montserrat Outline','Montserrat',sans-serif;font-size:clamp(64px,8.9vw,128px);font-weight:700;line-height:1.04;letter-spacing:-.035em;color:transparent;-webkit-text-stroke:1.5px #ecf6f8}
.bn-hero-title span{display:block;white-space:nowrap}
.bn-hero-title span+span{padding-left:min(185px,12.8vw)}
/* вторая строка («Batina Event») — заполненная, первая («Івент-агенція») — контуром (выбрано 23.11.2026) */
.one .bn-hero-title span+span{color:#ecf6f8;-webkit-text-stroke:0}
.one .bn-hero-lead{max-width:860px;margin:52px 0 53px;padding-left:min(93px,6.5vw);font-size:clamp(18px,1.67vw,24px);font-weight:400;line-height:1.6;color:#ecf6f8}

/* ---------- «Про нас»: заголовок как у темы + раскрытие на всю ширину под видео ---------- */
.pro-right .bn-about-title{display:block;margin:0 0 40px;font-size:48px;font-weight:700;line-height:64px;text-align:center;color:#ecf6f8}
.pro-right a.bn-about-toggle{width:fit-content;margin-left:auto;cursor:pointer;border-radius:6px;transition:color .3s}
.pro-right a.bn-about-toggle:hover{color:#ecf6f8}
.pro-right a.bn-about-toggle:focus{outline:none}
.pro-right a.bn-about-toggle:focus-visible{outline:2px solid var(--bn-accent);outline-offset:6px}
.bn-about-label{font-style:normal}
.bn-about-toggle svg{transition:transform .4s var(--bn-ease)}
.bn-about-toggle[aria-expanded="true"] svg{transform:rotate(90deg)}
.bn-about-more{display:grid;grid-template-rows:0fr;transition:grid-template-rows .7s var(--bn-ease)}
.bn-about-more>div{min-height:0;overflow:hidden}
.bn-about-more.is-open{grid-template-rows:1fr}
.bn-about-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 56px;margin-top:96px;padding-top:48px;border-top:1px solid;border-image:linear-gradient(90deg,rgba(236,246,248,.28),rgba(236,246,248,.06)) 1}
.bn-about-item h3{margin:0 0 14px;font-size:13px;font-weight:600;line-height:1.4;letter-spacing:.16em;text-transform:uppercase;color:var(--bn-accent)}
.bn-about-item p{margin:0 0 12px;font-size:16px;line-height:1.75;color:rgba(236,246,248,.86)}
.bn-about-item p:last-child{margin-bottom:0}
.bn-about-steps{margin:0;padding:0;list-style:none;counter-reset:bn-step}
.bn-about-steps li{position:relative;margin-bottom:12px;padding-left:40px;font-size:16px;line-height:1.6;color:rgba(236,246,248,.86);counter-increment:bn-step}
.bn-about-steps li::before{content:counter(bn-step,decimal-leading-zero);position:absolute;left:0;top:1px;font-size:13px;font-weight:600;letter-spacing:.04em;color:var(--bn-accent)}
.bn-about-cta{margin-top:44px}
a.bn-about-link{display:inline-flex;align-items:center;justify-content:center;height:48px;padding:0 30px;border:1px solid var(--bn-accent);border-radius:999px;font-size:16px;color:#ecf6f8;text-decoration:none;transition:background .3s}
a.bn-about-link:hover{background:var(--bn-accent)}

/* ---------- Инфографика: тонкая строка цифр ---------- */
.bn-numbers{padding:40px 0 0}
.bn-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:0;padding:30px 0;list-style:none;border-top:1px solid;border-bottom:1px solid;border-image:linear-gradient(90deg,transparent,rgba(236,246,248,.24) 15%,rgba(236,246,248,.24) 85%,transparent) 1}
.bn-stat{position:relative;padding:0 12px;text-align:center}
.bn-stat+.bn-stat::before{content:'';position:absolute;left:0;top:14%;bottom:14%;width:1px;background:var(--bn-line)}
.bn-stat-value{margin:0;font-size:40px;font-weight:300;line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--bn-text)}
.bn-stat-suffix{margin-left:2px;font-size:.55em;font-weight:400;vertical-align:.6em;color:var(--bn-accent)}
.bn-stat-label{margin:10px 0 0;font-size:13px;line-height:1.4;color:var(--bn-muted)}

/* ---------- Услуги ---------- */
.bn-services{padding-top:120px}
.bn-services-head{margin-bottom:48px;text-align:center}
.bn-eyebrow{margin:0 0 14px;font-size:14px;font-weight:500;line-height:1.5;letter-spacing:.12em;text-transform:uppercase;color:var(--bn-muted)}
.bn-services-head .titled{margin-bottom:0}
.bn-services-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px;margin:0;padding:0;list-style:none}
.bn-card{position:relative;height:430px;overflow:hidden;isolation:isolate;background:#151517;transition:transform .65s var(--bn-ease),box-shadow .6s}
.bn-card::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(0,0,0,0) 18%,rgba(0,0,0,.4) 55%,rgba(0,0,0,.85));transition:background .5s}
.bn-card picture,.bn-card img{position:absolute;inset:0;z-index:-2;width:100%;height:100%}
.bn-card img{object-fit:cover;filter:brightness(.85);transition:transform 1.1s var(--bn-ease),filter .6s}
.bn-card-body{position:absolute;left:30px;right:30px;bottom:28px}
.bn-card-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.bn-card-title{margin:0;font-size:clamp(20px,2vw,29px);font-weight:600;line-height:1.2;letter-spacing:-.03em;text-transform:uppercase;color:#fff;text-shadow:0 1px 10px rgba(0,0,0,.25)}
.bn-card-title a{color:inherit;text-decoration:none}
.bn-card-title a::after{content:'';position:absolute;inset:0;z-index:1}
.bn-card-plus{flex:0 0 auto;font-size:33px;font-weight:300;line-height:1;color:#fff;transition:transform .6s var(--bn-ease)}  /* «+» всегда белый — карточка на фото (в светлой теме был тёмным и пропадал) */
.bn-card-more{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .6s var(--bn-ease),opacity .4s}
.bn-card-more>div{min-height:0;overflow:hidden}
.bn-card-more p{max-width:360px;margin:16px 0 16px;font-size:13px;line-height:1.8;color:rgba(237,243,245,.9)}
.bn-card-cta{position:relative;z-index:2;display:inline-flex;align-items:center;height:38px;padding:0 20px;border:1px solid var(--bn-accent);border-radius:25px;font-size:13px;line-height:1;color:#fff;text-decoration:none;transition:background .3s}
.bn-card-cta:hover{background:var(--bn-accent)}
.bn-card:hover,.bn-card:focus-within,.bn-card.is-open{z-index:4;transform:scale(1.035);box-shadow:0 24px 60px rgba(0,0,0,.55)}
.bn-card:hover img,.bn-card:focus-within img,.bn-card.is-open img{transform:scale(1.07);filter:brightness(.5)}
.bn-card:hover::after,.bn-card:focus-within::after,.bn-card.is-open::after{background:linear-gradient(180deg,rgba(0,0,0,.5),rgba(0,0,0,.62) 45%,rgba(0,0,0,.9))}
.bn-card:hover .bn-card-more,.bn-card:focus-within .bn-card-more,.bn-card.is-open .bn-card-more{grid-template-rows:1fr;opacity:1}
.bn-card:hover .bn-card-plus,.bn-card:focus-within .bn-card-plus,.bn-card.is-open .bn-card-plus{transform:rotate(45deg)}
.bn-card a:focus-visible{outline:2px solid var(--bn-accent);outline-offset:4px}
.bn-dots{display:none}

/* ---------- Клиенты: бесконечная лента логотипов (медленно, без остановки) ---------- */
.clients .titled{margin-bottom:56px}
.bn-marquee{position:relative;z-index:2;display:flex;overflow:hidden;padding:10px 0;-webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent)}
.bn-marquee-track{display:flex;flex:0 0 auto;align-items:center;gap:0 76px;margin:0;padding:0 76px 0 0;list-style:none;animation:bn-marquee var(--bn-marquee-time,70s) linear infinite;will-change:transform}
.bn-marquee-track li{flex:0 0 auto;display:flex;align-items:center;height:72px}
.bn-marquee-track img{display:block;width:auto;height:var(--h,48px);max-width:none;opacity:.78;filter:grayscale(1) brightness(1.15);transition:opacity .3s}
.bn-marquee-track img:hover{opacity:1}
.bn-marquee-name{font-size:22px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;color:#ecf6f8;opacity:.78}
@keyframes bn-marquee{to{transform:translateX(-100%)}}
@media(prefers-reduced-motion:reduce){.bn-marquee{overflow-x:auto}.bn-marquee-track{animation:none}}

/* ---------- FAQ: строки с тонкими линиями (как было) + блок контактов в стиле темы ---------- */
:root{interpolate-size:allow-keywords}
/* Отступ между лентой клиентов и FAQ: в теме .clients снизу 125px + .fon 50px — сокращаем */
.clients{padding-bottom:70px}
.fon{margin-bottom:20px}
.bn-faq{position:relative;z-index:2;padding:0 0 82px}
.bn-faq .container{display:grid;grid-template-columns:.8fr 1.2fr;gap:10%;padding-top:64px;border-top:1px solid var(--bn-line)}
.bn-faq h2{margin:0 0 24px;font-size:40px;font-weight:700;line-height:1.15;text-transform:uppercase}
.bn-faq-help{margin-top:46px}
.bn-faq-help-title{margin:0 0 8px;font-size:20px;font-weight:600;line-height:1.3;color:var(--bn-text)}
.bn-faq-help-text{max-width:400px;margin:0 0 28px;font-size:15px;line-height:1.7;color:var(--bn-muted)}
.bn-faq-help-list{display:grid;grid-template-columns:repeat(2,max-content);gap:24px 48px;margin:0;padding:0;list-style:none}
.bn-faq-help-list li:last-child{grid-column:1/-1}
.bn-faq-help-list span{display:block;margin-bottom:6px;font-size:12px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--bn-muted)}
.bn-faq-help-list a{font-size:22px;font-weight:500;line-height:1.3;color:var(--bn-text);text-decoration:none;white-space:nowrap;transition:color .3s}
.bn-faq-help-list li:last-child a{font-size:18px}
.bn-faq-help-list a:hover{color:var(--bn-accent)}
.bn-faq-list details{border-bottom:1px solid var(--bn-line)}
.bn-faq-list details:first-child{border-top:1px solid var(--bn-line)}
.bn-faq-list details::details-content{block-size:0;overflow:hidden;transition:block-size .45s var(--bn-ease),content-visibility .45s allow-discrete}
.bn-faq-list details[open]::details-content{block-size:auto}
.bn-faq-list summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:21px 0;list-style:none;cursor:pointer}
.bn-faq-list summary::-webkit-details-marker{display:none}
.bn-faq-list h3{margin:0;font-size:16px;font-weight:500;line-height:1.6}
.bn-faq-list summary span{flex:0 0 auto;font-size:25px;font-weight:300;line-height:1;color:var(--bn-muted);transition:transform .4s var(--bn-ease),color .3s}
.bn-faq-list summary:hover h3{color:#fff}
.bn-faq-list details[open] summary span{transform:rotate(45deg);color:var(--bn-accent)}
.bn-faq-list summary:focus-visible{outline:2px solid var(--bn-accent);outline-offset:4px}
.bn-faq-answer p{max-width:600px;margin:0;padding-bottom:25px;font-size:14px;line-height:1.85;color:var(--bn-muted)}

/* ---------- Подвал: вторая карточка адреса ----------
   По теме .marsh второй карточки сдвинут на left:-85px и раскрывается при наведении — это наложение сохраняем.
   Сдвигаем только текст, чтобы адрес читался целиком и в спокойном состоянии. */
#map a:nth-child(2) .marsh span{transform:translateX(45px);transition:transform .3s}
#map a:nth-child(2):hover .marsh span{transform:none}

/* ---------- Портфолио: карточки одной высоты ----------
   В теме высота карточки = пропорции фото, поэтому фото 489×344 давало карточку выше соседних (3:2).
   Все фото — в рамке 3:2, лишнее обрезается по краям (object-fit:cover уже задан темой). */
.portolio-block .portfolio-item img{aspect-ratio:3/2;height:auto}

/* ================= Страница «Про нас» (page-68.php темы: .abo, .commanda, .why, .dopi) =================
   Дизайн темы сохраняем: заголовки, ч/б фото команды, иконки «Чому варто обрати нас», текст по центру.
   Без карточек, рамок и «пилюль». */
.abo h1.bn-page-title{text-transform:uppercase}
/* Первый экран: первый абзац — крупный лид, второй — спокойнее */
.abo .descr{max-width:640px}
.abo .descr p.bn-lead{font-size:24px;font-weight:400;line-height:1.5}
.abo .descr p:not(.bn-lead){opacity:.86}
/* Команда: розовая надпись над заголовком и короткое вступление под ним */
.abo .bn-team-eyebrow{margin:0 0 12px;font-weight:600;color:var(--bn-accent)}
.abo .bn-team-lead{max-width:880px;margin:-20px 0 64px;font-size:20px;font-weight:300;line-height:1.6;opacity:.86}
.abo .bn-team-lead p{margin:0 0 18px;font:inherit;color:inherit;opacity:1}
.abo .bn-team-lead p:last-child{margin-bottom:0}
/* Телефон и планшет: без пустого чёрного провала между первым экраном и командой;
   акцент — тонкая розовая градиентная линия над надписью (как линии у цифр на главной) */
@media(max-width:1023px){
 .abo .hero{margin-bottom:0}
 .abo .mb85{margin-top:40px}
 .abo .mb85::before{content:"";display:block;height:1px;margin:0 0 36px;background:linear-gradient(90deg,rgba(250,24,92,0),rgba(250,24,92,.85) 50%,rgba(250,24,92,0))}
}
/* Фото с руками — внутри секции «Про нас»: заканчивается над подвалом и растворяется, подвал как на главной */
.abo{position:relative;display:flow-root}
.abo > .ab{bottom:0;-webkit-mask-image:linear-gradient(rgba(0,0,0,0),#000 18%,#000 72%,rgba(0,0,0,0));mask-image:linear-gradient(rgba(0,0,0,0),#000 18%,#000 72%,rgba(0,0,0,0))}
@media(max-width:767px){
 .abo .bn-team-eyebrow{margin-bottom:10px;font-size:11px;text-align:center}
}
/* Команда: ровная сетка 3 колонки до 1440 (тема ставила 350px + 115px — на ноутбуке помещалось по два) */
@media(min-width:1024px) and (max-width:1439px){
 .commanda{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:clamp(40px,6vw,115px);row-gap:clamp(64px,6vw,108px)}
 .commanda-item{display:flex;flex-direction:column}
 .commanda-item img{height:auto;aspect-ratio:350/456;margin-top:auto}
}
/* «Чому варто обрати нас» на 768–1279: шесть пунктов не помещались в строку — 3 + 3 */
@media(min-width:768px) and (max-width:1279px){
 .why{flex-wrap:wrap;justify-content:center;gap:56px 24px}
 .why-item{flex:0 0 calc(33.333% - 16px)}
}
@media(min-width:768px) and (max-width:1023px){
 /* Первый экран на планшете: фото целиком сверху (под шапкой) и растворяется в фон, текст — под ним */
 .abo .hero{min-height:0;background-size:100% auto !important;background-position:0 119px !important;padding-bottom:24px}
 .abo .hero::before{content:"";position:absolute;left:0;right:0;top:calc(119px + 59.2vw - 230px);height:232px;background:linear-gradient(rgba(0,0,0,0),#000);pointer-events:none}
 .abo .padd{padding-top:calc(119px + 59.2vw - 96px)}
 .abo h1.bn-page-title{margin-bottom:28px !important}
 .abo .blur{display:none}
 .abo .descr{max-width:none}
 .commanda{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:56px 28px}
 .commanda-item{display:flex;flex-direction:column}
 .commanda-item img{height:auto;aspect-ratio:3/4;margin-top:auto}
 .abo .bn-team-lead{font-size:18px;margin-bottom:48px}
}
@media screen and (max-width:767px){
 /* Первый экран на телефоне: фото — сверху под шапкой (головы не обрезаются) и растворяется в фон; текст — под ним */
 .abo .hero{background-size:auto 400px !important;background-position:78% 90px !important;padding-bottom:8px}
 .abo .hero::before{content:"";position:absolute;left:0;right:0;top:310px;height:182px;background:linear-gradient(rgba(0,0,0,0),#000);pointer-events:none}
 .abo .padd{padding-top:440px}
 .abo h1.bn-page-title{margin-bottom:20px !important}  /* media.css: .post-68 h1 {margin-bottom:131px !important} — место под кнопку видео */
 .abo .blur{display:none}
 .abo .descr p.bn-lead{font-size:18px;line-height:1.55}
 .abo .descr p:not(.bn-lead){font-size:15px;line-height:1.7}
 .abo .bn-team-lead{margin:-4px 0 36px;font-size:15px;line-height:1.65;text-align:center}
 /* Команда — по два человека в ряд вместо фото на весь экран */
 .commanda{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 14px;justify-content:stretch}
 .commanda-item span{font-size:16px;line-height:1.25;margin-bottom:4px}
 .commanda-item p{font-size:12px;line-height:1.3;margin-bottom:12px}
 .commanda-item{display:flex;flex-direction:column}
 .commanda-item img{height:auto;aspect-ratio:3/4;margin-top:auto}
 /* «Чому варто обрати нас» — компактнее: иконки, цифры и подписи как в теме, 2 в ряд */
 .why{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 16px;margin-bottom:64px}
 .why-item img{width:44px;height:44px}
 .why-item span{margin:8px 0 2px;font-size:22px}
 .why-item p{font-size:12px;line-height:1.35}
}
/* «Чому варто обрати нас» — живая подсветка без рамок: иконка приподнимается и светится розовым, цифра становится розовой.
   Компьютер — при наведении; телефон и планшет — ряд в середине экрана и по нажатию (blocks.js). Цифры досчитываются. */
.why-item img{transition:transform .45s var(--bn-ease),filter .45s}
.why-item span{transition:color .3s}
.why-item.is-on img{transform:translateY(-4px) scale(1.1);filter:drop-shadow(0 0 12px rgba(250,24,92,.75))}
.why-item.is-on span{color:var(--bn-accent)}
@media(hover:hover){
 .why-item:hover img{transform:translateY(-4px) scale(1.1);filter:drop-shadow(0 0 12px rgba(250,24,92,.75))}
 .why-item:hover span{color:var(--bn-accent)}
}

/* Нижний блок «Про нас»: заголовок + шесть разделов (как раскрывающийся блок на главной) + финальные абзацы */
.dopi .bn-dopi-title{max-width:1000px;margin:0 auto;font-size:28px;font-weight:600;line-height:1.35;text-align:center}
.dopi .bn-facts{margin:48px 0 72px}
.dopi .bn-about-item p{font-weight:400}
@media(min-width:768px) and (max-width:1279px){
 .dopi .bn-dopi-title{font-size:24px}
 .dopi .bn-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 48px}
}
@media screen and (max-width:767px){
 .dopi .bn-dopi-title{font-size:20px}
 .dopi .bn-facts{margin:32px 0 48px}
}

/* Финал «Про нас» — цитата основательницы: крупная розовая кавычка, текст по центру, фото, имя и должность.
   Без рамок и подложек — как остальные тексты темы. */
.bn-quote{max-width:940px;margin:96px auto 0;text-align:center}
.bn-quote::before{content:"\201C";display:block;height:56px;font-size:128px;font-weight:700;line-height:1;color:var(--bn-accent)}
.bn-quote blockquote{margin:0}
.dopi .bn-quote blockquote p{margin:0;font-size:30px;font-weight:300;line-height:1.45;text-align:center;letter-spacing:-.01em}
.bn-quote figcaption{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:40px;text-align:left}
.bn-quote img{flex:0 0 auto;width:72px;height:72px;border-radius:50%;object-fit:cover;object-position:50% 18%;filter:grayscale(1)}
.bn-quote figcaption strong{display:block;font-size:18px;font-weight:600;line-height:1.3}
.bn-quote figcaption em{display:block;margin-top:6px;font-size:12px;font-style:normal;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--bn-accent)}
@media(min-width:768px) and (max-width:1279px){
 .bn-quote{margin-top:72px}
 .dopi .bn-quote blockquote p{font-size:26px}
}
@media screen and (max-width:767px){
 .bn-quote{margin-top:56px}
 .bn-quote::before{height:50px;font-size:96px}
 .dopi .bn-quote blockquote p{font-size:20px;line-height:1.5}
 .bn-quote figcaption{gap:12px;margin-top:28px}
 .bn-quote img{width:60px;height:60px}
 .bn-quote figcaption strong{font-size:16px}
 .bn-quote figcaption em{font-size:10.5px;letter-spacing:.12em}
}

/* ================= Страница «Портфоліо» (archive-portfolio.php темы: .port, .port-block, .portfolio-item) =================
   Дизайн темы: первый экран, заголовки блоков по центру, карточки 2 в ряд с подписью слева сверху. */
.port h1.bn-page-title{text-transform:uppercase}
/* Форматы в первом экране — ссылки к блокам (было 6 серых пунктов без ссылок, стало 9 по услугам) */
.port .hero ul.bn-port-nav{flex-wrap:wrap;justify-content:flex-end;gap:6px 36px;max-width:1080px;margin-left:auto}
/* Декоративные лучи темы (img.porti, z-index 123) лежали поверх ссылок и перехватывали нажатия */
.porti{pointer-events:none}
.bn-port-nav li::marker{color:var(--bn-accent)}
.bn-port-nav a{display:block;padding:4px 0;color:rgba(236,246,248,.8);text-decoration:none;transition:color .3s;-webkit-tap-highlight-color:rgba(250,24,92,.2)}
.bn-port-nav a:hover,.bn-port-nav a:focus-visible,.bn-port-nav a[aria-current="true"]{color:var(--bn-accent)}
.bn-light .bn-port-nav a{color:rgba(6,7,10,.78)}
.bn-light .bn-port-nav a:hover,.bn-light .bn-port-nav a:focus-visible,.bn-light .bn-port-nav a[aria-current="true"]{color:var(--bn-accent)}
/* Страница формата: внизу «Усе портфоліо» слева и «Детальніше про послугу» справа */
.portfolio-link.bn-cat-links{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:28px}
.bn-cat-links a.detail{margin-top:0}
.bn-cat-links .bn-cat-back::before{content:"\2039";font-size:24px;line-height:1;margin-right:2px}
/* Выбранный формат: заголовок блока, к которому перешли, становится розовым */
.port h2.titled{transition:color .5s}
.port-block:target h2.titled,.port-block.is-current h2.titled{color:var(--bn-accent)}
/* Заголовки блоков — как «.titled» темы (без подчёркивания .port h2) */
.port h2.titled{display:block;padding-bottom:0;margin-bottom:48px;font-size:48px;font-weight:500;line-height:100%;text-align:center;text-transform:uppercase}
.port h2.titled::after{display:none}
/* Карточки одной высоты (3:2), картинка без зазора снизу */
.port .portfolio-item picture{display:block}
.port .portfolio-item img{display:block;aspect-ratio:3/2;height:auto}
.port .portfolio-link a.detail{margin-top:28px}
/* «Дивитися всі проєкти» / «Усе портфоліо»: тема даёт 50% серый — на чёрном почти не видно.
   Лёгкое свечение без рамок: текст ярче, мягкий розовый ореол за ссылкой, розовая стрелка;
   на наведении ореол ярче и стрелка сдвигается. Ссылка — по ширине текста (кликается только она). */
.port .portfolio-link a.detail{position:relative;isolation:isolate;width:fit-content;margin-left:auto;color:rgba(236,246,248,.9);text-shadow:0 0 16px rgba(250,24,92,.5);transition:color .3s,text-shadow .3s}
.port .portfolio-link a.bn-cat-back{margin-left:0}
.port .portfolio-link a.detail::after{content:"";position:absolute;z-index:-1;inset:-26px -14px -26px -60px;background:radial-gradient(closest-side,rgba(250,24,92,.24),rgba(250,24,92,.08) 55%,rgba(250,24,92,0));opacity:.85;pointer-events:none;transition:opacity .3s,transform .3s}
.port .portfolio-link a.bn-cat-back::after{inset:-26px -60px -26px -14px}
.port .portfolio-link a.bn-cat-back::before{color:var(--bn-accent)}
.port .portfolio-link a.detail svg{flex:0 0 auto;transition:transform .3s}
.port .portfolio-link a.detail svg path,body.bn-light .port .portfolio-link a.detail svg path{fill:var(--bn-accent)}
.port .portfolio-link a.detail:hover,.port .portfolio-link a.detail:focus-visible{color:#fff;text-shadow:0 0 20px rgba(250,24,92,.75)}
.port .portfolio-link a.detail:hover::after,.port .portfolio-link a.detail:focus-visible::after{opacity:1;transform:scale(1.08)}
.port .portfolio-link a.detail:hover svg{transform:translateX(4px)}
body.bn-light .port .portfolio-link a.detail{color:rgba(6,7,10,.86);text-shadow:0 0 14px rgba(250,24,92,.28)}
body.bn-light .port .portfolio-link a.detail::after{background:radial-gradient(closest-side,rgba(250,24,92,.16),rgba(250,24,92,.05) 55%,rgba(250,24,92,0))}
body.bn-light .port .portfolio-link a.detail:hover{color:var(--bn-accent);text-shadow:none}
@media(prefers-reduced-motion:reduce){.port .portfolio-link a.detail:hover svg,.port .portfolio-link a.detail:hover::after{transform:none}}
@media(min-width:768px) and (max-width:1023px){
 .port .hero ul.bn-port-nav{justify-content:flex-start;margin-left:0;padding-left:20px}
}
@media(min-width:768px) and (max-width:1279px){
 .port h2.titled{font-size:40px;margin-bottom:40px}
 .portfolio-flex{gap:32px 28px}
 .portfolio-item{flex-basis:calc(50% - 14px)}
 .port-block{margin-bottom:120px}
}
@media screen and (max-width:767px){
 .port h2.titled{font-size:24px;line-height:1.2;margin-bottom:24px}
 .port .hero ul.bn-port-nav{justify-content:flex-start;gap:0 16px;max-width:none;margin-top:72px;margin-bottom:48px}
 .port .hero ul.bn-port-nav li{margin-bottom:10px;line-height:1.45}
 .port .portfolio-link a.detail{margin-top:16px;font-size:14px}
 .port .portfolio-link a.detail::after{inset:-20px -8px -20px -40px}
 .port .portfolio-link a.bn-cat-back::after{inset:-20px -40px -20px -8px}
}

/* Страница формата: своё фото справа в первом экране (слева затемнение под заголовок), под описанием —
   короткая фраза и кнопка на страницу услуги вместо списка форматов */
.port .absi.bn-cat-photo{width:708px;aspect-ratio:708/452;overflow:hidden}
.port .absi.bn-cat-photo picture,.port .absi.bn-cat-photo img{display:block;width:100%;height:100%;object-fit:cover}
.port .absi.bn-cat-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#000,rgba(0,0,0,.55) 34%,rgba(0,0,0,.12) 72%,rgba(0,0,0,.4)),linear-gradient(0deg,#000,rgba(0,0,0,0) 38%);pointer-events:none}
.bn-light .port .absi.bn-cat-photo img{-webkit-mask-image:none;mask-image:none}
.bn-light .port .absi.bn-cat-photo::after{background:linear-gradient(90deg,#f1ebe6,rgba(241,235,230,.5) 34%,rgba(241,235,230,0) 72%),linear-gradient(0deg,#f1ebe6,rgba(241,235,230,0) 38%)}
.bn-cat-cta{display:flex;align-items:center;justify-content:flex-end;gap:28px;margin:159px 0 129px}
.bn-cat-cta p{max-width:440px;font-size:16px;line-height:1.6;color:rgba(236,246,248,.78)}
.bn-light .bn-cat-cta p{color:rgba(6,7,10,.75)}
.bn-cat-cta a.bn-about-link{flex:0 0 auto}

/* Главная «Портфоліо»: фото первого экрана — первый элемент .hero (вне контейнера), на всю ширину экрана.
   Компьютер, тёмная тема: фото фоном всего экрана, слева (под текстом), сверху и снизу растворяется в чёрный.
   Компьютер, светлая тема: фото справа, края растворяются в светлый фон, под текстом фото нет, текст тёмный.
   Планшет и телефон: фото сверху под шапкой (планшет — широкое, телефон — вертикальное), текст под ним. */
.port .hero:has(> .bn-pf-hero){isolation:isolate}
.port .hero > .absi.bn-pf-hero{max-width:none;background:none;overflow:hidden;pointer-events:none}
.port .absi.bn-pf-hero picture,.port .absi.bn-pf-hero img{display:block;width:100%;height:100%;object-fit:cover}
.port .absi.bn-pf-hero::after{content:"";position:absolute;inset:0;pointer-events:none}
@media(min-width:1024px){
 .port .hero > .absi.bn-pf-hero{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;width:auto;height:auto}
 .port .absi.bn-pf-hero img{object-position:right center}
 .port .absi.bn-pf-hero::after{background:
   linear-gradient(90deg,rgba(0,0,0,.94) 0,rgba(0,0,0,.8) 26%,rgba(0,0,0,.45) 46%,rgba(0,0,0,0) 64%),
   linear-gradient(180deg,rgba(0,0,0,.8) 0,rgba(0,0,0,.35) 120px,rgba(0,0,0,0) 260px),
   linear-gradient(0deg,#000 0,rgba(0,0,0,.75) 14%,rgba(0,0,0,.25) 32%,rgba(0,0,0,0) 48%)}
 .port .hero:has(> .bn-pf-hero) .bn-port-nav a{text-shadow:0 1px 12px rgba(0,0,0,.9)}
 /* светлая тема */
 .bn-light .port .hero > .absi.bn-pf-hero{left:40%}
 .bn-light .port .absi.bn-pf-hero img{
   -webkit-mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.03) 8%,rgba(0,0,0,.12) 17%,rgba(0,0,0,.32) 27%,rgba(0,0,0,.6) 38%,rgba(0,0,0,.86) 49%,#000 60%),linear-gradient(180deg,transparent 0,transparent 96px,rgba(0,0,0,.1) 125px,rgba(0,0,0,.35) 160px,rgba(0,0,0,.7) 210px,rgba(0,0,0,.92) 255px,#000 290px,#000 56%,rgba(0,0,0,.8) 65%,rgba(0,0,0,.52) 73%,rgba(0,0,0,.28) 81%,rgba(0,0,0,.12) 88%,rgba(0,0,0,.04) 94%,transparent 99%);
   -webkit-mask-composite:source-in;
   mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.03) 8%,rgba(0,0,0,.12) 17%,rgba(0,0,0,.32) 27%,rgba(0,0,0,.6) 38%,rgba(0,0,0,.86) 49%,#000 60%),linear-gradient(180deg,transparent 0,transparent 96px,rgba(0,0,0,.1) 125px,rgba(0,0,0,.35) 160px,rgba(0,0,0,.7) 210px,rgba(0,0,0,.92) 255px,#000 290px,#000 56%,rgba(0,0,0,.8) 65%,rgba(0,0,0,.52) 73%,rgba(0,0,0,.28) 81%,rgba(0,0,0,.12) 88%,rgba(0,0,0,.04) 94%,transparent 99%);
   mask-composite:intersect}
 .bn-light .port .absi.bn-pf-hero::after{display:none}
 .bn-light .port .hero:has(> .bn-pf-hero) .descr{max-width:min(663px,42vw)}
 .bn-light .port .hero:has(> .bn-pf-hero) .bn-port-nav a{text-shadow:none}
}
@media(max-width:1023px){
 .port .hero:has(> .bn-pf-hero){padding-top:90px}
 .port .hero > .absi.bn-pf-hero{position:relative;top:auto;right:auto;bottom:auto;left:auto;z-index:0;width:auto;height:auto;margin:0;aspect-ratio:16/9}
 /* края растворяются маской (фото само становится прозрачным) — без шва с фоном в обеих темах;
    слева у широкого фото пустая тёмная часть — тоже растворяется */
 .port .hero > .absi.bn-pf-hero img{opacity:1;
   -webkit-mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.25) 14%,rgba(0,0,0,.7) 30%,#000 46%),linear-gradient(180deg,transparent 0,rgba(0,0,0,.15) 4%,rgba(0,0,0,.5) 10%,rgba(0,0,0,.85) 16%,#000 22%,#000 50%,rgba(0,0,0,.8) 61%,rgba(0,0,0,.53) 71%,rgba(0,0,0,.28) 80%,rgba(0,0,0,.12) 88%,rgba(0,0,0,.04) 94%,transparent 100%);
   -webkit-mask-composite:source-in;
   mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.25) 14%,rgba(0,0,0,.7) 30%,#000 46%),linear-gradient(180deg,transparent 0,rgba(0,0,0,.15) 4%,rgba(0,0,0,.5) 10%,rgba(0,0,0,.85) 16%,#000 22%,#000 50%,rgba(0,0,0,.8) 61%,rgba(0,0,0,.53) 71%,rgba(0,0,0,.28) 80%,rgba(0,0,0,.12) 88%,rgba(0,0,0,.04) 94%,transparent 100%);
   mask-composite:intersect}
 .port .absi.bn-pf-hero::after,.bn-light .port .absi.bn-pf-hero::after{display:none}
 .port .hero:has(> .bn-pf-hero) article{position:relative;z-index:1;margin-top:-48px}
 .port .hero:has(> .bn-pf-hero) ul.bn-port-nav{margin-top:40px;margin-bottom:64px}
}
@media(max-width:767px){
 .port .hero > .absi.bn-pf-hero{aspect-ratio:4/5}
 .port .hero > .absi.bn-pf-hero img{
   -webkit-mask-image:linear-gradient(180deg,transparent 0,rgba(0,0,0,.15) 3%,rgba(0,0,0,.5) 7%,rgba(0,0,0,.85) 11%,#000 15%,#000 48%,rgba(0,0,0,.8) 59%,rgba(0,0,0,.52) 69%,rgba(0,0,0,.27) 78%,rgba(0,0,0,.11) 86%,rgba(0,0,0,.03) 93%,transparent 100%);-webkit-mask-composite:source-over;
   mask-image:linear-gradient(180deg,transparent 0,rgba(0,0,0,.15) 3%,rgba(0,0,0,.5) 7%,rgba(0,0,0,.85) 11%,#000 15%,#000 48%,rgba(0,0,0,.8) 59%,rgba(0,0,0,.52) 69%,rgba(0,0,0,.27) 78%,rgba(0,0,0,.11) 86%,rgba(0,0,0,.03) 93%,transparent 100%);mask-composite:add}
 .port .hero:has(> .bn-pf-hero) ul.bn-port-nav{margin-top:32px;margin-bottom:40px}
}

/* Страница проєкта: первый экран — как у «Портфоліо» (секция .port, фото .bn-pf-hero со всеми правилами выше).
   Над названием — формат (ссылка) и клиент через тонкую линию; есть ролик — круглая кнопка ▶ на фото
   (тонкое кольцо, лёгкий розовый «пульс», при наведении — розовое свечение). */
.bn-pj-eyebrow{display:flex;flex-wrap:wrap;align-items:center;gap:6px 0;margin:0 0 22px;font-size:14px;font-weight:500;line-height:1.4;letter-spacing:.12em;text-transform:uppercase;color:rgba(236,246,248,.78)}
.bn-pj-eyebrow a{color:var(--bn-accent);text-decoration:none;transition:color .3s}
.bn-pj-eyebrow a:hover,.bn-pj-eyebrow a:focus-visible{color:#ecf6f8}
.bn-pj-eyebrow span::before{content:"";display:inline-block;width:32px;height:1px;margin:0 14px;vertical-align:middle;background:currentColor;opacity:.6}
.port h1.bn-pj-title{max-width:780px;margin-bottom:26px;font-size:48px;font-weight:600;line-height:1.12;text-transform:uppercase}
.bn-pj .descr p{margin-bottom:0}
.bn-light .bn-pj-eyebrow{color:rgba(6,7,10,.72)}
.bn-light .bn-pj-eyebrow a:hover,.bn-light .bn-pj-eyebrow a:focus-visible{color:#06070a}
.bn-pj-play{position:absolute;z-index:3;display:block;padding:0;border:0;background:none;color:#fff;cursor:pointer;transform:translate(-50%,-50%);-webkit-tap-highlight-color:transparent}
.bn-pj-play-ring{position:relative;display:flex;align-items:center;justify-content:center;width:132px;height:132px;border:1px solid rgba(236,246,248,.8);border-radius:50%;background:rgba(217,217,217,.15);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);transition:transform .45s var(--bn-ease),border-color .3s,background .3s,box-shadow .45s}
.bn-pj-play-ring svg{margin-left:5px}
.bn-pj-play-ring::after{content:"";position:absolute;inset:-1px;border:1px solid rgba(250,24,92,.75);border-radius:50%;animation:bn-pj-pulse 2.8s ease-out infinite;pointer-events:none}
@keyframes bn-pj-pulse{0%{transform:scale(1);opacity:.9}70%,100%{transform:scale(1.42);opacity:0}}
.bn-pj-play-label{position:absolute;left:50%;top:calc(100% + 18px);transform:translateX(-50%);white-space:nowrap;font-size:13px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:#ecf6f8;text-shadow:0 1px 12px rgba(0,0,0,.8)}
.bn-pj-play:hover .bn-pj-play-ring,.bn-pj-play:focus-visible .bn-pj-play-ring{transform:scale(1.06);border-color:var(--bn-accent);background:rgba(250,24,92,.22);box-shadow:0 0 56px rgba(250,24,92,.5)}
.bn-pj-play:focus{outline:none}
.bn-pj-play:focus-visible .bn-pj-play-ring{outline:2px solid var(--bn-accent);outline-offset:5px}
.bn-video-note{margin:0;padding:56px 40px;font-size:18px;line-height:1.6;text-align:center;color:#ecf6f8}
@media(prefers-reduced-motion:reduce){.bn-pj-play-ring::after{animation:none;opacity:0}}
@media(min-width:1024px){
 /* название и текст — внизу слева, на тёмном низе фото; кнопка ▶ — на самой яркой части кадра */
 .bn-pj .hero{box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;min-height:clamp(680px,100vh,920px);padding-bottom:110px}
 .bn-pj .hero > .absi.bn-pf-hero{bottom:auto;height:clamp(680px,100vh,920px)}
 .bn-pj .hero.is-reading{justify-content:flex-start}
 /* кнопка ▶ привязана к фото (высота фото = первый экран), а не ко всему блоку — при раскрытом тексте не съезжает */
 .bn-pj-play{left:72%;top:calc(clamp(680px,100vh,920px) * .44)}
 /* текст первого экрана — в левой половине (не шире 52% экрана), кнопка ▶ — правее, на фото: не наезжают при любой ширине и высоте окна */
 .bn-pj-eyebrow,.port h1.bn-pj-title{max-width:min(780px,52vw)}
 .bn-pj .descr{max-width:min(660px,48vw)}
 .bn-light .port h1.bn-pj-title{max-width:min(780px,44vw)}
}
@media(max-width:1023px){
 .bn-pj .hero{container-type:inline-size}
 .bn-pj-play{left:50%;top:calc(90px + 28.125cqw)}
 .port h1.bn-pj-title{font-size:34px;margin-bottom:20px}
 .bn-pj-eyebrow{margin-bottom:16px}
}
@media(max-width:767px){
 .bn-pj .hero > .absi.bn-pf-hero{aspect-ratio:1}
 .bn-pj-play{top:calc(90px + 50cqw)}
 .bn-pj-play-ring{width:92px;height:92px}
 .bn-pj-play-ring svg{width:24px;height:24px;margin-left:4px}
 .bn-pj-play-label{top:calc(100% + 12px);font-size:12px}
 .port h1.bn-pj-title{font-size:24px;line-height:1.2}
 .bn-pj-eyebrow{font-size:12px;letter-spacing:.1em}
 .bn-pj-eyebrow span::before{width:20px;margin:0 10px}
}

/* Страница проєкта: текст. Первый абзац — в первом экране; остальное (700–1500 слов) раскрывается кнопкой
   «Читати повністю» и читается колонкой; в конце — «Згорнути». Без JS всё открыто. */
.bn-pj .descr{max-width:660px}
.bn-pj-toggle{display:none}
.bn-js .bn-pj-toggle{display:inline-flex;align-items:center;gap:10px;margin-top:22px;padding:0;border:0;background:none;font:inherit;font-size:16px;line-height:1.4;color:rgba(236,246,248,.92);text-shadow:0 0 16px rgba(250,24,92,.5);cursor:pointer;transition:color .3s,text-shadow .3s}
.bn-pj-toggle svg{flex:0 0 auto;color:var(--bn-accent);transition:transform .45s var(--bn-ease)}
.bn-pj-toggle:hover{color:#fff;text-shadow:0 0 20px rgba(250,24,92,.75)}
.bn-pj-toggle:hover svg{transform:translateY(3px)}
.bn-pj-toggle-end svg{transform:rotate(180deg)}
.bn-pj-toggle-end:hover svg{transform:rotate(180deg) translateY(3px)}
.bn-pj-toggle:focus{outline:none}
.bn-pj-toggle:focus-visible{outline:2px solid var(--bn-accent);outline-offset:6px;border-radius:4px}
.bn-js .bn-pj-head .bn-pj-toggle[aria-expanded="true"]:not(.bn-pj-toggle-end){display:none}
.bn-js .bn-pj-more{display:grid;grid-template-rows:0fr;transition:grid-template-rows .8s var(--bn-ease)}
.bn-js .bn-pj-more>div{min-height:0;overflow:hidden}
.bn-js .bn-pj-more.is-open{grid-template-rows:1fr}
/* раскрытый текст — как «Детальніше» на главной (.bn-about-grid / .bn-about-item): блоки с розовыми подзаголовками */
.bn-pj .bn-pj-story{margin-top:48px;outline:none}
.bn-pj-story-intro{grid-column:1/-1;margin:0;font-size:16px;line-height:1.75;color:rgba(236,246,248,.86)}
.port .bn-pj-story h2{display:block;margin:0 0 14px;padding:0;font-size:13px;font-weight:600;line-height:1.4;letter-spacing:.16em;text-transform:uppercase;color:var(--bn-accent)}
.port .bn-pj-story h2::after{display:none}
.bn-pj-story-foot{margin-top:40px}
.bn-js .bn-pj-story-foot .bn-pj-toggle{margin-top:0}
.bn-light .bn-pj-story-intro{color:rgba(6,7,10,.82)}
.bn-light .bn-pj-toggle{color:rgba(6,7,10,.86);text-shadow:0 0 14px rgba(250,24,92,.25)}
.bn-light .bn-pj-toggle:hover{color:var(--bn-accent);text-shadow:none}
@media(prefers-reduced-motion:reduce){.bn-js .bn-pj-more{transition:none}}
/* ноутбук: заголовок и текст компактнее, фото под текстом темнее — текст читается на любом кадре */
@media(min-width:1024px){
 .port h1.bn-pj-title{font-size:clamp(34px,3.2vw,48px)}
 .bn-pj .absi.bn-pf-hero::after{background:
   linear-gradient(90deg,rgba(0,0,0,.95) 0,rgba(0,0,0,.86) 30%,rgba(0,0,0,.55) 50%,rgba(0,0,0,.2) 66%,rgba(0,0,0,0) 80%),
   linear-gradient(180deg,rgba(0,0,0,.8) 0,rgba(0,0,0,.35) 120px,rgba(0,0,0,0) 260px),
   linear-gradient(0deg,#000 0,rgba(0,0,0,.85) 16%,rgba(0,0,0,.4) 36%,rgba(0,0,0,0) 56%)}
}
@media(min-width:1024px) and (max-width:1439px){
 .bn-pj .descr,.bn-pj .descr p{font-size:17px;line-height:1.6}
 .bn-pj .descr{max-width:600px}
 .bn-pj .hero{padding-bottom:84px}
}
@media(min-width:1024px) and (max-width:1279px){
 .bn-pj .descr{max-width:min(520px,46vw)}
}

/* Инфографика в стиле цифр главной — общий блок: «Факти про проєкт» (.singler .port-numbs) и «Що таке ідеальний івент» на «Послугах» (.bn-strip).
   Страница проєкта, инфографика «Факти про проєкт» («Инфоблоки» из админки — сколько угодно строк).
   Стиль — как цифры на главной (.bn-stats): тонкие линии сверху и снизу (тают к краям), лёгкое число с розовым «+»,
   маленькая подпись, тонкие разделители между пунктами. Иконки из админки не показываем (выбран вариант 1).
   Пункт без числа — подпись становится главным текстом. Колонок столько, чтобы ряды были ровными:
   3 → 3, 4 → 4, 5–6 → 3, 7–8 → 4; на телефоне — 2. Числа досчитываются при прокрутке (blocks.js). */
:is(.singler .port-numbs,.bn-strip){margin-top:96px}
.bn-pj-facts-title{margin:0 0 24px;font-size:14px;font-weight:500;line-height:1.4;letter-spacing:.14em;text-transform:uppercase;color:var(--bn-accent)}
:is(.singler .port-numbs,.bn-strip) .numbs-block{display:grid;grid-template-columns:repeat(var(--bn-cols,4),minmax(0,1fr));align-items:stretch;gap:28px 0;padding:30px 0;overflow:hidden;border-top:1px solid;border-bottom:1px solid;border-left:0;border-right:0;border-image:linear-gradient(90deg,transparent,rgba(236,246,248,.24) 15%,rgba(236,246,248,.24) 85%,transparent) 1}
.bn-light :is(.singler .port-numbs,.bn-strip) .numbs-block{border-image:linear-gradient(90deg,transparent,rgba(6,7,10,.28) 15%,rgba(6,7,10,.28) 85%,transparent) 1}
:is(.singler .port-numbs,.bn-strip) .numbs-block:not(:has(> :nth-child(4))){--bn-cols:3}
:is(.singler .port-numbs,.bn-strip) .numbs-block:has(> :nth-child(5)):not(:has(> :nth-child(7))){--bn-cols:3}
:is(.singler .port-numbs,.bn-strip) .numbs-item{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:0;max-width:none;min-width:0;padding:0 16px;text-align:center}
/* разделитель — слева от каждого пункта; у первого в ряду он уходит за край блока и обрезается */
:is(.singler .port-numbs,.bn-strip) .numbs-item::after{content:"";position:absolute;left:-1px;top:14%;bottom:14%;width:1px;background:var(--bn-line)}
:is(.singler .port-numbs,.bn-strip) .numbs-item img{display:none}
:is(.singler .port-numbs,.bn-strip) .numbs-item > div{min-width:0;overflow-wrap:break-word}
:is(.singler .port-numbs,.bn-strip) .numbs-item span{display:block;margin:0;font-size:40px;font-weight:300;line-height:1;letter-spacing:-.03em;white-space:nowrap;color:var(--bn-text)}
:is(.singler .port-numbs,.bn-strip) .numbs-item span:empty{display:none}
:is(.singler .port-numbs,.bn-strip) .numbs-item .bn-num{font-weight:inherit;font-variant-numeric:tabular-nums}
:is(.singler .port-numbs,.bn-strip) .numbs-item i{font-style:normal}
:is(.singler .port-numbs,.bn-strip) .numbs-item .bn-suffix{margin-left:2px;font-size:.55em;font-weight:400;vertical-align:.6em;color:var(--bn-accent)}
:is(.singler .port-numbs,.bn-strip) .numbs-item .bn-unit{margin-left:6px;font-size:.45em;font-weight:400;letter-spacing:0;color:var(--bn-text)}
:is(.singler .port-numbs,.bn-strip) .numbs-item p{margin:10px 0 0;font-size:13px;line-height:1.4;color:var(--bn-muted)}
/* пункт без числа: первое слово — акцентом, тем же тонким шрифтом, что и числа (чуть меньше, чтобы длинные слова
   помещались в колонку), остальное — серой подписью, как у цифр. Слово отделяет шаблон; в админке текст целиком в «Описании». */
:is(.singler .port-numbs,.bn-strip) .numbs-item span.bn-fact-word{max-width:100%;font-size:34px;letter-spacing:-.02em;overflow-wrap:anywhere}
:is(.singler .port-numbs,.bn-strip) .numbs-item p:empty{display:none}
/* запасной вариант, если подпись пришла одна (без разбивки) */
:is(.singler .port-numbs,.bn-strip) .numbs-item span:empty + p{margin:0;font-size:15px;line-height:1.45;color:var(--bn-text)}
@media(max-width:1023px){
 :is(.singler .port-numbs,.bn-strip){margin-top:64px}
 :is(.singler .port-numbs,.bn-strip) .numbs-item span{font-size:34px}
 :is(.singler .port-numbs,.bn-strip) .numbs-item span.bn-fact-word{font-size:24px}
}
@media(min-width:1024px) and (max-width:1279px){:is(.singler .port-numbs,.bn-strip) .numbs-item span.bn-fact-word{font-size:30px}}
@media(max-width:767px){
 :is(.singler .port-numbs,.bn-strip){margin-top:48px}
 .bn-pj-facts-title{margin-bottom:18px;font-size:12px}
 :is(.singler .port-numbs,.bn-strip) .numbs-block,
 :is(.singler .port-numbs,.bn-strip) .numbs-block:not(:has(> :nth-child(4))),
 :is(.singler .port-numbs,.bn-strip) .numbs-block:has(> :nth-child(5)):not(:has(> :nth-child(7))){--bn-cols:2;gap:22px 0;padding:22px 0}
 :is(.singler .port-numbs,.bn-strip) .numbs-item{padding:0 8px}
 :is(.singler .port-numbs,.bn-strip) .numbs-item span{font-size:28px}
 :is(.singler .port-numbs,.bn-strip) .numbs-item p{margin-top:8px;font-size:12px}
 :is(.singler .port-numbs,.bn-strip) .numbs-item span:empty + p{font-size:13px;line-height:1.4}
 :is(.singler .port-numbs,.bn-strip) .numbs-item span.bn-fact-word{font-size:22px}
 .bn-pj .bn-pj-story{margin-top:32px}
 .bn-pj-story-intro{font-size:14.5px;line-height:1.7}
 .bn-pj-story-foot{margin-top:28px}
}

/* ================= «Послуги» ================= */
/* Цифры 01–05 ведут по блокам страницы; под фиксированной шапкой блок не прячется */
/* заголовки — капсом, как на сайте; абзацы первого экрана с отступом (на сайте между ними был пустой абзац) */
.poslugi h1.bn-page-title,.poslugi .services-title,.poslugi .ideal-title{text-transform:uppercase}
.poslugi .hero .descr p+p{margin-top:18px}
/* первый экран: высота по тексту (в теме — фиксированная, и длинный текст наезжал на «Етапи»); текст начинается там же, где раньше */
.poslugi .hero{height:auto;min-height:900px}
.poslugi .hero article{position:relative;top:auto;left:auto;padding:400px 0 110px}
@media screen and (max-width:767px){
 /* телефон — как «Про нас»: фото целиком сверху под шапкой (лица не закрыты текстом), внизу растворяется в фон; текст — под фото */
 .poslugi .hero{height:auto;min-height:0;background-size:auto 420px !important;background-position:42% 90px !important;background-repeat:no-repeat !important;background-color:#000 !important}
 .poslugi .hero::after{background:linear-gradient(180deg,rgba(0,0,0,.55) 0,rgba(0,0,0,0) 150px,rgba(0,0,0,0) 330px,#000 510px) !important}
 .poslugi .hero article{padding:450px 0 56px}
 body.bn-light .poslugi .hero{background-color:#f1ebe6 !important}
 body.bn-light .poslugi .hero::after{background:linear-gradient(180deg,rgba(241,235,230,.5) 0,rgba(241,235,230,0) 150px,rgba(241,235,230,0) 330px,#f1ebe6 510px) !important}
}
/* светлая тема: white.css растворяет фото в белый (#fff), а фон страницы бежевый — низ фото обрывался краем,
   и тянет «Етапи» на 65px вверх, на фото. Растворяем в бежевый (слева под текстом и снизу), этапы — без наезда. */
body.bn-light .poslugi .hero::after{background:linear-gradient(90deg,#f1ebe6 0,rgba(241,235,230,.88) 30%,rgba(241,235,230,.2) 60%,rgba(241,235,230,0) 75%),linear-gradient(0deg,#f1ebe6 0,rgba(241,235,230,.6) 14%,rgba(241,235,230,0) 36%)}
body.bn-light .poslugi .services{margin-top:0}
/* Этапы: крыло Batina раскрывается от шага к шагу — на каждом шаге дорисовывается следующий слой фирменного пера
   (зелёный → розовый → белый), на четвёртом крыло целиком, с заливкой и розовым свечением.
   Под крыльями — тонкая линия, по ней идёт розовый прогресс, точки шагов загораются по очереди. */
.poslugi .services-desc{max-width:760px}
.bn-steps{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 48px;margin:64px 0 140px;padding:0;list-style:none}
.bn-steps::before,.bn-steps::after{content:"";position:absolute;left:0;right:0;top:200px;height:1px;background:var(--bn-line)}
.bn-steps::after{background:linear-gradient(90deg,var(--bn-accent),rgba(250,24,92,.25));transform:scaleX(0);transform-origin:left;transition:transform 2.8s var(--bn-ease) .2s}
.bn-steps.is-in::after{transform:scaleX(1)}
.bn-step{position:relative;padding-top:232px}
.bn-step::before{content:"";position:absolute;left:0;top:196px;width:9px;height:9px;border-radius:50%;background:#06070a;border:1px solid rgba(236,246,248,.5);transition:background .5s,border-color .5s,box-shadow .5s;transition-delay:calc(var(--i) * .6s + .3s)}
.bn-wing{position:absolute;left:-8px;top:0;width:200px;height:184px;overflow:visible;fill:none;stroke-width:.55;transition:filter 1.4s}
.bn-wing use{stroke-dasharray:1 1;stroke-dashoffset:0;transition:stroke-dashoffset 2s cubic-bezier(.45,.05,.3,1),opacity .6s,fill-opacity 1.2s}
.bn-wing-g{stroke:#18900e}
.bn-wing-p{stroke:#c51348}
.bn-wing-w{stroke:#ecf6f8;fill:#f9e9e9;fill-opacity:0}
/* слои по шагам: 1 — зелёный; 2 — + розовый; 3 — + белый; 4 — всё; слои прошлых шагов приглушены */
.bn-step[data-stage="1"] :is(.bn-wing-p,.bn-wing-w),.bn-step[data-stage="2"] .bn-wing-w{display:none}
.bn-step[data-stage="2"] .bn-wing-g,.bn-step[data-stage="3"] :is(.bn-wing-g,.bn-wing-p){opacity:.4}
/* новый слой шага дорисовывается, когда этапы появляются на экране (по очереди) */
.bn-js .bn-step[data-stage="1"] .bn-wing-g,.bn-js .bn-step[data-stage="2"] .bn-wing-p,.bn-js .bn-step[data-stage="3"] .bn-wing-w,.bn-js .bn-step[data-stage="4"] .bn-wing use{stroke-dashoffset:1;transition-delay:calc(var(--i) * .6s)}
:is(.bn-steps.is-in .bn-step,.bn-step.is-in) .bn-wing use{stroke-dashoffset:0}
:is(.bn-steps.is-in .bn-step,.bn-step.is-in)::before{background:var(--bn-accent);border-color:var(--bn-accent);box-shadow:0 0 12px rgba(250,24,92,.8)}
:is(.bn-steps.is-in .bn-step,.bn-step.is-in)[data-stage="4"] .bn-wing-w{fill-opacity:.55;transition-delay:calc(var(--i) * .6s + 1.2s)}
:is(.bn-steps.is-in .bn-step,.bn-step.is-in)[data-stage="4"] .bn-wing{filter:drop-shadow(0 0 16px rgba(250,24,92,.5));transition-delay:calc(var(--i) * .6s + 1.4s)}
.bn-step-num{display:block;margin:0 0 10px;font-size:13px;font-weight:600;line-height:1.4;letter-spacing:.16em;color:var(--bn-accent)}
.bn-step-title{margin:0 0 14px;font-size:24px;font-weight:600;line-height:1.2;color:var(--bn-text)}
.bn-step p{margin:0;font-size:16px;line-height:1.7;color:rgba(236,246,248,.78)}
/* светлая тема: на бежевом тонкие линии теряли яркость — слои прошлых шагов не так приглушены, линии чуть толще,
   у каждого крыла лёгкое розовое свечение, у четвёртого — заметная заливка и свечение, как в тёмной теме */
.bn-light .bn-wing{stroke-width:.7;filter:drop-shadow(0 0 0 rgba(250,24,92,0))}
.bn-light .bn-wing-w{stroke:#06070a;fill:#c51348}
.bn-light .bn-step[data-stage="2"] .bn-wing-g,.bn-light .bn-step[data-stage="3"] :is(.bn-wing-g,.bn-wing-p){opacity:.62}
.bn-light :is(.bn-steps.is-in .bn-step,.bn-step.is-in) .bn-wing{filter:drop-shadow(0 0 8px rgba(250,24,92,.22))}
.bn-light :is(.bn-steps.is-in .bn-step,.bn-step.is-in)[data-stage="4"] .bn-wing{filter:drop-shadow(0 0 16px rgba(250,24,92,.45))}
.bn-light :is(.bn-steps.is-in .bn-step,.bn-step.is-in)[data-stage="4"] .bn-wing-w{fill-opacity:.2}
.bn-light .bn-step::before{background:#f1ebe6;border-color:rgba(6,7,10,.45)}
.bn-light .bn-step p{color:rgba(6,7,10,.75)}
@media(prefers-reduced-motion:reduce){.bn-js .bn-wing use{stroke-dashoffset:0 !important;transition:none}.bn-steps::after{transition:none}}
/* Карточки форматов — те же, что на главной, но вертикальные */
.bn-services-tall{padding-top:0}
.bn-services-tall .bn-card{height:auto;aspect-ratio:3/4}
/* «Що таке ідеальний івент» — инфографика в стиле цифр главной: слово-акцент и подпись */
.poslugi .ideal{padding-top:120px}
.poslugi .ideal .bn-strip{margin:0 0 140px}
.bn-strip.bn-strip-accent .numbs-item span.bn-fact-word{font-size:30px}
/* инфографика с акцентами (.bn-strip-accent: «Що таке ідеальний івент» на «Послугах», «Що ми пропонуємо» на страницах услуг): розовый номер над словом; пункты появляются по очереди, затем по словам один раз пробегает розовая искра;
   на компьютере слово при наведении загорается розовым со свечением, разделитель розовеет;
   на телефоне и планшете так же подсвечивается пункт в середине экрана (как «Чому варто обрати нас» на «Про нас») */
.bn-strip.bn-strip-accent .bn-ideal-num{display:block;margin:0 0 10px;font-size:12px;font-weight:600;line-height:1.4;letter-spacing:.18em;color:var(--bn-accent)}
.bn-strip.bn-strip-accent .numbs-item span.bn-fact-word{transition:color .45s,text-shadow .45s}
.bn-strip.bn-strip-accent .numbs-item p{transition:color .45s}
.bn-strip.bn-strip-accent .numbs-item::after{transition:background .45s}
.bn-js .bn-strip.bn-strip-accent .numbs-item{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .9s var(--bn-ease);transition-delay:calc(var(--n,0) * 70ms)}
.bn-js .bn-strip.bn-strip-accent.is-in .numbs-item{opacity:1;transform:none}
.bn-strip.bn-strip-accent.is-in .numbs-item span.bn-fact-word{animation:bn-ideal-spark 1.6s ease calc(var(--n,0) * 110ms + .7s) 1 backwards}
@keyframes bn-ideal-spark{0%,100%{color:var(--bn-text);text-shadow:none}35%{color:var(--bn-accent);text-shadow:0 0 18px rgba(250,24,92,.8)}}
.bn-strip.bn-strip-accent .numbs-item.is-on span.bn-fact-word{color:var(--bn-accent);text-shadow:0 0 18px rgba(250,24,92,.75)}
.bn-strip.bn-strip-accent .numbs-item.is-on p{color:var(--bn-text)}
.bn-strip.bn-strip-accent .numbs-item.is-on::after{background:var(--bn-accent)}
@media(hover:hover){
 .bn-strip.bn-strip-accent .numbs-item:hover span.bn-fact-word{color:var(--bn-accent);text-shadow:0 0 18px rgba(250,24,92,.75)}
 .bn-strip.bn-strip-accent .numbs-item:hover p{color:var(--bn-text)}
 .bn-strip.bn-strip-accent .numbs-item:hover::after{background:var(--bn-accent)}
}
.bn-light .bn-strip.bn-strip-accent .numbs-item.is-on span.bn-fact-word{text-shadow:0 0 14px rgba(250,24,92,.35)}
@media(hover:hover){.bn-light .bn-strip.bn-strip-accent .numbs-item:hover span.bn-fact-word{text-shadow:0 0 14px rgba(250,24,92,.35)}}
@media(prefers-reduced-motion:reduce){
 .bn-js .bn-strip.bn-strip-accent .numbs-item{opacity:1;transform:none;transition:none}
 .bn-strip.bn-strip-accent.is-in .numbs-item span.bn-fact-word{animation:none}
}
@media(min-width:1024px) and (max-width:1279px){
 .bn-steps{gap:0 32px}
 .bn-wing{width:170px;height:156px}
 .bn-steps::before,.bn-steps::after{top:176px}
 .bn-step::before{top:172px}
 .bn-step{padding-top:206px}
 .bn-step-title{font-size:21px}
 .bn-step p{font-size:15px}
 .bn-strip.bn-strip-accent .numbs-item span.bn-fact-word{font-size:26px}
}
@media(max-width:1023px){
 /* планшет и телефон: компактная вертикальная линия времени — слева тонкая линия с точками шагов,
    розовый прогресс идёт вниз по мере прокрутки; крыло — справа рядом с заголовком, текст его обтекает;
    каждый шаг раскрывается (крыло дорисовывается, точка загорается), когда до него дошла прокрутка */
 .bn-steps{display:block;margin:32px 0 88px;padding-left:30px}
 .bn-steps::before,.bn-steps::after{left:4px;right:auto;top:6px;bottom:10px;width:1px;height:auto}
 .bn-steps::after{transform:scaleY(var(--bn-progress,0));transform-origin:top;transition:transform .2s linear;background:linear-gradient(180deg,var(--bn-accent),rgba(250,24,92,.45))}
 .bn-steps.is-in::after{transform:scaleY(1)}
 .bn-step{--i:0 !important;padding-top:0}
 .bn-step+.bn-step{margin-top:44px}
 .bn-step::after{content:"";display:block;clear:both}
 .bn-step::before{left:-30px;top:3px}
 .bn-wing{position:relative;top:auto;left:auto;float:right;width:150px;height:138px;margin:-14px -10px 6px 16px}
 .bn-step-num{margin-bottom:8px}
 .bn-step-title{margin-bottom:10px}
 .bn-strip.bn-strip-accent .numbs-item span.bn-fact-word{font-size:24px}
 .poslugi .ideal .bn-strip{margin-bottom:96px}
 .poslugi .ideal{padding-top:88px}
}
@media(max-width:767px){
 .bn-steps{margin:24px 0 64px;padding-left:26px}
 .bn-step+.bn-step{margin-top:36px}
 .bn-step::before{left:-26px}
 .bn-wing{width:112px;height:103px;margin:-12px -8px 2px 10px}
 .bn-step-title{font-size:20px}
 .bn-step p{font-size:14.5px}
 .bn-services-tall .bn-card{aspect-ratio:4/5}
 .bn-strip.bn-strip-accent .numbs-item span.bn-fact-word{font-size:20px}
 .poslugi .ideal .bn-strip{margin-bottom:64px}
 .poslugi .ideal{padding-top:64px}
}

/* «Послуги» → «Про агенцію» (под «Що таке ідеальний івент»): заголовок слева и вступ справа — как в FAQ,
   под ними блоки текста со ссылками на страницы услуг; дальше цифры и клиенты — как на главной, и вопросы */
.bn-sv-agency{position:relative;z-index:2;padding:0 0 110px}
.bn-sv-agency-head{display:grid;grid-template-columns:.8fr 1.2fr;gap:10%;padding-top:64px;border-top:1px solid var(--bn-line)}
.bn-sv-agency h2{margin:0;font-size:40px;font-weight:700;line-height:1.15;text-transform:uppercase}
.bn-sv-agency-lead{margin:35px 0 0;font-size:18px;line-height:1.75;color:rgba(236,246,248,.86)}
.bn-sv-agency .bn-about-grid{margin-top:72px}
.bn-about-item a{color:inherit;text-decoration:underline;text-decoration-color:rgba(250,24,92,.7);text-decoration-thickness:1px;text-underline-offset:4px;transition:color .2s,text-decoration-color .2s}
.bn-about-item a:hover{color:var(--bn-accent);text-decoration-color:currentColor}
.bn-numbers.bn-sv-numbers{padding:0 0 110px}
.bn-sv-clients{padding-top:0}
.bn-light .bn-sv-agency-lead{color:rgba(6,7,10,.82)}
@media(min-width:1024px) and (max-width:1279px){.bn-sv-agency h2{font-size:32px}}
@media(max-width:1023px){
 .bn-sv-agency-head{grid-template-columns:1fr;gap:0}
 .bn-sv-agency-lead{margin-top:24px}
 .bn-sv-agency .bn-about-grid{margin-top:48px}
 .bn-sv-agency,.bn-numbers.bn-sv-numbers{padding-bottom:88px}
}
@media(max-width:767px){
 .bn-sv-agency-head{padding-top:36px}
 .bn-sv-agency h2{font-size:24px}
 .bn-sv-agency-lead{font-size:15.5px;line-height:1.7}
 .bn-sv-agency .bn-about-grid{margin-top:32px}
 .bn-sv-agency,.bn-numbers.bn-sv-numbers{padding-bottom:64px}
}

/* «Про нас» → «Історія»: редакционный текст. Слева содержание (стоит на месте при прокрутке), справа разделы;
   на планшете содержание над текстом в две колонки, на телефоне — в одну */
.bn-story{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.6fr);gap:0 8%;margin-top:72px;padding-top:56px;border-top:1px solid var(--bn-line)}
.bn-story .bn-toc{position:sticky;top:130px;align-self:start;margin:0}
.bn-story .bn-toc ol{columns:1}
.bn-story-text{font-size:18px;font-weight:400;line-height:1.75}
.bn-story-text section{scroll-margin-top:120px}
.bn-story-text section+section{margin-top:56px}
.bn-story-text h3{margin:0 0 18px;font-size:26px;font-weight:600;line-height:1.25;text-transform:none;letter-spacing:0;color:var(--bn-text)}
.bn-story-text p{margin:0 0 18px;font-size:inherit;font-weight:400;line-height:inherit;color:rgba(236,246,248,.86)}
.bn-story-text p:last-child{margin-bottom:0}
.bn-story-text a{color:inherit;text-decoration:underline;text-decoration-color:rgba(250,24,92,.7);text-decoration-thickness:1px;text-underline-offset:4px;transition:color .2s,text-decoration-color .2s}
.bn-story-text a:hover{color:var(--bn-accent);text-decoration-color:currentColor}
.bn-light .bn-story-text p{color:rgba(6,7,10,.82)}
.bn-story + .bn-quote{margin-top:96px}
@media(max-width:1023px){
 .bn-story{grid-template-columns:1fr;margin-top:48px;padding-top:40px}
 .bn-story .bn-toc{position:static;margin-bottom:48px}
 .bn-story .bn-toc ol{columns:2}
 .bn-story-text h3{font-size:23px}
}
@media(max-width:767px){
 .bn-story{margin-top:32px;padding-top:28px}
 .bn-story .bn-toc{margin-bottom:36px}
 .bn-story .bn-toc ol{columns:1}
 .bn-story-text{font-size:16px;line-height:1.7}
 .bn-story-text h3{font-size:20px;margin-bottom:14px}
 .bn-story-text section{scroll-margin-top:96px}
 .bn-story-text section+section{margin-top:40px}
 .bn-story + .bn-quote{margin-top:64px}
}

/* ================= Страница услуги — один шаблон на 9 услуг (/poslugi/<формат>/) =================
   первый экран — как у страницы проєкта (+ кнопка «Обговорити захід»); «Що ми пропонуємо» — инфографика с акцентами,
   как на «Послугах»; «Чому ми» — цифры главной, фото и текст с «Читати повністю»; 4 проєкта формата; FAQ — как на главной */
.bn-sv .bn-sv-cta{margin-top:30px}
.bn-sv-page .titled{display:block;margin:0 0 48px;padding:0;font-size:48px;font-weight:500;line-height:1.1;text-align:center;text-transform:uppercase;color:var(--bn-text)}
.bn-sv-page .titled::after{display:none}
.bn-sv-offer{padding-top:120px}
.bn-sv-offer .bn-strip{margin:0}
.bn-sv-why{padding-top:140px}
.bn-sv-why-grid{display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1fr) minmax(0,1.3fr);gap:0 56px;align-items:start}
.bn-sv-stats-title{margin:0 0 18px;font-size:13px;font-weight:600;line-height:1.4;letter-spacing:.16em;text-transform:uppercase;color:var(--bn-accent)}
.bn-sv-stats ul{margin:0;padding:0;list-style:none}
.bn-sv-stats li{display:flex;flex-direction:column;gap:8px;padding:22px 0;border-top:1px solid var(--bn-line)}
.bn-sv-stats li:last-child{border-bottom:1px solid var(--bn-line)}
.bn-sv-num{font-size:44px;font-weight:300;line-height:1;letter-spacing:-.03em;white-space:nowrap;color:var(--bn-text)}
.bn-sv-num b{font-weight:inherit;font-variant-numeric:tabular-nums}
.bn-sv-num .bn-suffix{margin-left:2px;font-size:.55em;font-style:normal;font-weight:400;vertical-align:.6em;color:var(--bn-accent)}
.bn-sv-label{font-size:14px;line-height:1.4;color:var(--bn-muted)}
.bn-sv-photo{margin:0;overflow:hidden}
.bn-sv-photo img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover}
.bn-sv-text h2{margin:0 0 22px;font-size:32px;font-weight:600;line-height:1.2;color:var(--bn-text)}
.bn-sv-text p{margin:0 0 16px;font-size:16px;line-height:1.75;color:rgba(236,246,248,.86)}
.bn-js .bn-sv-text > .bn-pj-toggle{margin-top:6px}
.bn-js .bn-sv-text > .bn-pj-toggle[aria-expanded="true"]{display:none}
/* «Читати повністю» раскрывает под всем блоком (под фото, на всю ширину) сетку разделов — как «Детальніше» на главной */
.bn-sv-more .bn-about-grid{margin-top:64px;outline:none}
.bn-sv-more .bn-pj-toggle-end{margin-top:36px}
/* слева — переваги формата: слово-акцент тонким шрифтом (как цифры) и подпись */
.bn-sv-num.bn-sv-word{font-size:36px;letter-spacing:-.02em}
.bn-light .bn-sv-text p{color:rgba(6,7,10,.82)}
.bn-sv-port{padding-top:140px}
.bn-sv-port .port-block{margin-bottom:0}
.bn-sv-port + .bn-faq{margin-top:40px}
@media(min-width:1024px) and (max-width:1279px){
 .bn-sv-why-grid{gap:0 36px}
 .bn-sv-num{font-size:38px}
 .bn-sv-num.bn-sv-word{font-size:30px}
 .bn-sv-text h2{font-size:27px}
 .bn-sv-page .titled{font-size:40px}
}
@media(max-width:1023px){
 .bn-sv-offer{padding-top:88px}
 .bn-sv-why{padding-top:96px}
 .bn-sv-why-grid{grid-template-columns:1fr 1fr;gap:40px 32px}
 .bn-sv-text{grid-column:1/-1}
 .bn-sv-port{padding-top:96px}
 .bn-sv-page .titled{font-size:36px;margin-bottom:36px}
}
@media(max-width:767px){
 .bn-sv .bn-sv-cta{margin-top:22px}
 .bn-sv-offer{padding-top:64px}
 .bn-sv-why{padding-top:72px}
 .bn-sv-why-grid{grid-template-columns:1fr;gap:32px}
 .bn-sv-stats ul{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}
 .bn-sv-stats li:nth-last-child(2){border-bottom:1px solid var(--bn-line)}
 .bn-sv-num{font-size:32px}
 .bn-sv-num.bn-sv-word{font-size:23px}
 .bn-sv-label{font-size:12.5px}
 .bn-sv-more .bn-about-grid{margin-top:40px}
 .bn-sv-photo img{aspect-ratio:4/5}
 .bn-sv-text h2{font-size:22px;margin-bottom:16px}
 .bn-sv-text p{font-size:14.5px;line-height:1.7}
 .bn-sv-port{padding-top:72px}
 .bn-sv-page .titled{font-size:24px;margin-bottom:24px}
}

/* ================= Страница формата портфолио (/portfolio/<формат>/) =================
   первый экран — как у «Портфоліо» (фото на всю ширину), под текстом — кнопка «Детальніше про послугу»;
   цифры 01–05 ведут по странице; проєкты — бесконечной лентой */
.port .hero .bn-cat-btn{margin-top:32px}
/* первый экран формата — в рост главной «Портфоліо»: фото раскрывается, до «Проєктів» — воздух */
@media(min-width:1024px){.port .hero:has(.bn-cat-btn){box-sizing:border-box;min-height:clamp(640px,80vh,760px);padding-bottom:120px}}
@media(max-width:1023px){.port .hero:has(.bn-cat-btn){padding-bottom:56px}}
.bn-feed .portfolio-flex{margin-bottom:0}
.bn-feed-end{display:flex;flex-direction:column;align-items:center;gap:14px;min-height:40px;margin:48px 0 8px;text-align:center}
.bn-feed-line{position:relative;display:block;width:120px;height:1px;overflow:hidden;background:var(--bn-line);opacity:0;transition:opacity .3s}
.bn-feed-line::after{content:"";position:absolute;inset:0;background:var(--bn-accent);transform:translateX(-100%)}
.bn-feed-end.is-loading .bn-feed-line{opacity:1}
.bn-feed-end.is-loading .bn-feed-line::after{animation:bn-feed-run 1s ease-in-out infinite}
@keyframes bn-feed-run{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}
.bn-feed-text{font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--bn-muted)}
.bn-feed-end.is-done .bn-feed-text{color:var(--bn-muted)}
.bn-feed-more{margin:8px auto 0}
.bn-feed-more[hidden]{display:none}
.bn-feed .bn-cat-links{margin-top:24px}
@media(prefers-reduced-motion:reduce){.bn-feed-end.is-loading .bn-feed-line::after{animation:none;transform:none}}
@media(max-width:767px){.port .hero .bn-cat-btn{margin-top:24px}.bn-feed-end{margin-top:32px}}

/* Телефон: фото — отдельно сверху под шапкой и растворяется в фон, заголовок и текст — под ним (не на фото) */
@media screen and (max-width:767px){
 .port .hero{padding-top:90px}
 .port .hero > .container{display:flex;flex-direction:column}
 .port .absi,.port .absi.bn-cat-photo{order:-1;position:relative;top:auto;right:auto;left:auto;z-index:0;width:auto;max-width:none;height:auto;margin:0 -20px;aspect-ratio:4/5;background:none;overflow:hidden}
 .port .absi picture,.port .absi img{display:block;width:100%;height:100%;object-fit:cover}
 .port .absi::after,.port .absi.bn-cat-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 52%,#000);pointer-events:none}
 .bn-light .port .absi img{opacity:1;-webkit-mask-image:none;mask-image:none}
 .bn-light .port .absi::after,.bn-light .port .absi.bn-cat-photo::after{background:linear-gradient(180deg,rgba(241,235,230,0) 52%,#f1ebe6)}
 .port .hero article{position:relative;z-index:1;margin-top:-56px}
 .port .descr,.port .descr p{font-size:15px;line-height:1.7}
 .port .hero ul.bn-port-nav{margin-top:32px;margin-bottom:40px}
 .port .hero ul.bn-port-nav li{font-size:13px;margin-bottom:6px}
 .bn-cat-cta{flex-direction:column;align-items:flex-start;gap:16px;margin:28px 0 48px}
 .bn-cat-cta p{font-size:15px}
}

/* Карточки проєктов появляются быстро и плавно — на всех экранах одинаково (как на телефоне):
   карточка поднимается, фото раскрывается и «отъезжает», подпись выезжает слева.
   Каждая карточка — когда до неё доходит прокрутка; в ряду из двух вторая чуть позже (--i, ставит JS).
   Без JS и при «уменьшить движение» — сразу видны. */
.bn-js .port .portfolio-item{opacity:0;transform:translateY(24px);transition:opacity .5s ease,transform .65s var(--bn-ease);transition-delay:calc(var(--i,0) * 90ms)}
.bn-js .port .portfolio-item picture{clip-path:inset(0 0 28% 0);transition:clip-path .7s var(--bn-ease);transition-delay:calc(var(--i,0) * 90ms)}
.bn-js .port .portfolio-item img{transform:scale(1.07);transition:transform .9s var(--bn-ease);transition-delay:calc(var(--i,0) * 90ms)}
.bn-js .port .portfolio-item .portolio-text{opacity:0;transform:translateX(-12px);transition:opacity .45s ease,transform .55s var(--bn-ease);transition-delay:calc(var(--i,0) * 90ms + 180ms)}
.bn-js .port .portfolio-item.is-in{opacity:1;transform:none}
.bn-js .port .portfolio-item.is-in picture{clip-path:inset(0)}
.bn-js .port .portfolio-item.is-in img{transform:none}
.bn-js .port .portfolio-item.is-in .portolio-text{opacity:1;transform:none}
/* после появления — лёгкое приближение фото при наведении */
.bn-js .port .portfolio-item.is-done img{transition:transform .8s var(--bn-ease)}
.port .portfolio-item{overflow:hidden}
@media(hover:hover){.bn-js .port .portfolio-item.is-done:hover img{transform:scale(1.05)}}
@media(prefers-reduced-motion:reduce){
 .bn-js .port .portfolio-item,.bn-js .port .portfolio-item picture,.bn-js .port .portfolio-item img,.bn-js .port .portfolio-item .portolio-text{opacity:1;transform:none;clip-path:none;transition:none}
}

/* Шоурил на главной: окно с видео YouTube (blocks.js) */
.pro-left[data-video] .play{cursor:pointer}
.pro-left[data-video] .play:focus-visible{outline:2px solid var(--bn-accent);outline-offset:4px}
.bn-video{width:min(1120px,calc(100vw - 32px));max-width:none;max-height:none;margin:auto;padding:0;border:0;border-radius:8px;background:#000;overflow:visible}
.bn-video::backdrop{background:rgba(6,7,10,.88);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.bn-video iframe{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:8px}
.bn-video-close{position:absolute;right:-4px;top:-52px;width:44px;height:44px;padding:0;border:0;background:none;cursor:pointer}
.bn-video-close::before,.bn-video-close::after{content:"";position:absolute;left:8px;right:8px;top:50%;height:1px;background:#ecf6f8;transform:rotate(45deg)}
.bn-video-close::after{transform:rotate(-45deg)}
.bn-video-close:focus-visible{outline:2px solid var(--bn-accent)}

/* ---------- Светлая тема: переключатель темы на сайте (cookie extra_theme → white.css + body.bn-light) ---------- */
.bn-light{--bn-text:#06070a;--bn-muted:rgba(6,7,10,.62);--bn-line:rgba(6,7,10,.18)}
.bn-light .bn-stats{border-image:linear-gradient(90deg,transparent,rgba(6,7,10,.28) 15%,rgba(6,7,10,.28) 85%,transparent) 1}
.bn-light .bn-about-grid{border-image:linear-gradient(90deg,rgba(6,7,10,.3),rgba(6,7,10,.06)) 1}
.bn-light .bn-about-item p{color:rgba(6,7,10,.82)}
.bn-light a.bn-about-link{color:#06070a}
.bn-light a.bn-about-link:hover{color:#fff}
.bn-light .pro-right a.bn-about-toggle{color:rgba(0,0,0,.5)}
.bn-light .pro-right a.bn-about-toggle:hover{color:#06070a}
.bn-light .bn-about-toggle svg path{fill:rgba(0,0,0,.5);fill-opacity:1}
.bn-light .bn-faq-list summary:hover h3{color:#000}
.bn-light .bn-faq-help-list a{color:#06070a}
/* Фото первого экрана в светлой теме заканчивается сразу под описанием (.bn-hero), а видео и текст «Про нас»
   лежат на светлом фоне — при любой ширине и длине текстов из админки (иначе тёмный текст попадает на тёмное фото).
   Фото то же и на том же месте, что у темы (.one: img/one.png, 100% × 964px от верха секции). */
.bn-light .one{background-image:none;overflow-x:clip}
.bn-light .bn-hero{position:relative}
.bn-light .bn-hero::before{content:"";position:absolute;z-index:-1;top:-220px;bottom:-53px;left:calc(50% - 50vw);right:calc(50% - 50vw);background:url(/wp-content/themes/batina/img/one.png) no-repeat 0 0/100% 964px;-webkit-mask-image:linear-gradient(#000 calc(100% - 60px),transparent);mask-image:linear-gradient(#000 calc(100% - 60px),transparent);pointer-events:none}
@media(min-width:768px) and (max-width:1023px){.bn-light .bn-hero::before{top:-170px}}
@media(max-width:767px){.bn-light .bn-hero::before{top:-114px;bottom:-30px;background-size:100% 617px;-webkit-mask-image:linear-gradient(#000 calc(100% - 40px),transparent);mask-image:linear-gradient(#000 calc(100% - 40px),transparent)}}
.bn-light .bn-about-title{color:#06070a}
/* Логотипы клиентов белые — на светлом фоне показываем их чёрными (как logo2 в теме). */
.bn-light .bn-marquee-track img{filter:brightness(0);opacity:.8}
.bn-light .bn-marquee-track img:hover{opacity:1}
.bn-light .bn-marquee-name{color:#06070a}
/* Шапка и меню. В светлой теме тема выводит тёмные логотип (logo2), пункты меню (nav.whiter), иконки (ss*.svg)
   и язык — даём шапке светлую матовую подложку, иначе на тёмном фото первого экрана их не видно. */
.bn-light header:before{background:rgba(241,235,230,.82)}
.bn-light .lang a,.bn-light .lang span{color:#06070a}
.bn-light nav.whiter ul li a:hover{color:#c51348}
.bn-light .burger span{background:#06070a}
.bn-light .navi:before{background:rgba(241,235,230,.95)}
.bn-light .navi nav ul li a{color:#06070a}
.bn-light .navi nav ul li a:hover{color:#c51348}
.bn-light .cls:before,.bn-light .cls:after{background:#06070a}
/* Цифры 01–05 стоят поверх фото первого экрана — оставляем их светлыми, как в тёмной теме (white.css делал их тёмными). */
.bn-light .counter ul li a{color:#ecf6f8}
.bn-light .counter ul li.act:after{background:#ecf6f8}
/* «Про нас»: тема оставляла под фото чёрную полосу (.blur) с белым «НАША КОМАНДА», а заголовки блоков
   white.css делал белыми (.page-id-68 .abo .why-title). Фото первого экрана растворяется в светлый фон,
   заголовки — тёмные. */
.bn-light .abo .blur{display:none}
body.bn-light .abo .why-title{color:#06070a}
/* Фото с руками внизу страницы (img.ab) сделано под чёрный фон и края растворяются в чёрный — на светлом фоне
   это тёмное пятно под текстом. Режим «экран»: тёмное становится прозрачным, остаётся лёгкая светлая фактура. */
.bn-light .ab{mix-blend-mode:screen;opacity:.55}
@media(min-width:1024px){
 .bn-light .abo .hero{-webkit-mask-image:linear-gradient(#000 calc(100% - 100px),transparent);mask-image:linear-gradient(#000 calc(100% - 100px),transparent)}
}
@media(max-width:1023px){
 /* фото сверху растворяется в светлый фон, заголовок и текст под ним — тёмные */
 .bn-light .abo .hero::before{background:linear-gradient(rgba(241,235,230,0),#f1ebe6)}
 .bn-light .abo h1,body.bn-light .abo .descr{color:#06070a}
}
/* «Портфоліо»: картинка первого экрана (.absi) сделана под чёрный фон — тёмный прямоугольник с жёсткими краями.
   В светлой теме края растворяются в фон, слева (под текстом) картинки нет; на телефоне — лёгкая подложка. */
.bn-light .absi{background:none}
.bn-light .absi img{-webkit-mask-image:linear-gradient(90deg,transparent,#000 42%,#000 78%,transparent),linear-gradient(transparent,#000 16%,#000 68%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent,#000 42%,#000 78%,transparent),linear-gradient(transparent,#000 16%,#000 68%,transparent);mask-composite:intersect}
@media(max-width:767px){.bn-light .absi img{opacity:.28}}
/* Подвал на телефоне: media.css темы красит «КОНТАКТИ» в белый, white.css это не перекрывает. */
.bn-light .foot-title{color:#06070a}
/* Точки под каруселью услуг на телефоне */
.bn-light .bn-dots button{border-color:rgba(6,7,10,.35)}
.bn-light .bn-dots button[aria-current="true"]{background:rgba(6,7,10,.35)}
/* Отзывы и клиенты: фото фона в светлой теме — светлая дымка, тёмный текст и логотипы читаются. */
/* Фото выводим отдельным слоем с прозрачностью и растворяем края маской — без шва на границе блока. */
.bn-light .fon{position:relative;isolation:isolate;background-image:none}
.bn-light .fon::before{content:"";position:absolute;inset:0;z-index:-1;background:url(/wp-content/themes/batina/img/testy.png) no-repeat 50% 30%/cover;opacity:.38;filter:blur(10px);-webkit-mask-image:linear-gradient(transparent,#000 140px,#000 calc(100% - 140px),transparent);mask-image:linear-gradient(transparent,#000 140px,#000 calc(100% - 140px),transparent);pointer-events:none}

/* ================= Промежуточные экраны: 768–1279 px =================
   Тема рассчитана только на 1280+ и до 767px; здесь — подгонка без смены дизайна. */
@media(min-width:768px) and (max-width:1365px){
 nav ul{gap:0 clamp(18px,2.9vw,48px)}
 .head{gap:24px}
}
@media(min-width:768px) and (max-width:1279px){
 nav ul li a{font-size:15px}
 .pro{gap:0 40px}
 .pro-right span,.pro-right .bn-about-title{font-size:40px;line-height:52px;margin-bottom:28px}
 .pro-right p{font-size:18px;line-height:27px}
 .bn-services-grid{gap:20px}
 .bn-card{height:400px}
 .bn-card-body{left:24px;right:24px;bottom:24px}
 .bn-stat-value{font-size:34px}
 .bn-stat-label{font-size:12px}
}
@media(min-width:1024px) and (max-width:1199px){
 .head>.socials.desktop{display:none}
}
/* Планшет 768–1023: шапка с бургером (как на телефоне), блоки в одну-две колонки */
@media(min-width:768px) and (max-width:1023px){
 .desktop{display:none}
 .mobile{display:block}
 .hright{display:flex;gap:0 12px;align-items:center}
 .hright .lang{font-size:12px;min-width:1px;min-height:1px;border:0}
 .burger{display:flex;flex-direction:column;justify-content:space-between;width:24px;height:16px;margin-left:20px;cursor:pointer}
 .burger span{width:100%;height:1px;background:#fff}
 .head{align-items:center;padding:16px 0 22px}
 .counter{display:none}
 .one{padding-top:170px;padding-bottom:110px}
 .pro{display:block}
 .pro-left{max-width:620px}
 .pro-left>img{width:100%;height:auto}
 .pro-right{top:0;margin-top:44px}
 .pro-right span,.pro-right .bn-about-title{text-align:left}
 .pro-right a{margin-top:0}
 .bn-services-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .bn-faq .container{grid-template-columns:1fr;gap:32px}
 .bn-about-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 40px;margin-top:56px}
 .bn-stats{padding:24px 0}
 .bn-stat-value{font-size:30px}
}

/* ================= Телефон: до 767 px (как media.css темы) ================= */
@media screen and (max-width:767px){
 #map a:nth-child(2) .marsh span{transform:none}
 .one .bn-hero-title{width:100%;font-size:clamp(36px,10.4vw,78px);line-height:1.1;letter-spacing:-.04em;-webkit-text-stroke:1px #ecf6f8}
 .bn-hero-title span+span{padding-left:12%}
 .one .bn-hero-lead{margin:30px 0;padding-left:0;font-size:16px;line-height:1.7}

 .pro-right .bn-about-title{margin-bottom:20px;font-size:24px;line-height:100%}
 .pro-right a.bn-about-toggle{margin-top:4px}
 .bn-about-grid{grid-template-columns:1fr;gap:26px;margin-top:36px;padding-top:30px}
 .bn-about-cta{margin-top:28px}
 .bn-about-item p,.bn-about-steps li{font-size:14.5px;line-height:1.7}
 a.bn-about-link{height:44px;padding:0 24px;font-size:14px}

 .bn-numbers{padding:36px 0 0}
 .bn-stats{grid-template-columns:repeat(6,minmax(0,1fr));row-gap:22px;padding:22px 0}
 .bn-stat{grid-column:span 2;padding:0 4px}
 .bn-stat:nth-child(n+4){grid-column:span 3}
 .bn-stat:nth-child(4)::before{display:none}
 .bn-stat-value{font-size:28px}
 .bn-stat-label{margin-top:6px;font-size:11.5px;line-height:1.35}

 .bn-services{padding-top:64px}
 .bn-services-head{margin-bottom:24px}
 .bn-eyebrow{margin-bottom:10px;font-size:11px}
 .bn-services-grid{display:flex;gap:16px;margin-right:-5.6%;padding-right:5.6%;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none}
 .bn-services-grid::-webkit-scrollbar{display:none}
 .bn-card{flex:0 0 84%;height:440px;scroll-snap-align:start}
 .bn-card:hover,.bn-card:focus-within,.bn-card.is-open{transform:none;box-shadow:none}
 .bn-card img,.bn-card:hover img{transform:none;filter:brightness(.75)}
 .bn-card.is-open img{filter:brightness(.45)}
 .bn-card.is-open::after,.bn-card.is-open:hover::after{background:linear-gradient(180deg,rgba(0,0,0,.5),rgba(0,0,0,.62) 45%,rgba(0,0,0,.9))}
 .bn-card:hover .bn-card-more,.bn-card:focus-within .bn-card-more{grid-template-rows:0fr;opacity:0}
 .bn-card.is-open .bn-card-more{grid-template-rows:1fr;opacity:1}
 .bn-card:hover .bn-card-plus,.bn-card:focus-within .bn-card-plus{transform:none}
 .bn-card.is-open .bn-card-plus{transform:rotate(45deg)}
 .bn-card-body{left:20px;right:20px;bottom:22px}
 .bn-card-title{font-size:22px}
 .bn-card-plus{font-size:30px}
 .bn-card-more p{margin:12px 0 14px;font-size:13px;line-height:1.65}
 .bn-dots{display:flex;justify-content:center;gap:0 8px;margin:24px 0 0;padding:0 0 10px;list-style:none}
 .bn-dots button{display:block;width:12px;height:12px;padding:0;border:2px solid rgba(236,246,248,.5);border-radius:100px;background:none;cursor:pointer}
 .bn-dots button[aria-current="true"]{background:rgba(236,246,248,.5)}

 .clients .titled{margin-bottom:32px}
 .bn-marquee-track{gap:0 44px;padding-right:44px}
 .bn-marquee-track li{height:52px}
 .bn-marquee-track img{height:calc(var(--h,48px) * .7)}
 .bn-marquee-name{font-size:16px}

 .clients{padding-bottom:40px}
 .bn-faq{padding:0 0 45px}
 .bn-faq .container{grid-template-columns:1fr;gap:28px;padding-top:36px}
 .bn-faq h2{margin-bottom:14px;font-size:24px}
 .bn-faq-help{margin-top:26px}
 .bn-faq-help-title{font-size:17px}
 .bn-faq-help-text{margin-bottom:20px;font-size:14px}
 .bn-faq-help-list{grid-template-columns:1fr;gap:16px}
 .bn-faq-help-list a,.bn-faq-help-list li:last-child a{font-size:18px}
 .bn-faq-list h3{font-size:15px}
 .bn-faq-answer p{font-size:14px;line-height:1.75}
}

@media(prefers-reduced-motion:reduce){
 .bn *,.bn *::before,.bn *::after,.bn-about-more,.bn-about-toggle svg{transition:none!important;animation:none!important}
}

/* Декоративные картинки темы (лучи .sv1, перо .k1, .ab) лежат поверх страницы с z-index:1 и перехватывали нажатия:
   на компьютере кнопка «Обговорити захід» не нажималась и не подсвечивалась. Они только для красоты — клики проходят сквозь них. */
.sv1,.k1,.ab{pointer-events:none}
/* Главная, «Портфоліо»: низ ленты карточек (slick, z-index:10) накрывал ссылку «Детальніше» — она не нажималась.
   Блок с заголовком и ссылкой поднимаем над лентой, но нажатия ловят только ссылки (сама надпись со стрелкой), остальное пропускает их к карточкам и точкам. */
.portolio-home > .container{z-index:11;pointer-events:none}
.portolio-home > .container :is(a,button){pointer-events:auto}
.portolio-home .portfolio-link a.detail{width:max-content;max-width:100%;margin-left:auto}
/* «Контакти»: пояснение после нажатия «Отримати презентацію» в макете */
.form form .bn-demo-note{flex-basis:100%;width:100%;margin:14px 0 0;font-size:13px;line-height:1.45;color:var(--bn-muted)}
/* «Про нас», «Чому варто обрати нас» — общая инфографика сайта (как цифры главной и «Факти про проєкт») вместо иконок в кружках;
   на компьютере — одной строкой из 6, как строка цифр на главной; планшет — 3 + 3, телефон — по 2 */
.bn-strip.bn-about-why{margin:56px 0 110px}
@media(min-width:1280px){:is(.singler .port-numbs,.bn-strip).bn-about-why .numbs-block:has(> :nth-child(5)){--bn-cols:6}}
@media(max-width:1023px){.bn-strip.bn-about-why{margin:40px 0 72px}}
@media(max-width:767px){.bn-strip.bn-about-why{margin:32px 0 56px}}
/* «Контакти» на планшете и ноутбуке 768–1279: в теме правая колонка узкая — телефоны и почта переносились на 2 строки */
@media(min-width:768px) and (max-width:1279px){
 .cont .form{gap:0 48px;padding:0}
 .cont .form form{flex:1 1 auto;max-width:520px}
 .cont .form-right{flex:0 0 auto}
 .cont .form-right-tel a{font-size:clamp(24px,2.9vw,36px);line-height:1.25;white-space:nowrap}
 .cont .form-mail a{font-size:clamp(18px,2vw,24px);white-space:nowrap}
}
/* «Контакти»: поле «Розкажіть про захід» — в стиле полей темы (белое, скруглённое, тот же шрифт), растягивается вниз */
.cont .form-input textarea{display:block;width:calc(100% - 46px);min-height:112px;margin:0;padding:13px 23px;border:0;border-radius:24px;background:#fff;color:#00000080;font:400 16px/1.45 "Montserrat",sans-serif;outline:none;resize:vertical}
.cont .form-input :is(input,textarea)::placeholder{color:#00000080;opacity:1}
/* Цифры 01–05 закреплены справа (по просьбе заказчика 22.11.2026): видны при прокрутке, ведут по блокам страницы.
   Стоят в поле между краем контента и краем экрана (1440: 80 px, 1280: 64 px, 1024: 51 px) — текст и карточки не закрывают;
   черта у активной цифры идёт до края экрана. Где под цифры заходит лента на всю ширину (карусели главной и т. п.), они плавно
   исчезают и возвращаются, когда лента проехала. Режим включает blocks.js (без JS — как в теме, только на первом экране). */
@media(min-width:1024px){
 /* поле справа от контента = max(5vw, (ширина − 1280)/2); цифры (до 30 px) — в нём, с зазором 12 px от контента */
 .counter.bn-counter-fixed{--bn-cr:clamp(12px,calc(max(5vw,(100vw - 1280px) / 2) - 42px),78px);position:fixed;top:50%;right:var(--bn-cr);transform:translateY(-50%);z-index:20;transition:opacity .3s}
 .counter.bn-counter-fixed ul{margin:0;padding:0}
 .counter.bn-counter-fixed ul li.act:after{width:max(6px,calc(var(--bn-cr) - 6px))}
 .counter.bn-counter-fixed.is-hidden{opacity:0;pointer-events:none}
 .counter.bn-counter-fixed ul li a{text-shadow:0 0 10px rgba(0,0,0,.35)}
 /* светлая тема: на фото первого экрана цифры светлые (как было), ниже, на светлом фоне, — тёмные */
 .bn-light .counter.bn-counter-fixed:not(.bn-on-hero) ul li a{color:#06070a;text-shadow:none}
 .bn-light .counter.bn-counter-fixed:not(.bn-on-hero) ul li.act:after{background:#06070a}
}

/* ================= Блог (по выбранному макету 02_Дизайн блога): главная блога и шаблон статьи =================
   Тот же язык, что на сайте: фото первого экрана на всю ширину, карточки как в «Портфоліо», тонкие линии, розовые акценты, без рамок. */
/* --- главная блога --- */
.bn-blog-main .bn-blog-head .descr p{max-width:560px}
.bn-blog-filter a[aria-current="true"]{color:var(--bn-accent)}
.bn-blog-list{padding-bottom:40px}
.bn-blog-list .port-block{margin-bottom:0}
.bn-blog-grid.portfolio-flex{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 24px}
.bn-blog-grid .portfolio-item{flex-basis:auto}
.port .bn-post-card img{aspect-ratio:4/5;object-fit:cover}
.bn-post-card picture{position:relative}
.bn-post-card picture::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(6,7,10,.55) 0,rgba(6,7,10,0) 26%,rgba(6,7,10,0) 48%,rgba(6,7,10,.85) 100%);pointer-events:none}
.bn-post-card .portolio-text{position:absolute;inset:0;left:0;top:0;display:flex;flex-direction:column;justify-content:space-between;padding:22px 22px 26px;border:0}
.bn-post-card .portolio-text span{font-size:13px;font-weight:400;line-height:1.4;letter-spacing:.04em;color:rgba(236,246,248,.88)}
.bn-post-card .portolio-text p{margin:0;padding-bottom:12px;border-bottom:1px solid rgba(236,246,248,.7);font-size:22px;font-weight:600;line-height:1.18;text-transform:uppercase;color:#fff;transition:border-color .3s}
.bn-post-card:hover .portolio-text p,.bn-post-card:focus-visible .portolio-text p{border-color:var(--bn-accent)}
.bn-post-card[hidden]{display:none}
.bn-blog-empty{margin:24px 0 0;text-align:center;color:var(--bn-muted)}
.bn-blog-more{display:table;margin:48px auto 0}
.bn-blog-cities{margin-top:110px}
.bn-blog-cities ul{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 32px;margin:0;padding:28px 0 0;list-style:none;border-top:1px solid var(--bn-line)}
.bn-blog-cities a{font-size:22px;font-weight:400;text-transform:uppercase;letter-spacing:.02em;color:var(--bn-text);text-decoration:none;transition:color .3s}
.bn-blog-cities a:hover,.bn-blog-cities a:focus-visible,.bn-blog-cities a[aria-current="true"]{color:var(--bn-accent)}
/* --- первый экран статьи: хлебные крошки над темой и датой --- */
.bn-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:0 0 18px;font-size:13px;line-height:1.4;color:rgba(236,246,248,.7)}
.bn-crumbs a{color:rgba(236,246,248,.86);text-decoration:none;transition:color .3s}
.bn-crumbs a:hover,.bn-crumbs a:focus-visible{color:var(--bn-accent)}
.bn-crumbs [aria-current]{max-width:36ch;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.bn-light .bn-crumbs,.bn-light .bn-crumbs a{color:rgba(6,7,10,.7)}
/* --- тело статьи --- */
.bn-article{padding:96px 0 40px;color:var(--bn-text)}
.bn-article-intro{max-width:900px}
.bn-prose-h2{margin:0 0 28px;padding-bottom:16px;border-bottom:1px solid var(--bn-line);font-size:30px;font-weight:600;line-height:1.2;text-transform:uppercase;color:var(--bn-text)}
.bn-lead{margin:0;font-size:22px;font-weight:300;line-height:1.55;color:var(--bn-text)}
.bn-toc{margin-top:48px}
.bn-toc-title{margin:0 0 14px;font-size:12px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--bn-accent)}
.bn-toc ol{columns:2;column-gap:48px;margin:0;padding:0;list-style:none;counter-reset:bn-toc}
.bn-toc li{break-inside:avoid;padding:9px 0;border-bottom:1px solid var(--bn-line);counter-increment:bn-toc}
.bn-toc a{display:flex;gap:14px;font-size:16px;line-height:1.4;color:var(--bn-text);text-decoration:none;transition:color .3s}
.bn-toc a::before{content:counter(bn-toc,decimal-leading-zero);flex:0 0 auto;font-size:13px;line-height:1.75;color:var(--bn-accent)}
.bn-toc a:hover,.bn-toc a:focus-visible{color:var(--bn-accent)}
.bn-prose{margin-top:96px;font-size:18px;line-height:1.7}
.bn-prose > *{max-width:820px}
.bn-prose > .bn-wide{max-width:none}
.bn-prose > p{margin:0 0 22px;color:rgba(236,246,248,.86)}
.bn-light .bn-prose > p{color:rgba(6,7,10,.82)}
.bn-prose > .bn-prose-h2{margin-top:88px}
.bn-prose > :first-child{margin-top:0}
.bn-prose-list{margin:0 0 28px;padding:0;list-style:none;counter-reset:bn-li}
.bn-prose-list li{position:relative;padding:10px 0 10px 44px;border-bottom:1px solid var(--bn-line);counter-increment:bn-li}
.bn-prose-list li::before{content:"";position:absolute;left:4px;top:24px;width:18px;height:1px;background:var(--bn-accent)}
ol.bn-prose-list li::before{content:counter(bn-li,decimal-leading-zero);top:12px;width:auto;height:auto;background:none;font-size:14px;font-weight:600;color:var(--bn-accent)}
.bn-points{margin:96px 0 0}
.bn-points .bn-strip{margin-top:0}
/* место в подборке: номер, название, 3 фото (большое + 2), текст и факты */
.bn-place{margin:110px 0 0}
.bn-place-head{display:flex;align-items:baseline;gap:22px;margin-bottom:28px;padding-bottom:16px;border-bottom:1px solid var(--bn-line)}
.bn-place-num{flex:0 0 auto;font-size:56px;font-weight:300;line-height:1;letter-spacing:-.03em;color:var(--bn-accent)}
.bn-place h2{margin:0;font-size:30px;font-weight:600;line-height:1.2;text-transform:uppercase;color:var(--bn-text)}
.bn-place-gallery{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr;gap:12px;aspect-ratio:2.1/1}
.bn-place-gallery .bn-lb:first-child{grid-row:1/span 2}
.bn-lb{position:relative;display:block;overflow:hidden;cursor:zoom-in;background:#111}
.bn-lb picture,.bn-lb img{display:block;width:100%;height:100%}
.bn-lb img{object-fit:cover;transition:transform 1s var(--bn-ease),filter .5s}
.bn-lb:hover img,.bn-lb:focus-visible img{transform:scale(1.04)}
.bn-place-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,340px);gap:56px;margin-top:32px}
.bn-place-text p{margin:0 0 18px;color:rgba(236,246,248,.86)}
.bn-light .bn-place-text p{color:rgba(6,7,10,.82)}
.bn-place-facts{margin:0}
.bn-place-facts div{padding:12px 0;border-bottom:1px solid var(--bn-line)}
.bn-place-facts div:first-child{border-top:1px solid var(--bn-line)}
.bn-place-facts dt{margin:0 0 4px;font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--bn-accent)}
.bn-place-facts dd{margin:0;font-size:15px;line-height:1.5;color:var(--bn-text)}
/* фото и галерея */
.bn-figure,.bn-gallery{margin:64px 0}
.bn-figure .bn-lb{aspect-ratio:16/8}
.bn-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.bn-gallery-grid .bn-lb{aspect-ratio:4/5}
.bn-figure figcaption,.bn-gallery figcaption{margin-top:12px;font-size:13px;line-height:1.5;color:var(--bn-muted)}
/* совет агентства — подпись розовым, текст крупнее; только тонкая линия сверху */
.bn-tip{margin:72px 0;padding-top:24px;border-top:1px solid var(--bn-accent)}
.bn-tip-label{margin:0 0 10px;font-size:12px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--bn-accent)}
.bn-tip p:last-child{margin:0;font-size:22px;font-weight:300;line-height:1.5;color:var(--bn-text)}
.bn-prose .bn-prose-quote{max-width:940px;margin:96px auto}
.bn-prose .bn-prose-quote blockquote p{margin:0;font-size:26px;font-weight:300;line-height:1.5;text-align:center}
/* автор */
.bn-author{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin-top:88px;padding-top:24px;border-top:1px solid var(--bn-line)}
.bn-author img{width:56px;height:56px;border-radius:50%;object-fit:cover;object-position:50% 18%;filter:grayscale(1)}
.bn-author p{margin:0}
.bn-author span{display:block;font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--bn-accent)}
.bn-author strong{display:block;font-size:17px;font-weight:600}
.bn-author em{display:block;font-size:13px;font-style:normal;color:var(--bn-muted)}
.bn-author-date{margin-left:auto!important;font-size:13px;color:var(--bn-muted)}
/* призыв после FAQ */
.bn-article-end{padding:40px 0 0}
.bn-article-cta{padding:56px 0;border-top:1px solid var(--bn-line);border-bottom:1px solid var(--bn-line)}
.bn-article-cta h2{margin:0 0 12px;font-size:36px;font-weight:600;line-height:1.15;color:var(--bn-text)}
.bn-article-cta p{margin:0 0 28px;font-size:18px;color:var(--bn-muted)}
.bn-article-cta-links{display:flex;flex-wrap:wrap;align-items:center;gap:16px 36px}
.bn-article-cta-more{font-size:15px;color:var(--bn-text);text-decoration:none;border-bottom:1px solid var(--bn-accent);transition:color .3s}
.bn-article-cta-more:hover,.bn-article-cta-more:focus-visible{color:var(--bn-accent)}
.bn-related{padding-top:110px}
/* просмотр фото */
.bn-lightbox{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:rgba(6,7,10,.96);color:#ecf6f8;overflow:hidden}
.bn-lightbox::backdrop{background:rgba(6,7,10,.9)}
.bn-lightbox figure{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;width:100%;height:100%;margin:0;padding:64px 88px 56px;box-sizing:border-box}
.bn-lightbox img{max-width:100%;max-height:calc(100dvh - 160px);object-fit:contain}
.bn-lightbox figcaption{max-width:760px;font-size:14px;line-height:1.5;text-align:center;color:rgba(236,246,248,.8)}
.bn-lightbox button{position:absolute;width:56px;height:56px;padding:0;border:0;background:none;color:#ecf6f8;cursor:pointer;transition:color .3s}
.bn-lightbox button:hover,.bn-lightbox button:focus-visible{color:var(--bn-accent)}
.bn-lb-close{top:14px;right:16px}
.bn-lb-close span::before,.bn-lb-close span::after{content:"";position:absolute;left:14px;top:27px;width:28px;height:1.5px;background:currentColor;transform:rotate(45deg)}
.bn-lb-close span::after{transform:rotate(-45deg)}
.bn-lb-prev,.bn-lb-next{top:50%;transform:translateY(-50%)}
.bn-lb-prev{left:16px}
.bn-lb-next{right:16px}
.bn-lb-prev span,.bn-lb-next span{position:absolute;left:20px;top:20px;width:16px;height:16px;border-left:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
.bn-lb-next span{left:16px;transform:rotate(-135deg)}
.bn-lb-count{position:absolute;left:24px;top:24px;margin:0;font-size:13px;letter-spacing:.1em;color:rgba(236,246,248,.7)}
/* светлая тема: тексты и линии — через переменные; подписи фото в карточках остаются светлыми (на фото) */
.bn-light .bn-article,.bn-light .bn-prose-h2,.bn-light .bn-place h2,.bn-light .bn-article-cta h2{color:var(--bn-text)}
/* --- ноутбук и планшет --- */
@media(max-width:1279px){
 .bn-post-card .portolio-text p{font-size:19px}
 .bn-prose-h2,.bn-place h2{font-size:26px}
 .bn-place-num{font-size:46px}
}
@media(max-width:1023px){
 .bn-blog-grid.portfolio-flex{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 20px}
 .bn-article{padding-top:72px}
 .bn-prose{margin-top:72px;font-size:17px}
 .bn-place-body{grid-template-columns:1fr;gap:20px}
 .bn-blog-cities{margin-top:88px}
 .bn-blog-cities ul{justify-content:flex-start;gap:12px 40px}
 .bn-related{padding-top:88px}
}
/* --- телефон: карточки по одной, фото мест и галереи — лента с пролистыванием --- */
@media(max-width:767px){
 .bn-blog-grid.portfolio-flex{grid-template-columns:1fr;gap:20px}
 .port .bn-post-card img{aspect-ratio:5/4}
 .bn-post-card .portolio-text{padding:16px 16px 20px}
 .bn-post-card .portolio-text p{font-size:18px}
 .bn-blog-cities{margin-top:64px}
 .bn-blog-cities ul{gap:10px 28px;padding-top:20px}
 .bn-blog-cities a{font-size:17px}
 .bn-crumbs{font-size:12px;margin-bottom:12px}
 .bn-crumbs [aria-current]{max-width:22ch}
 .bn-article{padding:56px 0 24px}
 .bn-prose-h2{font-size:21px;margin-bottom:20px;padding-bottom:12px}
 .bn-lead{font-size:18px}
 .bn-toc{margin-top:32px}
 .bn-toc ol{columns:1}
 .bn-prose{margin-top:56px;font-size:16px;line-height:1.65}
 .bn-prose > .bn-prose-h2{margin-top:64px}
 .bn-place{margin-top:72px}
 .bn-place-head{gap:14px;margin-bottom:18px}
 .bn-place-num{font-size:36px}
 .bn-place h2{font-size:20px}
 .bn-place-gallery,.bn-gallery-grid{display:flex;gap:10px;aspect-ratio:auto;margin-right:-5.6%;padding-right:5.6%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
 .bn-place-gallery::-webkit-scrollbar,.bn-gallery-grid::-webkit-scrollbar{display:none}
 .bn-place-gallery .bn-lb,.bn-gallery-grid .bn-lb{flex:0 0 86%;aspect-ratio:4/3;scroll-snap-align:start}
 .bn-figure .bn-lb{aspect-ratio:4/3}
 .bn-tip p:last-child{font-size:18px}
 .bn-prose .bn-prose-quote blockquote p{font-size:20px}
 .bn-author-date{margin-left:0!important;flex-basis:100%}
 .bn-article-cta{padding:40px 0}
 .bn-article-cta h2{font-size:26px}
 .bn-related{padding-top:64px}
 .bn-lightbox figure{padding:64px 12px 72px}
 .bn-lb-prev,.bn-lb-next{top:auto;bottom:8px;transform:none}
}
@media(prefers-reduced-motion:reduce){.bn-lb img{transition:none}.bn-lb:hover img{transform:none}}
/* Меню из 6 пунктов (добавился «Блог»): на 1366+ тема ставила 70 px между пунктами — «Контакти» упирались в соцсети. */
@media(min-width:1366px){header nav ul.top-menu:has(> li:nth-child(6)){column-gap:min(56px,3.6vw)}}

/* Отзывы без фото (фото можно добавить в админке: Главная → «Отзывы» → «Фото») — имя и линия на всю ширину карточки */
.review-item.bn-review-nophoto .review-right{flex:1 1 auto}

/* Согласие под формой и ссылка на политику конфиденциальности в подвале */
.form form .bn-form-consent{flex-basis:100%;width:100%;margin:14px 0 0;font-size:13px;line-height:1.45;color:var(--bn-muted)}
.form form .bn-form-consent a,footer .bn-privacy-link{color:inherit;text-decoration:underline;text-underline-offset:3px;transition:color .3s}
.form form .bn-form-consent a:hover,footer .bn-privacy-link:hover{color:var(--bn-accent)}
footer .bn-privacy-link{margin-left:6px;white-space:nowrap}
/* 404: кнопка и ссылки на разделы под текстом */
.bn-nf .bn-eyebrow{margin-bottom:12px}

/* Карточки услуг: вся карточка — ссылка на страницу услуги (на телефоне — со второго нажатия) */
.bn-card{cursor:pointer}

/* Галерея проєкта: фото открываются на весь экран с листанием; в «плитке» — без обрезки, как раньше */
.gallery-block .bn-lb{height:auto;margin-bottom:20px;break-inside:avoid;page-break-inside:avoid;background:none}
.gallery-block .bn-lb img{height:auto;margin-bottom:0;object-fit:initial}
