/*
Theme Name: CSM Point
Theme URI: https://csmpoint.com
Author: CSM Point
Description: Чистая кастомная тема для csmpoint.com. Без конструкторов — лёгкая и быстрая.
Version: 0.10.1
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: csmpoint
*/

/* ---------- Variables ---------- */
:root {
	--color-bg: #ffffff;
	--color-fg: #1e3346;          /* тёмно-синий — текст и заголовки */
	--color-muted: #5b6472;
	--color-accent: #f23a2c;      /* фирменный красный (акцент, действия) */
	--color-accent-dark: #d22e20;
	--color-navy: #1e3a5f;        /* фирменный navy (тёмные секции) */
	--color-navy-dark: #152943;
	--color-border: #e6e9ef;
	--color-alt-bg: #f5f7fb;
	--container: 1200px;
	--radius: 12px;
	--gap: 24px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--color-fg);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-dark); text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
p { margin: 0 0 1em; }

/* ---------- Layout ---------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 20px;
}
.section { padding: 72px 0; }
.container.container--narrow { max-width: 760px; }
.section--alt { background: var(--color-alt-bg); }
.section__title { text-align: center; margin-bottom: 40px; }
.section__lead { max-width: 720px; margin-inline: auto; text-align: center; color: var(--color-muted); font-size: 1.15rem; }

/* ---------- Header ---------- */
.site-header {
	border-bottom: 1px solid var(--color-border);
	background: var(--color-bg);
	position: sticky;
	top: 0;
	z-index: 100;
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	gap: 24px;
}
.site-title { font-weight: 800; font-size: 1.4rem; color: var(--color-fg); }
.site-title:hover { text-decoration: none; }
.custom-logo { max-height: 48px; width: auto; }

.site-nav { display: flex; align-items: center; }
.site-nav__menu {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
}
.site-nav__menu a { color: var(--color-fg); font-weight: 500; }

/* Language switcher */
.site-lang { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.site-lang__item a {
	display: inline-block;
	padding: 5px 9px;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--color-muted);
	border-radius: 7px;
	line-height: 1;
}
.site-lang__item a:hover { color: var(--color-accent); text-decoration: none; }
.site-lang__item.is-active a { color: #fff; background: var(--color-navy); }
.site-nav__toggle {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	width: 44px;
	height: 44px;
	position: relative;
}
.site-nav__toggle-bar,
.site-nav__toggle-bar::before,
.site-nav__toggle-bar::after {
	content: "";
	position: absolute;
	left: 10px;
	width: 24px;
	height: 2px;
	background: var(--color-fg);
	transition: transform .2s ease;
}
.site-nav__toggle-bar { top: 21px; }
.site-nav__toggle-bar::before { top: -7px; }
.site-nav__toggle-bar::after { top: 7px; }

/* ---------- Hero ---------- */
.hero {
	padding: 96px 0 72px;
	background: linear-gradient(180deg, var(--color-alt-bg), var(--color-bg));
	text-align: center;
}
.hero__title { margin-bottom: .3em; }
.hero__title-muted { color: var(--color-muted); font-weight: 600; }
.hero__subtitle {
	font-size: 1.25rem;
	color: var(--color-muted);
	max-width: 680px;
	margin: 0 auto 2rem;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__note { margin: 18px 0 0; font-size: .95rem; color: var(--color-muted); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: var(--radius);
	font-weight: 600;
	transition: background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: var(--color-accent-dark); color: #fff; }
.btn--ghost { background: #fff; border: 1px solid #cdd5e0; color: var(--color-fg); }
.btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ---------- Cards ---------- */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--gap);
}
.card {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 28px;
}
.card__title { font-size: 1.25rem; }
.card__text { color: var(--color-muted); margin: 0; }

/* ---------- Page / content ---------- */
/* Compound selector: body also gets a `.page` class from WordPress —
   scope to our container so we don't constrain the whole body. */
.container.page { padding: 56px 20px; max-width: 820px; }
.entry-content { font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer {
	border-top: 1px solid var(--color-border);
	padding: 32px 0;
	margin-top: 64px;
	color: var(--color-muted);
}
.site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}
.site-footer__copy { margin: 0; }
.site-footer__menu { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.site-footer__social { display: flex; gap: 14px; align-items: center; }
.site-footer__social a { color: var(--color-muted); display: inline-flex; transition: color .15s ease; }
.site-footer__social a:hover { color: var(--color-accent); }

/* ---------- Accessibility ---------- */
.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px; overflow: hidden;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 10px 16px; z-index: 1000; }

/* ---------- Eyebrows ---------- */
.hero__eyebrow,
.section__eyebrow {
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: .85rem;
	font-weight: 700;
	color: var(--color-accent);
	margin: 0 0 .75rem;
}
.section__eyebrow { text-align: center; }

/* ---------- Clients ---------- */
.clients { padding: 44px 0 12px; }
.clients__title {
	text-align: center;
	color: var(--color-muted);
	font-size: .85rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-weight: 700;
	margin-bottom: 26px;
}
.clients__grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 28px 56px;
}
.clients__grid a { display: inline-flex; }
.clients__grid img {
	max-height: 42px;
	width: auto;
	opacity: .65;
	filter: grayscale(100%);
	transition: opacity .2s ease, filter .2s ease;
}
.clients__grid a:hover img { opacity: 1; filter: grayscale(0); }

/* ---------- Stats ---------- */
.stats {
	background: var(--color-navy);
	color: #fff;
	padding: 40px 0;
}
.stats__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: var(--gap);
	text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num { font-size: 2rem; font-weight: 800; line-height: 1; }
.stat__label { color: #b9bfcb; font-size: .95rem; }

/* ---------- Steps ---------- */
.steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--gap);
}
.step {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 28px;
}
.step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--color-accent);
	color: #fff;
	font-weight: 800;
	margin-bottom: 14px;
}
.step__title { font-size: 1.15rem; }
.step__text { color: var(--color-muted); margin: 0; }

/* ---------- Features ---------- */
.feature {
	padding: 28px;
	border-left: 3px solid var(--color-accent);
	background: var(--color-alt-bg);
	border-radius: var(--radius);
}
.feature__title { font-size: 1.2rem; }
.feature__text { color: var(--color-muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
	background: linear-gradient(135deg, var(--color-navy), var(--color-navy-dark));
	color: #fff;
	padding: 72px 0;
	text-align: center;
}
.cta-band__title { color: #fff; margin-bottom: .4em; }
.cta-band__text { color: rgba(255, 255, 255, .85); font-size: 1.15rem; margin-bottom: 1.8rem; }
.btn--light { background: #fff; color: var(--color-accent); }
.btn--light:hover { background: #f1f1f4; color: var(--color-accent-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
	.site-nav__toggle { display: block; }
	.site-nav__menu {
		display: none;
		position: absolute;
		top: 72px;
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 0;
		background: var(--color-bg);
		border-bottom: 1px solid var(--color-border);
		padding: 8px 20px 16px;
	}
	.site-nav.is-open .site-nav__menu { display: flex; }
	.site-nav__menu a { display: block; padding: 12px 0; }
}
