*,
*::before,
*::after {
	box-sizing: border-box;
}

:root {
	--primary-color: #1a1a1a;
	--text-color: #3d3d3d;
	--bg-color: #fafaf9;
	--card-bg: #ffffff;
	--border-color: #e5e5e5;
	--accent-color: #666;
	--accent-hover: #444;
	--accent-light: rgba(102, 102, 102, 0.08);
}

body {
	margin: 0;
	padding: 3rem 1.5rem;
	font-family: 'open-sans-v17-latin', -apple-system, BlinkMacSystemFont, sans-serif;
	background-color: var(--bg-color);
	color: var(--text-color);
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2 {font-weight: 400;}

.card {
	width: 100%;
	max-width: 68rem;
	background-color: var(--card-bg);
	border-radius: 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 30px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.card-header {
	padding: 2rem;
	text-align: center;
	border-bottom: 1px solid var(--border-color);
}

.card-header img {
	max-width: 280px;
	height: auto;
	display: block;
	margin: 0 auto;
}

.text-section {
	padding: 3rem;
}

.text-section--split {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 4rem;
}

.text-main {
	position: relative;
}

.profile-image {
	width: 100%;
	height: auto;
	display: block;
	margin-bottom: 2rem;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	position: relative;
}

.profile-image::before {
	content: '';
	position: absolute;
	top: -6px;
	left: -6px;
	right: -6px;
	bottom: -6px;
	border: 2px solid var(--accent-color);
	border-radius: 12px;
	opacity: 0.4;
}

h1 {
	font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.5rem);
	margin: 0 0 0.5rem 0;
	line-height: 1.15;
	color: var(--primary-color);
	letter-spacing: -0.02em;
	position: relative;
	z-index: 1;
}

.subtitle {
	font-size: clamp(1.15rem, 1rem + 0.8vw, 1.4rem);
	margin: 0.25rem 0 1.75rem 0;
	font-weight: 400;
	font-style: italic;
	color: var(--accent-color);
}

p {
	margin: 0 0 1.1rem 0;
	font-size: 1.05rem;
	position: relative;
	z-index: 1;
}

.text-sidebar {
	display: flex;
	flex-direction: column;
}

.services-section {
	margin-bottom: 2.5rem;
}

.section-title {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--primary-color);
	margin: 0 0 1rem 0;
}

.services-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.services-list li {
	padding: 0.9rem 0;
	border-bottom: 1px solid var(--border-color);
	display: flex;
	align-items: center;
	font-size: 1rem;
	transition: all 0.25s ease;
}

.services-list li:first-child {
	border-top: 1px solid var(--border-color);
}

.services-list li:hover {
	padding-left: 0.5rem;
}

.services-list li:hover i {
	color: var(--accent-hover);
	transform: scale(1.1);
}

.services-list li:last-child {
	border-bottom: none;
}

.services-list li i {
	width: 28px;
	margin-right: 14px;
	color: var(--accent-color);
	text-align: center;
	flex-shrink: 0;
	vertical-align: middle;
	transition: all 0.25s ease;
}

.services-list li strong {
	color: var(--primary-color);
	margin-right: 6px;
}

.contact-section {
	background-color: #fcfcfc;
	border-radius: 12px;
	padding: 1.75rem;
	border: 1px solid var(--border-color);
}

.contact-info {
	margin-bottom: 1.5rem;
}

.contact-info > p {
	font-size: 1rem;
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.85rem;
}

.contact-item {
	display: flex;
	align-items: center;
	margin-bottom: 0.85rem;
}

.contact-item:last-child {
	margin-bottom: 0;
}

.contact-item i {
	width: 28px;
	margin-right: 14px;
	color: var(--accent-color);
	text-align: center;
	flex-shrink: 0;
	vertical-align: middle;
	font-size: 0.95rem;
}

.contact-item a {
	color: var(--text-color);
	text-decoration: none;
	transition: color 0.2s ease;
	position: relative;
}

.contact-item a:hover {
	color: var(--accent-hover);
}

.contact-item a::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--accent-color);
	transition: width 0.3s ease;
}

.contact-item a:hover::after {
	width: 100%;
}

.cta-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 1rem 2rem;
	background-color: var(--accent-color);
	color: #ffffff;
	font-size: 1.05rem;
	font-weight: 500;
	text-decoration: none;
	border-radius: 8px;
	transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 2px 8px rgba(102, 102, 102, 0.2);
}

.cta-button:hover {
	background-color: var(--accent-hover);
	box-shadow: 0 4px 16px rgba(102, 102, 102, 0.3);
}

.cta-button:active {
	transform: translateY(0);
}

.image-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	padding: 0 3rem 3rem 3rem;
}

.lightbox-trigger {
	display: block;
	overflow: hidden;
	border-radius: 12px;
	position: relative;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.lightbox-trigger i {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.5);
	color: #fff;
	font-size: 2rem;
	opacity: 0;
	transition: all 0.3s ease;
	z-index: 2;
	pointer-events: none;
}

.lightbox-trigger:hover i {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.image-gallery img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
	transition: all 0.4s ease;
	border-radius: 12px;
}

.lightbox-trigger:hover img {
	transform: scale(1.05);
	filter: brightness(0.7);
}

.card-footer {
	background-color: #fcfcfc;
	padding: 1.75rem 3rem;
	border-top: 1px solid var(--border-color);
}

.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.9rem;
	color: #888;
}

.footer-nav {
	display: flex;
	gap: 2rem;
}

.footer-nav a {
	color: #666;
	text-decoration: none;
	transition: color 0.2s ease;
	position: relative;
}

.footer-nav a::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--accent-color);
	transition: width 0.3s ease;
}

.footer-nav a:hover {
	color: var(--accent-hover);
}

.footer-nav a:hover::after {
	width: 100%;
}

@media (max-width: 900px) {
	.text-section--split {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
}

@media (max-width: 600px) {
	body {
		background: var(--card-bg);
		padding: 0;
		min-height: auto;
	}

	.card {
		border-radius: 0;
		box-shadow: none;
	}

	.card-header {
		padding: 1.5rem;
		text-align: center;
	}

	.card-header img {
		max-width: 220px;
	}

	.text-section {
		padding: 1.75rem;
	}

	.text-section--split {
		gap: 1.5rem;
	}

	.text-main {
		text-align: center;
	}

	.profile-image {
		margin: 0 auto 1.5rem auto;
	}

	h1 {
		text-align: center;
	}

	.subtitle {
		justify-content: center;
	}

	.text-sidebar {
		align-items: stretch;
	}

	.services-section {
		margin-top: 0;
	}

	.services-section .section-title {
		text-align: center;
	}

	.services-section .services-list {
		text-align: center;
	}

	.services-section .services-list li {
		flex-direction: column;
		align-items: center;
		gap: 0.5rem;
		text-align: center;
		padding: 0.75rem 0;
	}

	.contact-section {
		padding: 1.5rem;
		text-align: center;
		width: 100%;
	}

	.contact-section .contact-info {
		text-align: center;
	}

	.contact-item {
		flex-direction: column;
		align-items: center;
		gap: 0.25rem;
		text-align: center;
	}

	.contact-item i {
		margin-right: 0;
		margin-bottom: 0.25rem;
	}

	.contact-info {
		margin-bottom: 1.25rem;
	}
	
	.cta-button {
		padding: 1.1rem 1.5rem;
	}
	
	.image-gallery {
		grid-template-columns: 1fr;
		padding: 0 1.75rem 2rem 1.75rem;
		gap: 1.25rem;
	}

	.image-gallery img {
		height: 180px;
	}

	.card-footer {
		background-color: #ffffff;
		padding: 1.5rem;
	}

	.footer-content {
		flex-direction: column-reverse;
		align-items: center;
		gap: 0.75rem;
		text-align: center;
	}

	.footer-nav {
		flex-direction: column;
		gap: 0.5rem;
		align-items: center;
	}
}

@media (max-width: 600px) {
	body {
		background: var(--card-bg);
		padding: 0;
		min-height: auto;
	}

	.card {
		border-radius: 0;
		box-shadow: none;
	}

	.card-header {
		padding: 1.5rem;
	}

	.card-header img {
		max-width: 220px;
	}

	.text-section {
		padding: 1.75rem;
	}

	.text-section--split {
		gap: 1.5rem;
	}

	.profile-image {
		margin-bottom: 1.5rem;
	}

	.services-section {
		margin-top: 0;
		margin-bottom: 1.5rem;
	}
}

@media (max-width: 600px) {
	body {
		background: var(--card-bg);
		padding: 0;
		min-height: auto;
	}

	.card {
		border-radius: 0;
		box-shadow: none;
	}

	.card-header {
		padding: 1.5rem;
	}

	.card-header img {
		max-width: 220px;
	}

	.text-section {
		padding: 1.75rem;
	}

	.profile-image {
		margin-bottom: 1.5rem;
	}

	.services-section {
		margin-top: 0rem;
		margin-bottom: 1.5rem;
	}

	.services-list li {
		flex-direction: column;
		align-items: center;
		gap: 0.5rem;
		text-align: center;
	}

	.services-list li {
		padding: 0.75rem 0;
		flex-direction: column;
		align-items: flex-start;
	}

	.contact-section {
		padding: 1.5rem;
	}

	.contact-item {
		flex-direction: column;
		align-items: center;
		gap: 0.25rem;
		text-align: center;
	}

	.contact-item i {
		margin-right: 0;
		margin-bottom: 0.25rem;
	}

	.contact-info {
		margin-bottom: 1.25rem;
	}
	
	.image-gallery {
		grid-template-columns: 1fr;
		padding: 0 1.75rem 2rem 1.75rem;
		gap: 1.25rem;
	}

	.image-gallery img {
		height: 180px;
	}

	.card-footer {
		background-color: #ffffff;
		padding: 1.5rem;
	}

	.footer-content {
		flex-direction: column-reverse;
		align-items: center;
		gap: 0.75rem;
		text-align: center;
	}

	.footer-nav {
		flex-direction: column;
		gap: 0.5rem;
		align-items: center;
	}

	.footer-nav {
		gap: 1.5rem;
	}

	.cta-button {
		padding: 1.1rem 1.5rem;
	}
}

.lightbox {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.92);
	justify-content: center;
	align-items: center;
}

.lightbox.active {
	display: flex;
}

.lightbox-content {
	max-width: 90%;
	max-height: 85%;
	border-radius: 4px;
}

.lightbox-close {
	position: absolute;
	top: 20px;
	right: 30px;
	color: #fff;
	font-size: 36px;
	cursor: pointer;
	opacity: 0.8;
	transition: opacity 0.2s ease;
}

.lightbox-close:hover {
	opacity: 1;
}
