/**
 * Styles for About Us Page Template ("Про нас")
 *
 * Implements Figma designs:
 * - Desktop: 616:7298
 * - Mobile: 616:9902
 * - Full Cycle 3D Scene: 616:7314
 *
 * @package uashelters
 */

/* ==========================================================================
   Main Page Wrapper
   ========================================================================== */
.site-main--about {
	background-color: #ffffff;
	color: #252525;
	overflow-x: hidden;
	position: relative;
}

/* ==========================================================================
   Section 1: Hero Section (Figma Desktop 616:7332 / Mobile 616:9903, 616:9936)
   ========================================================================== */
.about-hero-section {
	position: relative;
	min-height: 904px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-top: calc(var(--header-height-desktop, 80px) + 260px);
	padding-bottom: 69px;
	box-sizing: border-box;
	background-color: #0b0d0e;
	overflow: hidden;
}

body.admin-bar .about-hero-section {
	padding-top: calc(var(--header-height-desktop, 80px) + 292px);
}

.about-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}

.about-hero__bg picture,
.about-hero__bg-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.about-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(7, 7, 7, 0.7);
}

.about-hero__container {
	position: relative;
	z-index: 2;
	width: 100%;
}

.about-hero__content {
	max-width: 671px;
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.about-hero__title {
	font-family: var(--font-main, 'Gilroy', sans-serif);
	font-size: clamp(34px, 4.6vw, 66px);
	font-weight: 600;
	line-height: 1.16;
	color: #ffffff;
	text-transform: uppercase;
	margin: 0 0 16px 0;
	letter-spacing: -0.01em;
}

.about-hero__title span {
	color: var(--color-primary, #FF9500);
}

.about-hero__subtitle {
	font-family: var(--font-main, 'Gilroy', sans-serif);
	font-size: clamp(13px, 1.35vw, 19px);
	font-weight: 400;
	line-height: 1.31;
	color: #ffffff;
	max-width: 536px;
	margin: 0;
}

/* Stats Row */
.about-hero__stats {
	display: flex;
	align-items: flex-start;
	margin-top: 10px;
}

.about-hero__stat-item {
	display: flex;
	flex-direction: column;
	gap: 9px;
	box-sizing: border-box;
}

.about-hero__stat-item--1 {
	padding-right: 35px;
	min-width: 160px;
}

.about-hero__stat-item--2 {
	padding: 0 35px;
	border-left: 1.18px solid #ffffff;
	border-right: 1.18px solid #ffffff;
	min-width: 260px;
}

.about-hero__stat-item--3 {
	padding-left: 35px;
	min-width: 160px;
}

.about-hero__stat-number {
	font-family: var(--font-main, 'Gilroy', sans-serif);
	font-size: clamp(36px, 4.1vw, 59px);
	font-weight: 500;
	line-height: 1.05;
	color: var(--color-primary, #FF9500);
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.about-hero__stat-label {
	font-family: var(--font-main, 'Gilroy', sans-serif);
	font-size: clamp(13px, 1.35vw, 19px);
	font-weight: 400;
	line-height: 1.15;
	color: #ffffff;
	max-width: 224px;
}

/* ==========================================================================
   Section 2: Team & Specialization (Figma Desktop 616:7327 / Mobile 616:9951)
   ========================================================================== */
.about-team-section {
	padding: 100px 0 100px;
	background-color: #ffffff;
	box-sizing: border-box;
}

.about-team__container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 50px;
}

.about-team__content {
	flex: 1 1 50%;
	max-width: 625px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.about-team__text {
	font-family: var(--font-main, 'Gilroy', sans-serif);
	font-size: 19px;
	font-weight: 400;
	line-height: 1.5;
	color: #252525;
}

.about-team__text p {
	margin: 0 0 16px 0;
}

.about-team__text p:last-child {
	margin-bottom: 0;
}

.about-team__btn-wrap {
	margin-top: 6px;
}

.about-team__btn {
	width: 100%;
	max-width: 410px;
	height: 60px;
	padding: 0 30px;
	font-size: 20px;
	font-weight: 600;
	border-radius: 40px;
	background-color: var(--color-primary, #FF9500);
	color: #252525;
	border: 2px solid transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	text-decoration: none;
	transition: background-color var(--transition-base, 0.25s ease), transform 0.2s ease, box-shadow var(--transition-base, 0.25s ease);
}

.about-team__btn svg {
	transition: transform 0.25s ease;
}

.about-team__btn:hover {
	background-color: var(--color-primary-hover, #e08300);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(255, 149, 0, 0.35);
}

.about-team__btn:hover svg {
	transform: translateX(4px);
}

.about-team__media {
	flex: 1 1 50%;
	max-width: 651px;
}

.about-team__img-frame {
	position: relative;
	width: 100%;
	height: 353px;
	border-radius: 30px;
	overflow: hidden;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.about-team__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ==========================================================================
   Section 3: Full Cycle Horizontal Floating Stream Animation
   ========================================================================== */
.about-cycle-section {
	position: relative;
	width: 100%;
	padding: 85px 0 95px;
	background-color: #ffffff;
	box-sizing: border-box;
	overflow: hidden;
}

/* Dedicated Floating Stage - 100% full screen width */
.about-cycle__stage {
	position: relative;
	width: 100%;
	height: 840px;
	margin-bottom: 30px;
	overflow: hidden;
	/* Keeps continuous wrapping invisible outside bounds */
	user-select: none;
}

.about-cycle__bottom-container {
	position: relative;
	width: 100%;
}

/* Central Static Title - Positioned at z-index: 10 so front cards overlap it, back cards pass under it */
.about-cycle__center-title-wrap {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
	text-align: center;
	pointer-events: none;
	width: 100%;
	max-width: 580px;
}

.about-cycle__center-title {
	font-family: var(--font-main, 'Gilroy', sans-serif);
	font-size: 43px;
	font-weight: 600;
	line-height: 1.25;
	color: #252525;
	text-transform: uppercase;
	margin: 0;
	letter-spacing: -0.01em;
	text-shadow: 0 0 20px rgba(255, 255, 255, 0.95), 0 0 40px rgba(255, 255, 255, 0.85);
}

/* Floating Scene Canvas */
.about-cycle__scene {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: visible;
}

/* Individual Floating Cards */
.about-cycle__item {
	position: absolute;
	top: 0;
	left: 0;
	will-change: transform;
	pointer-events: auto;
	cursor: default;
}

/* Multi-layered Depth relative to Central Title:
   - Front cards float OVER the text (z-index 20), overlapping title letters
   - Back cards float UNDER the text (z-index 5)
*/
.about-cycle__item--layer-front {
	z-index: 20;
	filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.12));
}

.about-cycle__item--layer-back {
	z-index: 5;
	opacity: 0.88;
	filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.08));
}

.about-cycle__card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}

.about-cycle__img-wrap {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 24px;
	overflow: hidden;
	background-color: #ebecee;
}

.about-cycle__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
	transition: opacity 0.35s ease;
}

/* Card Caption */
.about-cycle__item-caption {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 8px;
	font-family: var(--font-main, 'Gilroy', sans-serif);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	color: #252525;
	pointer-events: none;
	white-space: nowrap;
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

/* Bottom Static Texts - NO background, NO border, pure transparent text */
.about-cycle__bottom-bar {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 15px;
	box-sizing: border-box;
	background: transparent;
	border: none;
}

.about-cycle__bottom-text {
	font-family: var(--font-main, 'Gilroy', sans-serif);
	font-size: 19px;
	font-weight: 400;
	line-height: 1.5;
	color: #252525;
	margin: 0;
	white-space: nowrap;
}

.about-cycle__bottom-text--caption-mobile {
	display: none;
}

/* ==========================================================================
   Section 4: Turnkey Solutions (Figma Desktop 616:7300 / Mobile 616:9966)
   ========================================================================== */
.about-turnkey-section {
	padding: 50px 0 150px;
	background-color: #ffffff;
	box-sizing: border-box;
}

.about-turnkey__hero {
	display: flex;
	flex-direction: column;
	gap: 31px;
	margin-bottom: 70px;
}

.about-turnkey__title {
	font-family: var(--font-main, 'Gilroy', sans-serif);
	font-size: clamp(28px, 3.75vw, 54px);
	font-weight: 600;
	line-height: 1.17;
	color: #252525;
	text-transform: uppercase;
	margin: 0;
	max-width: 100%;
}

.about-turnkey__img-frame {
	position: relative;
	width: 100%;
	height: 340px;
	border-radius: 30px;
	overflow: hidden;
	box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.about-turnkey__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 40% 27%;
	display: block;
}

.about-turnkey__features {
	display: flex;
	gap: 43px;
	align-items: flex-start;
}

.about-turnkey__feature-col {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.about-turnkey__feature-title {
	font-family: var(--font-main, 'Gilroy', sans-serif);
	font-size: clamp(20px, 1.67vw, 24px);
	font-weight: 600;
	line-height: 1.4;
	color: #252525;
	margin: 0;
}

.about-turnkey__feature-desc {
	font-family: var(--font-main, 'Gilroy', sans-serif);
	font-size: clamp(13px, 1.32vw, 19px);
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: -0.02em;
	color: #252525;
	margin: 0;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Adaptations (Figma Mobile 616:9902)
   ========================================================================== */

/* Tablet & Smaller Screens */
@media screen and (max-width: 1024px) {
	.about-hero-section {
		min-height: 750px;
		padding-top: calc(var(--header-height-desktop, 80px) + 180px);
		padding-bottom: 50px;
	}

	.about-team-section {
		padding: 70px 0 90px;
	}

	.about-cycle-section {
		padding: 70px 0 80px;
	}

	.about-cycle__stage {
		height: 640px;
		margin-bottom: 30px;
	}

	.about-cycle__center-title-wrap {
		top: 260px;
	}

	.about-cycle__center-title {
		font-size: 34px;
	}

	.about-cycle__item--slot-top_left {
		width: 245px;
		height: 175px;
		top: 0px;
		left: 3%;
	}

	.about-cycle__item--slot-mid_left {
		width: 245px;
		height: 175px;
		top: 95px;
		left: 16%;
	}

	.about-cycle__item--slot-top_center {
		width: 130px;
		height: 96px;
		top: 210px;
		left: 36%;
	}

	.about-cycle__item--slot-top_right {
		width: 330px;
		height: 245px;
		top: 0px;
		left: 63%;
	}

	.about-cycle__item--slot-top_right .about-cycle__item-caption {
		font-size: 15px;
		width: 230px;
	}

	.about-cycle__item--slot-bottom_left {
		width: 410px;
		height: 245px;
		top: 370px;
		left: 10%;
	}

	.about-cycle__item--slot-mid_right {
		width: 130px;
		height: 110px;
		top: 330px;
		left: 46%;
	}

	.about-cycle__item--slot-bottom_right {
		width: 260px;
		height: 190px;
		top: 305px;
		left: 56%;
	}

	.about-turnkey-section {
		padding: 70px 0 60px;
	}

	.about-turnkey__hero {
		margin-bottom: 40px;
	}

	.about-turnkey__img-frame {
		height: 420px;
	}
}

/* Mobile Screens (<= 767px) */
@media screen and (max-width: 767px) {

	/* Section 1: Hero Mobile (616:9903 / 616:9936) */
	.about-hero-section {
		min-height: 724px;
		padding-top: calc(var(--header-height-mobile, 60px) + 260px);
		padding-bottom: 30px;
	}

	body.admin-bar .about-hero-section {
		padding-top: calc(var(--header-height-mobile, 60px) + 292px);
	}

	.about-hero__content {
		gap: 24px;
	}

	.about-hero__title {
		letter-spacing: -0.03em;
		line-height: 1.16;
	}

	.about-hero__stats {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 14px 20px;
		margin-top: 6px;
	}

	.about-hero__stat-item--1,
	.about-hero__stat-item--2,
	.about-hero__stat-item--3 {
		padding: 0;
		border: none;
		min-width: 0;
	}

	.about-hero__stat-item--3 {
		grid-column: 1 / -1;
	}

	.about-hero__stat-number {
		font-size: 36px;
		line-height: 1;
	}

	.about-hero__stat-label {
		font-size: 13px;
		line-height: 1.1;
	}

	/* Section 2: Team Mobile (616:9951) */
	.about-team-section {
		padding: 50px 0 60px;
	}

	.about-team__container {
		flex-direction: column-reverse;
		gap: 15px;
	}

	.about-team__media {
		max-width: 100%;
		width: 100%;
	}

	.about-team__img-frame {
		height: 204px;
		border-radius: 30px;
	}

	.about-team__content {
		max-width: 100%;
		gap: 20px;
	}

	.about-team__text {
		font-size: 13px;
		line-height: 1.5;
	}

	.about-team__btn {
		max-width: 100%;
		height: 52px;
		font-size: 18px;
	}

	/* Section 3: Full Cycle Horizontal Stream Mobile */
	.about-cycle-section {
		padding: 50px 0 60px;
	}

	.about-cycle__stage {
		height: 540px;
		margin-bottom: 25px;
		overflow: hidden;
	}

	.about-cycle__center-title-wrap {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		max-width: 320px;
		width: 100%;
		z-index: 10;
		text-align: center;
	}

	.about-cycle__center-title {
		font-size: 26px;
		line-height: 1.15;
		letter-spacing: -0.5px;
	}

	.about-cycle__img-wrap {
		border-radius: 16px;
	}

	.about-cycle__item-caption {
		font-size: 11px;
		margin-top: 4px;
	}

	.about-cycle__bottom-bar {
		flex-direction: column;
		gap: 6px;
		text-align: center;
		border-top: none;
		padding-top: 10px;
	}

	.about-cycle__bottom-text {
		font-size: 13px;
		line-height: 1.5;
		white-space: normal;
		text-align: center;
	}

	.about-cycle__bottom-text--caption-mobile {
		display: block;
		font-weight: 500;
	}

	/* Section 4: Turnkey Mobile (616:9966) */
	.about-turnkey-section {
		padding: 50px 0 80px;
	}

	.about-turnkey__hero {
		gap: 16px;
		margin-bottom: 24px;
	}

	.about-turnkey__title {
		font-size: 28px;
		line-height: 1.17;
		letter-spacing: -0.84px;
	}

	.about-turnkey__img-frame {
		height: 163px;
		border-radius: 30px;
	}

	.about-turnkey__features {
		flex-direction: column;
		gap: 20px;
	}

	.about-turnkey__feature-col {
		gap: 4px;
	}

	.about-turnkey__feature-title {
		font-size: 20px;
	}

	.about-turnkey__feature-desc {
		font-size: 13px;
		letter-spacing: -0.26px;
	}
}

/* ==========================================================================
   Section 5: Certificates Section (Matches testing-certs)
   ========================================================================== */
.testing-certs {
	padding: 0px 0 100px;
	position: relative;
}

.testing-certs__header {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 50px;
}

.testing-certs__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #F0F0F0;
	border-radius: 100px;
	padding: 6px 14px;
	margin-bottom: 15px;
}

.testing-certs__badge span {
	font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1;
	color: #000;
}

.testing-certs__title {
	font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 56px;
	font-weight: 600;
	line-height: 1.16;
	text-transform: uppercase;
	color: #252525;
	margin: 0;
}

/* Slider Track Wrappers constrained to 1440px grid */
.testing-certs__slider-wrapper {
	position: relative;
	width: 100%;
	max-width: 1440px;
	padding-left: 60px;
	padding-right: 60px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

.testing-certs__slider-wrapper+.testing-certs__slider-wrapper,
.testing-certs__slider-wrapper+.testing-certs__slider-wrapper--second {
	margin-top: 50px;
}

.testing-certs__carousel {
	width: 100%;
}

.testing-certs__carousel .flickity-viewport {
	overflow: hidden;
	width: 100%;
}

/* Certificate Card Cell: 311px x 446px */
.testing-certs__cell {
	width: 311px;
	height: 446px;
	margin-right: 10px;
	box-sizing: border-box;
	flex-shrink: 0;
}

.testing-cert-card {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 25px;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	text-decoration: none;
	box-sizing: border-box;
}

.testing-cert-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.testing-cert-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 24px;
}

/* Side Navigation Arrows for Certificates */
.testing-certs__arrows {
	position: absolute;
	top: 50%;
	left: 30px;
	right: 30px;
	transform: translateY(-50%);
	display: flex;
	justify-content: space-between;
	pointer-events: none;
	z-index: 10;
}

.testing-slider-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	border-radius: 50%;
	transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

.testing-slider-btn:hover {
	transform: scale(1.08);
}

.testing-slider-btn:active {
	transform: scale(0.96);
}

.testing-slider-btn svg {
	display: block;
	width: 100%;
	height: 100%;
}

.testing-certs__arrows .testing-slider-btn {
	pointer-events: auto;
	width: 60px;
	height: 60px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Flickity Page Dots */
.site-main--about .flickity-page-dots {
	position: relative;
	bottom: 0;
	margin-top: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 0;
	list-style: none;
}

.site-main--about .flickity-page-dots .dot {
	width: 8px;
	height: 8px;
	margin: 0;
	border-radius: 50%;
	background: #d9d9d9;
	opacity: 1;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.site-main--about .flickity-page-dots .dot.is-selected {
	background: #ff9500;
	transform: scale(1.2);
}

@media (min-width: 993px) {
	.testing-certs__carousel--static {
		display: grid !important;
		grid-template-columns: repeat(4, 1fr) !important;
		gap: clamp(15px, 1.8vw, 25px) !important;
		width: 100% !important;
	}

	.testing-certs__carousel--static .testing-certs__cell {
		width: 100% !important;
		height: auto !important;
		aspect-ratio: 311 / 446 !important;
		margin-right: 0 !important;
	}

	.testing-certs__arrows--static,
	.testing-certs__slider-wrapper--static .testing-certs__arrows {
		display: none !important;
	}

	.testing-certs__slider-wrapper--static .flickity-page-dots {
		display: none !important;
	}
}

@media (max-width: 992px) {
	.testing-certs {
		padding: 40px 0 60px;
	}

	.testing-certs__slider-wrapper {
		padding-left: 30px;
		padding-right: 30px;
	}

	.testing-certs__arrows {
		left: 10px;
		right: 10px;
	}

	.testing-certs__title {
		font-size: 42px;
	}

	.testing-certs__cell {
		width: 280px;
		height: 400px;
	}
}

@media (max-width: 768px) {
	.testing-certs {
		padding: 30px 0 50px;
	}

	.testing-certs__slider-wrapper {
		padding-left: 20px;
		padding-right: 20px;
	}

	.testing-certs__badge {
		padding: 4px 10px;
		margin-bottom: 10px;
	}

	.testing-certs__badge span {
		font-size: 8px;
	}

	.testing-certs__title {
		font-size: 36px;
		letter-spacing: 0;
	}

	.testing-certs__header {
		margin-bottom: 25px;
	}

	.testing-certs__cell {
		width: 100%;
		height: auto;
		margin-right: 8px;
	}

	.testing-certs__slider-wrapper+.testing-certs__slider-wrapper,
	.testing-certs__slider-wrapper+.testing-certs__slider-wrapper--second {
		margin-top: 30px;
	}

	.testing-certs__arrows {
		display: none;
	}
}