/*
Theme Name: Илья Мусин — психолог
Author: Codex
Description: Лёгкая индивидуальная тема для психолога в КПТ-подходе.
Version: 1.1.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: ilya-musin
*/

:root {
	--cream: #f3eee3;
	--cream-deep: #e7decd;
	--paper: #fbf8f1;
	--ink: #173d36;
	--ink-soft: #4f625d;
	--orange: #dc6c4f;
	--orange-light: #f09a79;
	--line: rgba(23, 61, 54, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: "Arial Nova", "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header { top: 32px; }
img { display: block; height: auto; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--orange-light); color: var(--ink); }

.site-header {
	align-items: center;
	backdrop-filter: blur(18px);
	background: rgba(251, 248, 241, 0.9);
	border-bottom: 1px solid var(--line);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	min-height: 88px;
	padding: 14px clamp(22px, 5vw, 76px);
	position: sticky;
	top: 0;
	z-index: 20;
}

.brand {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-self: start;
}

.brand-mark {
	align-items: center;
	background: var(--ink);
	border-radius: 50%;
	color: var(--cream);
	display: flex;
	font-family: Georgia, serif;
	font-size: 27px;
	font-style: italic;
	height: 46px;
	justify-content: center;
	line-height: 1;
	width: 46px;
}

.brand strong, .brand small { display: block; }
.brand strong { font-family: Georgia, serif; font-size: 20px; font-weight: 500; line-height: 1; }
.brand small { color: var(--ink-soft); font-size: 9px; letter-spacing: 0.14em; margin-top: 4px; text-transform: uppercase; }

.desktop-nav { align-items: center; display: flex; gap: clamp(24px, 3vw, 46px); }
.desktop-nav a { color: var(--ink-soft); font-size: 13px; transition: color 180ms ease; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--orange); }

.header-cta {
	align-items: center;
	border: 1px solid var(--ink);
	border-radius: 999px;
	display: flex;
	font-size: 13px;
	gap: 24px;
	justify-self: end;
	padding: 12px 17px;
	transition: background 180ms ease, color 180ms ease;
}

.header-cta:hover, .header-cta:focus-visible { background: var(--ink); color: var(--paper); }

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
	min-height: 700px;
	overflow: hidden;
}

.hero-copy { padding: clamp(70px, 9vw, 130px) clamp(34px, 8vw, 122px); }

.eyebrow, .section-kicker {
	align-items: center;
	color: var(--orange);
	display: flex;
	font-size: 11px;
	font-weight: 700;
	gap: 10px;
	letter-spacing: 0.16em;
	margin: 0 0 30px;
	text-transform: uppercase;
}

.eyebrow span { background: var(--orange); border-radius: 50%; height: 7px; width: 7px; }

h1, h2 {
	font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	font-weight: 400;
	letter-spacing: -0.045em;
	margin: 0;
}

h1 { font-size: clamp(55px, 6.2vw, 96px); line-height: 0.94; max-width: 880px; }
h1 em, h2 em { color: var(--orange); font-weight: 400; }

.hero-lead {
	color: var(--ink-soft);
	font-size: clamp(17px, 1.5vw, 20px);
	line-height: 1.6;
	margin: 36px 0 0;
	max-width: 600px;
}

.hero-actions, .final-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.button {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 999px;
	display: inline-flex;
	font-size: 14px;
	gap: 30px;
	justify-content: center;
	min-height: 54px;
	padding: 0 22px;
	transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover, .button-primary:focus-visible { background: var(--orange); }
.button-secondary { border-color: var(--line); color: var(--ink); }
.button-secondary:hover, .button-secondary:focus-visible { border-color: var(--ink); }

.session-facts { align-items: center; color: var(--ink-soft); display: flex; flex-wrap: wrap; font-size: 12px; margin-top: 46px; }
.session-facts span { align-items: center; display: flex; }
.session-facts span + span::before { color: rgba(23, 61, 54, 0.3); content: '•'; margin: 0 16px; }
.session-facts i { background: #77a080; border: 3px solid #dce8dc; border-radius: 50%; height: 10px; margin-right: 8px; width: 10px; }

.hero-visual {
	align-items: center;
	background: var(--ink);
	color: var(--paper);
	display: flex;
	justify-content: center;
	min-height: 700px;
	overflow: hidden;
	position: relative;
}

.photo-visual::before {
	background: var(--orange);
	border-radius: 50%;
	content: '';
	height: clamp(330px, 35vw, 530px);
	position: absolute;
	right: -7%;
	top: 9%;
	width: clamp(330px, 35vw, 530px);
}

.photo-orbit {
	border: 1px solid rgba(251, 248, 241, 0.42);
	border-radius: 50%;
	height: 82%;
	position: absolute;
	transform: rotate(-18deg);
	width: 58%;
	z-index: 1;
}

.portrait-wrap {
	border: 10px solid rgba(251, 248, 241, 0.1);
	border-radius: 48% 48% 44% 56% / 39% 48% 52% 61%;
	height: min(76%, 580px);
	overflow: hidden;
	position: relative;
	transform: rotate(1.5deg);
	width: min(72%, 500px);
	z-index: 3;
}

.portrait-wrap img { height: 100%; object-fit: cover; object-position: center 44%; width: 100%; }

.photo-label {
	background: var(--paper);
	border-radius: 999px;
	bottom: 18%;
	color: var(--ink);
	font-family: Georgia, serif;
	font-size: 20px;
	left: 7%;
	padding: 15px 22px;
	position: absolute;
	z-index: 5;
}

.photo-label span { color: var(--ink-soft); display: block; font-family: Arial, sans-serif; font-size: 9px; letter-spacing: 0.12em; margin-top: 4px; text-transform: uppercase; }
.visual-caption { bottom: 30px; color: rgba(251, 248, 241, 0.62); font-size: 11px; left: 50%; letter-spacing: 0.04em; margin: 0; position: absolute; text-align: center; transform: translateX(-50%); width: 80%; z-index: 4; }

.principles { align-items: center; background: var(--orange); color: #fff8ed; display: grid; grid-template-columns: repeat(3, 1fr); min-height: 92px; padding: 20px clamp(30px, 8vw, 122px); text-align: center; }
.principles p { font-family: Georgia, serif; font-size: clamp(18px, 1.8vw, 25px); font-style: italic; margin: 0; }
.principles p + p { border-left: 1px solid rgba(255, 248, 237, 0.35); }

.section { padding: clamp(90px, 12vw, 170px) clamp(24px, 8vw, 122px); }
.help-section { background: var(--paper); display: grid; gap: clamp(60px, 9vw, 140px); grid-template-columns: minmax(300px, 0.85fr) minmax(420px, 1.15fr); }
.section-heading { align-self: start; position: sticky; top: 132px; }
.section-heading h2, .approach-copy h2, .about-copy h2, .final-cta h2 { font-size: clamp(44px, 5vw, 72px); line-height: 1.02; }
.section-intro { color: var(--ink-soft); font-size: 16px; line-height: 1.7; margin: 32px 0 0; max-width: 480px; }

.concern-list { border-top: 1px solid var(--line); }
.concern-card { align-items: flex-start; border-bottom: 1px solid var(--line); display: grid; gap: 24px; grid-template-columns: 42px 1fr; padding: 30px 0; transition: padding 180ms ease; }
.concern-card:hover { padding-left: 12px; }
.concern-card > span { color: var(--orange); font-family: Georgia, serif; font-size: 15px; font-style: italic; }
.concern-card h3, .process-card h3 { font-family: Georgia, serif; font-size: clamp(25px, 2.4vw, 34px); font-weight: 400; margin: -5px 0 9px; }
.concern-card p, .process-card p { color: var(--ink-soft); font-size: 14px; line-height: 1.65; margin: 0; max-width: 580px; }

.approach-section { background: var(--ink); color: var(--paper); display: grid; gap: clamp(70px, 11vw, 160px); grid-template-columns: minmax(320px, 0.92fr) minmax(500px, 1.08fr); padding: clamp(90px, 12vw, 170px) clamp(24px, 8vw, 122px); }
.section-kicker.light { color: var(--orange-light); }
.approach-copy > p:not(.section-kicker) { color: rgba(251, 248, 241, 0.7); font-size: 16px; line-height: 1.7; margin: 28px 0 0; max-width: 560px; }

.approach-map { align-items: center; display: grid; gap: 18px; grid-template-columns: 1fr auto 1fr; grid-template-rows: 1fr auto 1fr; min-height: 520px; }
.map-item { align-items: flex-start; aspect-ratio: 1; border: 1px solid rgba(251, 248, 241, 0.35); border-radius: 50%; display: flex; flex-direction: column; justify-content: center; max-width: 235px; padding: 42px; }
.map-item small { color: var(--orange-light); font-family: Georgia, serif; font-style: italic; margin-bottom: 12px; }
.map-item strong { font-family: Georgia, serif; font-size: clamp(21px, 2vw, 29px); font-weight: 400; line-height: 1.08; }
.item-thoughts { grid-column: 1; grid-row: 1 / 3; }
.item-check { background: var(--orange); border-color: var(--orange); grid-column: 3; grid-row: 1 / 3; }
.item-check small { color: var(--paper); }
.item-action { grid-column: 2; grid-row: 2 / 4; }
.map-connector { color: var(--orange-light); font-size: 28px; text-align: center; }
.approach-map .map-connector:nth-child(2) { grid-column: 2; grid-row: 1; transform: rotate(-18deg); }
.approach-map .map-connector:nth-child(4) { grid-column: 3; grid-row: 3; transform: rotate(122deg); }

.process-section { background: var(--cream); }
.process-heading { position: static; }
.process-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 68px; }
.process-card { background: var(--paper); min-height: 310px; padding: clamp(28px, 3.5vw, 48px); }
.process-card > span { align-items: center; border: 1px solid var(--orange); border-radius: 50%; color: var(--orange); display: flex; font-family: Georgia, serif; height: 40px; justify-content: center; margin-bottom: 60px; width: 40px; }

.session-card { align-items: center; background: var(--orange); color: #fff8ed; display: grid; gap: 44px; grid-template-columns: 1.2fr 1fr auto; margin-top: 18px; padding: clamp(30px, 4vw, 55px); }
.session-card p { font-family: Georgia, serif; font-size: clamp(24px, 2.6vw, 36px); margin: 0 0 7px; }
.session-card > div > span, .session-card dt { color: rgba(255, 248, 237, 0.72); font-size: 11px; }
.session-card dl { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; margin: 0; }
.session-card dl div { border-left: 1px solid rgba(255, 248, 237, 0.35); padding-left: 18px; }
.session-card dt, .session-card dd { margin: 0; }
.session-card dd { font-size: 17px; margin-top: 8px; }
.session-card > a { align-items: center; background: var(--paper); border-radius: 999px; color: var(--ink); display: flex; font-size: 13px; gap: 24px; padding: 16px 22px; white-space: nowrap; }

.about-section { background: var(--paper); display: grid; gap: clamp(60px, 10vw, 150px); grid-template-columns: minmax(340px, 0.92fr) minmax(420px, 1.08fr); padding: clamp(90px, 12vw, 170px) clamp(24px, 10vw, 150px); }
.about-photo { align-self: center; aspect-ratio: 4 / 5; background: var(--cream-deep); border-radius: 47% 47% 8px 8px; max-width: 530px; overflow: hidden; position: relative; }
.about-photo::after { background: linear-gradient(180deg, transparent 55%, rgba(23, 61, 54, 0.4)); content: ''; inset: 0; position: absolute; }
.about-photo img { height: 100%; object-fit: cover; object-position: 60% center; width: 100%; }
.about-photo > span { bottom: 24px; color: var(--paper); font-family: Georgia, serif; font-size: 88px; font-style: italic; left: 34px; line-height: 1; position: absolute; z-index: 2; }
.about-copy { align-self: center; }
.about-lead { color: var(--ink) !important; font-family: Georgia, serif; font-size: clamp(20px, 2.2vw, 28px) !important; line-height: 1.4 !important; }
.about-copy > p:not(.section-kicker) { color: var(--ink-soft); font-size: 16px; line-height: 1.7; margin: 28px 0 0; max-width: 600px; }
.about-values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 35px; }
.about-values span { border: 1px solid var(--line); border-radius: 999px; font-size: 11px; letter-spacing: 0.08em; padding: 11px 17px; text-transform: uppercase; }

.final-cta { background: var(--ink); color: var(--paper); padding: clamp(90px, 11vw, 150px) 24px; text-align: center; }
.final-cta .section-kicker { justify-content: center; }
.final-cta > p:not(.section-kicker) { color: rgba(251, 248, 241, 0.68); line-height: 1.65; margin: 28px auto 0; max-width: 540px; }
.final-actions { justify-content: center; }
.button-light { background: var(--paper); color: var(--ink); }
.button-light:hover, .button-light:focus-visible { background: var(--orange); color: var(--paper); }
.text-link { border-bottom: 1px solid rgba(251, 248, 241, 0.35); font-size: 13px; padding: 15px 4px; }

.site-footer { align-items: center; background: var(--paper); display: grid; gap: clamp(20px, 5vw, 70px); grid-template-columns: 1fr auto auto auto; padding: 28px clamp(22px, 5vw, 76px); }
.site-footer > p, .site-footer > a:not(.brand) { color: var(--ink-soft); font-size: 12px; }
.copyright { color: rgba(23, 61, 54, 0.45); }

.content-shell { margin: 0 auto; min-height: 70vh; max-width: 880px; padding: 100px 24px; }
.entry-card h1 { font-size: clamp(44px, 7vw, 74px); line-height: 1; margin-bottom: 40px; }
.entry-content { color: var(--ink-soft); font-size: 17px; line-height: 1.75; }

@media (max-width: 1000px) {
	.desktop-nav { display: none; }
	.site-header { grid-template-columns: 1fr auto; }
	.hero { grid-template-columns: 1fr; }
	.hero-copy { padding: 90px 8vw 100px; }
	.hero-visual { min-height: 650px; }
	.portrait-wrap { height: 560px; width: min(64%, 500px); }
	.help-section, .approach-section, .about-section { grid-template-columns: 1fr; }
	.section-heading { position: static; }
	.approach-map { margin: 0 auto; max-width: 660px; width: 100%; }
	.process-grid { grid-template-columns: 1fr 1fr; }
	.process-card:last-child { grid-column: 1 / -1; }
	.session-card { grid-template-columns: 1fr 1fr; }
	.session-card > a { justify-self: start; }
	.about-photo { justify-self: center; width: min(82vw, 530px); }
}

@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

@media (max-width: 650px) {
	.site-header { min-height: 76px; }
	.brand-mark { font-size: 23px; height: 40px; width: 40px; }
	.brand strong { font-size: 17px; }
	.header-cta { gap: 9px; padding: 11px 14px; }
	.hero { min-height: auto; }
	.hero-copy { padding: 72px 22px 76px; }
	h1 { font-size: clamp(50px, 15vw, 70px); }
	.hero-lead { font-size: 17px; }
	.hero-actions { align-items: stretch; flex-direction: column; }
	.button { width: 100%; }
	.hero-visual { min-height: 590px; }
	.photo-visual::before { height: 340px; width: 340px; }
	.photo-orbit { height: 82%; width: 70%; }
	.portrait-wrap { height: 500px; width: 78%; }
	.photo-label { bottom: 15%; left: 5%; }
	.principles { gap: 14px; grid-template-columns: 1fr; padding: 26px; }
	.principles p + p { border-left: 0; }
	.section, .approach-section, .about-section { padding: 90px 22px; }
	.help-section { gap: 60px; }
	.section-heading h2, .approach-copy h2, .about-copy h2, .final-cta h2 { font-size: 43px; }
	.concern-card { gap: 10px; grid-template-columns: 32px 1fr; }
	.approach-map { gap: 16px; grid-template-columns: 1fr; grid-template-rows: auto; min-height: auto; }
	.map-item { aspect-ratio: auto; border-radius: 999px; grid-column: 1 !important; grid-row: auto !important; max-width: none; padding: 34px 38px; width: 100%; }
	.map-connector { grid-column: 1 !important; grid-row: auto !important; transform: rotate(90deg) !important; }
	.process-grid { grid-template-columns: 1fr; margin-top: 46px; }
	.process-card:last-child { grid-column: auto; }
	.process-card { min-height: 270px; }
	.session-card { gap: 28px; grid-template-columns: 1fr; }
	.session-card dl { border-top: 1px solid rgba(255, 248, 237, 0.35); padding-top: 24px; }
	.session-card dl div:first-child { border-left: 0; padding-left: 0; }
	.session-card > a { justify-content: space-between; width: 100%; }
	.about-section { gap: 70px; }
	.final-actions { align-items: stretch; flex-direction: column; }
	.text-link { align-self: center; }
	.site-footer { grid-template-columns: 1fr 1fr; }
	.site-footer > p, .site-footer > a:not(.brand) { justify-self: end; }
	.site-footer .copyright { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; }
}
