/*
 * Template: Про нас
 * Підключається умовно через wp_enqueue_scripts (див. functions.php).
 */

.page-about {
	--about-red: #9e0909;
	--about-cream: #f5ebdf;
	--about-text: #1e1e1e;
	--about-muted: #731414;
	--about-border: #bababa;
	--about-radius: 14px;
	color: var(--about-text);
}

.page-about .breadcrumb-area,
.page-about .rt-breadcrumb,
.page-about .breadcrumb-area .entry-breadcrumb {
	margin-bottom: 30px;
	font-family: 'Rubik', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.6;
	text-transform: uppercase;
	color: var(--about-muted);
}

.page-about__label {
	display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 274px;
    min-height: 42px;
    margin: 0 0 36px;
    padding: 16px 24px;
    border-radius: 14px;
    background: var(--about-red);
    font-family: 'Rubik', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: .918;
    text-align: center;
    text-transform: uppercase;
    color: var(--about-cream);
}

.page-about__hero {
	position: relative;
	display: block;
	margin-bottom: 62px;
	border-radius: var(--about-radius);
	overflow: hidden;
	aspect-ratio: 1000 / 667;
	text-decoration: none;
	background: #ddd;
}

.page-about__hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(217, 217, 217, 0) 52%, rgba(0, 0, 0, .38) 100%);
	pointer-events: none;
}

.page-about__hero-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.page-about__hero-title {
	position: absolute;
	left: 50%;
	bottom: 28px;
	z-index: 1;
	width: calc(100% - 40px);
	transform: translateX(-50%);
	font-family: 'Rubik', sans-serif;
	font-size: clamp(28px, 4vw, 48px);
	font-weight: 900;
	line-height: 1.085;
	text-align: center;
	text-transform: uppercase;
	color: #fff;
}

.page-about__site {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(250px, 385px);
	gap: 58px;
	align-items: stretch;
	margin-bottom: 56px;
}

.page-about__site-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding-top: 34px;
}

.page-about__site-title {
	margin: 0 0 32px;
	font-family: 'Rubik', sans-serif;
	font-size: clamp(30px, 4vw, 48px);
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--about-red);
}

.page-about__site-text {
	max-width: 555px;
	margin-bottom: 26px;
	font-family: 'Rubik', sans-serif;
	font-size: 18px;
	font-weight: 300;
	line-height: 1.3;
	color: #000;
}

.page-about__site-text p {
	margin: 0 0 22px;
}

.page-about__site-text p:first-child {
	font-weight: 500;
	line-height: 1.6;
	text-transform: uppercase;
}

.page-about__site-text p:last-child {
	margin-bottom: 0;
}

.page-about__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 64px;
	padding: 20px 30px;
	border: 1px solid var(--about-border);
	border-radius: var(--about-radius);
	background: #fff;
	font-family: 'Rubik', sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	letter-spacing: 1.4px;
	text-align: center;
	text-transform: uppercase;
	color: var(--about-red);
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.page-about__btn:hover,
.page-about__btn:focus {
	border-color: var(--about-red);
	background: var(--about-red);
	color: #fff;
	text-decoration: none;
}

.page-about__brand-card {
	display: block;
	width: 100%;
	border-radius: var(--about-radius);
	overflow: hidden;
}

.page-about__brand-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--about-radius);
}

.page-about__team {
	display: flex;
	min-height: 690px;
	margin-bottom: 90px;
	padding: 51px 24px 47px;
	border-radius: var(--about-radius);
	background: var(--about-cream);
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.page-about__team-title,
.page-about__experts-title {
	margin: 0;
	font-family: 'Rubik', sans-serif;
	font-size: 28px;
	font-weight: 600;
	line-height: .918;
	text-align: center;
	text-transform: uppercase;
	color: #000;
}

.page-about__team-text {
	max-width: 554px;
	margin: 46px auto 0;
	font-family: 'Rubik', sans-serif;
	font-size: 18px;
	font-weight: 300;
	line-height: 1.2;
	color: var(--about-text);
}

.page-about__team-text p {
	margin: 0;
}

.page-about__team-authors {
	display: grid;
	width: 100%;
	max-width: 928px;
	grid-template-columns: repeat(3, 1fr);
	gap: 0 24px;
	margin: 35px auto 0;
	align-items: end;
}

.page-about__team .page-team__card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.page-about__team .page-team__card-visual {
	position: relative;
	display: flex;
	width: 100%;
	height: 275px;
	align-items: flex-end;
	justify-content: center;
	overflow: visible;
}
.page-about__team .page-about__btn {
    margin-top: 65px !important;
}
.page-about__team .page-team__card-letter {
	position: absolute;
	left: 55%;
	top: 0;
	transform: translateX(-50%);
	font-family: 'Rubik', sans-serif;
	font-size: 340px;
	font-weight: 900;
	line-height: .8;
	letter-spacing: 34px;
	color: var(--about-red);
	z-index: 0;
	pointer-events: none;
	user-select: none;
	text-transform: uppercase;
}

.page-about__team .page-team__card-photo {
	position: relative;
	z-index: 1;
	display: flex;
	width: 100%;
	height: 100%;
	align-items: flex-end;
	justify-content: center;
}

.page-about__team .page-team__card-img,
.page-about__team .page-team__card-photo img {
	display: block;
	width: auto;
	max-width: 100%;
	height: 100%;
	object-fit: cover;
}
.page-about__site-text p:nth-child(1) {
    margin-bottom: 16px;
}
.page-about__team .page-team__card-name {
	box-sizing: border-box;
	display: inline-flex;
	position: relative;
	z-index: 2;
	width: 250px;
	max-width: 100%;
	min-height: 40px;
	margin-top: 0;
	padding: 6px 24px;
	border: 1px solid var(--about-red);
	border-radius: 30px;
	background: #fff;
	align-items: center;
	justify-content: center;
	font-family: 'Rubik', sans-serif;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--about-text);
	white-space: nowrap;
}

.page-about__team .page-team__card-role {
	margin: 8px 0 0;
	font-family: 'Rubik', sans-serif;
	font-size: 18px;
	font-weight: 300;
	line-height: 1.2;
	color: var(--about-text);
}

.page-about__team-btn {
	margin-top: auto;
}

.page-about__experts {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 92px;
	text-align: center;
}

.page-about__experts-title {
	position: relative;
	margin-bottom: 72px;
}

.page-about__experts-title::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -36px;
	width: 96px;
	height: 4px;
	transform: translateX(-50%);
	background: var(--about-red);
}

.page-about__experts-grid {
	display: grid;
	width: 100%;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 36px;
	margin-bottom: 48px;
}

.page-about__expert {
	min-width: 0;
}

.page-about__expert-photo {
	width: min(100%, 309px);
	aspect-ratio: 1;
	margin: 0 auto 16px;
	border-radius: 50%;
	overflow: hidden;
}

.page-about__expert-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
    border: 2px solid #9e0909;
    border-radius: 100%;
}

.page-about__expert-name {
	margin: 0;
	font-family: 'Rubik', sans-serif;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	color: var(--about-text);
}

.page-about__experts-btn {
	min-width: 208px;
}

@media (max-width: 1199px) {
	.page-about__site {
		grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
		gap: 32px;
	}

	.page-about__team-authors,
	.page-about__experts-grid {
		gap: 24px;
	}
}

@media (max-width: 991px) {
	#main.page-about {
		padding: 0 12px;
	}

	.page-about__hero {
		margin-bottom: 42px;
	}

	.page-about__site {
		grid-template-columns: 1fr;
		gap: 28px;
		margin-bottom: 44px;
	}

	.page-about__site-copy {
		padding-top: 0;
	}

	.page-about__team {
		min-height: 0;
		margin-bottom: 60px;
		padding: 48px 24px 44px;
	}

	.page-about__team-text {
		margin-top: 48px;
	}

	.page-about__team-authors {
		max-width: 620px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 56px 20px;
	}

	.page-about__team .page-team__card-visual {
		height: 280px;
	}

	.page-about__team .page-team__card-letter {
		font-size: 260px;
		letter-spacing: 24px;
	}

	.page-about__team .page-team__card-name {
		min-height: 36px;
		padding: 6px 18px;
		font-size: 18px;
	}

	.page-about__team .page-team__card-role {
		font-size: 16px;
	}

	.page-about__experts-grid {
		grid-template-columns: 1fr;
		gap: 34px;
		max-width: 360px;
	}
}

@media (max-width: 575px) {
	#main.page-about {
		padding: 0 16px;
	}

	.page-about .breadcrumb-area,
	.page-about .rt-breadcrumb,
	.page-about .breadcrumb-area .entry-breadcrumb {
		margin-bottom: 18px;
		font-size: 12px;
		line-height: 1.4;
	}

	.page-about__label {
		width: 215px;
		min-width: 0;
		min-height: 40px;
		margin-bottom: 32px;
		padding: 10px 20px;
		border-radius: 14px;
		font-size: 18px;
	}

	.page-about__hero {
		aspect-ratio: 328 / 416;
		margin-bottom: 22px;
		border-radius: 14px;
	}

	.page-about__hero-title {
		top: 45%;
		bottom: auto;
		font-size: 26px;
		line-height: 1.2;
	}
    .page-about__team .page-about__team-btn {
        margin-top: 65px;
    }
	.page-about__site {
		display: grid;
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 14px 16px;
		align-items: start;
		margin-bottom: 32px;
	}

	.page-about__site-copy {
		display: contents;
	}

	.page-about__site-title {
		grid-column: 1 / -1;
		margin: 0;
		font-size: 26px;
		line-height: 1.2;
	}

	.page-about__site-text {
		grid-column: 2;
		grid-row: 2;
		max-width: 216px;
		margin: 0;
		font-size: 16px;
		line-height: 1.4;
	}

	.page-about__site-text p {
		margin-bottom: 0;
	}

	.page-about__site-text p:first-child {
		font-size: 14px;
		line-height: 1.4;
	}

	.page-about__btn {
		width: 248px;
		min-height: 48px;
		padding: 14px 18px;
		border-radius: 14px;
		font-size: 14px;
		line-height: 20px;
		letter-spacing: 1.4px;
	}

	.page-about__site .page-about__btn {
		grid-column: 1 / -1;
		justify-self: center;
		margin-top: 12px;
	}

	.page-about__brand-card {
		grid-column: 1;
		grid-row: 2;
		width: 160px;
		margin-left: -66px;
		border-radius: 0;
		overflow: visible;
	}

	.page-about__brand-img {
		width: 160px;
		border-radius: 0;
	}

	.page-about__team {
		position: relative;
		min-height: 330px;
		margin-bottom: 32px;
		padding: 89px 34px 32px;
		border-radius: 14px;
		overflow: hidden;
	}

	.page-about__team::before,
	.page-about__team::after {
		position: absolute;
		z-index: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 120px;
		height: 29px;
		border: 1px solid var(--about-red);
		border-radius: 14px;
		font-family: 'Rubik', sans-serif;
		font-size: 12px;
		font-weight: 500;
		line-height: 1.5;
		text-transform: uppercase;
		color: var(--about-red);
	}

	.page-about__team::before {
		content: 'відеограф';
		left: 27px;
		top: 33px;
		transform: rotate(8.66deg);
	}

	.page-about__team::after {
		content: 'PR-менеджер';
		right: 28px;
		bottom: 116px;
		transform: rotate(-11.62deg);
	}

	.page-about__experts-title {
		font-size: 18px;
	}

	.page-about__team-title,
	.page-about__team-authors {
		display: none;
	}

	.page-about__team-text {
		position: relative;
		z-index: 1;
		max-width: 260px;
		margin: 0 auto;
		font-size: 16px;
		font-weight: 700;
		line-height: 1.4;
		text-transform: uppercase;
		color: var(--about-red);
	}

	.page-about__team-btn {
		position: relative;
		z-index: 1;
		margin-top: auto;
	}

	.page-about__experts {
		margin-bottom: 32px;
	}

	.page-about__experts-title {
		margin-bottom: 47px;
	}

	.page-about__experts-title::after {
		bottom: -18px;
		width: 97px;
		height: 1px;
	}

	.page-about__experts-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		max-width: 328px;
		margin-bottom: 44px;
	}

	.page-about__expert:first-child {
		display: none;
	}

	.page-about__expert-photo {
		width: 155px;
		margin-bottom: 13px;
	}

	.page-about__expert-name {
		font-size: 14px;
		font-weight: 600;
		line-height: 1.3;
	}
}