/* Home page production videos: hero slider and «Полный цикл» block. Brand: orange #F25739, navy #2A3553. */
.ibv-hero, .ibv-cycle {
	--ibv-orange: #F25739;
	--ibv-orange-dark: #d9442a;
	--ibv-navy: #2A3553;
	--ibv-ink: #11182a;
	--ibv-muted: #6b7489;
}
.ibv-hero *, .ibv-cycle * { box-sizing: border-box; }

.ibv-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 10px 28px; border: 2px solid var(--ibv-orange); border-radius: 99px;
	background: var(--ibv-orange); color: #fff !important; font: 500 16px/1.2 Roboto, Arial, sans-serif;
	text-decoration: none !important; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.ibv-btn:hover { background: var(--ibv-orange-dark); border-color: var(--ibv-orange-dark); transform: translateY(-2px); }
.ibv-btn--ghost { background: transparent; border-color: rgba(255,255,255,.7); }
.ibv-btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ibv-navy) !important; }
.ibv-btn--ghost-dark { background: transparent; border-color: var(--ibv-navy); color: var(--ibv-navy) !important; }
.ibv-btn--ghost-dark:hover { background: var(--ibv-navy); border-color: var(--ibv-navy); color: #fff !important; }
.ibv-btn:focus-visible, .ibv-tab:focus-visible, .ibv-card__media:focus-visible,
.ibv-lightbox__close:focus-visible { outline: 3px solid #ffb59f; outline-offset: 3px; }

/* ---------- Hero: background video per machine ---------- */
.ibv-hero { position: relative; overflow: hidden; min-height: 600px; background: var(--ibv-ink); color: #fff; }
.ibv-hero__media, .ibv-hero__shade { position: absolute; inset: 0; }
.ibv-hero__video {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	opacity: 0; transition: opacity .9s ease;
}
.ibv-hero__video.is-active { opacity: 1; }
.ibv-hero__shade {
	background:
		linear-gradient(90deg, rgba(17,24,42,.88) 0%, rgba(17,24,42,.62) 42%, rgba(17,24,42,.12) 100%),
		linear-gradient(0deg, rgba(17,24,42,.7) 0%, rgba(17,24,42,0) 38%);
}
.ibv-hero__inner { position: relative; display: flex; flex-direction: column; min-height: 600px; padding-top: 56px; padding-bottom: 28px; }
.ibv-hero__eyebrow {
	display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
	color: var(--ibv-orange); font: 500 13px/1 Roboto, Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase;
}
.ibv-hero__eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.ibv-hero__lead { max-width: 640px; margin-top: 14px; font: 26px/1.25 Gilroy, Roboto, sans-serif; color: rgba(255,255,255,.92); }
.ibv-hero__slides { position: relative; margin-top: auto; min-height: 196px; }
.ibv-hero__slide {
	position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 22px; align-items: flex-start;
	opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; pointer-events: none;
}
.ibv-hero__slide.is-active { opacity: 1; transform: none; transition-delay: .25s; pointer-events: auto; }
.ibv-hero__step { font: 84px/0.82 Gilroy, Roboto, sans-serif; color: var(--ibv-orange); }
.ibv-hero__title { font: 48px/1.05 Gilroy, Roboto, sans-serif; letter-spacing: -.01em; }
.ibv-hero__machine { margin-top: 10px; font: 500 17px/1.3 Roboto, Arial, sans-serif; color: rgba(255,255,255,.88); }
.ibv-hero__text { max-width: 520px; margin: 10px 0 0; font: 16px/1.5 Roboto, Arial, sans-serif; color: rgba(255,255,255,.78); }
.ibv-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ibv-hero__tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.ibv-tab {
	display: block; padding: 0 0 4px; border: 0; background: none; color: rgba(255,255,255,.62); text-align: left; cursor: pointer;
	font: 500 15px/1.3 Roboto, Arial, sans-serif; transition: color .2s;
}
.ibv-tab:hover, .ibv-tab.is-active { color: #fff; }
.ibv-tab__step { color: var(--ibv-orange); margin-right: 4px; }
.ibv-tab__bar { display: block; height: 3px; margin-bottom: 12px; border-radius: 2px; background: rgba(255,255,255,.22); overflow: hidden; }
.ibv-tab__bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--ibv-orange); }
.ibv-tab:not(.is-active) .ibv-tab__bar i { width: 0; }

/* ---------- Production cycle: four steps with video preview ---------- */
.ibv-cycle { padding: 72px 0 84px; background: #f4f6fb; }
.ibv-cycle__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.ibv-cycle__title { margin: 0; font: 44px/1.08 Gilroy, Roboto, sans-serif; color: var(--ibv-navy); }
.ibv-cycle__title span { color: var(--ibv-orange); }
.ibv-cycle__lead { margin: 0; font: 18px/1.4 Gilroy, Roboto, sans-serif; color: var(--ibv-muted); }
.ibv-cycle__list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ibv-card { position: relative; margin: 0; padding: 0; container-type: inline-size; }
.ibv-card::before { content: none; }
.ibv-card:not(:last-child)::after {
	/* Arrow to the next step, centred on the 4:3 video. */
	content: ""; position: absolute; top: calc(37.5cqw - 8px); right: -20px; z-index: 2; width: 16px; height: 16px;
	background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23F25739' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h11M9 3.5 13.5 8 9 12.5'/%3E%3C/svg%3E");
}
.ibv-card__media {
	position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; overflow: hidden;
	border-radius: 18px; background: var(--ibv-ink); cursor: pointer;
}
.ibv-card__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ibv-card:hover .ibv-card__video { transform: scale(1.04); }
.ibv-card__play {
	position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%;
	background: var(--ibv-orange) center / 14px no-repeat; box-shadow: 0 6px 16px rgba(242,87,57,.4); transition: transform .2s;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='white'%3E%3Cpath d='M3.5 1.5v11l9-5.5z'/%3E%3C/svg%3E");
}
.ibv-card__media:hover .ibv-card__play { transform: scale(1.1); }
.ibv-card__step {
	position: absolute; left: 14px; top: 14px; padding: 6px 10px; border-radius: 99px;
	background: #fff; color: var(--ibv-orange); font: 15px/1 Gilroy, Roboto, sans-serif;
}
.ibv-card__title { margin-top: 18px; font: 20px/1.2 Gilroy, Roboto, sans-serif; color: var(--ibv-navy); }
.ibv-card__machine { margin-top: 6px; font: 500 14px/1.3 Roboto, Arial, sans-serif; color: var(--ibv-orange); }
.ibv-card__text { margin: 8px 0 0; font: 15px/1.55 Roboto, Arial, sans-serif; color: var(--ibv-muted); }
.ibv-cycle__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 44px; }

.ibv-lightbox { width: min(1100px, 92vw); max-width: none; padding: 0; border: 0; border-radius: 18px; overflow: visible; background: var(--ibv-ink); }
.ibv-lightbox::backdrop { background: rgba(17,24,42,.82); }
.ibv-lightbox__video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; background: #000; }
.ibv-lightbox__close {
	position: absolute; right: -14px; top: -14px; z-index: 1; width: 40px; height: 40px; border: 0; border-radius: 50%;
	background: #fff; color: var(--ibv-navy); font: 26px/1 Roboto, Arial, sans-serif; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

/* ---------- Tablet / phone ---------- */
@media (max-width: 991px) {
	.ibv-hero__title { font-size: 38px; }
	.ibv-hero__step { font-size: 64px; }
	.ibv-cycle__head { grid-template-columns: 1fr; gap: 14px; }
	.ibv-cycle__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ibv-card:nth-child(2)::after { content: none; }
}
@media (max-width: 767px) {
	.ibv-hero, .ibv-hero__inner { min-height: 560px; }
	.ibv-hero__inner { padding-top: 32px; padding-bottom: 20px; }
	.ibv-hero__shade { background: linear-gradient(0deg, rgba(17,24,42,.92) 0%, rgba(17,24,42,.55) 55%, rgba(17,24,42,.35) 100%); }
	.ibv-hero__lead { font-size: 21px; }
	.ibv-hero__slides { min-height: 210px; }
	.ibv-hero__slide { gap: 14px; }
	.ibv-hero__step { font-size: 44px; }
	.ibv-hero__title { font-size: 28px; }
	.ibv-hero__text { font-size: 15px; }
	.ibv-hero__actions .ibv-btn { flex: 1 1 auto; }
	.ibv-hero__tabs { gap: 10px; margin-top: 24px; }
	.ibv-tab { font-size: 13px; }
	.ibv-tab__step { display: none; }
	.ibv-cycle { padding: 48px 0 56px; }
	.ibv-cycle__title { font-size: 32px; }
	.ibv-cycle__list {
		grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px;
		overflow-x: auto; scroll-snap-type: x mandatory; margin-right: -15px; padding-right: 15px; padding-bottom: 6px;
	}
	.ibv-card { scroll-snap-align: start; }
	.ibv-card::after { content: none !important; }
}
@media (prefers-reduced-motion: reduce) {
	.ibv-hero__video, .ibv-hero__slide, .ibv-card__video { transition: none; }
}
