/*
Theme Name: Умра — Минимализм
Theme URI: https://umra.com.ru/
Author: Ассоциация компаний «Умра»
Author URI: https://umra.com.ru/
Description: Минималистичная тема: крупная типографика, много воздуха, чёрно-белая графика, никаких украшений. Создана для Ассоциации компаний «Умра».
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: umra-minimal
*/

/* ============================================================
   БАЗА
   ============================================================ */

:root {
	--ink: #111111;
	--gray: #767676;
	--line: #e3e3e3;
	--paper: #ffffff;
	--tint: #f6f6f4;
	--accent: #00a9c4; /* бирюзовый из логотипа — единственное пятно цвета */
	--font: Arial, "Helvetica Neue", Helvetica, "Segoe UI", sans-serif;
	--wrap: 1120px;
	--gap: clamp(30px, 4vw, 52px);
}

@media (max-width: 720px) {
	:root { --gap: 36px; }
}

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

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

body {
	margin: 0;
	font-family: var(--font);
	font-size: 18px;
	line-height: 1.55;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .15s ease, color .15s ease; }
a:hover { border-bottom-color: var(--ink); }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(26px, 3vw, 36px); }
h2 { font-size: clamp(22px, 2.4vw, 30px); }
h3 { font-size: clamp(18px, 1.8vw, 21px); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding: 0; list-style: none; }

::selection { background: var(--ink); color: #fff; }

/* Пропуск к содержанию */
.skip-link {
	position: absolute; left: -9999px; top: 0;
	background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; border: 0; }

/* Обёртка */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 780px; }

/* Маленькая серая подпись над заголовком — «рубрика» */
.kicker {
	font-size: 13px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--gray);
	margin: 0 0 10px;
}

.lead {
	font-size: clamp(17px, 2vw, 20px);
	line-height: 1.45;
	max-width: 32em;
}

/* Кнопки — чёрный прямоугольник и «стрелочная» ссылка */
.btn {
	display: inline-block;
	background: var(--ink);
	color: #fff;
	padding: 16px 28px;
	font-size: 17px;
	font-weight: 700;
	border: 0;
	cursor: pointer;
}
.btn:hover { background: var(--accent); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

.arrow-link { font-weight: 700; border-bottom: 0; }
.arrow-link::after { content: " →"; }
.arrow-link:hover { color: var(--accent); }

/* ============================================================
   ШАПКА
   ============================================================ */

.site-header {
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(6px);
	z-index: 50;
}

.site-header .wrap {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: 88px;
}

.brand {
	display: flex; align-items: center;
	border-bottom: 0; margin-right: auto;
}
.brand img { height: 52px; width: auto; flex: none; display: block; }

.main-nav ul { display: flex; gap: 24px; margin: 0; }
.main-nav a { border-bottom: 0; font-size: 16px; color: var(--ink); white-space: nowrap; }
.main-nav a:hover { color: var(--accent); }
.main-nav .current-menu-item > a { font-weight: 700; box-shadow: 0 2px 0 var(--ink); }

.header-cta { padding: 10px 18px; font-size: 15px; }

.nav-toggle {
	display: none;
	background: none; border: 0; cursor: pointer;
	font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	padding: 12px 0;
}

/* Средние экраны: меню плотнее, чтобы всё помещалось в одну строку */
@media (max-width: 1100px) {
	.main-nav ul { gap: 18px; }
}

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.header-cta { display: none; }
	.main-nav {
		display: none;
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		padding: 16px 24px 28px;
	}
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; gap: 14px; }
	.main-nav a { font-size: 22px; font-weight: 700; }
}

/* ============================================================
   СЕКЦИИ ГЛАВНОЙ
   ============================================================ */

.section { padding: var(--gap) 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }
.section--tint { background: var(--tint); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink .kicker { color: #9a9a9a; }
.section--ink a { color: #fff; border-bottom-color: #444; }
.section--ink a:hover { border-bottom-color: #fff; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(18px, 2.5vw, 30px); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { color: var(--gray); max-width: 34em; margin: 0; }

/* Главный экран */
.hero { padding: clamp(28px, 4vw, 52px) 0; }
.hero h1 { margin-bottom: 14px; max-width: none; font-size: clamp(28px, 3.4vw, 40px); white-space: nowrap; }
.hero .lead { color: #333; margin-bottom: 22px; }
.hero-actions { display: flex; gap: 24px; align-items: center; flex-wrap: nowrap; }
.hero-tags { margin-top: clamp(20px, 3vw, 36px); display: flex; gap: 0; flex-wrap: wrap; border-top: 1px solid var(--line); }
.hero-tags span {
	padding: 12px 24px 12px 0; margin-right: 24px;
	font-size: 15px; color: var(--gray);
	border-right: 1px solid var(--line);
}
.hero-tags span:last-child { border-right: 0; }

/* Ценности — 4 пункта */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 22px; }
.values li { background: var(--paper); padding: 18px 20px; }
.values strong { display: block; font-size: 18px; margin-bottom: 4px; }
.values p { color: var(--gray); font-size: 15px; margin: 0; }

/* Нумерованный список задач — фирменная «таблица» */
.tasks { counter-reset: task; border-top: 1px solid var(--line); }
.tasks li {
	counter-increment: task;
	display: flex; align-items: baseline; gap: clamp(16px, 3vw, 40px);
	padding: 13px 0;
	border-bottom: 1px solid var(--line);
	font-size: clamp(17px, 2vw, 20px);
	font-weight: 700;
	letter-spacing: -0.01em;
}
.tasks li::before {
	content: counter(task, decimal-leading-zero);
	font-size: 14px; font-weight: 400; color: var(--gray);
	font-variant-numeric: tabular-nums;
	min-width: 2.2em;
}

/* Причины вступить */
.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(20px, 3vw, 36px); }
.reasons article { border-top: 2px solid var(--ink); padding-top: 16px; }
.reasons .num { font-size: 14px; color: var(--gray); font-variant-numeric: tabular-nums; display: block; margin-bottom: 10px; }
.section--ink .reasons article { border-top-color: #fff; }
.section--ink .reasons .num { color: #9a9a9a; }
.section--ink .reasons p { color: #cfcfcf; }

/* Участники */
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.member-card { background: var(--paper); padding: 24px 22px; border: 0; display: block; }
.member-card:hover { background: var(--tint); }
.member-card h3 { margin-bottom: 10px; }
.member-card:hover h3 { color: var(--accent); }
.member-card p { color: var(--gray); font-size: 15px; margin: 0; }

/* Логотип участника: ч/б в покое, цветной при наведении */
.member-logo {
	display: flex;
	align-items: center;
	height: 44px;
	margin-bottom: 12px;
}
.member-logo img {
	max-height: 44px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	object-position: left center;
	filter: grayscale(1);
	opacity: .75;
	transition: filter .2s ease, opacity .2s ease;
}
.member-card:hover .member-logo img {
	filter: grayscale(0);
	opacity: 1;
}

/* Новости */
.news-list { border-top: 1px solid var(--line); }
.news-item {
	display: flex; gap: clamp(16px, 3vw, 40px); align-items: baseline;
	padding: 15px 0; border-bottom: 1px solid var(--line); border-bottom-color: var(--line);
}
.news-item time { font-size: 14px; color: var(--gray); min-width: 7em; font-variant-numeric: tabular-nums; }
.news-item a { font-size: clamp(16px, 1.8vw, 19px); font-weight: 700; border-bottom: 0; }
.news-item a:hover { color: var(--accent); }
.empty-note { color: var(--gray); padding: 24px 0; }

/* Призыв «Вступить» */
.cta h2 { max-width: 20em; }
.cta p { max-width: 44em; color: #cfcfcf; }
.cta .btn { background: #fff; color: var(--ink); margin-top: 8px; }
.cta .btn:hover { background: var(--accent); color: #fff; }

/* ============================================================
   ВНУТРЕННИЕ СТРАНИЦЫ
   ============================================================ */

.page-hero { padding: clamp(26px, 4vw, 44px) 0 clamp(16px, 2.5vw, 28px); }
.page-hero .lead { color: var(--gray); }

.crumbs { font-size: 13px; color: var(--gray); margin-bottom: 14px; letter-spacing: .04em; }
.crumbs a { color: var(--gray); border-bottom: 0; }
.crumbs a:hover { color: var(--ink); }
.crumbs span::before { content: " / "; color: #bbb; }

.content { padding-bottom: var(--gap); }
.content p, .content ul, .content ol { max-width: 40em; }
.content ul { list-style: none; }
.content ul li { padding-left: 1.4em; position: relative; margin-bottom: .4em; }
.content ul li::before { content: "—"; position: absolute; left: 0; color: var(--gray); }
.content ol { list-style: decimal; padding-left: 1.4em; }
.content h2, .content h3 { margin-top: 1.6em; }

/* Публикация */
.post-meta { font-size: 14px; color: var(--gray); margin-bottom: 20px; }

/* Карточка участника (single) */
.member-head { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.member-head img { width: 96px; height: 96px; object-fit: contain; }

/* Пагинация */
.pagination { display: flex; gap: 8px; padding: 32px 0; }
.pagination .page-numbers {
	padding: 8px 14px; border: 1px solid var(--line); font-size: 15px;
}
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============================================================
   ПОДВАЛ
   ============================================================ */

.site-footer { border-top: 1px solid var(--line); padding: clamp(36px, 5vw, 60px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand strong { font-size: 18px; display: block; margin-bottom: 8px; }
.footer-brand p { color: var(--gray); font-size: 14px; max-width: 24em; }
.footer-brand .domain { font-weight: 700; border-bottom: 0; display: inline-block; margin-top: 6px; }

.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--gray); margin-bottom: 12px; font-weight: 400; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { border-bottom: 0; font-size: 15px; color: var(--ink); }
.footer-col a:hover { color: var(--accent); }

.footer-legal { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--gray); }

/* Cookie-баннер — простая плашка снизу */
.cookie-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
	background: var(--ink); color: #fff;
	padding: 14px 24px;
	display: none;
	align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap;
	font-size: 14px;
}
.cookie-bar.is-visible { display: flex; }
.cookie-bar a { color: #fff; border-bottom-color: #555; }
.cookie-bar button {
	background: #fff; color: var(--ink); border: 0; cursor: pointer;
	padding: 8px 20px; font-size: 14px; font-weight: 700;
}

/* Форма заявки */
.join-form { margin-top: 28px; max-width: 520px; }
.join-form label { display: block; font-size: 14px; color: var(--gray); margin: 18px 0 6px; }
.join-form input, .join-form textarea {
	width: 100%;
	font: inherit; font-size: 16px; color: var(--ink);
	padding: 12px 14px;
	border: 1px solid #ccc; border-radius: 0; background: #fff;
}
.join-form input:focus, .join-form textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.join-form .btn { margin-top: 24px; }
.form-success {
	background: var(--tint); border-left: 3px solid var(--accent);
	padding: 18px 20px; font-weight: 700; margin-top: 24px;
}

/* ============================================================
   МЕЛОЧИ
   ============================================================ */

/* Планшеты */
@media (max-width: 1000px) {
	.wrap { padding: 0 20px; }
	.footer-grid { gap: 32px; }
}

/* Телефоны: компактная типографика и умеренные отступы */
@media (max-width: 640px) {
	body { font-size: 16px; }

	h1 { font-size: 25px; line-height: 1.18; }
	h2 { font-size: 21px; line-height: 1.2; }
	h3 { font-size: 17px; }

	.wrap { padding: 0 16px; }

	.lead { font-size: 17px; line-height: 1.45; }

	.kicker { font-size: 12px; margin-bottom: 10px; }

	/* Шапка */
	.site-header .wrap { min-height: 68px; gap: 16px; }
	.brand img { height: 38px; }

	/* Главный экран — без гигантских отступов */
	.hero { padding: 40px 0 48px; }
	.hero h1 { margin-bottom: 16px; white-space: normal; font-size: 25px; }
	.hero .lead { margin-bottom: 24px; }
	.hero-actions { flex-wrap: wrap; gap: 14px 20px; }
	.hero-actions .btn { padding: 13px 20px; }
	.hero-tags { margin-top: 32px; }
	.hero-tags span { border-right: 0; padding: 10px 0; margin-right: 0; width: 100%; font-size: 14px; }

	/* Секции */
	.section-head { margin-bottom: 26px; gap: 10px; }
	.section-head p { font-size: 15px; }

	/* Ценности и участники — по одной карточке в ряд, компактно */
	.values { margin-top: 24px; }
	.values li { padding: 18px 16px; }
	.values strong { font-size: 17px; }

	.member-card { padding: 20px 16px; }
	.member-card h3 { margin-bottom: 6px; }
	.member-card p { font-size: 14px; }
	.members-grid { grid-template-columns: 1fr; }

	/* Задачи */
	.tasks li { padding: 12px 0; gap: 14px; font-size: 16px; line-height: 1.3; }

	/* Причины */
	.reasons { grid-template-columns: 1fr; gap: 20px; }
	.reasons article { padding-top: 14px; }
	.reasons .num { margin-bottom: 8px; }
	.reasons p { font-size: 15px; margin-bottom: 0; }

	/* Новости */
	.news-item { flex-direction: column; gap: 4px; padding: 14px 0; }
	.news-item a { font-size: 16px; line-height: 1.35; }

	/* Страницы */
	.page-hero { padding: 32px 0 24px; }
	.post-meta { margin-bottom: 20px; }
	.member-head { gap: 16px; }
	.member-head img { width: 64px; height: 64px; }

	/* Подвал */
	.site-footer { padding: 40px 0 32px; }
	.footer-grid { gap: 28px; margin-bottom: 32px; }
	.footer-legal { flex-direction: column; gap: 8px; }

	/* Cookie-баннер */
	.cookie-bar { padding: 12px 16px; font-size: 13px; text-align: left; gap: 12px; }
}

/* Очень узкие экраны */
@media (max-width: 360px) {
	h1 { font-size: 23px; }
	h2 { font-size: 20px; }
}

@media print {
	.site-header .header-cta, .nav-toggle, .cookie-bar, .hero-actions { display: none !important; }
	body { font-size: 12pt; }
}
