

/*
 * Custom translucent site header
 */

.site-header {
  background-color: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.site-header a {
  color: #8e8e8e;
  transition: color .15s ease-in-out;
}
.site-header a:hover {
  color: #fff;
  text-decoration: none;
}


.flex-equal > * {
  flex: 1;
}
@media (min-width: 768px) {
  .flex-md-equal > * {
    flex: 1;
  }
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
:root {
	--index: calc(1vw + 1vh);
	--transition: cubic-bezier(.1, .7, 0, 1);
}
body {
	background-color: #212529;
}

/* --- О компании: широкие экраны + читаемая колонка, без поломки мобильной вёрстки --- */
.page-ocomp {
	overflow-x: clip;
}

/* Полоски-разделители: не выходят за колонку на узких экранах */
.company-content .ocomp-strip,
.ocomp-competencies-body .ocomp-strip {
	display: block;
	width: min(500px, 100%);
	height: auto;
	margin: 1rem auto;
}

@media (min-width: 769px) {
	.ocomp-competencies {
		max-width: min(72rem, 100%) !important;
		margin-inline: auto !important;
		width: 100%;
		border-radius: 6px;
	}

	.ocomp-competencies-body .ocomp-strip {
		margin-bottom: 0.5rem;
	}

	.company-content {
		max-width: min(72rem, 100%);
		margin: 50px auto 0 !important;
		padding: 0 clamp(16px, 3vw, 32px);
	}

	.company-content > h1 {
		font-size: clamp(1.75rem, 3.5vw, 2.75rem);
		text-wrap: balance;
		text-align: center;
		margin-bottom: 1rem;
	}

	.company-content .ocomp-lead {
		font-size: clamp(1rem, 0.9vw + 0.65rem, 1.2rem) !important;
		line-height: 1.55;
		max-width: 1900px !important;
		width: 100% !important;
		margin-left: auto !important;
		margin-right: auto !important;
		text-align: left !important;
	}

	.company-content .ocomp-lead--display {
		font-size: clamp(1.35rem, 2vw + 0.5rem, 2rem) !important;
		max-width: 1900px !important;
		hyphens: auto;
	}

	.company-content .ocomp-lead--mission-title {
		font-size: clamp(1.25rem, 1.6vw + 0.5rem, 1.75rem) !important;
		max-width: 1900px !important;
		margin-top: 1.5rem !important;
		font-weight: 700;
		text-align: center !important;
	}

	.company-content .ocomp-lead--quote {
		font-size: clamp(1.15rem, 1.4vw + 0.45rem, 1.6rem) !important;
		max-width: 42rem !important;
		text-align: center !important;
		color: #fc6005 !important;
	}

	.company-content .ocomp-lead--card {
		font-size: clamp(1.05rem, 1.1vw + 0.55rem, 1.35rem) !important;
		max-width: 44rem !important;
		text-align: center !important;
	}

	.ocomp-competencies-body {
		max-width: 48rem;
		margin-inline: auto;
	}

	/* Блок «Компетенции» */
	.ocomp-competencies .display-5 {
		font-size: clamp(1.75rem, 3vw, 2.35rem);
	}

	.ocomp-competencies-article {
		background: transparent !important;
	}

	.page-ocomp .ocomp-hero {
		max-width: min(1920px, 100%);
		margin-inline: auto;
		background: #000;
	}

	.page-ocomp .ocomp-hero__inner {
		width: 100%;
		aspect-ratio: 16 / 9;
		max-height: min(75vh, 900px);
		overflow: hidden;
		background: #000;
	}

	.page-ocomp .hero-video {
		width: 100% !important;
		height: 100% !important;
		object-fit: cover;
		display: block;
	}

	/* Карусель проектов: не разъезжается на 21:9 */
	.page-ocomp .items {
		--index: min(calc(1vw + 1vh), 26px);
	}

	.page-ocomp .ocomp-projects-section {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw);
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.page-ocomp .ocomp-projects-panel {
		width: 100%;
		margin-right: 0 !important;
		border-radius: 0;
	}

	.page-ocomp .wrapper.ocomp-carousel {
		max-width: min(1400px, 96vw);
		margin-inline: auto;
		height: min(52vh, 620px);
		box-sizing: border-box;
		padding-inline: clamp(16px, 4vw, 40px);
		overflow-x: auto;
		overflow-y: visible;
	}

	.page-ocomp .wrapper.ocomp-carousel.is-active {
		overflow: visible;
	}

	.page-ocomp .item {
		position: relative;
	}

	.page-ocomp .d-md-flex.flex-md-equal.w-100 {
		max-width: min(1600px, 100%);
		margin-inline: auto;
	}

	.page-ocomp .t594__container {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		gap: clamp(12px, 2vw, 28px);
		padding-block: 8px;
	}

	.page-ocomp .t594__img {
		max-width: min(250px, 38vw) !important;
		width: auto !important;
		height: auto !important;
		object-fit: contain;
	}
}

@media (max-width: 768px) {
	.company-content .ocomp-strip {
		max-width: 100%;
	}

	.page-ocomp .wrapper.ocomp-carousel {
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
	}

	.page-ocomp .items {
		scroll-snap-align: none;
	}

	.page-ocomp .item {
		scroll-snap-align: center;
		scroll-snap-stop: always;
	}
}

/* Keep the presentation video in normal flow (no overlap). */
.company-video {
	position: static !important;
	top: auto !important;
	right: auto !important;
	left: auto !important;
	display: block;
	margin: 16px auto 0;
	width: 100% !important;
	max-width: 800px;
	height: auto !important;
}

/* Prevent horizontal scroll caused by fixed-width blocks on small screens */
@media (max-width: 768px) {
	.company-content img {
		max-width: 100%;
		height: auto;
	}

	/* The second video is absolutely positioned on desktop; make it flow on mobile */
	.company-video {
		max-width: 100% !important;
	}
}
/* Блок «Проекты»: тёмный фон на всю ширину окна */
.page-ocomp .ocomp-projects-section {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.page-ocomp .ocomp-projects-panel {
	width: 100%;
	margin-right: 0 !important;
}

.wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 50vh;
}

.page-ocomp .wrapper.ocomp-carousel {
	overflow-x: auto;
	overflow-y: visible;
	padding-inline: clamp(16px, 4vw, 40px);
	box-sizing: border-box;
	scroll-padding-inline: clamp(16px, 4vw, 40px);
	scrollbar-width: thin;
	scrollbar-color: rgba(252, 96, 5, 0.35) transparent;
}

.page-ocomp .wrapper.ocomp-carousel.is-active {
	overflow: visible;
}

.page-ocomp .items {
	padding-inline: clamp(8px, 2vw, 20px);
	width: max-content;
	max-width: 100%;
	margin-inline: auto;
}

.items {
	display: flex;
	gap: 0.4rem;
	perspective: calc(var(--index) * 35);
	position: relative;
	align-items: center;
}

/* Затемнение на весь экран (отдельный слой — perspective на .items ломает fixed внутри карусели) */
.ocomp-carousel-backdrop {
	position: fixed;
	inset: 0;
	z-index: 900;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.45s ease;
	background:
		radial-gradient(ellipse 90% 75% at 50% 42%, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.65) 100%),
		rgba(0, 0, 0, 0.55);
}

.ocomp-carousel-backdrop.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.ocomp-carousel-backdrop.is-closing {
	transition: opacity 0.28s ease-out;
}

body.ocomp-carousel-open {
	overflow: hidden;
}

body.ocomp-carousel-open .ocomp-carousel-backdrop {
	touch-action: none;
}

body > .item.is-open.is-expanded {
	touch-action: none;
}

.item {
	background-color: #222;
	width: calc(var(--index) * 3);
	height: calc(var(--index) * 12);
	background-size: cover;
	background-position: center;
	cursor: pointer;
	transition: transform 1.25s var(--transition), filter 3s var(--transition), width 1.25s var(--transition);
	will-change: transform, filter;
	filter: grayscale() brightness(0.5);
}

.item::before,
.item::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 100%;
	right: calc(var(--index) * -1);
}

.item::after {
	left: calc(var(--index) * -1);
}

.items .item:hover {
	transform: translateZ(calc(var(--index) * 10));
	filter: inherit;
}

.items .item:hover + * {
	transform: translateZ(calc(var(--index) * 8.5)) rotateY(35deg);
	filter: inherit;
	z-index: -1;
}

.items .item:hover + * + * {
	transform: translateZ(calc(var(--index) * 5.6)) rotateY(40deg);
	filter: inherit;
	z-index: -2;
}

.items .item:hover + * + * + * {
	transform: translateZ(calc(var(--index) * 2.4)) rotateY(30deg);
	filter: inherit;
	z-index: -3;
}

.items .item:hover + * + * + * + * {
	transform: translateZ(calc(var(--index) * 0.6)) rotateY(14deg);
	filter: inherit;
	z-index: -4;
}

.item:has(+ :hover) {
	transform: translateZ(calc(var(--index) * 8.5)) rotateY(-35deg);
	filter: inherit;
}

.item:has(+ * + :hover) {
	transform: translateZ(calc(var(--index) * 5.6)) rotateY(-40deg);
	filter: inherit;
}

.item:has(+ * + * + :hover) {
	transform: translateZ(calc(var(--index) * 2.4)) rotateY(-30deg);
	filter: inherit;
}

.item:has(+ * + * + * + :hover) {
	transform: translateZ(calc(var(--index) * 0.6)) rotateY(-14deg);
	filter: inherit;
}

.page-ocomp .items.has-open > .item {
	transform: none !important;
	filter: grayscale() brightness(0.4);
}

.page-ocomp .items.has-open > .item::before,
.page-ocomp .items.has-open > .item::after {
	display: none;
}

.ocomp-carousel-placeholder {
	display: inline-block;
	flex-shrink: 0;
	vertical-align: top;
	pointer-events: none;
}

/* Открытая карточка — позиция/размер анимируются в JS (FLIP) */
body > .item.is-open {
	--index: min(calc(1vw + 1vh), 26px);
	filter: none !important;
	overflow: hidden;
	box-sizing: border-box;
}

body > .item.is-open .Text-Picture {
	transition:
		opacity 0.35s var(--transition),
		transform 0.35s var(--transition);
}

body > .item.is-open:not(.is-expanded) .Text-Picture,
body > .item.is-open.is-closing .Text-Picture {
	opacity: 0;
	transform: translateX(-50%) translateY(12px);
	transition-delay: 0s;
}

body > .item.is-open.is-expanded:not(.is-closing) .Text-Picture {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
	transition-delay: 0.55s;
}

.Text-Picture {
	position: absolute;
	bottom: 10px;
	left: 50%;
	width: calc(100% - 12px);
	max-width: 100%;
	transform: translateX(-50%) translateY(20px);
	text-align: center;
	font-size: calc(var(--index) * 0.72);
	line-height: 1.35;
	font-weight: 500;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(4px);
	border-radius: 10px;
	padding: 0.45rem 0.65rem;
	box-sizing: border-box;
	opacity: 0;
	transition: opacity 0.6s ease, transform 0.6s ease;
	pointer-events: none;
	word-wrap: break-word;
	overflow-wrap: break-word;
	hyphens: auto;
}

body > .item.is-open .Text-Picture {
	font-size: clamp(11px, calc(var(--index) * 0.68), 15px);
	bottom: 12px;
	width: calc(100% - 20px);
	background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.6) 100%);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	padding: 0.55rem 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
	body > .item.is-open .Text-Picture {
		transition: none;
		transition-delay: 0s;
	}

	.ocomp-carousel-backdrop {
		transition: none;
	}
}


.frame-media {
	position: relative;
	width: calc(var(--index) * var(--side-small));
	height: calc(var(--index) * var(--side-big));
	background-position: center;
	background-size: cover;
}
.frame-media_left {
	right: calc(var(--side-small) / 1.5 * var(--index) + var(--gutter));
}
.frame-media_right {
	left: calc(var(--side-small) / 2 * var(--index) + var(--gutter));
}
.frame_bg {
	background-color: #000;
}
video.frame-media {
	width: calc(var(--index) * var(--side-big));
	height: calc(var(--index) * var(--side-small));
}
video.frame-media_right {
	left: calc(var(--side-big) / 2 * var(--index) + var(--gutter));
}
video.frame-media_left {
	right: calc(var(--side-big) / 2 * var(--index) + var(--gutter));
}
.text-right > * {
	position: relative;
	left: 18vw;
}
.text-left > * {
	position: relative;
	right: 18vw;
}
.frame h3 {
	font-size: calc(var(--index) * 3);
}
.frame p {
	max-width: 30vw;
	margin-top: 3vh;
}
.soundbutton {
	position: fixed;
	bottom: 5vh;
	right: 5vw;
	cursor: pointer;
	width: 24px;
	transition: .25s ease;
}
.soundbutton.paused {
	opacity: .25;
}



/* NOTE: stray "<style>" tag removed (invalid in .css file) */
      .bd-placeholder-img {
        font-size: 1.125rem;
        text-anchor: middle;
        -webkit-user-select: none;
        -moz-user-select: none;
        user-select: none;
      }

      @media (min-width: 768px) {
        .bd-placeholder-img-lg {
          font-size: 3.5rem;
        }
      }
     .card-text{
      color: #000;
     }
     .card{
      height: 230px;
      width: 500px;
     }
     .row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}

/* Создайте четыре одинаковых столбца, которые находятся рядом друг с другом */
.column {
  flex: 25%;
  max-width: 25%;
  padding: 0 4px;
}

.column img {
  margin-top: 8px;
  vertical-align: middle;
  width: 100%;
}

/* Адаптивный макет - делает два столбца макет вместо четырех столбцов */
@media screen and (max-width: 800px) {
  .column {
    flex: 50%;
    max-width: 50%;
  }
}

/* Адаптивный макет - делает два столбца стека друг на друга, а не рядом друг с другом */
@media screen and (max-width: 600px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }
}
.container {
  position: relative;
  width: 100%;
}

.image {
  display: block;
  width: 100%;
  height: auto;
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: #000;
  
}

.container:hover .overlay {
  opacity: 0.9;
}

.text {
  color: white;
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 20px;
  position: absolute;
  top: 80%;
  left: 40%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: left;
}
#background-video {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
  object-fit: cover;
}
/* --- Социальные иконки в правом нижнем углу --- */
.social-icons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
}

.social-icons ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0;
  margin: 0;
}

.social-icons ul li {
  position: relative;
}

.social-icons ul li a {
  text-decoration: none;
  color: #aaa;
  font-size: 2.4em;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons ul li a:hover {
  transform: scale(1.2);
}

/* WhatsApp */
.social-icons ul li:nth-child(1) a:hover {
  color: #0077ff;
}

/* ВКонтакте */
.social-icons ul li:nth-child(2) a:hover {
  color: #0077ff;
}

/* Тень для контраста */
.social-icons ul li a {
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

 





