/*
Theme Name: iON
Theme URI: https://ion.org.kz
Author: Общество радиационной медицины и технологий «iON»
Description: Сайт общественного объединения «Общество радиационной медицины и технологий «iON»», Астана.
Version: 1.4.6
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: ion
*/

:root {
	--ink: #161513;
	--gold: #c6a15a;
	--gold-deep: #8d6b32;
	--gold-soft: #f3ead7;
	--paper: #f6f3ee;
	--white: #fffcf8;
	--line: #e4ddd2;
	--muted: #6b645c;
	--header: 108px;
}

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

html { scroll-padding-top: 100px; }

body {
	margin: 0;
	color: var(--ink);
	background: var(--white);
	font-family: Manrope, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.6;
}

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

a { color: var(--gold-deep); }

h1, h2, h3 {
	font-family: Unbounded, Manrope, sans-serif;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

:lang(kk) body,
:lang(kk) h1,
:lang(kk) h2,
:lang(kk) h3,
:lang(kk) .thesis-quote,
:lang(kk) .tracks span,
:lang(kk) .roster strong {
	font-family: Onest, "Segoe UI", sans-serif;
}

p { margin: 0 0 1rem; }

.container {
	width: min(1120px, calc(100% - 40px));
	margin: 0 auto;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -48px;
	background: #fff;
	color: var(--ink);
	padding: 8px 12px;
	z-index: 1000;
}

.skip-link:focus { top: 8px; }

:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(255, 252, 248, 0.94);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

body.admin-bar .site-header { top: 32px; }

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: var(--header);
	position: relative;
}

.brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	color: var(--ink);
	text-decoration: none;
	min-width: 0;
}

.brand-logo {
	display: block;
	height: 64px;
	width: auto;
}

.brand-name {
	display: block;
	max-width: 210px;
	margin-top: 6px;
	color: var(--ink);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.35;
	text-transform: uppercase;
}

.custom-logo {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
}

.nav-toggle {
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: transparent;
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	cursor: pointer;
}

.nav-toggle .bar {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--ink);
}

.nav-list {
	display: none;
	list-style: none;
	margin: 0;
	padding: 8px 0 18px;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--white);
	border-bottom: 1px solid var(--line);
	z-index: 30;
}

.nav-list.is-open { display: flex; flex-direction: column; }

.nav-list a {
	display: block;
	color: var(--ink);
	text-decoration: none;
	padding: 12px 20px;
	font-weight: 600;
	font-size: 0.98rem;
}

.nav-list .current-menu-item > a,
.nav-list .current_page_item > a { color: var(--gold-deep); }

.header-end {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-left: auto;
}

.lang-switch {
	display: flex;
	align-items: center;
	gap: 2px;
	flex: 0 0 auto;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 3px;
	background: var(--white);
}

.lang-switch a {
	color: var(--ink);
	text-decoration: none;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	padding: 6px 8px;
	border-radius: 999px;
}

.lang-switch a.is-current {
	background: var(--ink);
	color: #fff;
}

.hero {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	min-height: calc(100svh - var(--header));
	background:
		radial-gradient(ellipse at 78% 46%, rgba(198, 161, 90, 0.34), transparent 46%),
		linear-gradient(165deg, #fffcf8 0%, #f3ecdf 100%);
	padding: 48px 0 64px;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
	gap: 36px;
	align-items: center;
}

.kicker {
	margin: 0 0 16px;
	color: var(--gold-deep);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hero h1 {
	margin: 0 0 18px;
	max-width: 12em;
	font-size: clamp(2rem, 4.2vw, 3.35rem);
	text-transform: uppercase;
}

.lede {
	max-width: 38em;
	font-size: 1.08rem;
	color: #3c3833;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.hero-aside { position: relative; min-height: 280px; }

.orbit-stage {
	width: min(520px, 100%);
	margin-left: auto;
}

.orbit-stage svg,
.orbits { width: 100%; height: auto; display: block; }

.spine {
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	right: 0;
	top: 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-align: right;
}

.spine li {
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.spine li::after {
	content: "";
	display: inline-block;
	width: 18px;
	height: 1px;
	margin-left: 8px;
	background: var(--gold);
	vertical-align: middle;
}

.btn {
	display: inline-block;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 13px 22px;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	text-align: center;
}

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2a2723; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.btn-gold { background: var(--gold); color: #1a140c; }
.btn-gold:hover { background: #d7b56e; }
.btn-light { background: transparent; color: var(--ink); border-color: var(--ink); }

.label {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	font-size: 0.95rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.label::before {
	content: "";
	width: 3px;
	height: 1.05em;
	background: var(--gold);
	flex: 0 0 3px;
}

.section { padding: 72px 0; }
.section-paper { background: var(--paper); }

.section-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	margin-bottom: 22px;
}

.section-head .label { margin: 0; }

.section-more {
	margin: 28px 0 0;
	text-align: center;
}

.text-link {
	color: var(--ink);
	font-weight: 800;
	text-decoration: none;
	border-bottom: 1px solid var(--gold);
	padding-bottom: 2px;
}

.about-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 36px;
	align-items: start;
}

.quote {
	margin: 8px 0 18px;
	padding-left: 16px;
	border-left: 2px solid var(--gold);
	font-size: 1.15rem;
	line-height: 1.45;
}

.pair { display: grid; gap: 14px; }

.note {
	background: var(--white);
	border: 1px solid var(--line);
	padding: 22px 22px 8px;
}

.note h3 {
	margin: 0 0 8px;
	font-size: 1rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.areas,
.news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.area,
.news-card {
	background: var(--white);
	border: 1px solid var(--line);
	padding: 22px 20px 24px;
}

.news-card { padding: 0; overflow: hidden; }
.news-body { padding: 22px 20px 24px; }
.news-thumb { display: block; }
.news-thumb img {
	display: block;
	width: 100%;
	height: 190px;
	object-fit: cover;
}
.article-thumb { margin: 0 0 28px; }
.article-thumb img { display: block; width: 100%; height: auto; }

.area h3,
.news-title {
	margin: 0 0 8px;
	font-size: 1.02rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.area p,
.news-card p { margin: 0; color: #3f3a34; }

.acts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid var(--line);
}

.act {
	padding: 22px 22px 8px 0;
	border-bottom: 1px solid var(--line);
	padding-right: 22px;
}

.act:nth-child(3n) { padding-right: 0; }

.act h3 { margin: 0 0 8px; font-size: 1rem; }
.act p { color: #3f3a34; }

.roles {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.roles li {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 0.95rem;
}

.source-note {
	margin: 18px 0 0;
	color: var(--muted);
	font-size: 0.92rem;
}

.news-only {
	margin: 0 0 12px;
	color: var(--gold-deep);
	font-size: 0.92rem;
}

.news-title a { color: inherit; text-decoration: none; }
.news-title a:hover { color: var(--gold-deep); }

.news-date {
	margin: 0 0 8px;
	color: var(--gold-deep);
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.platform {
	position: relative;
	overflow: hidden;
	background: #161513;
	color: #f6f1e8;
	padding: 78px 0;
}

.platform-orbit {
	position: absolute;
	right: -80px;
	top: 50%;
	width: 460px;
	transform: translateY(-50%);
	opacity: 0.55;
	pointer-events: none;
}

.platform-inner { position: relative; z-index: 1; max-width: 720px; }

.platform h2 {
	margin: 0 0 22px;
	max-width: 16em;
	color: #fff;
	font-size: clamp(1.6rem, 3vw, 2.3rem);
	text-transform: uppercase;
}

.kicker-light { color: var(--gold); }

.thesis { padding: 96px 0 88px; }

.thesis-quote {
	max-width: 16em;
	margin: 0 0 48px;
	font-family: Unbounded, Manrope, sans-serif;
	font-size: clamp(1.7rem, 3.4vw, 2.75rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.22;
	text-transform: uppercase;
}

.thesis-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}

.thesis-grid h2 {
	margin: 0 0 10px;
	font-size: 0.95rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.thesis-grid p { max-width: 36em; color: #3c3833; }
.thesis-grid .text-link { display: inline-block; margin-top: 4px; }

.section-lead {
	max-width: 28em;
	margin: 10px 0 0;
	color: #3c3833;
}

.tracks {
	list-style: none;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 64px;
	margin: 8px 0 0;
	padding: 0;
}

.tracks li {
	display: grid;
	grid-template-columns: 52px 1fr;
	gap: 8px;
	align-items: start;
	padding: 22px 0;
	border-top: 1px solid var(--line);
}

.tracks li:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }

.tracks span {
	font-family: Unbounded, Manrope, sans-serif;
	color: var(--gold-deep);
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.tracks h3 {
	margin: 0 0 6px;
	font-size: 1.05rem;
	text-transform: uppercase;
}

.tracks p { margin: 0; color: #3f3a34; }

.work-list {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 36px 32px;
	margin: 8px 0 0;
	padding: 0;
}

.work-list h3 {
	margin: 0 0 8px;
	font-size: 1.02rem;
	text-transform: uppercase;
}

.work-list p { margin: 0; color: #3f3a34; }

.work-list li::before {
	content: "";
	display: block;
	width: 28px;
	height: 2px;
	margin-bottom: 14px;
	background: var(--gold);
}

.close {
	position: relative;
	overflow: hidden;
	background: #161513;
	color: #f6f1e8;
	padding: 88px 0;
}

.close-orbit {
	position: absolute;
	right: -120px;
	bottom: -160px;
	width: 520px;
	opacity: 0.45;
	pointer-events: none;
}

.close-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 64px;
	align-items: end;
}

.label-light { color: #fff; }
.label-light::before { background: var(--gold); }

.close-roles {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
}

.close-roles li {
	padding: 12px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.close-roles li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }

.close-note {
	margin: 18px 0 0;
	color: #b7aea3;
	font-size: 0.95rem;
}

.close-note a { color: var(--gold); font-weight: 800; }

.roster-empty {
	margin: 0 0 22px;
	max-width: 28em;
	font-size: 1.25rem;
}

.roster {
	list-style: none;
	max-width: 820px;
	margin: 0;
	padding: 0;
}

.roster li {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 12px 28px;
	align-items: baseline;
	padding: 16px 0;
	border-top: 1px solid var(--line);
}

.roster li:last-child { border-bottom: 1px solid var(--line); }

.roster strong {
	font-family: Unbounded, Manrope, sans-serif;
	font-size: 1rem;
	font-weight: 500;
}

.roster span { color: #3f3a34; }
.roster em {
	display: block;
	color: var(--muted);
	font-style: normal;
	font-size: 0.92rem;
}

.roster-note {
	max-width: 40em;
	margin-top: 18px;
	color: var(--muted);
}

.close-cta h2 {
	margin: 0 0 22px;
	max-width: 12em;
	color: #fff;
	font-size: clamp(1.7rem, 3vw, 2.5rem);
	text-transform: uppercase;
}

.page-hero {
	background: var(--paper);
	color: var(--ink);
	padding: 48px 0 32px;
	border-bottom: 1px solid var(--line);
}

.page-hero h1 {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3rem);
	text-transform: uppercase;
}

.page-hero h1::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin-top: 14px;
	background: var(--gold);
}

.page-hero p { margin: 12px 0 0; max-width: 640px; color: #3f3a34; }

.eyebrow { margin: 0 0 8px; }
.eyebrow a { color: var(--gold-deep); font-weight: 800; text-decoration: none; }
.hero-date { color: var(--muted); }

.page-body { padding: 48px 0 72px; }

.prose { max-width: 760px; }
.prose .lead { font-size: 1.2rem; }
.prose h2 { margin: 2rem 0 0.7rem; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.03em; }
.prose ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.article { padding-top: 40px; padding-bottom: 72px; }

.facts-card { margin-top: 36px; max-width: 860px; }
.facts-card h2 { margin: 0 0 8px; font-size: 1.2rem; text-transform: uppercase; }

.requisites { margin: 8px 0 0; }
.requisites div {
	display: grid;
	grid-template-columns: minmax(140px, 240px) 1fr;
	gap: 8px 24px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
}
.requisites dt { color: var(--muted); font-weight: 700; }
.requisites dd { margin: 0; }

.contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
	gap: 40px;
	align-items: start;
}

.site-form {
	background: var(--paper);
	border: 1px solid var(--line);
	padding: 22px;
	position: relative;
}

.site-form p { margin: 0 0 14px; }

.site-form label {
	display: block;
	font-weight: 700;
	margin-bottom: 6px;
}

.site-form input,
.site-form textarea,
.search-form input {
	width: 100%;
	border: 1px solid #d9d0c4;
	border-radius: 10px;
	padding: 12px;
	font: inherit;
	background: #fff;
	color: var(--ink);
}

.form-consent { color: var(--muted); font-size: 0.92rem; }

.captcha-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 8px;
}

.captcha-img {
	display: block;
	width: 168px;
	height: 56px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--paper);
}

.captcha-refresh {
	border: 0;
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	padding: 0;
}

.notice {
	background: var(--gold-soft);
	border: 1px solid #e4d3ae;
	padding: 12px 14px;
}

.notice.is-error {
	background: #fdecec;
	border-color: #f3c1c1;
}

.hp {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.search-form {
	display: flex;
	gap: 8px;
	max-width: 460px;
	margin-top: 18px;
}

.search-form button {
	border: 0;
	border-radius: 10px;
	background: var(--ink);
	color: #fff;
	font: inherit;
	font-weight: 800;
	padding: 0 16px;
	cursor: pointer;
}

.empty { color: var(--muted); }

.nav-links { display: flex; gap: 16px; margin-top: 28px; }
.post-navigation { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 18px; }
.post-navigation .nav-links { justify-content: space-between; }

.site-footer {
	background: #100f0d;
	color: #d9d1c6;
	padding: 56px 0 20px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 0.8fr 1fr;
	gap: 32px;
}

.footer-mark {
	margin: 0 0 16px;
	display: inline-block;
	background: #f7f4ef;
	padding: 8px 10px 6px;
	border-radius: 12px;
}
.footer-mark img {
	display: block;
	height: 64px;
	width: auto;
}

.footer-name { color: #fff; font-weight: 750; margin: 0 0 10px; }
.footer-kk { color: #b7aea3; font-size: 0.95rem; }
.footer-label {
	margin: 0 0 10px;
	color: var(--gold);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.footer-nav,
.footer-contacts {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-nav a,
.footer-contacts a { color: #fff; text-decoration: none; font-weight: 650; }
.footer-nav a:hover,
.footer-contacts a:hover { color: var(--gold); }
.footer-nav li,
.footer-contacts li { margin: 0 0 8px; }

.footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 28px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	color: #9c948a;
	font-size: 0.92rem;
}

.footer-bottom a { color: #e7dfd4; }

.to-top {
	position: fixed;
	right: 16px;
	bottom: 16px;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	background: var(--ink);
	color: var(--gold);
	border-radius: 50%;
	text-decoration: none;
}

.to-top svg { width: 22px; height: 22px; }

.ion-admin-meta dt { font-weight: 700; }
.ion-admin-meta dd { margin: 0 0 8px; }

@media (min-width: 980px) {
	.nav-toggle { display: none; }
	.nav-list {
		display: flex;
		position: static;
		flex-direction: row;
		align-items: center;
		gap: 4px 18px;
		padding: 0;
		background: transparent;
		border: 0;
	}
	.nav-list a { padding: 8px 0; font-size: 0.92rem; }
}

@media (max-width: 979px) {
	.brand-logo { height: 52px; }
	.brand-name { max-width: 160px; font-size: 0.62rem; }
	.hero { min-height: 0; padding: 40px 0 48px; }
	.hero-grid,
	.about-grid,
	.areas,
	.news-grid,
	.acts,
	.thesis-grid,
	.tracks,
	.work-list,
	.close-grid,
	.footer-grid,
	.contact-layout { grid-template-columns: 1fr; }
	.tracks li:nth-last-child(-n + 2) { border-bottom: 0; }
	.tracks li:last-child { border-bottom: 1px solid var(--line); }
	.thesis { padding: 64px 0 56px; }
	.close { padding: 64px 0; }
	.spine {
		position: static;
		flex-direction: row;
		flex-wrap: wrap;
		text-align: left;
		margin-top: 8px;
	}
	.orbit-stage { width: min(280px, 70%); margin: 0; }
	.act { padding-right: 0; }
	.footer-bottom { flex-direction: column; }
}

@media (max-width: 700px) {
	.requisites div,
	.roster li { grid-template-columns: 1fr; gap: 4px; }
	.section-head { flex-direction: column; align-items: flex-start; }
	.hero { padding-top: 36px; }
}

.maint-bar {
	background: var(--ink);
	color: var(--paper);
	text-align: center;
	padding: 10px 16px;
	font-size: 15px;
}

.maint-bar a {
	color: var(--gold);
	margin-left: 8px;
}

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

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
