/* 
   Основные стили темы My Solo-Preneur Theme
   Цветовая палитра: Теплые тона (бежевый, золотистый, теплый серый).
*/

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

html {
	-webkit-text-size-adjust: 100%;
}

:root {
	--primary-color: #560a89; /* Темно-фиолетовый из градиента */
	--secondary-color: #ffffff; /* Белый */
	--background-color: #ffffff; /* Чистый белый */
	--text-color: #111111; /* Почти черный */
	--dark-bg: #000000; /* Глубокий черный для проектов */
	--accent-color: #dc73ca; /* Светло-розовый из градиента */
	--hero-height: 400px;
	/* Вся тема: только Inter (текст, меню, вторичная шапка) и Montserrat (заголовки) */
	--font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-heading: 'Montserrat', system-ui, sans-serif;
	/* Единый размер строки во вторичной шапке (имя | слоган | пункты меню) */
	--inner-header-font-size: 0.9375rem; /* 15px */
}

body {
	font-family: var(--font-body);
	color: var(--text-color);
	background-color: var(--background-color);
	margin: 0;
	padding: 0;
	line-height: 1.6;
	overflow-x: hidden; /* без горизонтального скролла на узких экранах */
}

#page.site {
	overflow-x: hidden;
	max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 700;
}

/* Меню и второстепенная типографика героя — Inter (без лишних семейств) */
.main-navigation {
	font-family: var(--font-body);
}

.hero-section .hero-title,
.hero-section .hero-subtitle {
	font-family: var(--font-body);
}

img {
	max-width: 100%;
	height: auto;
}

.container {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}

/* --- Шапка главной: без заливки; только разделитель — 1px белая линия снизу (~70% непрозрачности) --- */
.site-header--home {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 20;
	padding: 0;
	background: transparent;
	pointer-events: none;
}

.site-header-home-bar {
	width: 100%;
	pointer-events: auto;
	padding: 8px 0 10px;
	background: transparent;
	border: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.site-header--home .site-header-home-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 6px 12px;
}

/* Меню + символы «·»: одна строка flex, по центру вертикали, равномерные промежутки за счёт padding у sep */
.site-header--home .main-navigation ul {
	justify-content: center;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
}

.site-header--home .main-navigation ul li {
	display: flex;
	align-items: center;
	justify-content: center;
}

.site-header--home .main-navigation ul li.menu-item--sep {
	flex: 0 0 auto;
	padding: 0 clamp(10px, 2.5vw, 18px);
	pointer-events: none;
	user-select: none;
	list-style: none;
}

/* Символ «·» в меню и перед селектом языка — один стиль */
.site-header--home .menu-sep-char {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
	line-height: 1;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.72);
	text-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.site-header--home .main-navigation ul li a {
	display: inline-block;
	color: #ffffff;
	font-weight: 500;
	font-size: 0.9rem;
	letter-spacing: 0.02em;
	padding: 4px 2px;
	text-decoration: none;
	font-family: var(--font-body);
	background: transparent;
	border: none;
	border-radius: 0;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.site-header--home .main-navigation ul li a:hover,
.site-header--home .main-navigation ul li a:focus {
	opacity: 0.88;
	outline: none;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(255, 255, 255, 0.45);
}

.site-header--home .main-navigation .current-menu-item > a,
.site-header--home .main-navigation .current_page_item > a {
	font-weight: 600;
	opacity: 1;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(255, 255, 255, 0.65);
}

/* Polylang: компактный select; слева — тот же символ «·», что в меню */
.lang-switcher--home {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	border: none;
	gap: 2px;
}

.lang-switcher--home .menu-sep-char--lang {
	padding: 0 clamp(8px, 2vw, 14px) 0 0;
	flex-shrink: 0;
}

/* Селект: «стеклянная» капсула под герой */
.lang-switcher__select {
	margin: 0;
	min-width: 4.25rem;
	max-width: 6rem;
	padding: 6px 30px 6px 12px;
	font-family: var(--font-body);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.25;
	text-transform: uppercase;
	color: #fff;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.42);
	background-color: rgba(255, 255, 255, 0.14);
	/* Стрелка справа; «стекло» — через inset-тени, без сплошного слоя поверх */
	background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.88) 50%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.88) 50%, transparent 50%);
	background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-switcher__select:hover,
.lang-switcher__select:focus {
	border-color: rgba(255, 255, 255, 0.65);
	background-color: rgba(255, 255, 255, 0.22);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
	outline: none;
}

.lang-switcher__select option {
	color: #1a1a1a;
	background: #f5f5f5;
	font-weight: 600;
	letter-spacing: 0.08em;
}

/* --- Компактная шапка (все страницы кроме первой главной): градиент как у героя --- */
.site-header--inner {
	position: relative;
	z-index: 20;
	width: 100%;
	background: linear-gradient(358deg, rgb(220, 115, 202) 0%, rgb(86, 10, 137) 100%);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	color: #ffffff;
}

/* Десктоп: одна строка, без переноса строки шапки (меню не «уезжает» вниз) */
.site-header-inner {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	padding-top: 12px;
	padding-bottom: 12px;
	min-height: 56px;
}

.header-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1 1 auto;
	min-width: 0;
}

/* Рамка фиксированного размера: большое исходное фото не раздувает шапку (max-height / overflow) */
.header-brand-photo-wrap {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	max-width: 52px;
	max-height: 52px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.35);
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.header-brand-photo {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none; /* глобальное img { max-width:100% } не ломает круг */
	max-height: 52px;
	object-fit: cover;
	/* Вертикальный якорь кадра в круге (−15 → −5 → −2px: постепенно ниже) */
	object-position: 50% calc(50% - 2px);
}

.header-brand-photo--placeholder {
	background: rgba(255, 255, 255, 0.15);
	min-height: 52px;
}

.header-brand-text {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 10px;
	min-width: 0;
	flex: 1 1 auto;
}

/* Вторичная шапка: один шрифт (Inter), один кегль, без курсива, ровное выравнивание по центру строки */
.site-header--inner .header-brand-name,
.site-header--inner .header-brand-sep,
.site-header--inner .header-brand-slogan,
.site-header--inner .main-navigation ul li a {
	font-family: var(--font-body);
	font-size: var(--inner-header-font-size);
	font-style: normal;
	line-height: 1.35;
}

.site-header--inner .header-brand-name {
	font-weight: 600;
	color: #ffffff;
	margin: 0;
	text-decoration: none;
	white-space: nowrap;
}

.site-header--inner .header-brand-name:hover {
	color: #ffffff;
	opacity: 0.92;
}

.site-header--inner .header-brand-sep {
	color: rgba(255, 255, 255, 0.5);
	font-weight: 400;
	margin: 0;
	user-select: none;
	flex-shrink: 0;
}

.site-header--inner .header-brand-slogan {
	margin: 0;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.92);
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.site-header--inner .main-navigation {
	flex-shrink: 0;
}

.site-header--inner .main-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	flex-wrap: nowrap;
	gap: 8px 22px;
}

.site-header--inner .main-navigation ul li a {
	text-decoration: none;
	color: #ffffff;
	font-weight: 500;
	letter-spacing: 0.01em;
	white-space: nowrap;
	transition: opacity 0.25s;
}

.site-header--inner .main-navigation ul li a:hover,
.site-header--inner .main-navigation ul li a:focus {
	opacity: 0.88;
}

.site-header--inner .main-navigation .current-menu-item > a,
.site-header--inner .main-navigation .current_page_item > a {
	font-weight: 500;
	border-bottom: 1px solid rgba(255, 255, 255, 0.55);
	padding-bottom: 2px;
}

/* Общее для любого вывода меню (на случай кастомных шаблонов) */
.main-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
}

/* Внутренние страницы: шапка в потоке — меньше отступ под абсолютную старую шапку не нужен */
.site-main--page-about .page-header,
.site-main--page .page-generic .page-header,
.site-main--index .page-header {
	padding-top: 40px;
}

/* Одна запись: единая белая карточка; акценты — едва заметные линии, без серых заливок */
.site-main--single {
	background: #ffffff;
	padding-bottom: clamp(28px, 6vw, 56px);
}

.post-single-wrap {
	width: 100%;
	max-width: 752px;
	margin: 0 auto;
	padding: clamp(14px, 4.2vw, 26px) clamp(14px, 4.2vw, 26px) 0;
	box-sizing: border-box;
}

.post-single-panel {
	background: #ffffff;
	border: 1px solid rgba(60, 60, 67, 0.1);
	border-radius: 18px;
	padding: clamp(22px, 4.5vw, 40px) clamp(16px, 4vw, 32px) clamp(28px, 5vw, 44px);
	box-shadow: none;
	overflow-x: hidden;
	overflow-y: visible;
	max-width: 100%;
}

.post-single-header {
	margin: 0;
	padding: 0;
}

.post-single-title {
	font-family: var(--font-heading);
	font-size: clamp(1.55rem, 4.2vw, 2.25rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.032em;
	color: #1d1d1f;
	margin: 0;
	text-align: left;
}

/* Мета: только разделители, фон белый */
.post-single-meta-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 14px;
	margin-top: clamp(14px, 2.5vw, 20px);
	padding: 14px 0;
	background: transparent;
	border-radius: 0;
	border-top: 1px solid rgba(60, 60, 67, 0.1);
	border-bottom: none;
}

.post-single-date {
	font-family: var(--font-body);
	font-size: 0.8125rem;
	font-weight: 600;
	color: #6e6e73;
	letter-spacing: 0.02em;
}

.post-single-cats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.post-single-cats li {
	margin: 0;
	padding: 0;
}

.post-single-cats a {
	display: inline-block;
	padding: 5px 12px;
	font-family: var(--font-body);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #3a3a3c;
	background: #ffffff;
	border-radius: 980px;
	text-decoration: none;
	border: 1px solid rgba(60, 60, 67, 0.14);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.post-single-cats a:hover,
.post-single-cats a:focus-visible {
	background: #ffffff;
	color: #1d1d1f;
	border-color: rgba(60, 60, 67, 0.28);
	outline: none;
}

/* Превью: без рамки и подложки — только картинка по центру */
.post-single-feature {
	margin: clamp(20px, 3vw, 28px) 0 0;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	text-align: center;
	box-sizing: border-box;
	max-width: 100%;
}

.post-single-feature-img {
	display: block;
	margin: 0 auto;
	max-width: 100%;
	max-height: min(52vh, 520px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 0;
}

/* Текст записи — отделён тонкой линией от превью */
.post-single-body {
	margin-top: clamp(20px, 3vw, 30px);
	padding-top: clamp(18px, 3vw, 26px);
	border-top: 1px solid rgba(60, 60, 67, 0.1);
	padding-bottom: 0.5rem;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	letter-spacing: -0.011em;
	color: #1d1d1f;
	max-width: 100%;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

/* Сброс float у классических alignleft / alignright в контенте */
.post-single-body::after {
	content: '';
	display: table;
	clear: both;
}

.post-single-body > *:first-child {
	margin-top: 0;
}

.post-single-body > *:last-child {
	margin-bottom: 0;
}

.post-single-body p {
	margin: 0 0 1.15em;
}

.post-single-body h2,
.post-single-body h3,
.post-single-body h4 {
	font-family: var(--font-heading);
	color: #1d1d1f;
	letter-spacing: -0.02em;
	line-height: 1.25;
	margin: 2em 0 0.65em;
}

.post-single-body h2 {
	font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.post-single-body h3 {
	font-size: 1.15rem;
}

.post-single-body h4 {
	font-size: 1.05rem;
}

.post-single-body a {
	color: #0066cc;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.post-single-body a:hover,
.post-single-body a:focus-visible {
	color: #004499;
	outline: none;
}

.post-single-body ul,
.post-single-body ol {
	margin: 0 0 1.15em;
	padding-left: 1.35em;
}

.post-single-body li {
	margin-bottom: 0.4em;
}

.post-single-body blockquote {
	margin: 1.5em 0;
	padding: 0.75em 0 0.75em 1.1em;
	border-left: 3px solid rgba(60, 60, 67, 0.18);
	color: #6e6e73;
	font-style: normal;
	background: transparent;
	border-radius: 0;
}

.post-single-body code,
.post-single-body kbd {
	font-family: ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
	font-size: 0.9em;
	background: #ffffff;
	color: #3a3a3c;
	padding: 0.15em 0.45em;
	border-radius: 6px;
	border: 1px solid rgba(60, 60, 67, 0.12);
}

.post-single-body pre {
	margin: 1.25em 0;
	padding: 1rem 1.1rem;
	background: #ffffff;
	border: 1px solid rgba(60, 60, 67, 0.12);
	border-radius: 12px;
	font-size: 0.875rem;
	line-height: 1.55;
	overflow-x: auto;
	max-width: 100%;
	-webkit-overflow-scrolling: touch;
}

.post-single-body pre code {
	background: none;
	border: 0;
	padding: 0;
	font-size: inherit;
}

.post-single-body hr {
	margin: 2rem 0;
	border: none;
	height: 1px;
	background: rgba(60, 60, 67, 0.12);
}

.post-single-body img,
.post-single-body .wp-block-image img,
.post-single-body .wp-block-media-text__media img {
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
	max-height: min(70vh, 640px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 12px;
}

.post-single-body figure,
.post-single-body .wp-block-image,
.post-single-body .wp-block-embed {
	margin: 1.6em auto;
	max-width: 100%;
	text-align: center;
}

.post-single-body figcaption,
.post-single-body .wp-element-caption {
	margin-top: 0.6em;
	font-size: 0.8125rem;
	color: #6e6e73;
	line-height: 1.45;
}

.post-single-body .wp-block-gallery,
.post-single-body .wp-block-columns {
	max-width: 100%;
}

.post-single-body .alignwide,
.post-single-body .alignfull {
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

.post-single-body .wp-block-table {
	margin: 1.25em 0;
	overflow-x: auto;
	max-width: 100%;
	-webkit-overflow-scrolling: touch;
	border-radius: 10px;
	border: 1px solid rgba(60, 60, 67, 0.1);
}

.post-single-body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.post-single-body th,
.post-single-body td {
	padding: 0.55em 0.75em;
	border: 1px solid rgba(60, 60, 67, 0.1);
	text-align: left;
}

.post-single-body th {
	background: #ffffff;
	font-weight: 600;
	color: #3a3a3c;
}

.post-single-body .wp-block-embed__wrapper {
	position: relative;
	max-width: 100%;
}

.post-single-body .wp-block-embed iframe,
.post-single-body .wp-block-embed video {
	max-width: 100%;
	border-radius: 12px;
}

.post-page-links {
	margin-top: 2.25rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(60, 60, 67, 0.12);
	font-size: 0.9375rem;
	color: #6e6e73;
}

.post-page-links-label {
	margin-right: 0.5rem;
	font-weight: 600;
	color: #3a3a3c;
}

@media screen and (max-width: 600px) {
	.post-single-body .alignleft,
	.post-single-body .alignright {
		float: none !important;
		display: block;
		margin-left: auto !important;
		margin-right: auto !important;
		max-width: 100%;
	}
}

.site-main--page-projects {
	padding-top: 0;
}

/* Карточки-ссылки с главной на страницы «Обо мне» и «Проекты» */
.home-cta-section {
	padding: 80px 0 100px;
	background: linear-gradient(180deg, #faf8fc 0%, #ffffff 100%);
}

.home-cta-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	max-width: 800px;
	margin: 0 auto;
}

.home-cta-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 28px 32px;
	border-radius: 16px;
	text-decoration: none;
	color: var(--text-color);
	background: #ffffff;
	border: 2px solid #eee;
	box-shadow: 0 8px 30px rgba(86, 10, 137, 0.08);
	transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.home-cta-card:hover {
	transform: translateY(-4px);
	border-color: var(--accent-color);
	box-shadow: 0 12px 40px rgba(220, 115, 202, 0.2);
}

.home-cta-card-title {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary-color);
}

.home-cta-card-desc {
	font-size: 0.95rem;
	color: #666;
}

.home-cta-admin-hint {
	margin-top: 24px;
	padding: 12px 16px;
	background: #fff8e6;
	border: 1px solid #f0d78c;
	border-radius: 8px;
	font-size: 0.9rem;
	color: #5c4a00;
}

/* Доступность: заголовок только для скринридеров (напр. H1 на странице проектов без контента) */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.loop-item {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #eee;
}

.loop-item-title {
	font-size: 1.35rem;
	margin: 0 0 0.5rem;
}

.loop-item-title a {
	color: var(--primary-color);
	text-decoration: none;
}

.loop-item-title a:hover {
	text-decoration: underline;
}

/* --- About Section --- */
.about-section {
	padding: 100px 0;
	background-color: #ffffff;
}

.about-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 60px;
	align-items: start;
}

/* Две карточки справа — направления и реквизиты столбиком */
.about-extra {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.section-title.left-align {
	text-align: left;
}

.lead {
	font-size: 1.3rem;
	font-weight: 500;
	color: var(--primary-color);
	margin-bottom: 30px;
}

.about-details {
	display: flex;
	gap: 30px;
	margin: 40px 0;
	padding: 20px 0;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
}

.detail-item {
	display: flex;
	flex-direction: column;
}

.detail-item strong {
	font-size: 2rem;
	color: #000;
}

.detail-item span {
	font-size: 0.9rem;
	color: #777;
	text-transform: uppercase;
}

.info-card {
	background: #f9f9f9;
	padding: 30px;
	border-radius: 15px;
	border: 1px solid #eee;
}

.info-card h3 {
	margin-top: 0;
	margin-bottom: 20px;
}

.info-card ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.info-card ul li {
	margin-bottom: 15px;
	padding-left: 25px;
	position: relative;
}

.info-card ul li::before {
	content: '→';
	position: absolute;
	left: 0;
	color: var(--primary-color);
}

.info-card-lead {
	margin: -8px 0 12px;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text-color);
}

/* Плашка контактов на «Обо мне» (до направлений разработки): без стрелок из .info-card ul */
.about-contacts-bar__lead {
	margin: -8px 0 18px;
	font-size: 0.9rem;
	line-height: 1.45;
	color: #666;
}

.about-contacts-bar .about-contacts-bar__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

@media screen and (min-width: 420px) {
	.about-contacts-bar .about-contacts-bar__list {
		grid-template-columns: 1fr 1fr;
	}
}

.about-contacts-bar .about-contacts-bar__list > li {
	margin: 0;
	padding: 0;
}

.about-contacts-bar .about-contacts-bar__list > li::before {
	display: none;
	content: none;
}

.about-contact-link {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	text-decoration: none;
	color: var(--text-color);
	border: 1px solid #e8e4ec;
	background: #ffffff;
	box-shadow: 0 2px 10px rgba(86, 10, 137, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.about-contact-link:hover,
.about-contact-link:focus {
	border-color: var(--accent-color);
	box-shadow: 0 6px 20px rgba(220, 115, 202, 0.15);
	transform: translateY(-1px);
	outline: none;
}

.about-contact-link__icon {
	flex-shrink: 0;
	color: var(--primary-color);
	line-height: 0;
}

.about-contact-link__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.about-contact-link__label {
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #888;
	font-weight: 600;
}

.about-contact-link__val {
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--primary-color);
	word-break: break-word;
}

.info-card--legal .about-legal-card__address {
	font-style: normal;
	font-size: 0.9rem;
	line-height: 1.55;
	color: #444;
	margin: 0 0 12px;
}

.about-legal-card__reg {
	display: inline-block;
	margin-top: 6px;
	font-weight: 600;
	color: var(--primary-color);
}

.about-legal-card__note {
	margin: 0;
	font-size: 0.82rem;
	color: #888;
	line-height: 1.45;
}

/* --- Hero Section --- */
.hero-section {
	height: var(--hero-height);
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(358deg, rgb(220, 115, 202) 0%, rgb(86, 10, 137) 100%);
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
	color: #ffffff; /* Весь текст в хедере белый */
}

#ai-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	opacity: 0.5; /* Немного ярче для темного фона */
}

.hero-container {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 40px;
}

.hero-photo-wrapper {
	width: 180px;
	height: 180px;
	max-width: 180px;
	max-height: 180px;
	border-radius: 50%;
	border: 5px solid rgba(255, 255, 255, 0.3);
	overflow: hidden;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	flex-shrink: 0;
}

.hero-photo, .hero-photo-placeholder {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: cover;
	background-color: rgba(255, 255, 255, 0.1);
}

.hero-content {
	flex-grow: 1;
}

.hero-name {
	font-size: clamp(2rem, 6vw, 3.5rem);
	margin: 0;
	color: #ffffff;
	line-height: 1.1;
}

/* Дескрипшен — отступы между блоками текста героя увеличены (+8px к предыдущему шагу) */
.hero-title {
	font-size: clamp(0.95rem, 2.2vw, 1.15rem);
	margin: 21px 0 31px;
	color: rgba(255, 255, 255, 0.88);
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0.02em;
	line-height: 1.45;
	max-width: 36em;
}

.hero-ai-box {
	display: inline-block;
	background: rgba(255, 255, 255, 0.03);
	padding: 10px 20px;
	border-radius: 8px;
	margin-bottom: 33px;
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-subtitle {
	font-size: 1.1rem;
	font-style: normal;
	margin: 0;
	color: rgba(255, 255, 255, 0.95);
}

/* --- Главная: линия опыта (годы слева, ссылки справа; не путать с таймлайном «Обо мне») --- */
.home-experience-section {
	padding: 72px 0 96px;
	background: linear-gradient(180deg, #faf8fc 0%, #ffffff 55%);
	border-top: 1px solid rgba(86, 10, 137, 0.08);
}

.home-experience-list {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 640px;
	position: relative;
}

/* Вертикальная линия между колонкой годов и ссылок */
.home-experience-list::before {
	content: '';
	position: absolute;
	left: calc(4.5rem + 10px);
	top: 0.35rem;
	bottom: 0.35rem;
	width: 3px;
	border-radius: 3px;
	background: linear-gradient(180deg, var(--accent-color) 0%, var(--primary-color) 100%);
	opacity: 0.35;
}

.home-experience-item {
	display: grid;
	grid-template-columns: 4.5rem 24px 1fr;
	align-items: center;
	gap: 0 16px;
	margin-bottom: 22px;
}

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

.home-experience-year {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--primary-color);
	text-align: right;
	padding-right: 4px;
}

.home-experience-track {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
	min-height: 44px;
}

.home-experience-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--primary-color);
	box-shadow: 0 0 0 4px rgba(220, 115, 202, 0.25);
	z-index: 1;
}

.home-experience-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 18px;
	border-radius: 14px;
	text-decoration: none;
	color: var(--text-color);
	background: #fff;
	border: 1px solid #ece8f0;
	box-shadow: 0 10px 28px rgba(86, 10, 137, 0.07);
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-experience-link:hover,
.home-experience-link:focus-visible {
	transform: translateY(-2px);
	border-color: var(--accent-color);
	box-shadow: 0 14px 36px rgba(220, 115, 202, 0.18);
	outline: none;
}

.home-experience-link-title {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--primary-color);
}

.home-experience-link-arrow {
	color: var(--accent-color);
	font-size: 1.15rem;
	flex-shrink: 0;
}

.home-experience-admin-hint {
	max-width: 40em;
	margin: 0 auto;
	padding: 18px 20px;
	background: #fff8e6;
	border: 1px solid #f0d78c;
	border-radius: 12px;
	color: #5c4a00;
	font-size: 0.95rem;
	line-height: 1.5;
}

.home-experience-admin-hint p {
	margin: 0;
}

.home-experience-empty {
	text-align: center;
	margin: 0;
	color: #888;
	font-size: 0.98rem;
}

/* --- Главная: последние проекты (полная ширина, матовый светло-серый фон) --- */
.home-recent-projects {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 56px 0 64px;
	background: #ececee;
	color: var(--text-color);
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.home-recent-projects__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px 20px;
	margin-bottom: 28px;
}

.home-recent-projects__title {
	margin: 0;
	font-family: var(--font-heading);
	font-size: clamp(1.25rem, 3.2vw, 1.65rem);
	font-weight: 700;
	color: #1a1a1c;
	letter-spacing: -0.02em;
}

.home-recent-projects__all {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--primary-color);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.home-recent-projects__all:hover,
.home-recent-projects__all:focus-visible {
	color: #3d0663;
	border-bottom-color: rgba(86, 10, 137, 0.35);
	outline: none;
}

/* Карточки как на странице проектов, но светлая тема поверх серого полотна */
.home-recent-projects .project-card {
	background: #fafafa;
	border: 1px solid rgba(0, 0, 0, 0.07);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.home-recent-projects .project-card:hover {
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
	transform: translateY(-6px);
}

.home-recent-projects .project-info h3 {
	color: #141416;
}

.home-recent-projects .project-excerpt {
	color: #5a5a5e;
}

.home-recent-projects .read-more {
	color: var(--primary-color);
}

.home-recent-projects .read-more:hover,
.home-recent-projects .read-more:focus-visible {
	color: #3d0663;
	outline: none;
}

.home-recent-projects__admin-hint {
	max-width: 40em;
	margin: 0;
	padding: 16px 18px;
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	font-size: 0.92rem;
	line-height: 1.5;
	color: #444;
}

.home-recent-projects__admin-hint p {
	margin: 0;
}

/* --- Timeline Section --- */
.timeline-section {
	padding: 80px 0;
}

.section-title {
	text-align: center;
	font-size: clamp(1.65rem, 4.5vw, 2.5rem);
	margin-bottom: 60px;
}

.timeline-wrapper {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}

.timeline-wrapper::after {
	content: '';
	position: absolute;
	width: 4px;
	background-color: #eee; /* Более нейтральный цвет линии */
	top: 0;
	bottom: 0;
	left: 50%;
	margin-left: -2px;
}

.timeline-item {
	padding: 10px 40px;
	position: relative;
	background-color: inherit;
	width: 50%;
	box-sizing: border-box;
}

.timeline-item::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	right: -10px;
	background-color: #fff;
	border: 4px solid var(--primary-color);
	top: 15px;
	border-radius: 50%;
	z-index: 1;
}

.left {
	left: 0;
}

.right {
	left: 50%;
}

.right::after {
	left: -10px;
}

.timeline-content {
	padding: 20px;
	background-color: #fff;
	position: relative;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.05);
	border: 1px solid #eee;
}

.timeline-content h3 {
	margin-top: 0;
	color: var(--primary-color);
}

/* --- Projects Section --- */
.projects-section.dark-block {
	background-color: var(--dark-bg);
	color: #fff;
	padding: 80px 0;
}

.dark-block .section-title {
	color: var(--primary-color);
}

.projects-lead {
	max-width: 42em;
	margin: 0 auto 28px;
	text-align: center;
	font-size: 1.02rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.72);
}

/* Подсказка редактору, если нет рубрики projects или записей в ней */
.projects-admin-hint {
	max-width: 40em;
	margin: 0 auto 28px;
	padding: 18px 20px;
	background: rgba(255, 248, 230, 0.1);
	border: 1px solid rgba(240, 215, 140, 0.4);
	border-radius: 12px;
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.95rem;
	line-height: 1.5;
}

.projects-admin-hint p {
	margin: 0;
}

.projects-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr); /* 3 в ряд */
	gap: 30px;
}

.project-card {
	background: #111;
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.3s, box-shadow 0.3s;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.project-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.project-image {
	height: 220px;
	background-size: cover;
	background-position: center;
}

.project-info {
	padding: 25px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.project-info h3 {
	margin-top: 0;
	color: #ffffff;
	font-size: 1.4rem;
}

.project-excerpt {
	color: #999;
	font-size: 0.95rem;
	margin-bottom: 20px;
	flex-grow: 1;
}

.read-more {
	color: var(--accent-color);
	text-decoration: none;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 1px;
	transition: color 0.3s;
}

.read-more:hover {
	color: #ffffff;
}

/* --- Footer: плоский тёмно-серый (без фиолетового градиента), компактный --- */
.site-footer {
	position: relative;
	padding: 0 0 22px;
	background: #1c1c1f;
	color: #e4e4e8;
	overflow: hidden;
}

.site-footer-accent {
	height: 1px;
	width: 100%;
	background: rgba(255, 255, 255, 0.08);
}

.site-footer-inner {
	padding-top: 36px;
	padding-bottom: 6px;
	text-align: center;
}

.site-footer-heading {
	margin: 0 0 20px;
	font-family: var(--font-heading);
	font-size: clamp(1.05rem, 2.5vw, 1.25rem);
	font-weight: 700;
	color: #f2f2f4;
	letter-spacing: -0.01em;
}

.site-footer-social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 12px 14px;
	margin: 0 auto 22px;
	max-width: 520px;
}

.footer-icon-link {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 96px;
	padding: 14px 12px 12px;
	border-radius: 14px;
	text-decoration: none;
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);
	transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.footer-icon-link__bg {
	position: absolute;
	inset: 0;
	border-radius: 14px;
	opacity: 0;
	transition: opacity 0.22s ease;
	pointer-events: none;
}

.footer-icon-link--telegram .footer-icon-link__bg {
	background: linear-gradient(145deg, rgba(0, 136, 204, 0.22), rgba(255, 255, 255, 0.06));
}

.footer-icon-link--linkedin .footer-icon-link__bg {
	background: linear-gradient(145deg, rgba(10, 102, 194, 0.22), rgba(255, 255, 255, 0.06));
}

.footer-icon-link--facebook .footer-icon-link__bg {
	background: linear-gradient(145deg, rgba(24, 119, 242, 0.2), rgba(255, 255, 255, 0.06));
}

.footer-icon-link--email .footer-icon-link__bg {
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

.footer-icon-link:hover,
.footer-icon-link:focus-visible {
	transform: translateY(-3px);
	border-color: rgba(255, 255, 255, 0.22);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
	outline: none;
}

.footer-icon-link:hover .footer-icon-link__bg,
.footer-icon-link:focus-visible .footer-icon-link__bg {
	opacity: 1;
}

.footer-icon-link__svg {
	position: relative;
	z-index: 1;
	color: #ffffff;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.footer-icon-link__label {
	position: relative;
	z-index: 1;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.88);
}

.site-footer-email-line {
	margin: 0 0 28px;
}

.site-footer-email {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #f0f0f2;
	font-weight: 600;
	font-size: 1.02rem;
	text-decoration: none;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
	padding-bottom: 2px;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer-email:hover,
.site-footer-email:focus-visible {
	color: #ffffff;
	border-bottom-color: rgba(255, 255, 255, 0.55);
	outline: none;
}

/* Юр. адрес в подвале: мелкий нейтральный блок над копирайтом */
.site-footer-legal {
	margin: 24px auto 0;
	padding: 18px 20px 0;
	max-width: 28em;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
}

.site-footer-legal__title {
	margin: 0 0 12px;
	font-family: var(--font-heading);
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(255, 255, 255, 0.45);
}

.site-footer-legal__address {
	font-style: normal;
	font-size: 0.78rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.52);
	margin: 0;
}

.site-footer-legal__reg {
	display: inline-block;
	margin-top: 8px;
	color: rgba(255, 255, 255, 0.65);
	font-weight: 600;
}

.site-info {
	margin: 0;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.36);
	line-height: 1.5;
}

.site-info p {
	margin: 0;
}

/* Совместимость: старые классы из прежнего футера (если где-то ещё встретятся) */
.contact-email {
	color: #ffffff;
	text-decoration: none;
	font-weight: 600;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
}

/* Responsive */
@media screen and (max-width: 992px) {
	.projects-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.about-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.home-experience-list::before {
		left: calc(3.75rem + 8px);
	}

	.home-experience-item {
		grid-template-columns: 3.75rem 20px 1fr;
		gap: 0 10px;
	}
	.home-cta-grid {
		grid-template-columns: 1fr;
	}

	/* Вторичная шапка: с ≤992px — колонка и меню сверху (иначе nowrap ломал мобильную вёрстку) */
	.site-header-inner {
		flex-wrap: wrap;
		flex-direction: column;
		align-items: stretch;
	}

	.site-header--inner .main-navigation {
		order: -1;
		width: 100%;
	}

	.site-header--inner .main-navigation ul {
		justify-content: center;
		flex-wrap: wrap;
		row-gap: 10px;
		column-gap: 18px;
	}

	.site-header--inner .main-navigation ul li a {
		white-space: normal;
	}

	.site-header--inner .header-brand {
		width: 100%;
		justify-content: flex-start;
	}

	.site-header--inner .header-brand-name {
		white-space: normal;
	}

	.site-header--inner .header-brand-slogan {
		white-space: normal;
		overflow: visible;
		text-overflow: unset;
	}

	.about-details {
		flex-wrap: wrap;
		justify-content: flex-start;
	}

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

	.timeline-section {
		padding: 50px 0;
	}
}

@media screen and (max-width: 768px) {
	.projects-grid {
		grid-template-columns: 1fr;
	}

	.hero-container {
		flex-direction: column;
		text-align: center;
		padding-top: 80px;
	}

	.hero-section {
		height: auto;
		padding: 120px 0 60px;
	}

	.timeline-wrapper::after {
		left: 31px;
	}

	.timeline-item {
		width: 100%;
		padding-left: 70px;
		padding-right: 25px;
	}

	.timeline-item::after {
		left: 21px;
	}

	.right {
		left: 0%;
	}

	/* Главная: компактная строка по центру (меню + точка + select) */
	.site-header--home .site-header-home-inner {
		justify-content: center;
	}

	.site-header--home .main-navigation ul {
		justify-content: center;
	}

	/* «Обо мне»: шапка страницы и секции — чуть шире поля от краёва (лид не прилипает к экрану) */
	.site-main--page-about > .page-header.container,
	.site-main--page-about > .page-content.container,
	.site-main--page-about .about-section.container,
	.site-main--page-about .timeline-section.container {
		padding-left: calc(clamp(20px, 5.5vw, 30px) + env(safe-area-inset-left, 0px));
		padding-right: calc(clamp(20px, 5.5vw, 30px) + env(safe-area-inset-right, 0px));
	}
}
