/* Дополнения темы в стиле самописа. Палитра: #e84f35, #cb4f3a, #00142f, #0f1b32, #212c42. */

/* Первый экран главной — на всю высоту окна. */
.main_bg { min-height: 100vh; }

/* Первый экран: раскладка на флексбоксе вместо процентных отступов из ui.css.
   Процентные margin (68% / 100% / 50%) считались от ширины контейнера и при
   изменении масштаба системы (125% / 150%) разъезжались с высотой окна —
   меню, логотип и плашка презентации смещались и перекрывали друг друга.
   Теперь меню прижато к верху, логотип — к низу, зазор под плашку задан в vh. */
@media (min-width: 993px) {
	.main_bg { display: flex; align-items: stretch; }
	.main_bg > .container { display: flex; align-items: stretch; }
	.main_bg > .container > .row { flex: 1 1 auto; align-items: stretch; }
	.main_bg > .container > .row > *:last-child {
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		padding-top: clamp(24px, 5vh, 64px);
		padding-bottom: clamp(96px, 14vh, 170px);
	}
	.main_bg .t_menu { margin: 0 !important; flex: 0 0 auto; }
	.main_bg .main_logo { margin: 0 !important; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
	.main_bg .main_logo IMG { width: 100%; max-width: min(500px, 100%) !important; height: auto; }
	.main_bg .main_logo_text { margin: clamp(12px, 2vh, 30px) 0 0 0; }
}

/* Плашка презентации на первом экране — как на боевом сайте. */
.main_bg_presentation { font-size: 15px; font-weight: 400; padding: 14px 56px; }
.main_bg_presentation A { font-size: 17px; font-weight: 700; }

/* Разделители в верхнем меню — крупнее и плотнее. */
/* Разделители: высота плашки меню зависит от их кегля, поэтому держим
   размеры боевого сайта — 32px на широких экранах, 16px при ≤1200px. */
@media (min-width: 1201px) {
	/* Плашка меню: на макете у неё такие же вертикальные отступы,
	   как в мобильной версии ui.css (14px), — в ui.css на широких экранах padding 0. */
	.t_menu { padding: 9px 0; }
	.t_menu EM { font-size: 32px; font-weight: 200; color: #c9cdd6; line-height: 1; padding: 0 10px 0 8px; }
}
@media (max-width: 1200px) {
	.t_menu EM { font-size: 16px; font-weight: 500; color: #c9cdd6; line-height: 1; padding: 0 10px; }
}

/* Страница контактов: телефон, почта, адрес, карта во всю ширину контейнера. */
.contacts .tel { display: block; color: #00142f; font-size: 32px; font-weight: 500; text-decoration: none; }
.contacts .mail { display: inline-block; color: #00142f; font-size: 20px; border-bottom: 1px solid #00142f; text-decoration: none; margin: 22px 0 0 0; }
.contacts .address { font-size: 18px; color: #9a9ea8; margin: 22px 0 0 0; }
.contacts iframe, .contacts .map { width: 100%; min-height: 520px; border: 0; display: block; }

/* --- Адаптив --- */
@media (max-width: 992px) {
	.main_bg { min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
	.main_bg > .container { width: 100%; padding-top: 80px; padding-bottom: 88px; }
	body { overflow-x: hidden; }
	.main_bg_presentation { left: 0; right: 0; bottom: 0; margin: 0; width: 100%; text-align: center; padding: 14px 16px; clip-path: none; box-sizing: border-box; }
	.main_bg_presentation A { font-size: 16px; }
	.main_bg_partners_logo { display: none; }
	.main_logo { margin: 0; }
	.main_logo IMG { max-width: 320px; }
	.pf-filters { flex-direction: column; gap: 10px; }
	.pf-drop { flex: 1 1 auto; }
	.pf-drop__panel { position: static; max-height: 260px; box-shadow: none; margin: 4px 0 0 0; }
	.pf-gallery { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
	.contacts .tel { font-size: 26px; }
	.contacts iframe, .contacts .map { min-height: 320px; }
	.bg_to_img_item { height: 240px; }
	.entry-content h2 { font-size: 26px; }
	.entry-content h3 { font-size: 20px; }
}

@media (max-width: 576px) {
	.main_bg_presentation { font-size: 13px; }
	.main_logo IMG { max-width: 260px; }
	.btn1 { width: 100%; text-align: center; }
	.ebr-form { max-width: 100%; }
	.pf-meta { gap: 10px; }
	.bg_to_img_item SPAN { left: 20px; font-size: 20px; line-height: 24px; }
	.pf-specs li { padding: 10px 0; }
	.vakansy .txt STRONG { font-size: 18px; }
}

/* --- Мобильное меню: панель справа, как на боевом сайте --- */
/* Шапка с бургером лежит в потоке после .second_bg, поэтому сам бургер
   прижимаем к окну — иначе на внутренних страницах он уезжает под контент. */
.cd-header { position: static; z-index: 400; }
.cd-primary-nav-trigger { position: fixed; top: 13px; right: 16px; display: block; width: 44px; height: 44px; background-color: rgba(0, 20, 47, .55); z-index: 420; }
.cd-menu-icon, .cd-menu-icon::before, .cd-menu-icon::after { position: absolute; left: 8px; width: 28px; height: 3px; background-color: #fff; }
.cd-menu-icon { top: 21px; }
.cd-menu-icon::before, .cd-menu-icon::after { content: ''; left: 0; }
.cd-menu-icon::before { top: -9px; }
.cd-menu-icon::after { top: 9px; }
.cd-primary-nav-trigger.is-open { border: 2px solid #c9a227; background-color: rgba(0, 20, 47, .9); }
.cd-primary-nav-trigger.is-open .cd-menu-icon { background-color: transparent; }
.cd-primary-nav-trigger.is-open .cd-menu-icon::before { transform: rotate(45deg); top: 0; }
.cd-primary-nav-trigger.is-open .cd-menu-icon::after { transform: rotate(-45deg); top: 0; }

.cd-primary-nav { position: fixed; top: 0; right: 0; width: 85%; max-width: 520px; height: 100%; margin: 0; padding: 96px 0 0 0; list-style: none; background-color: rgba(15, 27, 50, .94); transform: translateX(100%); transition: transform .25s ease; z-index: 410; overflow-y: auto; }
.cd-primary-nav.is-open { transform: translateX(0); }
.cd-primary-nav li { border-bottom: 1px solid rgba(255, 255, 255, .5); margin: 0 26px; }
.cd-primary-nav li:last-child { border-bottom: 0; }
.cd-primary-nav a { display: block; padding: 18px 4px; color: #fff; font-weight: 800; text-transform: uppercase; min-height: 48px; }
.cd-primary-nav .current-menu-item, .cd-primary-nav .current_page_item { background-color: #fff; border-bottom-color: #fff; }
.cd-primary-nav .current-menu-item a, .cd-primary-nav .current_page_item a { color: #ed1c24; padding-left: 22px; margin-left: -18px; }
@media (min-width: 993px) { .cd-primary-nav { display: none !important; } }

/* --- Фильтр портфолио: мультивыбор --- */
.portfolio_filter { position: relative; z-index: 200; }
.pf-filters { display: flex; flex-wrap: wrap; gap: 12px; }
.pf-drop { position: relative; flex: 1 1 220px; }
.pf-drop__btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 8px 14px; background-color: #fff; border: 1px solid #c9cdd6; color: #00142f; font-weight: 600; cursor: pointer; text-align: left; }
.pf-drop__btn[aria-expanded="true"], .pf-drop__btn:hover { border-color: #e84f35; }
.pf-drop__count { background-color: #e84f35; color: #fff; font-size: 12px; font-weight: 800; padding: 2px 8px; }
.pf-drop__panel { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; max-height: 320px; overflow-y: auto; background-color: #fff; border: 1px solid #c9cdd6; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); padding: 6px 0; }
.pf-drop.is-open .pf-drop__panel { display: block; }
.pf-drop__panel label { display: flex; align-items: center; gap: 10px; padding: 9px 14px; color: #212c42; font-weight: 500; cursor: pointer; min-height: 40px; }
.pf-drop__panel label:hover { background-color: #f4f5f7; }
.pf-drop__panel label.is-disabled { opacity: .38; cursor: not-allowed; }
.pf-drop__panel label.is-disabled:hover { background-color: transparent; }
.pf-note { color: #6a7386; font-weight: 500; }
.pf-drop__panel input { accent-color: #e84f35; width: 16px; height: 16px; }
.pf-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 16px 0 0 0; color: #212c42; font-weight: 600; }
.pf-reset { background: none; border: 0; padding: 0; color: #e84f35; font-weight: 800; cursor: pointer; border-bottom: 1px solid #e84f35; }
.pf-grid.is-loading { opacity: 0.45; transition: opacity 0.15s; }
.pf-empty { color: #212c42; font-weight: 600; }

/* --- Кнопки --- */
.btn1 { display: inline-block; min-height: 48px; padding: 13px 34px; background-color: #e84f35; color: #fff; font-weight: 800; text-transform: uppercase; border: 0; cursor: pointer; clip-path: polygon(4% 0%, 0% 100%, 96% 100%, 100% 0%); }
.btn1:hover { background-color: #cb4f3a; }
.btn1[disabled] { opacity: 0.5; cursor: default; }
.pf-more-wrap { text-align: center; margin: 30px 0 0 0; }

/* --- Форма обратной связи --- */
.ebr-form { display: grid; gap: 14px; max-width: 640px; }
.ebr-form label { display: block; color: #212c42; font-weight: 600; margin: 0 0 6px 0; }
.ebr-form input, .ebr-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #c9cdd6; color: #00142f; font-family: inherit; }
.ebr-form input:focus, .ebr-form textarea:focus { outline: 2px solid #e84f35; border-color: #e84f35; }
.ebr-form textarea { min-height: 130px; resize: vertical; }
.ebr-form__note { font-size: 13px; color: #757575; }
.ebr-form__msg { font-weight: 600; }
.ebr-form__msg.is-ok { color: #1c7a3e; }
.ebr-form__msg.is-err { color: #e84f35; }
.ebr-hp { position: absolute; left: -9999px; }

/* --- Галерея проекта --- */
.pf-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pf-gallery a { display: block; position: relative; padding-bottom: 66%; overflow: hidden; box-shadow: 0 0 10px 7px rgba(0, 0, 0, 0.2); }
.pf-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-specs { list-style: none; margin: 0; padding: 0; }
.pf-specs li { border-bottom: 1px solid #e3e5ea; padding: 12px 0; color: #212c42; font-weight: 600; }
.pf-specs li span { display: block; color: #757575; font-weight: 500; font-size: 14px; }

/* --- Контент из Gutenberg --- */
.entry-content h1 { color: #00142f; font-size: 40px; font-weight: 800; line-height: 1.15; margin: 34px 0 16px; }
.entry-content h2 { color: #212c42; font-size: 32px; font-weight: 800; line-height: 1.2; margin: 30px 0 14px; }
.entry-content h3 { color: #00142f; font-size: 24px; font-weight: 800; line-height: 1.25; margin: 26px 0 12px; }
.entry-content h4 { color: #00142f; font-size: 20px; font-weight: 800; line-height: 1.3; margin: 22px 0 10px; }
.entry-content h5 { color: #212c42; font-size: 18px; font-weight: 800; margin: 20px 0 8px; }
.entry-content h6 { color: #212c42; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin: 18px 0 8px; }
.entry-content p, .entry-content li { font-size: 17px; line-height: 28px; color: #1f2a44; }
.entry-content ul, .entry-content ol { margin: 0 0 22px 0; padding-left: 22px; }
.entry-content li { margin: 0 0 6px 0; }
.entry-content ul li::marker { color: #1f2a44; }
.entry-content strong { color: #00142f; font-weight: 800; }
.entry-content a { color: #e84f35; border-bottom: 0; text-decoration: none; }
.entry-content a:hover { color: #cb4f3a; text-decoration: underline; }
.entry-content a.tel, .contacts .tel { border-bottom: 0 !important; text-decoration: none; }
.entry-content img { max-width: 100%; height: auto; align-self: flex-start; }
.entry-content .wp-block-columns { align-items: flex-start; }
.about .img1, .entry-content img.img1 { width: 100%; max-width: 600px; height: auto; }
.title3 { margin: 0 0 24px 0; }
@media (max-width: 992px) { .title3 { margin-bottom: 30px; } }

/* Подвал без плашки «Контакты»: телефон без верхнего отступа, поля сверху и снизу равны. */
.bottom .tel { margin-top: 0 !important; }
@media (max-width: 992px) {
	.bottom { padding: 50px 0 !important; }
	.bottom .address { margin-bottom: 30px !important; }
}

/* Преимущества: текст в обычном потоке (без flex — иначе теряются пробелы), иконка слева по центру. */
.about .list1 { position: relative; }
.about .list1:has(img) { display: block; padding: 34px 0 34px 140px; margin: 0; }
.about .list1 IMG { position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: auto; margin: 0 !important; }
@media (max-width: 1400px) { .about .list1:has(img) { padding: 26px 0 26px 110px; } }
@media (max-width: 992px) { .about .list1:has(img) { padding: 0; margin: 0 0 14px 0; } }
.about .list1 STRONG { color: #e84f35; font-weight: 800; }


/* --- Вакансии: как на старом сайте --- */
.title1 { font-size: clamp(30px, 3.4vw, 50px); }
.vakansy .entry-content p strong {
	display: inline-block;
	color: #00142f;
	font-size: 17px;
	font-weight: 800;
	text-transform: uppercase;
	border-bottom: 0;
	margin: 10px 0 2px 0;
}
.about .entry-content p > strong:only-child { color: #e84f35; font-weight: 800; text-transform: none; }
.vakansy .entry-content p { margin: 0 0 30px 0; color: #757575; }
.vakansy .entry-content h3,
.vakansy .entry-content h4 {
	display: inline-block;
	color: #00142f;
	font-size: 24px;
	font-weight: 800;
	border-bottom: 0;
	margin: 0 0 10px 0;
}
.vakansy .entry-content p strong {
	display: inline-block;
	color: #00142f;
	font-size: 17px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0;
	border-bottom: 0;
	margin: 0 0 2px 0;
}
.vakansy .entry-content a {
	display: inline-block;
	color: #00142f;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.25;
	text-decoration: none;
	border-bottom: 1px solid #00142f;
	margin: 0 0 10px 0;
}
.vakansy .entry-content a:hover { color: #e84f35; border-bottom-color: #e84f35; text-decoration: none; }

@media (max-width: 992px) {
	.vakansy .entry-content p strong,
	.vakansy .entry-content h3,
	.vakansy .entry-content h4 { font-size: 20px; }
	.vakansy .entry-content p { margin-bottom: 24px; }
}

/* --- Подстраховки по ассетам ------------------------------------------- */

/* Стек шрифта: ui.css задаёт только 'Manrope' без фолбэка. */
html, body, * { font-family: 'Manrope', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; }

/* Фон шапки внутренних страниц, подвала и плашки заголовка.
   Первый слой — bottom-bg.jpg со старого сайта; если файла нет,
   браузер берёт второй слой — bottom-bg.png из комплекта темы. */
.second_bg,
.bottom,
.title2_bg {
	background-color: #0f1b32;
	background-image: url(../i/bottom-bg.jpg), url(../i/bottom-bg.png);
	background-repeat: no-repeat, no-repeat;
	background-position: center, center;
	background-size: cover, cover;
}

/* Карточка проекта без обложки: видно заглушку целиком, без растяжения. */
.bg_to_img_item { background-color: #16253c; }


/* --- Красная плашка заголовка и отступы страниц ------------------------- */

/* Скос задаём в пикселях: у коротких и длинных заголовков он одинаковый,
   а буквы больше не подрезаются по краям. */
.title1 {
	display: inline-block;
	max-width: 100%;
	box-sizing: border-box;
	padding: 10px 62px;
	line-height: 1.14;
	clip-path: polygon(30px 0%, 0% 100%, calc(100% - 30px) 100%, 100% 0%);
	overflow-wrap: break-word;
}

/* Воздух вокруг заголовка и контента внутренних страниц. */
.second_bg + br,
.second_bg + .container { margin-top: 0; }
.title1 { margin: 0 0 14px 0; }
.address + .title1 { margin-top: 24px; }

body:not(.home) .container { padding-left: 28px; padding-right: 28px; }
body:not(.home) .title1 { margin-bottom: 0; }
.contacts .entry-content > :first-child, .contacts .tel { margin-top: 0; }
.second_bg { margin-bottom: 0 !important; }
.second_bg ~ * > br:first-child, .second_bg ~ div > br + br { line-height: 20px; }

@media (max-width: 992px) {
	.title1 { padding: 8px 40px; clip-path: polygon(20px 0%, 0% 100%, calc(100% - 20px) 100%, 100% 0%); }
	body:not(.home) .container { padding-left: 18px; padding-right: 18px; }
}


/* --- Страница проекта: характеристики в узкой колонке 20% --------------- */
@media (min-width: 993px) {
	.pf-single > .entry-content { width: 80%; max-width: 80%; flex: 0 0 80%; padding-right: 40px; }
	.pf-single > .entry-content + div { width: 20%; max-width: 20%; flex: 0 0 20%; }
}


/* --- Лайтбокс галерей -------------------------------------------------- */
.pf-single .entry-content .wp-block-gallery img,
.pf-single .entry-content .wp-block-image img,
.pf-gallery img { cursor: zoom-in; }

.ebr-lb { position: fixed; inset: 0; z-index: 9000; display: none; flex-direction: column; background: #18181b; }
.ebr-lb.is-open { display: flex; }
.ebr-lb__top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px; color: rgba(255, 255, 255, .85); }
.ebr-lb__counter { font-size: 15px; font-weight: 500; letter-spacing: .04em; color: rgba(255, 255, 255, .7); }
.ebr-lb__tools { display: flex; align-items: center; gap: 2px; }
.ebr-lb__tools button, .ebr-lb__nav { display: flex; align-items: center; justify-content: center; background: none; border: 0; padding: 0; color: rgba(255, 255, 255, .8); cursor: pointer; transition: color .15s, opacity .15s; }
.ebr-lb__tools button { width: 44px; height: 44px; }
.ebr-lb__tools button:hover, .ebr-lb__nav:hover { color: #fff; }
.ebr-lb svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ebr-lb__tools .ebr-lb__i-play path, .ebr-lb__tools .ebr-lb__i-pause path { fill: currentColor; stroke: none; }
.ebr-lb__i-pause { display: none; }
.ebr-lb.is-playing .ebr-lb__i-play { display: none; }
.ebr-lb.is-playing .ebr-lb__i-pause { display: block; }
.ebr-lb__stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.ebr-lb__slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 8px 60px 14px; opacity: 1; transform: translateX(0) scale(1); transition: opacity .3s ease, transform .3s ease; }
.ebr-lb__slide img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; cursor: zoom-in; transition: transform .25s ease; }
.ebr-lb.is-zoomed .ebr-lb__slide img { cursor: zoom-out; }
.ebr-lb__thumbs { position: relative; z-index: 3; display: flex; gap: 6px; justify-content: center; overflow-x: auto; padding: 10px 14px 14px; scrollbar-width: none; }
.ebr-lb__thumbs::-webkit-scrollbar { display: none; }
.ebr-lb__thumb { flex: 0 0 auto; width: 96px; height: 62px; padding: 0; background: none; border: 0; cursor: pointer; opacity: .55; transition: opacity .2s; }
.ebr-lb__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ebr-lb__thumb:hover { opacity: .85; }
.ebr-lb__thumb.is-active { opacity: 1; outline: 2px solid #fff; outline-offset: -2px; }
.ebr-lb__nav { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 56px; height: 56px; }
.ebr-lb__nav svg { width: 30px; height: 30px; stroke-width: 1.4; }
.ebr-lb__prev { left: 6px; }
.ebr-lb__next { right: 6px; }

@media (max-width: 992px) {
	.ebr-lb__slide { padding: 6px 44px 10px; }
	.ebr-lb__nav { width: 48px; height: 48px; }
	.ebr-lb__nav svg { width: 26px; height: 26px; }
	.ebr-lb__thumb { width: 64px; height: 44px; }
	.ebr-lb__thumbs { justify-content: flex-start; }
}


/* --- Фильтр портфолио: раскладка на узких экранах ---------------------- */
.pf-filters { align-items: flex-start; }
.pf-drop { min-width: 0; }

@media (max-width: 992px) {
	.pf-filters { display: grid; grid-template-columns: 1fr; gap: 10px; }
	.pf-drop { position: relative; }
	.pf-drop__panel { position: absolute; top: calc(100% + 4px); left: 0; right: 0; max-height: 260px; margin: 0; box-shadow: 0 10px 20px rgba(0, 0, 0, .18); }
	.pf-meta { margin-top: 14px; }
}


/* Ссылка вокруг картинки не должна получать подчёркивание/рамку ссылки. */
.entry-content a:has(img),
.pf-gallery a,
.wp-block-gallery a,
.wp-block-image a { border: 0; text-decoration: none; display: block; line-height: 0; }
.entry-content a img, .pf-gallery a img { border: 0; }


/* --- Портфолио: фото одного размера, видео плитками по два --- */
.pf-single .wp-block-gallery,
.pf-single .entry-content .gallery { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 16px 0; }
.pf-single .wp-block-gallery > figure,
.pf-single .wp-block-gallery .wp-block-image,
.pf-single .entry-content .gallery .gallery-item { width: auto !important; max-width: none !important; flex: none !important; margin: 0 !important; aspect-ratio: 3 / 2; overflow: hidden; box-shadow: 0 0 10px 7px rgba(0, 0, 0, .2); }
.pf-single .wp-block-gallery > figure a,
.pf-single .wp-block-gallery img,
.pf-single .entry-content .gallery img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; }
.pf-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.pf-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 24px 0 0 0; }
.pf-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #0f1b32; cursor: pointer; }
.pf-video > img, .pf-video > video, .pf-video > iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.pf-video.is-playing { cursor: default; background: #000; }
.pf-video.is-playing > video { object-fit: contain; }
.pf-video__play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border: 0; border-radius: 50%; background: rgba(110, 96, 230, .85); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .2s, background-color .2s; }
.pf-video__play svg { width: 34px; height: 34px; fill: currentColor; margin-left: 4px; }
.pf-video:hover .pf-video__play { transform: scale(1.08); background: rgba(110, 96, 230, 1); }

@media (max-width: 992px) {
	.pf-single .wp-block-gallery, .pf-single .entry-content .gallery, .pf-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.pf-videos { grid-template-columns: 1fr; gap: 14px; }
	.pf-video__play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
	.pf-video__play svg { width: 26px; height: 26px; }
}

/* Кнопка «Все проекты» на странице проекта */
.pf-back-wrap { text-align: center; margin: 40px 0 0 0; }
.pf-back { text-decoration: none; }
.pf-back:hover { color: #fff; text-decoration: none; }
@media (max-width: 992px) { .pf-back { display: block; text-align: center; } }
