/* ─── VARIABLES ─── */
:root {
	--bg: #06090f;
	--surface: #0e1420;
	--surface2: #141c2e;
	--border: rgba(255,255,255,0.07);
	--text: #e8edf5;
	--muted: #7a8ba0;
	--accent: #3b82f6;
	--accent2: #60a5fa;
	--accent-glow: rgba(59,130,246,0.2);
	--green: #34d399;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
	font-family: 'DM Sans', sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.65;
	overflow-x: hidden;
}

/* ─── BACKGROUND MESH ─── */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	background:
		radial-gradient(ellipse 80% 50% at 10% 0%, rgba(59,130,246,0.12) 0%, transparent 60%),
		radial-gradient(ellipse 60% 40% at 90% 80%, rgba(52,211,153,0.06) 0%, transparent 55%);
	pointer-events: none;
	z-index: 0;
}

.container { max-width: 1080px; margin: auto; padding: 0 28px; position: relative; z-index: 1; }

a { color: var(--accent2); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }

/* ─── NAVBAR ─── */
nav {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(6,9,15,0.85);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--border);
}
.nav-inner {
	max-width: 1080px;
	margin: auto;
	padding: 0 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 56px;
}
.nav-logo {
	font-family: 'Syne', sans-serif;
	font-weight: 800;
	font-size: 16px;
	color: var(--text);
	letter-spacing: -0.3px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
	color: var(--muted);
	font-size: 13.5px;
	font-weight: 500;
	padding: 6px 12px;
	border-radius: 8px;
	transition: all .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.lang-switcher { display:flex; gap:4px; margin-left:16px; padding-left:16px; border-left:1px solid var(--border); }
.lang-switcher a {
	font-size:12px; font-weight:600; color:var(--muted); padding:4px 9px;
	border-radius:7px; border:1px solid transparent; transition:all .2s; letter-spacing:0.3px; text-decoration:none;
}
.lang-switcher a:hover { color:var(--text); border-color:var(--border); background:var(--surface); }
.lang-switcher a.active { color:var(--accent2); border-color:rgba(96,165,250,.3); background:rgba(59,130,246,.1); }

/* ─── HERO ─── */
.hero {
	padding: 100px 0 80px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 60px;
	align-items: center;
}
.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(59,130,246,0.1);
	border: 1px solid rgba(59,130,246,0.25);
	color: var(--accent2);
	font-size: 12.5px;
	font-weight: 500;
	padding: 5px 12px;
	border-radius: 100px;
	margin-bottom: 24px;
	letter-spacing: 0.3px;
}
.hero-eyebrow::before {
	content: '';
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 8px var(--green);
	animation: pulse 2.5s infinite;
}
@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}
.hero h1 {
	font-family: 'Syne', sans-serif;
	font-size: clamp(38px, 6vw, 64px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -1.5px;
	margin-bottom: 20px;
}
.hero h1 .line2 { color: var(--accent2); }
.hero-sub {
	color: var(--muted);
	font-size: 16px;
	max-width: 480px;
	margin-bottom: 32px;
	font-weight: 300;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--accent);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	padding: 11px 22px;
	border-radius: 10px;
	transition: all .2s;
	box-shadow: 0 4px 24px rgba(59,130,246,0.3);
}
.btn-primary:hover { background: #2563eb; color: #fff; transform: translateY(-1px); box-shadow: 0 8px 32px rgba(59,130,246,0.4); }
.btn-ghost {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	color: var(--text);
	font-size: 14px;
	font-weight: 500;
	padding: 11px 22px;
	border-radius: 10px;
	border: 1px solid var(--border);
	transition: all .2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); background: var(--surface); color: #fff; }

.hero-photo-wrap {
	position: relative;
	flex-shrink: 0;
}
.hero-photo-wrap::before {
	content: '';
	position: absolute;
	inset: -12px;
	border-radius: 50%;
	background: conic-gradient(from 0deg, var(--accent), transparent 40%, var(--green), transparent 70%, var(--accent));
	animation: spin 6s linear infinite;
	opacity: 0.5;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-photo-wrap::after {
	content: '';
	position: absolute;
	inset: -2px;
	border-radius: 50%;
	background: var(--bg);
}
.hero img {
	position: relative;
	z-index: 1;
	width: 148px;
	height: 148px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

/* ─── STATS BAR ─── */
.stats-bar {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--border);
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 72px;
}
.stat {
	background: var(--surface);
	padding: 24px 28px;
	text-align: center;
	transition: background .2s;
}
.stat:hover { background: var(--surface2); }
.stat-num {
	font-family: 'Syne', sans-serif;
	font-size: 32px;
	font-weight: 800;
	color: var(--accent2);
	line-height: 1;
	margin-bottom: 4px;
}
.stat-label { font-size: 12.5px; color: var(--muted); font-weight: 400; }

/* ─── SECTION ─── */
section { margin-bottom: 72px; }
.section-label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--accent);
	margin-bottom: 8px;
}
.section-label::before {
	content: '';
	width: 20px; height: 2px;
	background: var(--accent);
	border-radius: 2px;
}
h2 {
	font-family: 'Syne', sans-serif;
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.5px;
	margin-bottom: 28px;
}

/* ─── CARD ─── */
.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 24px;
	transition: border-color .2s, background .2s;
}
.card:hover { border-color: rgba(59,130,246,0.2); background: var(--surface2); }

/* ─── ABOUT ─── */
.about-text { color: #b0bfd0; font-size: 15.5px; font-weight: 300; line-height: 1.8; }
.about-text p + p { margin-top: 14px; }

/* ─── SKILLS ─── */
.skills-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.skill-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text);
	padding: 8px 14px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 400;
	transition: all .2s;
}
.skill-tag:hover { border-color: rgba(59,130,246,0.35); background: var(--surface2); }
.skill-tag .cert {
	font-size: 11px;
	color: var(--accent2);
	border: 1px solid rgba(96,165,250,0.3);
	padding: 2px 7px;
	border-radius: 6px;
	transition: all .2s;
}
.skill-tag .cert:hover { background: rgba(59,130,246,0.15); color: #fff; }

/* ─── LANGUAGES ─── */
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lang-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 20px 24px;
}
.lang-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.lang-level { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.lang-bar { background: rgba(255,255,255,0.07); border-radius: 4px; height: 4px; }
.lang-fill { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }

/* ─── EXPERIENCE ─── */
.exp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.exp-card h3 { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.exp-period {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--muted);
	margin-bottom: 16px;
	background: rgba(255,255,255,0.04);
	padding: 3px 10px;
	border-radius: 6px;
	border: 1px solid var(--border);
}
.exp-list { list-style: none; padding: 0; }
.exp-list li {
	padding: 6px 0 6px 16px;
	position: relative;
	font-size: 13.5px;
	color: #9aafbf;
	border-bottom: 1px solid rgba(255,255,255,0.04);
}
.exp-list li:last-child { border-bottom: none; }
.exp-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 5px; height: 5px;
	border-radius: 50%;
	background: var(--accent);
}

/* ─── PROJECTS ─── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.project-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 24px;
	transition: all .25s;
	position: relative;
	overflow: hidden;
}
.project-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--accent), var(--green));
	opacity: 0;
	transition: opacity .25s;
}
.project-card:hover { border-color: rgba(59,130,246,0.25); background: var(--surface2); transform: translateY(-2px); }
.project-card:hover::before { opacity: 1; }
.project-title {
	font-family: 'Syne', sans-serif;
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.project-title a { color: var(--text); transition: color .2s; }
.project-title a:hover { color: var(--accent2); }
.project-link-icon {
	margin-left: auto;
	color: var(--muted);
	font-size: 16px;
	transition: color .2s;
	text-decoration: none;
}
.project-link-icon:hover { color: var(--accent2); }
.project-list { list-style: none; padding: 0; }
.project-list li {
	padding: 5px 0 5px 14px;
	position: relative;
	font-size: 13px;
	color: #8a9fb3;
	border-bottom: 1px solid rgba(255,255,255,0.03);
}
.project-list li:last-child { border-bottom: none; }
.project-list li::before {
	content: '';
	position: absolute;
	left: 0; top: 50%;
	transform: translateY(-50%);
	width: 4px; height: 4px;
	border-radius: 50%;
	background: var(--accent2);
	opacity: 0.5;
}
.project-note {
	font-size: 12px;
	color: var(--muted);
	margin-bottom: 10px;
	font-style: italic;
}

/* ─── PROJECT TABS ─── */
.proj-tabs { display:flex; gap:4px; margin-bottom:24px; background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:5px; }
.proj-tab {
	flex:1; padding:9px 16px; border-radius:10px; border:none; background:transparent;
	color:var(--muted); font-family:'DM Sans',sans-serif; font-size:13.5px; font-weight:500;
	cursor:pointer; transition:all .2s; white-space:nowrap;
}
.proj-tab.active { background:var(--accent); color:#fff; box-shadow:0 4px 16px rgba(59,130,246,.3); }
.proj-tab:hover:not(.active) { color:var(--text); background:var(--surface2); }
.proj-tab-content { display:none; }
.proj-tab-content.active { display:block; animation:fadeIn .3s ease; }
@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

/* ─── PROJECT BADGES ─── */
.pcat {
	display:inline-block; font-size:11px; font-weight:600; text-transform:uppercase;
	letter-spacing:1px; padding:3px 10px; border-radius:6px;
}
.pcat-shop { background:rgba(59,130,246,.1); color:var(--accent2); border:1px solid rgba(59,130,246,.2); }
.pcat-biz  { background:rgba(52,211,153,.1); color:var(--green);   border:1px solid rgba(52,211,153,.2); }
.pcat-land { background:rgba(251,191,36,.1);  color:#fbbf24;        border:1px solid rgba(251,191,36,.2); }
.pcat-lang { background:rgba(255,255,255,.05); color:var(--muted);  border:1px solid var(--border); }

/* ряд плашек в карточке */
.pcat-row { display:flex; gap:6px; margin-bottom:12px; }

/* ─── EDUCATION ─── */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.edu-card { display: flex; gap: 16px; align-items: flex-start; }
.edu-icon {
	width: 40px; height: 40px;
	border-radius: 10px;
	background: rgba(59,130,246,0.12);
	border: 1px solid rgba(59,130,246,0.2);
	display: flex; align-items: center; justify-content: center;
	font-size: 18px;
	flex-shrink: 0;
}
.edu-deg { font-weight: 600; font-size: 14px; margin-bottom: 3px; }
.edu-school { font-size: 13px; color: var(--muted); }
.edu-year {
	font-size: 11px;
	color: var(--accent2);
	background: rgba(59,130,246,0.1);
	border: 1px solid rgba(59,130,246,0.2);
	padding: 2px 8px;
	border-radius: 6px;
	margin-top: 6px;
	display: inline-block;
}

/* ─── CONTACTS ─── */
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.contact-item {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 16px 20px;
	transition: all .2s;
	text-decoration: none;
	color: var(--text);
}
.contact-item:hover { border-color: rgba(59,130,246,0.3); background: var(--surface2); color: #fff; }
.contact-icon {
	width: 38px; height: 38px;
	border-radius: 10px;
	background: rgba(59,130,246,0.12);
	border: 1px solid rgba(59,130,246,0.2);
	display: flex; align-items: center; justify-content: center;
	font-size: 17px;
	flex-shrink: 0;
}
.contact-label { font-size: 11px; color: var(--muted); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-value { font-size: 13.5px; font-weight: 500; }

/* ─── FOOTER ─── */
footer {
	border-top: 1px solid var(--border);
	padding: 28px 0;
	text-align: center;
	color: var(--muted);
	font-size: 13px;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--accent2); }

/* ─── ANIMATIONS ─── */
.fade-up {
	opacity: 0;
	transform: translateY(24px);
	animation: fadeUp .6s ease forwards;
}
@keyframes fadeUp {
	to { opacity: 1; transform: translateY(0); }
}
.hero > * { animation: fadeUp .7s ease both; }
.hero > *:nth-child(2) { animation-delay: .1s; }
.stats-bar .stat:nth-child(1) { animation: fadeUp .6s .1s ease both; }
.stats-bar .stat:nth-child(2) { animation: fadeUp .6s .2s ease both; }
.stats-bar .stat:nth-child(3) { animation: fadeUp .6s .3s ease both; }

/* ─── RESPONSIVE ─── */
@media (max-width: 700px) {
	.hero { grid-template-columns: 1fr; text-align: center; gap: 32px; }
	.hero-photo-wrap { margin: auto; }
	.hero-sub { margin-left: auto; margin-right: auto; }
	.hero-actions { justify-content: center; }
	.stats-bar { grid-template-columns: 1fr; }
	.nav-links { display: none; }
	.lang-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
	.proj-tabs { flex-direction: column; }
	.proj-tab { flex: none; text-align: left; }
}